/* ==========================================================================
   Eda Osmani — Portfolio
   Palette
     Main   : Black  #101010 / #151515 / #1D1D1D   (backgrounds)
     Second : Bone   #EFEDE8 + warm greys          (type, lines)
     Third  : Ember  #F0491E, from deep red #3A0703 to hot orange #FF8A3D (glows, accents)
   ========================================================================== */

:root {
  --bg: #101010;
  --bg-2: #151515;
  --bg-3: #1d1d1d;
  --steel: #1a2330;
  --steel-light: #b8b5ae;
  --fg: #efede8;
  --muted: #8b8883;
  --ember: #f0491e;
  --black: #060606;
  --line: rgba(239, 237, 232, 0.14);
  --line-strong: rgba(239, 237, 232, 0.34);

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  --section: clamp(84px, 11vw, 168px);
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

::selection {
  background: var(--ember);
  color: var(--black);
}

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

[id] {
  scroll-margin-top: 84px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ember);
  color: var(--black);
  border-radius: 999px;
  transform: translateY(-200%);
}

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

.wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Type ---------- */

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 76%;
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.display em,
.statement em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--steel-light);
}

.h-xl {
  font-size: clamp(2.6rem, 7.2vw, 7rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--black);
  font-weight: 600;
  line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--fg);
  box-shadow: 0 0 44px rgba(240, 73, 30, 0.35);
}

.btn:hover .arrow {
  transform: translate(3px, -3px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--ember);
  box-shadow: inset 0 0 0 1px var(--ember);
}

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  transition: background-size 0.35s var(--ease), color 0.3s ease;
}

.link-u:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
  color: var(--ember);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.45s var(--ease), background 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(16, 16, 16, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 76%;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-dot {
  width: 9px;
  height: 9px;
  background: var(--ember);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 0.95rem;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 6px 0;
  color: var(--steel-light);
  transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--fg);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links .btn {
  padding: 12px 20px;
}

.menu-btn {
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px var(--pad) 32px;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
}

.menu.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.6s var(--ease);
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 76%;
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.menu-list a span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ember);
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

