/* ==========================================================
   Md Moniruzzaman, photography portfolio · V2
   ========================================================== */

:root {
  --ink: #121214;
  --ink-2: #1A1A1D;
  --panel: #2A2B26;
  --panel-2: #36372F;
  --bone: #ECEAE3;
  --bone-2: #D3D1C8;
  --muted: #A3A498;
  --line: rgba(236, 234, 227, 0.12);
  --line-strong: rgba(236, 234, 227, 0.3);
  --glass: rgba(42, 43, 38, 0.42);
  --amber: #E2A65A;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 56px);
  --container: 1320px;
  --section: clamp(96px, 13vw, 184px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --t-fast: 180ms;
  --t-med: 360ms;
  --t-slow: 1100ms;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-optical-sizing: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--bone); color: var(--ink); }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section) 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bone);
}
.eyebrow-num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--line-strong);
}

.h2 {
  font-size: clamp(2.125rem, 4.4vw, 3.875rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 em { font-size: 1.08em; }

.muted { color: var(--muted); }

/* ---------- Atmosphere: grain, progress, cursor ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 250;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--bone));
  transform-origin: left;
  transform: scaleX(0);
}

.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--bone);
  transition: opacity var(--t-fast) ease;
}
.cursor-ring {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(236, 234, 227, 0.5);
  transition: width 420ms var(--ease-expo), height 420ms var(--ease-expo), margin 420ms var(--ease-expo), background-color 300ms ease, border-color 300ms ease, opacity 300ms ease;
}
.cursor-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 250ms ease, transform 420ms var(--ease-expo);
}
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--bone); background: rgba(236, 234, 227, 0.08); }
.cursor.is-label .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--bone); border-color: var(--bone); }
.cursor.is-label .cursor-label { opacity: 1; transform: none; }
.cursor.is-label .cursor-dot,
.cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-hidden .cursor-dot,
.cursor.is-hidden .cursor-ring { opacity: 0; }
.cursor.is-down .cursor-ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; }

/* ---------- Preloader ---------- */

.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--ink);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1100ms var(--ease-io);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader.is-gone { display: none !important; }
.loader-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.loader-mark { width: 84px; height: 84px; margin-bottom: 8px; }
.loader-ring,
.loader-m {
  fill: none;
  stroke: var(--bone);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1400ms var(--ease-io) forwards;
}
.loader-ring { stroke-width: 0.6; stroke-opacity: 0.45; }
.loader-m { stroke-width: 2.2; stroke-linejoin: miter; animation-delay: 250ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-name,
.loader-sub { overflow: hidden; }
.loader-name span,
.loader-sub span { display: block; transform: translateY(110%); animation: up 1000ms var(--ease-expo) forwards; }
.loader-name { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.loader-name span { animation-delay: 500ms; }
.loader-sub { font-size: 0.8125rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.loader-sub span { animation-delay: 650ms; }
@keyframes up { to { transform: none; } }
.loader-count {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vw, 40px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.loader.is-done .loader-inner,
.loader.is-done .loader-count { opacity: 0; transform: translateY(-40px); transition: opacity 500ms ease, transform 900ms var(--ease-io); }

/* ---------- Buttons ---------- */

.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, translate 600ms var(--ease-expo);
  touch-action: manipulation;
}
.magnetic { transition: translate 700ms var(--ease-expo); }

.btn-arrow { padding-right: 0; gap: 0; background: none !important; border: 0; }
.btn-arrow > span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: var(--r-pill);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.btn-arrow-icon {
  display: grid;
  place-items: center;
  width: var(--h);
  height: var(--h);
  border-radius: 50%;
  margin-left: -2px;
  overflow: hidden;
  transition: transform 500ms var(--ease-expo), background-color var(--t-fast) ease;
}
.btn-arrow-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 500ms var(--ease-expo); }
.btn-arrow:hover .btn-arrow-icon { transform: rotate(45deg); }

.btn-light.btn-arrow > span:first-child,
.btn-light.btn-arrow .btn-arrow-icon { background: var(--bone); color: var(--ink); }
.btn-light.btn-arrow:hover > span:first-child,
.btn-light.btn-arrow:hover .btn-arrow-icon { background: #fff; }

.btn-outline:not(.btn-arrow) { border-color: var(--line-strong); color: var(--bone); }
.btn-outline:not(.btn-arrow):hover { border-color: var(--bone); background: rgba(236, 234, 227, 0.06); }
.btn-outline.btn-arrow > span:first-child { border: 1px solid var(--line-strong); }
.btn-outline.btn-arrow .btn-arrow-icon { background: var(--bone); color: var(--ink); }
.btn-outline.btn-arrow:hover > span:first-child { border-color: var(--bone); }

.btn-glass {
  border-color: rgba(236, 234, 227, 0.35);
  background: rgba(18, 18, 20, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: var(--bone); background: rgba(18, 18, 20, 0.55); }

.btn-lg { --h: 60px; font-size: 1.0625rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  flex: none;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
  touch-action: manipulation;
}
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--bone); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.icon-btn-solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.icon-btn-solid:hover { background: #fff; }
.icon-btn-glass {
  background: rgba(18, 18, 20, 0.32);
  border-color: rgba(236, 234, 227, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  color: var(--bone);
}
.text-link-line {
  position: relative;
  width: 40px;
  height: 1px;
  background: currentColor;
  transition: width 500ms var(--ease-expo);
}
.text-link-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.text-link:hover .text-link-line { width: 60px; }

/* Text roll on hover */
.roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.4;
}
.roll > span {
  position: relative;
  display: inline-block;
  transition: transform 600ms var(--ease-expo);
}
.roll > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
}
.nav-list a:hover .roll > span { transform: translateY(-100%); }

/* Custom cursor replaces the native one on fine pointers */
.has-cursor,
.has-cursor * { cursor: none !important; }
.has-cursor .lightbox,
.has-cursor .lightbox * { cursor: auto !important; }
.has-cursor .lightbox button { cursor: pointer !important; }
.has-cursor input,
.has-cursor textarea { cursor: text !important; }
.has-cursor select { cursor: pointer !important; }

/* Failsafe: show everything if scripts never ran */
.no-anim .split .w-i,
.no-anim .reveal,
.no-anim .g-item,
.no-anim .img-reveal,
.no-anim .img-reveal img,
.no-anim .footer-word span,
.no-anim .hero-slides,
.no-anim .hero-kicker,
.no-anim .hero-lede,
.no-anim .chip-row li,
.no-anim .hero-rail {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  visibility: visible !important;
}
.js .split:not(.is-split) { visibility: hidden; }
.no-anim .split { visibility: visible !important; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(16px, 2.4vw, 32px);
  border-radius: var(--r-xl);
  transform: translateY(0);
  transition: background-color var(--t-med) ease, padding var(--t-med) var(--ease-out), box-shadow var(--t-med) ease, transform 700ms var(--ease-expo);
}
.js:not(.is-ready) .site-header { transform: translateY(-140%); }
.site-header.is-scrolled {
  top: 8px;
  padding-block: 10px;
  background: rgba(18, 18, 20, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}
.site-header.is-hidden { transform: translateY(-150%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  justify-self: start;
  min-height: 44px;
}
.brand img { border-radius: 50%; flex: none; transition: transform 900ms var(--ease-expo); }
.brand:hover img { transform: rotate(-12deg) scale(1.04); }
.brand-text { display: grid; gap: 3px; line-height: 1.1; padding-left: 14px; border-left: 1px solid rgba(236, 234, 227, 0.3); }
.brand-name { font-weight: 600; letter-spacing: -0.005em; font-size: 1.0625rem; white-space: nowrap; }
.brand-sub { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-2); opacity: 0.85; }

.nav-list,
.hero-card,
.chip,
.icon-btn-glass {
  isolation: isolate;
}

.nav-list {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(236, 234, 227, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(236, 234, 227, 0.12);
}
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color var(--t-med) ease, color var(--t-med) ease;
}
.nav-list a[aria-current="true"] { background: var(--bone); color: var(--ink); }

.nav-toggle { display: none; }

.header-cta { justify-self: end; }
.header-cta { --h: 44px; font-size: 0.9375rem; }

/* ---------- Hero ---------- */

.hero { padding: 12px; }
.hero-frame {
  position: relative;
  height: calc(100svh - 24px);
  min-height: 620px;
  max-height: 1040px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--panel);
  isolation: isolate;
}

.hero-slides { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 100%); z-index: 0; }
.hero-slide.is-prev { clip-path: inset(0 0 0 0); z-index: 1; }
.hero-slide.is-active { clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 1500ms var(--ease-io); }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.hero-slide.is-prev::after { opacity: 0.55; transition: opacity 1500ms var(--ease-io); }
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  backface-visibility: hidden;
}
.hero-slide.is-active img { transform: scale(1.02); transition: transform 9000ms var(--ease-out); }
.hero-slide.is-prev img { transform: scale(1.02) translateX(-6%); transition: transform 1500ms var(--ease-io); }

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, 0.55) 0%, rgba(18, 18, 20, 0) 22%),
    linear-gradient(0deg, rgba(18, 18, 20, 0.85) 0%, rgba(18, 18, 20, 0.3) 40%, rgba(18, 18, 20, 0) 62%),
    linear-gradient(90deg, rgba(18, 18, 20, 0.5) 0%, rgba(18, 18, 20, 0) 58%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(24px, 5vw, 56px);
  max-width: min(820px, 58%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(236, 234, 227, 0.25);
  background: rgba(18, 18, 20, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  color: var(--bone-2);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3); opacity: 0; } }

