/* =========================================================================
   Доверие-Строй Груп — v4
   Editorial / architectural redesign
   ========================================================================= */

:root {
  /* surfaces */
  --ink: #12100e;
  --ink-2: #1a1714;
  --ink-3: #25211d;
  --paper: #f2ede4;
  --paper-2: #e9e2d5;
  --paper-3: #ddd3c2;
  --white: #fbf8f3;

  /* text */
  --text: #171411;
  --text-2: #574d44;
  --on-dark: #f2ede4;
  --on-dark-2: #b3aba0;
  --on-dark-3: #8a8279;

  /* accent */
  --accent: #d9481f;
  --accent-hover: #c23d17;
  --accent-hi: #ef7343;
  --accent-deep: #a8380f;
  --copper: #e8a23d;
  --danger: #b42318;

  /* lines */
  --line-d: rgba(242, 237, 228, 0.12);
  --line-d-2: rgba(242, 237, 228, 0.22);
  --line-l: rgba(23, 20, 17, 0.12);
  --line-l-2: rgba(23, 20, 17, 0.24);

  /* type */
  --f-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-serif: "Cormorant Garamond", Georgia, serif;

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.2s;
  --t-med: 0.45s;
  --t-slow: 0.9s;

  /* layout */
  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1400px;
  --header-h: 76px;
  --section-y: clamp(96px, 13vw, 184px);

  /* z-scale */
  --z-deco: 1;
  --z-content: 2;
  --z-seam: 3;
  --z-buildline: 40;
  --z-menu: 45;
  --z-header: 50;
  --z-bar: 60;
  --z-lightbox: 100;

  /* logo */
  --logo-ink: var(--on-dark);
  --logo-bg: var(--ink);
}

/* ------------------------------------------------------------------ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
video,
svg,
canvas,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

em {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus {
  transform: none;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ type helpers */

.mono-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow .idx {
  color: var(--accent-deep);
  padding-right: 14px;
  border-right: 1px solid currentColor;
  line-height: 1;
}

.eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2.75rem, 7.6vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.section-title em,
.hero-title em,
.contact-title em,
.cta-title em,
.ph-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-lede {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 46ch;
}

.section-lede strong {
  color: var(--text);
  font-weight: 600;
}

.section-head {
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px 64px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-underline-offset var(--t-fast) var(--ease), color var(--t-fast);
}

.text-link:hover {
  text-underline-offset: 8px;
  color: var(--accent-deep);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  font-family: var(--f-display);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  touch-action: manipulation;
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-hover, rgba(0, 0, 0, 0.14));
  transform: translateY(101%);
  transition: transform var(--t-med) var(--ease);
}

.btn:hover::before {
  transform: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn .ic {
  transition: transform var(--t-med) var(--ease);
}

.btn:hover .ic:last-child:not(:first-child) {
  transform: translateX(4px);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
  gap: 10px;
}

.btn-lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.025rem;
}

.btn-block {
  width: 100%;
}

.btn-accent {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-hover: var(--accent-deep);
}

.btn-dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  --btn-hover: var(--accent);
}

.btn-ghost-light {
  --btn-fg: var(--on-dark);
  --btn-bd: var(--line-d-2);
  --btn-hover: rgba(242, 237, 228, 0.1);
}

.btn-ghost-light:hover {
  border-color: rgba(242, 237, 228, 0.5);
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.55), rgba(18, 16, 14, 0));
  transition: opacity var(--t-med);
}

.site-header.is-scrolled {
  background: rgba(18, 16, 14, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line-d);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.header-inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  flex: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.logo-hammer {
  transform-origin: 16px 16px;
  transition: transform 0.6s var(--ease);
}

.logo:hover .logo-hammer {
  transform: rotate(-14deg);
}

.logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  white-space: nowrap;
}

.logo-text span {
  color: var(--accent-hi);
  font-weight: 600;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color var(--t-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1px;
  background: var(--accent-hi);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-med) var(--ease);
}

.nav-link:hover,
.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--on-dark);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--on-dark-2);
  transition: color var(--t-fast);
}

.icon-link .ic {
  fill: currentColor;
  stroke: none;
  width: 20px;
  height: 20px;
}

.icon-link:hover {
  color: var(--on-dark);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-d-2);
  border-radius: 2px;
}

.menu-toggle .bar {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease);
}

.menu-toggle .bar:first-child {
  top: 19px;
}

.menu-toggle .bar:last-child {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] .bar:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mm-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%);
  opacity: 0.6;
}

.mm-links li {
  border-bottom: 1px solid var(--line-d);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--k, 0) * 50ms + 80ms);
}

.mobile-menu.is-open .mm-links li {
  opacity: 1;
  transform: none;
}

.mm-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mm-num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
}

.mm-foot {
  position: relative;
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 18px;
}

.mm-fb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--on-dark-2);
  text-decoration: none;
}

.mm-fb .ic {
  fill: currentColor;
  stroke: none;
}

/* build progress line (desktop) */
.build-line {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 22px;
  z-index: var(--z-buildline);
  width: 1px;
  background: rgba(140, 128, 115, 0.2);
  pointer-events: none;
  display: none;
}

.build-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--sp, 0));
}

.build-fill::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 72, 31, 0.18);
  transform: scaleX(1);
}

