:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --line: #26262a;
  --text: #f1eee8;
  --muted: #8d8a85;
  --soft: #b9b5ae;
  --accent: #ff6b5a;
  --accent-ink: #160a08;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f6f3ee;
  --bg-2: #ece7df;
  --line: #d9d2c7;
  --text: #141210;
  --muted: #6f6a63;
  --soft: #4a4640;
  --accent: #e0442f;
  --accent-ink: #fff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 14px var(--pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; font-size: 17px; white-space: nowrap; }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 800 13px var(--display); letter-spacing: 0; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { fill: currentColor !important; stroke: none !important; }
:root[data-theme='dark'] .i-moon, :root[data-theme='light'] .i-sun { display: none; }
.adv-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: border-color .2s, transform .2s;
}
.adv-btn:hover { border-color: #4ee08a; transform: translateY(-1px); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--text); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.ghost { border-style: dashed; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100svh - 66px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 24px; padding: 40px var(--pad) 60px; position: relative;
}
.hero::before {
  content: ''; position: absolute; right: 5%; top: 18%; width: 50vw; height: 50vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-c, #ff6b5a) 35%, transparent), transparent);
  filter: blur(30px); opacity: .55; pointer-events: none; transition: background 1s;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 4px rgba(47, 191, 91, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 191, 91, 0); } }
.hero-name { margin: 0; font-size: clamp(48px, 8vw, 112px); line-height: .92; letter-spacing: -.045em; font-weight: 800; }
.hero-made { margin: 20px 0 0; font-size: clamp(26px, 3.2vw, 42px); color: var(--soft); letter-spacing: -.02em; }
.hero-made em { font-family: var(--serif); font-style: italic; color: var(--hero-c, var(--accent)); transition: color .4s; }
.caret { color: var(--hero-c, var(--accent)); }
.hero-tag { margin: 18px 0 0; max-width: 32ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--soft); line-height: 1.45; }
.hero-meta { margin: 18px 0 0; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.carousel { width: 100%; height: clamp(300px, 38vw, 480px); overflow: hidden; perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none; display: grid; place-items: center; outline: none; }
.carousel:active { cursor: grabbing; }
.ring { position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; transform-style: preserve-3d; }
.tile {
  position: absolute; inset: 0; border-radius: 26%; overflow: hidden;
  background: var(--surface, #222) center / cover no-repeat; text-decoration: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: filter .3s;
}
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 45%); }
.tile span {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 10px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); color: #fff; font: 600 12px var(--mono); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hint { color: var(--muted); margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 var(--pad); }
.stat { padding: 28px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.04em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) var(--pad) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-lead { margin: 0; max-width: 34ch; color: var(--soft); font-size: 17px; }
.kicker { color: var(--muted); margin: 0 0 10px; text-transform: uppercase; }
.section h2 { margin: 0; font-size: clamp(38px, 5.5vw, 72px); letter-spacing: -.04em; line-height: 1; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); transition: all .2s; }
.chip[aria-selected='true'] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; }

