/* ==========================================================================
   Digitalistic — main stylesheet
   ========================================================================== */

:root {
  color-scheme: dark;

  --background: #020202;
  --surface: #070707;
  --card: #0b0b0b;
  --foreground: #f5f5f2;
  --muted: #8d8d89;
  --dim: #6d6d69;
  --border: #2a2a2a;
  --line: rgba(245, 245, 242, 0.16);
  --accent: #a7ff24;
  --accent-soft: rgba(167, 255, 36, 0.22);
  --ice-soft: rgba(110, 130, 255, 0.12);

  --font-sans: "Inter Tight", Arial, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --header-h: 88px;
  --radius: 18px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */

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

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

body {
  /* Transparent so the fixed .bg-glow layer shows; the page colour lives on <html> */
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Shifting gradient glow behind the whole site */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow span {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  /* Soft edges come from the gradients themselves — no costly blur filter */
  will-change: transform;
}

.bg-glow span:nth-child(1) {
  top: -24vmax;
  left: -14vmax;
  background: radial-gradient(circle, rgba(167, 255, 36, 0.13) 0%, rgba(167, 255, 36, 0.06) 35%, transparent 70%);
  animation: glow-drift-1 26s ease-in-out infinite alternate;
}

.bg-glow span:nth-child(2) {
  right: -20vmax;
  top: 18vh;
  background: radial-gradient(circle, rgba(96, 118, 255, 0.11) 0%, rgba(96, 118, 255, 0.05) 35%, transparent 70%);
  animation: glow-drift-2 32s ease-in-out infinite alternate;
}

.bg-glow span:nth-child(3) {
  left: 18vw;
  bottom: -30vmax;
  background: radial-gradient(circle, rgba(40, 230, 180, 0.1) 0%, rgba(40, 230, 180, 0.04) 35%, transparent 70%);
  animation: glow-drift-3 28s ease-in-out infinite alternate;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: inherit;
}

canvas {
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

/* Smooth scrolling (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1360px, 100% - 96px);
  margin-inline: auto;
}

/* Green full stop at the end of headings */
.dot {
  color: var(--accent);
}

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 48px 48px;
  background: var(--background);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-expo) 0.15s;
}

.loader-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.loader .wordmark {
  font-size: clamp(28px, 4vw, 48px);
}

.loader .brand-dot {
  width: 0.28em;
  height: 0.28em;
}

.loader-count {
  font: clamp(28px, 4vw, 48px) var(--font-mono);
  color: var(--muted);
}

.loader-bar {
  display: block;
  height: 1px;
  background: var(--line);
}

.loader-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s linear;
}

.is-loaded .loader {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.no-js .loader {
  display: none;
}

/* ---------- Custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 0;
  height: 0;
  pointer-events: none;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.has-cursor .cursor {
  display: block;
}

.cursor.is-active {
  opacity: 1;
}

.cursor::before {
  content: "";
  position: absolute;
  left: -44px;
  top: -44px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transform: scale(0.34);
  transition: transform 0.5s var(--ease-expo), background 0.3s, border-color 0.3s;
}

.cursor.is-hover::before {
  transform: scale(0.62);
  background: rgba(167, 255, 36, 0.12);
  border-color: var(--accent);
}

.cursor.is-label::before {
  transform: scale(1);
  background: var(--accent);
  border-color: var(--accent);
}

.cursor-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.6);
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--background);
  opacity: 0;
  transition: opacity 0.3s, transform 0.5s var(--ease-expo);
}

.cursor.is-label .cursor-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background 0.4s, transform 0.6s var(--ease-expo);
}

.site-header.is-scrolled {
  background: rgba(2, 2, 2, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.nav {
  height: var(--header-h);
  padding-inline: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transition: height 0.4s;
}

.site-header.is-scrolled .nav {
  height: 68px;
}

.wordmark {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.brand-dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
}

.brand-dot {
  width: 7px;
  height: 7px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: 9%;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
}

/* Rolling text on hover: the accent copy is a text-shadow one line below */
.nav-links a {
  display: inline-block;
  height: 1.4em;
  line-height: 1.4;
  overflow: hidden;
}

.nav-links a span {
  display: block;
  text-shadow: 0 1.4em 0 var(--accent);
  transition: transform 0.5s var(--ease-expo);
}

.nav-links a:hover span {
  transform: translateY(-1.4em);
}

.nav-links-contact {
  display: none !important;
}

.arrow {
  display: inline-block;
  font-size: 1.4em;
  line-height: 0;
  transition: transform 0.45s var(--ease-expo);
}

a:hover .arrow,
.service-row:hover .arrow {
  transform: translate(4px, -4px) rotate(0.001deg);
}

.menu-toggle {
  display: none;
  padding: 10px 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #eee;
  transition: transform 0.3s;
}

.menu-toggle span + span {
  margin-top: 6px;
}

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

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

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

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s, transform 0.35s var(--ease-out);
}

