/* ==========================================================================
   Lumière Studio · Hery
   Black and white editorial portfolio. Pure CSS, no framework.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #050505;
  --mute: #666666;
  --line: #e8e8e8;
  --surface: #f5f5f5;

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 90px;
  --gutter: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  --section-pad: clamp(96px, 12vw, 176px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-lock {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

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

.on-dark ::selection {
  background: #fff;
  color: var(--ink);
}

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

.on-dark :focus-visible {
  outline-color: #fff;
}

.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: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: #fff;
}

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

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn-label {
  transition: color 0.55s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

/* Solid: black button, white wipe */
.btn-solid {
  background: var(--ink);
  color: #fff;
}

.btn-solid::before {
  background: #fff;
}

.btn-solid:hover .btn-label,
.btn-solid:focus-visible .btn-label {
  color: var(--ink);
}

/* Light: for dark sections. White button, black wipe */
.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn-light::before {
  background: var(--ink);
}

.btn-light:hover .btn-label,
.btn-light:focus-visible .btn-label {
  color: #fff;
}

.btn-large {
  padding: 24px 56px;
  font-size: 17px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  justify-self: start;
  display: inline-flex;
  color: var(--ink);
  transition: transform 0.7s var(--ease);
}

.nav-logo:hover {
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6b6b6b;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="true"] {
  background: #000;
  color: #fff;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hire {
  padding: 12px 22px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.5s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 18px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px var(--gutter) 40px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.menu ul {
  display: flex;
  flex-direction: column;
}

.menu li {
  border-bottom: 1px solid var(--line);
}

.menu li a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 13vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 640px;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg);
}

.hero-stage {
  position: relative;
  flex: 1;
}

/* Layer 0: marquee of UI screens */
.marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 10svh;
  overflow: hidden;
  pointer-events: none;
  filter: grayscale(1) blur(1px);
  opacity: 0.35;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: drift 28s linear infinite;
}

.marquee ul {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  padding-right: 24px;
}

.marquee li {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.marquee li:nth-child(odd) {
  transform: translateY(24px);
}

.marquee li:nth-child(even) {
  transform: translateY(-24px);
}

.marquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

/* Layer 1: title */
.hero-title-wrap {
  position: absolute;
  inset: 3svh 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  will-change: transform;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.75rem, 14vw, 14.5rem);
  line-height: 0.85;
  letter-spacing: -0.08em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.85em;
  overflow: hidden;
}

/* Negative tracking trims the space after the last letter and pushes centred
   text right. Padding by the same amount keeps it optically centred. */
.hero-fix,
.word-rotator {
  display: inline-block;
  padding-right: 0.08em;
}

.word-rotator-in {
  display: inline-block;
  --d: 0.1s;
}

.c {
  display: inline-block;
}

.ci {
  display: inline-block;
}

/* Layer 2: character, in front of the title's lower edge */
.hero-figure {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}