.hero-title {
  font-size: clamp(2.75rem, 6.4vw, 6.25rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title em { font-size: 1.1em; letter-spacing: -0.02em; }
.hero-lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--bone-2);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid rgba(236, 234, 227, 0.4);
  background: rgba(18, 18, 20, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease, color var(--t-med) ease, transform 500ms var(--ease-expo);
}
.chip:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: translateY(-2px); }

.hero-rail {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(24px, 4vw, 48px);
  width: min(620px, 40%);
}
.hero-now {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.hero-now-label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-2); flex: none; }
.hero-now, .hero-progress { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
.hero-now-title {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-now-title.is-changing { animation: roll-in 900ms var(--ease-expo); }
@keyframes roll-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

.hero-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hero-count { font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--bone-2); }
.hero-bar { position: relative; flex: 1; height: 2px; background: rgba(236, 234, 227, 0.25); border-radius: 2px; overflow: hidden; }
.hero-bar-fill { position: absolute; inset: 0; background: var(--bone); transform-origin: left; transform: scaleX(0); }
#hero-pause .i-play { display: none; }
#hero-pause[aria-pressed="true"] .i-play { display: block; }
#hero-pause[aria-pressed="true"] .i-pause { display: none; }

.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 8px;
  border-radius: var(--r-md);
  text-align: left;
  border: 1px solid rgba(236, 234, 227, 0.22);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease, transform 600ms var(--ease-expo);
}
.hero-card:hover { border-color: rgba(236, 234, 227, 0.55); background: rgba(42, 43, 38, 0.62); transform: translateY(-3px); }
.hero-card-thumb { width: 84px; height: 84px; border-radius: 9px; overflow: hidden; }
.hero-card img { width: 84px; height: 84px; object-fit: cover; transition: opacity 450ms ease, transform 800ms var(--ease-expo); }
.hero-card:hover img { transform: scale(1.1); }
.hero-card-text { transition: opacity 450ms ease, transform 600ms var(--ease-expo); }
.hero-card.is-swapping img { opacity: 0; transform: scale(1.15); }
.hero-card.is-swapping .hero-card-text { opacity: 0; transform: translateY(8px); }
.hero-card-text { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 4px 2px 0; min-width: 0; }
.hero-card-title { font-size: 1rem; line-height: 1.25; font-weight: 500; }
.hero-card-meta { font-size: 0.8125rem; color: var(--bone-2); }

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 3vw, 40px);
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(-50%);
  text-decoration: none;
  color: var(--bone-2);
}
.scroll-cue-text { writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; }
.scroll-cue-line { position: relative; width: 1px; height: 64px; background: rgba(236, 234, 227, 0.25); overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--bone); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Hero entrance (after loader) */
.js .hero-kicker,
.js .hero-lede,
.js .chip-row li,
.js .hero-rail,
.js .scroll-cue { opacity: 0; transform: translateY(24px); }
.js .hero-slides { transform: scale(1.18); }
.is-ready .hero-slides { transform: scale(1); transition: transform 2200ms var(--ease-expo); }
.is-ready .hero-kicker,
.is-ready .hero-lede,
.is-ready .chip-row li,
.is-ready .hero-rail,
.is-ready .scroll-cue { opacity: 1; transform: none; transition: opacity 1000ms ease, transform 1200ms var(--ease-expo); }
.is-ready .hero-kicker { transition-delay: 150ms; }
.is-ready .hero-lede { transition-delay: 550ms; }
.is-ready .chip-row li:nth-child(1) { transition-delay: 650ms; }
.is-ready .chip-row li:nth-child(2) { transition-delay: 720ms; }
.is-ready .chip-row li:nth-child(3) { transition-delay: 790ms; }
.is-ready .hero-rail { transition-delay: 850ms; }
.is-ready .scroll-cue { transition-delay: 1100ms; }
.hero-slides.is-settled,
.hero-settled .hero-rail { transition: none !important; }

