/* KSCoolDesign hero
   .hero-track (tall) > .hero (sticky, 100svh)
   Layers inside .hero: bgwide (ultrawide) > stage (video / canvas) > glow > dust > grain > panels > hint/progress */

:root {
  --bg: #0b0908;
  --bg-2: #14100e;
  --red: #d2402a;
  --red-2: #b8321f;
  --orange: #ef6a2c;
  --text: #f7f1ec;
  --muted: rgba(247, 241, 236, 0.74);
  --line: rgba(247, 241, 236, 0.16);
  --glass: rgba(255, 236, 226, 0.08);
  --glass-line: rgba(255, 236, 226, 0.22);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 3.4vw, 64px);
  --header-h: clamp(68px, 9vh, 104px);

  /* Fluid type, capped by height too so ultrawide screens don't blow it up */
  --fs-hero: clamp(2.4rem, min(6.2vw, 11.5vh), 8.4rem);
  --fs-h2: clamp(1.6rem, min(2.5vw, 5vh), 3rem);
  --fs-body: clamp(0.95rem, 0.86rem + 0.3vw, 1.125rem);
  --fs-small: clamp(0.75rem, 0.72rem + 0.15vw, 0.9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute !important;
  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: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: clamp(38px, 3vw, 48px); aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, #f0573a, var(--red-2));
  box-shadow: 0 6px 20px rgba(210, 64, 42, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 900; font-size: clamp(0.85rem, 0.7rem + 0.3vw, 1.05rem); letter-spacing: -0.02em;
}
.brand__name { font-weight: 800; font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.6rem); letter-spacing: -0.02em; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.btn-connect {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 clamp(18px, 1.6vw, 28px);
  border-radius: 999px; background: #fff; color: #17110e;
  font-weight: 600; font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.05rem); text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn-connect:hover { transform: translateY(-1px); background: #ffe9df; }
.btn-menu {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  cursor: pointer;
}
.btn-menu__lines, .btn-menu__lines::before {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.btn-menu__lines { position: relative; transform: translateY(-3px); }
.btn-menu__lines::before { content: ""; position: absolute; top: 7px; }
.btn-menu[aria-expanded="true"] .btn-menu__lines { transform: translateY(0) rotate(45deg); }
.btn-menu[aria-expanded="true"] .btn-menu__lines::before { transform: translateY(-7px) rotate(-90deg); }

.site-menu {
  position: fixed; z-index: 55; inset: 0;
  display: grid; place-items: center;
  background: rgba(11, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-menu[hidden] { display: none; }
.site-menu ul { display: grid; gap: clamp(6px, 1.5vh, 16px); text-align: center; }
.site-menu a {
  font-size: clamp(2rem, min(6vw, 8vh), 4.4rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; text-decoration: none; line-height: 1.1;
}
.site-menu a:hover { color: var(--orange); }

/* ---------- Buttons (lower sections) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.7em 1.4em; border-radius: 999px;
  background: var(--red); color: var(--text); border: 1px solid var(--red);
  font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.03em; text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(247, 241, 236, 0.35); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.eyebrow {
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange);
}

/* ---------- Hero ---------- */
.hero-track { position: relative; height: calc(100vh + var(--track, 0px)); height: calc(100svh + var(--track, 0px)); }

.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; background: var(--bg); isolation: isolate;
}

.hero__bgwide {
  display: none; position: absolute; inset: 0;
  background: var(--bg) url("../assets/img/background-wide.webp") center / cover no-repeat;
}
.hero__bgwide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 120% at 50% 50%, transparent 40%, rgba(11, 9, 8, 0.5) 100%);
}

.hero__stage { position: absolute; inset: 0; overflow: hidden; }
.hero__video, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; object-position: 50% 50%; }
.hero__canvas { opacity: 0; }
.hero.is-canvas .hero__canvas { opacity: 1; }
.hero.is-canvas .hero__video { visibility: hidden; }

/* Ultrawide: full-height 16:9 frame in the middle, wide room on the sides */
@media (min-aspect-ratio: 21/10) {
  .hero__bgwide { display: block; }
  .hero__stage {
    left: 50%; right: auto; width: auto; height: 100%;
    aspect-ratio: 16 / 9; transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  }
}

/* Atmosphere */
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 65% 60% at 0% 100%, rgba(210, 64, 42, 0.45) 0%, rgba(239, 106, 44, 0.14) 42%, transparent 72%);
  mix-blend-mode: screen; transform-origin: 0% 100%;
  animation: glow-pulse 6s ease-in-out infinite; will-change: opacity, transform;
}
@keyframes glow-pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grain {
  position: absolute; inset: -8%; pointer-events: none; opacity: 0.06;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite; will-change: transform;
}
@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); }
}

/* ---------- Panels (opacity/transform driven by scroll in hero.js) ---------- */
.panel {
  position: absolute; inset: 0;
  padding: calc(var(--header-h) + 1vh) var(--gutter) clamp(28px, 5vh, 56px);
  opacity: 0; visibility: hidden; pointer-events: none;
  will-change: opacity, transform;
}
.panel.is-on { visibility: visible; }
.panel.is-on > * { pointer-events: auto; }
.no-js .panel--home { opacity: 1; visibility: visible; }

