:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0,0,0,.08);
  --accent: #0071e3;
  --nav: rgba(251,251,253,.72);
  --radius: 28px;
  --max: 1080px;
  --ease: cubic-bezier(.22,1,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255,255,255,.12);
    --accent: #2997ff;
    --nav: rgba(22,22,23,.72);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), 100% - 44px); margin-inline: auto; }

/* Nav — translucent layer, content scrolls underneath */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 30px; height: 30px; flex: none; }
.nav ul { display: flex; gap: 28px; list-style: none; font-size: .8125rem; color: var(--muted); }
.nav ul a { transition: color .2s; }
.nav ul a:hover { color: var(--text); }
@media (max-width: 600px) { .nav ul { gap: 18px; } .nav li.hide-sm { display: none; } }

/* Typography — tight tracking on large display, looser on body */
.eyebrow { font-size: 1.0625rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.display {
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: clamp(1.1875rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--muted); letter-spacing: -0.015em; font-weight: 500; }
.grad {
  background: linear-gradient(90deg, #e8130a, #c3a670 55%, #0071e3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons — feedback on press */
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 980px; font-size: 1.0625rem;
  background: var(--accent); color: #fff;
  transition: transform .1s ease-out, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.link { color: var(--accent); font-size: 1.0625rem; }
.link:hover { text-decoration: underline; }

/* Sections */
section { padding: clamp(80px, 12vw, 140px) 0; }
.center { text-align: center; }
.hero { padding-top: clamp(90px, 14vw, 170px); }
.hero .lead { max-width: 640px; margin: 24px auto 36px; }
.alt { background: var(--bg-alt); }
.head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.head .lead { margin-top: 16px; }

/* Work */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 0;
  background: #0d0d0d; color: #f5f5f7; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 24px;
}
.feature .txt { padding: clamp(32px, 5vw, 64px); }
.feature .eyebrow { color: #c3a670; }
.feature h3 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.06; margin: 10px 0 16px; }
.feature p { color: #a1a1a6; max-width: 440px; }
.feature .tags { margin-top: 24px; }
.feature .tag { border-color: rgba(255,255,255,.18); color: #d2d2d7; }
.feature .media { position: relative; height: 100%; min-height: 380px; background: radial-gradient(circle at 60% 40%, #2a0b09, #0d0d0d 70%); display: grid; place-items: center; }
.feature .media img.logo { width: 46%; border-radius: 22%; box-shadow: 0 30px 80px rgba(232,19,10,.35); }
.feature .link { color: #2997ff; display: inline-block; margin-top: 24px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .media { min-height: 300px; order: -1; } }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.card .ph { aspect-ratio: 4/3; display: grid; place-items: center; font-size: .8125rem; color: rgba(255,255,255,.75); letter-spacing: .02em; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 26px 28px 30px; }
.card h4 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 8px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .eyebrow { font-size: .8125rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .75rem; padding: 5px 11px; border-radius: 980px; border: 1px solid var(--line); color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.svc { background: var(--surface); border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); }
.svc .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; }
.svc h4 { font-size: 1.3125rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 1rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, #d2d2d7, #86868b); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: .875rem; }
@media (prefers-color-scheme: dark) { .portrait { background: linear-gradient(160deg, #2c2c2e, #1c1c1e); } }
.about p.lead { margin: 20px 0 28px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2.5rem; letter-spacing: -0.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: .875rem; }

/* Contact */
.contact .display { font-size: clamp(2.5rem, 6.5vw, 4.75rem); }
.contact .lead { margin: 20px auto 36px; max-width: 560px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .75rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* Reveal on scroll — gentle, critically damped feel */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .3s ease; }
  .card, .card:hover { transform: none; transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
