/* ============ TRV studio ============ */
:root {
  --ink: #0d0d0b;
  --ink-2: #161613;
  --ink-3: #22221e;
  --paper: #ece6d9;
  --paper-2: #d9d2c3;
  --mute: #8b867a;
  --line: rgba(236, 230, 217, .12);
  --line-dark: rgba(13, 13, 11, .14);
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, .14);
  --live: #9cf06a;

  --f-display: "Geologica", "Segoe UI", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.dot--live { background: var(--live); box-shadow: 0 0 0 0 rgba(156, 240, 106, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(156, 240, 106, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(156, 240, 106, 0); } }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='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;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__wave { width: 240px; height: 48px; }
.loader__wave path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; color: var(--mute); }
.loader__count i { font-style: normal; margin-left: 2px; }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--paper); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  display: grid; place-items: center;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; background: var(--accent); }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(13, 13, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { width: 36px; height: 22px; }
.brand__mark path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 0; }
.brand:hover .brand__mark path { animation: redraw .9s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.brand__word { font-size: 22px; letter-spacing: -.03em; }
.brand sup { font-family: var(--f-mono); font-size: 10px; font-weight: 400; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; margin-left: -4px; }
.nav__links { display: flex; gap: 34px; font-size: 15px; font-weight: 400; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__clock { color: var(--mute); }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--paper); transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 99; background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad);
  clip-path: circle(0 at calc(100% - 36px) 38px); transition: clip-path .7s var(--ease-in-out);
}
.mnav.is-open { clip-path: circle(150% at calc(100% - 36px) 38px); }
.mnav a { font-size: clamp(40px, 12vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.mnav a:nth-child(odd) { font-family: var(--f-serif); font-style: italic; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--paper); color: var(--ink); font-weight: 500;
  transition: color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .55s var(--ease), border-radius .55s var(--ease); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--big { padding: 26px 40px; font-size: clamp(18px, 2vw, 24px); }
.btn--big i { font-style: normal; display: inline-block; transition: transform .45s var(--ease); }
.btn--big:hover i { transform: translate(4px, -4px) rotate(45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 40px; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero > *:not(canvas) { position: relative; z-index: 1; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--mute); }
.hero__status { color: var(--paper); }
.hero__h1 { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.no-js .loader, .no-js .cursor { display: none; }
.hero__title {
  font-size: clamp(40px, 8.4vw, 156px); font-weight: 700; line-height: .92; letter-spacing: -.055em; white-space: nowrap;
  margin: 6vh 0 5vh;
}
.hero__title em { font-weight: 500; letter-spacing: -.03em; color: var(--accent); padding-right: .06em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; }
.js .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-ready .hero__title .line > span, .line.is-in > span { transform: none; }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__title .line:nth-child(4) > span { transition-delay: .24s; }
.hero__title .line:nth-child(2) { padding-left: 8vw; }
.hero__title .line:nth-child(4) { padding-left: 22vw; }
.accent-u { position: relative; }
.accent-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .07em; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 1.2s; }
.is-ready .accent-u::after { transform: scaleX(1); }

.hero__bottom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 40px; align-items: end; border-top: 1px solid var(--line); padding-top: 26px; }
.hero__lead { max-width: 440px; color: var(--paper-2); font-size: 16px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 56px); }
.stat { display: flex; align-items: flex-end; gap: 12px; }
.stat b { font-size: clamp(44px, 5vw, 76px); font-weight: 700; line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-mono); font-size: 11px; line-height: 1.4; text-transform: uppercase; color: var(--mute); letter-spacing: .04em; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mute); }
.hero__scroll i { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* fade-in of hero chrome */
.js .hero__meta, .js .hero__bottom, .js .nav { opacity: 0; transition: opacity 1s var(--ease) .5s, transform .5s var(--ease), background .4s; }
.is-ready .hero__meta, .is-ready .hero__bottom, .is-ready .nav { opacity: 1; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink); }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-size: clamp(30px, 4.4vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.ticker__track em { color: var(--mute); font-weight: 400; }
.ticker__track b { color: var(--accent); font-size: .6em; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px 40px; align-items: end; padding: 0 var(--pad); margin-bottom: clamp(48px, 7vw, 110px); }
.section-head__idx { color: var(--accent); align-self: start; padding-top: 1em; }
.section-head h2, .process h2 { font-size: clamp(44px, 7vw, 120px); font-weight: 700; line-height: .92; letter-spacing: -.055em; }
.section-head h2 em, .process h2 em, .contact__title em { color: var(--accent); font-weight: 500; }
.section-head p { color: var(--mute); font-size: 15px; max-width: 300px; }

.js .reveal { opacity: 0; transform: translateY(48px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper-2); }
.chips--dark span { border-color: var(--line-dark); color: var(--ink); }
.tag { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tag--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- work ---------- */
.work { padding: clamp(90px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); }

.flagship {
  position: relative; margin: 0 var(--pad) clamp(80px, 12vw, 180px);
  border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 44px);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 90, 31, .16), transparent 55%), var(--ink-2);
  overflow: hidden;
}
.flagship__link, .project__link { position: absolute; inset: 0; z-index: 5; }
.flagship__top { display: flex; justify-content: space-between; color: var(--mute); margin-bottom: 30px; }
.flagship__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 4vw, 70px); align-items: center; }
.flagship h3 { font-size: clamp(54px, 8vw, 132px); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.flagship__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); color: var(--accent); margin: 14px 0 22px; line-height: 1.15; }
.flagship__text > p:not(.flagship__sub) { color: var(--paper-2); max-width: 560px; }
.facts { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 16px; }
.facts b { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--mute); line-height: 1.4; }
.flagship__media { position: relative; aspect-ratio: 1 / .92; }
.shot { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transition: transform .9s var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.shot--a { width: 82%; left: 0; top: 0; aspect-ratio: 16 / 10; }
.shot--b { width: 70%; right: 0; bottom: 0; aspect-ratio: 16 / 10; }
.flagship:hover .shot--a img, .flagship:hover .shot--b img { transform: scale(1.04); }
.contract { text-transform: none; position: absolute; left: 6%; bottom: 14%; z-index: 2; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 999px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); }

