:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #14213d;
  --ink-2: #2b3650;
  --muted: #5a6578;
  --line: #ddd6c8;
  --accent: #e2603b;
  --teal: #1f7a72;
  --gold: #e2a33b;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.serif { font-family: Fraunces, Georgia, serif; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { font-family: Fraunces, serif; font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.nav nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15.5px; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); background: var(--ink-2); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #cc522f; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 14.5px; }

/* hero */
.hero { padding: 90px 0 70px; }
.hero h1 { font-family: Fraunces, serif; font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -.02em; margin: 20px 0 28px; max-width: 980px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero p.lede { font-size: 21px; color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 70px; border-top: 1px solid var(--line); }
.proof div { padding: 24px 24px 0 0; }
.proof div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof b { display: block; font-family: Fraunces, serif; font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.proof span { color: var(--muted); font-size: 15px; }

/* work index */
.work-index { padding: 30px 0 20px; }
.idx { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.idx a { display: block; text-decoration: none; padding: 22px 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.idx a:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,33,61,.08); }
.idx .n { font-family: Fraunces, serif; font-size: 15px; color: var(--accent); }
.idx h3 { font-family: Fraunces, serif; font-size: 23px; line-height: 1.2; margin: 8px 0 6px; }
.idx p { margin: 0; color: var(--muted); font-size: 15px; }

/* project */
.project { padding: 90px 0; border-top: 1px solid var(--line); }
.project-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 44px; }
.project-head h2 { font-family: Fraunces, serif; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; margin: 12px 0 0; letter-spacing: -.01em; }
.project-head p { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }

/* device mockups */
.showcase { position: relative; padding: 50px 40px 40px; border-radius: 28px; background: var(--ink); overflow: hidden; }
.showcase.teal { background: #0f3d3a; }
.showcase.warm { background: #3a2a22; }
.showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 80% 0%, rgba(255,255,255,.09), transparent 60%); pointer-events: none; }
.laptop { position: relative; max-width: 940px; margin: 0 auto; }
.laptop .screen { position: relative; background: #0b0f17; border: 14px solid #1c1f26; border-bottom-width: 18px; border-radius: 18px 18px 0 0; aspect-ratio: 16 / 10; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.laptop .base { height: 18px; margin: 0 -6%; background: linear-gradient(#d4d7dd, #9ca1ab); border-radius: 0 0 22px 22px; position: relative; }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); background: #868b95; border-radius: 0 0 8px 8px; }
.tablet { position: absolute; right: 30px; bottom: 26px; width: 25%; min-width: 170px; background: #1c1f26; border-radius: 22px; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.tablet .screen { position: relative; border-radius: 12px; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; }
.frame-scale { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; pointer-events: none; background: #fff; }
.launch-over { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,14,22,0); transition: background .2s; text-decoration: none; z-index: 2; }
.launch-over span { opacity: 0; transform: translateY(8px); transition: .2s; background: #fff; color: var(--ink); font-weight: 600; padding: 12px 22px; border-radius: 99px; font-size: 15px; }
.launch-over:hover { background: rgba(10,14,22,.45); }
.launch-over:hover span { opacity: 1; transform: none; }
.show-cta { display: flex; justify-content: center; gap: 12px; margin-top: 34px; position: relative; flex-wrap: wrap; }
.show-cta .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }

/* case study */
.case { display: grid; grid-template-columns: 240px 1fr; gap: 60px; margin-top: 60px; }
.case-nav { position: sticky; top: 100px; align-self: start; font-size: 14.5px; }
.case-nav b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.case-nav a { display: block; text-decoration: none; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--line); }
.case-nav a:hover { color: var(--ink); border-left-color: var(--accent); }
.case-body section { margin-bottom: 46px; }
.case-body h3 { font-family: Fraunces, serif; font-size: 28px; margin: 0 0 14px; line-height: 1.2; }
.case-body p { margin: 0 0 14px; max-width: 720px; }
.case-body .lab { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: block; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 46px; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.facts small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts b { font-weight: 600; font-size: 15.5px; line-height: 1.35; display: block; }

/* action map */
.amap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.amap .goal { background: var(--ink); color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.amap .goal small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.amap .goal b { font-family: Fraunces, serif; font-size: 22px; line-height: 1.25; font-weight: 600; margin-top: 8px; }
.amap ol { margin: 0; padding: 10px 0; list-style: none; counter-reset: a; }
.amap li { counter-increment: a; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 22px; border-bottom: 1px solid #f0ebe1; font-size: 15.5px; }
.amap li:last-child { border-bottom: 0; }
.amap li::before { content: counter(a); width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.amap li span { color: var(--muted); display: block; font-size: 14px; }

/* logic snippet */
.logic { background: #121826; color: #cfd6e4; border-radius: 16px; padding: 22px 24px; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.logic .k { color: #4fb3a9; } .logic .v { color: #9fc7ff; } .logic .c { color: #f2b84b; } .logic .d { color: #6c778d; }
.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.hl-grid div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 15px; }
.hl-grid b { display: block; margin-bottom: 4px; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kpis div { border-top: 3px solid var(--teal); padding-top: 14px; }
.kpis b { font-family: Fraunces, serif; font-size: 34px; line-height: 1; display: block; color: var(--teal); }
.kpis span { font-size: 14.5px; color: var(--muted); }
.disclaim { font-size: 13.5px; color: var(--muted); font-style: italic; margin-top: 14px; }

/* approach */
.approach { padding: 100px 0; background: var(--ink); color: #fff; }
.approach h2 { font-family: Fraunces, serif; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; margin: 12px 0 18px; max-width: 820px; }
.approach .lede { color: #b8c2d6; font-size: 19px; max-width: 700px; margin: 0 0 50px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps div { border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
.steps i { font-style: normal; font-family: Fraunces, serif; color: var(--gold); font-size: 15px; }
.steps b { display: block; font-size: 18px; margin: 6px 0 6px; }
.steps span { font-size: 14.5px; color: #b8c2d6; line-height: 1.5; display: block; }
.webnative { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 34px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.webnative h3 { font-family: Fraunces, serif; font-size: 28px; margin: 0 0 12px; line-height: 1.2; }
.webnative p { color: #cfd6e4; margin: 0 0 12px; }
.map-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.map-table td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.map-table td:first-child { color: #b8c2d6; width: 45%; }
.map-table td:last-child { color: #fff; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.tools span { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); font-size: 14px; color: #dfe5ef; }

/* about + contact */
.about { padding: 100px 0; }
.about .wrap > div { max-width: 760px; }
.about h2 { font-family: Fraunces, serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; margin: 12px 0 20px; }
.about p { max-width: 640px; }
.todo { background: #fff4d6; border-radius: 4px; padding: 0 4px; }
.orgs { display: grid; gap: 14px; margin: 26px 0; max-width: 680px; }
.orgs div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.orgs small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.orgs p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.contact { padding: 90px 0 110px; border-top: 1px solid var(--line); text-align: center; }
.contact h2 { font-family: Fraunces, serif; font-size: clamp(38px, 5.4vw, 70px); line-height: 1; margin: 14px auto 22px; max-width: 900px; letter-spacing: -.01em; }
.contact p { color: var(--muted); font-size: 19px; max-width: 600px; margin: 0 auto 32px; }
.contact .ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
footer.site { padding: 26px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .project-head, .case, .webnative { grid-template-columns: 1fr; gap: 28px; }
  .case-nav { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .idx { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .idx { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .hero { padding: 56px 0 40px; }
  .proof { grid-template-columns: 1fr; }
  .proof div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .showcase { padding: 26px 14px 24px; border-radius: 18px; }
  .laptop .screen { border-width: 7px; border-bottom-width: 10px; border-radius: 10px 10px 0 0; }
  .tablet { position: relative; right: auto; bottom: auto; width: 60%; margin: 0 auto; }
  .amap, .hl-grid, .kpis, .steps, .facts { grid-template-columns: 1fr; }
  .project { padding: 60px 0; }
}
