/* ---------- Tokens ---------- */
:root {
  --paper: #f1efe7;
  --paper-2: #e9e6db;
  --ink: #0a0e0b;
  --ink-soft: #1a1f1c;
  --green: #0e3320;
  --green-bright: #1f6a3f;
  --green-dim: #284d36;
  --rule: rgba(10, 14, 11, 0.14);
  --rule-strong: rgba(10, 14, 11, 0.35);

  /* sky — set live by JS based on Budapest sun position */
  --sky-top: #cae6f8;
  --sky-horizon: #f5e4a0;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --pad: clamp(20px, 2.5vw, 40px);
  --gutter: clamp(16px, 2vw, 28px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; color: var(--ink); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
  background:
    linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-horizon) 3%,
      var(--paper) 45%,
      var(--paper) 100%) 0 0 / 100% 100vh no-repeat,
    var(--paper);
  transition: background-color 4s linear;
}

/* No-JS fallback: keep the native pointer so people without JS can still navigate */
.no-js body { cursor: auto; }
.no-js .cursor { display: none; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__headline .word,
  .hero__headline .word > span { animation: none !important; }
  .hero__headline .word { clip-path: none !important; }
  .hero__headline .word > span { transform: none !important; }
}

/* Grain texture overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #2ab573;
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: width .25s cubic-bezier(.2,.7,.2,1),
              height .25s cubic-bezier(.2,.7,.2,1),
              background .2s ease,
              opacity .2s ease;
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: #2ab573;
}
.cursor .cursor__label {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity .15s ease;
}
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none) {
  body { cursor: auto; }
  .cursor { display: none; }
}

/* Keyboard focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Brand mark (own layer, always #2ab573) ---------- */
.brand {
  position: fixed;
  top: 18px;
  left: var(--pad);
  z-index: 110;
  color: #2ab573;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: none;
}
.brand svg.header__image {
  height: 20px;
  width: auto;
  display: block;
}
.brand .header__path {
  fill: currentColor;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  z-index: 100;
  mix-blend-mode: difference;
  color: #f1efe7;
}
.nav a, .nav button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: none;
}
.nav__spacer {
  display: inline-block;
  width: 120px;
  height: 20px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__time {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__time .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Side counters ---------- */
.side {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: difference;
  filter: invert(1);
}
.side--left { left: 18px; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); }
.side--right { right: 18px; }
.side--right .counter {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.side--right .counter .now {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
}
.side--right .counter .total { opacity: 0.7; }
.side--right .counter .bar {
  width: 1px; height: 60px;
  background: currentColor;
  opacity: 0.3;
  margin: 4px 0;
  position: relative;
}
.side--right .counter .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleY(var(--p, 0));
  transform-origin: top;
  transition: transform .35s ease;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  padding: 110px var(--pad) 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 16px;
}
.hero__eyebrow .star {
  display: inline-block;
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__headline {
  align-self: center;
  margin: 0;
  padding: 4vh 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 10.5vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__headline em {
  font-style: italic;
  color: #2ab573;
}
.hero__headline .word {
  display: inline-block;
  clip-path: inset(-0.1em -0.06em 0 -0.06em);
  vertical-align: bottom;
  padding-bottom: 0.04em;
  animation: descenderReveal 0.9s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes descenderReveal {
  to { clip-path: inset(-0.2em -0.06em -0.35em -0.06em); }
}
.hero__headline .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rise {
  to { transform: translateY(0); }
}

.hero__foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: end;
}
.hero__foot .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 8px;
}
.hero__foot p { margin: 0; max-width: 38ch; }
.hero__scroll {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.hero__scroll .line {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.hero__scroll .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--green);
  transform: translateX(-100%);
  animation: dash 2.4s ease-in-out infinite;
}
@keyframes dash {
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 88px);
  white-space: nowrap;
  line-height: 1;
}
.marquee__track span {
  display: inline-flex; align-items: center; gap: 60px;
}
.marquee__track .dot {
  width: 14px; height: 14px;
  background: var(--green-bright);
  border-radius: 50%;
  display: inline-block;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Orbit scene ---------- */
.scene {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 55%, #04190e 0%, #020c07 55%, #010604 100%);
  color: #f1efe7;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
}
.scene::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,106,63,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,106,63,0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  pointer-events: none;
}
.scene__chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(241,239,231,0.65);
  border-bottom: 1px solid rgba(127,242,168,0.12);
  z-index: 3;
}
.scene__chrome-mid { display: inline-flex; align-items: center; gap: 8px; }
.scene__chrome-mid .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7df2a8;
  box-shadow: 0 0 8px #7df2a8;
  animation: pulse 2s infinite;
}

.scene__copy {
  position: absolute;
  top: 18%;
  left: var(--pad);
  z-index: 3;
  max-width: 38ch;
}
.scene__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.scene__title em {
  font-style: italic;
  color: #7df2a8;
  text-shadow: 0 0 30px rgba(125,242,168,0.35);
}
.scene__sub {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 34ch;
  opacity: 0.75;
}