/* Legibility wash behind each panel; fades with it */
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  transition: opacity 0.8s ease;
}
.hero.is-intro .panel::before { opacity: 0; }
.panel--home::before {
  background:
    linear-gradient(90deg, rgba(11, 9, 8, 0.72) 0%, rgba(11, 9, 8, 0.25) 36%, transparent 52%),
    linear-gradient(270deg, rgba(11, 9, 8, 0.5) 0%, transparent 34%),
    linear-gradient(0deg, rgba(11, 9, 8, 0.55) 0%, transparent 30%);
}
.panel--left::before  { background: linear-gradient(90deg, rgba(11, 9, 8, 0.8), rgba(11, 9, 8, 0.35) 45%, transparent 62%); }
.panel--right::before { background: linear-gradient(270deg, rgba(11, 9, 8, 0.8), rgba(11, 9, 8, 0.35) 45%, transparent 62%); }
.panel--work::before  { background: linear-gradient(0deg, rgba(11, 9, 8, 0.88) 0%, rgba(11, 9, 8, 0.45) 48%, transparent 76%); }

/* Intro reveal for the home panel (one-off, after the intro video) */
.panel--home .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.hero.is-revealed .panel--home .reveal { opacity: 1; transform: none; }
.hero.is-revealed .panel--home .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero.is-revealed .panel--home .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero.is-revealed .home__cards .reveal:nth-child(1) { transition-delay: 0.2s; }
.hero.is-revealed .home__cards .reveal:nth-child(2) { transition-delay: 0.3s; }
.hero.is-revealed .home__cards .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero.is-revealed .explore.reveal { transition-delay: 0.35s; }

/* Home: headline left, circle CTA centre-bottom, glass cards right */
.panel--home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 2vw;
}
.home__left {
  grid-column: 1; grid-row: 1 / span 2; align-self: center;
  display: flex; flex-direction: column; gap: clamp(12px, 2.4vh, 30px);
  max-width: min(36vw, 740px);
  margin-top: -2vh;
}
.tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: clamp(7px, 1.1vh, 10px) clamp(14px, 1.2vw, 20px); border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: clamp(0.78rem, min(0.72rem + 0.25vw, 1.8vh), 1.05rem); font-weight: 500;
}
.home__title {
  font-size: clamp(2.1rem, min(5.1vw, 10.5vh), 8rem); font-weight: 800; line-height: 0.95;
  letter-spacing: -0.02em; text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.home__lead {
  max-width: 34ch;
  font-size: clamp(0.8rem, min(0.75rem + 0.3vw, 1.9vh), 1.1rem); font-weight: 600;
  line-height: 1.45; letter-spacing: 0.02em; text-transform: uppercase;
}

.explore {
  grid-column: 2; grid-row: 2; justify-self: center; align-self: end;
  display: grid; place-items: center; align-content: center; gap: 8px;
  width: clamp(104px, min(10vw, 18vh), 184px); aspect-ratio: 1; border-radius: 50%;
  margin-bottom: clamp(0px, 1.6vh, 20px);
  background: rgba(30, 22, 18, 0.35); border: 1px solid var(--glass-line);
  box-shadow: 0 0 0 10px rgba(255, 236, 226, 0.05);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  text-align: center; text-decoration: none;
  font-weight: 600; font-size: clamp(0.76rem, min(0.68rem + 0.3vw, 1.9vh), 1.1rem); line-height: 1.2;
}
.explore__icon { display: grid; place-items: center; }
.explore:hover { background: rgba(210, 64, 42, 0.45); }
.hero.is-revealed .explore.reveal { transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), background-color 0.3s ease; }

