@import url("https://use.typekit.net/ghw1eow.css");

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

:root {
  --white:    #FFFFFF;
  --ink:      #0A0A0A;
  --orange:   #FF7900; /* display moments only: big labels, logo, hovers, pager active */
  --muted:    #C24E00; /* small orange text: eyebrows, meta labels, footer (4.5:1 on white) */
  --border:   #E0E0E0;
  --hover-bg: #F5F5F5;

  --fd: "neue-haas-grotesk-display", "Helvetica Neue", Arial, sans-serif;
  --ft: "neue-haas-grotesk-text", "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --micro:     12px;   /* small caps labels */
  --detail:    14px;   /* meta values, secondary text */
  --base:      16px;   /* nav, base UI */
  --body:      18px;   /* reading paragraphs */
  --secondary: 26px;   /* leads / intros */
  --tertiary:  42px;
  --display:   58px;   /* page titles */

  /* Medium weight for the small orange uppercase labels (eyebrows, meta, section). */
  --label-weight: 500;
}

html, body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--ft);
  font-size: var(--base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--white);
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  height: 38px;
}
.header-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
/* All nav / footer / action links share one treatment: small, uppercase,
   quiet weight, and a hover underline (never a colour switch). */
.header-nav a {
  display: inline-block;
  font-family: var(--ft);
  font-size: var(--micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
}
.header-nav a:hover,
.header-nav a.active { text-decoration: underline; text-underline-offset: 3px; }

/* ── FOOTER ── */
.site-footer {
  padding: 80px 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: var(--micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.footer-links a {
  font-size: var(--micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── CASE STUDY ── */
.cs-hero { padding: 144px 48px 56px; max-width: 1100px; }
.cs-eyebrow {
  font-size: var(--micro); font-weight: var(--label-weight); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 24px; display: block;
}
.cs-title {
  font-family: var(--fd); font-size: var(--display); font-weight: 600;
  line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 28px;
  text-wrap: balance;
}
.cs-lead {
  font-family: var(--ft); font-size: var(--secondary); font-weight: 400;
  line-height: 1.35; max-width: 760px; margin-bottom: 52px;
  text-wrap: balance;
}
/* Fixed-width columns so the meta row never reflows between projects;
   long values wrap within the column rather than shoving neighbours. */
.cs-meta {
  display: flex; flex-wrap: wrap; gap: 40px;
  padding-top: 28px;
}
.cs-meta div { display: flex; flex-direction: column; gap: 7px; width: 150px; }
.cs-meta dt { font-size: var(--micro); font-weight: var(--label-weight); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cs-meta dd { font-size: var(--detail); line-height: 1.4; }

/* Editorial text section: sticky label + body */
.cs-section {
  padding: 88px 48px; max-width: 1100px;
  display: grid; grid-template-columns: 200px 1fr; gap: 48px;
}
/* Section labels are a project-page signature: big, headline-weight, orange, gooey.
   Detached from the shared small-label style on purpose. */
.cs-section h2 {
  font-family: var(--fd); font-size: var(--secondary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05;
  color: var(--orange); filter: url(#label-bleed);
  position: sticky; top: 96px; align-self: start;
}
.cs-body { font-family: var(--ft); font-size: var(--body); line-height: 1.7; max-width: 640px; text-wrap: pretty; }
.cs-body p + p { margin-top: 20px; }

/* Media — full-bleed stack, zero gaps, no cropping for tall/square */
.cs-media img { display: block; width: 100%; height: auto; }
/* Hero CTA: same unified link treatment (hover underline, no colour switch) */
.cs-cta {
  display: inline-block;
  margin: -24px 0 24px;
  color: var(--ink);
  font-family: var(--ft);
  font-size: var(--micro);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.cs-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-mat {
  background: var(--hover-bg); display: flex; justify-content: center; align-items: center;
  padding: 56px 48px;
}
.cs-mat img { width: auto; max-width: 100%; max-height: 82vh; height: auto; }
.cs-row { display: grid; gap: 0; }
.cs-row img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Project index: the full work grid returns at the foot of each case study.
   Base (mobile) style is a normal block; desktop turns it into a fixed layer
   that the content panel lifts away to unveil. */
.cs-index { padding: 64px 20px 40px; }
.cs-index-label {
  font-family: var(--fd); font-size: var(--micro); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  display: block; margin-bottom: 32px;
}

/* Desktop unveil: the content panel (.cs-doc) sits above a fixed index and
   scrolls up to reveal it, like lifting a card off the table. */
@media (min-width: 821px) {
  .cs-doc {
    position: relative;
    z-index: 1;
    background: var(--white);
    /* Slightly more than 100vh so the panel's lifting shadow travels fully off
       screen once the index is revealed, instead of hanging over the grid. */
    margin-bottom: calc(100vh + 120px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  }
  .cs-index {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 100vh;
    z-index: 0;
    border-top: 0;
    padding: 104px 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .cs-index .work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile unveil: the same lift. Sized in dvh so it stays honest as the
   address bar shows/hides, with a compact 2-up index so the whole set fits
   one screen (a 1-up column would be far taller than the viewport). */
@media (max-width: 820px) {
  .cs-doc {
    position: relative;
    z-index: 1;
    background: var(--white);
    margin-bottom: calc(100vh + 60px);
    margin-bottom: calc(100dvh + 60px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  }
  .cs-index {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    padding: 76px 20px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .cs-index .work-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .cs-index-label { margin-bottom: 18px; }
  /* Cards are ~160px wide here, so the overlay type scales down with them */
  .cs-index .work-card-meta { padding: 12px; }
  .cs-index .work-card-meta .wc-name { font-size: 15px; letter-spacing: -0.01em; }
  .cs-index .work-card-meta .wc-type { font-size: 9px; margin-bottom: 3px; }
  .cs-index .work-card.is-current::before { top: 12px; left: 12px; font-size: 9px; }
}

/* Orange labels carry the headline's display weight in orange;
   only the eyebrow and next-label get the ink-bleed, meta labels stay crisp */
.cs-eyebrow,
.cs-meta dt {
  font-family: var(--fd);
  font-weight: 600;
}

/* ── WORK INDEX (gallery) ── */
.work-wrap { padding: 144px 48px 48px; }
.work-head { max-width: 1100px; margin-bottom: 64px; }
.work-head h1 { font-family: var(--fd); font-size: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 20px; text-wrap: balance; }
.work-head p { font-family: var(--ft); font-size: var(--secondary); font-weight: 400; line-height: 1.35; max-width: 620px; color: var(--ink); text-wrap: balance; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.work-card { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); cursor: url(/assets/icons/crosshair-white.svg) 10 10, url(/assets/icons/crosshair-white.png) 10 10, crosshair; }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(0.16,1,0.3,1); }
.work-card:hover img { transform: scale(1.04); }
/* Duotone layer (JS-cloned from the base img), matching the homepage reel:
   orange at rest, fades to full colour on hover; on touch it fades on scroll-in. */
.work-card .wc-duotone {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; filter: url(#duotone); opacity: 1;
  transition: opacity 450ms ease; pointer-events: none;
}
.work-card:hover .wc-duotone { opacity: 0; }
@media (hover: none) {
  .work-card .wc-duotone { transition: opacity 1200ms ease 300ms; }
  .work-card.in-view .wc-duotone { opacity: 0; }
}
.work-card-meta { position: absolute; left: 0; bottom: 0; padding: 28px; color: var(--white); z-index: 3; }
.work-card-meta .wc-type { font-size: var(--micro); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; display: block; margin-bottom: 8px; }
.work-card-meta .wc-name { font-family: var(--fd); font-size: var(--secondary); font-weight: 600; letter-spacing: -0.02em; }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%); z-index: 2; }

/* The current project sits in its own footer index for context, not as a link */
.work-card.is-current { pointer-events: none; }
.work-card.is-current img { opacity: 0.45; }
.work-card.is-current::before {
  content: "Currently viewing";
  position: absolute; top: 24px; left: 28px; z-index: 3;
  font-family: var(--ft); font-size: var(--micro); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--white);
}

/* ── CONTACT ── */
.contact-wrap { padding: 200px 48px 120px; max-width: 1000px; margin: 0 auto; text-align: center; }
.contact-eyebrow { font-size: var(--micro); font-weight: var(--label-weight); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 28px; display: block; }
.contact-headline { font-family: var(--fd); font-size: 76px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 40px; text-wrap: balance; }
.contact-headline a { color: var(--orange); text-decoration: none; transition: opacity 150ms ease; }
.contact-headline a:hover { opacity: 0.7; }
.contact-body { font-family: var(--ft); font-size: var(--secondary); font-weight: 400; line-height: 1.4; max-width: 640px; margin: 0 auto 64px; text-wrap: pretty; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px; }
.contact-links div { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.contact-links dt { font-size: var(--micro); font-weight: var(--label-weight); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact-links dd { font-size: var(--base); }
.contact-links dd a { color: var(--ink); text-decoration: none; }
.contact-links dd a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* Reveal — transform-only so content is NEVER hidden if a transition or
   observer stalls; worst case it sits 24px low but fully visible. */
.reveal { transform: translateY(24px); transition: transform 800ms cubic-bezier(0.16,1,0.3,1); will-change: transform; }
.reveal.in-view { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: none; } }

@media (max-width: 820px) {
  .cs-title, .work-head h1, .contact-headline { font-size: var(--tertiary); }
  .header-logo img { height: 30px; }
  .header-nav a { font-size: 14px; }
  .cs-section { grid-template-columns: 1fr; gap: 16px; padding: 56px 28px; }
  /* No SVG gooey on phones: the filter costs a render layer even at rest */
  .cs-section h2 { position: static; filter: none; }

  .cs-hero { padding: 120px 28px 40px; }
  .work-wrap, .contact-wrap { padding-left: 28px; padding-right: 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .cs-row { grid-template-columns: 1fr !important; }
  .site-header { padding: 0 28px; }
  .header-nav { gap: 22px; }
  /* The footer was still a single row at 48px side padding, which crushed the
     copyright to ~49px across three lines. Stack it on small screens. */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 56px 28px 40px;
  }
  .footer-links { gap: 20px; }
}

/* Small phones: keep logo + full nav on one uncropped line */
@media (max-width: 480px) {
  .site-header { height: 56px; padding: 0 20px; }
  .header-logo img { height: 24px; }
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 12px; letter-spacing: 0.04em; }
}