/* ---------- Split text ---------- */

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w-i { display: inline-block; }
.js .split .w-i { transform: translateY(105%) rotate(4deg); transform-origin: left bottom; }
.js .split.is-in .w-i {
  transform: none;
  transition: transform 1200ms var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.js .hero-title.split .w-i { transition-delay: calc(250ms + var(--i, 0) * 60ms); }

/* ---------- Scroll reveals ---------- */

.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1000ms ease var(--d, 0ms), transform 1200ms var(--ease-expo) var(--d, 0ms), translate 700ms var(--ease-expo);
}

.img-reveal { overflow: hidden; }
.js .img-reveal { clip-path: inset(100% 0 0 0 round var(--r-lg)); }
.js .img-reveal img { transform: scale(1.35); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); transition: clip-path 1500ms var(--ease-io); }
.js .img-reveal.is-in img { transform: scale(1); transition: transform 2000ms var(--ease-expo); }

/* ---------- Marquee ---------- */

.marquee {
  margin-top: clamp(56px, 8vw, 110px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(14px, 2vw, 26px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee span {
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
  padding-inline: clamp(16px, 2.4vw, 36px);
  white-space: nowrap;
}
.marquee span.outline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 234, 227, 0.7);
}
.marquee i { font-style: normal; font-size: clamp(1.25rem, 2.6vw, 2.25rem); color: var(--amber); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: start;
}
.about-photo {
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  max-width: 380px;
  background: #000;
}
.about-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; margin-top: -9%; }

