:root {
  --paper: #F5F3EE;
  --card: #FFFFFF;
  --ink: #121212;
  --ink-2: #2A2A28;
  --muted: #6A6862;
  --line: #DEDAD1;
  --accent: #1F4D3A;
  --accent-soft: #DCE7DF;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(0,0,0,.05); }
.nav a.btn-sm { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav a.btn-sm:hover { background: var(--accent); }
@media (max-width: 760px) { .nav a:not(.btn-sm) { display: none; } }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font-family: var(--serif); font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -.02em; }
.display em, .h2 em { font-style: italic; color: var(--accent); }
.h2 { font-family: var(--serif); font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.015em; }
.h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 26px 0 34px; }
.muted { color: var(--muted); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .2s, transform .2s; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: var(--accent); }
.btn.line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero-photo { margin-top: clamp(44px, 6vw, 80px); border-radius: calc(var(--radius) + 8px); overflow: hidden; aspect-ratio: 21 / 9; background: #ddd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
@media (max-width: 700px) { .hero-photo { aspect-ratio: 4 / 3; } }

.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: end; }
.now { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.now:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.3); }
.now-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.now-label i { width: 8px; height: 8px; border-radius: 50%; background: #3BA36B; box-shadow: 0 0 0 4px rgba(59,163,107,.18); }
.now-app { display: flex; align-items: center; gap: 14px; }
.now-app img { width: 52px; height: 52px; border-radius: 12px; }
.now-app b { display: block; font-size: 17px; font-weight: 650; }
.now-app small { font-size: 14px; color: var(--muted); }
.now-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.now-foot svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .now { max-width: 360px; } }

/* capability strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.strip li { display: flex; align-items: center; gap: 10px; }
.strip li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }

/* sections */
section.block { padding: clamp(80px, 11vw, 150px) 0; }
.sec-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 30em; justify-self: end; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

/* featured work */
.work { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card); border-radius: calc(var(--radius) + 8px); overflow: hidden; border: 1px solid var(--line); }
.work-visual { background: #F7FF48; position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 48px 24px; overflow: hidden; }
.phone { width: 31%; max-width: 210px; aspect-ratio: 804 / 1748; border-radius: 30px; background: #0B0B0B; padding: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }
.phone.mid { transform: translateY(-22px); }
.phone.side { transform: translateY(22px); }
.work-body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; }
.work-body .app { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.work-body .app img { width: 56px; height: 56px; border-radius: 13px; }
.work-body .app b { display: block; font-size: 20px; font-weight: 650; }
.work-body .app span { font-size: 14px; color: var(--muted); }
.work-body p { margin: 0 0 22px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 30px; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: auto; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }
.work-body .link { margin-top: 28px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.work-body .link:hover { color: var(--accent); }
@media (max-width: 920px) { .work { grid-template-columns: 1fr; } .work-visual { min-height: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.svc .ph { aspect-ratio: 16 / 9; overflow: hidden; }
.svc .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc:hover .ph img { transform: scale(1.03); }
.svc .tx { padding: 28px 30px 32px; }
.svc .num { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; display: block; }
.svc p { margin: 10px 0 18px; color: var(--ink-2); }
.svc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.svc ul li::before { content: "— "; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* process */
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: #A8A69F; }
.dark .eyebrow::before { background: #8FC1A6; }
.dark .h2 em { color: #8FC1A6; }
.dark .sec-head p { color: #C9C7C0; }
.process { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.process .ph { border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.process .ph img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid #2E2E2C; }
.steps li:last-child { border-bottom: 1px solid #2E2E2C; }
.steps .n { font-family: var(--serif); font-size: 30px; color: #8FC1A6; line-height: 1; }
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.steps p { margin: 0; color: #C9C7C0; font-size: 16px; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process .ph { min-height: 0; aspect-ratio: 4 / 3; } }

/* studio */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.studio .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.studio .ph img { width: 100%; height: 100%; object-fit: cover; }
.principles { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.principles li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.principles svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.principles b { display: block; font-weight: 600; }
.principles span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } .studio .ph { aspect-ratio: 4 / 3; } }

/* contact */
.contact { background: var(--accent); color: #F2F5F1; border-radius: calc(var(--radius) + 8px); padding: clamp(44px, 7vw, 96px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.contact .h2 { color: #fff; }
.contact .h2 em { color: #BFE0CC; }
.contact p { margin: 18px 0 0; color: #D3E2D8; max-width: 30em; }
.contact .mail { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); justify-self: end; word-break: break-all; }
.contact .mail:hover { border-bottom-color: #fff; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact .mail { justify-self: start; } }

/* footer */
footer { padding: 64px 0 40px; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.fgrid h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fgrid a { text-decoration: none; color: var(--ink-2); }
.fgrid a:hover { color: var(--accent); }
.fgrid p { margin: 14px 0 0; color: var(--muted); max-width: 26em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid > div:first-child { grid-column: 1 / -1; } }

/* legal pages */
.page-head { padding: clamp(56px, 8vw, 104px) 0 24px; }
.doc { padding: 0 0 100px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc .meta { color: var(--muted); font-size: 15px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
