/* ============================================================
   STUDIO 27 — "Aperture"
   Design system. Chrome is the accent; there is no hue.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Ground — plain white, panels a hair off it */
  --bg:         #FFFFFF;
  --bg-2:       #F6F6F7;
  --bg-3:       #EFEFF1;
  --line:       #D2D3D7;
  --line-soft:  #EAEAEC;

  /* Type — monochrome silver; black reserved for accents only */
  --ink:        #34373E;
  --silver:     #5B5F68;
  --steel:      #74787F;
  --steel-dim:  #86898F;
  --charcoal:   #0E0F11;

  /* Chrome ramp — banded sky / horizon / ground, charcoal is the accent band */
  --chrome-0:   #FFFFFF;
  --chrome-1:   #E7E9EC;
  --chrome-2:   #9BA0AA;
  --chrome-3:   #0E0F11;
  --chrome-4:   #D7DAE0;
  --chrome-5:   #70747E;

  /* Metrics */
  --gutter:     24px;
  --maxw:       1360px;
  --nav-h:      68px;
  --pad-y:      clamp(88px, 12vw, 176px);
  --pad-y-sm:   clamp(56px, 7vw, 104px);

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-iris:  cubic-bezier(0.65, 0, 0.15, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 48px; --nav-h: 76px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

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

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}

.section { padding-block: var(--pad-y); }
.section--tight { padding-block: var(--pad-y-sm); }
.section--edge { border-top: 1px solid var(--line-soft); }

/* Vertical hairline rails, desktop only */
.rails {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}
@media (min-width: 1100px) {
  .rails { display: block; }
  .rails::before,
  .rails::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-soft);
  }
  .rails::before { left: max(var(--gutter), calc(50% - var(--maxw) / 2)); }
  .rails::after  { right: max(var(--gutter), calc(50% - var(--maxw) / 2)); }
}

/* ---------- Typography ---------- */
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: 'Archivo', 'Arial Black', sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.display-xl {
  font-size: clamp(44px, 10.4vw, 158px);
  line-height: 0.86;
  letter-spacing: -0.032em;
}
.display-l {
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.028em;
}
.display-m {
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 0.94;
  letter-spacing: -0.022em;
}
.display-s {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.04;
  letter-spacing: -0.014em;
  font-stretch: 112%;
}

.eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

.meta {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.58;
  color: var(--silver);
  max-width: 46ch;
  margin: 0;
}

.body-copy { margin: 0; max-width: 62ch; }
.body-copy + .body-copy { margin-top: 18px; }

