
:root {
  --paper: #f3eee6;
  --paper-2: #e8e0d3;
  --ink: #15120f;
  --ink-2: #5f574d;
  --line: rgba(21, 18, 15, .14);
  --accent: #ff4d2e;
  --gold: #e6b23a;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --fs-hero: clamp(50px, min(8vw, 15vh), 128px);
  --fs-display: clamp(52px, min(10vw, 19vh), 168px);
  --fs-h1: clamp(42px, min(6.2vw, 11vh), 96px);
  --fs-h2: clamp(30px, min(4vw, 7.5vh), 60px);
  --fs-h3: clamp(28px, 2.8vw, 42px);
  --fs-lead: clamp(23px, 2.5vw, 38px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain overlay */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; overflow: hidden;
}
.loader-count { font: 400 clamp(90px, 22vw, 300px)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.loader-count sup { font-size: .25em; vertical-align: top; color: var(--accent); }
.loader-name { position: absolute; left: var(--gutter); bottom: 28px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.loader-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
html:not(.js-loader) .loader { display: none; }

/* ---------- page transition ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 140; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr);
}
.curtain span { background: var(--ink); transform: scaleY(0); transform-origin: bottom; }
.curtain span:nth-child(2n) { background: #221d18; }
html.is-arriving .curtain span { transform: scaleY(1); transform-origin: top; }

/* ---------- cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 1px solid var(--ink);
  display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, border-color .3s;
  mix-blend-mode: difference; border-color: #fff;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
.cursor.is-label .cursor-label { opacity: 1; color: var(--paper); }
.has-cursor .cursor, .has-cursor .cursor-dot { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80; padding: 18px 0;
  transition: transform .5s var(--ease), background-color .3s, padding .3s;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-solid { background: rgba(243, 238, 230, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font: 400 24px/1 var(--serif); letter-spacing: -.02em; display: inline-flex; align-items: baseline; }
.wordmark i { color: var(--accent); font-style: normal; }
.nav { display: flex; gap: clamp(14px, 3vw, 40px); align-items: center; font-size: 15px; font-weight: 500; }
.nav a { position: relative; overflow: hidden; display: inline-block; height: 1.5em; line-height: 1.5em; }
.nav a span { display: block; transition: transform .5s var(--ease); }
.nav a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); }
.nav a:hover span, .nav a:focus-visible span { transform: translateY(-100%); }
.nav-cta { padding: 0 18px; height: 42px !important; line-height: 42px !important; border-radius: 99px; background: var(--ink); color: var(--paper); }
.nav-cta span::after { color: var(--gold) !important; }
@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { height: 38px !important; line-height: 38px !important; padding: 0 16px; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px;
  border-radius: 99px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; overflow: hidden; isolation: isolate;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit;
  transform: translateY(101%) scaleX(.6); transition: transform .6s var(--ease), border-radius .6s;
  border-radius: 50% 50% 0 0;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0) scaleX(1); border-radius: 99px; }
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: rotate(-45deg); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--paper); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-light:hover { color: var(--paper); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- split text ---------- */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: inline-block; }
.char { display: inline-block; will-change: transform; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: clamp(96px, 14vh, 128px) 0 clamp(24px, 4vh, 40px); display: flex; flex-direction: column; overflow: hidden; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: clamp(16px, 3vh, 28px); }
.hero-kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 77, 46, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 77, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0); } }
.hero-title { font: 400 var(--fs-hero)/.9 var(--serif); letter-spacing: -.04em; }
.hero-title .line-mask:nth-child(2) { padding-left: .9em; }
.outline .char { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-title em { color: var(--accent); }
.hero-title .char { cursor: default; transition: color .3s; }
.hero-sub { margin-top: clamp(20px, 4vh, 36px); max-width: 440px; font-size: clamp(16px, 1.15vw, 18px); color: var(--ink-2); }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { margin-top: clamp(20px, 4vh, 36px); display: flex; flex-wrap: wrap; gap: 12px; }

.hero-photo { position: relative; justify-self: end; width: min(100%, 440px, calc((100svh - 230px) * .75)); min-width: 260px; perspective: 1200px; }
.photo-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: var(--paper-2);
  transform-style: preserve-3d; will-change: transform; box-shadow: 0 40px 80px -30px rgba(21, 18, 15, .45);
}
.photo-card img, .photo-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card canvas { image-rendering: pixelated; z-index: 2; }
.photo-glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .35), transparent 45%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s; }
.hero-photo:hover .photo-glare { opacity: 1; }
.photo-tag {
  position: absolute; z-index: 4; left: -28px; bottom: 34px; padding: 12px 18px; border-radius: 14px; background: var(--paper);
  font-size: 14px; line-height: 1.35; box-shadow: 0 18px 40px -18px rgba(21, 18, 15, .5); transform: translateZ(60px) rotate(-4deg);
}
.photo-tag b { display: block; font: 400 26px/1 var(--serif); color: var(--accent); }
.badge {
  position: absolute; z-index: 4; right: -30px; top: -30px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: grid; place-items: center;
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font: 600 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; fill: currentColor; }
.badge-core { font: 400 34px/1 var(--serif); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot { position: relative; z-index: 1; margin-top: clamp(20px, 4vh, 40px); display: flex; justify-content: space-between; align-items: end; gap: 24px; font-size: 14px; color: var(--ink-2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; width: min(86%, 440px); margin-top: 24px; }
  .badge { width: 104px; height: 104px; right: -22px; top: -26px; }
  .badge-core { font-size: 32px; }
  .photo-tag { left: -14px; }
  .hero-foot .hero-loc { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; background: var(--ink); color: var(--paper); padding: clamp(14px, 1.6vw, 22px) 0; overflow: hidden; transform: rotate(-2deg) scale(1.04); margin: 40px 0; }
.marquee.alt { background: var(--accent); transform: rotate(1.5deg) scale(1.04); margin-top: clamp(-56px, -4vw, -36px); z-index: 1; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); padding-right: clamp(20px, 2.4vw, 36px); font: 400 clamp(26px, 3.6vw, 52px)/1 var(--serif); white-space: nowrap; }
.marquee-item svg { width: .55em; height: .55em; color: var(--gold); flex: none; }
.marquee.alt svg { color: var(--ink); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, min(11vw, 18vh), 160px) 0; }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: clamp(18px, 3vh, 28px); }
.label::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .4; }
.label b { font-weight: 600; color: var(--accent); }
.h-xl { font: 400 var(--fs-h1)/.95 var(--serif); letter-spacing: -.035em; }
.h-xl em { color: var(--accent); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(32px, 6vw, 110px); }
.about-statement { font: 400 var(--fs-lead)/1.18 var(--serif); letter-spacing: -.015em; max-width: 36ch; }
.about-statement .w { opacity: .14; transition: opacity .2s; }
.about-statement em { color: var(--accent); }
.facts { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.fact dd { margin: 8px 0 0; font-size: 17px; line-height: 1.35; font-weight: 500; }
.about-side { position: relative; }
.wave { position: sticky; top: 120px; width: 100%; max-width: 240px; aspect-ratio: 1; }
.wave path { fill: none; stroke: var(--ink); stroke-width: 2; }
.wave .wave-accent { stroke: var(--accent); stroke-width: 3; }
.wave text { font: 400 15px var(--serif); fill: var(--ink-2); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact { padding-bottom: 24px; }
}

/* works list */
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.works-head p { max-width: 360px; color: var(--ink-2); }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-row { position: relative; border-bottom: 1px solid var(--line); }
.work-link { position: relative; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 24px; padding: clamp(22px, 2.6vw, 38px) 0; }
.work-link::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.work-row:hover .work-link::before { transform: scaleY(1); transform-origin: top; }
.work-row { isolation: isolate; transition: color .4s; }
.work-row:hover { color: var(--paper); }
.work-num { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink-2); transition: color .4s; }
.work-row:hover .work-num { color: var(--gold); }
.work-title { font: 400 var(--fs-h2)/1 var(--serif); letter-spacing: -.03em; transition: transform .6s var(--ease); }
.work-row:hover .work-title { transform: translateX(24px); }
.work-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; color: var(--ink-2); text-align: right; transition: color .4s; }
.work-row:hover .work-meta { color: rgba(243, 238, 230, .7); }
.work-thumb { display: none; }
.work-float {
  position: fixed; left: 0; top: 0; z-index: 70; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; border-radius: 18px; overflow: hidden;
  opacity: 0; transform: scale(.6); background: #f7f8fa;
}
.work-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; opacity: 0; transition: opacity .35s; }
.work-float img.cover { object-fit: cover; padding: 0; }
.work-float img.on { opacity: 1; }
@media (hover: none), (max-width: 900px) {
  .work-float { display: none; }
  .work-link { grid-template-columns: 1fr; gap: 14px; }
  .work-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #f7f8fa; }
  .work-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
  .work-thumb img.cover { object-fit: cover; padding: 0; }
  .work-meta { align-items: flex-start; text-align: left; }
  .work-row:hover .work-title { transform: none; }
  .work-row:hover { color: inherit; }
  .work-row:hover .work-link::before { transform: scaleY(0); }
  .work-row:hover .work-num { color: var(--ink-2); }
  .work-row:hover .work-meta { color: var(--ink-2); }
}