.home__cards {
  grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: center;
  display: flex; flex-direction: column; gap: clamp(8px, 1.4vh, 18px);
  width: min(26vw, 400px);
}
.glass {
  position: relative;
  padding: clamp(11px, 1.8vh, 22px) clamp(14px, 1.3vw, 24px);
  border-radius: clamp(16px, 2vh, 22px);
  background: linear-gradient(160deg, rgba(255, 236, 226, 0.14), rgba(255, 236, 226, 0.04));
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.glass__head { display: flex; align-items: center; gap: clamp(8px, 0.8vw, 12px); margin-bottom: clamp(4px, 1vh, 12px); }
.glass__icon {
  display: grid; place-items: center; width: clamp(24px, 2.8vh, 32px); height: clamp(24px, 2.8vh, 32px); border-radius: 8px;
  border: 1px solid var(--glass-line); font-size: clamp(0.72rem, 1.4vh, 0.85rem); flex-shrink: 0;
}
.glass__title { font-size: clamp(0.84rem, min(0.8rem + 0.3vw, 2.1vh), 1.15rem); font-weight: 600; }
.glass__big { font-size: clamp(1.15rem, min(1.8vw, 3.2vh), 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.glass__text { margin-top: clamp(4px, 0.7vh, 8px); color: var(--muted); font-size: clamp(0.72rem, min(0.7rem + 0.15vw, 1.65vh), 0.88rem); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: clamp(5px, 0.8vh, 8px); margin-top: clamp(6px, 1vh, 12px); }
.chip {
  padding: clamp(3px, 0.5vh, 5px) clamp(8px, 0.7vw, 12px); border-radius: 999px;
  font-size: clamp(0.66rem, min(0.64rem + 0.12vw, 1.5vh), 0.82rem); font-weight: 600;
  background: rgba(255, 236, 226, 0.1); border: 1px solid var(--glass-line);
}

/* About / Services / Walk (Experience) */
.panel--left, .panel--right { display: flex; align-items: center; }
.panel--right { justify-content: flex-end; }
.glass--panel {
  width: min(40vw, 600px);
  display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 16px);
  padding: clamp(18px, 2.6vh, 34px) clamp(18px, 2vw, 36px);
}
.panel-title { font-size: var(--fs-h2); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.glass--panel > p:not(.eyebrow) { color: var(--muted); }
.about__lead {
  font-size: clamp(1rem, min(1.2vw, 2.2vh), 1.24rem);
  font-weight: 600; color: var(--text) !important; line-height: 1.38;
}
.about__body {
  font-size: clamp(0.86rem, min(0.82rem + 0.22vw, 1.8vh), 1.02rem);
  line-height: 1.5;
}
.facts-pills {
  display: flex; flex-wrap: wrap; gap: clamp(6px, 0.8vh, 8px);
  margin-top: 2px; padding-top: clamp(10px, 1.6vh, 14px);
  border-top: 1px solid var(--line);
}
.about__actions { margin-top: 2px; display: flex; align-items: center; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px);
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats dd { font-size: clamp(1.5rem, min(2.4vw, 4.6vh), 2.6rem); font-weight: 800; line-height: 1; }
.stats dt { font-size: var(--fs-small); color: var(--muted); line-height: 1.35; }
.facts {
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--text); font-weight: 600; line-height: 1.5;
}

/* Services 2-column grid on desktop */
.glass--services {
  width: min(48vw, 740px);
  padding: clamp(14px, 2vh, 26px) clamp(16px, 1.8vw, 28px);
  gap: clamp(8px, 1.2vh, 14px);
}
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, 1vh, 12px);
}
.service-card {
  display: flex; flex-direction: column; gap: clamp(3px, 0.6vh, 6px);
  padding: clamp(8px, 1.2vh, 14px) clamp(10px, 1.1vw, 16px);
  border-radius: 14px;
  background: rgba(255, 236, 226, 0.05);
  border: 1px solid var(--glass-line);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease);
}
.service-card__head { display: flex; align-items: center; gap: 8px; }
.service-card__num {
  font-size: clamp(0.68rem, 1.25vh, 0.8rem); font-weight: 800;
  letter-spacing: 0.08em; color: var(--orange); flex-shrink: 0;
}
.service-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); opacity: 0.88; flex-shrink: 0;
}
.services__name {
  font-weight: 700;
  font-size: clamp(0.82rem, min(0.78rem + 0.22vw, 1.65vh), 1.02rem);
  line-height: 1.2; flex: 1;
}
.service-card__arrow {
  color: var(--muted); font-size: 0.92rem; line-height: 1; flex-shrink: 0;
  transition: transform 0.28s var(--ease), color 0.28s var(--ease);
}
.services__desc {
  display: block; color: var(--muted);
  font-size: clamp(0.68rem, min(0.64rem + 0.12vw, 1.35vh), 0.8rem);
  line-height: 1.34;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: rgba(255, 236, 226, 0.09);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 16px rgba(239, 106, 44, 0.32);
}
.service-card:hover .service-card__arrow {
  transform: translate(3px, -3px);
  color: var(--orange);
}

