/* indi v3 — premium minimal, motion-first
   near-black canvas, hairline rules, one gold accent, huge serif
*/

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --bg-3: #161618;
  --fg: #ececea;
  --fg-dim: rgba(236, 236, 234, 0.55);
  --fg-faint: rgba(236, 236, 234, 0.28);
  --gold: oklch(0.8 0.13 80);
  --gold-dim: oklch(0.8 0.13 80 / 0.5);
  --gold-faint: oklch(0.8 0.13 80 / 0.14);
  --line: rgba(236, 236, 234, 0.08);
  --line-2: rgba(236, 236, 234, 0.16);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.05, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.shell { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 760px) { .shell { padding: 0 24px; } }

/* ——— grain + ambient orb ——— */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}
.orb {
  position: fixed;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center, oklch(0.8 0.14 78 / 0.25) 0%, transparent 65%);
  filter: blur(40px);
  transition: transform 1.8s var(--ease-out);
  will-change: transform;
}

/* ——— preloader ——— */
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 48px 56px;
  transition: transform 1s var(--ease-luxe);
}
.preloader.exit { transform: translateY(-100%); }
.preloader .pct {
  font-family: var(--serif);
  font-size: clamp(96px, 18vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.preloader .pct em { font-style: italic; color: var(--gold); }
.preloader .word {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-dim);
  padding-bottom: 12px;
  overflow: hidden;
}
.preloader .word span { display: inline-block; animation: loader-word 1.4s var(--ease-out) infinite alternate; }
@keyframes loader-word { from { opacity: 0.3; } to { opacity: 1; } }

/* ——— custom cursor ——— */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9500;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  margin: -3px 0 0 -3px;
}
.cursor-ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--fg-faint);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.cursor-ring.hot {
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-color: var(--gold-dim);
  background: var(--gold-faint);
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ——— nav ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.6s var(--ease-out), background 0.4s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav.hidden { transform: translateY(-100%); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 24px; width: auto; filter: invert(1) brightness(1.05); }
.nav-links { display: flex; gap: 36px; font-size: 12.5px; letter-spacing: 0.02em; }
.nav-links a { position: relative; opacity: 0.6; transition: opacity 0.3s; padding: 4px 0; }
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-time {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .nav-links { display: none; } }

/* ——— hero ——— */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  padding-bottom: 0;
}
.hero-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero-label::before {
  content: ""; width: 48px; height: 1px; background: var(--gold);
  display: inline-block;
}
.hero-mega {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 15.5vw, 252px);
  line-height: 0.84;
  letter-spacing: -0.04em;
}
.hero-mega .ln { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero-mega .ch {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: 0 100%;
  will-change: transform;
}
.hero-mega .ch.in { animation: ch-rise 1.3s var(--ease-luxe) forwards; }
@keyframes ch-rise { to { transform: translateY(0) rotate(0deg); } }
.hero-mega em { font-style: italic; color: var(--gold); }
.hero-mega .ln-2 { margin-left: 12vw; }

.hero-base {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 64px;
  padding: 26px 0 30px;
  gap: 24px; flex-wrap: wrap;
}
.hero-base .tag {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 340px;
  line-height: 1.55;
}
.hero-base .tag b { color: var(--fg); font-weight: 500; }

/* magnetic button */
.btn-mag {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 148px; height: 148px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-size: 13px;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition: border-color 0.4s;
  will-change: transform;
}
.btn-mag .fill {
  position: absolute; inset: 0;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-luxe);
}
.btn-mag .lbl { position: relative; z-index: 1; transition: color 0.3s; }
.btn-mag:hover { border-color: var(--gold); }
.btn-mag:hover .fill { transform: translateY(0); }
.btn-mag:hover .lbl { color: var(--bg); }

/* ——— marquee (velocity reactive) ——— */
.vmarquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  position: relative; z-index: 2;
  background: var(--bg);
}
.vmarquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  will-change: transform;
  width: max-content;
}
.vmarquee-track em { font-style: italic; color: var(--gold); }
.vmarquee-track .sp {
  color: var(--fg-faint);
  font-size: 0.5em;
  align-self: center;
}

/* ——— sections ——— */
.sec { position: relative; z-index: 2; padding: 160px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 96px;
}
.sec-head .idx {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--fg-dim);
}
.sec-head .idx em { color: var(--gold); font-style: normal; }
.sec-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 14px;
}
.sec-label::before { content: ""; width: 48px; height: 1px; background: var(--gold); }

/* reveal primitives */
.rv { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.rv.in { opacity: 1; transform: translateY(0); }
.rv-line { display: block; overflow: hidden; }
.rv-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-luxe);
}
.rv-line.in > span { transform: translateY(0); }

