/* Home: Marta's Figma frame "Frame 26087449" (1920×1080), MindScriber New Website.
   One design pixel = --u. On a computer the frame scales with the window; on a phone the picture is zoomed on the chest. */

:root {
  --u: max(calc(100vw / 1920), calc(max(100vh, 600px) / 1080));
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --glass: rgba(230, 237, 239, 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: #fff; overflow-x: hidden; }
body {
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: calc(30 * var(--u));
  height: max(calc(70 * var(--u)), 56px);
  padding: 0 calc(140 * var(--u));
  background: var(--glass);
  -webkit-backdrop-filter: blur(7.4px);
  backdrop-filter: blur(7.4px);
}
.logo {
  margin-right: auto;
  font-family: var(--display); font-weight: 600;
  font-size: max(calc(24 * var(--u)), 20px); line-height: 1.3333; letter-spacing: 0.008em;
}
.links { display: flex; align-self: stretch; }
.link {
  display: flex; align-items: center;
  padding: 0 max(calc(15 * var(--u)), 10px);
  font-weight: 600; font-size: max(calc(17 * var(--u)), 15px); line-height: 1.2353; letter-spacing: -0.022em;
  white-space: nowrap;
}
.link.is-active { box-shadow: inset 0 -1px 0 #fff; }
.x { display: flex; align-items: center; justify-content: center; width: max(calc(48 * var(--u)), 40px); height: max(calc(48 * var(--u)), 40px); }
.x svg { width: max(calc(20 * var(--u)), 18px); height: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: calc(181 * var(--u)); height: max(calc(39 * var(--u)), 34px);
  padding: 0 16px; border-radius: 980px;
  background: #fff; color: #1d1d1f;
  font-family: var(--text); font-weight: 500;
  font-size: max(calc(17 * var(--u)), 15px); line-height: 1.2353; letter-spacing: -0.022em;
  white-space: nowrap; transition: background-color 150ms;
}
.btn:hover { background: #e8e8ed; }
.btn:focus-visible, .link:focus-visible, .logo:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: #000;
  height: 100vh; height: 100svh; min-height: 600px;
}
.art {
  position: absolute;
  left: calc(621 * var(--u)); top: calc(-375 * var(--u));
  width: calc(1251 * var(--u)); height: calc(1876 * var(--u));
  pointer-events: none; user-select: none;
}
/* Her picture (Human.png, 2x) is the part of the layer inside the frame; the layer is set to Hard light over the black frame. */
.anatomy { position: absolute; left: 0; top: calc(375 * var(--u)); width: 100%; height: calc(1080 * var(--u)); mix-blend-mode: hard-light; }
.ring { position: absolute; left: calc(583 * var(--u)); top: calc(824 * var(--u)); width: calc(93 * var(--u)); height: calc(88 * var(--u)); }
.leader { position: absolute; left: calc(667 * var(--u)); top: calc(897 * var(--u)); width: calc(78 * var(--u)); height: calc(82 * var(--u)); overflow: visible; }
.callout {
  position: absolute; left: calc(734 * var(--u)); top: calc(897 * var(--u)); width: calc(340 * var(--u));
  margin: 0; font-weight: 600; white-space: pre-line;
  font-size: max(calc(17 * var(--u)), 12px); line-height: 1.353; letter-spacing: -0.022em;
}

/* The picture, ring and line come up first; the typing waits for them. */
.motion .art { opacity: 0; transition: opacity 350ms ease-out; }
.motion .art.ready { opacity: 1; }

/* Typing: the rest of the line keeps its place, so nothing reflows while it types. */
.motion .callout .rest { color: transparent; }
.caret { display: inline-block; width: 0; overflow: visible; white-space: pre; visibility: hidden; transition: opacity 200ms linear; }
.caret i { font-style: normal; }
.caret.on { visibility: visible; }
.caret.on i { animation: blink 1000ms linear infinite; }
.caret.out { opacity: 0; }
@keyframes blink { 0%, 49.99% { opacity: 1; } 50%, 100% { opacity: 0; } }

.copy {
  position: absolute; z-index: 2;
  left: calc(140 * var(--u)); right: calc(140 * var(--u)); bottom: calc(126 * var(--u));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.text { display: flex; flex-direction: column; gap: calc(12 * var(--u)); }
.eyebrow {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: max(calc(28 * var(--u)), 20px); line-height: 1.1429; letter-spacing: 0.007em;
}
h1 {
  margin: 0; font-family: var(--display); font-weight: 500; white-space: nowrap;
  font-size: max(calc(64 * var(--u)), 40px); line-height: 1.0625; letter-spacing: -0.009em;
}
h1 .br-m { display: none; }
.body {
  margin: 0; max-width: max(calc(740 * var(--u)), 400px);
  font-weight: 500; font-size: max(calc(22 * var(--u)), 16px); line-height: 1.318; letter-spacing: -0.017em;
  color: rgba(255, 255, 255, 0.78);
}
.cta { flex: none; padding: calc(10 * var(--u)) calc(13 * var(--u)); border-radius: 1920px; background: var(--glass); }
.dots { display: flex; gap: calc(16 * var(--u)); margin-top: calc(36 * var(--u)); }
.dots i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 10px; background: rgba(255, 255, 255, 0.4); }
.dots i.on { width: calc(32 * var(--u)); background: #fff; }

/* Footer: Apple's footer on black (Igar, 5 Dec): a thin line, copyright, then the legal links, not underlined, thin bars between.
   Apple's light greys swapped for their dark pairs: #6e6e73 → #86868b, #424245 → #d2d2d7, #d2d2d7 → #424245. */
.foot {
  padding: 0 calc(140 * var(--u)) max(calc(24 * var(--u)), 22px);
  background: #000; color: #86868b;
  font-size: max(calc(12 * var(--u)), 12px); line-height: 1.3333; letter-spacing: -0.01em;
}
.foot-copy { margin: 0 0 8px; padding-top: max(calc(20 * var(--u)), 18px); border-top: 1px solid #424245; }
.foot-links { display: flex; flex-wrap: wrap; row-gap: 8px; }
.foot-links a {
  margin-right: 9px; padding-right: 9px; border-right: 1px solid #424245;
  color: #d2d2d7; text-decoration: none; white-space: nowrap; /* no underline (Igar, 5 Dec) */
}
.foot-links a:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.foot-links a:hover { color: #f5f5f7; }

/* Request Access window: Marta's frosted card (her screenshots "Build with us" and "Thank you."). */
.modal {
  width: min(1096px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 72px 74px 92px; border: 0; border-radius: 40px;
  background: rgba(248, 249, 249, 0.95); color: #1d1d1f; outline: none;
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  overflow: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal-close {
  position: absolute; top: 40px; right: 40px; width: 32px; height: 32px; padding: 4px;
  border: 0; background: none; color: #1d1d1f; cursor: pointer;
}
.modal-close svg { width: 24px; height: 24px; display: block; }
.modal h2 {
  margin: 20px 0 0; font-family: var(--display); font-weight: 600;
  font-size: 48px; line-height: 1.1; letter-spacing: -0.015em;
}
.modal-text { margin: 24px 0 0; max-width: 880px; font-size: 22px; line-height: 1.55; letter-spacing: -0.01em; color: #515154; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; margin-top: 74px; }
.fields input {
  width: 100%; height: 74px; padding: 0 30px; border: 1px solid transparent; border-radius: 980px;
  background: #fafafa; color: #1d1d1f; font: 300 22px/1.2 var(--text); letter-spacing: -0.01em; /* light (Igar, 5 Dec: thinner) */
  outline: none; transition: border-color 150ms;
}
.fields input::placeholder { color: #86868b; opacity: 1; }
.fields input:focus { border-color: #1d1d1f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { min-height: 22px; margin: 16px 0 0; font-size: 15px; color: #86868b; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.btn-dark { min-width: 186px; height: 58px; padding: 0 28px; border: 0; cursor: pointer; background: #1d1d1f; color: #fff; font-size: 22px; }
.btn-dark:hover { background: #3a3a3c; }
.modal-thanks { display: flex; flex-direction: column; justify-content: center; min-height: 556px; padding: 0 194px; }
.modal-thanks[hidden] { display: none; }
.modal-thanks h2 { margin: 0; }
.modal-thanks .modal-text { margin-top: 18px; }

@media (max-width: 899px) {
  .modal { padding: 56px 22px 28px; border-radius: 28px; }
  .modal-close { top: 18px; right: 18px; }
  .modal h2 { margin-top: 0; font-size: 32px; }
  .modal-text { margin-top: 14px; font-size: 17px; line-height: 1.45; }
  .fields { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .fields input { height: 54px; padding: 0 22px; font-size: 17px; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .btn-dark { width: 100%; height: 52px; font-size: 17px; }
  .modal-thanks { min-height: 300px; padding: 0 8px; }
}

/* Phone and portrait screens: the chest fills the screen, the words sit at the bottom. */
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  :root {
    --ry: max(220px, 34vh);
    --u: max(calc(100vw / 927), calc((max(100vh, 640px) - var(--ry)) / 1008));
  }
  @supports (height: 100svh) {
    :root {
      --ry: max(220px, 34svh);
      --u: max(calc(100vw / 927), calc((max(100svh, 640px) - var(--ry)) / 1008));
    }
  }
  .nav { gap: 12px; padding: 0 16px; }
  .logo { font-size: 18px; line-height: 24px; }
  /* No page name with its line on the phone, only the logo and the button (Igar, 5 Dec). */
  .links { display: none; }
  /* A small button in its own frosted ring, the sticker on the body like Marta's Request Access (Igar, 5 Dec: 20% smaller). */
  .nav .btn {
    min-width: 0; height: 21px; padding: 0 9px; margin-right: 6px;
    font-size: 10px; letter-spacing: -0.005em;
    box-shadow: 0 0 0 5px rgba(230, 237, 239, 0.3);
  }
  .hero { min-height: 640px; }
  .art { left: calc(40vw - 629.5 * var(--u)); top: calc(var(--ry) - 868 * var(--u)); }
  .anatomy {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .callout {
    left: calc(744 * var(--u) + 6px); top: calc(976 * var(--u) - 8px);
    width: calc(60vw - 114.5 * var(--u) - 22px);
    font-size: 12px; line-height: 16px;
  }
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 62%;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
  }
  .copy { left: 20px; right: 20px; bottom: calc(28px + env(safe-area-inset-bottom)); display: block; }
  /* Golden ratio (φ = 1.618, Igar 5 Dec): sizes 21 / 34 / 16 with the body's line 16 × φ = 26,
     gaps on the Fibonacci steps 8 / 13 / 34: eyebrow tight to the headline, the subheading one step further, 34 to the edge. */
  .copy { bottom: calc(34px + env(safe-area-inset-bottom)); }
  .text { gap: 0; }
  .eyebrow { margin-bottom: 8px; font-size: 21px; line-height: 26px; }
  /* Measured on the letters (baseline to the top of the next capitals, SF Pro on his iPhone, 5 Dec):
     eyebrow → headline 21 px, headline → subheading 34 px, 34 / 21 = 1.618. */
  h1 { margin-bottom: 19px; }
  /* Always three lines, the industry word alone on the third, so nothing jumps while it retypes (Igar, 5 Dec). */
  h1 { white-space: nowrap; font-size: min(34px, 9.4vw); line-height: 1.12; }
  h1 .br { display: none; }
  h1 .br-m { display: inline; }
  .body { max-width: none; font-size: 16px; line-height: 26px; letter-spacing: -0.01em; }
  .cta { display: none; }
  .foot { padding: 0 20px calc(22px + env(safe-area-inset-bottom)); }
}
@media (min-width: 600px) and (max-width: 899px), (min-width: 600px) and (max-aspect-ratio: 1/1) {
  .copy { left: 40px; right: 40px; bottom: calc(40px + env(safe-area-inset-bottom)); }
  .eyebrow { font-size: 22px; line-height: 26px; }
  h1 { font-size: 46px; line-height: 50px; }
  .body { font-size: 19px; line-height: 26px; max-width: 560px; }
  .callout { font-size: 14px; line-height: 19px; top: calc(976 * var(--u) - 9.5px); }
}
@media (max-width: 379px) {
  .links { display: none; }
}