.chrome-text {
  background-image: linear-gradient(
    174deg,
    #0E0F11 0%,
    #3D4149 13%,
    #9BA0AA 29%,
    #E7E9EC 45%,
    #C9CCD2 49%,
    #6E727B 59%,
    #101114 70%,
    #B7BBC2 83%,
    #DADCE1 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(14, 15, 17, 0.12));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding-inline: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), background-color 0.45s var(--ease), transform 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  border-color: var(--chrome-2);
  background: rgba(14, 15, 17, 0.045);
  transform: translateY(-1px);
}

.btn--chrome {
  border-color: transparent;
  color: var(--bg);
  background-image: linear-gradient(172deg, #0E0F11 0%, #232529 22%, #46484F 44%, #18191C 62%, #303236 82%, #0E0F11 100%);
  background-size: 100% 220%;
  background-position: 0% 12%;
  font-weight: 500;
}
.btn--chrome:hover {
  background-position: 0% 78%;
  background-color: transparent;
  transform: translateY(-1px);
}

.btn__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Text link with chrome underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link:hover { border-bottom-color: var(--chrome-1); color: var(--chrome-0); }
.link__arrow { transition: transform 0.4s var(--ease); }
.link:hover .link__arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.nav__logo span { color: var(--steel); }
.nav__logo:hover span { color: var(--chrome-1); transition: color 0.4s var(--ease); }

.nav__links {
  display: none;
  align-items: center;
  gap: 30px;
}
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__link {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-block: 6px;
  position: relative;
  transition: color 0.4s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background-image: linear-gradient(90deg, var(--chrome-3), var(--chrome-0), var(--chrome-2));
  transition: width 0.45s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-current { color: var(--ink); }
.nav__link.is-current::after { width: 100%; }

.nav__cta { display: none; }
@media (min-width: 900px) { .nav__cta { display: inline-flex; height: 40px; padding-inline: 20px; font-size: 10.5px; } }

/* Menu toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-right: -10px;
}
@media (min-width: 900px) { .nav__toggle { display: none; } }
.nav__toggle span {
  height: 1px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: var(--bg);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }

.menu__list { display: flex; flex-direction: column; gap: 4px; }
.menu__item {
  display: block;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu.is-open .menu__item { opacity: 1; transform: none; transition-delay: calc(0.05s * var(--i, 0) + 0.1s); }
.menu__num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--steel-dim);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 2px;
}
.menu__foot { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 104px));
  padding-bottom: clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -22%;
  right: -8%;
  width: min(78vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 15, 17, 0.05) 0%, rgba(14, 15, 17, 0.02) 38%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__top { position: relative; z-index: 2; }

.hero__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(48px, 6vw, 64px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 52px);
}
@media (min-width: 960px) {
  .hero__bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hero__rule {
  height: 1px;
  width: clamp(40px, 8vw, 88px);
  background: linear-gradient(90deg, var(--chrome-2), transparent);
}

.hero__title { margin-bottom: 0; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
.js .hero__line > span {
  transform: translateY(102%);
  transition: transform 1s var(--ease);
}
.is-ready .hero__line > span { transform: none; }
.is-ready .hero__line:nth-child(2) > span { transition-delay: 0.09s; }
.is-ready .hero__line:nth-child(3) > span { transition-delay: 0.18s; }

.hero__lede { margin-bottom: clamp(28px, 3.4vw, 40px); }

.js .hero__fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s;
}
.is-ready .hero__fade { opacity: 1; transform: none; }

/* ---------- The Aperture (signature) ---------- */
.iris {
  position: relative;
  width: min(100% - 68px, 356px);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  isolation: isolate;
}

/* Blade surface — the chrome the iris is cut out of */
.iris__body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from calc(var(--chrome-spin, 0deg) - 40deg),
      #2B2F39 0deg,  #C7CEDA 26deg, #FFFFFF 44deg, #7F8794 68deg,
      #3A3F4A 104deg, #E4E9F1 142deg, #99A1B0 176deg, #262A33 208deg,
      #B9C1CE 244deg, #FFFFFF 268deg, #6E7684 300deg, #383D47 332deg,
      #2B2F39 360deg
    );
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.55),
    0 34px 80px -28px rgba(14, 15, 17, 0.24);
}

/* Soft specular sheen over the blades */
.iris__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 62% 44% at 30% 18%, rgba(255, 255, 255, 0.42), transparent 62%),
    radial-gradient(ellipse 52% 36% at 74% 88%, rgba(255, 255, 255, 0.2), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* The opening — clip-path nonagon that widens and rotates */
.iris__media {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #0A0B0E;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 8%, rgba(196, 205, 220, 0.3), transparent 62%),
    linear-gradient(168deg, #1A1D23 0%, #0B0C10 52%, #14161C 100%);
  background-size: cover;
  background-position: center;
  clip-path: polygon(
    50% 38%, 57.71% 40.81%, 61.82% 47.92%, 60.39% 56%, 54.1% 61.28%,
    45.9% 61.28%, 39.61% 56%, 38.18% 52.08%, 42.29% 40.81%
  );
  transition: clip-path 1.25s var(--ease-iris);
}

.is-ready .iris__media,
.iris.is-open .iris__media {
  clip-path: polygon(
    35.64% 10.53%, 64.36% 10.53%, 86.37% 29%, 91.36% 57.29%, 77% 82.17%,
    50% 92%, 23% 82.17%, 8.64% 57.29%, 13.63% 29%
  );
}

/* Grain inside the opening so it reads as film, not a flat fill */
.iris__media::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Blade seams radiating from each vertex */
.iris__seams {
  position: absolute;
  inset: 0;
  transform: rotate(0deg);
  transition: transform 1.25s var(--ease-iris);
  pointer-events: none;
  opacity: 0.9;
}
.is-ready .iris__seams,
.iris.is-open .iris__seams { transform: rotate(-20deg); }

/* Rim: inner hairline + lens barrel */
.iris__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(14, 15, 17, 0.2);
  pointer-events: none;
}
.iris__rim::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.iris__rim::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(14, 15, 17, 0.06);
}