/* ——— about ——— */
.about-state {
  font-family: var(--serif);
  font-size: clamp(44px, 5.8vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 1180px;
}
.about-state em { font-style: italic; color: var(--gold); }
.about-state .dim { color: var(--fg-faint); transition: color 0.6s var(--ease-out); }
.about-state .dim.lit { color: var(--fg); }
.about-figures {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 120px;
  border-top: 1px solid var(--line);
}
.fig {
  padding: 44px 32px 0 0;
  border-right: 1px solid var(--line);
}
.fig:last-child { border-right: 0; padding-left: 32px; }
.fig:nth-child(2) { padding-left: 32px; }
.fig .n {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fig .n em { font-style: italic; color: var(--gold); font-size: 0.6em; }
.fig .d {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim);
}
@media (max-width: 760px) {
  .about-figures { grid-template-columns: 1fr; }
  .fig { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .fig:nth-child(2), .fig:last-child { padding-left: 0; }
}

/* ——— services ——— */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.svc-row .bg {
  position: absolute; inset: 0;
  background: var(--bg-2);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease-luxe);
  z-index: 0;
}
.svc-row:hover .bg { transform: scaleY(1); }
.svc-row > * { position: relative; z-index: 1; }
.svc-row .no {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--fg-dim);
}
.svc-row .ttl {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  transition: transform 0.55s var(--ease-luxe);
}
.svc-row:hover .ttl { transform: translateX(28px); }
.svc-row .ttl em { font-style: italic; color: var(--gold); }
.svc-row .hint {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s, transform 0.55s var(--ease-luxe);
  display: flex; align-items: center; gap: 6px;
}
.svc-row:hover .hint { opacity: 1; transform: translateX(0); color: var(--gold); }

/* ——— work ——— */
.work-item {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: center;
  padding: 96px 0;
}
.work-item + .work-item { border-top: 1px solid var(--line); }
.work-item:nth-child(even) { direction: rtl; }
.work-item:nth-child(even) > * { direction: ltr; }
.work-info { display: flex; flex-direction: column; gap: 22px; }
.work-no {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.24em;
  color: var(--fg-dim);
}
.work-name {
  font-family: var(--serif);
  font-size: clamp(52px, 5.8vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.work-name em { font-style: italic; color: var(--gold); }
.work-kind {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-dim);
}
.work-visit {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px;
  margin-top: 14px;
  width: fit-content;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.3s, color 0.3s, gap 0.3s var(--ease-out);
}
.work-visit:hover { border-color: var(--gold); color: var(--gold); gap: 20px; }
.work-frame {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  border-radius: 2px;
}
.work-frame .plate {
  position: absolute; inset: 0;
  will-change: transform;
  transform: scale(1.12);
}
.work-frame .veil {
  position: absolute; inset: 0;
  background: var(--bg);
  transform-origin: top;
  z-index: 3;
  transition: transform 1.2s var(--ease-luxe);
}
.work-frame.in .veil { transform: scaleY(0); }
@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
  .work-item:nth-child(even) { direction: ltr; }
}

/* ——— shot frame (browser chrome) ——— */
.shot-frame {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: 38px 1fr;
  background: var(--bg-3);
}
.shot-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
.shot-dots { display: flex; gap: 7px; }
.shot-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.shot-url {
  flex: 1; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.45);
  max-width: 280px; margin: 0 auto;
}
.shot-img {
  position: relative; overflow: hidden;
}
.shot-img img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* ——— quote ——— */
.quote-sec { text-align: left; }
.quote-mega {
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 1240px;
}
.quote-mega em { font-style: italic; color: var(--gold); }
.quote-by {
  margin-top: 56px;
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-dim);
}
.quote-by .ln { width: 48px; height: 1px; background: var(--gold); flex-shrink: 0; }
.quote-by b { color: var(--fg); font-weight: 500; }
.quote-nav { display: flex; gap: 8px; margin-left: auto; }
.quote-pip {
  width: 28px; height: 2px;
  background: var(--line-2);
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.quote-pip .prog {
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
}
.quote-pip.active .prog { animation: pip-fill 7s linear forwards; }
@keyframes pip-fill { to { transform: scaleX(1); } }

/* ——— contact ——— */
.contact-sec { padding-bottom: 0; }
.contact-mega {
  font-family: var(--serif);
  font-size: clamp(64px, 13vw, 224px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  position: relative;
}
.contact-mega em { font-style: italic; color: var(--gold); }
.contact-mega a {
  position: relative;
  display: inline-block;
  transition: color 0.4s;
}
.contact-mega a::after {
  content: "";
  position: absolute; left: 0; bottom: 0.02em;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.7s var(--ease-luxe);
}
.contact-mega a:hover { color: var(--gold); }
.contact-mega a:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-rows {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.contact-rows .col {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--line);
}
.contact-rows .col:nth-child(2), .contact-rows .col:last-child { padding-left: 32px; }
.contact-rows .col:last-child { border-right: 0; }
.contact-rows .lbl {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 14px;
}
.contact-rows .val { font-size: 15px; line-height: 1.6; }
.contact-rows .val a { border-bottom: 1px solid var(--line-2); transition: all 0.3s; }
.contact-rows .val a:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) {
  .contact-rows { grid-template-columns: 1fr; }
  .contact-rows .col { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
}

footer {
  padding: 36px 0;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-dim);
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-row a:hover { color: var(--gold); }

/* ——— reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .hero-mega .ch { transform: none; animation: none !important; }
  .rv, .rv-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .grain { animation: none; }
  .vmarquee-track { animation: none !important; }
  .work-frame .veil { transform: scaleY(0); transition: none; }
  html { scroll-behavior: auto; }
}

/* light theme */
body.theme-light {
  --bg: #f2efe9;
  --bg-2: #e9e5dc;
  --bg-3: #ddd8cb;
  --fg: #121214;
  --fg-dim: rgba(18, 18, 20, 0.55);
  --fg-faint: rgba(18, 18, 20, 0.26);
  --line: rgba(18, 18, 20, 0.09);
  --line-2: rgba(18, 18, 20, 0.2);
}
body.theme-light .nav-logo img { filter: none; }
body.theme-light .grain { opacity: 0.035; }
body.theme-light .shot-url { color: rgba(0, 0, 0, 0.4); }
body.theme-light .shot-dots span { background: rgba(0, 0, 0, 0.18); }
