/* ============================================================
   GBCB · One-pager styles
   Light editorial / agency · cream + ink + signal accent
   ============================================================ */

:root {
  /* Palette */
  --bg: #F5F3EE;
  --bg-2: #EFEBE2;
  --ink: #0E0E0C;
  --ink-2: #1B1A16;
  --muted: #8A8478;
  --line: #DCD6C8;
  --accent: #FF3D2E;       /* signal red — used sparingly */
  --accent-ink: #0E0E0C;

  /* Type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 12vw, 180px);
  --rule: 1px solid var(--line);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  cursor: none; /* magnetic cursor handles it; falls back via @media */
}

@media (hover: none) or (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none !important; }
}

::selection { background: var(--ink); color: var(--bg); }

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

/* Subtle film grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .6 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* ========== Magnetic Cursor ========== */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}
.cursor {
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              background-color .25s var(--ease-out), border-color .25s var(--ease-out),
              mix-blend-mode .15s;
  mix-blend-mode: difference;
  background: transparent;
}
.cursor.is-link { width: 72px; height: 72px; background: var(--ink); border-color: var(--ink); }
.cursor.is-text { width: 4px; height: 22px; border-radius: 2px; background: var(--ink); }
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--ink); border-radius: 50%;
}

/* ========== Layout helpers ========== */
.container { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: var(--section-y) var(--pad-x); position: relative; }
.section + .section { border-top: var(--rule); }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .96;
  letter-spacing: -.02em;
  margin-top: 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), padding .3s var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: 15px;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(50%);
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand-mark::after { transform: translateX(0); }

.nav-links {
  display: flex; gap: 28px;
  font-size: 13px;
  letter-spacing: -.005em;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 18px; }

/* ========== Mobile nav toggle ========== */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 999px;
  position: relative;
  z-index: 110;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .25s var(--ease-out);
  transform-origin: center;
}
.nav.is-open .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav-toggle-bar:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 0 var(--pad-x);
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(36px, 8vw, 56px);
    letter-spacing: -.02em;
    line-height: 1.05;
    z-index: 95;
    transform: translateY(-101%);
    transition: transform .5s var(--ease-out);
    visibility: hidden;
  }
  .nav.is-open .nav-links {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  }
  .nav-links a:first-child { border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
  .nav-links a::after { display: none; }
  body.nav-open { overflow: hidden; }
}

.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: color-mix(in oklab, var(--bg) 60%, white);
}
.lang-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s, background .3s var(--ease-out);
}
.lang-btn[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-selected="true"]:hover { color: var(--bg); }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .25s var(--ease-out);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .45s var(--ease-out);
  z-index: 0;
}
.cta:hover::before { transform: translateY(0); }
.cta > * { position: relative; z-index: 1; }
.cta-arrow {
  width: 12px; height: 12px;
  transition: transform .3s var(--ease-out);
}
.cta:hover .cta-arrow { transform: translate(2px, -2px); }
@media (max-width: 540px) { .cta span:first-child { display: none; } .cta { padding: 10px 12px; } }