/* ---------- projects ---------- */
.projects { display: flex; flex-direction: column; }
.project {
  --c: var(--accent);
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); cursor: pointer;
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project.hide { display: none; }
.project-num { align-self: start; color: var(--muted); padding-top: 14px; }
.project-title { margin: 0 0 14px; font-size: clamp(40px, 5.6vw, 84px); line-height: .95; letter-spacing: -.045em; font-weight: 800; color: var(--c); transition: letter-spacing .4s; }
.project:nth-child(3n+2) .project-title { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; }
.project:hover .project-title { letter-spacing: -.035em; }
.project-summary { margin: 0 0 18px; color: var(--soft); max-width: 46ch; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); }
.project-meta .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.project-meta a { color: var(--text); text-decoration: none; }
.project-meta a:hover { text-decoration: underline; }
.project-shot {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface, #222);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; box-shadow: 0 0 0 1px var(--line);
}
.project-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.project-shot.contain img { object-fit: contain; padding: 16%; }
.project:hover .project-shot { box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c) 55%, transparent), 0 0 0 1px var(--line); }
.project:hover .project-shot img { transform: scale(1.04); }
.project-shot .open { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: all .3s; }
.project:hover .project-shot .open { opacity: 1; transform: none; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.service { padding: 30px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.service:hover { transform: translateY(-4px); border-color: var(--soft); }
.service .mono { color: var(--muted); }
.service h3 { margin: 26px 0 8px; font-size: 26px; letter-spacing: -.02em; }
.service p { margin: 0; color: var(--soft); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-photo { margin: 0; border-radius: 24px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.about-photo img { width: 60%; border-radius: 50%; }
.about-text { margin: 0 0 32px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.55; letter-spacing: -.01em; }
.skills { display: grid; gap: 22px; }
.skill-group h3 { margin: 0 0 10px; }
.skill-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.skill-group li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.big-quote { margin: clamp(60px, 9vw, 120px) 0 0; max-width: 22ch; font-size: clamp(30px, 4vw, 54px); line-height: 1.12; letter-spacing: -.03em; }
.big-quote em { font-family: var(--serif); color: var(--accent); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 44px 34px; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline li.edu::before { border-color: #5aa9ff; border-radius: 3px; }
.timeline .when { color: var(--muted); }
.timeline h3 { margin: 6px 0 2px; font-size: 24px; letter-spacing: -.02em; }
.timeline .org { color: var(--soft); margin: 0 0 8px; }
.timeline p { margin: 0; color: var(--soft); max-width: 60ch; }
.tag { display: inline-block; padding: 2px 8px; margin-left: 8px; border-radius: 6px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; vertical-align: middle; color: var(--muted); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.quote { margin: 0; padding: 30px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--soft); }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-img { display: block; overflow: hidden; }
.post-img img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.post:hover .post-img img, .post-feature:hover .post-img img { transform: scale(1.04); }
.post { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; cursor: pointer; transition: transform .3s; text-align: left; padding: 0; }
.post:hover { transform: translateY(-4px); }
.post img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post div { padding: 22px; }
.post h3 { margin: 8px 0; font-size: 22px; letter-spacing: -.02em; }
.post p { margin: 0; color: var(--soft); font-size: 15px; }
.post .mono { color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); }
.contact-lead { margin: 0 0 30px; font-size: 20px; color: var(--soft); max-width: 36ch; }
.email-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.email { font-size: clamp(24px, 3.2vw, 44px); letter-spacing: -.03em; text-decoration: none; border-bottom: 2px solid var(--line); word-break: break-all; transition: border-color .2s; }
.email:hover { border-color: var(--accent); }
.copy { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.copy:hover { color: var(--text); }
.contact-loc { color: var(--muted); margin: 18px 0 0; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; padding: 0; }
.socials a { text-decoration: none; color: var(--soft); }
.socials a:hover { color: var(--text); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--text); }
.form .invalid { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: #2fbf5b; }
.form-status.err { color: var(--accent); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; transition: all .3s; pointer-events: none; z-index: 80; }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 30px; }
  .hero-stage { order: -1; }
  .carousel { height: 280px; }
  .ring { width: 130px; }
  .project { grid-template-columns: 1fr; gap: 18px; }
  .project-num { padding: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .menu-btn { display: grid; }
  .adv-btn { padding: 0 10px; font-size: 13px; }
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; margin: 0;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; font-size: 20px; color: var(--text); border-bottom: 1px solid var(--line); }
  .stat + .stat { border-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .adv-btn { font-size: 0; gap: 0; width: 38px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print (CV / PDF) ---------- */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --text: #111; --muted: #555; --soft: #333; --line: #ddd; }
  .nav, .progress, .hero-stage, .hero-cta, .filters, .footer, .form, .modal, .toast, .project-shot, #blog, .copy { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-top: 28px; break-inside: avoid; }
  .hero { min-height: auto; padding: 0 0 20px; display: block; }
  .project { grid-template-columns: 50px 1fr; padding: 16px 0; break-inside: avoid; }
  .project-title { font-size: 28px; }
  .section h2 { font-size: 28px; }
  .hero-name { font-size: 44px; }
  .big-quote { display: none; }
  body { font-size: 12pt; }
}

/* ---------- extra polish ---------- */
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.nav-cta { margin-left: 4px; }
.nav-cta-mobile { display: none; }
.draft { display: inline-block; vertical-align: middle; font: 600 12px var(--mono); letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: #ffe066; color: #1a1408; }
.muted { color: var(--muted); }
.project-title a { color: inherit; text-decoration: none; }
.project-shot { display: block; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0 0 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; color: var(--soft); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); font-size: .6em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats { margin-top: 0; }

.about-photo { position: relative; }
.about-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; color: var(--muted); text-align: center; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px; }
.timeline .when { padding-top: 6px; }
.timeline h3 { margin-top: 0; }

.cta-band { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); margin-bottom: clamp(30px, 4vw, 50px); }
.cta-band h2 { font-size: clamp(44px, 7.5vw, 110px) !important; line-height: .95 !important; }
.cta-band em { font-family: var(--serif); font-weight: 400; color: var(--accent); }

/* footer */
.footer { margin-top: clamp(90px, 12vw, 160px); padding: 56px var(--pad) 32px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; color: var(--soft); }
.footer-brand .avail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.footer h3 { margin: 0 0 14px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--soft); }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }

/* pages */
.page-top { padding-top: clamp(50px, 8vw, 100px); }
.page-title { margin: 0; font-size: clamp(54px, 9vw, 130px); letter-spacing: -.05em; line-height: .9; font-weight: 800; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 26px; text-transform: uppercase; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* case study */
.case { padding: clamp(40px, 7vw, 90px) var(--pad) 0; }
.case-title { margin: 0; font-size: clamp(54px, 10vw, 150px); line-height: .9; letter-spacing: -.055em; font-weight: 800; color: var(--c); }
.case-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.case-lead { margin: 0; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.4; letter-spacing: -.015em; }
.case-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.case-meta dt { color: var(--muted); }
.case-meta dd { margin: 4px 0 0; font-weight: 600; }
.case-meta a { color: var(--c); }
.case-hero { margin: clamp(40px, 6vw, 80px) 0 0; border-radius: 24px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--c) 60%, transparent); }
.case-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.case-hero.contain img { object-fit: contain; padding: 14%; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 6vw, 90px); margin-top: clamp(50px, 7vw, 90px); }
.case-aside { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 100px; }
.case-aside h2 { margin: 0 0 4px; font-weight: 400; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(50px, 7vw, 90px); }
.case-gallery figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; }
.case-gallery figure:first-child:nth-last-child(odd) { grid-column: span 2; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .6s; }
.case-gallery figure:hover img { transform: scale(1.03); }
.next-project { display: block; margin-top: clamp(80px, 10vw, 140px); padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); text-decoration: none; }
.next-project .kicker { display: block; }
.next-title { display: block; font-size: clamp(44px, 8vw, 120px); font-weight: 800; letter-spacing: -.05em; line-height: .95; transition: color .3s, transform .4s; }
.next-project:hover .next-title { color: var(--c); transform: translateX(10px); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(4px); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; display: block; }
.lb-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #555; background: #111; color: #fff; cursor: pointer; }

