:root {
  color-scheme: light;
  --navy: #0b132b;
  --navy-card: #14233c;
  --paper: #faf9f6;
  --orange: #ff9b00;
  --muted: #4e5768;
  --line: #dcdedc;
  --dark-line: #46526b;
  --light-text: #cbd4e4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 1rem/1.65 "Plus Jakarta Sans", Inter, system-ui, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
h1, h2 { font-weight: 800; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 5.35vw, 5.45rem); }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.5rem); }
h3 { font-size: 1.25rem; }
em { color: var(--orange); font-style: normal; }
:focus-visible { outline: 3px solid #d06400; outline-offset: 4px; }
.dark :focus-visible { outline-color: var(--orange); }
.wrap { width: min(100% - 2 * clamp(1.25rem, 5vw, 5rem), 82rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.dark { background: var(--navy); color: #fff; }
.dark em, .dark .eyebrow { color: var(--orange); }
.eyebrow { color: var(--orange); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.1rem; }
.lead { max-width: 54ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.2rem); margin-top: 1.35rem; }
.dark .lead { color: var(--light-text); }
.skip { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .65rem 1rem; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { position: sticky; z-index: 3; top: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5rem; }
.brand { flex: none; }
.brand img, .footer-inner img { width: 9.25rem; height: auto; }
.header nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem clamp(.75rem, 2.5vw, 2.25rem); }
.header nav a { display: inline-flex; align-items: center; min-height: 2rem; font-size: .86rem; font-weight: 700; text-decoration: none; }
.header nav a:hover, .footer-inner a:hover { color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .45rem; background: var(--orange); color: var(--navy); font-size: .88rem; font-weight: 800; text-decoration: none; }
.button:hover { background: #ffb743; }
.button-small { min-height: 2.7rem; white-space: nowrap; }
.button-outline { border-color: var(--dark-line); background: transparent; color: #fff; }
.button-outline:hover { background: var(--navy-card); border-color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero { padding-block: clamp(3.5rem, 7vw, 7rem); background: radial-gradient(ellipse at 80% 40%, var(--navy-card), var(--navy) 65%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy .eyebrow span { margin-right: .35rem; }
.hero-work { display: grid; grid-template: repeat(2, minmax(0, 1fr)) auto / 1.5fr 1fr; gap: .5rem; height: clamp(24rem, 39vw, 37rem); }
.hero-work img { width: 100%; height: 100%; object-fit: cover; border-radius: .55rem; }
.hero-work .hero-main { grid-row: span 2; object-position: 56% center; }
.hero-work figcaption { display: flex; justify-content: space-between; grid-column: 1 / -1; border-top: 1px solid var(--dark-line); margin-top: .35rem; padding-top: .55rem; color: var(--light-text); font-size: .8rem; }
.hero-work figcaption span { color: var(--orange); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.cycle, .steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.cycle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cycle li { display: grid; align-content: start; padding: 1.05rem; border-bottom: 1px solid var(--line); counter-increment: steps; }
.cycle li:nth-child(odd) { border-right: 1px solid var(--line); }
.cycle li::before, .steps li::before { content: counter(steps, decimal-leading-zero); color: var(--orange); font-size: .78rem; font-weight: 800; margin-bottom: .5rem; }
.cycle strong { font-size: 1.15rem; }
.cycle span { font-size: .91rem; color: var(--muted); }

.pillars, .projects, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2.5vw, 2rem); margin-top: 2.2rem; }
.pillar { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--dark-line); border-radius: .8rem; background: var(--navy-card); }
.pillar > img { width: 100%; height: clamp(11rem, 19vw, 16rem); object-fit: cover; background: #142139; }
.pillar .contain { object-fit: contain; }
.pillar .analytics { background: #fff; }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: clamp(1rem, 2vw, 1.75rem); gap: .85rem; }
.card-copy p, .people p, .dark .steps p { color: var(--light-text); }
.card-copy a { margin-top: auto; color: var(--orange); font-weight: 800; text-underline-offset: .25em; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.steps li { counter-increment: steps; border-top: 1px solid var(--line); padding-top: .8rem; }
.steps li::before { display: block; }
.steps p { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.dark .steps li { border-color: var(--dark-line); }
.dark .steps li::before { color: var(--orange); }
.proposal-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.portfolio { background: #eeeee9; }
.projects { margin-bottom: 2rem; }
.project a { display: block; text-decoration: none; }
.project a:hover h3 { color: var(--orange); }
.project h3 { display: flex; justify-content: space-between; align-items: start; gap: .5rem; padding: .85rem 0; text-wrap: initial; }
.project h3 span { color: var(--orange); }
.project img { aspect-ratio: 5 / 4; width: 100%; object-fit: cover; border-radius: .55rem; }
.project:nth-child(2) img { object-position: center 58%; }
.gallery, .deliverables details { border-top: 1px solid var(--line); }
.gallery:last-child, .deliverables details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 1rem .2rem; font-weight: 800; cursor: pointer; }
summary:hover, summary::marker { color: var(--orange); }
.gallery > a { display: block; max-width: 64rem; margin-bottom: 1rem; }
.gallery-grid { margin: 0 0 1rem; }
.gallery p, .deliverables p, .deliverables ul { color: var(--muted); margin: 0 0 1rem; }
.gallery-grid img { width: 100%; border-radius: .45rem; }
.gallery-grid figcaption { margin-top: .4rem; font-weight: 700; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.people article { border: 1px solid var(--dark-line); border-radius: .8rem; padding: clamp(.85rem, 2vw, 1.5rem); }
.people img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; margin-bottom: .85rem; }
.people p { font-size: .9rem; margin-top: .55rem; }
.people .role { color: var(--orange); font-weight: 700; }
.clients { margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid var(--dark-line); }
.clients ul { display: flex; flex-wrap: wrap; gap: .45rem 1.7rem; margin: .85rem 0 0; padding: 0; list-style: none; color: var(--light-text); }
.proposal { border-top: 1px solid var(--dark-line); }
.footer-inner p, .footer-inner a { font-size: .85rem; }

@media (max-width: 850px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-work { height: clamp(16rem, 64vw, 34rem); }
  .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 1rem; }
  .header { position: static; }
  .header-inner { flex-wrap: wrap; padding-block: .75rem; gap: .4rem; }
  .header nav { order: 1; flex: 0 0 100%; justify-content: flex-start; padding-top: .35rem; }
  .header nav a { font-size: .8rem; }
  .brand img { width: 8rem; }
  .pillars, .projects { grid-template-columns: 1fr; }
  .pillar > img { height: 13rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
}

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