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

:root {
  --canvas: #F4F1EC;
  --paper: #FBFAF7;
  --paper-2: #F0EBE1;
  --ink: #1A1815;
  --ink-soft: #57534C;
  --ink-faint: #8C867A;
  --blue: #1E6188;
  --blue-d: #123E62;
  --blue-mist: #E6EEF4;
  --teal: #159FB4;
  --line: #E4DED2;
  --line-2: #D6CEBC;

  --glow: rgba(30, 97, 136, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px rgba(26, 24, 21, 0.05);
  --shadow-md: 0 20px 50px -24px rgba(26, 24, 21, 0.22);
  --shadow-lg: 0 40px 90px -40px rgba(18, 62, 98, 0.4);

  --container: 1240px;
  --edge: 1.5rem;
}

@media (min-width: 768px) { :root { --edge: 3rem; } }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 24, 21, 0.045) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

em { font-style: italic; color: var(--blue-d); }

::selection { background: var(--blue-mist); color: var(--blue-d); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--canvas); }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

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

.grain {
  position: fixed;
  inset: -80px;
  z-index: 400;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 6px;
}
.skip-link:focus { left: var(--edge); top: var(--edge); }

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.loader__mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.loader__mark img { height: 50px; width: auto; display: block; }
.loader__mark span { color: var(--blue); }
.loader__bar { width: 180px; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.loader__bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-d));
  animation: loaderBar 1s 0.15s var(--ease-out) forwards;
}
@keyframes loaderBar { to { width: 100%; } }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 350;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ── 3D TILT LANGUAGE ── */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt-layer] { transform: translateZ(0); transition: transform 0.3s var(--ease); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }
.narrow { max-width: 680px; }

main { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-d);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: "→"; color: var(--blue); }

/* ── NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 241, 236, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-nav-open,
.site-header.is-nav-open.is-scrolled {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header.is-nav-open .nav__brand,
.site-header.is-nav-open .lang-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
}
.nav__brand { display: flex; align-items: center; gap: 0.3rem; z-index: 201; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.brand-mark {
  height: 30px;
  width: auto;
  display: block;
}
.footer__brand .brand-mark {
  height: 32px;
}
.nav__links { display: none; align-items: center; gap: 2.2rem; }
.nav__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--blue-d); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 1rem; z-index: 201; }
.lang-toggle { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
.lang-toggle__option {
  border: none; background: none;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-toggle__option.is-active { background: var(--blue-d); color: var(--paper); }

.nav__toggle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; padding: 0;
}
.nav__toggle-bar { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.nav__toggle-bar:first-child { width: 68%; }
.nav__toggle.is-active .nav__toggle-bar { width: 100%; }
.nav__toggle.is-active .nav__toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.is-active .nav__toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav .nav__cta { display: none; }
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav .nav__cta { display: inline-flex; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: radial-gradient(ellipse at 50% 25%, var(--paper) 0%, var(--paper-2) 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.mobile-nav__link.is-active { color: var(--blue-d); }
@media (min-width: 1000px) { .mobile-nav { display: none; } }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary { background: var(--blue-d); color: var(--paper); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--blue-d); background: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--blue-d); color: var(--blue-d); transform: translateY(-2px); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── SECTIONS ── */
section { padding: 6rem 0; }
@media (min-width: 768px) { section { padding: 8rem 0; } }

.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow { color: var(--teal); }
.section--ink .eyebrow::before { color: var(--teal); }
.section--ink .section__lead { color: var(--line); }
.section--ink h2 { color: var(--paper); }

.section__head { max-width: 680px; margin-bottom: 3.5rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.section__lead { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.08rem; max-width: 48ch; }
.section__more { text-align: center; margin-top: 3.5rem; }

/* ── HERO ── */
.hero3d {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.hero3d__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero3d__canvas.is-fallback {
  background: radial-gradient(ellipse 60% 60% at 65% 45%, var(--blue-mist), transparent 65%);
}
.hero3d__inner { position: relative; z-index: 1; max-width: 760px; }
.hero3d__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-d);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s var(--ease-out) forwards;
}
.hero3d__title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.98;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s var(--ease-out) forwards;
}
.hero3d__title em { display: inline-block; }
.hero3d__subtitle {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s var(--ease-out) forwards;
}
.hero3d__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.65s var(--ease-out) forwards;
}
.hero3d__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 0.8s 0.8s var(--ease-out) forwards;
}
.hero3d__stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.hero3d__stat-num span { color: var(--blue); }
.hero3d__stat-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-faint); margin-top: 0.4rem; letter-spacing: 0.03em; }