@media (min-width: 1360px) {
  .build-line {
    display: block;
  }
}

/* ------------------------------------------------------------------ shared deco */

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: var(--z-deco);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 237, 228, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 228, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(242, 237, 228, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 228, 0.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 75%);
  animation: grid-drift 60s linear infinite;
}

@keyframes grid-drift {
  to {
    background-position: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: var(--z-deco);
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.7) 40%, #000 72%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.7) 40%, #000 72%);
}

.bp-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 20, 17, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 17, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(23, 20, 17, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 17, 0.028) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 85% 8%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 55% at 85% 8%, #000 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

.bp-grid.is-in {
  opacity: 1;
}

.bp-soft {
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 10% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 60% at 10% 30%, #000 0%, transparent 70%);
}

/* slow geometric shapes */
.geo {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.geo-1 {
  top: 6%;
  right: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--line-l);
  animation: geo-spin 120s linear infinite;
}

.geo-1::after {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px dashed var(--line-l);
}

.geo-2 {
  top: -80px;
  left: -200px;
  width: 620px;
  height: 620px;
  border: 1px solid var(--line-d);
  border-radius: 50%;
  animation: geo-float 40s var(--ease-io) infinite alternate;
}

.geo-2::before,
.geo-2::after {
  content: "";
  position: absolute;
  background: var(--line-d);
}

.geo-2::before {
  left: 50%;
  top: -40px;
  bottom: -40px;
  width: 1px;
}

.geo-2::after {
  top: 50%;
  left: -40px;
  right: -40px;
  height: 1px;
}

.geo-3 {
  bottom: -60px;
  right: 6%;
  width: 420px;
  height: 364px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 364'%3E%3Cpath d='M210 1 419 363H1z' fill='none' stroke='%23f2ede4' stroke-opacity='.1'/%3E%3Cpath d='M210 90 340 315H80z' fill='none' stroke='%23f2ede4' stroke-opacity='.07' stroke-dasharray='4 6'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: geo-float 50s var(--ease-io) infinite alternate-reverse;
}

@keyframes geo-spin {
  from {
    transform: rotate(45deg);
  }

  to {
    transform: rotate(405deg);
  }
}

@keyframes geo-float {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(40px, 60px, 0) rotate(12deg);
  }
}

/* technical lines that appear / disappear */
.tech-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tk {
  position: absolute;
  background: var(--line-l-2);
  transition: transform 1.6s var(--ease);
}

.tk-h {
  left: 0;
  right: 0;
  top: var(--y);
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
}

.tk-h:nth-child(2) {
  transform-origin: right;
}

.tk-v {
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  transition-delay: 0.3s;
}

.tech-lines.is-in .tk {
  transform: none;
}

/* animated seam between sections */
.seam {
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 140px;
  z-index: var(--z-seam);
  pointer-events: none;
}

.seam svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.seam-track,
.seam-path,
.seam-ticks path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.seam-track {
  stroke: rgba(217, 72, 31, 0.16);
  stroke-width: 1;
}

.seam-path {
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.seam-ticks path {
  stroke: var(--accent);
  stroke-width: 1;
}

.seam-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: var(--accent-hi);
}

.seam-dot {
  fill: var(--accent-hi);
}

.draw {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html:not(.js) .draw {
  stroke-dashoffset: 0;
}

/* ------------------------------------------------------------------ reveal system */

.js .rv {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
}

.rv-img {
  position: relative;
}

.js .rv-img::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  background: var(--curtain, var(--ink));
  transform-origin: top;
  transition: transform 1.3s var(--ease-io);
  transition-delay: calc(var(--i, 0) * 90ms + 80ms);
  pointer-events: none;
}

.js .rv-img img {
  transform: scale(1.16);
  transition: transform 1.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .rv-img.is-in::before {
  transform: scaleY(0);
}

.js .rv-img.is-in img {
  transform: scale(1);
}

/* hero entrance */
.js .hero-in {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  animation: hero-in 1.2s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 250ms);
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ HERO */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -6% 0 -6%;
  z-index: 0;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  animation: hero-zoom 2.8s var(--ease) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
    filter: brightness(0.6);
  }

  to {
    transform: scale(1.02);
    filter: none;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.95) 0%, rgba(18, 16, 14, 0.82) 34%, rgba(18, 16, 14, 0.42) 64%, rgba(18, 16, 14, 0.62) 100%),
    linear-gradient(0deg, rgba(18, 16, 14, 0.95) 0%, rgba(18, 16, 14, 0) 38%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.6) 0%, rgba(18, 16, 14, 0) 22%);
}

.hero-drawing-wrap {
  position: absolute;
  z-index: var(--z-deco);
  right: var(--gutter);
  bottom: 15%;
  width: min(30vw, 440px);
  pointer-events: none;
}

.hero-drawing {
  width: 100%;
  overflow: visible;
}

.hero-drawing .draw {
  stroke: rgba(242, 237, 228, 0.55);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: draw-in 2.2s var(--ease-io) forwards;
  animation-delay: calc(var(--k, 0) * 140ms + 700ms);
}