/* Barrel tick ring, drifts slowly */
.iris__ticks {
  position: absolute;
  inset: -34px;
  animation: barrel 96s linear infinite;
  pointer-events: none;
}
@keyframes barrel { to { transform: rotate(360deg); } }

.iris__caption {
  position: absolute;
  left: 50%;
  bottom: -62px;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .iris { width: min(100%, 340px); }
  .iris__ticks { inset: -24px; }
  .iris__caption { bottom: -48px; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding-block: 15px;
  background: var(--bg-2);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}
.ticker__item {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}
.ticker__item b { color: var(--chrome-1); font-weight: 400; }
.ticker__sep { color: var(--steel-dim); font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section heading ---------- */
.head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); align-items: end; gap: 48px; }
}
.head__side { display: flex; flex-direction: column; gap: 18px; }
.head__eyebrow { margin-bottom: 16px; }

/* ---------- Services list ---------- */
.svc { border-top: 1px solid var(--line-soft); }
.svc__row {
  display: grid;
  gap: 12px;
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  transition: background-color 0.5s var(--ease);
}
@media (min-width: 860px) {
  .svc__row {
    grid-template-columns: 52px minmax(0, 1fr) minmax(0, 0.92fr) auto;
    align-items: baseline;
    gap: 28px;
  }
}
.svc__row:hover { background: rgba(199, 206, 218, 0.03); }
.svc__row::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background-image: linear-gradient(90deg, var(--chrome-3), var(--chrome-0) 42%, var(--chrome-2));
  transition: width 0.7s var(--ease);
}
.svc__row:hover::after { width: 100%; }

.svc__key { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--steel-dim); letter-spacing: 0.1em; }
.svc__name { font-stretch: 112%; }
.svc__desc { color: var(--steel); font-size: 15px; margin: 0; }
.svc__tag {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  white-space: nowrap;
}

/* ---------- Work grid ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.filter {
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--chrome-5); }
.filter.is-active {
  color: var(--bg);
  border-color: transparent;
  background-image: linear-gradient(172deg, #0E0F11, #3A3D44 48%, #17181B);
  font-weight: 500;
}
.filter__count { opacity: 0.5; margin-left: 6px; }

.work {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 620px)  { .work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .work { grid-template-columns: repeat(6, 1fr); } }

/* Editorial rhythm: alternating column spans on desktop */
@media (min-width: 1040px) {
  .work__item { grid-column: span 2; }
  .work__item--wide { grid-column: span 4; }
  .work__item--full { grid-column: span 3; }
}

.work__item {
  position: relative;
  display: block;
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.work__item:hover { border-color: var(--chrome-5); transform: translateY(-3px); }

.work__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-3);
  background-image: linear-gradient(158deg, var(--t1, #22262E) 0%, var(--t2, #0C0D11) 68%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: saturate(0.6) contrast(1.02);
  transition: filter 0.7s var(--ease), transform 1.1s var(--ease);
}
.work__item--wide .work__media { aspect-ratio: 16 / 10; }
.work__item:hover .work__media { filter: saturate(1) contrast(1.04); transform: scale(1.028); }

.work__media::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23w)'/%3E%3C/svg%3E");
}

.work__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  opacity: 0.22;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.work__item:hover .work__mark { opacity: 0.4; transform: translate(-50%, -50%) rotate(20deg); }

.work__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(199, 206, 218, 0.16);
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome-1);
}

