@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500&display=swap');

:root {
  --ink:       #0d0d0d;
  --ink-2:     #2a2a2a;
  --ink-3:     #444;
  --ink-4:     #888;
  --ink-5:     #bbb;
  --white:     #ffffff;
  --bg:        #f5f5f5;
  --rule:      #e8e8e8;
  --rule-2:    #d4d4d4;
  --accent:    #0d0d0d;
  --pos:       #1a5c3e;
  --neg:       #7a1a1a;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Geist', system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-weight: 400;
}

img { display: block; max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 em { font-style: italic; color: var(--ink-2); }

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}

h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-3);
  margin-bottom: 16px;
}

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

p strong { font-weight: 500; color: var(--ink-2); }

/* ── EYEBROW TAG ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--ink-5);
  display: block;
}

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

.header-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-name:hover { opacity: 0.65; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 16px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 1px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.main-nav ul { display: flex; gap: 32px; list-style: none; }

.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 500; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

/* ── HERO ── */
.page-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.page-hero .subtitle {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-3);
  max-width: 520px;
  margin-top: 22px;
  line-height: 1.7;
}

/* ── FEATURED CASE ── */
.featured-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 88px 0;
  border-bottom: 1px solid var(--rule);
}

.featured-case h2 { margin-bottom: 16px; }
.featured-case p { max-width: 420px; }

.featured-case .case-image {
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(13,13,13,0.05);
}
.featured-case .case-image img { width: 100%; height: auto; }

/* ── READ MORE ── */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  margin-top: 22px;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.read-more:hover { opacity: 0.6; }

/* ── CASE CARDS — 1px border grid ── */
.case-grid-wrap {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.case-card {
  border-right: 1px solid var(--rule);
  padding: 44px 44px 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.case-card:last-child { border-right: none; }
.case-card:hover {
  background: #fcfcfc;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(13,13,13,0.05);
}

.case-card__chip {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--rule-2);
  border-radius: 100px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 18px;
  align-self: flex-start;
}

.case-card h3 { margin-bottom: 10px; }
.case-card p { font-size: 15px; }
.case-card .read-more { margin-bottom: 0; }

.case-card__img {
  margin-top: 36px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  background: var(--bg);
  height: 180px;
}
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card:hover .case-card__img img { transform: scale(1.02); transition: transform 0.35s var(--ease); }

/* ── STAT STRIP — 1px grid ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat-box {
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
  text-align: left;
}
.stat-box:last-child { border-right: none; }

.stat-box .num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-box .lbl {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-4);
  line-height: 1.4;
}

.stat-box.pos .num { color: var(--pos); }
.stat-box.neg .num { color: var(--neg); }

/* ── META STRIP ── */
.meta-strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}

.meta-item {
  padding: 18px 32px 18px 0;
  margin-right: 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-item:last-child { border-right: none; }

.meta-item .meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.meta-item .meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

/* ── SUB-NAV ── */
.sub-nav {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0;
}

.sub-nav-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sub-nav .project-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.sub-nav ul { display: flex; gap: 28px; list-style: none; }

.sub-nav a {
  font-size: 12px;
  color: var(--ink-4);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--ink); }

/* ── CASE STUDY SECTIONS ── */
main section {
  scroll-margin-top: 110px;
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
main section:last-child { border-bottom: none; }

main section h2 { margin-bottom: 20px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 40px;
  align-items: start;
}

.story-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}

.story-section:first-of-type {
  padding-top: 40px;
}

.story-section__label {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-section__num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.story-section__title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.story-section__body {
  min-width: 0;
}

.story-section__body > * {
  margin-bottom: 0;
}

.story-section__body > * + * {
  margin-top: 20px;
}

.story-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 8px;
}

.story-two-col > * {
  min-width: 0;
}

.story-two-col p + p {
  margin-top: 14px;
}

.story-img {
  width: 100%;
  margin: 28px 0 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, #fbfbfb 0%, #f3f3f3 100%);
  box-shadow: 0 18px 40px rgba(13,13,13,0.06);
}

.callout {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fafafa 0%, #f6f6f6 100%);
}

.callout__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}

.callout p {
  margin: 0;
}

.pull-quote {
  margin-top: 8px;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  background: #fafafa;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.learnings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--rule);
}

.learning-cell {
  background: var(--white);
  padding: 24px 24px 22px;
}

.learning-cell h3 {
  margin-bottom: 10px;
}

.learning-cell p {
  margin: 0;
  font-size: 15px;
}

.outcome-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px 0 0;
  background: var(--white);
}

.outcome-cell {
  padding: 28px 24px 24px;
  border-right: 1px solid var(--rule);
  min-width: 0;
}

.outcome-cell:last-child {
  border-right: none;
}

.outcome-cell .delta {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.outcome-cell .delta.pos { color: #1a6644; }
.outcome-cell .delta.neg { color: #7a1a1a; }

.outcome-cell .desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.3;
  margin-bottom: 4px;
}

.outcome-cell .desc-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-4);
  line-height: 1.35;
}

blockquote {
  padding: 28px 36px;
  border-left: 2px solid var(--ink);
  margin: 44px 0;
  background: #fafafa;
}