.hero-drawing .draw:nth-of-type(1) { --k: 0; }
.hero-drawing .draw:nth-of-type(2) { --k: 1; }
.hero-drawing .draw:nth-of-type(3) { --k: 2; }
.hero-drawing .draw:nth-of-type(4) { --k: 3; }
.hero-drawing .draw:nth-of-type(5) { --k: 4; }
.hero-drawing .draw:nth-of-type(6) { --k: 5; }
.hero-drawing .draw:nth-of-type(7) { --k: 6; }
.hero-drawing .draw:nth-of-type(8) { --k: 7; }

.hero-drawing .hd-dim .draw {
  stroke: rgba(242, 237, 228, 0.3);
  --k: 9;
}

.hero-drawing .hd-accent {
  stroke: var(--accent-hi);
  stroke-width: 1.6;
  --k: 10;
}

.hero-drawing text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: rgba(242, 237, 228, 0.5);
  opacity: 0;
  animation: fade-in 1s var(--ease) 2.4s forwards;
}

.hd-nodes circle {
  fill: var(--accent-hi);
  opacity: 0;
  animation: fade-in 0.8s var(--ease) 2.8s forwards;
}

.hd-nodes circle:first-child {
  animation: fade-in 0.8s var(--ease) 2.8s forwards, node-pulse 3.2s var(--ease-io) 3.6s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes draw-in {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes node-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.8);
  }
}

.hero-inner {
  position: relative;
  z-index: var(--z-content);
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: clamp(120px, 17vh, 190px);
}

.hero .eyebrow {
  color: var(--on-dark-2);
}

.hero-title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 6.6vw, 6.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--on-dark);
}

.hero-title em {
  display: inline;
  color: var(--accent-hi);
  font-size: 1.06em;
  line-height: 0.9;
}

.hero-lede {
  max-width: 50ch;
  margin-top: 32px;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--on-dark-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: var(--z-content);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--on-dark-3);
  max-width: none;
  margin: 0;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--line-d-2);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--accent-hi);
  animation: cue 2.4s var(--ease-io) infinite;
}

@keyframes cue {
  to {
    top: 100%;
  }
}

/* ------------------------------------------------------------------ VALUES */

.values {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line-l);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.value {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(40px, 5vw, 72px) clamp(16px, 2.5vw, 40px);
}

.value:first-child {
  padding-left: 0;
}

.value strong {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.value > span {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ SERVICES */

.services {
  --curtain: var(--paper);
  position: relative;
  padding-block: var(--section-y) calc(var(--section-y) + 40px);
  background: var(--paper);
  overflow-x: clip;
}

.services .wrap {
  position: relative;
  z-index: var(--z-content);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 20px;
}

.svc-a {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
}

.svc-b {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.svc-c {
  grid-column: 8 / span 5;
  grid-row: 2;
}

.svc-d {
  grid-column: 1 / -1;
  grid-row: 3;
}

.svc-link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
  isolation: isolate;
}

.svc-a .svc-link {
  min-height: clamp(560px, 62vw, 780px);
}

.svc-b .svc-link,
.svc-c .svc-link {
  min-height: clamp(320px, 30vw, 380px);
}

.svc-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.svc-media picture,
.svc-media img {
  width: 100%;
  height: 100%;
}

.svc-media img {
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}

.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.15) 0%, rgba(18, 16, 14, 0.3) 40%, rgba(18, 16, 14, 0.92) 100%);
  transition: opacity 0.8s var(--ease);
}

/* crop-mark corners + orange measure line on hover */
.svc-link::before,
.svc-link::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.svc-link::before {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}

.svc-link::after {
  inset: 18px;
  border: 1px solid rgba(242, 237, 228, 0);
  -webkit-mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
  transition: border-color 0.6s var(--ease), inset 0.6s var(--ease);
}

.svc-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-num {
  color: var(--on-dark-2);
  margin-bottom: auto;
}

.svc-body h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.svc-a .svc-body h3 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.svc-body p {
  max-width: 48ch;
  color: rgba(242, 237, 228, 0.82);
  font-size: 1rem;
  line-height: 1.55;
}

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-dark);
}

.svc-more .ic {
  color: var(--accent-hi);
  transition: transform var(--t-med) var(--ease);
}

.svc-link:hover .svc-media img,
.svc-link:focus-visible .svc-media img {
  transform: scale(1.06);
}

.svc-link:hover::before,
.svc-link:focus-visible::before {
  transform: scaleX(1);
}

.svc-link:hover::after,
.svc-link:focus-visible::after {
  border-color: rgba(242, 237, 228, 0.55);
  inset: 14px;
}

.svc-link:hover .svc-more .ic,
.svc-link:focus-visible .svc-more .ic {
  transform: translateX(6px);
}

/* wide card: split layout */
.svc-d .svc-link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 400px;
  background: var(--ink-2);
}

.svc-d .svc-media {
  position: relative;
  inset: auto;
  grid-column: 1 / span 7;
  z-index: 0;
  overflow: hidden;
}

.svc-d .svc-media picture {
  position: absolute;
  inset: 0;
}

.svc-d .svc-media img {
  object-position: 50% 35%;
}

.svc-d .svc-media::after {
  background: linear-gradient(90deg, rgba(18, 16, 14, 0) 60%, rgba(26, 23, 20, 0.85) 100%);
}

.svc-d .svc-body {
  position: relative;
  grid-column: 8 / span 5;
  justify-content: flex-end;
}