/* Walk screen: experience timeline panel */
.panel--work {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end;
  padding-bottom: clamp(14px, 2.2vh, 28px);
}
.glass--work {
  width: 100%; max-width: none;
  height: auto; max-height: none;
  display: flex; flex-direction: column;
  padding: clamp(16px, 2.2vh, 26px) clamp(16px, 1.8vw, 28px);
  gap: clamp(8px, 1.2vh, 14px);
  box-sizing: border-box;
}
.glass--work__head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  flex-shrink: 0;
}
.glass--work__head .panel-title {
  font-size: clamp(1.2rem, min(1.8vw, 2.6vh), 1.7rem);
}
.timeline {
  --row-gap: clamp(20px, 2.6vh, 28px);
  --col-gap: clamp(10px, 1.2vw, 18px);
  --pt: clamp(14px, 2vh, 20px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  row-gap: var(--row-gap);
  column-gap: var(--col-gap);
  margin-top: var(--pt);
  padding: 0;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red), rgba(239, 106, 44, 0.35));
  box-shadow: 0 0 12px rgba(239, 106, 44, 0.7);
  border-radius: 2px;
  pointer-events: none;
}
.timeline::before {
  top: -11px;
}
.timeline::after {
  top: calc(50% + (var(--row-gap) / 2) - 11px);
}
.timeline__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(4px, 0.7vh, 8px);
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(12px, 1.6vh, 18px) clamp(12px, 1.1vw, 18px);
  border-radius: 14px;
  background: rgba(255, 236, 226, 0.04);
  border: 1px solid rgba(255, 236, 226, 0.14);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.32s var(--ease) calc(var(--i, 0) * 35ms),
    transform 0.32s var(--ease) calc(var(--i, 0) * 35ms),
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.timeline__logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 158px;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
  margin-bottom: 2px;
  flex-shrink: 0;
}
.timeline__logo--initials {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(239, 106, 44, 0.16);
  border: 1px solid rgba(239, 106, 44, 0.48);
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.hero-debug-frame {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9998;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(11, 9, 8, 0.85);
  border: 1px solid rgba(239, 106, 44, 0.55);
  color: #f7f1ec;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.panel--work.is-entered .timeline__item {
  opacity: 1;
  transform: translateY(0);
}
.panel--work.is-entered .timeline__item:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: rgba(255, 236, 226, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 14px rgba(239, 106, 44, 0.3);
  transition-delay: 0s;
}
.timeline__dot {
  position: absolute;
  top: -15px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--orange), 0 0 18px rgba(239, 106, 44, 0.85);
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline__years {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 106, 44, 0.16);
  border: 1px solid rgba(239, 106, 44, 0.48);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.3;
}
.timeline__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--red);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  box-shadow: 0 0 8px rgba(210, 64, 42, 0.55);
}
.timeline__role {
  font-size: clamp(16px, min(1.05vw, 2.1vh), 19px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.24;
}
.timeline__company {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.25;
}

/* Scroll hint (left, vertical) + progress (bottom) */
.scroll-hint {
  position: absolute; left: max(8px, calc(var(--gutter) * 0.28)); bottom: clamp(24px, 5vh, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(247, 241, 236, 0.85); pointer-events: none;
  transition: opacity 0.5s ease;
}
.scroll-hint__text { writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-hint__dots { display: grid; grid-template-columns: repeat(2, 4px); gap: 6px; }
.scroll-hint__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.scroll-hint__chev { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero.is-intro .scroll-hint, .hero.is-moving .scroll-hint { opacity: 0; }

.hero__progress {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: min(160px, 30vw); height: 2px; border-radius: 2px;
  background: rgba(247, 241, 236, 0.18); overflow: hidden; pointer-events: none;
  transition: opacity 0.4s ease;
}
.hero__progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.hero.is-intro .hero__progress { opacity: 0; }

/* ---------- Portrait / tablet & phone ---------- */
@media (max-aspect-ratio: 1/1) {
  :root { --header-h: 64px; }
  .btn-connect { min-height: 40px; font-size: 0.82rem; padding: 0 15px; }
  .btn-menu { width: 42px; height: 42px; }
  .brand__name { display: none; }

  .panel { padding: var(--header-h) var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .panel--home {
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: clamp(5px, 0.9vh, 12px);
  }
  .panel--home::before { background: linear-gradient(0deg, rgba(11, 9, 8, 0.96) 0%, rgba(11, 9, 8, 0.78) 36%, transparent 52%); }
  .home__left { order: 1; max-width: none; margin: 0; gap: clamp(3px, 0.6vh, 8px); }
  .tag { font-size: clamp(0.62rem, 1.2vh, 0.78rem); padding: clamp(3px, 0.5vh, 6px) clamp(9px, 1.4vw, 13px); gap: 5px; }
  .home__title { font-size: clamp(1.35rem, min(5.8vw, 2.85vh), 2.4rem); line-height: 0.93; }
  .home__lead { font-size: clamp(0.6rem, min(1.6vw, 1.2vh), 0.8rem); line-height: 1.26; max-width: none; }

  .home__cards {
    order: 2; width: 100%;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(5px, 0.8vh, 10px);
  }
  .home__cards .glass--stack { grid-column: 1 / -1; }
  .home__cards .glass {
    padding: clamp(6px, 0.95vh, 12px) clamp(8px, 1.4vw, 14px);
    border-radius: clamp(10px, 1.4vh, 16px);
  }
  .home__cards .glass__head { gap: 5px; margin-bottom: clamp(2px, 0.4vh, 5px); }
  .home__cards .glass__icon { width: clamp(16px, 2vh, 24px); height: clamp(16px, 2vh, 24px); font-size: clamp(0.55rem, 1.1vh, 0.72rem); border-radius: 5px; }
  .home__cards .glass__title { font-size: clamp(0.64rem, min(1.7vw, 1.3vh), 0.88rem); }
  .home__cards .glass__big { font-size: clamp(0.84rem, min(3.2vw, 1.85vh), 1.3rem); }
  .home__cards .glass__text { font-size: clamp(0.56rem, min(1.4vw, 1.1vh), 0.74rem); line-height: 1.2; margin-top: 2px; }
  .home__cards .chips { gap: clamp(3px, 0.45vh, 5px); margin-top: clamp(3px, 0.5vh, 6px); }
  .home__cards .chip { padding: 2px clamp(5px, 0.9vw, 9px); font-size: clamp(0.52rem, min(1.35vw, 1.05vh), 0.7rem); }

  .explore {
    order: 3;
    width: auto; aspect-ratio: auto; border-radius: 999px; margin: 0;
    grid-auto-flow: column; gap: 6px;
    padding: clamp(5px, 0.75vh, 9px) clamp(12px, 2vw, 18px);
    justify-self: start; align-self: flex-start;
    font-size: clamp(0.66rem, 1.25vh, 0.84rem);
    box-shadow: none;
  }
  .explore__icon svg { width: 16px; height: 16px; }
  .explore__label br { display: none; }

  .panel--left, .panel--right { align-items: flex-end; justify-content: stretch; }
  .panel--left::before, .panel--right::before { background: linear-gradient(0deg, rgba(11, 9, 8, 0.95) 0%, rgba(11, 9, 8, 0.6) 48%, transparent 72%); }
  .glass--panel { width: 100%; max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; padding: clamp(12px, 1.8vh, 20px); gap: clamp(6px, 1vh, 10px); }
  .glass--panel > p:not(.eyebrow) { font-size: clamp(0.78rem, 1.4vh, 0.92rem); }
  .about__lead { font-size: clamp(0.86rem, 1.6vh, 1.02rem); }
  .services { grid-template-columns: 1fr; gap: 6px; }
  .service-card { padding: 8px 10px; gap: 3px; }
  .services__name { font-size: 0.82rem; }
  .services__desc { display: block; font-size: 0.7rem; line-height: 1.3; }
  .stats dd { font-size: 1.5rem; }
  .scroll-hint { display: none; }

  .glass--work {
    height: clamp(330px, 42vh, 440px);
    max-height: none;
    padding: 12px 14px;
    gap: 8px;
    overflow: hidden;
  }
  .glass--work__head .panel-title { font-size: 1.15rem; }
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding-top: 4px;
    padding-left: 20px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
  }
  .timeline::before {
    left: 4px; right: auto; top: 4px; bottom: 4px;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--orange), var(--red), rgba(239, 106, 44, 0.35));
  }
  .timeline::after { display: none; }
  .timeline__item {
    height: auto;
    padding: 10px 12px;
    gap: 4px;
    flex-shrink: 0;
  }
  .timeline__dot {
    top: 14px; left: -20px;
    width: 9px; height: 9px;
  }
  .timeline__years { font-size: 12px; }
  .timeline__badge { font-size: 10px; }
  .timeline__role { font-size: 16px; }
  .timeline__company { font-size: 14px; }
}

/* Short landscape screens (1366x768 laptops, phones on their side) */
/* When 3 stacked cards would be tight vertically, put Upwork & Experience side-by-side and Core stack full-width below */
@media (min-aspect-ratio: 1/1) and (max-height: 780px) {
  .home__cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(31vw, 420px); gap: 10px;
  }
  .home__cards .glass--stack { grid-column: 1 / -1; }
  .glass--work {
    height: auto;
    padding: 14px 18px;
    gap: 6px;
  }
  .timeline {
    --row-gap: 18px;
    --col-gap: 10px;
    --pt: 14px;
  }
  .timeline__item {
    padding: 10px 12px;
    gap: 3px;
  }
  .timeline__role { font-size: clamp(15px, 1.9vh, 17px); }
  .timeline__company { font-size: clamp(13px, 1.65vh, 14px); }
}
@media (min-aspect-ratio: 1/1) and (max-height: 640px) {
  .explore { display: none; }
}
/* Narrow landscape: keep cards compact so they never crowd the face; 2 columns below 1100px */
@media (min-aspect-ratio: 1/1) and (max-width: 1100px) {
  .home__cards { width: min(30vw, 330px); }
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    overflow-y: auto;
  }
  .timeline::after { display: none; }
}