.work__info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 17px;
  border-top: 1px solid var(--line-soft);
}
.work__title {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-stretch: 108%;
  font-size: 15px;
  letter-spacing: -0.008em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.work__client { font-size: 13px; color: var(--steel); margin: 3px 0 0; }
.work__year { font-family: 'DM Mono', monospace; font-size: 10.5px; color: var(--steel-dim); letter-spacing: 0.1em; }

.work__empty {
  grid-column: 1 / -1;
  padding: 56px 0;
  text-align: center;
  color: var(--steel);
}

/* ---------- Lightbox ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.lb.is-open { opacity: 1; visibility: visible; }

.lb__panel {
  width: min(100%, 1000px);
  max-height: 88vh;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transform: translateY(14px) scale(0.99);
  transition: transform 0.55s var(--ease);
}
.lb.is-open .lb__panel { transform: none; }

.lb__media {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-3);
  background-image: linear-gradient(158deg, var(--t1, #22262E), var(--t2, #0C0D11) 70%);
  background-size: cover;
  background-position: center;
}
.lb__body {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 780px) {
  .lb__body { grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: start; }
}
.lb__specs { display: grid; gap: 9px; }
.lb__spec { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.lb__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 7, 10, 0.7);
  color: var(--bg);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.lb__close:hover { border-color: var(--chrome-2); transform: rotate(90deg); }

/* ---------- Spec plate (About) ---------- */
.plate { border-top: 1px solid var(--line); }
.plate__row {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
@media (min-width: 700px) { .plate__row { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); } }
.plate__val { color: var(--ink); font-size: 15px; }

/* ---------- Steps (real sequence — numbering earns its place) ---------- */
.steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg); padding: clamp(24px, 3vw, 34px); }
.step__n {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--chrome-2);
  display: block;
  margin-bottom: 20px;
}
.step__t { margin-bottom: 10px; }
.step__d { font-size: 14.5px; color: var(--steel); margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: clamp(14px, 1.6vw, 20px); }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  border: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.card:hover { border-color: var(--line); background: var(--bg-3); }
.card--feature {
  border-color: var(--chrome-5);
  background:
    linear-gradient(168deg, rgba(14, 15, 17, 0.045), transparent 46%),
    var(--bg-2);
}
.card__price {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-stretch: 118%;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card__price small { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; color: var(--steel); letter-spacing: 0.12em; display: block; margin-top: 8px; }
.card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 14.5px;
  color: var(--silver);
}
.card__list li::before { content: '+'; color: var(--chrome-2); font-family: 'DM Mono', monospace; font-size: 13px; }
.card__badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background-image: linear-gradient(172deg, #0E0F11, #3A3D44 52%, #17181B);
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Form ---------- */
.form { display: grid; gap: 20px; }
.form__grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .form__grid--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 9px; }
.field__label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.field__input {
  height: 52px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 15px;
  border-radius: 0;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
  width: 100%;
}
textarea.field__input { height: auto; min-height: 148px; padding-block: 15px; resize: vertical; line-height: 1.6; }
select.field__input { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 21px) 24px, calc(100% - 16px) 24px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field__input:focus { border-color: var(--chrome-2); background: var(--bg-3); outline: none; }
.field__input::placeholder { color: var(--steel-dim); }

.form__note { font-size: 13px; color: var(--steel-dim); margin: 0; }
.form__status { font-size: 14px; margin: 0; min-height: 22px; }
.form__status.is-ok { color: #2E3138; }
.form__status.is-err { color: #A83E3E; }

/* ---------- CTA band ---------- */
.cta {
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(14, 15, 17, 0.045), transparent 62%),
    var(--bg);
  text-align: center;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(48px, 6vw, 76px) 32px;
  background: var(--bg-2);
}
.footer__scale {
  height: 15px;
  margin-bottom: clamp(38px, 5vw, 58px);
  opacity: 0.55;
}
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__h {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0 0 4px;
}
.footer__link { font-size: 14.5px; color: var(--silver); transition: color 0.35s var(--ease); width: fit-content; }
.footer__link:hover { color: var(--chrome-0); }
.footer__mark {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 12px; }

.stack-sm { display: grid; gap: 14px; }
.stack-md { display: grid; gap: 24px; }
.stack-lg { display: grid; gap: 40px; }
.mt-lg { margin-top: clamp(40px, 5vw, 64px); }
.mt-md { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__line > span { transform: none; }
  .hero__fade { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .iris__media {
    clip-path: polygon(
      35.64% 10.53%, 64.36% 10.53%, 86.37% 29%, 91.36% 57.29%, 77% 82.17%,
      50% 92%, 23% 82.17%, 8.64% 57.29%, 13.63% 29%
    );
  }
  .iris__seams { transform: rotate(-20deg); }
}