/* ------------------------------------------------------------------ STORY */

.story {
  position: relative;
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--on-dark);
  overflow-x: clip;
}

.story-truss {
  position: absolute;
  top: 9%;
  right: -4%;
  width: min(70vw, 900px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.truss-drawing {
  width: 100%;
  overflow: visible;
}

.truss-drawing .draw {
  stroke: rgba(242, 237, 228, 0.13);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.truss-drawing .draw:nth-of-type(2) {
  stroke: rgba(239, 115, 67, 0.4);
}

.truss-drawing text {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: rgba(242, 237, 228, 0.22);
}

.story-grid {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}

.story-media {
  position: relative;
  padding-bottom: 18%;
  padding-right: 10%;
}

.story-img-main {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.story-img-main img,
.story-img-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-img-main picture,
.story-img-inset picture {
  height: 100%;
}

.story-img-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  outline: 10px solid var(--ink);
}

.story-tag {
  position: absolute;
  top: 24px;
  left: -14px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
}

.story-text .eyebrow {
  color: var(--on-dark-2);
}

.story-text .eyebrow .idx {
  color: var(--accent-hi);
}

.story-text .section-title {
  font-size: clamp(2.5rem, 5.4vw, 5.4rem);
}

.story-text .section-title em {
  color: var(--accent-hi);
}

.story-lede {
  margin-top: 32px;
  font-size: clamp(1.125rem, 1.45vw, 1.35rem);
  line-height: 1.55;
  color: var(--on-dark);
  max-width: 40ch;
}

.story-quote {
  margin: 36px 0 0;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
}

.story-quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
  color: var(--on-dark-2);
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin-top: 56px;
}

.why {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line-d);
}

.why-num {
  color: var(--accent-hi);
  padding-top: 4px;
}

.why h3 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.why p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-dark-2);
}

/* ------------------------------------------------------------------ PROCESS */

.process {
  position: relative;
  padding-block: var(--section-y);
  background: var(--paper-2);
  overflow-x: clip;
}

.process .wrap {
  position: relative;
  z-index: var(--z-content);
}

.timeline {
  --p: 0;
  position: relative;
  padding-top: 8px;
}

.tl-track {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-l-2);
}

.tl-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p));
}

.tl-runner {
  position: absolute;
  top: -5px;
  left: calc(var(--p) * 100%);
  width: 11px;
  height: 11px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(217, 72, 31, 0.15);
  opacity: calc(var(--p) * 20);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}

.timeline-3 .steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step {
  position: relative;
  padding-top: 52px;
  padding-right: 8px;
}

.step-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--text);
  background: var(--paper-2);
  transform: rotate(45deg);
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.step.is-active .step-node {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg) scale(1.15);
}

.step-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3rem, 4.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  margin-bottom: 22px;
  transition: color var(--t-slow) var(--ease), -webkit-text-stroke-color var(--t-slow);
}

.step.is-active .step-num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ GALLERY SHOWCASE */

.showcase {
  position: relative;
  padding-block: var(--section-y);
  background: var(--paper);
}

.masonry {
  columns: 3 280px;
  column-gap: 16px;
}

.masonry-4 {
  columns: 4 240px;
}

.m-item {
  break-inside: avoid;
  margin-bottom: 16px;
}

.lb-item,
.m-video-link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
}

.lb-item img {
  width: 100%;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.lb-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 14, 0.25);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.m-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.lb-item:hover img,
.lb-item:focus-visible img {
  transform: scale(1.05);
}

.lb-item:hover::after,
.lb-item:focus-visible::after {
  opacity: 1;
}

.lb-item:hover .m-zoom,
.lb-item:focus-visible .m-zoom {
  transform: none;
  opacity: 1;
}

.lb-item:focus-visible {
  outline-offset: -4px;
}

.m-video-link {
  cursor: pointer;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
}

.m-video-link video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.5s, transform 1.2s var(--ease);
}

.m-video-link:hover video {
  opacity: 1;
  transform: scale(1.03);
}

.m-video-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(18, 16, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hi);
  animation: rec 1.6s ease-in-out infinite;
}

@keyframes rec {
  50% {
    opacity: 0.25;
  }
}

.m-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 1px solid rgba(242, 237, 228, 0.5);
  border-radius: 50%;
  transition: transform 0.5s var(--ease), background-color 0.5s;
}

.m-video-play .ic {
  fill: currentColor;
  stroke: none;
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.m-video-link:hover .m-video-play {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
}

.showcase-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-l);
  color: var(--text-2);
}

/* ------------------------------------------------------------------ TESTIMONIALS */

.testimonials {
  position: relative;
  padding-block: var(--section-y);
  background: var(--ink-2);
  color: var(--on-dark);
  overflow-x: clip;
}

.t-grid {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.t-head .eyebrow {
  color: var(--on-dark-2);
}

.t-head .eyebrow .idx {
  color: var(--accent-hi);
}

.t-head .section-title {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
}

.t-head .section-title em {
  color: var(--accent-hi);
}

.t-head .section-lede {
  margin-top: 28px;
  color: var(--on-dark-2);
}

.t-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
}

.t-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-d-2);
  border-radius: 2px;
  transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), color var(--t-med);
}

.t-btn .ic {
  width: 20px;
  height: 20px;
}