/* blog */
.post-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 40px; text-decoration: none; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-feature .post-img { border-radius: 22px; aspect-ratio: 16 / 10; background: var(--bg-2); }
.post-feature img { width: 100%; height: 100%; object-fit: cover; }
.post-feature h2 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.05; }
.post-feature p { color: var(--soft); margin: 0 0 22px; }
.post-feature .mono { color: var(--muted); }

.article { padding: clamp(40px, 7vw, 90px) var(--pad) 0; }
.article-head, .article-body, .article-foot { max-width: 760px; margin-left: auto; margin-right: auto; }
.article-title { margin: 0; font-size: clamp(40px, 6vw, 76px); letter-spacing: -.045em; line-height: 1; }
.article-lead { font-size: 22px; color: var(--soft); margin: 22px 0 0; line-height: 1.45; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--soft); }
.byline img, .author-box img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--bg-2); }
.byline .mono { color: var(--muted); }
.article-cover { max-width: 1100px; margin: clamp(36px, 5vw, 60px) auto; border-radius: 24px; overflow: hidden; background: var(--bg-2); }
.article-cover img { width: 100%; }
.article-body { font-size: 19px; }
.article-foot { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-foot .share { margin: 12px 0 34px; }
.author-box { display: flex; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.author-box img { width: 60px; height: 60px; }
.author-box p { margin: 6px 0 10px; color: var(--soft); }
.author-box a { color: var(--accent); text-decoration: none; font-weight: 600; }

@media (max-width: 1080px) {
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .case-intro, .case-body, .post-feature { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-name { display: none; }
  .nav-cta-mobile { display: block; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery figure:first-child:nth-last-child(odd) { grid-column: auto; }
  .case-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .adv-btn span { display: none; }
  .adv-btn { width: 38px; padding: 0; justify-content: center; }
}
@media print {
  .marquee, .cta-band, .footer, .case-aside, .next-project, .lightbox { display: none !important; }
}
