/* =========================================================
   Jill Honig - shared design system
   Palette, type, and components used across all four pages.
   ========================================================= */

:root {
  --cream: #F5F3EE;        /* light paper ground */
  --cream-deep: #EAE8E1;   /* alt-section background */
  --ink: #17384A;          /* deep navy - primary dark (text, dark bands, footer) */
  --warm-mid: #4F6874;     /* navy slate - secondary text */
  --accent: #A9551F;       /* burnt orange - primary accent */
  --accent-light: #E1972E; /* golden - accent on dark backgrounds / hover */
  --accent-2: #2C6485;     /* steel blue - secondary accent (numbering) */
  --rule: #DAD5CC;         /* light warm border */
  --mono: 'DM Mono', monospace;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Outfit', sans-serif;

  --maxw: 1240px;          /* content measure - keeps line lengths sane on wide displays */
  --gutter: 4rem;
  --label: 0.68rem;        /* floor for small uppercase mono labels */
}

/* Centered measure without wrapper divs: full-bleed backgrounds, contained text.
   Collapses to a plain gutter below the max width. */
.section,
.section--tight,
.contact,
.page-hero,
footer.site-footer {
  padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.wrap { max-width: var(--maxw); margin-inline: auto; width: 100%; }

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* <picture> is only a source switcher - keep it out of the box tree so
   existing `.photo-slot img` / `.hero-photo` rules keep matching. */
picture { display: contents; }

/* Shared type helpers ------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--accent); }

.lede {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--warm-mid);
  font-weight: 400;
}

/* Links / buttons ---------------------------------------- */
.text-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { transition: transform 0.25s; }
.text-link:hover svg { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--cream); }

/* Nav ---------------------------------------------------- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 4rem;
  background: rgba(245,243,238,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.site-nav.scrolled { border-bottom: 1px solid var(--rule); }
.nav-logo {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.4rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-mid);
  text-decoration: none;
  transition: color 0.25s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent);
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink);
}

/* Inner-page hero ---------------------------------------- */
.page-hero {
  padding-block: 12rem 4rem;
  background: var(--ink);
  border-bottom: 4px solid var(--accent);
}
.page-hero .eyebrow { display: block; margin-bottom: 1.5rem; color: var(--accent-light); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
  /* balance + a slightly wider measure keeps display headlines to even lines
     instead of orphaning a single word onto a third. */
  max-width: 22ch;
  text-wrap: balance;
  color: var(--cream);
}
.page-hero h1 em { font-style: italic; color: var(--accent-light); }
.page-hero .page-hero-sub {
  font-size: 1.1rem; line-height: 1.7; color: rgba(245,243,238,0.78);
  max-width: 46ch; font-weight: 400;
}

/* Generic section ---------------------------------------- */
.section { padding-block: 5.5rem; }
.section--tight { padding-block: 4rem; }
.section-head { margin-bottom: 3rem; max-width: 60rem; }
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05;
  letter-spacing: -0.01em; margin-top: 0.8rem;
}
.section-head h2 em { font-style: italic; color: var(--accent); }

/* Video: responsive 16:9 frame --------------------------- */
.video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 0 var(--accent-light);
  transition: box-shadow 0.25s;
}
.video-frame:hover { box-shadow: 0 0 0 3px var(--accent-light); }
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-hero { max-width: 1100px; margin: 0 auto; }
.video-caption {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--warm-mid);
  margin-top: 1rem; text-align: center;
}

/* Photo slots (Events) ----------------------------------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.photo-slot {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--cream-deep); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot .slot-label {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--warm-mid); text-align: center;
  padding: 0 1rem; line-height: 1.8;
}
.photo-slot--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.photo-slot img.pos-low { object-position: center 62%; }
.photo-note {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--warm-mid); margin-top: 0.2rem;
}
.photo-pair .photo-note { grid-column: 1 / -1; }
.photo-pair {
  grid-column: 1 / -1; display: grid;
  grid-template-columns: 1fr 1fr; gap: 1rem;
}
.photo-pair .photo-slot { aspect-ratio: 16 / 9; }
.photo-pair img { object-fit: contain; }
.photo-pair .photo-slot:first-child img { object-position: left center; }
.photo-pair .photo-slot:last-child img { object-position: right center; }

/* Case / project cards ----------------------------------- */
.cards { display: grid; gap: 1.5rem; }
.cards--1 { grid-template-columns: 1fr; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--rule); padding: 2rem;
  background: rgba(255,255,255,0.25);
  transition: border-color 0.25s, transform 0.25s;
}
/* Hover affordance only on cards that actually go somewhere. */
.card--link:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.7rem;
  line-height: 1.1; margin-bottom: 0.5rem;
}
.card .card-meta {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.card p { font-size: 0.95rem; line-height: 1.7; color: var(--warm-mid); }
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link .card-cta {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-top: 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.card--link:hover .card-cta { gap: 0.7rem; }

/* Metric callouts (Operations) --------------------------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule); }
.metric { padding: 2.2rem 1.8rem; border-right: 1px solid var(--rule); }
.metric:last-child { border-right: none; }
.metric .metric-num {
  font-family: var(--serif); font-weight: 300; font-size: 3rem;
  line-height: 1; color: var(--accent); margin-bottom: 0.6rem;
}
.metric .metric-label {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--warm-mid); line-height: 1.7;
}
/* Spec row ----------------------------------------------
   Scope statements, NOT results. Deliberately distinct from .metrics so
   capabilities are never dressed up as numbers - the mono category label
   sets the reader's expectation before they hit the value. */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); }
