:root {
  --bg: #f4f3ef;
  --surface: #fbfaf7;
  --ink: #101010;
  --muted: #686760;
  --line: #d8d6cf;
  --ugc: #6f61ff;
  --anki: #0e9e92;
  --veg: #00c93a;
  --radius: 18px;
  --max: 1280px;
  --shadow: 0 16px 50px rgba(10, 10, 10, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #111; color: #fff; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section-pad { padding: 104px 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; background: #111; color: white; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,243,239,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(244,243,239,.96); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: Manrope, Inter, sans-serif; font-weight: 800; letter-spacing: -.03em; }
.main-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 600; }
.main-nav a { color: #34332f; transition: opacity .2s ease; }
.main-nav a:hover { opacity: .52; }
.menu-button { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-button span { display: block; height: 1.5px; background: #111; margin: 7px 0; transition: transform .2s ease; }

.eyebrow { margin: 0 0 20px; font-size: 12px; line-height: 1.3; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero { display: flex; align-items: center; padding: 112px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 8vw; align-items: center; }
.hero h1, .section-heading h2, .project-head h2, .contact h2 {
  font-family: Manrope, Inter, sans-serif;
  margin: 0;
  letter-spacing: -.055em;
  line-height: .95;
}
.hero h1 { font-size: clamp(54px, 6.2vw, 88px); max-width: 850px; line-height: 1; }
.hero-intro { max-width: 720px; margin: 30px 0 0; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; color: var(--muted); }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid #111; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: #111; color: white; }
.button-outline { background: transparent; color: #111; }
.text-link { font-weight: 700; border-bottom: 1px solid #111; padding-bottom: 3px; }
.hero-side { border-top: 1px solid var(--line); }
.hero-stat { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.hero-stat span { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hero-stat p { margin: 0; color: var(--muted); line-height: 1.45; }

.section-heading { max-width: 820px; }
.section-heading h2 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.02; }
.project { padding: 82px 0 116px; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.project-head { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(220px, auto); gap: 28px; align-items: start; }
.project-number { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.project-head h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1; }
.project-role { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.project-tags span, .mini-tags span { border: 1px solid var(--line); background: rgba(255,255,255,.45); border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 700; }
.project-ugcflow .project-number, .project-ugcflow .eyebrow { color: var(--ugc); }
.project-anki .project-number, .project-anki .eyebrow { color: var(--anki); }
.project-vegetally .project-number, .project-vegetally .eyebrow { color: #00a92f; }
.project-summary { display: grid; grid-template-columns: 1.15fr .85fr; gap: 6vw; margin-top: 40px; margin-bottom: 44px; }
.project-summary p { margin: 0; color: var(--muted); line-height: 1.62; font-size: 16px; }
.project-summary .project-lead { color: var(--ink); font-size: clamp(21px, 2vw, 29px); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.project-summary .project-cta { align-self: end; }

.media-frame { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); }
.media-hero { margin-top: 8px; }
.image-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.media-frame img { width: 100%; height: auto; transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.image-button:hover img { transform: scale(1.01); }
.media-frame figcaption { padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.image-grid { margin-top: 22px; display: grid; gap: 22px; }
.image-grid-2 { grid-template-columns: 1fr 1fr; }
.image-grid-3 { grid-template-columns: repeat(2, 1fr); }
.image-grid-3 > :first-child { grid-column: 1 / -1; }
.feature-row { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.3); }
.feature-row > div { padding: 28px; min-height: 180px; border-right: 1px solid var(--line); }
.feature-row > div:last-child { border-right: 0; }
.feature-row span, .process-grid span { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.feature-row h3, .technical-copy h3, .process-grid h3 { font-family: Manrope, Inter, sans-serif; margin: 22px 0 10px; font-size: 24px; letter-spacing: -.03em; }
.feature-row p, .technical-copy p, .process-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.workflow { margin-top: 54px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: Manrope, Inter, sans-serif; font-size: clamp(17px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.025em; }
.workflow-line b { color: #aaa79d; font-weight: 500; }
.technical-block { margin-top: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; padding-top: 56px; border-top: 1px solid var(--line); }
.technical-copy h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; margin: 0 0 20px; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.code-frame img { aspect-ratio: 16 / 11; object-fit: cover; object-position: left top; }

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.about-copy { padding-top: 30px; }
.about-copy p { margin: 0 0 20px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--muted); }
.capabilities { background: #111; color: #fff; }
.capabilities .section-heading { max-width: 980px; }
.capabilities .section-heading h2 { color: white; }
.capability-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #343434; border-radius: var(--radius); overflow: hidden; }
.capability-card { padding: 34px; border-right: 1px solid #343434; }
.capability-card:last-child { border-right: 0; }
.capability-card .eyebrow { color: #b9b9b9; }
.capability-card ul { list-style: none; margin: 0; padding: 0; }
.capability-card li { padding: 14px 0; border-bottom: 1px solid #2d2d2d; color: #dedede; }
.capability-card li:last-child { border-bottom: 0; }

.process { background: var(--surface); }
.process-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid > div { padding: 30px 28px 40px 0; border-right: 1px solid var(--line); }
.process-grid > div + div { padding-left: 28px; }
.process-grid > div:last-child { border-right: 0; }

.resume-section { border-top: 1px solid var(--line); background: var(--surface); }
.resume-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end; padding: 44px 0; }
.resume-copy { max-width: 760px; }
.resume-copy h2 { font-family: Manrope, Inter, sans-serif; margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.resume-copy p:not(.eyebrow) { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.resume-download { white-space: nowrap; }

.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10vw; align-items: end; }
.contact h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; }
.contact-copy p { margin: 0 0 24px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.contact-email { display: inline-block; font-family: Manrope, Inter, sans-serif; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; border-bottom: 2px solid #111; padding-bottom: 4px; }
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 38px; }
.footer-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.lightbox { width: min(94vw, 1600px); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #101010; box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 18px; right: 22px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.55); color: white; font-size: 26px; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }

@media (max-width: 1000px) {
  .section-pad { padding: 96px 0; }
  .hero-grid, .about-grid, .contact-grid, .technical-block, .resume-card { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding: 96px 0 82px; }
  .hero-side { max-width: 650px; }
  .project-head { grid-template-columns: 1fr; gap: 16px; }
  .project-tags { justify-content: flex-start; }
  .project-summary { grid-template-columns: 1fr; gap: 28px; }
  .image-grid-3 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row > div { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .feature-row > div:last-child { border-bottom: 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { border-right: 0; border-bottom: 1px solid #343434; }
  .capability-card:last-child { border-bottom: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid > div:nth-child(2) { border-right: 0; }
  .process-grid > div:nth-child(3), .process-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section-pad { padding: 76px 0; }
  .nav-wrap { min-height: 66px; }
  .menu-button { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 66px;
    flex-direction: column;
    gap: 0;
    background: #f8f7f3;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; }
  .hero { padding: 76px 0 68px; }
  .hero h1 { font-size: clamp(44px, 12vw, 62px); }
  .hero-intro { font-size: 17px; margin-top: 24px; }
  .section-heading h2 { font-size: clamp(34px, 10vw, 48px); }
  .project { padding: 58px 0 84px; }
  .project-head h2 { font-size: clamp(38px, 11vw, 54px); }
  .project-summary { margin-top: 36px; margin-bottom: 36px; }
  .project-summary .project-lead { font-size: 21px; }
  .image-grid-2, .image-grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .image-grid { margin-top: 18px; }
  .workflow { margin-top: 50px; padding: 28px 0; }
  .workflow-line { gap: 11px; font-size: 17px; }
  .technical-block { margin-top: 50px; padding-top: 50px; }
  .technical-copy h3 { font-size: 34px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid > div, .process-grid > div + div { border-right: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .process-grid > div:first-child { border-top: 0; }
  .contact h2 { font-size: clamp(38px, 11vw, 54px); }
  .resume-card { padding: 28px 0; }
  .resume-copy h2 { font-size: 34px; }
  .resume-download { width: 100%; }
  .contact-email { font-size: 20px; overflow-wrap: anywhere; }
  .footer-row { gap: 16px; }
}

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