/* ==========================================================================
   Enki's Web Studio
   Editorial, monochrome, motion-led. Layout modeled on zerasoftwarestudio.com/portfolio
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --white: #fff;
  --grey: rgb(255 255 255 / .6);
  --dim: rgb(255 255 255 / .38);
  --line: rgb(255 255 255 / .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --font: "General Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 1.4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--white);
  font-family: var(--font); font-size: 16px; line-height: 1.2;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { 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, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: #fff; color: #0a0a0a; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.container { width: 100%; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

/* Logo mark (inline SVG symbol #enki-mark), sized to sit on the cap height of the wordmark */
.mark { display: inline-block; flex: none; width: .66em; height: .73em; fill: currentColor; }

/* Type */
.p { font-size: clamp(14px, 1.05vw, 17px); font-weight: 450; line-height: 1.18; letter-spacing: -.02em; color: var(--grey); }
.p.white { color: var(--white); }
.p + .p { margin-top: 1em; }
.is-gradient { background: linear-gradient(90deg, #6d6d6d, #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.h1 { font-size: clamp(56px, 7.7vw, 150px); font-weight: 500; line-height: .85; letter-spacing: -.035em; }

/* Text roll on hover (JS wraps .roll content into two stacked copies) */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.15; }
.roll-a, .roll-b { grid-area: 1 / 1; transition: transform .75s cubic-bezier(.65, .05, 0, 1); }
.roll-b { transform: translateY(105%); }
a:hover .roll-a, button:hover .roll-a, a:focus-visible .roll-a { transform: translateY(-105%); }
a:hover .roll-b, button:hover .roll-b, a:focus-visible .roll-b { transform: none; }

/* Underlined link */
.line-link {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: 260px; padding-bottom: .45rem;
  font-size: clamp(14px, 1.05vw, 17px); font-weight: 500; letter-spacing: -.02em; color: currentColor;
}
.line-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .7s var(--ease-in-out);
}
.line-link:hover::after { animation: line-wipe .9s var(--ease-in-out); }
@keyframes line-wipe {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* Image slots: painted placeholders until a real file exists in assets/images/ */
[data-image] { background-color: #161616; background-size: cover; background-position: center; }
.has-image { background-size: cover !important; background-position: center !important; }
.ph-waves, .hero-case-img, .slide-pic, .footer-img {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='1'%3E%3Cpath d='M0 30c15-12 30-12 45 0s30 12 45 0 30-12 45 0'/%3E%3Cpath d='M0 46c15-12 30-12 45 0s30 12 45 0 30-12 45 0'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 70% 30%, #3a3a3a, transparent 60%),
    linear-gradient(160deg, #262626, #0f0f0f);
  background-size: 60% auto, cover, cover; background-repeat: no-repeat; background-position: 50% 55%, center, center;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: none;
  grid-template-rows: auto 1fr auto; padding: var(--gutter);
  background: var(--bg); color: var(--white);
}
.js .preloader { display: grid; animation: preloader-failsafe .01s 7s forwards; }
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.preloader-top, .preloader-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.preloader-brand { display: inline-flex; align-items: center; gap: .12em; }
.preloader-brand .mark { width: 13px; height: 14px; color: var(--white); }
/* Counters get fixed boxes and never wrap, so changing digit widths can't nudge the rest of the row */
.preloader-top > *, .preloader-bottom > * { white-space: nowrap; }
.preloader-percent { min-width: 4.5em; text-align: right; color: var(--white); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.preloader-fraction { min-width: 9.5em; font-variant-numeric: tabular-nums; }
.preloader-title {
  align-self: end; justify-self: center; width: min(100%, 1100px); padding-bottom: 18vh;
  font-size: clamp(44px, 6.4vw, 120px); font-weight: 500; line-height: .88; letter-spacing: -.04em;
  color: rgb(255 255 255 / .12);
}
.preloader-title .char { transition: color .3s; }
.preloader-title .char.is-on { color: var(--white); }
.preloader-line { flex: 0 1 30%; min-width: 0; height: 1px; background: var(--line); overflow: hidden; }
.preloader-line i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: left; }
.preloader::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 45% at 50% 55%, rgb(255 255 255 / .05), transparent 70%);
}
html.is-loading, html.is-loading body { overflow: hidden; }
/* Hold the loader's text until the web font is in, so it never jumps from the fallback font to General Sans */
.preloader > * { transition: opacity .5s var(--ease); }
.js:not(.fonts-ready) .preloader > * { opacity: 0; }

/* ==========================================================================
   Fixed bar, menu, cursor, grain
   ========================================================================== */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--gutter) * .6) var(--gutter); color: var(--white);
  /* Solid backing so the bar never sits on top of page text */
  background: var(--bg); border-bottom: 1px solid var(--line);
  transform: translateY(-130%); transition: transform .8s var(--ease), background-color .5s, border-color .5s;
}
.bar.is-visible, .menu-open .bar { transform: none; }
/* Over the open menu (already solid black) the backing isn't needed */
.menu-open .bar { border-color: transparent; }
.bar-logo { display: inline-flex; align-items: center; gap: .07em; font-size: clamp(22px, 1.9vw, 32px); font-weight: 500; letter-spacing: -.05em; }
.menu-button { padding: .5rem .95rem; border: 1px solid #fff; border-radius: 500px; font-size: 14px; font-weight: 500; }

.menu {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--gutter) * 5) var(--gutter) var(--gutter); background: var(--bg);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s .9s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-in-out); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: flex-start; gap: 1.5rem; padding: .2em 0; border-bottom: 1px solid var(--line);
  font-size: clamp(48px, 9vw, 160px); font-weight: 500; line-height: .95; letter-spacing: -.05em;
  opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .9s var(--ease);
}
.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-open .menu-links a:nth-child(1) { transition-delay: .25s; }
.menu-open .menu-links a:nth-child(2) { transition-delay: .31s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: .37s; }
.menu-open .menu-links a:nth-child(4) { transition-delay: .43s; }
.menu-index { padding-top: .6em; font-size: 13px; letter-spacing: 0; color: var(--dim); }
.menu-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 14px; color: var(--grey); }
.menu-foot a { color: var(--white); }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; width: 0; height: 0; pointer-events: none;
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0);
  mix-blend-mode: difference; opacity: 0; transition: opacity .4s;
}
.cursor::before {
  content: ""; position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%;
  background: #fff; transform: scale(.105); transition: transform .7s var(--ease);
}
.cursor.is-active { opacity: 1; }
.cursor.is-link::before { transform: scale(.46); }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label::before { transform: scale(1); }
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  font-size: 13px; font-weight: 500; color: #000; opacity: 0; transition: opacity .3s;
}
.cursor.is-label .cursor-label { opacity: 1; transition-delay: .15s; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 140; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' 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; will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
main { position: relative; z-index: 2; background: var(--bg); }

.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero-header {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: var(--gutter);
  padding-top: var(--gutter);
}
.logo { grid-column: 1 / 7; justify-self: start; display: flex; align-items: center; gap: .07em; overflow: hidden; padding-bottom: .04em; font-size: clamp(40px, 4.4vw, 84px); font-weight: 500; line-height: .82; letter-spacing: -.055em; }
.logo-word { display: inline-block; overflow: hidden; }
.hero-nav { grid-column: 7 / 11; display: flex; flex-direction: column; gap: .15rem; }
.nav-link { align-self: flex-start; font-size: clamp(14px, 1.05vw, 17px); font-weight: 450; letter-spacing: -.03em; }
.pill-button {
  grid-column: 11 / 13; justify-self: end; padding: .55rem 1rem; border-radius: 500px;
  background: #fff; color: #0a0a0a; font-size: clamp(14px, 1.05vw, 17px); font-weight: 500; letter-spacing: -.02em;
}

.hero-meta {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  padding-top: clamp(40px, 6vh, 80px); padding-bottom: 1.25rem; position: relative;
}
.hero-meta::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.hero-meta-col { grid-column: 1 / 4; max-width: 300px; }
.hero-meta-col .p.white { margin-bottom: 1.1em; }
.hero-meta-col--right { grid-column: 7 / 11; max-width: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.hero-meta-col--right .p.white { margin-bottom: .3em; }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--dim);
}
.scroll-cue i { position: relative; width: 1px; height: 46px; overflow: hidden; background: var(--line); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: #fff; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(220%); } }
.hero-main { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); padding-bottom: var(--gutter); }
.hero-case { grid-column: 1 / 4; align-self: end; display: flex; flex-direction: column; gap: .6rem; width: min(100%, 260px); }
.hero-case-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; transition: transform 1s var(--ease); }
.hero-case:hover .hero-case-img { transform: scale(.97); }
.hero-case-label { font-size: 14px; font-weight: 500; color: var(--white); }
.hero-copy { grid-column: 7 / 13; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding-top: clamp(20px, 3vh, 44px); }
.hero-title { max-width: 11.5ch; will-change: transform; }
.hero-cta { display: flex; flex-direction: column; gap: 1.1rem; max-width: 280px; }

