html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #F7F6F1;
  color: #111111;
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: #111111; text-decoration: none; }
a:hover { color: #5A5D20; }
::selection { background: #CDD05B; color: #111111; }

.page { position: relative; min-height: 100vh; }

/* Grid lines */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.gridlines-inner { position: relative; max-width: 1360px; height: 100%; margin: 0 auto; }
.gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(17,17,17,0.06); }

/* Header */
.site-header { position: relative; z-index: 1; border-bottom: 1px solid #111111; }
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.wordmark { font-size: 12px; letter-spacing: 0.32em; font-weight: 700; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 11px; letter-spacing: 0.25em; font-weight: 500; }

main { position: relative; z-index: 1; }

.section-inner { max-width: 1360px; margin: 0 auto; }
.section-pad { padding: 110px 48px; }
.hero-pad { padding: 96px 48px 110px; }
.ruled-section { border-top: 1px solid #111111; }

/* Hero */
.hero-section { position: relative; overflow: hidden; }
.hero-circle {
  position: absolute;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 50%;
  left: -180px;
  top: -220px;
  pointer-events: none;
}
/* Source order is intro, portrait, bio (so phones read name then photo then
   bio); on desktop the bio is placed back under the intro in column one. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  column-gap: 72px;
  row-gap: 40px;
  align-items: end;
}
.hero-intro { grid-column: 1; grid-row: 1; }
.about-box { grid-column: 1; grid-row: 2; }
.hero-portrait-col { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.hero-location { margin: 0 0 26px; font-size: 10px; letter-spacing: 0.3em; font-weight: 500; opacity: 0.6; }
.hero-name {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 106px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.06;
  text-transform: uppercase;
}
.hero-name span { display: block; }
.hero-role { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.role-dot { width: 10px; height: 10px; background: #CDD05B; display: inline-block; flex: none; }
.hero-role p { margin: 0; font-size: 11px; letter-spacing: 0.28em; font-weight: 600; }
.hero-tagline {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 38ch;
  font-weight: 500;
}
.about-box { border: 1px solid #111111; padding: 36px 40px; max-width: 56ch; }
.about-box h2 { margin: 0 0 20px; font-size: 10px; letter-spacing: 0.3em; font-weight: 600; opacity: 0.6; }
.about-box p { margin: 0 0 16px; font-size: 15px; line-height: 1.85; color: rgba(17,17,17,0.85); }
.about-box p:last-child { margin-bottom: 0; }
.about-meta {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(17,17,17,0.15);
  font-size: 10px !important;
  letter-spacing: 0.2em;
  font-weight: 600;
  line-height: 2 !important;
  opacity: 0.6;
}

.hero-portrait-col { position: relative; }
.badge {
  position: absolute;
  left: -76px;
  top: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #CDD05B;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  z-index: 3;
}
.badge-txt {
  font-family: 'Caveat', cursive;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  width: 110px;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 3/4;
  filter: grayscale(1) contrast(1.06);
  overflow: hidden;
}
.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-caption { margin: 12px 0 0; font-size: 10px; letter-spacing: 0.22em; opacity: 0.55; text-align: right; }

/* Section heads */
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 64px; }
.work-head { margin-bottom: 80px; }
.section-head h2 { margin: 0; font-size: 12px; letter-spacing: 0.3em; font-weight: 600; }
.head-rule { flex: 1; display: flex; align-items: center; }
.rule-accent { width: 48px; height: 3px; background: #CDD05B; }
.rule-accent.dark { background: #111111; }
.rule-line { flex: 1; height: 1px; background: #111111; }
.section-num { font-size: 11px; letter-spacing: 0.2em; opacity: 0.55; }

/* Capabilities */
.cap-list { border-bottom: 1px solid #111111; }
.cap-row {
  display: grid;
  grid-template-columns: 90px 1fr minmax(0, 380px);
  align-items: center;
  gap: 8px 24px;
  padding: 28px 20px;
  border-top: 1px solid #111111;
  transition: background 120ms ease-out;
}
.cap-row:hover { background: #CDD05B; }
.cap-num { font-size: 12px; letter-spacing: 0.2em; font-weight: 500; opacity: 0.55; }
.cap-row h3 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
}
.cap-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(17,17,17,0.72);
  text-align: right;
  justify-self: end;
  max-width: 38ch;
}

/* Secondary craft / tools list under Capabilities */
.meta-strip {
  margin: 44px 0 0;
  display: grid;
  gap: 22px 40px;
  grid-template-columns: 1fr 1fr;
}
.meta-strip > div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: baseline; }
.meta-strip dt { font-size: 10px; letter-spacing: 0.28em; font-weight: 600; opacity: 0.55; }
.meta-strip dd { margin: 0; font-size: 13px; line-height: 1.85; color: rgba(17,17,17,0.78); }

/* Clients */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}
.client-cell {
  background: #F7F6F1;
  padding: 30px 28px;
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 120ms ease-out;
}
.client-cell:hover { background: #CDD05B; }

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 56px;
}
.work-media { position: relative; overflow: hidden; }
.work-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111111;
  color: #F7F6F1;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 140ms ease-out, transform 140ms ease-out;
  pointer-events: none;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  gap: 16px;
}
.work-meta h3 { margin: 0; font-size: 15px; letter-spacing: 0.18em; font-weight: 600; }
.work-meta span { font-size: 10px; letter-spacing: 0.22em; opacity: 0.6; white-space: nowrap; }

/* Process */
.process-section { background: #CDD05B; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}
.process-cell { background: #CDD05B; padding: 36px 28px 44px; }
.process-cell h3 {
  margin: 44px 0 0;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}
.process-cell p { margin: 14px 0 0; font-size: 13px; line-height: 1.65; color: rgba(17,17,17,0.75); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}
.contact-cell {
  background: #F7F6F1;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-cell svg { flex: none; }
.contact-label { margin: 0; font-size: 10px; letter-spacing: 0.28em; font-weight: 600; opacity: 0.6; }
.contact-value { margin: 6px 0 0; font-size: 15px; font-weight: 500; }

.cta-block { margin-top: 130px; }
.cta-kicker { margin: 0 0 26px; font-size: 11px; letter-spacing: 0.3em; font-weight: 600; opacity: 0.6; }
.cta-link {
  display: block;
  font-size: clamp(40px, 7.2vw, 112px);
  letter-spacing: 0.14em;
  font-weight: 600;
  line-height: 1.14;
  color: #111111;
  text-transform: uppercase;
  transition: background 120ms ease-out;
}
.cta-link:hover { background: #CDD05B; color: #111111; }
.cta-rule { margin-top: 36px; height: 4px; background: #CDD05B; }

/* Case study */
.case-hero { position: relative; }
.case-hero-media {
  margin: 0;
  position: relative;
  aspect-ratio: 21/10;
  overflow: hidden;
  border-bottom: 1px solid #111111;
}
.case-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-hero-body { padding: 72px 48px 96px; }
.case-kicker { margin: 0 0 24px; font-size: 10px; letter-spacing: 0.3em; font-weight: 600; opacity: 0.6; }
.case-title {
  margin: 0;
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.04;
  text-transform: uppercase;
}
.case-standfirst {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  max-width: 46ch;
  font-weight: 500;
}
.case-facts {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #111111;
  border: 1px solid #111111;
}
.case-facts > div { background: #F7F6F1; padding: 24px 26px; }
.case-facts dt { font-size: 10px; letter-spacing: 0.28em; font-weight: 600; opacity: 0.6; }
.case-facts dd { margin: 8px 0 0; font-size: 15px; font-weight: 500; }

.case-prose { max-width: 68ch; }
.case-prose p { margin: 0 0 24px; font-size: 16px; line-height: 1.9; color: rgba(17,17,17,0.85); }
.case-prose p:last-child { margin-bottom: 0; }
.case-prose .lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.7;
  font-weight: 500;
  color: #111111;
  border-left: 3px solid #CDD05B;
  padding-left: 26px;
}

.stills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 64px;
}
.still { margin: 0; }
.still-wide { grid-column: 1 / -1; }
.still-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
/* Scope frames (2.39:1) keep their own ratio so the composition is not cropped */
.still-scope .still-media { aspect-ratio: 2.39/1; }
.still-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.still figcaption {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(17,17,17,0.68);
}

/* Product screens · UI is shown whole, never cropped, so the hero and each
   screen sit contained on a tint rather than filling the frame. */
.case-hero-media.is-ui { aspect-ratio: 16/9; background: #EDECE5; }
.case-hero-media.is-scope { aspect-ratio: 2.39/1; }
.case-hero-media.is-ui img { object-fit: contain; }

.screens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 56px;
  align-items: start;
}
.screen { margin: 0; }
.screen-wide { grid-column: 1 / -1; }
.screen-media {
  aspect-ratio: 16/9;
  background: rgba(17,17,17,0.04);
  border: 1px solid #111111;
  padding: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screen-tall .screen-media { aspect-ratio: 4/5; }
.screen-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.screen figcaption {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 0.6;
}

/* Feature list */
.features { border-top: 1px solid #111111; }
.feature-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 24px;
  padding: 22px 20px;
  border-bottom: 1px solid #111111;
  align-items: baseline;
}
.feature-row span { font-size: 12px; letter-spacing: 0.2em; font-weight: 500; opacity: 0.55; }
.feature-row p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Watch · click-to-play facade, so YouTube only loads once asked for */
.watch-frame {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111111;
  border: 1px solid #111111;
}
.watch-link { display: block; position: absolute; inset: 0; }
.watch-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 160ms ease-out, transform 400ms ease-out;
}
.watch-link:hover img { opacity: 0.88; transform: scale(1.015); }
/* The player stays 16:9 for YouTube; a scope poster letterboxes on the black */
.watch-frame.is-scope img { object-fit: contain; }
.watch-frame.is-scope .watch-link:hover img { transform: none; }
.watch-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #CDD05B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease-out;
}
.watch-link:hover .watch-play { transform: translate(-50%, -50%) scale(1.06); }
.watch-play::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 7px;
  border-left: 26px solid #111111;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-note { margin: 14px 0 0; font-size: 10px; letter-spacing: 0.22em; opacity: 0.6; }
.watch-note a { font-weight: 600; text-decoration: underline; }

.case-next { text-align: left; }
.case-back { margin: 44px 0 0; }
.case-back a { font-size: 11px; letter-spacing: 0.25em; font-weight: 600; }

/* Image placeholder shown when a still has not been added yet */
.media-missing {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.045);
  border: 1px dashed rgba(17,17,17,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 500;
  opacity: 0.45;
  text-align: center;
  line-height: 1.8;
}

/* Work card · every poster is natively 16:9, so this ratio crops none of them */
.work-feature .work-media { aspect-ratio: 16/9; }
/* A UI screenshot is shown whole rather than cropped to the card ratio */
.work-feature .work-media.is-ui { background: #EDECE5; }
.work-media.is-ui img { object-fit: contain; }
.work-feature .work-meta { flex-wrap: wrap; gap: 4px 16px; }
.work-feature .work-meta h3 { font-size: clamp(14px, 1.4vw, 19px); letter-spacing: 0.16em; }
.work-feature a { display: block; }
.work-feature a:hover .work-title-row h3 { color: #5A5D20; }
.work-view {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid #111111; }
.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.footer-inner p { margin: 0; font-size: 10px; letter-spacing: 0.22em; opacity: 0.7; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 10px; letter-spacing: 0.22em; font-weight: 500; }

/* Reveal initial states are set by script.js; keep content visible without JS */

/* Tablet */
@media (max-width: 960px) {
  /* Single column: let the source order (name, photo, bio) stand */
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-intro, .about-box, .hero-portrait-col { grid-column: 1; grid-row: auto; }
  .gridlines { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .cap-row { grid-template-columns: 56px 1fr; }
  .cap-desc { grid-column: 2; justify-self: start; text-align: left; max-width: none; }
  .section-pad, .hero-pad { padding: 88px 32px; }
  .header-inner { padding: 18px 32px; }
  .badge { left: auto; right: 0; top: -48px; }
  .case-hero-body { padding: 56px 32px 72px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-hero-media { aspect-ratio: 16/10; }
  .work-grid { column-gap: 24px; row-gap: 44px; }
  .meta-strip { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  /* Sized and tracked so EMMANUEL sits on one line, unbroken */
  .hero-name { font-size: 12.4vw; letter-spacing: 0.09em; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .badge { width: 96px; height: 96px; left: auto; right: 0; top: -48px; }
  .badge-txt { font-size: 17px; width: 76px; }
  .cta-link { font-size: 11.5vw; }
  .section-pad, .hero-pad { padding: 64px 20px; }
  .header-inner { padding: 14px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .client-grid { grid-template-columns: 1fr; }
  .client-cell { padding: 22px 20px; font-size: 13px; letter-spacing: 0.1em; }
  .meta-strip > div { grid-template-columns: 1fr; gap: 6px; }
  /* PHOTOGRAPHY / DEVELOPMENT cannot break, so the row is retuned to hold them */
  .cap-row { grid-template-columns: 40px 1fr; gap: 6px 14px; padding: 20px 0; }
  .cap-row h3 { font-size: 19px; letter-spacing: 0.1em; }
  .cap-desc { font-size: 12.5px; }
  .about-box { padding: 26px 22px; }
  /* The role line wraps to 3 lines here; pin the dot to the first one */
  .hero-role { align-items: flex-start; gap: 10px; }
  .role-dot { margin-top: 3px; }
  .hero-role p { font-size: 10px; letter-spacing: 0.2em; line-height: 1.7; }
  /* Five nav items no longer fit one line beside the wordmark */
  .header-inner { flex-wrap: wrap; gap: 10px 16px; }
  .nav-links { flex-wrap: wrap; gap: 10px 14px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.2em; }
  .case-title { font-size: 13vw; }
  .stills { grid-template-columns: 1fr; row-gap: 44px; }
  .screens { grid-template-columns: 1fr; row-gap: 40px; }
  .feature-row { grid-template-columns: 44px 1fr; padding: 18px 0; }
  .watch-play { width: 64px; height: 64px; }
  .watch-play::after { margin-left: 5px; border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
}
