/* ============================================
   TOKENS
   ============================================ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #FAFAFA;
  --ink: #0F0F0F;
  --ink-soft: #4A4A4A;
  --muted: #8A8A8A;
  --accent: #2563EB;
  --accent-soft: #EEF2FF;
  --border: #EBEBEB;
  --border-strong: #D8D8D8;

  --font-display: 'Inclusive Sans', sans-serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;

  --max-width: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

img, video {
  max-width: 100%;
  display: block;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--ink); }

.header-cta {
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  transition: background 0.15s ease;
}

.header-cta:hover { background: var(--accent); }

@media (max-width: 640px) {
  .main-nav { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
}

.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

.pill { margin: 0 0 28px; }

.eyebrow { margin: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero-text { min-width: 0; }

.hero-photo {
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

.hero-photo img {
  width: 100%;
  height: auto;
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    justify-self: start;
    max-width: 280px;
    order: -1;
  }
}

.hero-headline {
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.12;
  max-width: 22ch;
  font-weight: 600;
}

.hero-emphasis {
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 6vw, 80px);
}

.about-intro h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  position: sticky;
  top: 100px;
}

.about-body p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-intro h2 { position: static; }
}

/* ============================================
   WORK INTRO
   ============================================ */
.work-intro {
  padding: clamp(32px, 6vw, 64px) 0 clamp(24px, 4vw, 40px);
}

.work-intro h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 20ch;
}

/* ============================================
   CASE STUDY
   ============================================ */
.case-study {
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.case-study.alt {
  background: var(--bg-alt);
}

.case-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.case-index {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.case-title {
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 16px;
}

.case-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 24px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 6px 14px;
}

.case-study.alt .tag {
  background: #fff;
}

.case-media {
  margin: clamp(32px, 6vw, 56px) 0;
}

.case-media.full-bleed {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}

.case-media img,
.case-media video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.video-wrap {
  position: relative;
}

.video-wrap video {
  display: block;
}

.video-toggle {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s ease;
}

.video-toggle:hover { background: rgba(0,0,0,0.75); }

.video-toggle svg { fill: currentColor; }

.case-media.inline {
  max-width: calc(var(--max-width) - 2 * var(--gutter) - 120px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}

.case-media.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.case-media.stacked {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 800px) {
  .case-media.two-up { grid-template-columns: 1fr; }
  .case-media.inline { max-width: 100%; }
}

.case-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.case-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--border);
}

.case-row-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.case-row-content {
  max-width: 68ch;
}

.case-row-content p {
  color: var(--ink-soft);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink) !important;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 24px !important;
}

@media (max-width: 700px) {
  .case-row { grid-template-columns: 1fr; gap: 12px; }
}

/* Impact grid */
.impact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.impact-grid li {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study.alt .impact-grid li { background: var(--bg-alt); }
.case-study.alt .impact-grid { background: var(--border); }

.impact-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.impact-text {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .impact-grid { grid-template-columns: 1fr; }
}

.context-note {
  font-size: 14.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 60ch;
}

/* ============================================
   BRAND & VISUAL DESIGN
   ============================================ */
.brand-work {
  border-top: 1px solid var(--border);
  background: var(--ink);
  padding-bottom: clamp(48px, 8vw, 88px);
}

.brand-hero img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.brand-intro {
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

.brand-work .section-tag {
  color: var(--accent);
}

.brand-intro h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  color: #fff;
  margin-bottom: 20px;
}

.brand-blurb {
  color: #B8B8B8;
  font-size: 17px;
  max-width: 68ch;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.inline-link:hover { color: #fff; }

.brand-plate {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) var(--gutter) 0;
}

.brand-plate img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.plate-caption {
  font-size: 14px;
  color: #8A8A8A;
  margin-top: 14px;
}


.contact {
  padding: clamp(72px, 12vw, 140px) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 16ch;
  margin: 0 auto 16px;
}

.contact-lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 46ch;
  margin: 0 auto 40px;
}

.contact-link-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.contact-link-primary:hover { color: var(--accent); }

.contact-social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
}

.social-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.15s ease;
}

.social-link:hover { color: var(--ink); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner a:hover { color: var(--ink); }

/* ============================================
   FOCUS STATES
   ============================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