/* ==========================================================================
   About — words assemble while pinned
   ========================================================================== */
.about { position: relative; }
.about-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding-block: 15vh; }
.about-kicker { max-width: 380px; }
.about-text { max-width: 76rem; font-size: clamp(28px, 3.6vw, 64px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.about-text .word { display: inline-block; will-change: transform; }

/* ==========================================================================
   Approach — steps scroll over a full-bleed image
   ========================================================================== */
.approach { position: relative; }
.approach-sticky { position: absolute; inset: 0; pointer-events: none; }
.approach-media { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.approach-img {
  position: absolute; inset: -6% 0; filter: grayscale(1) contrast(1.05); will-change: transform;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgb(255 255 255 / .09) 38% 52%, transparent 52%),
    linear-gradient(180deg, transparent 0 64%, rgb(0 0 0 / .35) 64% 64.4%, transparent 64.4%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 160px),
    radial-gradient(ellipse 60% 50% at 30% 40%, #4d4d4d, transparent 70%),
    linear-gradient(90deg, #232323 0%, #3c3c3c 40%, #2a2a2a 70%, #141414 100%);
}
.approach-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgb(10 10 10 / .25) 22%, rgb(10 10 10 / .35) 70%, var(--bg) 100%); }
.approach-steps { position: relative; z-index: 1; padding-top: 55vh; padding-bottom: 35vh; }
.approach-index {
  position: absolute; left: 0; bottom: var(--gutter); display: flex; flex-direction: column; gap: .3rem;
  font-size: 14px; font-weight: 500; letter-spacing: -.02em;
}
.approach-index li { display: flex; gap: .9rem; color: var(--dim); transition: color .5s, transform .6s var(--ease); }
.approach-index li span { font-variant-numeric: tabular-nums; }
.approach-index li.is-active { color: var(--white); transform: translateX(6px); }
.approach-step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start;
  min-height: 55vh;
}
.step-text { grid-column: 5 / 7; max-width: 235px; }
.step-label { grid-column: 8 / 9; color: var(--grey); }
.approach-step--flip .step-label { grid-column: 3 / 4; }
.approach-step--flip .step-text { grid-column: 6 / 8; justify-self: end; text-align: right; }

/* ==========================================================================
   Services intro — wave draws behind the heading
   ========================================================================== */
.services-top { position: relative; overflow: hidden; padding: clamp(120px, 14vh, 200px) 0 22vw; }
.services-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.services-wave path { fill: none; stroke: #fff; stroke-width: 150; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.services-top-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.services-top-grid > .p:first-child { grid-column: 1 / 4; }
.h2-services { grid-column: 4 / 9; font-size: clamp(40px, 4.9vw, 92px); font-weight: 500; line-height: .9; letter-spacing: -.04em; mix-blend-mode: difference; }
.services-top-copy { grid-column: 9 / 13; max-width: 330px; padding-top: 3.2rem; mix-blend-mode: difference; }
.services-top-copy .p, .services-top-copy strong { color: #a3a3a3; font-weight: 450; }

/* ==========================================================================
   Service slides — sticky stacking cards
   ========================================================================== */
.slides { position: relative; }
.slide { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.slide-inner { position: relative; height: 100%; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.slide-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
.slide--1 .slide-inner { background: #f1f1f1; color: #0a0a0a; }
.slide--2 .slide-inner { background: #8d8d8d; color: #0a0a0a; }
.slide--3 .slide-inner { background: #383838; color: #fff; }
.slide-content { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: var(--gutter) calc(var(--gutter) * 1.5); }
.slide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.h2-slide { font-size: min(18vh, 10.5vw); font-weight: 500; line-height: .85; letter-spacing: -.07em; }
.slide-number { font-size: min(15vh, 12vw); font-weight: 500; line-height: .85; letter-spacing: -.07em; opacity: .55; }
.slide-body {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter);
  padding-top: 1rem;
}
.slide-body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor; opacity: .25; }
.slide .p { color: inherit; }
.slide .slide-col .p { opacity: .62; }
.slide-label { grid-column: 1 / 3; }
.slide-col { grid-column: span 3; display: flex; flex-direction: column; }
.slide-col:nth-of-type(1) { grid-column: 3 / 6; }
.slide-col:nth-of-type(2) { grid-column: 6 / 9; }
.slide-col .line-link { margin-top: 2rem; }
.slide-pic { grid-column: 9 / 13; aspect-ratio: 4 / 3; max-height: 36vh; width: 100%; transition: transform 1.2s var(--ease), filter .8s; }
.slide-pic:hover { transform: scale(.975); }
.slide--1 .slide-pic:not(.has-image) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.15'%3E%3Cpath d='M0 30c15-12 30-12 45 0s30 12 45 0 30-12 45 0'/%3E%3Cpath d='M0 46c15-12 30-12 45 0s30 12 45 0 30-12 45 0'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, #dcdcdc, #c4c4c4); background-color: #d0d0d0; }

/* ==========================================================================
   Kinetic band
   ========================================================================== */
.band { overflow: hidden; padding: clamp(80px, 12vh, 160px) 0; }
.band-row { white-space: nowrap; }
.band-track { display: inline-flex; align-items: center; gap: 3.5vw; padding-right: 3.5vw; will-change: transform; }
.band-row span { font-size: 13vw; font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.band-row i { width: 2vw; height: 2vw; border-radius: 50%; background: #fff; flex: none; }
.band-row--ghost span { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .35); }
.band-row--ghost i { background: transparent; border: 1px solid rgb(255 255 255 / .35); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { padding: clamp(100px, 14vh, 200px) 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.reviews-aside { grid-column: 1 / 3; position: sticky; top: 18vh; display: flex; flex-direction: column; gap: 3rem; }
.qualities li { font-size: 14px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.reviews-main { grid-column: 4 / 13; }
.h2-reviews { max-width: 11ch; font-size: clamp(40px, 4.9vw, 92px); font-weight: 500; line-height: .9; letter-spacing: -.04em; }
.review-list { margin-top: clamp(48px, 7vh, 96px); }
.review {
  position: relative; display: grid; grid-template-columns: 1fr 2fr 4fr; gap: var(--gutter);
  padding: 1.1rem 0 3.2rem;
}
.review::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.review::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.review:hover::after { transform: scaleX(1); }
.review-no, .review-text { transition: color .5s; }
.review:hover .review-no, .review:hover .review-text { color: var(--white); }
.review-who { font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.review-who span { display: block; margin-top: .35em; font-size: 13px; font-weight: 450; color: var(--dim); }
.review-text { max-width: 560px; }

/* Sculpture: an extruded Enki mark, built from stacked layers in JS */
.sculpture { width: clamp(110px, 10vw, 160px); aspect-ratio: 1; perspective: 700px; }
.sculpture-obj { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: sculpt 14s linear infinite; }
.sculpture-obj svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sculpture-obj.is-paused { animation-play-state: paused; }
@keyframes sculpt { from { transform: rotateX(-12deg) rotateY(0deg); } to { transform: rotateX(-12deg) rotateY(360deg); } }

/* ==========================================================================
   Contact — card over full-bleed image, multi-step form
   ========================================================================== */
.contact { position: relative; overflow: hidden; padding: 20vh 0; min-height: 115vh; display: flex; align-items: center; }
.contact-bg {
  position: absolute; inset: -12% 0; filter: grayscale(1); will-change: transform;
  background-image:
    linear-gradient(65deg, transparent 0 55%, rgb(255 255 255 / .07) 55% 68%, transparent 68%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 180px),
    linear-gradient(180deg, #5a5a5a 0%, #6d6d6d 45%, #4a4a4a 46%, #2e2e2e 100%);
}
.contact-bg::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .38); }
.contact-wrap { position: relative; display: flex; justify-content: center; }
.contact-card {
  display: flex; flex-direction: column; width: min(100%, 600px); min-height: 600px;
  padding: clamp(18px, 1.6vw, 26px); background: #fff; color: #0a0a0a;
}
.contact-pill {
  align-self: flex-start; padding: .55rem .8rem; border-radius: 500px; background: #0a0a0a; color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.h2-form { margin-top: 1.4rem; font-size: clamp(36px, 3.9vw, 68px); font-weight: 500; line-height: .88; letter-spacing: -.05em; }
.contact-intro { margin-top: 1.6rem; max-width: 400px; color: rgb(0 0 0 / .6); }
.form { display: flex; flex-direction: column; flex: 1; margin-top: 2.5rem; }
.form-step { display: flex; flex-direction: column; gap: 1.2rem; }
.form-step.is-entering { animation: step-in .7s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.field { display: block; }
.field > span, .field-legend { display: block; margin-bottom: .3rem; font-size: 13px; color: rgb(0 0 0 / .55); }
.field em { font-style: normal; color: rgb(0 0 0 / .35); }
.field input, .field select, .field textarea {
  width: 100%; padding: .6rem 0; border: 0; border-bottom: 1px solid rgb(0 0 0 / .18); border-radius: 0;
  background: transparent; color: #0a0a0a; font: inherit; font-size: 17px; letter-spacing: -.02em;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field ::placeholder { color: rgb(0 0 0 / .3); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: #0a0a0a; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #c0392b; }
.field-legend { margin-bottom: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .5rem .85rem; border: 1px solid rgb(0 0 0 / .18); border-radius: 500px;
  font-size: 14px; font-weight: 500; letter-spacing: -.02em; transition: background .3s, color .3s, border-color .3s;
}
.chips label:hover span { border-color: #0a0a0a; }
.chips input:checked + span { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.chips input:focus-visible + span { outline: 1px solid #0a0a0a; outline-offset: 2px; }
.form-actions { display: flex; align-items: flex-end; gap: 1.5rem; margin-top: auto; padding-top: 2rem; }
.form-back { font-size: 15px; font-weight: 500; color: rgb(0 0 0 / .5); padding-bottom: .45rem; }
.form-back:hover { color: #0a0a0a; }
.form-next { max-width: none; flex: 1; color: #0a0a0a; text-align: left; }
.form-next:disabled { opacity: .5; cursor: wait; }
.form-status { min-height: 1.2em; margin-top: .8rem; font-size: 14px; color: rgb(0 0 0 / .6); }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: #0a0a0a; }

/* ==========================================================================
   Footer — revealed from under the page (curtain)
   ========================================================================== */
.footer { position: relative; z-index: 1; background: var(--bg); padding-top: clamp(80px, 12vh, 140px); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.footer-cols > div:nth-child(1) { grid-column: 1 / 3; }
.footer-cols > div:nth-child(2) { grid-column: 3 / 5; }
.footer-note { grid-column: 9 / 13; max-width: 330px; }
.footer-cols h3 { margin-bottom: 1.6rem; color: var(--dim); }
.foot-link { display: table; margin-bottom: .2rem; font-size: clamp(14px, 1.05vw, 17px); font-weight: 450; letter-spacing: -.02em; }
.footer-bottom { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin-top: clamp(80px, 14vh, 180px); }
.footer-big {
  grid-column: 1 / 9; margin-bottom: -.12em; font-size: 20.5vw; font-weight: 500; line-height: .8; letter-spacing: -.06em;
  color: #e9e9e9; white-space: nowrap; pointer-events: none;
}
.footer-big .char { display: inline-block; }
.footer-img { grid-column: 9 / 11; aspect-ratio: 4 / 3; margin-bottom: var(--gutter); }
.footer-legal { grid-column: 11 / 13; justify-self: end; text-align: right; padding-bottom: var(--gutter); }
.footer-legal .foot-link { margin-left: auto; }
.footer-legal .p { margin-top: 1.2rem; font-size: 13px; }
.foot-top { margin-top: 1.2rem; }

@media (min-width: 900px) and (min-height: 640px) {
  .footer.is-curtain { position: sticky; bottom: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .scroll-cue { display: none; }
  .approach-index { font-size: 12px; }
  .hero-nav { display: none; }
  .logo { grid-column: 1 / 9; }
  .pill-button { grid-column: 9 / 13; }
  .hero-meta { grid-template-columns: 1fr; gap: 2rem; }
  .hero-meta-col, .hero-meta-col--right { grid-column: 1 / -1; max-width: 420px; }
  .hero-main { grid-template-columns: 1fr; align-content: space-between; }
  .hero-copy { grid-column: 1 / -1; order: -1; }
  .hero-title { max-width: none; font-size: clamp(54px, 15vw, 110px); }
  .hero-case { grid-column: 1 / -1; width: min(100%, 220px); }

  .step-text { grid-column: 1 / 9; max-width: 300px; }
  .step-label { grid-column: 10 / 13; }
  .approach-step--flip .step-label { grid-column: 1 / 4; }
  .approach-step--flip .step-text { grid-column: 4 / 13; }

  .services-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-top-grid > *, .h2-services, .services-top-copy { grid-column: 1 / -1 !important; }
  .services-top-copy { padding-top: 0; mix-blend-mode: normal; }
  .services-top { padding-bottom: 70vw; }
  .services-wave { top: auto; height: 75vw; }
  .h2-services { mix-blend-mode: normal; }

  .slide { position: relative; height: auto; min-height: 100svh; }
  .slide-content { gap: 3rem; padding-top: calc(var(--gutter) + 56px); }
  .h2-slide { font-size: 13vw; }
  .slide-number { font-size: 13vw; }
  .slide-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .slide-body > * { grid-column: 1 / -1 !important; }
  .slide-pic { max-height: none; }

  .reviews-grid { grid-template-columns: 1fr; gap: 3rem; }
  .reviews-aside, .reviews-main { grid-column: 1 / -1; }
  .reviews-aside { position: static; order: 2; flex-direction: row; align-items: center; gap: 2rem; }
  .review { grid-template-columns: 1fr; gap: .8rem; padding-bottom: 2.4rem; }

  .contact { padding: 12vh 0; min-height: 0; align-items: flex-start; }
  .contact-card { min-height: 0; }

  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .footer-cols > div { grid-column: auto !important; }
  .footer-cols > .footer-note { grid-column: 1 / -1 !important; max-width: 420px; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-big { grid-column: 1 / -1; font-size: 34vw; }
  .footer-img { grid-column: 1 / 2; }
  .footer-legal { grid-column: 2 / 3; }
}

@media (max-width: 560px) {
  .approach-index { display: none; }
  .about-text { font-size: 30px; }
  .approach-steps { padding-top: 40vh; }
  .approach-step { min-height: 50vh; }
  .step-text { grid-column: 1 / 10; }
  .step-label { grid-column: 10 / 13; }
  .band-row span { font-size: 18vw; }
  .reviews-aside { flex-direction: column; align-items: flex-start; }
  .menu-foot { flex-direction: column; }
  .preloader-top, .preloader-bottom { gap: 1rem; letter-spacing: .14em; }
  .preloader-fraction { min-width: 9em; }
}

/* Touch screens: finger-sized tap targets (44px), slightly larger body text */
@media (pointer: coarse) {
  .menu-button, .pill-button { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 1.1rem; }
  .line-link { min-height: 44px; align-items: flex-end; }
  .nav-link { padding-block: .7rem; }
  .foot-link { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
  .footer-legal .foot-link { justify-content: flex-end; }
  .footer-cols h3 { margin-bottom: .6rem; }
  .form-back { min-height: 44px; }
  .chips span { padding: .7rem 1rem; }
  .menu-foot a { padding-block: .7rem; }
}
@media (max-width: 900px) {
  .p { font-size: 15px; line-height: 1.3; }
  .review-who span, .footer-legal .p { font-size: 13px; }
}

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