.projects { display: flex; flex-direction: column; gap: clamp(80px, 11vw, 170px); padding: 0 var(--pad); }
.project { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.project--flip .project__media { order: 2; }
.frame { margin: 0; border-radius: 16px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); transition: transform .9s var(--ease), border-radius .9s var(--ease); }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame__bar span { font-family: var(--f-mono); font-size: 11px; color: var(--mute); margin-left: 12px; }
.frame__img { aspect-ratio: 16 / 10; overflow: hidden; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1.2s var(--ease); }
.project:hover .frame { transform: rotate(-1.2deg) scale(.985); }
.project--flip:hover .frame { transform: rotate(1.2deg) scale(.985); }
.project:hover .frame__img img { scale: 1.05; }
.project__num { color: var(--accent); display: block; margin-bottom: 16px; }
.project h3 { font-size: clamp(40px, 5.2vw, 84px); font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.project h3 sup { font-size: 12px; color: var(--accent); vertical-align: top; letter-spacing: .06em; }
.project__kind { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--paper-2); margin: 10px 0 20px; line-height: 1.2; }
.project__info > p:not(.project__kind) { color: var(--mute); margin-bottom: 24px; max-width: 460px; }

/* ---------- services (light) ---------- */
.services { background: var(--paper); color: var(--ink); padding: clamp(90px, 12vw, 180px) 0; border-radius: 36px; }
.section-head--light p { color: #6b665b; }
.svc { list-style: none; margin: 0; padding: 0 var(--pad); }
.svc__item { border-top: 1px solid var(--line-dark); }
.svc__item:last-child { border-bottom: 1px solid var(--line-dark); }
.svc__row { position: relative; width: 100%; display: grid; grid-template-columns: 80px 1fr 60px; align-items: center; padding: clamp(22px, 2.6vw, 38px) 0; text-align: left; overflow: hidden; isolation: isolate; }
.svc__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc__row:hover::before, .svc__item.is-open .svc__row::before { transform: scaleY(1); }
.svc__row:hover, .svc__item.is-open .svc__row { color: var(--paper); }
.svc__n { color: var(--accent); padding-left: 0; transition: padding .55s var(--ease); }
.svc__t { font-size: clamp(28px, 4.4vw, 68px); font-weight: 600; letter-spacing: -.05em; line-height: 1; transition: transform .55s var(--ease); }
.svc__row:hover .svc__t { transform: translateX(14px); }
.svc__row:hover .svc__n, .svc__item.is-open .svc__n { padding-left: 16px; }
.svc__plus { position: relative; width: 26px; height: 26px; justify-self: end; margin-right: 16px; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .5s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc__item.is-open .svc__plus::after { transform: rotate(0); }
.svc__item.is-open .svc__plus::before { transform: rotate(180deg); background: var(--accent); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__body > div { overflow: hidden; padding-left: 80px; }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body p { max-width: 620px; font-size: 18px; padding: 26px 0 18px; color: #3b3830; }
.svc__body .chips { padding-bottom: 32px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 120px); padding: clamp(90px, 12vw, 180px) var(--pad); }
.process__side { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 26px; }
.process__side .section-head__idx { padding: 0; }
.process__side p { color: var(--mute); max-width: 340px; }
.process__meter { width: 100%; max-width: 340px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.process__meter i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step--done h3 { font-size: clamp(34px, 3.6vw, 56px); color: var(--accent); }
.step--done .step__n { font-weight: 400; }
.step__n { font-size: clamp(56px, 6vw, 96px); font-weight: 200; line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--mute); transition: color .6s var(--ease), -webkit-text-stroke-color .6s; }
.step.is-in .step__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); transition-delay: .3s; }
.step h3 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 600; letter-spacing: -.04em; margin-bottom: 10px; }
.step p { color: var(--mute); max-width: 480px; }