/* Fill sweeps up from the bottom on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform 0.6s var(--ease-expo), border-radius 0.6s var(--ease-expo);
}

.btn:hover::before {
  transform: translateY(0);
  border-radius: 0;
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--background);
  border-color: var(--accent);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 11px;
}

.btn-lg {
  height: 68px;
  padding: 0 36px;
  font-size: 13px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --hero-p: 0;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Fallback if WebGL is unavailable (the site-wide glow shows through) */
  background:
    radial-gradient(circle at 70% 42%, rgba(167, 255, 36, 0.1), transparent 28%),
    radial-gradient(circle at 72% 50%, rgba(120, 140, 255, 0.08), transparent 45%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 2.2s var(--ease-expo);
}

#hero-canvas.is-ready {
  opacity: 1;
  transform: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 2, 2, 0.45) 0%, rgba(2, 2, 2, 0.08) 40%, transparent 60%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 36px);
  padding-bottom: 26px;
  transform: translateY(calc(var(--hero-p) * -90px));
  opacity: calc(1 - var(--hero-p) * 1.3);
}

.hero-heading {
  align-self: end;
}

.hero-eyebrow {
  margin-bottom: 26px;
  font-size: 12px;
}

/* Green eyebrow labels (hero and contact) */
.eyebrow.eyebrow-accent {
  color: var(--accent);
}

.eyebrow.eyebrow-accent i {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.hero-eyebrow i {
  width: 8px;
  height: 8px;
}

.hero-title {
  max-width: 11em;
  margin: 0 0 34px;
  font-size: clamp(64px, 8.4vw, 150px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: #fff;
}

/* Italic serif accents in headings, paired with Inter Tight */
h1 em,
h2 em,
.section-lead em,
.about-statement em {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.04em;
  line-height: 0.9;
  letter-spacing: -0.03em;
  padding-right: 0.04em;
}

.hero-title em {
  color: #ecece6;
}

/* Hero title types itself only after the loader has lifted */
html:not(.is-loaded) .hero-title.is-visible .ch {
  opacity: 0;
  transform: translateY(0.25em);
  filter: blur(6px);
}

.hero-title .ch {
  transition-delay: calc(0.5s + var(--i) * 30ms);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.hero-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 10px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-bar-hint {
  color: #bdbdb8;
}

.scroll-cue {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ddd;
}

.scroll-line {
  display: block;
  width: 44px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: scroll-line 2.2s var(--ease-expo) infinite;
}

/* ---------- Load-in (after the loader lifts) ---------- */

.load-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out) calc(var(--d, 0s) + 0.5s),
    transform 1.2s var(--ease-expo) calc(var(--d, 0s) + 0.5s);
}

.is-loaded .load-in {
  opacity: 1;
  transform: none;
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 19px 0;
  border-block: 1px solid var(--line);
}

.ticker-track {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: marquee 30s linear infinite;
}

.ticker b {
  display: inline-block;
  margin: 0 35px;
  font-weight: 400;
  color: var(--accent);
  animation: spin 6s linear infinite;
}

/* ---------- Shared section pieces ---------- */

.section-pad {
  padding-block: 150px;
}

.eyebrow,
.section-heading {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--foreground);
}

.section-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
}

/* Divider line draws itself in */
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-expo) 0.2s;
}

.section-heading.is-visible::after,
.no-js .section-heading::after {
  transform: scaleX(1);
}

.section-index {
  font: 10px var(--font-mono);
  text-transform: uppercase;
  color: #777;
}

.section-lead {
  max-width: 820px;
  margin: 60px 0 100px;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

/* ---------- Typing reveal for headings (data-type, js/main.js) ---------- */

.tw {
  display: inline-block;
  white-space: nowrap;
}

.ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  filter: blur(6px);
  transition:
    opacity 0.35s ease calc(var(--i) * 26ms),
    transform 0.6s var(--ease-expo) calc(var(--i) * 26ms),
    filter 0.45s ease calc(var(--i) * 26ms);
}