body.menu-open .nav {
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

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

.hero {
  position: relative;
  padding: clamp(112px, 15vh, 168px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

/* The night sky: a cold searchlight beam, a distant gold glow, film grain */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(
      from 196deg at 84% -6%,
      transparent 0deg,
      rgba(169, 184, 202, 0.2) 14deg,
      rgba(169, 184, 202, 0.05) 30deg,
      transparent 44deg
    ),
    radial-gradient(
      ellipse 62% 70% at 78% 0%,
      rgba(64, 92, 128, 0.5),
      transparent 70%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(240, 73, 30, 0.13),
      transparent 34%
    ),
    linear-gradient(180deg, #0a0d12 0%, var(--bg) 100%);
}

.hero-glow::after,
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.11;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.hero-meta .avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(240, 73, 30, 0.18);
}

.hero-title {
  position: relative;
  margin-top: clamp(28px, 5vw, 64px);
  font-size: clamp(2.9rem, 10.6vw, 10.75rem);
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero-title .line > span {
  display: inline-block;
}

.js .hero-title .line > span {
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
}

.js .is-ready .hero-title .line > span {
  transform: none;
}

.hero-title .line:nth-child(2) > span {
  transition-delay: 0.09s;
}

.hero-title .line:nth-child(3) > span {
  transition-delay: 0.18s;
}

.hero-title .hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  transition: color 0.4s ease 1s;
}

.is-ready .hero-title .hl,
html:not(.js) .hero-title .hl {
  color: var(--black);
}

.hero-title .hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.07em;
  right: -0.08em;
  top: 0.06em;
  bottom: 0.03em;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.75s;
}

.is-ready .hero-title .hl::before,
html:not(.js) .hero-title .hl::before {
  transform: none;
}

.hero-title em {
  color: var(--fg);
}

.badge {
  position: absolute;
  right: clamp(0px, 3vw, 60px);
  top: clamp(-36px, -2vw, -12px);
  width: clamp(104px, 12vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: rgba(16, 16, 16, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
  color: var(--ember);
  box-shadow: inset 0 0 0 1px var(--ember), 0 0 60px rgba(240, 73, 30, 0.22);
}

.badge svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.badge svg.ring text {
  fill: currentColor;
  font-family: var(--font-body);
  font-size: 10.4px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.badge .badge-arrow {
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1;
  color: var(--ember);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 8vw, 140px);
  align-items: end;
  margin-top: clamp(32px, 5vw, 64px);
}

.hero-sub {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--steel-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--steel-light);
  font-size: 0.875rem;
}

/* Hero filmstrip: static, desaturated until you hover */

.strip {
  margin-top: clamp(48px, 7vw, 96px);
}

.strip-track {
  display: flex;
  gap: 10px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.strip-track figure {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  box-shadow: 0 0 0 1px var(--line);
}

.strip-track img {
  width: 100%;
  filter: grayscale(1) brightness(0.72) contrast(1.08);
  transition: filter 0.7s var(--ease), transform 0.9s var(--ease);
}

.strip-track figure:hover img {
  filter: none;
  transform: scale(1.03);
}

/* ---------- Sections ---------- */

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

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 20px 32px;
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 88px);
}

.sec-label,
.sec-head .label {
  color: var(--muted);
}

.sec-head .label {
  padding-top: 0.9em;
}

.sec-label b,
.sec-head .label b {
  font-weight: 500;
  color: var(--ember);
  margin-right: 10px;
}

.on-dark {
  background: var(--bg-2);
}

.on-blue {
  background: linear-gradient(180deg, #111822 0%, #0a0e14 100%);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

/* ---------- Statement + stats ---------- */

.statement {
  max-width: 21em;
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 84%;
  font-size: clamp(1.9rem, 4.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.statement em {
  color: var(--ember);
}

.statement .w {
  opacity: 0.16;
  transition: opacity 0.35s ease;
}

.statement .w.on {
  opacity: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line-strong);
}

.stat {
  padding: 22px 20px 0 0;
}

.stat + .stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 76%;
  font-size: clamp(2.8rem, 6.6vw, 6.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-num sup {
  font-size: 0.45em;
  vertical-align: top;
  position: relative;
  top: 0.18em;
  margin-left: 0.04em;
  color: var(--ember);
}

.stat p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Case studies ---------- */

.case {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px clamp(32px, 4.5vw, 80px);
  padding: clamp(36px, 5vw, 72px) 0;
  border-top: 1px solid var(--line-strong);
}

.case-info {
  position: sticky;
  top: 100px;
  align-self: start;
}

.case-num {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.case-num b {
  font-weight: 500;
  color: var(--ember);
}

.case h3 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 0.95;
}

.case-lede {
  margin-top: 22px;
  max-width: 30em;
  font-size: 1.125rem;
  color: var(--steel-light);
}

.case dl {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.case dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.case dt {
  padding-top: 0.28em;
  color: var(--muted);
}

.case dd {
  font-size: 0.975rem;
  line-height: 1.5;
}

/* Media column: rows of 1, 2, 3 or 5 equal pieces, one shared ratio per row */

.case-media {
  display: grid;
  gap: 12px;
}

.row {
  --n: 1;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 12px;
}

.row--2 {
  --n: 2;
}

.row--3 {
  --n: 3;
}

.row--5 {
  --n: 5;
}

.row > * {
  aspect-ratio: var(--r, auto);
}

.row .shot img,
.case-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Palette dots in the project info */

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.palette li {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(239, 237, 232, 0.22);
}

.palette span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--fg);
  color: #101010;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.palette li:hover span {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Project video: same frame as an image, caption + pause pill on top */

.case-video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}

.case-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(239, 237, 232, 0.1);
  pointer-events: none;
}

.case-video figcaption {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.case-video figcaption > span,
.video-toggle {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
}

.video-toggle {
  transition: background 0.3s ease, color 0.3s ease;
}

.video-toggle:hover {
  background: var(--ember);
  color: #101010;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  cursor: zoom-in;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(239, 237, 232, 0.1);
  pointer-events: none;
  transition: box-shadow 0.4s ease;
}

.shot:hover::after,
.shot:focus-visible::after {
  box-shadow: inset 0 0 0 1px var(--ember);
}

.shot img {
  width: 100%;
  transition: transform 0.9s var(--ease);
}

.shot:hover img {
  transform: scale(1.035);
}

.shot--white {
  background: #fff;
}

/* ---------- Archive ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--steel-light);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.filter sup {
  font-size: 0.7rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.filter:hover {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.filter[aria-pressed="true"] {
  background: var(--ember);
  color: var(--black);
  font-weight: 600;
  box-shadow: none;
}

.filter[aria-pressed="true"] sup {
  color: var(--black);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 12px;
}

.tile {
  display: block;
  width: 100%;
  cursor: zoom-in;
  text-align: left;
}

.tile[hidden] {
  display: none;
}

.tile-img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
}

.tile-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(239, 237, 232, 0.1);
  pointer-events: none;
  transition: box-shadow 0.4s ease;
}

.tile:hover .tile-img::after,
.tile:focus-visible .tile-img::after {
  box-shadow: inset 0 0 0 1px var(--ember);
}

.tile-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.tile--pad .tile-img {
  background: #fff;
}

.tile--pad .tile-img img {
  object-fit: contain;
  padding: 18%;
}

.tile-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 0;
  font-size: 0.875rem;
  color: var(--fg);
}

.tile-cap span:last-child {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile:hover .tile-img img,
.tile:focus-visible .tile-img img {
  transform: scale(1.04);
}

.tile:focus-visible {
  outline: none;
}

.tile.pop {
  animation: pop 0.6s var(--ease) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.archive-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.archive-foot .links {
  display: flex;
  gap: 22px;
  color: var(--fg);
}

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

.services {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 16px 32px;
  align-items: baseline;
  padding: clamp(28px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  color: var(--ember);
}

.service h3 {
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  transition: color 0.4s ease;
}

.service:hover h3 {
  color: var(--ember);
}

.service-body p {
  max-width: 26em;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--steel-light);
}

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 6vw, 110px);
}

.about-media {
  position: sticky;
  top: 100px;
  align-self: start;
}

.portrait {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-3);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 30%;
  filter: contrast(1.04) saturate(0.9);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 16, 16, 0.7));
  box-shadow: inset 0 0 0 1px rgba(239, 237, 232, 0.1);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-tag {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--black);
}

.about-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 84%;
  font-size: clamp(1.6rem, 3vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.about-copy > p:not(.about-lead) {
  margin-top: 28px;
  max-width: 36em;
  color: var(--muted);
}

.sub-title {
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ember);
}

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

.caps li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tools li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--steel-light);
  font-size: 0.9rem;
}

.tools img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(
      ellipse 70% 60% at 18% 100%,
      rgba(150, 26, 8, 0.42),
      transparent 70%
    ),
    radial-gradient(circle at 92% 8%, rgba(240, 73, 30, 0.1), transparent 30%),
    var(--bg);
  box-shadow: inset 0 1px 0 var(--line);
}

.contact.grain::after {
  z-index: -1;
}

.contact-title {
  margin-top: 24px;
  font-size: clamp(3.2rem, 13.2vw, 13.5rem);
  line-height: 0.86;
}

.contact-title em {
  color: var(--ember);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 110px);
  margin-top: clamp(48px, 7vw, 104px);
}

.contact-intro p {
  max-width: 26em;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--steel-light);
}

.contact-mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 84%;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  letter-spacing: -0.02em;
  word-break: break-word;
}

.socials {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.socials a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease, padding 0.4s var(--ease);
}

.socials a:hover {
  color: var(--ember);
  padding-left: 10px;
}

.form {
  display: grid;
  gap: 26px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1.25rem;
  transition: border-color 0.3s ease;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(239, 237, 232, 0.28);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form-status {
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.ok {
  color: var(--ember);
}

.form-status.err {
  color: #ff9d8a;
}

.hp {
  position: absolute;
  left: -9999px;
}

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

.footer {
  padding: 0 0 28px;
  background: var(--bg);
  overflow: hidden;
}


.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-row a {
  color: var(--fg);
}

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

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  color: var(--fg);
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: fade 0.3s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.lb-bar,
.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
}

.lb-stage {
  position: relative;
  min-height: 0;
}

.lb-stage img {
  position: absolute;
  top: 0;
  left: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: 100%;
  object-fit: contain;
}

.lb-btn {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.25s ease, color 0.25s ease;
}

.lb-btn:hover {
  background: var(--ember);
  color: var(--black);
}

.lb-nav {
  display: flex;
  gap: 8px;
}

.lb-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Cursor pill ---------- */

.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  display: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-pill {
    display: block;
  }

  .cursor-pill.on {
    opacity: 1;
  }
}

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

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

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

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

  .menu-btn {
    display: inline-block;
  }

  .hero-foot,
  .case,
  .about,
  .contact-grid,
  .sec-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-info,
  .about-media {
    position: static;
  }

  .about-media {
    max-width: 440px;
  }

  .sec-head .label {
    padding-top: 0;
  }

  .service {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .service-body {
    grid-column: 2;
  }

  .badge {
    top: auto;
    bottom: -0.6em;
    right: 0;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 8px;
  }

  .tile-cap {
    padding-top: 8px;
    font-size: 0.8rem;
  }

  .tile-cap span:last-child {
    display: none;
  }

  .case-media,
  .row {
    gap: 8px;
  }

  /* Wide pairs stack; rows of 3 or 5 become a swipeable strip */
  .row--wide.row--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .row--3,
  .row--5 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad);
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }

  .row--3::-webkit-scrollbar,
  .row--5::-webkit-scrollbar {
    display: none;
  }

  .row--3 > *,
  .row--5 > * {
    flex: 0 0 64vw;
    scroll-snap-align: start;
  }

  .row--wide.row--3 > * {
    flex-basis: 80vw;
  }

  .caps,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-meta .hide-s {
    display: none;
  }

  .badge {
    position: relative;
    bottom: auto;
    margin: 24px 0 0 auto;
  }

  .strip-track {
    gap: 8px;
  }

  .strip-track figure:nth-child(n + 4) {
    display: none;
  }

  .footer-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js .hero-title .line > span {
    opacity: 1;
    transform: none;
  }

  .statement .w {
    opacity: 1;
  }
}


/* ==========================================================================
   Minimal layer: light uppercase type, bare nav, pinned ember hero
   ========================================================================== */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.display {
  font-weight: 300;
  font-stretch: 100%;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.display em {
  letter-spacing: -0.02em;
  color: var(--ember);
}

.stat-num,
.menu-list a {
  font-weight: 300;
  font-stretch: 100%;
  letter-spacing: -0.04em;
}

.statement,
.about-lead {
  font-weight: 300;
  font-stretch: 100%;
}

.btn {
  font-weight: 500;
}

/* ---------- Nav: no name, three quiet items ---------- */

.nav {
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  height: 60px;
}

.nav-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pulse {
  background: var(--ember);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  gap: clamp(18px, 2.6vw, 40px);
}

.nav-links a:not(.btn) {
  color: var(--fg);
}

.nav-links a:not(.btn)::after {
  background: var(--ember);
}

.nav-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.menu-btn {
  padding: 8px 14px;
  font-size: 0.75rem;
}

/* ---------- Hero: pinned, the page slides over it ---------- */

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0;
  background: var(--bg);
}

:where(main > section:not(.hero)) {
  position: relative;
  z-index: 2;
  background-color: var(--bg);
}

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

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 40px);
  padding-top: 84px;
  padding-bottom: clamp(18px, 2.4vw, 32px);
  will-change: transform, opacity;
}

