/* ------------------------------------------------------------------
   Foundational AI Consulting · home page
   World: business magazine feature opener. Coated-stock white and
   cobalt as page-scale fields, ink black text, one signal yellow for
   the primary action, photojournalism of real work.
   Type: Archivo Black (display) + Archivo variable 400-700 (text), self-hosted.
   ------------------------------------------------------------------ */
@import url('fonts/fonts-archivo.css');

:root {
  --paper: #f7f7f7;
  --white: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --rule: #d6d0ca;
  --cobalt: #1738c5;
  --cobalt-deep: #10289a;
  --yellow: #f7c80a;
  --yellow-deep: #e0b300;

  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-display: 'Archivo Black', 'Archivo', 'Arial Black', system-ui, sans-serif;

  /* comp frame is 1536 x 1024; 1vw at that width = 15.36px */
  --gutter: 2.9%;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  caret-color: var(--cobalt);
  accent-color: var(--cobalt);
}

::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
html { scrollbar-color: var(--ink) var(--paper); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 12px; font-weight: 500;
}
.skip:focus { top: 16px; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  height: 9%; min-height: 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.brand {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(20px, 2.34vw, 36px); line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav a { font-size: clamp(15px, 1.3vw, 20px); font-weight: 500; color: var(--ink); }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.brand { margin-right: auto; }
.topbar__cta { margin-left: clamp(4px, 0.6vw, 10px); }

.btn-ink {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white) !important;
  font-size: clamp(15px, 1.2vw, 18px); font-weight: 500;
  height: clamp(38px, 2.8vw, 44px); padding: 0 clamp(14px, 1.2vw, 18px);
  transition: background 160ms var(--ease-out);
}
.btn-ink:hover { background: var(--cobalt); text-decoration: none !important; }

/* ---------- cover (first viewport) ---------- */
.cover {
  position: relative;
  height: 100vh; min-height: 640px; max-height: 1400px;
  overflow: hidden;
  background: var(--ink);
}
.cover__photo { position: absolute; left: 0; right: 0; top: 9%; bottom: 0; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.cover__text { position: absolute; z-index: 3; left: 0; right: 0; top: 23.8%; padding: 0 var(--gutter); pointer-events: none; }
.cover__text > * { pointer-events: auto; }
.cover__headline {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 7.03vw, 118px);
  line-height: 0.985;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.cover__headline span { display: block; }

.cover__deck {
  width: 41.3%; min-width: 300px;
  margin: clamp(14px, 1.6vw, 25px) 0 0 -0.3%;
  background: var(--cobalt); color: var(--white);
  padding: clamp(14px, 1.6vw, 24px) clamp(16px, 1.5vw, 24px);
  font-size: clamp(17px, 1.7vw, 27px);
  line-height: 1.32;
  font-weight: 400;
}

.cover__cta {
  position: absolute; z-index: 3;
  left: 2.7%; bottom: 4.5%;
  display: flex; gap: 12px; align-items: stretch;
}
.btn-yellow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: clamp(16px, 1.3vw, 21px);
  height: clamp(44px, 3.1vw, 50px); padding: 0 clamp(16px, 1.3vw, 20px);
  transition: background 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-yellow:active { transform: translateY(1px); background: #d1a700; }
.btn-yellow svg { width: 0.9em; height: 0.9em; }
.strip {
  display: inline-flex; align-items: center;
  background: var(--paper); color: var(--ink);
  font-size: clamp(16px, 1.3vw, 21px); font-weight: 400;
  height: clamp(44px, 3.1vw, 50px); padding: 0 clamp(14px, 1.2vw, 18px);
}
.cover__caption {
  position: absolute; z-index: 3;
  right: 2.7%; bottom: 4.5%;
  margin: 0;
}

/* mobile cover: the stacked translation of the spread */
@media (max-width: 820px) {
  .topbar { position: static; height: auto; min-height: 60px; padding: 10px 20px 0; gap: 8px 12px; flex-wrap: wrap; }
  .topbar .brand { font-size: clamp(11.5px, 3.1vw, 17px); letter-spacing: 0.01em; white-space: nowrap; order: 1; }
  .topbar__cta { order: 2; white-space: nowrap; margin-left: 0; height: 38px; padding: 0 12px; font-size: 14px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 0; border-top: 1px solid var(--rule); margin-top: 2px; }
  .nav a { flex: 1 1 0; text-align: center; padding: 11px 4px; font-size: 14px; border-right: 1px solid var(--rule); }
  .nav a:last-child { border-right: 0; }
  .cover { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: var(--cobalt); }
  .cover__photo { position: relative; top: auto; order: 3; aspect-ratio: 4 / 3; max-height: 70vh; }
  .cover__text { position: static; order: 1; padding: 40px 20px 0; }
  .cover__headline { color: var(--white); font-size: clamp(52px, 16vw, 84px); }
  .cover__deck { width: auto; min-width: 0; margin: 20px 0 0; padding: 0; font-size: 18px; line-height: 1.4; color: rgba(255,255,255,0.92); }
  .cover__cta { position: static; order: 2; margin: 24px 20px 32px; flex-wrap: wrap; gap: 10px; }
  .cover__caption { position: static; order: 4; margin: 0; }
  .cover__caption .strip { display: flex; height: auto; padding: 12px 20px; font-size: 15px; line-height: 1.35; white-space: normal; }
  .strip, .btn-yellow { height: 48px; }
}

/* ---------- departments ---------- */
.dept { padding: clamp(64px, 8vw, 128px) var(--gutter); }
.dept--paper { background: var(--paper); color: var(--ink); }
.dept--cobalt { background: var(--cobalt); color: var(--white); }
.dept--yellow { background: var(--yellow); color: var(--ink); }

.dept__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.dept__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 84px); line-height: 0.95; letter-spacing: -0.01em;
  text-wrap: balance;
}
.dept__lede { margin: 0; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.35; max-width: 34ch; }
.dept--cobalt .dept__lede { color: rgba(255,255,255,0.88); }
.dept--cobalt .dept__title { font-size: clamp(56px, 7.55vw, 128px); line-height: 0.93; }
@media (min-width: 901px) { .dept--cobalt .dept__head { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@media (max-width: 900px) { .dept__head { grid-template-columns: 1fr; align-items: start; } }

/* statements: what we do */
.statements { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--ink); }
.statement {
  display: grid; grid-template-columns: clamp(64px, 8vw, 128px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(28px, 3.2vw, 48px) 0;
  border-bottom: 1px solid var(--ink);
}
.statement:last-child { border-bottom: 4px solid var(--ink); }
.statement__n { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 6vw, 96px); line-height: 0.8; color: var(--cobalt); }
.statement h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -0.01em; }
.statement p { margin: 0; max-width: 62ch; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.4; color: var(--ink-2); }
.statement__you { margin-top: 12px !important; color: var(--ink) !important; font-weight: 500; }
@media (max-width: 600px) { .statement { grid-template-columns: 1fr; gap: 8px; } .statement__n { font-size: 40px; } }

/* photo band */
.band { margin: 0; position: relative; background: var(--ink); }
.band img { width: 100%; height: clamp(360px, 52vw, 820px); object-fit: cover; }
.band figcaption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 3vw, 44px); display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.strip--quiet { background: var(--ink); color: var(--paper); font-size: clamp(13px, 1vw, 15px); height: auto; padding: 8px 12px; }
.band .strip { height: auto; padding: 10px 16px; line-height: 1.3; max-width: 60ch; }