.t-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.t-counter {
  color: var(--on-dark-2);
  min-width: 70px;
  text-align: center;
}

.t-cur {
  color: var(--on-dark);
}

.t-carousel {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--line-d);
}

.t-mark {
  position: absolute;
  top: -10px;
  right: 0;
  font-family: var(--f-serif);
  font-size: clamp(8rem, 14vw, 14rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
  pointer-events: none;
}

.t-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.t-track {
  display: flex;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.t-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-right: clamp(0px, 4vw, 64px);
  transition: opacity 0.9s var(--ease);
}

.t-slide[aria-hidden="true"] {
  opacity: 0.15;
}

.t-slide figure {
  margin: 0;
}

.t-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
}

.star {
  width: 16px;
  height: 16px;
  fill: var(--copper);
  stroke: none;
}

.t-slide blockquote {
  margin: 0;
}

.t-slide blockquote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--on-dark);
  max-width: 30ch;
}

.t-slide figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 40px;
}

.t-slide figcaption::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.t-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.t-place {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.t-dots {
  display: flex;
  gap: 4px;
  margin-top: 56px;
}

.t-dot {
  position: relative;
  width: 44px;
  height: 24px;
}

.t-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 11px;
  height: 2px;
  background: var(--line-d-2);
  transition: background-color var(--t-med) var(--ease);
}

.t-dot[aria-current="true"]::after {
  background: var(--accent-hi);
}

/* ------------------------------------------------------------------ CONTACT */

.contact {
  position: relative;
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.contact-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  will-change: transform;
}

.contact-bg picture,
.contact-bg img {
  width: 100%;
  height: 100%;
}

.contact-bg img {
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(18, 16, 14, 0.96) 0%, rgba(18, 16, 14, 0.88) 50%, rgba(18, 16, 14, 0.7) 100%);
}

.contact .hero-grid {
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 30%, #000 0%, transparent 70%);
}

.contact-grid {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}

.contact .eyebrow {
  color: var(--on-dark-2);
}

.contact .eyebrow .idx {
  color: var(--accent-hi);
}

.contact-title {
  font-size: clamp(2.75rem, 7vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.contact-title em {
  display: block;
  color: var(--accent-hi);
}

.contact-lede {
  margin-top: 28px;
  font-size: 1.2rem;
  color: var(--on-dark-2);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin-top: 48px;
  text-decoration: none;
  color: var(--on-dark);
}

.cp-ic {
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  background: var(--accent);
  color: #fff;
  flex: none;
  transition: transform var(--t-med) var(--ease), background-color var(--t-med);
}

.cp-ic .ic {
  width: 42%;
  height: 42%;
}

.cp-num {
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cp-num::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--accent-hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.contact-phone:hover .cp-num::after {
  transform: scaleX(1);
}

.contact-phone:hover .cp-ic {
  transform: rotate(-8deg);
  background: var(--accent-hover);
}

.contact-sub {
  margin-top: 22px;
  color: var(--on-dark-2);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 64px 0 0;
}

.contact-details > div {
  padding-top: 18px;
  border-top: 1px solid var(--line-d-2);
}

.contact-details dt {
  color: var(--on-dark-3);
  margin-bottom: 10px;
}

.contact-details dd {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-details dd .ic {
  margin-top: 3px;
  color: var(--accent-hi);
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.contact-details a .ic {
  fill: currentColor;
  stroke: none;
  margin-top: 0;
}

/* form card */
.form-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 48px);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--accent);
}

.eyebrow-dark {
  margin-bottom: 14px;
  color: var(--accent-deep);
}

.form-title {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  letter-spacing: -0.035em;
}

.form-intro {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.975rem;
}

.inquiry-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--accent-deep);
}

.opt {
  font-weight: 400;
  color: var(--text-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line-l-2);
  border-radius: 2px;
  appearance: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8c8177;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(23, 20, 17, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 72, 31, 0.2);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--text);
  border-bottom: 1.5px solid var(--text);
  transform: rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-right: 44px;
  cursor: pointer;
}

.field.has-error input {
  border-color: var(--danger);
  background: #fdf3f1;
}

.field-err {
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--danger);
}

.field-err:empty {
  display: none;
}

.form-note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ PAGE HERO (sub pages) */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 9vw, 128px);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.page-hero .hero-canvas {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 60%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 60%);
}

.ph-grid {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

.has-media .ph-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 36px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-d-2);
}

.crumbs a {
  color: var(--on-dark-2);
  text-decoration: none;
  display: inline-block;
  padding-block: 4px;
}

.crumbs a:hover {
  color: var(--on-dark);
}

.crumbs [aria-current] {
  color: var(--accent-hi);
  padding-block: 4px;
}

.page-hero .eyebrow {
  color: var(--on-dark-2);
}

.ph-title {
  font-size: clamp(2.9rem, 8.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.has-media .ph-title {
  font-size: clamp(2.6rem, 6.2vw, 6.25rem);
}

.ph-lede {
  max-width: 58ch;
  margin-top: 32px;
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--on-dark-2);
}

.ph-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  max-height: 560px;
}

.ph-media picture,
.ph-media img {
  width: 100%;
  height: 100%;
}

.ph-media img {
  object-fit: cover;
}