/* Ember rings: stepped like a sunset, soft at the edges, follows the pointer */
.hero-orb {
  position: absolute;
  z-index: 0;
  left: 74%;
  top: 44%;
  width: min(118vmin, 1250px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) translate3d(var(--ox, 0px), var(--oy, 0px), 0)
    scale(var(--os, 1));
  background: radial-gradient(
    circle,
    #ffb070 0 13%,
    #ff7a33 13.5% 27%,
    #ee4219 27.5% 43%,
    #b01f0b 43.5% 59%,
    #5f0d05 59.5% 76%,
    #260502 76.5% 92%,
    transparent 92.5%
  );
  filter: blur(14px);
  will-change: transform;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(16, 16, 16, 0.72) 0%, transparent 62%),
    linear-gradient(0deg, rgba(16, 16, 16, 0.6) 0%, transparent 46%);
  pointer-events: none;
}

.hero-side {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: auto;
  padding-top: clamp(24px, 9vh, 120px);
}

.hero-list {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero-sub {
  max-width: 19em;
  text-align: right;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.3rem, 8.4vw, 9.25rem);
}

.hero-title em {
  color: var(--fg);
  font-size: 1.12em;
  line-height: 0.8;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--fg);
}

.hero-scroll {
  transition: color 0.3s ease;
}