/* ---------- about ---------- */
.about { padding: 0 var(--pad) clamp(90px, 12vw, 180px); display: flex; flex-direction: column; gap: 32px; }
.about__text { font-size: clamp(28px, 3.9vw, 62px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; max-width: 1180px; }
.about__text em { color: var(--accent); }
.about__text a { border-bottom: 2px solid var(--accent); transition: color .3s; }
.about__text a:hover { color: var(--accent); }
.about__link { color: var(--mute); align-self: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.about__link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- stack ---------- */
.stack { padding: 20px 0 clamp(90px, 10vw, 150px); overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.stack__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.stack__row span { font-size: clamp(22px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.03em; padding: 14px 30px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; transition: background .3s, color .3s; }
.stack__row span:hover { background: var(--paper); color: var(--ink); }
.stack__row--alt span { font-family: var(--f-serif); font-style: italic; font-weight: 500; }

/* ---------- trust ---------- */
.trust { padding: 0 0 clamp(90px, 12vw, 180px); }
.trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--pad); border-top: 1px solid var(--line); }
.principle { padding: 34px 26px 34px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 26px; }
.principle:last-child { border-right: 0; }
.principle__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); font-size: 22px; margin-bottom: 40px; transition: transform .6s var(--ease), background .3s, color .3s; }
.principle:hover .principle__ico { transform: rotate(-20deg) scale(1.1); background: var(--accent); color: var(--ink); }
.principle h3 { font-size: 24px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 10px; }
.principle p { color: var(--mute); font-size: 15px; }

/* ---------- contact ---------- */
.contact { padding: clamp(90px, 12vw, 180px) var(--pad); border-top: 1px solid var(--line); background: radial-gradient(55% 55% at 80% 62%, rgba(255, 90, 31, .2), transparent 72%); }
.contact__title { white-space: nowrap; font-size: clamp(44px, 10vw, 180px); font-weight: 700; line-height: .9; letter-spacing: -.06em; margin: 28px 0 40px; }
.contact__title .line:nth-child(2) { padding-left: 10vw; }
.contact__title .line:nth-child(2) > span { transition-delay: .1s; }
.contact__lead { color: var(--paper-2); max-width: 520px; font-size: 18px; margin-bottom: 48px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 44px; }
.contact__mail { font-size: clamp(20px, 2.2vw, 30px); font-weight: 400; letter-spacing: -.02em; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s, color .3s; }
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
.footer { padding: 0 var(--pad) 28px; overflow: hidden; }
.footer__big { font-size: clamp(44px, 15.5vw, 270px); font-weight: 800; letter-spacing: -.07em; line-height: .78; text-align: center; color: var(--ink-2); -webkit-text-stroke: 1px var(--ink-3); user-select: none; margin: 0 0 20px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 22px; }
.footer__row a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(3) { padding-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__bottom { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
}
@media (max-width: 860px) {
  .nav__links, .nav__clock, .nav__right .btn { display: none; }
  .nav__burger { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head__idx { padding-top: 0; }
  .hero { padding-top: 104px; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__title .line:nth-child(4) { padding-left: 14vw; }
  .hero__bottom { grid-template-columns: 1fr; gap: 28px; }
  .flagship__grid, .project, .process { grid-template-columns: 1fr; }
  .flagship__media { order: -1; }
  .project--flip .project__media { order: 0; }
  .process__side { position: static; }
  .step { grid-template-columns: 76px 1fr; }
  .svc__row { grid-template-columns: 44px 1fr 40px; }
  .svc__body > div { padding-left: 44px; }
  .svc__plus { margin-right: 4px; width: 20px; height: 20px; }
  .services { border-radius: 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .trust__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__title { white-space: normal; font-size: clamp(44px, 14vw, 72px); }
  .hero__title { white-space: normal; font-size: 13.5vw; margin: 4vh 0; }
  .hero__title .line:nth-child(4) { padding-left: 0; }
  .principle, .principle + .principle { padding: 28px 0; border-right: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts li:nth-child(odd) { border-right: 0; }
  .facts li:nth-child(even) { padding-left: 0; }
  .hero__stats { justify-content: space-between; gap: 12px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contract { font-size: 10px; padding: 8px 12px; bottom: 6%; }
  .btn--big { padding: 20px 28px; }
  .contact__title .line:nth-child(2) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