.ph-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(242, 237, 228, 0.35);
  pointer-events: none;
}

/* service page bits */
.process-service {
  background: var(--paper);
}

.process-service .step-node {
  background: var(--paper);
}

.cta-inline {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.cta-inline p {
  color: var(--text-2);
  font-size: 1.05rem;
}

.showcase-svc {
  background: var(--paper-2);
}

.showcase-svc .lb-item {
  background: var(--paper-3);
}

.other-services {
  background: var(--paper);
  padding-block: clamp(72px, 9vw, 120px);
}

.os-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text-2);
}

.os-head h2 {
  font-family: var(--f-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.os-list {
  border-top: 1px solid var(--line-l-2);
}

.other-svc {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line-l-2);
  text-decoration: none;
  color: var(--text);
  transition: padding var(--t-med) var(--ease), color var(--t-fast);
}

.other-svc .mono-label {
  color: var(--accent-deep);
}

.os-name {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4.4vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.other-svc .ic {
  width: clamp(28px, 3vw, 44px);
  height: clamp(28px, 3vw, 44px);
  stroke-width: 1.4;
  transition: transform var(--t-med) var(--ease), color var(--t-fast);
}

.other-svc:hover {
  padding-left: 16px;
  color: var(--accent-deep);
}

.other-svc:hover .ic {
  transform: rotate(45deg);
  color: var(--accent);
}

/* video showcase (gallery page) */
.video-showcase {
  --curtain: var(--paper);
  position: relative;
  padding-block: var(--section-y);
  background: var(--paper);
}

.vs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}

.vs-text .section-title em {
  color: var(--accent-deep);
}

.vs-text .section-lede {
  margin: 28px 0 40px;
}

.video-frame {
  position: relative;
  max-width: 440px;
  justify-self: end;
  width: 100%;
  background: var(--ink);
}

.video-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: var(--ink);
}

.vf-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.vf-corner.tl {
  top: -14px;
  left: -14px;
  border-width: 1px 0 0 1px;
}

.vf-corner.br {
  bottom: -14px;
  right: -14px;
  border-width: 0 1px 1px 0;
}

.showcase-full {
  background: var(--paper-2);
}

/* CTA band */
.cta-band {
  position: relative;
  padding-block: clamp(96px, 12vw, 168px);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}

.cta-inner {
  position: relative;
  z-index: var(--z-content);
}

.cta-band .eyebrow {
  color: var(--on-dark-2);
}

.cta-title {
  font-size: clamp(2.75rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.cta-title em {
  color: var(--accent-hi);
}

.cta-lede {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--on-dark-2);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* ------------------------------------------------------------------ LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(12, 11, 10, 0.97);
  color: var(--on-dark);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  touch-action: pan-y;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px max(16px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
}

.lb-count {
  color: var(--on-dark-2);
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 88px 32px;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  max-height: calc(100svh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
}

.lb-img.is-loading {
  opacity: 0;
  transform: scale(0.985);
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-d-2);
  border-radius: 2px;
  color: var(--on-dark);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}

.lb-btn .ic {
  width: 22px;
  height: 22px;
}

.lb-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lb-nav {
  position: absolute;
  top: 50%;
  margin-top: -26px;
}

.lb-prev {
  left: 20px;
}

.lb-next {
  right: 20px;
}

/* ------------------------------------------------------------------ FOOTER */

.site-footer {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 0 40px;
  background: var(--ink);
  color: var(--on-dark-2);
  overflow: hidden;
  border-top: 1px solid var(--line-d);
  --logo-ink: var(--on-dark);
  --logo-bg: var(--ink);
}

.footer-lines {
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  pointer-events: none;
}

.footer-lines svg {
  width: 100%;
  height: 100%;
}

.fl-path {
  fill: none;
  stroke: rgba(217, 72, 31, 0.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.fl-b {
  stroke: rgba(242, 237, 228, 0.08);
}

.footer-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-d);
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 22px;
  font-size: 0.975rem;
}

.footer-phone {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color var(--t-fast);
}

.footer-phone:hover {
  color: var(--accent-hi);
}

.footer-col h2 {
  margin-bottom: 20px;
  color: var(--on-dark-3);
}

.footer-col li {
  font-size: 0.975rem;
}

.footer-col a {
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--on-dark-2);
  transition: color var(--t-fast);
}

.footer-col li:not(:has(a)) {
  padding: 6px 0;
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
  font-size: 0.875rem;
  color: var(--on-dark-3);
}

.credit-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 18px 8px 16px;
  border: 1px solid rgba(232, 162, 61, 0.55);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.credit-badge:hover {
  border-color: var(--copper);
  background: rgba(232, 162, 61, 0.06);
}

.credit-made {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.credit-name {
  font-family: "Alex Brush", cursive;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--copper);
}

/* ------------------------------------------------------------------ MOBILE BAR */

.mobile-bar {
  display: none;
}


/* ------------------------------------------------------------------ CONSENT CHECKBOX */

.check {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
}

.field .check {
  display: grid;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--text-2);
}

.check input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check-box {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-l-2);
  border-radius: 2px;
  background: var(--white);
  transition: background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.check-box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--t-fast) var(--ease);
}

.check input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check input:checked + .check-box::after {
  transform: rotate(45deg) scale(1);
}