/* commitments: how we work */
.commitments { list-style: none; margin: 0; padding: 0; border-top: 2px solid rgba(255,255,255,0.7); }
.commitments li {
  padding: clamp(18px, 2vw, 30px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 52px); line-height: 1.05; letter-spacing: -0.01em;
  text-wrap: balance; max-width: 22ch;
}
.commitments li:last-child { border-bottom: 2px solid rgba(255,255,255,0.7); }

.ways { margin-top: clamp(48px, 6vw, 96px); background: var(--paper); color: var(--ink); padding: clamp(28px, 3.5vw, 56px) clamp(24px, 3vw, 48px); }
.ways__title { margin: 0 0 clamp(20px, 2.5vw, 36px); font-size: clamp(24px, 2.4vw, 36px); font-family: var(--font-display); font-weight: 400; line-height: 1; }
.ways__list { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.ways__list div { border-top: 2px solid var(--ink); padding-top: 14px; }
.ways__list dt { font-weight: 700; font-size: clamp(19px, 1.5vw, 24px); margin-bottom: 8px; }
.ways__list dd { margin: 0; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.4; color: var(--ink-2); }
@media (max-width: 1000px) { .ways__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ways__list { grid-template-columns: 1fr; } }

/* who: photograph + statement spread */
.dept--who { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); }
.who__photo { margin: 0; position: relative; background: var(--ink); min-height: 420px; }
.who__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; position: absolute; inset: 0; }
.who__photo figcaption { position: absolute; left: clamp(16px, 2.5vw, 40px); right: clamp(16px, 2.5vw, 40px); bottom: clamp(16px, 2.5vw, 40px); display: flex; flex-wrap: wrap; gap: 8px; }
.who__photo .strip { height: auto; padding: 10px 16px; line-height: 1.3; max-width: 44ch; }
.who__body { padding: clamp(48px, 7vw, 112px) var(--gutter); display: grid; align-content: center; gap: clamp(20px, 2.5vw, 36px); }
.who__text { margin: 0; font-size: clamp(21px, 2vw, 32px); line-height: 1.25; font-weight: 500; text-wrap: pretty; max-width: 28ch; }
@media (max-width: 900px) { .dept--who { grid-template-columns: 1fr; } .who__photo { min-height: 0; aspect-ratio: 4 / 3; } .who__photo img { position: static; height: 100%; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact__lead .dept__lede { margin-top: clamp(16px, 2vw, 28px); max-width: 40ch; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px); }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: clamp(15px, 1.1vw, 18px); }
.field input, .field textarea {
  font: inherit; font-size: clamp(17px, 1.2vw, 20px); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.field__err { display: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--cobalt); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.btn-ink--big { height: clamp(48px, 3.6vw, 60px); padding: 0 clamp(20px, 1.8vw, 28px); font-size: clamp(17px, 1.3vw, 21px); font-weight: 700; gap: 10px; border: 0; cursor: pointer; font-family: inherit; }
.btn-ink--big svg { width: 0.9em; height: 0.9em; }
.btn-ink[disabled] { opacity: 0.7; cursor: progress; }
.form__status { margin: 0; font-size: clamp(15px, 1.1vw, 18px); font-weight: 500; max-width: 46ch; }
.form__status.is-error { text-decoration: underline; text-decoration-color: var(--cobalt); text-underline-offset: 0.2em; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* footer */
.footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(28px, 3vw, 44px) var(--gutter);
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; justify-content: space-between;
  font-size: clamp(14px, 1vw, 16px);
}
.footer p { margin: 0; }
.footer .brand { font-size: clamp(16px, 1.3vw, 20px); }
.footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ph { cursor: help; }

/* ---------- motion: one authored moment ---------- */
.cover__headline span { transform: translateY(0.35em); opacity: 0; animation: set-line 700ms var(--ease-out) forwards; }
.cover__headline span:nth-child(1) { animation-delay: 80ms; }
.cover__headline span:nth-child(2) { animation-delay: 180ms; }
.cover__headline span:nth-child(3) { animation-delay: 280ms; }
.cover__deck { clip-path: inset(0 100% 0 0); animation: wipe-in 700ms var(--ease-out) 420ms forwards; }
.cover__cta, .cover__caption { opacity: 0; animation: fade-up 600ms var(--ease-out) 760ms forwards; }
@keyframes set-line { to { transform: none; opacity: 1; } }
@keyframes wipe-in { to { clip-path: inset(0 0 0 0); } }
@keyframes fade-up { from { transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cover__headline span, .cover__deck, .cover__cta, .cover__caption { animation: none; opacity: 1; transform: none; clip-path: none; }
}
