/* ==========================================================
   Elevium — marble, graphite, one red signal
   ========================================================== */
:root {
  --marble: #F3F3F1;
  --marble-2: #E9E8E4;
  --vein: #D3D2CD;
  --stone: #75746F;
  --ink: #1B1C1F;
  --red: #E1253B;
  --red-soft: rgba(225, 37, 59, .12);

  --f-sans: "Onest", system-ui, sans-serif;
  --f-roman: "Forum", "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* stone grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .45  0 0 0 0 .43  0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- type ---------- */
.h2 {
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
  max-width: 14ch;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--stone); max-width: 46ch; margin: 0; }

/* ---------- buttons & links ---------- */
.btn {
  --h: 56px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 30px;
  font: 500 16px/1 var(--f-sans);
  color: #fff; background: var(--ink);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  isolation: isolate;
  transition: transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0 0 0 0); }
.btn:active { transform: scale(.97); }
.btn--wide { width: 100%; }

.link {
  display: inline-block; font-weight: 500; text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
}
.link:hover { color: var(--red); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: normal;
  transition: background .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(243, 243, 241, .82); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.logo {
  font-family: var(--f-roman); font-size: 26px; letter-spacing: .22em; text-decoration: none;
  line-height: 1;
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: 15px; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.nav__cta:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; }
.hero__stage {
  position: relative;
  height: 100vh; height: 100svh; min-height: 680px;
  overflow: hidden;
}

/* giant carved word behind the statue */
.hero__word {
  position: absolute; z-index: 1; left: 0; right: 0; top: 50%;
  transform: translateY(-62%);
  margin: 0; display: flex; justify-content: center;
  font-family: var(--f-roman); font-size: 27vw; line-height: .8; letter-spacing: .01em;
  color: #E6E5E1;
  text-shadow: 0 3px 0 #fff, 0 -2px 0 rgba(0, 0, 0, .09);
  pointer-events: none; user-select: none;
  overflow: hidden; padding: .06em 0 .02em;
}
.hero__word span { display: inline-block; }

/* statue */
.bust {
  position: absolute; z-index: 2;
  left: 50%; bottom: -3vh;
  height: min(84vh, 1080px); aspect-ratio: 2 / 3;
  transform: translateX(-50%);
}
.bust__img, .bust__code { position: absolute; inset: 0; width: 100%; height: 100%; }
.bust__code { pointer-events: none; }
.bust__img {
  user-select: none; -webkit-user-drag: none;
  clip-path: inset(var(--reveal) 0 0 0);
  -webkit-mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 50%) var(--ly, 25%), transparent 0 calc(var(--lr, 0px) - 1px), #000 calc(var(--lr, 0px) + 1px));
          mask-image: radial-gradient(circle var(--lr, 0px) at var(--lx, 50%) var(--ly, 25%), transparent 0 calc(var(--lr, 0px) - 1px), #000 calc(var(--lr, 0px) + 1px));
}
/* red seam that rides the marble as it sets */
.bust__seam {
  position: absolute; left: -6%; right: -6%; top: var(--reveal); height: 1.5px; background: var(--red);
  box-shadow: 0 0 14px 2px rgba(225, 37, 59, .35);
  opacity: 0; pointer-events: none;
}

/* lens */
.lens {
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  opacity: 0;
}
.lens::before {
  content: ""; position: absolute; left: calc(var(--r, 0px) * -1); top: calc(var(--r, 0px) * -1);
  width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2);
  border: 1.5px solid var(--red); border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(225, 37, 59, .06);
}
.lens i { position: absolute; background: var(--red); }
.lens i:nth-child(1), .lens i:nth-child(2) { width: 1.5px; height: 12px; left: -.75px; }
.lens i:nth-child(3), .lens i:nth-child(4) { height: 1.5px; width: 12px; top: -.75px; }
.lens i:nth-child(1) { top: calc(var(--r, 0px) * -1 - 6px); }
.lens i:nth-child(2) { top: calc(var(--r, 0px) - 6px); }
.lens i:nth-child(3) { left: calc(var(--r, 0px) * -1 - 6px); }
.lens i:nth-child(4) { left: calc(var(--r, 0px) - 6px); }

/* copy */
.hero__title {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  width: min(420px, 30vw);
}
.hero__h {
  margin: 0 0 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1;
  font-size: clamp(38px, 3.7vw, 60px);
}
.hero__h .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__h .ln > span { display: inline-block; }