.check input:focus-visible + .check-box {
  box-shadow: 0 0 0 3px rgba(217, 72, 31, 0.3);
  border-color: var(--accent);
}

.check:hover .check-box {
  border-color: rgba(23, 20, 17, 0.45);
}

.field-check.has-error .check-box {
  border-color: var(--danger);
  background: #fdf3f1;
}

.check-text a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ FOOTER LEGAL */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-left: auto;
}

.footer-legal a,
.link-btn {
  display: inline-block;
  padding: 6px 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--on-dark-2);
  text-decoration: underline;
  text-decoration-color: var(--line-d-2);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

.footer-legal a:hover,
.link-btn:hover {
  color: var(--on-dark);
  text-decoration-color: var(--accent);
}

.link-btn-dark {
  padding: 0;
  font-size: inherit;
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--accent);
}

.link-btn-dark:hover {
  color: var(--accent-deep);
}

/* ------------------------------------------------------------------ COOKIE BANNER */

.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 80;
  width: min(460px, calc(100vw - 48px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 26px 26px 22px;
  background: rgba(26, 23, 20, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--on-dark);
  border: 1px solid var(--line-d-2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.cookie-banner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 2px;
  background: var(--accent);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-open {
  opacity: 1;
  transform: none;
}

.menu-open .cookie-banner,
.lightbox-open .cookie-banner {
  display: none;
}

.cb-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cb-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--on-dark-2);
}

.cb-text a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.cb-prefs {
  margin-top: 18px;
  border-top: 1px solid var(--line-d);
}

.cb-prefs[hidden] {
  display: none;
}

.cb-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-d);
}

.cb-opt strong {
  display: block;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.cb-opt p,
.cb-opt label span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--on-dark-2);
}

.cb-opt label {
  cursor: pointer;
}

.cb-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
}

.cb-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.cb-switch input:disabled {
  cursor: not-allowed;
}

.cb-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1px solid var(--line-d-2);
  transition: background-color var(--t-fast);
}

.cb-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--on-dark-2);
  transition: transform var(--t-med) var(--ease), background-color var(--t-fast);
}

.cb-switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}

.cb-switch input:checked + span::after {
  transform: translateX(18px);
  background: #fff;
}

.cb-switch input:disabled + span {
  opacity: 0.55;
}

.cb-switch input:focus-visible + span {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

.cb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.cb-actions .btn {
  min-height: 46px;
  padding: 0 12px;
  font-size: 0.875rem;
}

.cb-actions .cb-save {
  grid-column: 1 / -1;
}

.cb-actions .cb-save[hidden] {
  display: none;
}

.cb-link {
  grid-column: 1 / -1;
  justify-self: center;
  min-height: 36px;
  padding: 4px 8px;
  font-size: 0.85rem;
  color: var(--on-dark-2);
  text-decoration: underline;
  text-decoration-color: var(--line-d-2);
  text-underline-offset: 4px;
}

.cb-link:hover {
  color: var(--on-dark);
}

/* ------------------------------------------------------------------ LEGAL PAGE */

.legal {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--paper);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.legal-toc > .mono-label {
  margin-bottom: 18px;
  color: var(--text-2);
}

.legal-toc ol {
  border-top: 1px solid var(--line-l);
}

.legal-toc a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-l);
  font-size: 0.95rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t-fast), padding var(--t-med) var(--ease);
}

.legal-toc a .mono-label {
  color: var(--accent-deep);
}

.legal-toc a:hover {
  color: var(--text);
  padding-left: 6px;
}

.legal-body {
  min-width: 0;
  max-width: 72ch;
}

.legal-updated {
  margin-bottom: 40px;
  color: var(--text-2);
}

.legal-body section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line-l);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-body section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.legal-body h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.legal-body h2 .mono-label {
  color: var(--accent-deep);
  flex: none;
}

.legal-body h3 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 28px 0 8px;
}

.legal-body p,
.legal-body li {
  color: var(--text-2);
  line-height: 1.7;
}

.legal-body p + p,
.legal-body ul + p,
.legal-body p + ul {
  margin-top: 14px;
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body ul {
  display: grid;
  gap: 10px;
}

.legal-body ul li {
  position: relative;
  padding-left: 22px;
}

.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal-card {
  margin: 20px 0;
  padding: 8px 24px;
  background: var(--white);
  border: 1px solid var(--line-l);
  border-left: 2px solid var(--accent);
}

.legal-card > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-l);
}

.legal-card > div:last-child {
  border-bottom: 0;
}

.legal-card dt {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-top: 3px;
}

.legal-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.legal-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line-l);
}

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-l);
  color: var(--text-2);
}

.legal-table th {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--text);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table code {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--text);
}

@media (max-width: 1024px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 900px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 170px);
    padding: 22px 18px 16px;
  }
}