.hero3d__hud {
  position: absolute;
  bottom: 2rem;
  right: var(--edge);
  z-index: 1;
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.hero3d__hud-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: pulse 2s infinite; }
@media (min-width: 1000px) { .hero3d__hud { display: flex; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── MARQUEE ── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 1.1rem 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 130s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  padding: 0 2rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marquee__item::after { content: "◆"; color: var(--blue); font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── GRIDS ── */
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 .reveal:nth-child(2) { transition-delay: 0.1s; }
  .grid-3 .reveal:nth-child(3) { transition-delay: 0.2s; }
}
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-4 .reveal:nth-child(2) { transition-delay: 0.08s; }
  .grid-4 .reveal:nth-child(3) { transition-delay: 0.16s; }
  .grid-4 .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ── SERVICE CARD (3D tilt) ── */
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__glyph {
  width: 56px; height: 56px;
  margin-bottom: 1.5rem;
  border-radius: 14px;
  background: var(--blue-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-d);
  transition: transform 0.4s var(--ease-out);
}
.service-card:hover .service-card__glyph { transform: translateZ(40px) scale(1.05); }
.service-card__num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.service-card__title { font-size: 1.6rem; margin-bottom: 0.6rem; }
.service-card__desc { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.5rem; }
.service-card__link { font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue-d); display: inline-flex; align-items: center; gap: 0.4rem; letter-spacing: 0.03em; }
.service-card__link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* ── PROCESS ── */
.process__list { position: relative; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .process__list { grid-template-columns: repeat(4, 1fr); }
  .process__list::before { content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--line-2); }
}
.process-step { position: relative; }
.process-step__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--blue-d);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}
.process-step__title { font-size: 1.3rem; margin-bottom: 0.5rem; }
.process-step__desc { color: var(--ink-soft); font-size: 0.95rem; }

/* ── SPLIT ── */
.split { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 7fr 5fr; }
  .split--reverse { grid-template-columns: 5fr 7fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { display: flex; align-items: center; justify-content: center; min-height: 280px; }
.split__title { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.split__body p { color: var(--ink-soft); margin-bottom: 1rem; }
.split__body p:last-child { margin-bottom: 0; }
.split__list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.split__list li { display: flex; align-items: baseline; gap: 0.7rem; color: var(--ink-soft); font-size: 0.98rem; }
.split__list li::before { content: ""; width: 14px; height: 2px; background: var(--blue); flex-shrink: 0; transform: translateY(-4px); border-radius: 2px; }

/* ── 3D CODE CUBE (about/services media) ── */
.codecube {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
}
.codecube__stage {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: cubeSpin 16s linear infinite;
  will-change: transform;
}
.codecube__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--blue-d);
  background: rgba(30, 97, 136, 0.06);
  border: 1.5px solid rgba(30, 97, 136, 0.4);
  border-radius: 12px;
  box-shadow: inset 0 0 30px rgba(30, 97, 136, 0.08);
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}
.codecube__face--front  { transform: translateZ(75px); }
.codecube__face--back   { transform: rotateY(180deg) translateZ(75px); color: var(--teal); border-color: rgba(21, 159, 180, 0.5); background: rgba(21, 159, 180, 0.06); }
.codecube__face--right  { transform: rotateY(90deg) translateZ(75px); }
.codecube__face--left   { transform: rotateY(-90deg) translateZ(75px); }
.codecube__face--top    { transform: rotateX(90deg) translateZ(75px); }
.codecube__face--bottom { transform: rotateX(-90deg) translateZ(75px); }
.codecube__glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}
@keyframes cubeSpin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}
.section--ink .codecube__face {
  color: #A9C6DA;
  background: rgba(30, 97, 136, 0.14);
  border-color: rgba(30, 97, 136, 0.55);
}
.section--ink .codecube__face--back {
  color: #9FD8E2;
  background: rgba(21, 159, 180, 0.14);
  border-color: rgba(21, 159, 180, 0.55);
}