.hero-scroll:hover {
  color: var(--ember);
}

/* ---------- Statement: words heat up from deep red to white ---------- */

.statement .w {
  opacity: 1;
  color: #4a1208;
  transition: color 0.5s ease;
}

.statement .w.near {
  color: #ff7a33;
}

.statement .w.on {
  color: var(--fg);
}

.statement em .w.on {
  color: var(--ember);
}

/* ---------- Ember shades on the darker sections ---------- */

.on-blue {
  background: radial-gradient(
      ellipse 60% 80% at 100% 0%,
      rgba(150, 26, 8, 0.38),
      transparent 70%
    ),
    var(--bg-2);
}

.contact {
  background: radial-gradient(
      ellipse 80% 70% at 50% 118%,
      rgba(240, 73, 30, 0.5),
      rgba(120, 18, 6, 0.28) 45%,
      transparent 72%
    ),
    var(--bg);
}

.service {
  transition: padding 0.5s var(--ease);
}

.service:hover {
  padding-left: 14px;
}

.service:hover h3 {
  color: var(--fg);
}

.service h3,
.case h3 {
  font-weight: 300;
}


[data-magnetic] {
  will-change: transform;
}

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

  .hero-orb {
    left: 62%;
    top: 34%;
    width: 128vmin;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(16, 16, 16, 0.86) 0%, transparent 62%);
  }

  .service:hover {
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .hero-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-sub {
    text-align: left;
  }

  .hero-title {
    font-size: 11.6vw;
  }

}