.spec { padding: 1.8rem 1.4rem; border-right: 1px solid var(--rule); }
.spec:last-child { border-right: none; }
.spec-label {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 0.9rem;
}
.spec-value {
  font-family: var(--serif); font-weight: 400; font-size: 1.5rem;
  line-height: 1.15; color: var(--ink); margin-bottom: 0.5rem;
}
.spec-desc { font-size: 0.82rem; line-height: 1.6; color: var(--warm-mid); }

/* Tool stack --------------------------------------------- */
.stack { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stack span {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--ink); border: 1px solid var(--rule); padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.3);
}
.stack .stack-lead { border-color: var(--accent); color: var(--accent); }

/* Workflow diagram --------------------------------------- */
.workflow {
  display: flex; align-items: stretch; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--rule);
}
.workflow-step {
  flex: 1 1 0; min-width: 140px; padding: 1.8rem 1.4rem;
  border-right: 1px solid var(--rule); position: relative;
}
.workflow-step:last-child { border-right: none; }
.workflow-step .wf-num {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  color: var(--accent-2); margin-bottom: 0.7rem;
}
.workflow-step .wf-title {
  font-family: var(--serif); font-size: 1.35rem; margin-bottom: 0.5rem;
}
.workflow-step .wf-desc {
  font-size: 0.82rem; line-height: 1.6; color: var(--warm-mid);
}

/* Lane funnel cards (home) ------------------------------- */
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1200px) and (min-width: 901px) {
  .lanes { grid-template-columns: repeat(2, 1fr); }
}
.lane {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--rule); padding: 2.4rem 2rem 2rem;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.lane:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-4px); }
.lane:hover * { color: var(--cream) !important; }
.lane:hover .lane-arrow { color: var(--accent-light) !important; }
.lane .lane-num {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.16em;
  color: var(--accent-2); margin-bottom: 1.4rem;
}
.lane h3 {
  font-family: var(--serif); font-weight: 300; font-size: 2rem;
  line-height: 1.05; margin-bottom: 0.8rem;
}
.lane p { font-size: 0.9rem; line-height: 1.65; color: var(--warm-mid); margin-bottom: 1.6rem; }
.lane .lane-arrow {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink);
}

/* Dark band ----------------------------------------------
   One definition for every navy section, so the treatment can't drift
   between pages. .section--throughline is the homepage variant. */
.section--dark, .section--throughline { background: var(--ink); color: var(--cream); }
.section--dark .section-kicker, .section--throughline .section-kicker { color: var(--accent-light); }
.section--dark .section-head h2, .section--throughline .section-head h2 { color: var(--cream); }
.section--dark .section-head h2 em, .section--throughline .section-head h2 em { color: var(--accent-light); }
.section--dark .lede, .section--throughline .lede { color: rgba(245,243,238,0.82); }
.section--dark .card {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18);
}
.section--dark .card h3 { color: var(--cream); }
.section--dark .card p { color: rgba(245,243,238,0.78); }
.section--dark .card .card-meta { color: var(--accent-light); }
.throughline { max-width: 46rem; }
.throughline .lede + .lede { margin-top: 1.4rem; }
.throughline-close {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2; color: var(--cream); margin-top: 2.4rem;
}
.throughline-close em { font-style: italic; color: var(--accent-light); }

/* Client roster ------------------------------------------
   Credits-style grid. To attribute a client, add a .roster-via line:
     <li>Samsung<span class="roster-via">via Eleven</span></li>
   An attributed list reads far better than a long bare one. */