.statement {
  font-size: clamp(1.875rem, 3.5vw, 3.125rem);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.statement .sw { transition: opacity 200ms linear; }
.has-scrub .statement .sw { opacity: 0.16; }
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-top: clamp(36px, 4.4vw, 60px);
  color: var(--bone-2);
}
.about-body p { max-width: 42ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(32px, 4vw, 48px) 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.4fr); }

/* Kit */
.kit { margin: 0 0 clamp(32px, 4vw, 48px); }
.kit-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.kit-group {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(236, 234, 227, 0.03);
  transition: border-color 400ms ease, background-color 400ms ease;
}
.kit-group:hover { border-color: var(--line-strong); background: rgba(236, 234, 227, 0.05); }
.kit-label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kit-items { display: grid; gap: 4px; }
.kit-items li { position: relative; padding-left: 16px; font-size: 1rem; line-height: 1.45; }
.kit-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.facts dt { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 1rem; line-height: 1.45; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 32px 24px 0 0;
}
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(3.25rem, 7vw, 6.5rem);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat-word { font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
.stat-label { font-size: 0.9375rem; color: var(--muted); max-width: 22ch; }

/* ---------- Panels ---------- */

.panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4.4vw, 64px);
}

/* ---------- Expertise ---------- */

.expertise { overflow: hidden; }
.expertise::before {
  content: "";
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  right: -20%;
  top: -40%;
  background: radial-gradient(closest-side, rgba(226, 166, 90, 0.12), transparent);
  pointer-events: none;
}
.expertise-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.expertise-head .h2 { max-width: 14ch; }

.cat-tabs { display: grid; gap: 2px; justify-items: start; }
.cat-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(236, 234, 227, 0.36);
  cursor: pointer;
  text-align: left;
  transition: color var(--t-med) ease, transform 600ms var(--ease-expo);
}
.cat-tab::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 600ms var(--ease-expo);
}
.cat-tab:hover { color: rgba(236, 234, 227, 0.75); }
.cat-tab[aria-selected="true"] { color: var(--bone); }
.cat-tab[aria-selected="true"]::before { width: 28px; }
.cat-tab-count { font-size: 0.875rem; align-self: flex-start; margin-top: 8px; margin-left: -8px; color: var(--muted); }