/* ── STATS (counters) ── */
.stats-grid { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat-card { background: var(--paper); padding: 2rem 1.75rem; transition: background 0.3s var(--ease); }
.stat-card:hover { background: var(--blue-mist); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat-num span { color: var(--blue); }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.6rem; letter-spacing: 0.03em; }

/* ── WORK (project rows) ── */
.projects { display: flex; flex-direction: column; gap: 0.5rem; }
.project-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.project-row:not(.project-row--static):hover {
  transform: translateX(8px);
  box-shadow: -6px 0 0 var(--blue), var(--shadow-md);
  border-color: transparent;
}
.project-row__num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--blue); }
.project-row__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.2rem; }
.project-row__sub { font-size: 0.9rem; color: var(--ink-soft); }
.project-row__meta { display: flex; align-items: center; gap: 1.5rem; }
.project-row__tags { display: none; gap: 0.4rem; }
@media (min-width: 720px) { .project-row__tags { display: flex; } }
.project-row__tags span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-faint); border: 1px solid var(--line-2); padding: 0.3rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.project-row__arrow { font-size: 1.2rem; color: var(--ink-faint); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.project-row:not(.project-row--static):hover .project-row__arrow { transform: translateX(4px); color: var(--blue-d); }

/* ── WORK CARDS (grid variant) ── */
.grid-work { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-work { grid-template-columns: repeat(2, 1fr); } .grid-work .reveal:nth-child(2n) { transition-delay: 0.12s; } }
.work-card { display: block; }
.work-card__frame {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.work-card:hover .work-card__frame { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.work-card__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.work-card__dots { display: flex; gap: 5px; flex-shrink: 0; }
.work-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.work-card__url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-card:hover .work-card__url { color: var(--blue-d); border-color: var(--blue); }
.work-card__screen { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; justify-content: center; }
.work-card__wf { display: block; border-radius: 6px; }
.work-card__wf--block { height: 44%; min-height: 46px; background: linear-gradient(120deg, var(--blue-mist), var(--paper-2)); }
.work-card__wf--line { height: 9px; background: var(--paper-2); }
.work-card__wf--line.is-short { width: 55%; }
.work-card__cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 0.4rem; display: block; }
.work-card__title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin-bottom: 0.5rem; transition: color 0.3s var(--ease); }
.work-card:hover .work-card__title { color: var(--blue-d); }
.work-card__desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.75rem; max-width: 46ch; }
.work-card__link { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue-d); letter-spacing: 0.03em; }

/* ── TECH LIST ── */
.tech-list { display: flex; flex-wrap: wrap; gap: 0.6rem 0.8rem; margin-top: 1.5rem; }
.tech-list li { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); padding: 0.45rem 1rem; border: 1px solid rgba(21, 159, 180, 0.35); border-radius: 999px; }

/* ── CTA BAND ── */
.cta-band { text-align: center; }
.cta-band__title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.cta-band__desc { color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ── FORM ── */
.contact-layout { display: grid; gap: 4rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 3fr 2fr; } }
.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row--split { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 0.5rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23123E62' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-d); box-shadow: 0 0 0 3px var(--blue-mist); }
.form-field--honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; margin-top: 0.5rem; }
.form__submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.form__status { font-size: 0.9rem; font-weight: 500; padding: 0.9rem 1.1rem; border-radius: 10px; display: none; }
.form__status.is-success { display: block; background: #E7F1E3; color: #3E5A32; }
.form__status.is-error { display: block; background: #F6E3DE; color: #8A3A28; }

.contact-info { border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 960px) { .contact-info { border-top: none; border-left: 1px solid var(--line); padding-top: 0; padding-left: 3rem; } }
.contact-info__title { font-size: 1.3rem; margin-bottom: 1.5rem; }
.contact-info__item { margin-bottom: 1.5rem; }
.contact-info__label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.3rem; }
.contact-info__value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--blue-d); }

/* ── PRICING ── */
#pricing { scroll-margin-top: 6rem; }
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: start; } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.price-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.price-card--featured { border-color: var(--blue); box-shadow: 0 30px 70px -42px var(--blue-d); }
@media (min-width: 1040px) { .price-card--featured { transform: translateY(-12px); } }
.price-card__badge {
  position: absolute;
  top: -0.85rem;
  left: 2rem;
  background: var(--blue-d);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.price-card__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.4rem; }
.price-card__price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--blue-d); line-height: 1; margin-bottom: 0.5rem; }
.price-card__desc { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.75rem; }
.price-card__list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex: 1; }
.price-card__list li { display: flex; align-items: baseline; gap: 0.6rem; color: var(--ink-soft); font-size: 0.92rem; }
.price-card__list li::before { content: ""; width: 12px; height: 2px; background: var(--blue); flex-shrink: 0; transform: translateY(-4px); border-radius: 2px; }
.price-card__cta { width: 100%; justify-content: center; }
.pricing-note { text-align: center; color: var(--ink-faint); font-size: 0.8rem; font-family: var(--font-mono); margin-top: 2.5rem; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: var(--line); padding: 5rem 0 2rem; position: relative; z-index: 1; overflow: hidden; }
.footer__inner { position: relative; z-index: 1; }