/* Rules run along the container, not each item - a partial last row would
   otherwise leave a rule that stops short and reads as unfinished. */
.roster-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.4rem 1.2rem;
  border-block: 1px solid var(--rule);
  padding-block: 1.6rem;
}
.roster-grid li {
  font-family: var(--serif); font-weight: 400; font-size: 1.15rem;
  line-height: 1.3; color: var(--ink);
  padding-block: 0.45rem;
}
.roster-via {
  display: block; margin-top: 0.35rem;
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.08em;
  color: var(--warm-mid);
}

/* Footer ------------------------------------------------- */
footer.site-footer {
  background: var(--ink); color: var(--cream);
  padding-block: 4.5rem 3rem;
}
.privacy-disclosure {
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(245,243,238,0.78);
  margin: 1.4rem auto 0;
  max-width: 56rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.privacy-disclosure a { color: var(--accent-light); text-decoration: none; }
.privacy-disclosure a:hover { text-decoration: underline; }
.privacy-content {
  display: grid; gap: 1.4rem; max-width: 70rem;
}
.privacy-section {
  border: 1px solid var(--rule); padding: 1.5rem 1.8rem; background: rgba(255,255,255,0.18);
}
.privacy-section h3 {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 0.6rem; color: var(--ink);
}
.privacy-section p, .privacy-section a {
  font-size: 1rem; line-height: 1.8; color: var(--warm-mid);
}
.privacy-section a { color: var(--accent-2); text-decoration: none; }
.privacy-section a:hover { text-decoration: underline; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; align-items: flex-end; }
.footer-name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1; letter-spacing: -0.01em;
}
.footer-name em { font-style: italic; color: var(--accent-light); }
.footer-contact { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; line-height: 2.2; }
.footer-contact a { color: var(--cream); text-decoration: none; transition: color 0.25s; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-base {
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(245,243,238,0.68);
}
.footer-base a { color: inherit; text-decoration: none; transition: color 0.25s; }
.footer-base a:hover { color: var(--accent-light); }

/* Reveal animation --------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Focus ------------------------------------------------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Responsive -------------------------------------------- */
@media (max-width: 900px) {
  :root { --gutter: 1.5rem; }

  nav.site-nav { padding: 1.1rem 1.5rem; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column;
    background: var(--cream); padding: 5rem 1.5rem 2rem; gap: 1.6rem;
    transform: translateY(-100%); transition: transform 0.35s ease, visibility 0.35s;
    border-bottom: 1px solid var(--rule); align-items: flex-start;
    /* keep offscreen links out of the tab order while the menu is closed */
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { font-size: 0.85rem; }
  .nav-toggle { display: block; z-index: 101; }

  .page-hero { padding-block: 8.5rem 3rem; }
  .section, .section--tight { padding-block: 3.5rem; }
  footer.site-footer { padding-block: 3rem 2rem; }

  .lanes, .cards--3, .cards--2, .photo-grid { grid-template-columns: 1fr; }
  .metrics, .specs { grid-template-columns: repeat(2, 1fr); }
  .metric, .spec { border-bottom: 1px solid var(--rule); }
  .metric:nth-child(odd), .spec:nth-child(odd) { border-right: 1px solid var(--rule); }
  .metric:nth-child(even), .spec:nth-child(even) { border-right: none; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .workflow-step { flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--rule); }
  .workflow-step:last-child { border-bottom: none; }
  .photo-slot--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .photo-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Contact form ------------------------------------------ */
.contact { padding-block: 5.5rem; border-top: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-intro h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.contact-intro h2 em { font-style: italic; color: var(--accent); }
.contact-intro p { margin-top: 1.2rem; color: var(--warm-mid); font-size: 1rem; line-height: 1.75; max-width: 40ch; }
.contact-form { display: grid; gap: 1.3rem; }
.form-status {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic;
  line-height: 1.5; color: var(--accent);
}
.form-status--error { font-style: normal; font-family: var(--sans); font-size: 0.95rem; color: #b4442e; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--mono); font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--warm-mid);
}
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 0.98rem; font-weight: 400; color: var(--ink);
  background: rgba(255,255,255,0.45); border: 1px solid var(--rule);
  padding: 0.85rem 1rem; width: 100%; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.contact-form button.btn { justify-self: start; cursor: pointer; }
.form-note { font-family: var(--mono); font-size: var(--label); letter-spacing: 0.08em; color: var(--warm-mid); margin-top: 0.4rem; }

@media (max-width: 900px) {
  .contact { padding-block: 3.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