@media (max-width: 760px) {
  .footer-legal {
    margin-left: 0;
  }

  .legal-card {
    padding: 4px 16px;
  }

  .legal-card > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ================================================================== RESPONSIVE */

@media (max-width: 1200px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .masonry-4 {
    columns: 3 220px;
  }
}

@media (max-width: 1024px) {
  .section-head.split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .svc-a {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .svc-a .svc-link {
    min-height: 540px;
  }

  .svc-b,
  .svc-c {
    grid-column: auto;
    grid-row: auto;
  }

  .svc-b .svc-link,
  .svc-c .svc-link {
    min-height: 440px;
  }

  .svc-d {
    grid-row: auto;
  }

  .story-grid,
  .t-grid,
  .contact-grid,
  .vs-grid {
    grid-template-columns: 1fr;
  }

  .story-media {
    max-width: 640px;
  }

  .story-truss {
    top: 2%;
    width: 110vw;
    right: -20vw;
  }

  .t-controls {
    margin-top: 36px;
  }

  .video-frame {
    justify-self: start;
  }

  .has-media .ph-grid {
    grid-template-columns: 1fr;
  }

  .ph-media {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .hero-drawing-wrap {
    width: min(40vw, 380px);
    bottom: 22%;
    opacity: 0.6;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .header-cta {
    display: none;
  }

  /* mobile sticky action bar */
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-bar);
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(18, 16, 14, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-d);
    transition: transform var(--t-med) var(--ease);
  }

  .menu-open .mobile-bar,
  .lightbox-open .mobile-bar {
    transform: translateY(110%);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 2px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    touch-action: manipulation;
  }

  .mb-call {
    background: var(--accent);
    color: #fff;
  }

  .mb-msg {
    border: 1px solid var(--line-d-2);
    color: var(--on-dark);
  }

  .steps,
  .timeline-3 .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline {
    padding-top: 0;
    padding-left: 44px;
  }

  .tl-track {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .tl-fill {
    transform-origin: top;
    transform: scaleY(var(--p));
  }

  .tl-runner {
    top: calc(var(--p) * 100%);
    left: -5px;
    margin-left: 0;
    margin-top: -5px;
  }

  .step {
    padding: 0 0 48px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step-node {
    top: 6px;
    left: -44px;
  }

  .step-num {
    font-size: 2.75rem;
    margin-bottom: 12px;
  }

  .lb-stage {
    padding: 0 12px 96px;
  }

  .lb-nav {
    top: auto;
    bottom: calc(24px + env(safe-area-inset-bottom));
    margin-top: 0;
  }

  .lb-prev {
    left: calc(50% - 64px);
  }

  .lb-next {
    right: calc(50% - 64px);
  }

  .lb-img {
    max-height: calc(100svh - 190px);
  }

  .seam-dot {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(18, 16, 14, 0.97) 0%, rgba(18, 16, 14, 0.82) 45%, rgba(18, 16, 14, 0.35) 75%, rgba(18, 16, 14, 0.55) 100%);
  }

  .hero-media img {
    object-position: 50% 30%;
  }

  .hero-canvas {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.25) 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 35%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.25) 100%);
  }

  .hero-drawing-wrap {
    top: calc(var(--header-h) + 20px);
    bottom: auto;
    right: var(--gutter);
    width: 46vw;
    opacity: 0.45;
  }

  .hero-inner {
    padding-bottom: 112px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hide-sm {
    display: none;
  }

  .hero-foot {
    display: none;
  }

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

  .value,
  .value:first-child {
    padding: 28px 0;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-l);
  }

  .value:last-child {
    border-bottom: 0;
  }

  .tech-lines .tk-v {
    display: none;
  }

  .svc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .svc-a .svc-link,
  .svc-b .svc-link,
  .svc-c .svc-link {
    min-height: 460px;
  }

  .svc-d .svc-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .svc-d .svc-media {
    grid-column: 1;
    height: 300px;
  }

  .svc-d .svc-media::after {
    background: linear-gradient(180deg, rgba(18, 16, 14, 0) 55%, rgba(26, 23, 20, 0.9) 100%);
  }

  .svc-d .svc-body {
    grid-column: 1;
  }

  .why-list {
    grid-template-columns: 1fr;
  }

  .story-media {
    padding-right: 6%;
  }

  .story-tag {
    left: -10px;
  }

  .masonry,
  .masonry-4 {
    columns: 2;
    column-gap: 10px;
  }

  .m-item {
    margin-bottom: 10px;
  }

  .m-zoom {
    display: none;
  }

  .m-video-play {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
  }

  .contact-details > div {
    padding: 18px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card {
    margin-inline: calc(var(--gutter) * -0.5);
  }

  .ph-media {
    aspect-ratio: 4 / 3;
  }

  .other-svc {
    grid-template-columns: 40px 1fr auto;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .t-mark {
    font-size: 7rem;
    top: 0;
  }

  .geo {
    display: none;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 1rem;
  }

  .cp-num {
    font-size: 2rem;
  }
}

/* ================================================================== MOTION PREFS */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .js .rv,
  .js .hero-in {
    opacity: 1;
    transform: none;
  }

  .js .rv-img::before {
    display: none;
  }

  .js .rv-img img,
  .hero-media img {
    transform: none;
  }

  .draw {
    stroke-dashoffset: 0;
  }

  .hero-grid,
  .geo {
    animation: none;
  }

  .seam-dot,
  .scroll-cue-line::after {
    display: none;
  }

  .tk {
    transform: none !important;
  }

  .bp-grid {
    opacity: 1;
  }
}

/* ================================================================== PRINT */

@media print {
  .site-header,
  .mobile-bar,
  .hero-canvas,
  .seam,
  .build-line,
  .lightbox {
    display: none !important;
  }
}