.hero__aside {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(40px, 9vh, 96px);
  width: min(260px, 22vw);
  display: flex; flex-direction: column;
  border-top: 1px solid var(--vein);
}
.hero__aside a {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--vein);
  font-size: 15px; text-decoration: none; color: var(--ink);
  transition: color .3s, padding-left .45s var(--ease);
}
.hero__aside a::after {
  content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(135deg) translate(2px, -2px); opacity: .35; transition: opacity .3s, transform .45s var(--ease);
}
.hero__aside a:hover { color: var(--red); padding-left: 8px; }
.hero__aside a:hover::after { opacity: 1; transform: rotate(135deg) translate(0, 0); }

.hero__hint {
  position: absolute; z-index: 3; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: none;
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services { padding: clamp(96px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(56px, 8vw, 120px); }

.services__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: start; }

.services__figure { position: sticky; top: 12vh; margin: 0; }
.plinth { position: relative; aspect-ratio: 1; background: var(--marble); }
.plinth img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.04); filter: blur(6px);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease), filter .9s var(--ease);
}
.plinth img.is-on { opacity: 1; transform: none; filter: none; }
.services__figure figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 1px solid var(--vein); padding-top: 16px; margin-top: 8px;
}
.plinth__name { font-family: var(--f-roman); font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .18em; line-height: 1; }
.plinth__note { font-size: 14px; color: var(--stone); }

