:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e2d7;
  --ink: #151b18;
  --muted: #62665f;
  --line: rgba(21, 27, 24, 0.16);
  --green: #b8ef68;
  --dark: #111715;
  --card: #1a211e;
  --white: #fbfaf6;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #5f8f1f; outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 116px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(21, 27, 24, 0.1);
  background: rgba(243, 240, 232, 0.9);
  backdrop-filter: blur(18px);
}
.header-inner { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 11px; letter-spacing: 0.05em; }
.main-nav { display: flex; gap: 25px; margin-left: auto; color: #3e433f; font-size: 14px; font-weight: 650; }
.main-nav a, .text-link { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.main-nav a:hover, .text-link:hover { text-decoration: underline; }
.header-cta { padding: 10px 17px; border-radius: 999px; color: white; background: var(--ink); font-size: 14px; font-weight: 750; }

.hero { padding: 96px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr); gap: 84px; align-items: center; }
.eyebrow { margin: 0 0 24px; color: #4c544e; font-size: 12px; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; }
.eyebrow-light { color: rgba(255, 255, 255, 0.6); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -0.045em; }
h1 { max-width: 780px; margin-bottom: 30px; font-size: clamp(56px, 7.2vw, 102px); font-weight: 620; }
.hero-lede { max-width: 710px; margin-bottom: 34px; color: #4d534e; font-size: clamp(19px, 2vw, 24px); line-height: 1.45; }
.hero-actions, .contact-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 21px; border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--paper); background: var(--ink); }
.button-light { color: var(--ink); background: var(--white); }
.button-outline-light { border: 1px solid rgba(255,255,255,0.48); color: white; }
.text-link { font-size: 14px; font-weight: 800; }
.hero-location { margin: 38px 0 0; color: #73766f; font-size: 13px; }

.system-card { position: relative; min-height: 500px; overflow: hidden; border-radius: 42px; color: white; background: var(--dark); box-shadow: 0 32px 80px rgba(22, 28, 25, 0.14); }
.system-content { position: absolute; inset: auto 42px 42px; z-index: 3; }
.system-label { margin-bottom: 18px; color: rgba(255,255,255,0.64); font-size: 13px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.system-list { display: grid; gap: 4px; font-size: clamp(34px, 4vw, 53px); font-weight: 600; line-height: 1.02; letter-spacing: -0.05em; }
.system-list span:nth-child(2) { color: var(--green); }
.system-note { margin: 22px 0 0; color: rgba(255,255,255,0.62); font-size: 13px; }
.orbit { position: absolute; border: 1px solid rgba(184,239,104,0.45); border-radius: 50%; }
.orbit-one { width: 330px; height: 330px; right: -80px; top: -70px; }
.orbit-two { width: 240px; height: 240px; right: 30px; top: 45px; border-color: rgba(255,255,255,0.23); }
.orbit-three { width: 50px; height: 50px; right: 112px; top: 132px; border: 0; background: var(--green); box-shadow: 0 0 0 18px rgba(184,239,104,0.1); }

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.22); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { min-height: 136px; display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; border-left: 1px solid var(--line); }
.proof-grid div:last-child { border-right: 1px solid var(--line); }
.proof-grid strong { font-size: 26px; letter-spacing: -0.035em; }
.proof-grid span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.11em; }

.section-heading { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.55fr); gap: 60px; align-items: end; margin-bottom: 58px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -32px; }
.section-heading h2, .story-intro h2, .about-copy h2, .contact-panel h2, .ai-intro h2 { margin-bottom: 0; font-size: clamp(42px, 5.4vw, 72px); font-weight: 590; }
.section-heading > p:last-child { max-width: 460px; margin-bottom: 4px; color: var(--muted); font-size: 17px; }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; min-height: 690px; overflow: hidden; border-radius: var(--radius); color: white; background: var(--card); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.18fr 0.82fr; min-height: 570px; }
.project-visual { display: grid; place-items: center; min-height: 340px; padding: 28px; overflow: hidden; }
.project-visual img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.visual-soft-green { background: #dde4d8; }
.visual-deep { background: #070b13; }
.visual-peach { background: #f6c27d; }
.project-copy { display: flex; flex: 1; flex-direction: column; padding: 34px; }
.project-kicker { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 48px; color: rgba(255,255,255,0.54); font-size: 11px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.project-copy h3 { max-width: 520px; margin-bottom: 20px; font-size: clamp(31px, 3.4vw, 48px); font-weight: 580; }
.project-copy > p { max-width: 620px; color: rgba(255,255,255,0.68); font-size: 16px; }
.project-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.13); color: rgba(255,255,255,0.48); font-size: 12px; }
.project-footer a { color: white; font-weight: 800; }
.project-coming { background: #28322e; }
.coming-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-height: 340px; padding: 28px; background: #c4ee83; }
.coming-visual span { display: grid; place-items: center; border: 1px solid rgba(17,23,21,0.25); border-radius: 18px; color: var(--ink); font-size: clamp(44px, 6vw, 78px); font-weight: 850; }

.ai-section { color: white; background: #101614; }
.ai-grid { display: grid; grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr); gap: 80px; align-items: start; }
.ai-intro { position: sticky; top: 116px; }
.ai-intro h2 { margin-bottom: 28px; }
.ai-intro > p:last-child { max-width: 510px; color: rgba(255,255,255,0.65); font-size: 17px; }
.ai-practice-content { display: grid; gap: 16px; }
.ai-stack { display: grid; gap: 20px; margin: 0; padding: 24px 26px; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; background: #f4f1e9; }
.ai-stack figcaption { color: #515650; font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.ai-stack img { width: 100%; max-height: 72px; object-fit: contain; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-card { display: flex; flex-direction: column; min-height: 320px; padding: 24px; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; background: #19201d; }
.tool-card > span { color: var(--green); font-size: 12px; font-weight: 800; }
.tool-card h3 { margin: auto 0 18px; font-size: 26px; font-weight: 600; }
.tool-card p { margin-bottom: 0; color: rgba(255,255,255,0.58); font-size: 14px; }

.story-section { background: #e7e2d7; }
.story-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: 100px; }
.story-intro h2 { margin-bottom: 28px; }
.story-intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline li > span { color: #72766f; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.timeline h3 { margin-bottom: 8px; font-size: 24px; font-weight: 680; }
.timeline p { margin-bottom: 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr); gap: 90px; align-items: center; }
.portrait-frame { overflow: hidden; aspect-ratio: 0.88; border-radius: var(--radius); background: #d0ccc1; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.about-copy h2 { max-width: 690px; margin-bottom: 30px; }
.about-copy > p:last-child { max-width: 660px; color: var(--muted); font-size: 18px; }

.contact-section { padding: 36px 0; background: var(--paper); }
.contact-panel { padding: 82px; border-radius: 34px; color: white; background: var(--ink); }
.contact-panel h2 { margin-bottom: 26px; }
.contact-panel > p:not(.eyebrow) { max-width: 660px; margin-bottom: 34px; color: rgba(255,255,255,0.66); font-size: 19px; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 70px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.48); font-size: 12px; }

footer { padding: 34px 0 44px; color: #6d716b; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 940px) {
  .hero-grid, .ai-grid, .story-grid, .about-grid { grid-template-columns: 1fr; gap: 58px; }
  .system-card { min-height: 430px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .project-featured { display: flex; grid-column: auto; min-height: 690px; }
  .work-grid { grid-template-columns: 1fr; }
  .ai-intro { position: static; }
  .about-grid { grid-template-columns: minmax(260px, 0.7fr) 1fr; gap: 52px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div:nth-child(3) { border-top: 1px solid var(--line); }
  .proof-grid div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section { padding: 82px 0; }
  .header-inner { height: 66px; }
  .brand > span:last-child, .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero { padding: 64px 0; }
  h1 { font-size: clamp(50px, 15vw, 72px); }
  .system-card { min-height: 390px; border-radius: 28px; }
  .system-content { inset: auto 28px 28px; }
  .proof-grid div { padding: 20px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 620px; }
  .project-copy { padding: 26px; }
  .project-footer { align-items: flex-start; flex-direction: column; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .contact-panel { padding: 52px 26px; border-radius: 24px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .footer-inner { flex-direction: column; }
}

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