/* ---------------------------------------------------------------
   Design tokens shared by every page.
   The red-to-orange gradient matches the logo.
   --------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #111113;
  --rule: #ffffff1f;
  --text: #ffffff;
  --body: #9b9ba3;
  --quiet: #6b6b73;
  --accent: #ff4b63;
  --gradient: linear-gradient(90deg, #ff3b5c, #ff7045);
  --gutter: clamp(20px, 3.5vw, 48px);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

::selection { background: var(--accent); color: #fff; }

/* The page is a column that is at least one screen tall, so the footer
   always sits at the bottom. A faint warm glow keeps the black from
   looking flat. */
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding-inline: var(--gutter);
  background: radial-gradient(70vw 60vh at 85% 75%, #ff4b6314, transparent 70%) fixed, var(--background);
  color: var(--text);
  font: 400 1rem / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* Fine film grain laid over the whole page. It ignores clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* ---------------------------------------------------------------
   12-column grid. Rows use .start (columns 1–6) and .end
   (columns 9–12) so left and right edges line up on every row.
   --------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

.start { grid-column: 1 / 7; }
.end { grid-column: 9 / 13; }

/* ---------------------------------------------------------------
   Header: logo on the left, Contact link on the right-hand column.
   --------------------------------------------------------------- */
.site-header { align-items: center; padding-block: 32px; }
.site-header img { display: block; width: 136px; height: auto; }

.nav-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #d4d4d8;
  font-size: 15px;
  font-weight: 500;
}

.nav-link:hover { color: #fff; }

/* Small red arrow that nudges up-right on hover. */
.nav-link span { color: #ff5a6e; transition: transform 0.2s; }
.nav-link:hover span { transform: translate(2px, -2px); }

/* ---------------------------------------------------------------
   Homepage hero: the headline sits at the bottom of the free space
   above the content row. Its size follows both width and height so
   the whole page fits on one desktop screen.
   --------------------------------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

.hero h1 {
  margin: 0 0 0 -0.045em; /* optical alignment of the "M" with the text below */
  font-size: clamp(76px, min(15vw, 24vh), 240px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

/* Gradient full stop, matching the logo. */
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------
   Content row: studio paragraph on the left, Propelo on the right.
   Both columns share one size: white lead, grey body.
   --------------------------------------------------------------- */
.intro {
  row-gap: 32px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  line-height: 1.55;
}

.intro p { max-width: 36em; margin: 0; color: var(--body); }
.intro strong { color: var(--text); font-weight: 600; }
.product p { margin-bottom: 20px; }

/* Inline links (the founder's name): white text with a thin underline that turns red on hover. */
.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #ffffff59;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}

.text-link:hover { text-decoration-color: var(--accent); }

/* ---------------------------------------------------------------
   Buttons. `.button` is the Propelo link; the bare `button`
   selector styles the contact form's submit button the same way.
   --------------------------------------------------------------- */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font: 600 16px / 1 var(--font);
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff40, 0 8px 24px -12px var(--accent);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.button:hover, button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #ffffff40, 0 14px 32px -12px var(--accent);
}

/* The arrow inside a button slides right on hover. */
.button span { transition: transform 0.2s; }
.button:hover span { transform: translateX(4px); }

button:disabled { opacity: 0.45; cursor: default; }

/* ---------------------------------------------------------------
   Footer: one quiet line (copyright, then legal links) aligned to
   the left edge. Each item after the first gets a centred dot.
   --------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 28px;
  color: var(--quiet);
  font-size: 13px;
}

.site-footer p { margin: 0; }
.site-footer nav { display: inline-flex; }
.site-footer a:hover { color: #d4d4d8; }

.site-footer a::before {
  content: "·";
  margin-inline: 12px;
  color: var(--quiet);
}

/* ---------------------------------------------------------------
   Inner pages (contact, privacy, terms): a readable single column.
   --------------------------------------------------------------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  padding-block: clamp(32px, 7vw, 72px) 64px;
}

.page h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
}

.page .lede { margin: 0; color: var(--body); font-size: 18px; }

/* Legal text: grey body with clear white section headings. */
.legal { color: #b4b4bb; }
.legal h2 { margin: 36px 0 8px; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.legal a { color: #ff6b7f; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------------------------------------------------------------
   Contact form: labels close to their fields, 44px+ touch targets.
   --------------------------------------------------------------- */
#contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 28rem;
  margin-top: 36px;
}

.contact-field { display: grid; gap: 6px; }
.contact-field label { color: #d4d4d8; font-size: 14px; font-weight: 500; }

.contact-field input, .contact-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  transition: border-color 0.2s;
}

.contact-field input:focus, .contact-field textarea:focus { border-color: var(--accent); outline: none; }
.contact-field textarea { resize: vertical; }

#contact-form button { justify-self: start; }
#form-status { margin: 0; color: var(--body); }
#form-status:empty { display: none; }

/* ---------------------------------------------------------------
   Entrance: the headline and content fade up in a short stagger.
   Turned off for people who prefer reduced motion.
   --------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.hero h1, .intro > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro > .start { animation-delay: 0.12s; }
.intro > .end { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------
   Mobile: one column, page scrolls, bigger headline, full-width
   button. The header keeps logo and Contact on one row.
   --------------------------------------------------------------- */
@media (max-width: 800px) {
  .start, .end { grid-column: 1 / -1; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-header > * { grid-column: auto; }
  .hero { min-height: 40svh; }
  .hero h1 { font-size: 23vw; }
  .intro { font-size: 17px; }
  .product .button { width: 100%; }
}