/* Parallax on single-image rows; portrait fills its frame */
.case-media .shot:only-child img {
  transition: none;
  will-change: transform;
}

.portrait img {
  object-position: 50% 30%;
  filter: none;
}

.hero-title .line {
  padding-left: 0.08em;
  margin-left: -0.08em;
}

@media (max-width: 700px) {
  .hero-title {
    font-size: 8.7vw;
  }

  .hero-orb {
    top: 50%;
    left: 66%;
  }
}

/* ==========================================================================
   Intro: vector pieces of the ember circle fly in, lock together,
   then glide into the hero circle
   ========================================================================== */

.intro {
  display: none;
}

.intro-on .intro,
.intro.is-live {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: block;
  background: var(--bg);
  cursor: progress;
  /* Failsafe: never block the page if the script does not run */
  animation: intro-failsafe 0.5s ease 5s forwards;
}

@keyframes intro-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.intro-on .hero-orb {
  opacity: 0;
  animation: intro-orb-failsafe 0.6s ease 5s forwards;
}

@keyframes intro-orb-failsafe {
  to {
    opacity: 1;
  }
}

.intro-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vmin, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  will-change: transform, filter, opacity;
}

.intro-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.intro-piece {
  transform-box: fill-box;
  transform-origin: center;
}

.intro-piece path {
  fill-opacity: 0;
  stroke: var(--ember);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.intro-piece rect {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.intro-handle line,
.intro-handle circle {
  fill: var(--bg);
  stroke: rgba(239, 237, 232, 0.55);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.intro-guide {
  fill: none;
  stroke: rgba(239, 237, 232, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.intro-foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(18px, 2.4vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.intro-count {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