.scene__stage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  z-index: 2;
}
.stage__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateX(18%);
}
@media (max-width: 980px) {
  .stage__inner { transform: none; }
}

.halo {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(31,106,63,0.55) 0%,
    rgba(31,106,63,0.18) 25%,
    rgba(31,106,63,0) 60%);
  filter: blur(20px);
  pointer-events: none;
}
.halo--2 {
  width: 1300px; height: 1300px;
  background: radial-gradient(circle at center,
    rgba(125,242,168,0.18) 0%,
    rgba(125,242,168,0) 55%);
}

.globe {
  position: relative;
  width: 180px; height: 180px;
}
.globe__svg {
  width: 100%; height: 100%;
  display: block;
}

.orbits {
  position: absolute;
  top: 50%; left: 50%;
  width: 1400px; height: 1400px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}

.badge {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 1px;
  offset-rotate: 0deg;
  animation: travel var(--dur, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes travel {
  to { offset-distance: 100%; }
}
.badge--mobile {
  offset-path: path('M -193.1 27.14 A 195 70 -8 1 1 193.1 -27.14 A 195 70 -8 1 1 -193.1 27.14');
}
.badge--ui {
  offset-path: path('M -287.18 40.36 A 290 108 -8 1 1 287.18 -40.36 A 290 108 -8 1 1 -287.18 40.36');
}
.badge--api {
  offset-path: path('M -346.59 48.71 A 350 132 -8 1 1 346.59 -48.71 A 350 132 -8 1 1 -346.59 48.71');
}
.badge--db {
  offset-path: path('M -440.67 61.93 A 445 168 -8 1 1 440.67 -61.93 A 445 168 -8 1 1 -440.67 61.93');
}
.badge--security {
  offset-path: path('M -665.46 93.52 A 672 253 -8 1 1 665.46 -93.52 A 672 253 -8 1 1 -665.46 93.52');
}

.badge__inner {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(8, 22, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(125,242,168,0.4);
  border-radius: 999px;
  color: #d6f5e1;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(31,106,63,0.45);
  transition: transform .3s ease, border-color .3s ease, color .3s ease;
}
.badge:hover .badge__inner {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: #7df2a8;
  color: #ffffff;
  box-shadow: 0 0 32px rgba(125,242,168,0.7);
}
.badge .ico {
  width: 18px; height: 18px;
  color: #7df2a8;
  flex: 0 0 18px;
}

.orbit {
  transition: stroke .3s ease, stroke-opacity .3s ease, stroke-width .3s ease;
}
.orbit.is-active {
  stroke: #f1efe7;
  stroke-opacity: 0.95;
  stroke-width: 1.1;
}

.readout {
  position: absolute;
  z-index: 4;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(241,239,231,0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.readout .r-lbl {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid rgba(125,242,168,0.25);
  color: #7df2a8;
}
.readout--tl { top: 24px; left: var(--pad); }
.readout--tr { top: 24px; right: var(--pad); }
.readout--bl { bottom: 28px; left: var(--pad); }
.readout--br { bottom: 28px; right: var(--pad); }
.r-live { display: inline-flex; align-items: center; gap: 6px; color: #7df2a8; }
.r-dot { width: 6px; height: 6px; background: #7df2a8; border-radius: 50%; box-shadow: 0 0 6px #7df2a8; animation: pulse 2s infinite; }

@media (max-width: 780px) {
  .scene__copy { position: relative; top: auto; left: auto; padding: 80px var(--pad) 0; }
  .scene { grid-template-rows: auto auto 1fr; }
  .scene__stage { min-height: 80vh; }
  .globe { width: 240px; height: 240px; }
  .badge__lbl { display: none; }
  .badge__inner { padding: 6px; }
  .readout--tl, .readout--tr { display: none; }
}

/* ---------- Featured (AFRE — disabled in markup but kept for safety) ---------- */
.featured {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}
.featured__media {
  position: relative;
  overflow: hidden;
  background: var(--green-dim);
}
.featured__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85);
}
.featured__media .tag {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured__media .tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green-bright);
  border-radius: 50%;
  display: inline-block;
}
.featured__body {
  padding: 110px var(--pad) 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.featured__kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
.featured__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(64px, 9vw, 156px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 24px 0;
}
.featured__title em { font-style: italic; color: var(--green-bright); }
.featured__copy {
  max-width: 50ch;
  font-size: 17px;
  line-height: 1.5;
  opacity: 0.85;
}
.featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper);
  text-decoration: none;
  align-self: flex-start;
  padding: 14px 22px 14px 24px;
  border: 1px solid rgba(241,239,231,0.4);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color .3s ease;
}
.featured__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-bright);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.featured__cta:hover::before { transform: translateY(0); }
.featured__cta .arrow {
  display: inline-block;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.featured__cta:hover .arrow { transform: translateX(6px); }

/* ---------- Projects ---------- */
.projects-intro {
  padding: 120px var(--pad) 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.projects-intro h2 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}
.projects-intro .big {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.projects-intro .big em { font-style: italic; color: var(--green); }

.project {
  position: relative;
  min-height: 50vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}
.project:nth-child(even) .project__media { order: 2; }
.project:nth-child(even) .project__body { order: 1; }

.project__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  text-decoration: none;
  color: inherit;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: saturate(0.85);
}
.project:hover .project__media img {
  transform: scale(1.04);
  filter: saturate(1);
}
.project__media .index {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.project__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  text-align: center;
  overflow: hidden;
}
.project__media--placeholder .project__placeholder {
  width: 100%;
}
.project__media--placeholder .ph-url {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
  word-break: break-word;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.project__media--placeholder .ph-url em {
  font-style: italic;
  color: #2ab573;
}
.project__media--placeholder:hover .ph-url {
  transform: translateY(-3px);
}

.is-bg-paper   { background: #f1efe7; color: #0a0e0b; }
.is-bg-paper2  { background: #e9e6db; color: #0a0e0b; }
.is-bg-green   { background: #0e3320; color: #f1efe7; }
.is-bg-ink     { background: #0a0e0b; color: #f1efe7; }
.is-bg-bright  { background: #2ab573; color: #0a0e0b; }
.is-bg-bright .ph-url em { color: #f1efe7; }
.is-bg-paper .ph-url em,
.is-bg-paper2 .ph-url em { color: #0e3320; }

.project__body {
  padding: 40px var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  position: relative;
}
.project__num {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
}
.project__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.project__title em { font-style: italic; color: var(--green); }
.project__meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  max-width: 480px;
}
.project__meta dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  font-size: 10px;
  align-self: center;
}
.project__meta dd { margin: 0; }
.project__meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.project__meta a:hover { color: var(--green); border-bottom-color: var(--green); }
.project__cta {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}
.project__cta .word { display: inline-block; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.project__cta:hover .word { transform: translateY(-100%); }
.project__cta .word::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 100%;
}

.swipe-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--pad);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}
.swipe-note .arrow {
  display: inline-flex; align-items: center; gap: 10px;
}

/* ---------- Manifesto strip ---------- */
.manifesto {
  background: #2ab573;
  color: #f1efe7;
  padding: 18vh var(--pad);
  position: relative;
  overflow: hidden;
}
.manifesto p {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.manifesto p em { font-style: italic; color: var(--ink); }
.manifesto .small {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 60px;
  display: inline-block;
  opacity: 0.7;
}

/* ---------- Contact ---------- */
.contact {
  min-height: 100vh;
  padding: 120px var(--pad) 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.contact__head h2 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}
.contact__head .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.55;
}
.contact__main {
  padding: 60px 0;
  text-align: center;
}
.contact__main h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(56px, 11vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.contact__main h3 a {
  color: var(--green);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color .3s ease;
}
.contact__main h3 a:hover { color: var(--ink); }
.contact__main h3 a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.contact__main h3 a:hover::after { transform: scaleX(1); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}
.contact__grid .col .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 10px;
  display: block;
}
.contact__grid .col p, .contact__grid .col a {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.contact__grid .col a:hover { color: var(--green); }

/* footer band */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 22px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  flex-wrap: wrap;
  gap: 8px;
}
.foot a { color: inherit; text-decoration: none; opacity: 0.7; }
.foot a:hover { opacity: 1; color: #b6e3c1; }

/* ---------- Big bottom wordmark ---------- */
.wordmark {
  background: var(--ink);
  color: var(--paper);
  padding: 60px var(--pad);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.wordmark .row {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  padding: 140px var(--pad) 60px;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound__num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.85;
  color: var(--green);
  margin: 0;
}
.notfound__msg {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
}
.notfound__sub {
  opacity: 0.65;
  margin: 0 auto 36px;
  max-width: 38ch;
}
.notfound__back {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

/* responsive */
@media (max-width: 780px) {
  /* Keep the nav, but on mobile show only the Contact link
     (it's always the last link in .nav__links). On the contact page
     itself, hide it via aria-current="page" — no point linking there. */
  .nav__links { gap: 0; }
  .nav__links a:not(:last-child) { display: none; }
  .nav__links a[aria-current="page"] { display: none; }

  .featured, .project { grid-template-columns: 1fr; }
  .featured__media { min-height: 60vh; }
  .project__media { min-height: 50vh; }
  .project:nth-child(even) .project__media { order: 0; }
  .project:nth-child(even) .project__body { order: 0; }
  .featured__body, .project__body { padding: 60px var(--pad); }
  .projects-intro { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .side { display: none; }
  .hero__foot { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  body { background: white !important; cursor: auto !important; }
  body::before, .cursor, .nav, .side, .scene, .marquee, .wordmark, .manifesto::before { display: none !important; }
  .brand { position: static; }
  .hero, .contact { min-height: auto; padding: 24px; }
  .hero__headline, .scene__title { font-size: 48px !important; }
  .project { page-break-inside: avoid; }
  a { color: var(--ink) !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; opacity: 0.7; }
}