.hero-figure-img {
  width: 300px;
  height: auto;
  max-height: 64svh;
  object-fit: contain;
  object-position: bottom;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Hero footer */
.hero-foot {
  position: absolute;
  bottom: clamp(20px, 3vw, 40px);
  z-index: 30;
  font-size: 14px;
  line-height: 1.4;
}

.hero-foot-left {
  left: var(--gutter);
}

.hero-foot-name {
  font-weight: 600;
  color: var(--ink);
}

.hero-foot-role {
  color: var(--mute);
}

.hero-foot-right {
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

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

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------- Load sequence (only when JS is running) ---------- */
.js .nav {
  opacity: 0;
  transform: translateY(-14px);
}

.js.is-loaded .nav {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease 0.1s, transform 0.9s var(--ease) 0.1s;
}

.js .ci {
  transform: translateY(110%);
}

.js.is-loaded .ci {
  transform: none;
  transition: transform 0.95s var(--ease) calc(0.25s + var(--i) * 55ms);
}

.js .word-rotator-in {
  transform: translateY(110%);
}

.js.is-loaded .word-rotator-in {
  transform: none;
  transition: transform 0.6s var(--ease) var(--d);
}

.js.is-loaded .word-rotator-in.is-out {
  transform: translateY(-110%);
  transition: transform 0.45s cubic-bezier(0.55, 0, 0.9, 0.4);
}

.js.is-loaded .word-rotator-in.is-pre {
  transform: translateY(110%);
  transition: none;
}

.js .hero-figure-load {
  opacity: 0;
  transform: translateY(8%);
}

.js.is-loaded .hero-figure-load {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s ease 0.55s, transform 1.4s var(--ease) 0.55s;
}

.js .marquee {
  opacity: 0;
}

.js.is-loaded .marquee {
  opacity: 0.35;
  transition: opacity 1.8s ease 0.3s;
}

.js .hero-foot {
  opacity: 0;
}

.js.is-loaded .hero-foot {
  opacity: 1;
  transition: opacity 1s ease 1.2s;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-pad);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 96px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.section-head p:first-child {
  color: var(--ink);
  font-weight: 600;
}

.section-head p:last-child {
  color: var(--mute);
  text-align: right;
}

.display {
  max-width: 14em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.6vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

/* ---------- Reveal and text animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal-img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}

.js .reveal-img.in {
  clip-path: inset(0 0 0 0);
}

.js [data-split] .w {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.js [data-split] .wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

.js [data-split].in .wi {
  transform: none;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

.portrait {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.portrait-float {
  animation: float-soft 6s ease-in-out infinite;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.portrait-frame img {
  --s: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: var(--s);
  transition: scale 0.9s var(--ease);
}

.portrait-frame:hover img {
  --s: 1.05;
}

/* Fallback when assets/about.png is missing: crop the hero illustration */
.portrait-frame img.is-fallback {
  --s: 1.75;
  object-position: 48% 0;
  transform-origin: 48% 9%;
}

.portrait-frame:hover img.is-fallback {
  --s: 1.82;
}

.portrait figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.portrait figcaption span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.portrait figcaption span:last-child {
  font-size: 14px;
  color: var(--mute);
}

.about-content .display {
  max-width: 13em;
  font-size: clamp(2.4rem, 4.8vw, 4.9rem);
  letter-spacing: -0.05em;
}

.lead {
  margin-top: clamp(40px, 5vw, 72px);
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.prose {
  margin-top: 8px;
}

.prose p {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.75;
}

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

.fact-group {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 3fr);
  gap: 16px 32px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.fact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.roles li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.roles li:first-child {
  padding-top: 0;
}

.roles li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.role-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  letter-spacing: -0.025em;
}

.role-note {
  color: var(--mute);
  font-size: 15px;
}

.stack-rows > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  padding-block: 10px;
}

.stack-rows > div:first-child {
  padding-top: 0;
}

.stack-rows > div:last-child {
  padding-bottom: 0;
}

.stack-rows dt {
  color: var(--mute);
  font-size: 14px;
}

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

.pills li {
  padding: 8px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pills li:hover {
  background: var(--ink);
  color: #fff;
}

.statement {
  margin-top: clamp(64px, 8vw, 112px);
  max-width: 30rem;
  padding-left: 20px;
  border-left: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ---------- Work ---------- */
.work-title {
  max-width: 11em;
  margin-bottom: clamp(64px, 9vw, 128px);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.project + .project {
  margin-top: clamp(80px, 10vw, 160px);
}

.project-flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.project-flip .project-media {
  order: 2;
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.project-media img {
  --s: 1.14;
  --hover: 1.2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  scale: var(--s);
  will-change: transform;
  transition: filter 0.9s ease, scale 1.2s var(--ease);
}

.project:hover .project-media img {
  --s: var(--hover);
  filter: grayscale(0) contrast(1);
}

.project-type {
  margin-bottom: 16px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
}

.project-name {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-desc {
  max-width: 30rem;
  color: var(--mute);
  line-height: 1.7;
}

.project-meta {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.project-meta > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.project-meta dt {
  color: var(--mute);
  font-size: 14px;
}

.project-meta dd {
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Services ---------- */
.service-list {
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.service {
  --pad-x: clamp(0px, 1.7vw, 24px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
  /* Clip the hover wipe vertically, but let it bleed past the gutters. */
  clip-path: inset(0 calc(var(--pad-x) * -1));
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--pad-x) * -1);
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}

.service-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.045em;
  transition: color 0.5s var(--ease);
}

.service-desc {
  color: var(--mute);
  line-height: 1.65;
  transition: color 0.5s var(--ease);
}

.service-items {
  display: grid;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.5s var(--ease);
}

@media (hover: hover) {
  .service:hover::before {
    transform: translateY(0);
  }

  .service:hover .service-name,
  .service:hover .service-items {
    color: #fff;
  }

  .service:hover .service-desc {
    color: #b8b8b8;
  }
}

/* ---------- Contact ---------- */
.on-dark {
  --line: rgba(255, 255, 255, 0.18);
  --mute: #a6a6a6;
  background: var(--ink);
  color: #fff;
}

.contact .section-head p:first-child {
  color: #fff;
}

.contact-title {
  max-width: 10.5em;
  font-size: clamp(3rem, 9.4vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: clamp(56px, 7vw, 112px);
}

.contact-copy {
  max-width: 26rem;
  color: var(--mute);
  line-height: 1.7;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.contact-number {
  font-size: 15px;
  font-weight: 500;
  color: var(--mute);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-number:hover {
  color: #fff;
  border-color: #fff;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  font-size: 14px;
  color: var(--mute);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-top {
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.footer-top:hover {
  border-color: #fff;
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .marquee li {
    width: 420px;
  }

  .hero-title-wrap {
    top: 4svh;
  }

  .hero-figure-img {
    width: 600px;
  }
}

@media (min-width: 1100px) {
  .marquee li {
    width: 480px;
  }

  .marquee ul {
    gap: 32px;
    padding-right: 32px;
  }

  .hero-figure-img {
    width: 680px;
  }
}

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

  .portrait {
    position: static;
    max-width: 460px;
  }

  .project,
  .project-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .project-flip .project-media {
    order: 0;
  }

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

  .service-name {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .menu {
    display: flex;
  }
}

@media (max-width: 699px) {
  :root {
    --nav-h: 76px;
  }

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

  .hero-figure-img {
    width: 360px;
  }

  .hero-foot {
    display: none;
  }

  .hero-title-wrap {
    top: 6svh;
  }

  .section-head p:last-child {
    display: none;
  }

  .fact-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-rows > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-meta > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

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

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

  .contact-cta {
    align-items: stretch;
  }

  .btn-large {
    padding: 22px 24px;
  }

  .contact-number {
    align-self: flex-start;
  }

  .footer-mid {
    display: none;
  }
}

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

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

  .js .reveal,
  .js .reveal-img,
  .js .nav,
  .js .ci,
  .js .word-rotator-in,
  .js .hero-figure-load,
  .js .hero-foot,
  .js [data-split] .wi {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .js .marquee {
    opacity: 0.35 !important;
  }
}

.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.nav-logo:hover img {
  transform: scale(1.08);
}


.nav-logo img {
}

.nav-logo:hover img {
}


.nav-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}


.nav-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-logo:hover img {
  transform: scale(1.05);
}


.tools-section {
  padding: 70px 0;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.tools-section p {
  font-size: 12px;
  letter-spacing: 5px;
  color: #777;
  margin-bottom: 35px;
}

.tools-marquee {
  overflow: hidden;
  width: 100%;
}

.tools-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.tools-track span {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #111;
  opacity: .75;
  transition: .3s;
}

.tools-track span:hover {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


.tools-track img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: inline-block;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