.footer__cta { padding-bottom: 3.5rem; border-bottom: 1px solid rgba(228, 222, 210, 0.12); }
.footer__cta .eyebrow { color: var(--teal); }
.footer__cta .eyebrow::before { color: var(--teal); }
.footer__cta-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 16ch;
  transition: color 0.3s var(--ease);
}
.footer__cta-title:hover { color: var(--blue); }
.footer__email {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  color: var(--line);
  border-bottom: 1px solid rgba(228, 222, 210, 0.28);
  padding-bottom: 0.3rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__email:hover { color: var(--blue); border-color: var(--blue); }

.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; padding: 3.5rem 0; position: relative; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; } }
.footer__col--brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer__col--brand { grid-column: auto; } }
.footer__col { position: relative; z-index: 1; }
.footer__brand { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 1rem; }
.footer__tagline { color: var(--ink-faint); font-size: 0.95rem; max-width: 34ch; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.footer__social .footer__social-link {
  width: 40px; height: 40px;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(228, 222, 210, 0.18);
  border-radius: 50%;
  color: var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.footer__social .footer__social-link:hover { color: var(--paper); border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.footer__col-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; }
.footer__col a, .footer__col p { display: block; color: var(--line); font-size: 0.95rem; margin-bottom: 0.6rem; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--blue); }

.footer__wordmark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 22vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(228, 222, 210, 0.13);
  user-select: none;
}
.footer__wordmark span { color: rgba(30, 97, 136, 0.5); -webkit-text-stroke: 0; }

.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(228, 222, 210, 0.12); font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.footer__bottom-right { display: inline-flex; align-items: center; gap: 1.5rem; }
.footer__bottom-right a { color: var(--line); transition: color 0.3s var(--ease); }
.footer__bottom-right a:hover { color: var(--blue); }

@media (max-width: 640px) {
  .site-footer { padding: 4rem 0 2rem; }
  .footer__cta { padding-bottom: 2.5rem; }
  .footer__cta-title { font-size: 2.1rem; max-width: 12ch; }
  .footer__email { font-size: 1.15rem; margin-top: 1.1rem; }
  .footer__grid { gap: 2rem 1.25rem; padding: 2.75rem 0 3rem; }
  .footer__tagline { font-size: 1rem; max-width: none; }
  .footer__col-title { font-size: 0.72rem; margin-bottom: 0.9rem; }
  .footer__col a, .footer__col p { font-size: 1rem; margin-bottom: 0.7rem; }
  .footer__social { margin-top: 1.5rem; }
  .footer__social .footer__social-link { width: 46px; height: 46px; }
  .footer__wordmark { font-size: 27vw; -webkit-text-stroke-width: 1px; }
  .footer__wordmark span { color: rgba(30, 97, 136, 0.55); }
  .footer__bottom { padding-top: 1.75rem; font-size: 0.74rem; gap: 0.5rem; flex-direction: column; align-items: flex-start; }
}

/* ── LEGAL / PRIVACY ── */
.legal__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 2.25rem 0 0.6rem; }
.legal__title:first-child { margin-top: 0; }
.legal__body { color: var(--ink-soft); margin-bottom: 0.5rem; }

/* ── COOKIE CONSENT ── */
.cookie {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
}
.cookie.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie__icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; transform-origin: 50% 70%; animation: cookieWobble 3.5s ease-in-out infinite; }
.cookie__text { flex: 1 1 200px; font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.cookie__actions { flex: 1 1 100%; display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; }
.cookie__more { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.cookie__more:hover { color: var(--blue-d); border-color: var(--blue); }
.cookie__accept {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--blue-d);
  color: var(--paper);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie__accept:hover { background: var(--blue); transform: translateY(-2px); }
@keyframes cookieWobble { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@media (min-width: 560px) { .cookie { right: auto; } }

/* ── BACK TO TOP ── */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-d);
  color: var(--paper);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .to-top { right: 2rem; bottom: 2rem; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero3d__eyebrow, .hero3d__title, .hero3d__subtitle, .hero3d__actions, .hero3d__stats { opacity: 1; }
}