.expertise-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  grid-template-areas:
    "info carousel"
    ". controls";
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 24px;
  margin-top: clamp(40px, 6vw, 88px);
}
.slide-info { grid-area: info; align-self: end; padding-bottom: 6px; }
.slide-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 0.9;
  color: rgba(236, 234, 227, 0.18);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.slide-title { font-size: 1.375rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.slide-meta { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.slide-info.is-changing > * { animation: roll-in 700ms var(--ease-expo) both; }
.slide-info.is-changing > :nth-child(2) { animation-delay: 60ms; }
.slide-info.is-changing > :nth-child(3) { animation-delay: 120ms; }

.carousel {
  grid-area: carousel;
  margin-right: calc(clamp(24px, 4.4vw, 64px) * -1);
  outline: none;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-right: clamp(24px, 4.4vw, 64px);
  overscroll-behavior-x: contain;
}
.carousel-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.carousel-track.is-dragging * { pointer-events: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.car-item {
  flex: none;
  height: clamp(280px, 38vw, 500px);
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel-2);
  padding: 0;
  border: 0;
  cursor: zoom-in;
  opacity: 0.5;
  transition: opacity 600ms ease;
  animation: car-in 1000ms var(--ease-expo) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes car-in { from { opacity: 0; transform: translateX(80px); } }
.car-item.is-current { opacity: 1; }
.car-item:hover { opacity: 1; }
.car-item img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 1000ms var(--ease-expo); user-select: none; -webkit-user-drag: none; }
.car-item:hover img { transform: scale(1.05); }

.carousel-controls { grid-area: controls; display: flex; align-items: center; gap: 12px; }
.carousel-controls .text-link { margin-left: 16px; }

/* ---------- In focus (horizontal showcase) ---------- */

.focus { padding-top: var(--section); }
.focus-head { margin-bottom: clamp(32px, 4vw, 56px); }
.focus-head .h2 { max-width: 16ch; }
.focus-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.focus-track::-webkit-scrollbar { display: none; }
.focus-card {
  position: relative;
  flex: none;
  width: min(84vw, 980px);
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  scroll-snap-align: center;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  text-align: left;
}
.focus-card img {
  position: absolute;
  inset: 0 -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: scale 1200ms var(--ease-expo);
}
.focus-card:hover img { scale: 1.04; }
.focus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 18, 20, 0.75), rgba(18, 18, 20, 0) 45%);
  pointer-events: none;
}
.focus-num {
  position: absolute;
  z-index: 1;
  top: clamp(14px, 2vw, 24px);
  left: clamp(16px, 2.4vw, 32px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--bone);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.focus-cap {
  position: absolute;
  z-index: 1;
  left: clamp(16px, 2.4vw, 32px);
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(14px, 2vw, 28px);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.focus-title { font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.focus-cat { font-size: 0.875rem; color: var(--bone-2); white-space: nowrap; }
.focus-progress { margin-top: 28px; }
.focus-bar { display: block; height: 1px; background: var(--line-strong); }
.focus-bar span { display: block; height: 100%; background: var(--bone); transform-origin: left; transform: scaleX(0); }

/* Pinned mode (desktop, GSAP) */
.focus.is-pinned .focus-pin { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.focus.is-pinned .focus-track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
.focus.is-pinned .focus-card { width: min(62vw, 980px); max-height: 60vh; aspect-ratio: auto; height: 60vh; }
.focus.is-pinned .focus-card:last-child { margin-right: var(--gutter); }

/* ---------- Work / gallery ---------- */

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: rgba(236, 234, 227, 0.03);
}
.filter-pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: var(--r-pill);
  background: var(--bone);
  transition: transform 650ms var(--ease-expo), width 650ms var(--ease-expo), height 650ms var(--ease-expo);
  pointer-events: none;
}
.filter {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 0;
  background: none;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 450ms ease;
}
.filter:hover { color: #fff; }
.filter[aria-pressed="true"] { color: var(--ink); }
.no-pill .filter[aria-pressed="true"] { background: var(--bone); }
.filter-count { font-size: 0.8125rem; opacity: 0.6; font-variant-numeric: tabular-nums; }

.gallery { columns: 3; column-gap: 16px; transition: opacity 350ms ease, transform 500ms var(--ease-expo); }
.gallery.is-leaving { opacity: 0; transform: translateY(16px); }
.g-item { break-inside: avoid; margin-bottom: 16px; }
.js .g-item { opacity: 0; transform: translateY(60px); }
.js .g-item.is-in { opacity: 1; transform: none; transition: opacity 900ms ease, transform 1300ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.g-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  transform: translateZ(0);
}
.g-btn img {
  width: 100%;
  height: auto;
  transform: scale(1.18);
  opacity: 0;
  transition: transform 1600ms var(--ease-expo), opacity 700ms ease;
}
.g-item.is-in .g-btn img.is-loaded { opacity: 1; transform: scale(1); }
.g-item.is-in .g-btn:hover img { transform: scale(1.06); transition-duration: 1000ms; }
.g-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 48px 16px 14px;
  background: linear-gradient(0deg, rgba(18, 18, 20, 0.85), rgba(18, 18, 20, 0));
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 650ms var(--ease-expo);
}
.g-btn:hover .g-cap,
.g-btn:focus-visible .g-cap { opacity: 1; transform: none; }
.g-cap-title { font-size: 0.9375rem; font-weight: 500; }
.g-cap-cat { font-size: 0.8125rem; color: var(--bone-2); white-space: nowrap; }

.gallery-more { display: flex; justify-content: center; margin-top: 48px; }
.gallery-more[hidden] { display: none; }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px);
}
.services-intro { position: sticky; top: 120px; align-self: start; }
.services-intro .muted { margin-top: 22px; max-width: 36ch; }

