@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f3f2ed;
  --surface: #faf9f5;
  --ink: #171715;
  --muted: #6c6c66;
  --line: #d8d6ce;
  --accent: #536455;
  --accent-soft: #dfe5dc;
  --max: 1180px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --shadow: 0 20px 55px rgba(23, 23, 21, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.display {
  margin: 18px 0 24px;
  font-size: clamp(50px, 7.6vw, 112px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 600;
  max-width: 1000px;
}
.h1 {
  margin: 18px 0 24px;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}
.h2 {
  margin: 14px 0 20px;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 600;
}
.h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.03em; }
.lead { font-size: clamp(19px, 2vw, 26px); line-height: 1.55; color: #3f3f3a; max-width: 800px; }
.body-copy { font-size: 17px; line-height: 1.8; color: #4d4d48; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 242, 237, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216,214,206,.7);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.brand span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a { color: #4e4e49; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.nav-cta::after { content: '↗'; font-size: 14px; }
.menu-button { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 5px 0; }
.mobile-menu { display: none; }

.hero { padding: 88px 0 84px; min-height: calc(100vh - 78px); display: flex; align-items: center; }
.hero-copy { max-width: 1060px; }
.hero-bottom {
  margin-top: 62px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: end;
}
.hero-note { max-width: 690px; font-size: 19px; line-height: 1.65; color: #494944; }
.hero-meta { justify-self: end; text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.7; color: var(--muted); }
.hero-meta strong { color: var(--ink); font-weight: 500; }

.marquee-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 42px; padding: 18px 0; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); white-space: nowrap; }
.marquee-track b { color: var(--accent); font-weight: 500; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head p { max-width: 520px; margin: 0; }

.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.system-item { padding: 30px 24px 34px 0; border-right: 1px solid var(--line); min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; }
.system-item + .system-item { padding-left: 24px; }
.system-item:last-child { border-right: 0; }
.system-number { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.system-item h3 { font-size: 34px; letter-spacing: -.04em; margin: 0 0 14px; }
.system-item p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.system-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #575751; }

.work-grid { display: grid; gap: 22px; }
.project-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-visual { min-height: 420px; position: relative; padding: 28px; display: flex; align-items: flex-end; background: linear-gradient(135deg, #d9ddd5, #eceae3); }
.project-visual.dark { background: linear-gradient(135deg, #1f201e, #3c453d); color: #f6f5f0; }
.project-visual.light { background: linear-gradient(135deg, #e9e6df, #cfcabf); }
.project-browser { width: min(90%, 820px); margin: auto; background: #f7f6f1; border: 1px solid rgba(23,23,21,.12); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.12); overflow: hidden; transform: rotate(-1.4deg); }
.browser-bar { height: 34px; border-bottom: 1px solid #e2e0d8; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c6c3bb; }
.browser-body { padding: 30px; min-height: 240px; background: linear-gradient(#f8f7f2 0 68%, #e3e1d9 68%); }
.browser-label { font-family: 'IBM Plex Mono'; font-size: 9px; text-transform: uppercase; color: #77756e; }
.browser-title { font-size: 32px; line-height: 1.05; letter-spacing: -.05em; margin-top: 18px; max-width: 350px; }
.project-info { padding: 26px 28px 30px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.project-info h3 { font-size: 26px; margin: 0 0 8px; }
.project-info p { margin: 0; color: var(--muted); }
.project-type { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.project-arrow { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.case-card { min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: transparent; }
.case-card .metric { font-size: clamp(46px, 5vw, 76px); letter-spacing: -.06em; line-height: 1; }
.case-card .metric small { font-size: 15px; letter-spacing: 0; color: var(--muted); }
.case-card p { color: var(--muted); max-width: 440px; line-height: 1.7; }
.case-card.featured { background: var(--accent); color: #f7f6f1; border-color: var(--accent); }
.case-card.featured p, .case-card.featured .kicker { color: rgba(255,255,255,.72); }

.about-split { display: grid; grid-template-columns: .88fr 1.12fr; gap: 68px; align-items: start; }
.portrait-wrap { position: sticky; top: 110px; }
.portrait { background: #d8d7d0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .lead { margin-top: 0; }
.about-facts { margin-top: 44px; border-top: 1px solid var(--line); }
.fact-row { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fact-row span:first-child { color: var(--muted); font-family: 'IBM Plex Mono'; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

.cta-band { background: var(--ink); color: #f3f2ed; border-radius: 32px; padding: clamp(36px, 7vw, 82px); }
.cta-band .h2 { max-width: 800px; }
.cta-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.button.primary { background: #f3f2ed; color: var(--ink); border-color: #f3f2ed; }
.button.dark { background: var(--ink); color: #f3f2ed; border-color: var(--ink); }
.button::after { content: '↗'; }

.site-footer { padding: 36px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 30px; color: var(--muted); font-family: 'IBM Plex Mono'; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }

.page-hero { padding: 100px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 700px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 10px 13px; font-family: 'IBM Plex Mono'; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.case-study-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-study-row { display: grid; grid-template-columns: 110px 1fr 180px 40px; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.case-study-row .index { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--muted); }
.case-study-row h3 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.case-study-row .services { font-family: 'IBM Plex Mono'; font-size: 10px; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.case-study-row .arrow { text-align: right; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { border-top: 1px solid var(--line); padding-top: 20px; }
.article-card h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.3; margin: 16px 0 10px; }
.article-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-list { margin-top: 36px; display: grid; gap: 18px; }
.contact-link { padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }
.contact-link span:first-child { color: var(--muted); }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-family: 'IBM Plex Mono'; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 13px 0; outline: 0; color: var(--ink); border-radius: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }

.study-hero { padding: 96px 0 70px; }
.study-meta { margin-top: 42px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border-top: 1px solid var(--line); padding-top: 20px; }
.study-meta div { font-size: 14px; }
.study-meta span { display: block; font-family: 'IBM Plex Mono'; text-transform: uppercase; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.study-cover { min-height: 560px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #cfd5cc, #ece9e0); display: grid; place-items: center; padding: 40px; }
.study-body { display: grid; grid-template-columns: 220px 1fr; gap: 70px; }
.study-nav { position: sticky; top: 110px; align-self: start; display: grid; gap: 12px; font-family: 'IBM Plex Mono'; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.study-content { max-width: 760px; }
.study-content h2 { font-size: 36px; letter-spacing: -.04em; margin: 70px 0 18px; }
.study-content h2:first-child { margin-top: 0; }
.study-content p { font-size: 17px; line-height: 1.85; color: #494944; }
.study-content ul { color: #494944; line-height: 1.85; padding-left: 20px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.metric-box { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.metric-box strong { display: block; font-size: 34px; letter-spacing: -.04em; margin-bottom: 8px; }
.metric-box span { font-size: 12px; color: var(--muted); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-links, .nav .nav-cta { display: none; }
  .menu-button { display: block; }
  .mobile-menu { position: fixed; inset: 78px 0 0; background: var(--bg); padding: 36px 20px; z-index: 49; transform: translateY(-120%); transition: transform .25s ease; display: grid; align-content: start; gap: 8px; }
  .mobile-menu.is-open { transform: translateY(0); }
  .mobile-menu a { font-size: 34px; letter-spacing: -.04em; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: auto; }
  .hero-bottom, .about-split, .contact-grid { grid-template-columns: 1fr; }
  .hero-meta { justify-self: start; text-align: left; }
  .system-grid { grid-template-columns: 1fr 1fr; }
  .system-item:nth-child(2) { border-right: 0; }
  .system-item:nth-child(3), .system-item:nth-child(4) { border-top: 1px solid var(--line); }
  .case-grid { grid-template-columns: 1fr; }
  .portrait-wrap { position: relative; top: auto; max-width: 560px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .study-body { grid-template-columns: 1fr; gap: 35px; }
  .study-nav { position: relative; top: auto; grid-template-columns: repeat(4, max-content); overflow-x: auto; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .section-sm { padding: 54px 0; }
  .hero { padding: 62px 0 56px; }
  .display { font-size: clamp(46px, 15vw, 72px); }
  .h1 { font-size: clamp(42px, 13vw, 64px); }
  .section-head { display: block; margin-bottom: 36px; }
  .section-head p { margin-top: 20px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-item, .system-item + .system-item { padding: 26px 0; border-right: 0; border-top: 1px solid var(--line); min-height: 250px; }
  .system-item:first-child { border-top: 0; }
  .project-visual { min-height: 300px; padding: 16px; }
  .browser-body { min-height: 180px; padding: 22px; }
  .browser-title { font-size: 25px; }
  .project-info { grid-template-columns: 1fr auto; padding: 22px; }
  .case-study-row { grid-template-columns: 54px 1fr 28px; gap: 14px; }
  .case-study-row .services { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 110px 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .study-meta { grid-template-columns: 1fr 1fr; }
  .study-cover { min-height: 380px; }
  .metric-row { grid-template-columns: 1fr; }
}

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