blockquote p {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 12px;
}
blockquote cite {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

ul.styled-list { list-style: none; margin: 20px 0 24px; }

ul.styled-list li {
  padding: 12px 0 12px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  line-height: 1.65;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
ul.styled-list li:first-child { border-top: 1px solid var(--rule); }

ul.styled-list li::before {
  content: '—';
  color: var(--ink-5);
  font-size: 13px;
  flex-shrink: 0;
}

ul.styled-list li strong { font-weight: 500; color: var(--ink-2); }

.case-study-image {
  width: 100%;
  border-radius: var(--r-lg);
  margin: 44px 0;
}

.image-placeholder {
  background: var(--bg);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 44px 0;
  min-height: 300px;
}

/* ── ABOUT ── */
.about-hero-section {
  background: var(--ink);
  padding: 100px 0;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-hero-section .eyebrow { color: rgba(255,255,255,0.3); }
.about-hero-section .eyebrow::before { background: rgba(255,255,255,0.2); }

.about-hero-section h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 0;
}

.about-hero-section .hero-image img {
  width: 100%;
  max-width: 360px;
  border-radius: var(--r-xl);
}

.about-content { padding: 80px 0; max-width: 660px; }
.about-content h3 { margin-bottom: 16px; font-size: 26px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 48px;
}

.skill-tag {
  background: var(--white);
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
}

/* ── DESIGN SYSTEMS PAGE ── */
.hero-light-blue {
  background: #f0f4ff;
  border: 1px solid #dde4f5;
  padding: 52px;
  border-radius: var(--r-xl);
  margin-bottom: 48px;
}

/* ── SECTION DIVIDER ── */
.section-divider { border: none; border-top: 1px solid var(--rule); margin: 64px 0; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { justify-content: flex-start; }
  .hamburger { display: flex; }
  .hamburger { margin-left: auto; }

  /* Nav dropdown */
  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 4px 16px 16px;
    z-index: 200;
  }
  .main-nav ul.active { display: flex; }
  .main-nav a { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--rule); }
  .main-nav a:last-child { border-bottom: none; }

  /* Typography */
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  p  { font-size: 15px; }

  /* Homepage hero */
  .page-hero { padding: 40px 0 36px; }
  .page-hero .subtitle { font-size: 15px; margin-top: 14px; }

  /* Featured case */
  .featured-case { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .featured-case .text-col { order: 2; }
  .featured-case .case-image { order: 1; border-radius: 14px; }
  .featured-case h2 { font-size: 28px; }

  /* Case cards */
  .case-grid-wrap { border-top: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { border-right: none; border-bottom: 1px solid var(--rule); padding: 28px 28px 0; }
  .case-card:last-child { border-bottom: none; }
  .case-card__img { height: 160px; margin-top: 24px; }

  /* Stat strip */
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-box { padding: 20px 14px; }
  .stat-box .num { font-size: 30px; }
  .stat-box:nth-child(2) { border-right: none; }
  .stat-box:nth-child(3) { border-top: 1px solid var(--rule); }
  .stat-box:nth-child(4) { border-top: 1px solid var(--rule); border-right: none; }

  /* Two col */
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .story-section { grid-template-columns: 1fr; gap: 16px; padding: 44px 0; }
  .story-section:first-of-type { padding-top: 28px; }
  .story-section__num { font-size: 32px; }
  .story-section__label { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  .story-two-col { grid-template-columns: 1fr; gap: 24px; }
  .pull-quote { padding: 22px 20px; font-size: 21px; }
  .learnings-grid { grid-template-columns: 1fr; }

  .outcome-row { grid-template-columns: 1fr 1fr; }
  .outcome-cell { padding: 22px 18px 20px; border-right: 1px solid var(--rule); }
  .outcome-cell:nth-child(2) { border-right: none; }
  .outcome-cell:nth-child(3),
  .outcome-cell:nth-child(4) { border-top: 1px solid var(--rule); }
  .outcome-cell:nth-child(4) { border-right: none; }
  .outcome-cell .delta { font-size: 32px; }

  /* Sub nav */
  .sub-nav { top: 56px; }
  .sub-nav-inner { flex-direction: column; align-items: flex-start; height: auto; padding: 10px 0; gap: 8px; }
  .sub-nav ul { gap: 16px; flex-wrap: wrap; }
  .sub-nav a { font-size: 12px; }

  /* Meta strip */
  .meta-strip { flex-wrap: wrap; }
  .meta-item { padding: 12px 16px 12px 0; margin-right: 16px; }
  .meta-item .meta-value { font-size: 13px; }

  /* About */
  .about-hero-section { padding: 56px 0; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-hero-inner .hero-image { order: -1; }
  .about-hero-section h2 { font-size: 28px; }
  .about-hero-section .hero-image img { max-width: 240px; }
  .about-content { padding: 44px 0; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skill-tag { font-size: 13px; padding: 12px 14px; }

  /* Styled list */
  ul.styled-list li { font-size: 14px; }

  /* Blockquote */
  blockquote { padding: 16px 20px; }
  blockquote p { font-size: 17px; }
}