.is-visible .ch,
.no-js .ch {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Soft gradient glow in the bottom corner ---------- */

.glow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.glow::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -45%;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, var(--ice-soft) 38%, transparent 68%);
  filter: blur(36px);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.7s, transform 1s var(--ease-expo);
}

.glow:hover::after {
  opacity: 1;
  transform: translate(-8%, -10%) scale(1.15);
}

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

.project {
  display: block;
  margin-top: 90px;
}

.project-visual {
  position: relative;
  height: 620px;
  border-radius: var(--radius);
  background: var(--card);
  clip-path: inset(7% 5% round 32px);
  transition: clip-path 1.5s var(--ease-expo);
}

.project.is-visible .project-visual,
.no-js .project-visual {
  clip-path: inset(0 round var(--radius));
}

.project-visual-inner {
  position: absolute;
  left: 0;
  right: 0;
  /* Taller than the card so the parallax never shows an edge */
  top: -12%;
  height: 124%;
  transform: translateY(var(--py, 0px));
}

.project-image,
.project-lens {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-image {
  object-fit: cover;
}

/* Bubble hover (js/project-lens.js): the canvas redraws the same photo with the
   raised area, so it simply replaces the image while active */
.project-lens {
  visibility: hidden;
  pointer-events: none;
}

.project.is-lifting .project-lens {
  visibility: visible;
}

.project.is-lifting .project-image {
  visibility: hidden;
}

.project-index,
.project-visual em {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 2, 2, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 11px var(--font-mono);
}

.project-index {
  top: 24px;
  left: 28px;
}

.project-visual em {
  right: 25px;
  bottom: 25px;
  font-style: normal;
  text-transform: uppercase;
  transition: transform 0.6s var(--ease-expo), color 0.3s;
}

.project:hover .project-visual em {
  transform: translateX(-8px);
  color: var(--accent);
}

.project-caption {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 25px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.project-caption h3 {
  font-size: clamp(25px, 3.2vw, 45px);
  font-weight: 500;
  letter-spacing: -0.05em;
  transition: transform 0.6s var(--ease-expo);
}

.project:hover .project-caption h3 {
  transform: translateX(12px);
}

.project-caption p {
  font: 11px var(--font-mono);
  text-transform: uppercase;
  color: #999;
}

.project-arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}

.project-arrow .arrow {
  font-size: 18px;
}

.project:hover .project-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

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

.services-intro {
  display: grid;
  grid-template-columns: 1.6fr 0.5fr;
  gap: 10%;
  padding: 100px 0;
}

.services-intro h2 {
  font-size: clamp(44px, 5.4vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

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

.services-intro p,
.about-lower p {
  align-self: end;
  max-width: 330px;
  line-height: 1.5;
  color: #aaa;
}

.service-row {
  display: grid;
  grid-template-columns: 10% 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 28px 16px 28px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.6s var(--ease-expo), background 0.4s;
}

.service-list li:last-child .service-row {
  border-bottom: 1px solid var(--line);
}

.service-row::after {
  opacity: 0;
}

.service-row:hover {
  padding-left: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.service-row:hover::after {
  opacity: 1;
}

.service-number {
  font: 11px var(--font-mono);
  color: #777;
  transition: color 0.3s;
}

.service-row:hover .service-number {
  color: var(--accent);
}

.service-row h3 {
  font-size: clamp(25px, 3.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.service-arrow {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.service-row:hover .service-arrow {
  opacity: 1;
  color: var(--accent);
}

/* ---------- Stacked service cards ---------- */

.service-stack {
  position: relative;
  padding-bottom: 8vh;
}

.service-card {
  --depth: 0;
  --pad-x: clamp(40px, 7vw, 128px);
  --pad-y: clamp(64px, 11vh, 128px);
  position: sticky;
  top: calc(var(--header-h) + 20px + var(--i) * 18px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  height: min(780px, calc(100vh - var(--header-h) - 56px));
  min-height: 560px;
  margin-bottom: 14vh;
  padding: var(--pad-y) var(--pad-x);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse at 100% 100%, rgba(167, 255, 36, 0.12), transparent 55%),
    radial-gradient(ellipse at 0% 0%, rgba(96, 118, 255, 0.07), transparent 50%),
    #0a0a0a;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.55);
  /* Covered cards sink back: shrink and darken (js/main.js sets --depth) */
  transform: scale(calc(1 - var(--depth) * 0.06)) translateY(calc(var(--depth) * -14px));
  transform-origin: 50% 0;
  will-change: transform;
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: #000;
  opacity: min(calc(var(--depth) * 0.45), 0.7);
  pointer-events: none;
}

.service-card-index {
  font: 12px var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.service-card-index span {
  color: var(--accent);
}

.service-card h3 {
  margin: 32px 0 28px;
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.service-card h3 em {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.04em;
  letter-spacing: -0.03em;
}

.service-card-desc {
  max-width: 460px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: #c8c8c3;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 48px;
}

.service-tags li {
  padding: 8px 14px;
  border: 1px solid #333;
  border-radius: 999px;
  font-size: 13px;
  color: #d8d8d3;
}

.service-card-visual {
  position: relative;
  align-self: stretch;
  margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) calc(var(--pad-y) * -1) 0;
}

.service-card-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.about-statement {
  padding: 110px 0 80px;
}

.about-statement p {
  max-width: 1120px;
  font-size: clamp(55px, 8.5vw, 130px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.about-lower {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.text-link {
  display: inline-block;
  align-self: end;
  padding-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease-expo);
}

.text-link:hover {
  background-size: 100% 1px, 100% 1px;
}

/* ---------- Capabilities ---------- */

.capability-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1000px;
  padding-top: 85px;
}

.capability-cloud li {
  padding: 14px 22px;
  border: 1px solid #3b3b3b;
  border-radius: 999px;
  font-size: 18px;
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease-out);
}

.capability-cloud li::after {
  width: 120%;
  right: -40%;
  bottom: -120%;
}

.capability-cloud li:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Staggered lists ---------- */

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease-out) calc(var(--i, 0) * 0.07s),
    transform 1.1s var(--ease-expo) calc(var(--i, 0) * 0.07s),
    padding 0.6s var(--ease-expo),
    background 0.4s,
    color 0.3s,
    border-color 0.3s;
}

.reveal-stagger.is-visible > *,
.no-js .reveal-stagger > * {
  opacity: 1;
  transform: none;
}

/* ---------- Testimonials ---------- */

.testimonials-section {
  --x: 1;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(167, 255, 36, 0.07), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(110, 130, 255, 0.07), transparent 50%),
    rgba(12, 12, 12, 0.6);
  /* Section "opens up" to full width as it scrolls into view */
  clip-path: inset(0 calc(var(--x) * 4%) round calc(var(--x) * 48px));
}

.testimonial-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: 90px 0 70px;
}

.testimonial-intro h2 {
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.testimonial-intro p {
  max-width: 270px;
  line-height: 1.5;
  color: #999;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 370px;
}

.testimonial-card {
  flex: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 50px 5vw 42px;
  background: rgba(11, 11, 11, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial-card blockquote,
.testimonial-card figcaption {
  transition: opacity 0.4s, transform 0.5s var(--ease-expo), filter 0.4s;
}

.testimonial-card.is-changing blockquote,
.testimonial-card.is-changing figcaption {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
}

.testimonial-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.testimonial-progress.is-running {
  transform: scaleX(1);
  transition: transform 8s linear;
}

.quote {
  font-size: 100px;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.8;
}

.testimonial-card p {
  max-width: 720px;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.testimonial-card strong,
.testimonial-card small {
  display: block;
}

.testimonial-card strong {
  font-size: 14px;
  font-weight: 500;
}

.testimonial-card small {
  margin-top: 8px;
  font: 11px var(--font-mono);
  color: #888;
}

.testimonial-side {
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: 12px var(--font-mono);
  color: #888;
}

.testimonial-side [data-testimonial="index"] {
  font: 500 64px var(--font-sans);
  letter-spacing: -0.05em;
  color: #fff;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1145px;
  margin-top: 24px;
}

.carousel-controls > button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}

.carousel-controls > button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 35px;
  height: 14px;
  padding: 0;
  background: linear-gradient(#444, #444) center / 100% 2px no-repeat;
  transition: width 0.5s var(--ease-expo);
}

.carousel-dots button.active {
  width: 60px;
  background-image: linear-gradient(#fff, #fff);
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 150px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 30%, rgba(167, 255, 36, 0.05), transparent 45%);
}

/* Soft green glow rising from the bottom edge */
.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  z-index: 0;
  width: min(1400px, 130%);
  height: 60%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(167, 255, 36, 0.28) 0%, rgba(167, 255, 36, 0.1) 35%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: footer-glow 8s ease-in-out infinite alternate;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: min(88vh, 900px);
}

/* Always exactly two lines: "Have a project" / "in mind?" */
.footer-title {
  margin: 40px 0 56px;
  font-size: clamp(44px, 6.4vw, 124px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

/* Frameless 3D flower (js/footer-flower.js) */
.footer-flower {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: -60px -40px -60px 0;
}

#flower-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 120px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
}

.footer-label {
  margin-bottom: 8px;
  font: 10px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid a {
  position: relative;
  transition: color 0.25s, transform 0.45s var(--ease-expo);
}

.footer-grid a:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.footer-grid p {
  line-height: 1.25;
}

.footer-muted {
  margin-top: 6px;
  font: 11px var(--font-mono);
  color: #777;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font: 10px var(--font-mono);
  text-transform: uppercase;
  color: #777;
}

.back-top {
  font: 10px var(--font-mono);
  text-transform: uppercase;
  transition: color 0.25s;
}

.back-top:hover,
.nav-contact:hover {
  color: var(--accent);
}

/* Giant cropped wordmark along the very bottom */
.footer-wordmark {
  margin-bottom: -0.2em;
  font-size: 21.5vw;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.075em;
  text-align: center;
  white-space: nowrap;
  /* Solid fill fading downwards — no stroke, which shows the font's overlapping contours */
  background: linear-gradient(180deg, rgba(245, 245, 242, 0.09), rgba(245, 245, 242, 0.01) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Case study pages (projects/*.html) ---------- */

.case-hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 64px;
}

.case-back {
  display: inline-block;
  margin-bottom: 56px;
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.case-back:hover {
  color: var(--accent);
}

.case-title {
  margin: 28px 0 36px;
  font-size: clamp(64px, 10vw, 170px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.case-lead {
  max-width: 760px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #d8d8d3;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.case-meta dt {
  margin-bottom: 8px;
  font: 10px var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-meta dd {
  font-size: 16px;
  line-height: 1.4;
}

.case-meta a {
  transition: color 0.25s;
}

.case-meta a:hover {
  color: var(--accent);
}

/* Covers and case photos keep their own proportions — nothing is cropped */
.case-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.case-row {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.case-label {
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-row p {
  max-width: 820px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #e4e4df;
}

.case-list {
  display: grid;
  gap: 16px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: #d8d8d3;
}

.case-list li {
  position: relative;
  padding-left: 32px;
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

/* Placeholder for a case photo — swap the div for an <img class="case-shot"> */
.case-shot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px dashed rgba(245, 245, 242, 0.18);
  background:
    radial-gradient(circle at 80% 90%, rgba(167, 255, 36, 0.06), transparent 50%),
    rgba(255, 255, 255, 0.02);
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

img.case-shot {
  border: 0;
}

.case-shot-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* Full-width case photos, one under another */
.case-stack {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.case-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--card);
}

.case-quote {
  max-width: 1100px;
}

.case-quote blockquote p {
  margin-top: 24px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.case-quote-author {
  margin-top: 32px;
}

.case-quote-author strong,
.case-quote-author small {
  display: block;
}

.case-quote-author strong {
  font-size: 15px;
  font-weight: 500;
}

.case-quote-author small {
  margin-top: 6px;
  font: 11px var(--font-mono);
  color: #888;
}

.case-next a {
  display: block;
  padding: 56px 0 120px;
  border-top: 1px solid var(--line);
}

.case-next-title {
  display: block;
  margin-top: 20px;
  font-size: clamp(56px, 8vw, 140px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
  transition: color 0.4s, transform 0.6s var(--ease-expo);
}

.case-next a:hover .case-next-title {
  color: var(--accent);
  transform: translateX(16px);
}

.case-next-title em,
.case-title em {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ---------- Contact popup (full screen) ---------- */

.modal-open,
.modal-open body {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  /* Fits the screen without scrolling; see the small-screen fallback below */
  overflow: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(167, 255, 36, 0.14), transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(96, 118, 255, 0.1), transparent 50%),
    rgba(2, 2, 2, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.contact-modal.is-open {
  opacity: 1;
}

.contact-modal-flower {
  position: fixed;
  right: -3vw;
  bottom: -8vh;
  width: min(50vw, 820px);
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out) 0.2s, transform 1.4s var(--ease-expo) 0.2s;
}

.contact-modal.is-open .contact-modal-flower {
  opacity: 1;
  transform: none;
}

.contact-modal-flower canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-modal-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease-expo);
}

.contact-modal-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-modal-close span + span {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.contact-modal-close:hover span {
  background: var(--background);
}

.contact-modal-body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 10vh, 104px) 0 clamp(24px, 5vh, 56px);
}

.contact-modal-body > * {
  max-width: 820px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-expo);
}

.contact-modal.is-open .contact-modal-body > * {
  opacity: 1;
  transform: none;
}

.contact-modal.is-open .contact-modal-body > :nth-child(2) { transition-delay: 0.08s; }
.contact-modal.is-open .contact-modal-body > :nth-child(3) { transition-delay: 0.16s; }
.contact-modal.is-open .contact-modal-body > :nth-child(4),
.contact-modal.is-open .contact-modal-body > :nth-child(5) { transition-delay: 0.24s; }

.contact-modal-title {
  margin: clamp(12px, 2.4vh, 22px) 0 clamp(8px, 1.6vh, 14px);
  font-size: clamp(40px, min(6vw, 8.5vh), 104px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.contact-modal-lead {
  margin-bottom: clamp(16px, 3.2vh, 32px);
  font-size: 17px;
  color: #bdbdb8;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(16px, 3vh, 28px);
  border: 0;
}

.contact-chips legend {
  width: 100%;
  margin-bottom: clamp(8px, 1.4vh, 14px);
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-chips label {
  position: relative;
  cursor: pointer;
}

.contact-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-chips span {
  display: inline-block;
  padding: clamp(8px, 1.2vh, 11px) 18px;
  border: 1px solid #3b3b3b;
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.contact-chips label:hover span {
  border-color: var(--accent);
}

.contact-chips input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}

.contact-chips input:focus-visible + span {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vh, 24px) 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: clamp(6px, 1vh, 10px) 0 clamp(8px, 1.2vh, 12px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font: 500 18px var(--font-sans);
  resize: vertical;
  transition: border-color 0.3s;
}

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

.field.is-invalid > span {
  color: #ff7a7a;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: #ff7a7a;
}

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: clamp(18px, 3.4vh, 32px);
}

.contact-form-footer .btn-lg {
  height: clamp(52px, 7vh, 68px);
}

.contact-form.is-sending button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

.contact-status {
  max-width: 420px;
  font-size: 14px;
  color: #bdbdb8;
}

.contact-status a {
  color: var(--accent);
}

.contact-success h3 {
  margin-bottom: 16px;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.contact-success p {
  margin-bottom: 36px;
  font-size: 20px;
  color: #d8d8d3;
}

.contact-modal-title em {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.04em;
  letter-spacing: -0.03em;
}

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

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1.2s var(--ease-expo) var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Content stays visible if JavaScript fails to run */
.no-js .reveal,
.no-js .load-in {
  opacity: 1;
  transform: none;
}

[data-magnetic] {
  display: inline-block;
}

[data-magnetic].btn {
  display: inline-flex;
}

/* ---------- Keyframes ---------- */

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

@keyframes footer-glow {
  from { opacity: 0.75; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scroll-line {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes glow-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28vw, 22vh, 0) scale(1.25); }
}

@keyframes glow-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to { transform: translate3d(-32vw, 30vh, 0) scale(0.85); }
}

@keyframes glow-drift-3 {
  from { transform: translate3d(0, 0, 0) scale(0.9); }
  to { transform: translate3d(22vw, -38vh, 0) scale(1.2); }
}


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

@media (max-width: 1024px) {
  .nav-links {
    margin-left: 0;
    gap: 24px;
  }

  .project-visual {
    height: 480px;
  }

  .hero-bar-hint {
    display: none;
  }

  .hero-bar {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 70px;
    --radius: 14px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .nav {
    padding-inline: 16px;
  }

  .loader {
    padding: 0 16px 32px;
  }

  .site-header.is-scrolled .nav {
    height: 60px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 16px 20px;
    background: rgba(2, 2, 2, 0.97);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
  }

  .nav-links a {
    height: auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a span {
    text-shadow: none;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links-contact {
    display: block !important;
  }

  .menu-toggle {
    display: block;
  }

  .nav-contact {
    display: none !important;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(2, 2, 2, 0.55) 0%, rgba(2, 2, 2, 0.2) 45%, transparent 100%);
  }

  .hero-inner {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 20px;
  }

  .hero-title {
    margin-bottom: 22px;
    font-size: 11.5vw;
    white-space: normal;
  }

  .hero-bottom {
    padding-bottom: 26px;
  }

  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 11px;
  }

  .hero-actions .btn {
    height: 46px;
    padding: 0 20px;
    font-size: 11px;
  }

  .section-pad {
    padding-block: 90px;
  }

  .section-lead {
    margin: 40px 0 60px;
  }

  .section-lead br {
    display: none;
  }

  .project {
    margin-top: 48px;
  }

  .project-visual {
    height: 360px;
  }

  .project-caption {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .project-caption p {
    grid-area: 2 / 1;
  }

  .project-arrow {
    grid-row: 1 / span 2;
  }

  .services-intro {
    display: block;
    padding: 55px 0 70px;
  }

  .services-intro h2 {
    font-size: 10vw;
  }

  .services-intro p {
    margin-top: 35px;
  }

  .service-row {
    grid-template-columns: 12% 1fr auto;
    gap: 10px;
    padding: 22px 8px 22px 0;
  }

  .service-row h3 {
    font-size: 21px;
  }

  .about-statement {
    padding: 60px 0;
  }

  .about-statement p {
    font-size: 13vw;
  }

  .about-lower {
    display: block;
  }

  .about-lower p {
    margin-bottom: 32px;
  }

  .capability-cloud {
    padding-top: 50px;
  }

  .capability-cloud li {
    padding: 10px 14px;
    font-size: 15px;
  }

  .testimonials-section {
    clip-path: inset(0 calc(var(--x) * 3%) round calc(var(--x) * 28px));
  }

  .testimonial-intro {
    display: block;
    padding: 55px 0;
  }

  .testimonial-intro h2 {
    font-size: 15vw;
  }

  .testimonial-intro p {
    margin-top: 30px;
  }

  .testimonial-side {
    display: none;
  }

  .testimonial-card {
    min-height: 390px;
    padding: 30px 24px;
  }

  .testimonial-card p {
    font-size: 23px;
  }

  .case-hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .case-back {
    margin-bottom: 36px;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
    margin-top: 44px;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-shot-wide {
    aspect-ratio: 4 / 3;
  }

  .service-card {
    top: calc(var(--header-h) + 12px + var(--i) * 10px);
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 0;
    height: calc(100svh - var(--header-h) - 40px);
    min-height: 560px;
    margin-bottom: 8vh;
    --pad-x: 24px;
    --pad-y: 40px;
  }

  .service-card-visual {
    order: -1;
    margin: calc(var(--pad-y) * -1) calc(var(--pad-x) * -1) 0;
  }

  .service-card h3 {
    margin: 12px 0 12px;
  }

  .service-tags {
    margin: 18px 0 22px;
  }

  .service-tags li {
    padding: 6px 11px;
    font-size: 12px;
  }

  .contact-modal-flower {
    display: none;
  }

  .contact-modal-close {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .contact-modal {
    overflow-y: auto;
  }

  .contact-modal-body {
    height: auto;
    min-height: 100%;
    padding: 80px 0 48px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 90px;
  }

  .footer-cta {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    min-height: 0;
  }

  .footer-title {
    margin: 32px 0 40px;
    font-size: 13vw;
  }

  .footer-flower {
    margin: 0 -16px;
  }

  .footer-actions {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 70px;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

/* Very low screens: let the popup scroll instead of cutting anything off */
@media (max-height: 620px) {
  .contact-modal {
    overflow-y: auto;
  }

  .contact-modal-body {
    height: auto;
    min-height: 100%;
  }
}

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

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

  .reveal,
  .load-in,
  .ch,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .project-visual {
    clip-path: inset(0 round var(--radius)) !important;
  }

  .testimonials-section {
    clip-path: none !important;
  }

  .hero-inner,
  .project-visual-inner {
    transform: none !important;
  }

  [data-magnetic] {
    transform: none !important;
  }
}