/* ========== Reveal Animations ========== */
.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.reveal-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal-mask.in .reveal-inner { transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-fade.in { opacity: 1; transform: translateY(0); }

.stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  padding: 0 var(--pad-x);
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 80px;
  padding-top: 140px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 200px);
  line-height: .92;
  letter-spacing: -.025em;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic;
}
.hero-rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  color: var(--accent);
  font-style: italic;
}
.hero-rotator-slot {
  display: inline-block;
  position: relative;
  height: 1em;
  vertical-align: bottom;
  overflow: hidden;
  min-width: 4ch;
}
.hero-rotator-word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transition: transform .7s var(--ease-in-out), opacity .5s var(--ease-out);
}
.hero-rotator-word.in { transform: translateY(0); opacity: 1; }
.hero-rotator-word.out { transform: translateY(-110%); opacity: 0; }
.hero-rotator-word.next { transform: translateY(110%); opacity: 0; }

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr min(420px, 40vw);
  gap: 60px;
  align-items: end;
  margin-top: 80px;
}
@media (max-width: 800px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
}
.hero-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 42ch;
  text-wrap: pretty;
}
.hero-scroll {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll-arrow {
  width: 18px; height: 18px;
  animation: bounce 2.2s var(--ease-in-out) infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sun/orbit decoration in hero corner */
.hero-orbit {
  position: absolute;
  top: 140px;
  right: var(--pad-x);
  width: 120px; height: 120px;
  pointer-events: none;
}
.hero-orbit-disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: orbit-pulse 4s var(--ease-in-out) infinite;
}
.hero-orbit-ring {
  position: absolute; inset: -40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.hero-orbit-ring::after {
  content: ""; position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (max-width: 700px) { .hero-orbit { width: 80px; height: 80px; top: 110px; } }

/* ========== MARQUEE ========== */
.marquee {
  border-top: var(--rule);
  border-bottom: var(--rule);
  overflow: hidden;
  padding: 28px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
@media (max-width: 900px) { .marquee-track { animation-duration: 22s; } }
@media (max-width: 540px) { .marquee-track { animation-duration: 14s; } }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-item::after {
  content: "✺";
  font-style: normal;
  color: var(--accent);
  font-size: .55em;
  transform: translateY(-.15em);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ========== SERVICES ========== */
.services-list { margin-top: 80px; }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr 60px;
  gap: 24px;
  padding: 36px 0;
  border-top: var(--rule);
  position: relative;
  cursor: none;
  transition: padding .4s var(--ease-out);
}
.service:last-child { border-bottom: var(--rule); }
.service::before {
  content: ""; position: absolute;
  left: -100%; right: 100%; top: 0; bottom: 0;
  background: var(--ink);
  transition: left .6s var(--ease-out), right .6s var(--ease-out);
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .service:hover::before { left: -100vw; right: -100vw; }
  .service:hover { color: var(--bg); padding: 56px 0; }
  .service:hover .service-arrow { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  .service:hover .service-desc { color: color-mix(in oklab, var(--bg) 80%, transparent); }
}

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  padding-top: 8px;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
  font-style: italic;
}
.service-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.service-desc-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.service-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: .65;
}
.service-arrow {
  width: 36px; height: 36px;
  align-self: start; justify-self: end;
  transform: translate(-12px, 12px) rotate(-25deg);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out);
  margin-top: 4px;
}
@media (max-width: 800px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .service:hover { padding: 36px 0; }
  .service-arrow { display: none; }
}

/* ========== PROCESS ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: var(--rule);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  padding: 40px 28px 56px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  position: relative;
  background: var(--bg);
  transition: background .4s var(--ease-out);
}
.process-step:last-child { border-right: 0; }
@media (max-width: 900px) {
  .process-step:nth-child(2n) { border-right: 0; }
  .process-step { border-right: var(--rule); }
}
@media (max-width: 540px) {
  .process-step { border-right: 0; }
}
.process-step:hover { background: var(--bg-2); }
.process-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.process-num-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 8vw, 120px);
  line-height: 1;
  margin: 24px 0 32px;
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.process-num-big::after {
  content: ""; position: absolute;
  right: -14px; top: 4px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.process-title {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  margin-bottom: 10px;
}
.process-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 32ch;
}

/* ========== WORK / case studies ========== */
.work-list {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
}
.work-item {
  position: relative;
  cursor: none;
}
.work-item:nth-child(1) { grid-column: span 7; }
.work-item:nth-child(2) { grid-column: span 5; }
.work-item:nth-child(3) { grid-column: span 12; }
@media (max-width: 900px) { .work-item { grid-column: span 12 !important; } }

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.work-item:nth-child(3) .work-thumb { aspect-ratio: 20 / 7; }
.work-thumb-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in oklab, var(--ink) 8%, transparent) 14px 15px);
  transition: transform .8s var(--ease-out);
}
.work-thumb::after {
  content: attr(data-caption);
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: var(--rule);
}
.work-item:hover .work-thumb-pattern { transform: scale(1.08) rotate(-1deg); }