.services__list { display: flex; flex-direction: column; }
.svc {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--vein);
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .32; transition: opacity .6s var(--ease);
}
.svc:last-child { border-bottom: 1px solid var(--vein); }
.svc.is-active { opacity: 1; }
.svc h3 { margin: 0 0 18px; font-weight: 700; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.03em; }
.svc p { margin: 0 0 26px; color: #4A4B4F; max-width: 48ch; font-size: 18px; }
.svc__thumb { display: none; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 6px 12px; border: 1px solid var(--vein); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.svc.is-active .tags li:first-child { border-color: var(--red); color: var(--red); }

/* ==========================================================
   FRIEZE — carved inscription
   ========================================================== */
.frieze {
  overflow: hidden; white-space: nowrap;
  background: var(--marble-2);
  border-block: 1px solid var(--vein);
  padding: clamp(18px, 2.4vw, 34px) 0;
  position: relative;
}
.frieze::before, .frieze::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; border-block: 1px solid var(--vein); }
.frieze::before { top: 6px; } .frieze::after { bottom: 6px; }
.frieze__track { display: inline-flex; will-change: transform; }
.frieze__track span {
  font-family: var(--f-roman); font-size: clamp(40px, 7vw, 110px); letter-spacing: .14em; line-height: 1;
  color: #CFCDC7;
  text-shadow: 0 1.5px 0 #fff, 0 -1px 0 rgba(0, 0, 0, .16);
}

/* ==========================================================
   CASES
   ========================================================== */
.cases { padding: clamp(96px, 12vw, 180px) 0; }
.cases .h2 { margin-bottom: clamp(48px, 6vw, 96px); }

.case { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.case__shot {
  display: block; text-decoration: none; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--vein);
  box-shadow: 0 40px 80px -40px rgba(27, 28, 31, .35);
}
.case__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--vein); font-size: 12px; color: var(--stone); }
.case__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--vein); }
.case__bar span { margin-left: 12px; }
.case__shot img { width: 100%; filter: grayscale(1) contrast(1.05); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.case__shot:hover img { transform: scale(1.02); }

.case__title { font-family: var(--f-roman); font-weight: 400; font-size: clamp(56px, 6vw, 96px); letter-spacing: .08em; line-height: .9; margin: 0 0 22px; }
.case__sub { margin: 0 0 32px; color: #4A4B4F; font-size: 18px; }
.case__facts { margin: 0 0 32px; }
.case__facts div { padding: 16px 0; border-top: 1px solid var(--vein); }
.case__facts dt { font-size: 13px; color: var(--stone); margin-bottom: 4px; }
.case__facts dd { margin: 0; }

.case-next {
  margin-top: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-block: 1px solid var(--vein);
  text-decoration: none;
}
.case-next__plinth {
  width: clamp(56px, 7vw, 96px); aspect-ratio: 1 / 1.1; position: relative;
  border: 1.5px dashed var(--stone); border-radius: 2px; opacity: .6;
  transition: border-color .4s, opacity .4s;
}
.case-next__plinth::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -10px; height: 8px; background: var(--vein); }
.case-next__text { font-size: clamp(20px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.case-next:hover .case-next__plinth { border-color: var(--red); opacity: 1; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { padding: clamp(96px, 12vw, 180px) 0; background: var(--ink); color: var(--marble); position: relative; overflow: hidden; }
.contact .lead { color: #A4A39E; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__intro .h2 { margin-bottom: 28px; }
.contact__direct { list-style: none; padding: 0; margin: 48px 0 0; }
.contact__direct li { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid #34353A; font-size: 18px; }
.contact__direct li:last-child { border-bottom: 1px solid #34353A; }
.contact__direct span { color: #8D8C87; }
.contact__direct a { text-decoration: none; }
.contact__direct a:hover { color: var(--red); }

.form { position: relative; display: flex; flex-direction: column; gap: 22px; }
.chips { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; color: #8D8C87; margin-bottom: 14px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 16px; border: 1px solid #3E3F44; border-radius: 999px; font-size: 15px;
  transition: background .3s, border-color .3s, color .3s;
}
.chips label:hover span { border-color: #77767A; }
.chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #3E3F44; color: var(--marble);
  font: 400 19px/1.4 var(--f-sans); padding: 26px 0 12px; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 96px; }
.field label { position: absolute; left: 0; top: 26px; color: #8D8C87; font-size: 19px; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.72); }
.field input:focus + label, .field textarea:focus + label { color: var(--red); }
.field.is-invalid input { border-color: var(--red); }

.form .btn { margin-top: 12px; --h: 64px; font-size: 17px; background: var(--marble); color: var(--ink); transition: color .4s, transform .4s var(--ease); }
.form .btn:hover { color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin: 0; color: #FF6B7B; font-size: 15px; }
.form__note { margin: 0; font-size: 13px; color: #75746F; }
.form__done {
  position: absolute; inset: 0; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.form__done[hidden] { display: none; }
.form__done-title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.03em; margin: 0; }
.form__done p:last-child { color: #A4A39E; margin: 0; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { padding: 0 0 28px; overflow: hidden; }
.footer__mark {
  margin: 0; text-align: center; white-space: nowrap;
  font-family: var(--f-roman); font-size: 21.5vw; line-height: .78; letter-spacing: .04em;
  color: var(--marble-2);
  text-shadow: 0 2px 0 #fff, 0 -1.5px 0 rgba(0, 0, 0, .12);
  padding-top: .12em;
  transform: translateX(.02em);
}
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--stone); padding-top: 24px; border-top: 1px solid var(--vein); }
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--red); }

/* ==========================================================
   CURSOR — scanner brackets
   ========================================================== */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 28px; height: 28px; opacity: 0; transition: opacity .3s; }
.cursor i { position: absolute; width: 8px; height: 8px; border: 0 solid var(--red); }
.cursor i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cursor i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cursor i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.cursor i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
@media (pointer: fine) { .has-cursor .cursor { opacity: 1; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .logo { font-size: 22px; }

  .hero__stage { height: auto; min-height: 0; padding-top: 84px; }
  .hero__word { position: relative; top: auto; transform: none; font-size: 25vw; }
  .bust { position: relative; left: auto; bottom: auto; transform: none; margin: -14vw auto 0; height: auto; width: min(84vw, 440px); }
  .hero__title { position: relative; left: auto; bottom: auto; width: auto; padding: 36px var(--gutter) 0; }
  .hero__aside { position: relative; right: auto; bottom: auto; width: auto; margin: 32px var(--gutter) 16px; }
  .hero__hint { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .services__figure { display: none; }
  .svc { min-height: 0; opacity: 1; display: grid; grid-template-columns: 1fr; }
  .svc__thumb { display: block; background: var(--marble); width: 120px; aspect-ratio: 1; object-fit: contain; margin-bottom: 12px; }

  .case { grid-template-columns: 1fr; }
  .case__shot img { filter: none; }
  .case-next { grid-template-columns: auto 1fr; }
  .case-next .link { grid-column: 1 / -1; justify-self: start; }

  .contact__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
