/* A1 Apple Light. Contract: docs/03_design/ART-DIRECTION-v2.md, sections 4, 5 and 6.1. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../assets/fonts/Inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../../assets/fonts/Inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/Inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../assets/fonts/InterTight-600.woff2') format('woff2'); }

:root {
  --white: #FFFFFF;
  --off: #F5F7FA;
  --navy: #0B183D;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --muted-dark: #A9B3C7;
  --teal: #1EA5A6;
  --teal-ink: #117A7B;   /* teal for small text on white, for AA contrast */
  --line: #D2D2D7;
  --line-dark: rgb(255 255 255 / 16%);

  --display: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;

  --hero: 88px;        /* hero headline, contract 4b */
  --h: 64px;           /* section titles */
  --support: 21px;     /* one support block per screen */
  --statement: 32px;
  --body: 19px;
  --pad: 144px;        /* screen padding, top and bottom */
  --gutter: 90px;      /* 1260px content at 1440 */
  --nav: 52px;
  /* vh is capped so a tall render window cannot stretch the screens */
  --screen-min: min(80vh, 720px);
  --hero-h: min(90vh, 810px);
}

@media (max-width: 1068px) {
  :root { --hero: 72px; --h: 56px; --pad: 112px; --gutter: 40px; }
}
@media (max-width: 734px) {
  :root { --hero: 48px; --h: 40px; --support: 19px; --statement: 26px; --body: 17px; --pad: 88px; --gutter: 20px; --screen-min: min(80svh, 640px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 8px; }

/* Layout */
.wrap { width: 100%; max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(1260px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* Screens size by the 144px padding of contract 4b. The 80vh floor is dropped to reach 30 percent photography. */
.screen {
  padding: var(--pad) 0;
  display: flex; flex-direction: column; justify-content: center;
}
.band-white { background: var(--white); }
.band-off { background: var(--off); }
.band-dark { background: var(--navy); color: #fff; }

/* Type roles: two sizes per screen plus the label */
.headline {
  font-family: var(--display); font-weight: 600;
  font-size: var(--h); line-height: 1.05; letter-spacing: -0.01em;
  text-wrap: balance; color: inherit;
}
.hero-title { font-size: var(--hero); line-height: 1.04; letter-spacing: -0.015em; }
.key { color: var(--ink); font-weight: 600; }
.band-dark .key { color: #fff; }
.support { font-size: var(--support); font-weight: 600; line-height: 1.38; color: var(--muted); text-wrap: pretty; }
.band-dark .support { color: var(--muted-dark); }
/* Statement screen: one 32px paragraph in a 780px column */
.statement-col { width: 100%; max-width: calc(780px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.statement { font-family: var(--display); font-weight: 600; font-size: var(--statement); line-height: 1.25; letter-spacing: -0.01em; color: var(--muted-dark); text-wrap: pretty; }
/* Optional 4b gradient headline, navy to slate blue, with a solid fallback */
.gradient { color: var(--navy); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient { background: linear-gradient(90deg, #0B183D 0%, #4F7396 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.sub {
  font-size: var(--support); font-weight: 600; line-height: 1.38; color: var(--muted);
  max-width: 34em; margin: 24px auto 0; text-wrap: pretty;
}
.band-dark .sub { color: var(--muted-dark); }
/* Labels, not eyebrows: sentence case, 21px, 10px above the headline */
.label { font-weight: 600; font-size: var(--support); line-height: 1.3; color: var(--teal-ink); margin-bottom: 10px; }
.band-dark .label { color: var(--teal); }
.fine { font-size: 15px; color: var(--muted); margin-top: 20px; }
.band-dark .fine { color: var(--muted-dark); }
.closing { margin-top: 56px; }

/* Buttons and chevron links */
.actions { display: flex; align-items: center; justify-content: center; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 11px 21px; border-radius: 999px;
  background: var(--teal); color: var(--navy);
  font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--navy); color: #fff; }
.band-dark .btn:hover { background: #fff; color: var(--navy); }
.btn-sm { height: 32px; padding: 0 16px; font-size: 14px; }
.chev { color: var(--teal-ink); font-size: 17px; font-weight: 500; white-space: nowrap; }
.chev::after { content: "\203A"; display: inline-block; margin-left: 6px; font-size: 1.25em; line-height: 0; transform: translateY(1px); transition: transform 200ms ease; }
.chev:hover { text-decoration: underline; text-underline-offset: 4px; }
.chev:hover::after { transform: translate(3px, 1px); }
.band-dark .chev { color: var(--teal); }

/* Nav, 52px translucent */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav);
  background: rgb(255 255 255 / 72%);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: rgb(0 0 0 / 10%); }
.nav-inner { height: 100%; max-width: calc(1260px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; }
.nav-logo img { width: 120px; height: auto; }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-size: 14px; color: var(--ink); }
.nav-links a { opacity: .82; transition: opacity 160ms ease; }
.nav-links a:hover { opacity: 1; }
.nav-menu { display: none; margin-left: auto; font-size: 15px; font-weight: 500; padding: 8px 0; }
.menu { position: absolute; top: var(--nav); left: 0; right: 0; background: rgb(255 255 255 / 96%); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
.menu a:not(.btn) { display: block; padding: 14px 0; font-size: 22px; font-weight: 600; font-family: var(--display); border-bottom: 1px solid var(--line); }
.menu .btn { width: 100%; margin-top: 20px; }

/* 1. Hero: full-bleed photo, copy in the left-third space */
.hero { position: relative; height: var(--hero-h); min-height: 800px; overflow: hidden; background: var(--off); }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 0%; }
/* Soft white wash on the left only, away from the face, so dark type reads on the bookcase */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(255 255 255 / 82%) 0%, rgb(255 255 255 / 62%) 34%, rgb(255 255 255 / 0%) 54%);
}
.hero-copy {
  position: relative; z-index: 2; height: 100%;
  width: min(50%, 700px); padding: calc(var(--nav) + 24px) 0 40px 4vw;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.hero .headline { color: var(--ink); }
.hero .sub { color: #3A3A3F; max-width: 21em; }
.hero .fine { color: #4A4A50; }

/* 3. Method */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: 40px; text-align: center; }
.steps.wrap { max-width: calc(1260px + 2 * var(--gutter)); }
.numeral { display: block; font-family: var(--display); font-weight: 600; font-size: var(--hero); line-height: 1; letter-spacing: -0.015em; color: var(--teal); margin-bottom: 16px; }
.steps .support { max-width: 20em; margin: 0 auto; }

/* 4. What changes: four large statements, 2x2, two-tone */
.statements { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 96px; margin-top: 40px; }
.statements.wrap { max-width: calc(1060px + 2 * var(--gutter)); }
.statements li { font-family: var(--display); font-weight: 600; font-size: var(--statement); line-height: 1.2; letter-spacing: -0.015em; color: var(--muted); text-wrap: pretty; }
.statements strong { color: var(--ink); font-weight: 600; }

/* 6. Who it is for: two square photos, 28px radius */
.who-title { max-width: none; }
.duo { width: 100%; max-width: calc(1260px + 2 * var(--gutter)); margin: 40px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }
.photo-s1 { object-position: 50% 30%; }
.photo-s3 { object-position: 56% 40%; }
.duo figcaption { margin-top: 24px; max-width: 26em; }

/* Full-bleed statement over H2_a, 35 percent navy scrim, text in the space above the heads */
.photo-statement { position: relative; height: min(80vh, 860px); min-height: 800px; overflow: hidden; background: var(--navy); display: flex; align-items: flex-start; }
.photo-statement-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.photo-statement::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(11 24 61 / 35%); }
.photo-statement .statement-col { position: relative; z-index: 2; padding-top: 72px; }
.statement-white { color: #fff; text-shadow: 0 1px 24px rgb(11 24 61 / 45%); }

/* 6. Andres */
.founder { display: grid; grid-template-columns: 440px 1fr; gap: 72px; align-items: center; margin-top: 40px; }
.portrait { width: 440px; height: 440px; border-radius: 50%; background: var(--off); display: grid; place-items: center; }
.portrait img { width: 404px; height: 404px; border-radius: 50%; }
.founder .support { max-width: 26em; }
.caption { margin-top: 20px; font-size: var(--support); font-weight: 600; color: #fff; line-height: 1.35; }
.strip { margin-top: 32px; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted-dark); }
.chev-lg { display: inline-block; margin-top: 24px; }

/* 7. People stay in charge */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 40px; }
.split h3 { font-size: var(--body); font-weight: 600; color: var(--teal-ink); margin-bottom: 12px; }
.lines li { padding: 14px 0; border-top: 1px solid var(--line); }
.lines li:last-child { border-bottom: 1px solid var(--line); }

/* 8. Answers */
.faq { margin-top: 40px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: var(--support); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--teal-ink); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* 9. Final call */
.demo-note { margin-top: 28px; }

/* Footer, light so it never sits dark on dark */
.footer { background: var(--off); color: var(--muted); font-size: 13px; line-height: 1.6; padding: 56px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 320px; }
.footer-brand img { width: 200px; margin-bottom: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 64px; }
.footer h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer li { margin-bottom: 6px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; gap: 24px; padding-top: 20px; }

/* Motion. Applies only with html.motion, which is never set under reduced motion. */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .settle { opacity: 0; animation: settle 900ms ease forwards; animation-delay: var(--d, 0ms); }
.motion .hero-img { animation: zoom 1600ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.04); } to { transform: scale(1); } }

/* Tablet */
@media (max-width: 1068px) {
  .hero-copy { width: 56%; padding-left: 3vw; }
  .founder { grid-template-columns: 300px 1fr; gap: 48px; }
  .portrait { width: 300px; height: 300px; }
  .portrait img { width: 272px; height: 272px; }
  .statements li { font-size: 28px; }
}

/* Phone */
@media (max-width: 734px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: block; }

  /* Hero stacks: headline centred above the photo, photo cropped to the face side */
  .hero { height: auto; min-height: 0; overflow: visible; background: var(--white); display: flex; flex-direction: column-reverse; }
  .hero::before { display: none; }
  .hero-media { position: relative; inset: auto; height: min(68svh, 540px); overflow: hidden; }
  .hero-img { object-position: 80% 0%; }
  .hero-copy { width: 100%; height: auto; padding: calc(var(--nav) + 48px) var(--gutter) 48px; }
  .hero .sub { max-width: none; }

  .actions { flex-direction: column; gap: 20px; margin-top: 32px; width: 100%; }
  .actions .btn { width: 100%; }
  .closing { margin-top: 48px; }

  .steps { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .numeral { margin-bottom: 12px; }

  .statements { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; text-align: center; }

  .duo { grid-template-columns: 1fr; gap: 48px; margin-top: 48px; }
  .duo figcaption { margin-top: 20px; }

  .founder { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; justify-items: center; text-align: center; }
  .portrait { width: 260px; height: 260px; }
  .portrait img { width: 236px; height: 236px; }

  .split { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .faq { margin-top: 40px; }

  /* Phone: a portrait crop would cut two of the three faces. The statement sits on navy, the photo follows at 4:3. */
  .photo-statement { height: auto; min-height: 0; flex-direction: column; }
  .photo-statement::before { display: none; }
  .photo-statement .statement-col { padding: 64px var(--gutter) 40px; }
  .photo-statement-img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 50% 45%; order: 2; }
  .statement-white { text-shadow: none; }
  .label { font-size: 17px; }
  .steps .support { max-width: 22em; }
  .footer-top { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-cols > div:last-child { grid-column: 1 / -1; }
}