.work-metric {
  position: absolute;
  top: 20px; left: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(72px, 9vw, 160px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  pointer-events: none;
  z-index: 1;
  transition: transform .8s var(--ease-out);
}
.work-item:hover .work-metric { transform: translateY(-6px); }
.work-metric .ampersand { color: var(--accent); }

.work-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.work-client {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}
.work-sector {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-detail {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 56ch;
}

.work-viewall {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ========== STACK ========== */
.stack-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.stack-item {
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 40px 24px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 140px;
  position: relative;
  transition: background .35s var(--ease-out);
  cursor: none;
}
.stack-item:hover { background: var(--ink); color: var(--bg); }
.stack-item-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -.01em;
}
.stack-item-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}
.stack-item:hover .stack-item-cat { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.stack-item-dot {
  position: absolute;
  top: 20px; right: 20px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s;
}
.stack-item:hover .stack-item-dot { opacity: 1; }

/* ========== MANIFESTO ========== */
.manifesto {
  background: var(--ink);
  color: var(--bg);
}
.manifesto .kicker { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.manifesto-list {
  margin-top: 60px;
  display: flex; flex-direction: column;
}
.manifesto-item {
  font-family: var(--serif);
  font-size: clamp(28px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -.02em;
  padding: 24px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 16%, transparent);
  display: flex; align-items: baseline; gap: 24px;
  font-style: italic;
  position: relative;
  overflow: hidden;
}
.manifesto-item:first-child { border-top: 1px solid color-mix(in oklab, var(--bg) 16%, transparent); }
.manifesto-item-num {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .14em;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
  flex-shrink: 0;
  align-self: start;
  padding-top: 24px;
}
.manifesto-item-text {
  position: relative;
  transition: transform .6s var(--ease-out);
}
.manifesto-item:hover .manifesto-item-text { transform: translateX(12px); }
.manifesto-item:hover { color: var(--accent); }

/* ========== CONTACT ========== */
.contact {
  padding-top: var(--section-y);
  padding-bottom: 60px;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 160px);
  line-height: .96;
  letter-spacing: -.025em;
  max-width: 14ch;
  margin-top: 28px;
}
.contact-title em {
  font-style: italic;
  color: var(--accent);
}
.contact-sub {
  margin-top: 32px;
  max-width: 48ch;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.contact-email-wrap {
  margin-top: 60px;
  display: inline-block;
  position: relative;
}
.contact-email {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.02em;
  font-style: italic;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  display: inline-block;
  transition: color .3s, border-color .3s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

.studio-visual {
  margin-top: 100px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--ink) 18%, var(--bg)), var(--bg-2));
  border: var(--rule);
}
.studio-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(.92);
  transition: transform 1.2s var(--ease-out);
}
.studio-visual:hover img { transform: scale(1.04); }
.studio-visual-meta {
  position: absolute;
  left: 24px; bottom: 20px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--bg);
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
  z-index: 2;
}
.studio-visual-meta::before {
  content: ""; position: absolute;
  inset: -200px -200px -16px -24px;
  background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.studio-visual-coords {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.studio-visual-place {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.05;
}
.studio-visual.no-img img { display: none; }

.contact-details {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  border-top: var(--rule);
}
@media (max-width: 800px) { .contact-details { grid-template-columns: 1fr; gap: 28px; } }
.contact-detail h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 10px;
}
.contact-detail p {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

/* ========== FOOTER ========== */
.footer {
  padding: 32px var(--pad-x);
  border-top: var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer .back-top {
  display: inline-flex; align-items: center; gap: 8px;
}
.footer .back-top:hover { color: var(--ink); }
.footer-wordmark {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 22vw, 320px);
  line-height: .85;
  text-transform: none;
  letter-spacing: -.04em;
  color: var(--ink);
  padding: 60px var(--pad-x) 20px;
  overflow: hidden;
  text-align: left;
  border-top: var(--rule);
  width: 100%;
}
.footer-wordmark span {
  display: inline-block;
  transform-origin: bottom;
}

/* ========== Scramble + utility ========== */
[data-scramble] { display: inline-block; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-inner { transform: none !important; }
  .reveal-fade { opacity: 1 !important; transform: none !important; }
}