/* ---------- Booking Modal ---------- */
html.is-modal-open, html.is-modal-open body { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(11, 9, 8, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(960px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(16px, 2.2vh, 24px);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.modal__title { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; }
.modal__close {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-line);
  cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal__close:hover { background: var(--red); border-color: var(--red); }
.modal__iframe {
  display: block; width: 100%; height: min(80vh, 700px);
  border: 0; border-radius: 12px; background: #fff;
}

/* ---------- Sections after the hero ---------- */
.work { position: relative; z-index: 2; background: var(--bg); }
.work::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: clamp(80px, 16vh, 180px); background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.work { padding: 0; }
.work:focus, .contact:focus, .panel:focus { outline: none; }
.section-head { margin-bottom: clamp(28px, 5vh, 56px); display: grid; gap: 10px; }
.section-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

/* Sticky-pinned fanned steps scrub (Portfolio) */
.work__track {
  min-height: 680vh;
  position: relative;
}
.work__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 58%, rgba(210, 64, 42, 0.16) 0%, rgba(239, 106, 44, 0.05) 48%, transparent 75%),
    var(--bg);
}
.work__head {
  position: absolute;
  top: calc(var(--header-h) + clamp(12px, 2.2vh, 28px));
  left: var(--gutter);
  z-index: 200;
  display: grid;
  gap: 6px;
  pointer-events: none;
}
.work__fan {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.work-step {
  --card-w: min(340px, 76vw);
}
@media (max-width: 760px) {
  .work-step {
    --card-w: min(295px, 80vw);
  }
}
.work-step {
  --notch-y: calc(var(--card-w) * 0.625);
  position: absolute;
  width: var(--card-w);
  background: #fbf7f0;
  color: #14100e;
  border-radius: 12px;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
  -webkit-mask:
    radial-gradient(circle 11px at 0 var(--notch-y), transparent 98%, #000 100%),
    radial-gradient(circle 11px at 100% var(--notch-y), transparent 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 11px at 0 var(--notch-y), transparent 98%, #000 100%),
    radial-gradient(circle 11px at 100% var(--notch-y), transparent 98%, #000 100%);
  mask-composite: intersect;
}
.work-step__media {
  aspect-ratio: 16 / 10;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 95%, rgba(210, 64, 42, 0.48), transparent 62%),
    linear-gradient(135deg, #241914 0%, #120e0c 100%);
  color: rgba(247, 241, 236, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.work-step__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease);
}
.work-step:hover .work-step__media img {
  transform: scale(1.03);
}
.work-step__body {
  padding: 1.15rem 1.35rem 1.1rem;
}
.work-step__num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
}
.work-step h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.3rem 0 0.42rem;
  color: #14100e;
}
.work-step h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.work-step h3 a:hover {
  color: var(--red);
}
.work-step p {
  font-size: 0.86rem;
  line-height: 1.44;
  color: rgba(20, 16, 14, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-step__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.9rem;
  padding-top: 0.72rem;
  border-top: 1px dashed rgba(20, 16, 14, 0.28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 16, 14, 0.62);
}
.work-step__foot a {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.work-step__foot a:hover {
  text-decoration: underline;
}
.work__bottom {
  position: absolute;
  bottom: clamp(1.25rem, 3.6vh, 2.4rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vh, 32px);
  z-index: 200;
}
.work__all-btn {
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.9rem;
  box-shadow: 0 10px 28px rgba(210, 64, 42, 0.38);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.work__all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(239, 106, 44, 0.5);
}
.work__progress {
  width: min(280px, 60vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(247, 241, 236, 0.22);
  overflow: hidden;
}
.work__progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
}

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-up.is-in { opacity: 1; transform: none; }

/* ---------- Testimonials / Client Feedback (Gravity Design Architecture) ---------- */
.testi-track {
  position: relative;
  z-index: 10;
  width: 100%;
  background: #fa6536;
  box-shadow: 0 32px 72px -12px rgba(0, 0, 0, 0.75);
}

.testimonials {
  position: relative;
  min-height: clamp(640px, 88vh, 880px);
  padding: clamp(70px, 10vh, 120px) 0;
  overflow: hidden;
  background-color: #f75c2e;
  background-image:
    radial-gradient(circle at 20% 35%, #ff784a 0%, rgba(247, 92, 46, 0) 55%),
    radial-gradient(circle at 80% 65%, #e04719 0%, rgba(224, 71, 25, 0) 65%),
    linear-gradient(145deg, #fa6536 0%, #ee5120 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 5;
}

@media (max-width: 1024px) {
  .testimonials {
    min-height: auto;
    padding: clamp(60px, 8vh, 90px) 0;
  }
}

/* Ambient Orbit Constellation (SVG) */
.testi__orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.testi__constellation {
  position: absolute;
  left: 36%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(130vh, 1280px, 95vw);
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: visible;
}

.testi__cn-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.testi__cn-plexus line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

/* Orbit Track Rotations */
@keyframes testi-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.testi__cn-track {
  transform-origin: 0 0;
}
.testi__cn-track--1 { animation: testi-spin 42s linear infinite; }
.testi__cn-track--2 { animation: testi-spin 56s linear infinite reverse; }
.testi__cn-track--3 { animation: testi-spin 72s linear infinite; }
.testi__cn-track--4 { animation: testi-spin 88s linear infinite reverse; }

/* Company logos directly in orbits: no background pill, 70% opacity */
.testi__orbit-logo {
  opacity: 0.70;
  filter: brightness(1.2) contrast(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.testi__orbit-logo:hover {
  opacity: 1;
  filter: brightness(1.3) contrast(1.15) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Container & Columns */
.testi__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding-left: clamp(32px, 6vw, 100px);
  padding-right: 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 1024px) {
  .testi__container {
    grid-template-columns: 1fr;
    padding-left: clamp(24px, 4vw, 48px);
    padding-right: clamp(24px, 4vw, 48px);
    gap: 36px;
  }
}

/* Left Editorial: Static clean layout, never fades or shifts on scroll */
.testi__editorial {
  display: grid;
  gap: 18px;
  transform: none !important;
  opacity: 1 !important;
}

.testi__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.testi__headline {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
}
.testi__headline-sub {
  color: #fff1eb;
  font-weight: 500;
  opacity: 0.95;
}
.testi__desc {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: #ffe6dc;
  max-width: 48ch;
  margin: 0;
}
.testi__badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 18px;
  border-radius: 999px;
  width: fit-content;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}
.testi__badge-stars {
  color: #ffda6a;
  letter-spacing: 2px;
}

/* Right Column: Sliding in from the right edge with flush/square right side */
.testi__slider-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* Card slide-in from right edge, right corners 0 radius */
@keyframes testi-slide-from-right {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.testi__card {
  position: relative;
  width: 100%;
  max-width: 760px;
  min-height: 480px; /* Stable fixed minimum height so card never resizes or jumps between slides */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #110e0c;
  background: linear-gradient(155deg, rgba(26, 21, 18, 0.97) 0%, rgba(11, 9, 8, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: none; /* Flush with right edge */
  border-radius: 28px 0 0 28px; /* Left side rounded, right side NO radius */
  padding: clamp(32px, 4.5vw, 54px);
  padding-right: clamp(40px, 5vw, 70px);
  color: #ffffff;
  box-shadow:
    -20px 30px 80px rgba(0, 0, 0, 0.45),
    -4px 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  will-change: transform, opacity;
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.testi__card.is-in-view {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .testi__card {
    min-height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: clamp(24px, 4vw, 36px);
    transform: translateY(30px);
  }
  .testi__card.is-in-view {
    transform: translateY(0);
  }
}

.testi__quote-icon {
  position: absolute;
  top: 14px;
  right: 28px;
  font-size: 7.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.testi__track {
  display: grid;
  grid-template-areas: "slide";
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 290px;
}

.testi__slide {
  grid-area: slide;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(45px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.testi__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.testi__slide.slide-out-left {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(-50px);
}
.testi__slide.slide-out-right {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(50px);
}
.testi__slide.slide-in-left {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(-50px);
}
.testi__slide.slide-in-right {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(50px);
}

.testi__quote {
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
  line-height: 1.6;
  font-weight: 400;
  color: #f7f1ec;
  margin: 0 0 28px 0;
  padding: 0;
  border: none;
  font-style: normal;
}
.testi__author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.testi__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(210, 64, 42, 0.4);
}
.testi__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testi__author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}
.testi__author-title {
  font-size: 0.85rem;
  color: rgba(247, 241, 236, 0.72);
}

/* Slider Controls */
.testi__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  gap: 16px;
}
.testi__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.testi__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s var(--ease), background 0.25s var(--ease);
}
.testi__dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--orange);
}

.testi__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.testi__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.testi__arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.06);
}

.contact {
  position: relative;
  padding: clamp(64px, 12vh, 140px) 0;
  text-align: center;
  background: var(--bg);
}
.contact .wrap { display: grid; gap: 16px; justify-items: center; }
.contact__lead { color: var(--muted); max-width: 52ch; margin-bottom: 4px; }
.contact__cta { margin-top: 4px; margin-bottom: 8px; }

.btn--discuss {
  min-height: 56px;
  padding: 0.85em clamp(1.4em, 3.5vw, 2.4em);
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.22rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 32px rgba(210, 64, 42, 0.42);
  gap: 10px;
}
.btn--discuss:hover {
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 42px rgba(230, 92, 43, 0.58);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--discuss svg {
  transition: transform 0.25s var(--ease);
}
.btn--discuss:hover svg {
  transform: translateX(4px);
}

.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }

.btn--platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--platform .btn__icon {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.btn--platform:hover .btn__icon {
  transform: scale(1.12);
}
.btn--platform:hover .btn__icon--freelancer path {
  stroke: var(--text, #f7f1ec);
}

/* ---------- Static Footer Reveal Mechanism ---------- */
.footer-reveal {
  position: relative;
  width: 100%;
  z-index: 1;
}

.footer-reveal.is-active {
  --t: min(var(--footer-h, 0px), 100vh);
  --t: min(var(--footer-h, 0px), 100svh);
  margin-top: calc(var(--t) * -1);
}

.footer-reveal.is-active .footer-reveal__inner {
  position: -webkit-sticky;
  position: sticky;
  top: calc(100vh - var(--t));
  top: calc(100svh - var(--t));
  width: 100%;
  z-index: 1;
  background: var(--bg);
}

.footer-reveal.is-active .footer-reveal__spacer {
  height: var(--t);
  pointer-events: none;
}

.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
  text-align: center;
  background: var(--bg);
}

@media (max-width: 768px) {
  /* On mobile phones, use natural document flow to allow easy scrolling */
  .footer-reveal {
    margin-top: 0 !important;
  }
  .footer-reveal__inner {
    position: static !important;
  }
  .footer-reveal__spacer {
    display: none !important;
  }
}

/* Allow graceful fallback on very low height screens */
@media (max-height: 480px) {
  .footer-reveal { margin-top: 0 !important; }
  .footer-reveal__inner { position: static !important; }
  .footer-reveal__spacer { display: none !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__glow, .hero__grain, .scroll-hint__chev { animation: none; }
  .hero__dust { display: none; }
  .panel--home .reveal, .fade-up, .timeline__item, .service-card, .service-card__arrow { transition: none; }
  .timeline__item { opacity: 1; transform: none; }
  .work__track { min-height: 0; }
  .work__stage { position: static; height: auto; display: block; padding: 7rem var(--gutter) 5rem; }
  .work__head { position: static; margin-bottom: 2rem; }
  .work__fan { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
  .work-step { position: relative; width: 100%; transform: none !important; opacity: 1 !important; }
  .work__bottom { position: static; transform: none; margin-top: 2.5rem; }
  .work__progress { display: none; }
}

/* ---------- Back to Top Floating Button ---------- */
.back-to-top {
  position: fixed;
  bottom: clamp(20px, 3.2vh, 32px);
  right: clamp(20px, 3.2vw, 32px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 21, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(210, 64, 42, 0.45);
}
.back-to-top:active {
  transform: translateY(0) scale(0.96);
}
@media (max-width: 600px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
  }
}


/* ---------- Brand logo (SVG: assets/img/logo-mark.svg + logo-wordmark.svg) ---------- */
.brand { --brand-h: clamp(38px, 3vw, 48px); }
.brand__mark {
  width: var(--brand-h); background: none; border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 6px 16px rgba(239, 106, 44, 0.35));
}
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__name img { display: block; height: calc(var(--brand-h) * 0.54); width: auto; }

/* ==========================================================================
   MOBILE READABILITY + LAYOUT FIX (Screens up to 767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --fs-body: 16px;
    --fs-small: 14px;
    --header-h: 72px;
  }

  html {
    scroll-padding-top: var(--header-h, 72px);
    overflow-x: clip;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
  }

  p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 3. Fixed header on mobile: solid/blurred background on scroll past 20px */
  .site-header {
    height: var(--header-h, 72px);
    padding: env(safe-area-inset-top) var(--gutter) 0;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
  }

  @supports (animation-timeline: scroll()) {
    @keyframes mobile-header-bg {
      0% {
        background: transparent;
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
        border-bottom-color: transparent;
      }
      100% {
        background: rgba(11, 9, 8, 0.88);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom-color: rgba(247, 241, 236, 0.08);
      }
    }
    .site-header {
      animation: mobile-header-bg linear both;
      animation-timeline: scroll();
      animation-range: 0px 20px;
    }
  }

  .site-header.is-scrolled {
    background: rgba(11, 9, 8, 0.88) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(247, 241, 236, 0.08) !important;
  }

  /* Buttons & Tap targets (min 44x44px) */
  .btn-connect {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .btn-menu {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .btn {
    min-height: 44px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .back-to-top {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    bottom: 16px;
    right: 16px;
  }

  /* 2. Hero on mobile: let hero grow if content exceeds screen */
  .panel--home {
    max-height: 100svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(var(--header-h, 72px) + 12px);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  /* Hero subtitle: 16px, sentence case, line-height 1.5 */
  .home__lead {
    font-size: 16px !important;
    text-transform: none !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    max-width: none;
  }

  .home__title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.05;
    word-break: break-word;
    overflow: visible;
  }

  /* Chips, tags, labels: min 13px */
  .tag {
    font-size: 13px !important;
    padding: 6px 12px !important;
    gap: 6px;
  }

  .home__cards .chip,
  .chip {
    font-size: 13px !important;
    padding: 4px 10px !important;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  /* Card captions & descriptions: min 14px */
  .home__cards .glass__text,
  .glass__text {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* Card titles: min 18px */
  .home__cards .glass__title,
  .glass__title {
    font-size: 18px !important;
  }

  .home__cards .glass__big,
  .glass__big {
    font-size: clamp(1.1rem, 4vw, 1.4rem) !important;
  }

  .explore {
    min-height: 44px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
  }

  /* Experience panel / timeline */
  #page-loader .page-loader__pct,
  .page-loader__pct {
    font-size: 14px !important;
  }
  .about__lead {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }
  .about__body,
  .glass--panel > p:not(.eyebrow):not(.about__lead) {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .service-card__num {
    font-size: 13px !important;
  }
  .home__cards .glass__icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
  }
  .glass--work {
    height: auto !important;
    max-height: 65vh !important;
  }
  .glass--work__head .panel-title {
    font-size: 18px !important;
  }
  .timeline__years { font-size: 13px !important; }
  .timeline__badge { font-size: 13px !important; }
  .timeline__role { font-size: 18px !important; }
  .timeline__company { font-size: 14px !important; }

  /* Services cards */
  .services__name { font-size: 18px !important; }
  .services__desc { font-size: 14px !important; line-height: 1.4 !important; }

  /* Section Headings: keep size, never clipped */
  .section-title,
  .panel-title {
    overflow: visible;
    word-break: break-word;
  }

  .eyebrow {
    font-size: 14px !important;
    letter-spacing: 0.14em !important;
  }

  /* 4. Homepage "Selected work" portfolio stack on mobile */
  .work {
    overflow-x: clip !important;
    contain: paint;
  }
  .work__track {
    overflow-x: clip !important;
  }
  .work__stage {
    overflow-x: clip !important;
    contain: paint;
  }

  /* Heading sits fully above the cards, never overlapped */
  .work__head {
    position: absolute !important;
    top: calc(var(--header-h, 72px) + 12px) !important;
    left: var(--gutter) !important;
    z-index: 250 !important;
    pointer-events: auto !important;
  }
  .work__head .section-title {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
    overflow: visible;
  }

  /* Contain the stack & shift down so cards never overlap the heading */
  .work__fan {
    transform: translateY(32px);
    overflow-x: clip;
    max-width: 100vw;
  }

  /* View All Projects button: fully visible below stack with >= 32px spacing */
  .work__bottom {
    position: absolute !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    z-index: 250 !important;
    margin-top: 32px !important;
  }

  .work__all-btn {
    min-height: 44px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
  }

  /* Card description: show full text, min 14px, no mid-sentence cutoff */
  .work-step {
    --card-w: min(300px, 82vw);
  }

  .work-step h3 {
    font-size: 18px !important;
  }

  .work-step p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    max-height: none !important;
  }

  .work-step__num {
    font-size: 13px !important;
  }

  .work-step__foot {
    font-size: 13px !important;
    margin-top: 10px;
    padding-top: 8px;
  }

  .work-step__foot a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 0 !important;
  }

  /* Testimonials */
  .testi__eyebrow { font-size: 13px !important; }
  .testi__author-title { font-size: 14px !important; }
  .testi__badge-label { font-size: 13px !important; }

  /* Footer on mobile */
  .site-footer {
    font-size: 14px !important;
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  }
  .site-footer .wrap {
    font-size: 14px !important;
  }
}