.service-list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: 8px 28px;
  align-items: center;
  padding: 30px 12px;
  margin-inline: -12px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-md);
  background: rgba(236, 234, 227, 0.05);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 700ms var(--ease-expo);
}
.service:hover::before { transform: scaleY(1); }
.service-num { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.service h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: transform 700ms var(--ease-expo);
}
.service:hover h3 { transform: translateX(10px); }
.service p { color: var(--bone-2); font-size: 1rem; }
.service-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, transform 700ms var(--ease-expo);
}
.service-link::after { content: ""; position: absolute; inset: 0; }
.service-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service-link { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: rotate(45deg); }

.service-preview { display: none; }
.has-cursor .service-preview {
  display: block;
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 300px;
  aspect-ratio: 4 / 5;
  margin: -190px 0 0 -150px;
  border-radius: var(--r-lg);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transition: opacity 400ms ease, scale 700ms var(--ease-expo);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.service-preview.is-on { opacity: 1; scale: 1; }
.service-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */

.contact {
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 128px);
  isolation: isolate;
}
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 125%; object-fit: cover; object-position: center 60%; margin-top: -12%; }
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(18, 18, 20, 0.82), rgba(18, 18, 20, 0.35)),
    radial-gradient(100% 80% at 0% 100%, rgba(18, 18, 20, 0.6), transparent);
}
.contact .eyebrow { color: var(--bone-2); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-main { display: grid; align-content: start; }
.contact-title {
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-wrap: balance;
}
.contact-title em { font-size: 1.08em; color: var(--amber); }
.contact-lede { margin-top: 24px; max-width: 38ch; color: var(--bone-2); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.contact-details dd { overflow-wrap: anywhere; }
.contact-details > div:first-child { grid-column: 1 / -1; }

/* Hire me card */
.hire-card {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 20, 0.58);
  border: 1px solid rgba(236, 234, 227, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  outline: none;
}
.hire-card.is-flash { animation: flash 1400ms var(--ease-expo); }
.hire-label { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.hire-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hire-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(236, 234, 227, 0.25);
  background: rgba(236, 234, 227, 0.04);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, transform 500ms var(--ease-expo);
}
.hire-chip:hover { border-color: var(--bone); }
.hire-chip:active { transform: scale(0.96); }
.hire-chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.hire-actions { display: grid; gap: 12px; }
.hire-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 14px 16px 14px 14px;
  border-radius: var(--r-md);
  text-decoration: none;
  border: 1px solid rgba(236, 234, 227, 0.18);
  background: rgba(236, 234, 227, 0.05);
  transition: background-color 400ms ease, border-color 400ms ease, translate 700ms var(--ease-expo);
}
.hire-action:hover { border-color: rgba(236, 234, 227, 0.45); background: rgba(236, 234, 227, 0.09); }
.hire-action-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
}
.hire-action-icon svg { width: 24px; height: 24px; }
.hire-wa .hire-action-icon { background: #25D366; color: #fff; }
.hire-wa { border-color: rgba(37, 211, 102, 0.45); background: rgba(37, 211, 102, 0.1); }
.hire-wa:hover { border-color: #25D366; background: rgba(37, 211, 102, 0.18); }
.hire-call .hire-action-icon svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa-bubble { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa-phone { fill: currentColor; }
.hire-action-text { display: grid; gap: 2px; min-width: 0; }
.hire-action-title { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.hire-action-sub { font-size: 0.875rem; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.hire-action-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 500ms var(--ease-expo); }
.hire-action:hover .hire-action-arrow svg { transform: rotate(45deg); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  z-index: 45;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 400ms ease, transform 600ms var(--ease-expo), background-color 250ms ease;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #1EBE5A; }
.wa-float svg { width: 26px; height: 26px; }

.hire-form {
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 20, 0.58);
  border: 1px solid rgba(236, 234, 227, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.hire-head { margin-bottom: 24px; }
.hire-title { font-size: clamp(1.625rem, 2.4vw, 2.125rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.hire-sub { margin-top: 6px; color: var(--bone-2); font-size: 0.9375rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--bone); }
.req { color: var(--amber); }
.opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(236, 234, 227, 0.2);
  background: rgba(236, 234, 227, 0.06);
  color: var(--bone);
  font: inherit;
  font-size: 1rem;
  transition: border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(236, 234, 227, 0.38); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(236, 234, 227, 0.09);
  box-shadow: 0 0 0 3px rgba(226, 166, 90, 0.22);
}
.field input[type="date"] { color-scheme: dark; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.5px solid var(--bone-2);
  border-bottom: 1.5px solid var(--bone-2);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.field select option { background: var(--ink-2); color: var(--bone); }
.field [aria-invalid="true"] { border-color: #E5786D; }
.field-error { min-height: 0; font-size: 0.8125rem; color: #F0A097; }
.field-error:empty { display: none; }
.hire-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hire-note { font-size: 0.8125rem; color: var(--muted); max-width: 30ch; }
.hire-status { margin-top: 14px; font-size: 0.9375rem; color: var(--bone-2); }
.hire-status:empty { display: none; }
.hire-form.is-flash { animation: flash 1400ms var(--ease-expo); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(226, 166, 90, 0.6); } 100% { box-shadow: 0 0 0 18px rgba(226, 166, 90, 0); } }
.services-cta { margin-top: 32px; }
.contact-details dt { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-2); opacity: 0.8; margin-bottom: 6px; }
.contact-details dd { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.contact-details a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size 600ms var(--ease-expo); }
.contact-details a:hover { background-size: 100% 1px, 100% 1px; }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(64px, 8vw, 120px) 0 32px; overflow: hidden; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: -10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--bone-2); transition: color var(--t-fast) ease; }
.footer-links a:hover { color: var(--bone); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--bone-2);
}
.to-top svg { width: 40px; height: 40px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-strong); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 600ms var(--ease-expo), background-color 300ms ease, color 300ms ease; }
.to-top:hover { color: var(--bone); }
.to-top:hover svg { transform: translateY(-4px); background: var(--bone); color: var(--ink); }

.footer-word {
  margin: clamp(24px, 4vw, 56px) 0 clamp(16px, 2vw, 28px);
  font-size: 16vw;
  line-height: 0.82;
  font-weight: 500;
  letter-spacing: -0.06em;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.footer-word span { display: inline-block; background: linear-gradient(180deg, var(--bone) 30%, rgba(236, 234, 227, 0.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .footer-word span { transform: translateY(100%); }
.js .footer-word.is-in span { transform: none; transition: transform 1600ms var(--ease-expo); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-note { font-size: 0.875rem; color: var(--muted); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 14, 0.97);
  color: var(--bone);
}
.lightbox::backdrop { background: rgba(12, 12, 14, 0.85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] { animation: lb-in 500ms var(--ease-expo); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox[open] .lb-stage { animation: lb-zoom 800ms var(--ease-expo); }
@keyframes lb-zoom { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

.lb-inner { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr; padding: 16px clamp(16px, 3vw, 32px) 24px; }
.lb-top { display: flex; justify-content: space-between; align-items: center; }
.lb-count { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.lb-figure { display: grid; grid-template-rows: 1fr auto; gap: 16px; min-height: 0; padding: 8px clamp(0px, 5vw, 80px) 0; }
.lb-stage { position: relative; min-height: 0; display: grid; }
.lb-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 6px; }
.lb-caption { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center; }
.lb-title { font-weight: 500; }
.lb-meta { color: var(--muted); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lb-nav:active { transform: translateY(-50%) scale(0.94); }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-content { max-width: 60%; }
  .hero-rail { width: min(340px, 34%); }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-cards .hero-card:nth-child(n + 2) { display: none; }
  .scroll-cue { display: none; }
  .about-body { grid-template-columns: 1fr; }
  .service { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .service p { grid-column: 2 / 3; }
  .service-link { grid-row: 1 / 3; grid-column: 3; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-title { max-width: 14ch; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 24px; border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .header-cta { display: none; }
  .nav { justify-self: end; position: relative; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--r-pill);
    border: 0;
    background: rgba(236, 234, 227, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform 400ms var(--ease-expo);
  }
  .nav-toggle-bars::before { content: ""; position: absolute; top: -5px; }
  .nav-toggle-bars { top: 2.5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: rotate(45deg); top: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(-90deg); top: 0; }

  .nav-list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 240px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: var(--r-lg);
    background: rgba(26, 26, 29, 0.97);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transform-origin: top right;
    transition: opacity 300ms ease, transform 500ms var(--ease-expo), visibility 0s linear 500ms;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list a { width: 100%; min-height: 52px; font-size: 1.125rem; border-radius: 12px; }
  .nav-list.is-open li { animation: roll-in 600ms var(--ease-expo) both; }
  .nav-list.is-open li:nth-child(2) { animation-delay: 50ms; }
  .nav-list.is-open li:nth-child(3) { animation-delay: 100ms; }
  .nav-list.is-open li:nth-child(4) { animation-delay: 150ms; }

  .hero-content { max-width: none; right: 20px; bottom: 112px; }
  .hero-rail { left: 20px; right: 20px; width: auto; bottom: 28px; }
  .hero-cards, .hero-now { display: none; }
  .hero-progress { margin-bottom: 0; }

  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .services-intro { position: static; }
  .facts { grid-template-columns: 1fr; gap: 16px; }

  .expertise-head { grid-template-columns: 1fr; }
  .cat-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .cat-tab::before { display: none; }
  .cat-tab-count { margin-left: -10px; }
  .expertise-body {
    grid-template-columns: 1fr;
    grid-template-areas: "carousel" "info" "controls";
  }
  .slide-index { display: none; }
  .gallery { columns: 2; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand { gap: 10px; }
  .brand-text { padding-left: 10px; }
  .brand-name { font-size: 0.9375rem; }
  .site-header { gap: 8px; padding-inline: 12px; }
  .nav-toggle { padding: 0 14px; }
  .hero-frame { min-height: 600px; }
  .hero-kicker { font-size: 0.75rem; margin-bottom: 16px; }
  .hero-lede { font-size: 1rem; }
  .chip-row { margin-top: 20px; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .lb-nav:active { transform: scale(0.94); }
  .lb-figure { padding-bottom: 64px; }
  .field-grid { grid-template-columns: 1fr; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float-label { display: none; }
  .kit-grid { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0 0; border-left: 0; }
  .stat + .stat { margin-top: 24px; border-top: 1px solid var(--line); }
  .service { grid-template-columns: minmax(0, 1fr) auto; padding-block: 24px; }
  .service-num { display: none; }
  .service p { grid-column: 1; }
  .service-link { grid-column: 2; width: 44px; height: 44px; }
  .focus-card { width: 86vw; aspect-ratio: 4 / 5; }
  .focus-cap { flex-direction: column; align-items: start; gap: 4px; }
}

@media (hover: none) {
  .g-cap { opacity: 0; }
  .has-cursor .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .grain { animation: none; }
  .hero-slide img, .hero-slide.is-active img, .hero-slide.is-prev img { transform: none; }
  .js .hero-slides { transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