/* unit circle lab */
.lab { background: var(--ink); color: var(--paper); border-radius: clamp(24px, 4vw, 48px); margin: 0 clamp(8px, 1.4vw, 20px); overflow: hidden; }
.lab .label { color: rgba(243, 238, 230, .6); }
.lab-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.lab-copy p { margin-top: 28px; max-width: 420px; color: rgba(243, 238, 230, .7); }
.lab-readout { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(243, 238, 230, .14); border-radius: 18px; overflow: hidden; max-width: 440px; }
.lab-readout div { background: var(--ink); padding: 16px 18px; }
.lab-readout dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 238, 230, .55); }
.lab-readout dd { margin: 4px 0 0; font: 400 clamp(24px, 2vw, 30px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.lab-readout .s dd { color: var(--accent); }
.lab-readout .c dd { color: var(--gold); }
.lab-svg { width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.lab-svg .axis { stroke: rgba(243, 238, 230, .22); stroke-width: 1; }
.lab-svg .circle { fill: none; stroke: rgba(243, 238, 230, .5); stroke-width: 1.5; }
.lab-svg .radius { stroke: var(--paper); stroke-width: 2; }
.lab-svg .sin-line { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.lab-svg .cos-line { stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.lab-svg .link { stroke: rgba(255, 77, 46, .6); stroke-width: 1; stroke-dasharray: 4 5; }
.lab-svg .curve { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.lab-svg .curve-ghost { fill: none; stroke: rgba(243, 238, 230, .14); stroke-width: 1.5; }
.lab-svg .arc { fill: rgba(230, 178, 58, .18); stroke: var(--gold); stroke-width: 1.5; }
.lab-svg .handle { fill: var(--paper); cursor: grab; }
.lab-svg .handle-ring { fill: none; stroke: var(--paper); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: ring 1.8s var(--ease) infinite; pointer-events: none; }
.lab-svg .dot-s { fill: var(--accent); }
.lab-svg text { font: 500 13px var(--sans); fill: rgba(243, 238, 230, .55); }
.lab-svg.is-dragging .handle { cursor: grabbing; }
.lab-hint { margin-top: 14px; font-size: 13px; color: rgba(243, 238, 230, .5); text-align: center; }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 900px) { .lab-grid { grid-template-columns: 1fr; } }

/* contact */
.contact { padding-bottom: 0; overflow: hidden; }
.contact-big { font: 400 var(--fs-display)/.9 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.contact-big .char { transition: color .3s; }
.contact-big em { color: var(--accent); }
.contact-grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.contact-item { position: relative; padding: 32px 24px 36px 0; display: block; overflow: hidden; }
.contact-item + .contact-item { padding-left: 24px; border-left: 1px solid var(--line); }
.contact-item small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.contact-item strong { display: block; margin-top: 10px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; word-break: break-word; }
.contact-item .icon { position: absolute; right: 18px; top: 30px; transition: transform .5s var(--ease); }
a.contact-item:hover .icon { transform: rotate(45deg) scale(1.2); color: var(--accent); }
a.contact-item strong { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); display: inline; }
a.contact-item:hover strong { background-size: 100% 2px; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item + .contact-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* footer */
.site-footer { position: relative; overflow: hidden; padding: 48px 0 0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer-row a:hover { color: var(--accent); }
.footer-giant { font: 400 clamp(48px, 13.4vw, 230px)/.82 var(--serif); letter-spacing: -.05em; white-space: nowrap; margin-top: 16px; padding-bottom: .08em; }
.footer-giant .char { display: inline-block; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .5s var(--ease); }
.footer-giant .char.is-lit { color: var(--ink); }
.footer-giant i .char { -webkit-text-stroke-color: var(--accent); }
.footer-giant i .char.is-lit { color: var(--accent); }
.footer-giant i { font-style: normal; }

/* ---------- case (karya) pages ---------- */
.case-hero { padding: clamp(120px, min(14vw, 22vh), 180px) 0 clamp(36px, 4vw, 60px); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); margin-bottom: 36px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.case-title { font: 400 var(--fs-h1)/.95 var(--serif); letter-spacing: -.035em; max-width: 14ch; }
.case-title em { color: var(--accent); }
.case-lead { margin-top: clamp(24px, 4vh, 36px); max-width: 540px; font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-2); }
.case-cover { position: relative; margin: 0 clamp(8px, 1.4vw, 20px); border-radius: clamp(20px, 3vw, 40px); overflow: hidden; background: #f4f3f6; height: clamp(260px, min(52vw, 72vh), 640px); clip-path: inset(0 0 0 0 round 40px); }
.case-cover img { width: 100%; height: 118%; object-fit: contain; padding: clamp(20px, 4vw, 60px); will-change: transform; }
.case-cover.photo img { object-fit: cover; padding: 0; }
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.meta-row div { padding: 0 20px 24px 0; }
.meta-row div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.meta-row dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.meta-row dd { margin: 8px 0 0; font-weight: 500; }
@media (max-width: 760px) {
  .meta-row { grid-template-columns: 1fr 1fr; }
  .meta-row div:nth-child(3) { padding-left: 0; border-left: 0; }
}
.case-body { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 7vw, 120px); padding: clamp(64px, 9vw, 130px) 0; }
.toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.toc a { position: relative; padding: 6px 0 6px 22px; color: var(--ink-2); transition: color .3s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: currentColor; transition: width .4s var(--ease), background-color .3s; }
.toc a.is-active { color: var(--ink); }
.toc a.is-active::before { width: 16px; background: var(--accent); }
.prose { max-width: 720px; }
.prose section + section { margin-top: clamp(56px, 7vw, 96px); }
.prose h2 { font: 400 var(--fs-h3)/1.05 var(--serif); letter-spacing: -.025em; margin-bottom: 24px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; }
.prose li { position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--line); counter-increment: s; }
.prose li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); }
.prose .note { margin-top: 18px; font-size: 15px; }
.prose .btn { margin-top: 28px; }
.prose a.inline { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; }
.formula { margin-top: 24px; padding: 22px 26px; border-radius: 18px; background: var(--ink); color: var(--paper); font: 400 clamp(19px, 1.6vw, 22px)/1.6 var(--serif); }
.formula span { color: var(--gold); }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } .toc { display: none; } }

.gallery { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #f4f3f6; text-align: left; }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery span { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(21, 18, 15, .85); color: var(--paper); font-size: 13px; transform: translateY(140%); transition: transform .5s var(--ease); }
.gallery button:hover span, .gallery button:focus-visible span { transform: none; }

.downloads { margin-top: 32px; display: grid; gap: 12px; }
.download { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 18px; background: var(--paper-2); overflow: hidden; isolation: isolate; transition: color .4s; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path .7s var(--ease); }
.download:hover { color: var(--paper); }
.download:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.download .icon { width: 26px; height: 26px; flex: none; color: var(--accent); }
.download strong { display: block; font-weight: 600; }
.download small { font-size: 14px; opacity: .7; }

.next-case { display: block; position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(72px, min(10vw, 18vh), 140px) 0; isolation: isolate; }
.next-case small { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 238, 230, .6); }
.next-case h2 { margin-top: 18px; font: 400 var(--fs-h1)/.92 var(--serif); letter-spacing: -.04em; }
.next-case h2 em { color: var(--accent); }
.next-case img { position: absolute; right: var(--gutter); top: 50%; width: min(36vw, 460px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; transform: translateY(-50%) rotate(6deg) scale(.8); opacity: 0; transition: transform .8s var(--ease), opacity .5s; z-index: -1; background: #f4f3f6; }
.next-case img.contain { object-fit: contain; padding: 14px; }
.next-case:hover img { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); }

/* karya index */
.index-hero { padding: clamp(120px, min(14vw, 22vh), 180px) 0 clamp(40px, 5vw, 64px); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 90vh; }
.lightbox::backdrop { background: rgba(21, 18, 15, .88); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 16px; background: #fff; }
.lightbox p { color: var(--paper); margin-top: 12px; font-size: 15px; }
.lightbox button { position: fixed; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }

/* 404 */
.error { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; }
.error-code { font: 400 clamp(120px, min(26vw, 42vh), 320px)/.8 var(--serif); letter-spacing: -.06em; }
.error-code em { color: var(--accent); display: inline-block; }
.error p { margin: 24px auto 32px; max-width: 420px; color: var(--ink-2); }

/* ---------- sine squiggle drawn under accent words ---------- */
.h-xl em, .contact-big em, .case-title em, .next-case h2 em {
  --draw: 0%;
  background:
    linear-gradient(var(--sq-bg, var(--paper)), var(--sq-bg, var(--paper))) 100% calc(100% - .08em) / calc(100% - var(--draw)) .16em no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4c5-5 10-5 10 0s5 5 10 0 5-5 10 0 5 5 10 0' fill='none' stroke='%23e6b23a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 calc(100% - .1em) / .45em .12em repeat-x;
}
.lab, .next-case { --sq-bg: var(--ink); }
.reduced em { --draw: 100% !important; }

/* ---------- reveal helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
