/* ============================================================
   Darco Murja — site styles
   Midnight + serif. Each project brings its own glow colour.
   ============================================================ */
:root {
  --bg: #F7F7F2;
  --bg-2: #EFEFE7;
  --panel: #FFFFFF;
  --text: #14261C;
  --text-2: #2C3D33;
  --muted: #4F5E55;
  --faint: #7A867E;
  --line: #DADBD3;
  --line-2: #C3C6BC;
  --accent: #1F6B45;
  --accent-ink: #17573A;
  --on-accent: #FFFFFF;

  --serif: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --g: clamp(20px, 4vw, 60px);
  --maxw: 1360px;
  --sec: clamp(96px, 12vw, 170px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; width: auto; height: auto; }   /* width/height attributes (build.py sized()) only give the shape */
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--g); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.8rem, 6.6vw, 6.6rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance;
}

.h2 {
  margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.01em; text-wrap: balance; max-width: 16ch;
}
.h3 { margin: 0; font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.lede { margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.4vw, 1.22rem); max-width: 50ch; text-wrap: pretty; }
.kicker { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-ink); }
.btn--line:hover { background: transparent; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--text); }
.link { text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--g);
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled { background: rgba(247, 247, 242, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); padding-block: 12px; }
.logo { font-family: var(--serif); font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: var(--on-accent); padding: 10px 18px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 6px; padding: 100px var(--g) 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a { font-family: var(--serif); font-size: 44px; color: var(--text); line-height: 1.2; }
  .nav .btn { font-family: var(--sans); font-size: 16px; margin-top: 24px; padding: 14px 24px; }
  .hdr.is-open .nav { opacity: 1; visibility: visible; }
  /* the blur on a scrolled header would make the open menu only as tall as the header (over the logo): drop it while open */
  .hdr.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(130px, 15vw, 190px) 0 clamp(60px, 7vw, 90px); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--g); align-items: end; }
.hero .display { font-size: clamp(2.8rem, 6.4vw, 6.4rem); max-width: 13ch; }
.hero__side .lede { font-size: clamp(1.05rem, 1.3vw, 1.18rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.strip { list-style: none; margin: clamp(56px, 7vw, 90px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.strip a { display: block; text-decoration: none; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border-radius: 12px; border: 1px solid var(--line); transition: transform .5s var(--ease); }
.strip a:hover img { transform: translateY(-6px); }
.strip span { display: block; margin-top: 12px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.strip small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; align-items: start; }
  .strip { grid-template-columns: 1fr 1fr; }
}
.hero .display, .hero__side, .strip { animation: rise .9s var(--ease) both; }
.hero__side { animation-delay: .1s; }
.strip { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Stage ---------- */
.stage { position: relative; }
.stage__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: var(--g);
  padding: 96px var(--g) 50px; max-width: 1600px; margin: 0 auto;
}

.chap { position: relative; min-height: 380px; }
.chap article { position: absolute; inset: 50% 0 auto; translate: 0 -50%; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.chap article.on { opacity: 1; transform: none; pointer-events: auto; }
.chap__where { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.chap h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(2.2rem, 4.2vw, 3.9rem); line-height: 1; }
.chap__idea { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.25; color: var(--text-2); margin: 20px 0 0; max-width: 30ch; }
.chap dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 24px 0 0; font-size: 15px; max-width: 52ch; }
.chap dt { color: var(--muted); }
.chap dd { margin: 0; }
.chap__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.prog { position: absolute; left: var(--g); bottom: 34px; display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--faint); }
.prog li { width: 120px; }
.prog b { display: block; height: 2px; background: var(--line); margin-bottom: 8px; overflow: hidden; }
.prog b i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }
.prog li.on { color: var(--text); }

/* Devices */
.devs { position: relative; display: grid; place-items: center; }
.laptop { width: min(100%, 800px); position: relative; }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; background: #000; border: 10px solid #1F2621; border-bottom-width: 14px; border-radius: 16px 16px 4px 4px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(20, 38, 28, .35); }
.laptop__base { height: 14px; margin: 0 -7%; background: #2C342E; border-radius: 0 0 18px 18px; position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 6px; translate: -50% 0; background: #161C18; border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: -2%; bottom: -2%; width: min(23%, 180px); aspect-ratio: 9 / 19.3; background: #000; border: 7px solid #1F2621; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 50px -20px rgba(20, 38, 28, .4); }
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.scr.on { opacity: 1; }
.scr img { width: 100%; will-change: transform; }

@media (max-width: 900px) {
  .stage__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 84px; gap: 22px; }
  .devs { order: -1; padding-right: 8%; }
  .chap { min-height: 0; height: 100%; }
  .chap article { inset: 0 0 auto; translate: none; }
  .chap dl { display: none; }
  .chap__idea { margin-top: 12px; font-size: 1.2rem; }
  .chap__ctas { margin-top: 18px; }
  .prog { display: none; }
}
@media (max-width: 900px) and (max-height: 700px) { .chap__idea { display: none; } }

/* ---------- Generic sections ---------- */
.sec { padding-block: var(--sec); }
.sec--line { border-top: 1px solid var(--line); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--g); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 860px) { .sec__head { grid-template-columns: 1fr; gap: 22px; } }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.grid-4 > div { background: var(--panel); padding: clamp(24px, 2.6vw, 36px); }
.grid-4 svg { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 26px; }
.grid-4 p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

.known { margin-top: clamp(56px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--g); }
.known h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; }
.known ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.known li { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--text-2); }
@media (max-width: 860px) { .known { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); counter-reset: step; }
.steps li { border-top: 1px solid var(--line-2); padding-top: 22px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent-text); margin-bottom: 22px; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.more { margin-top: 50px; }

/* About teaser */
.teaser { display: grid; grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--faint); font-size: 14px; padding: 20px; }
.portrait__ph span { font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--line-2); display: block; margin-bottom: 10px; }
.teaser p { color: var(--muted); max-width: 52ch; }
.teaser .lede { color: var(--text-2); margin-top: 26px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 34px; padding: 0; }
.roles li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text-2); }
@media (max-width: 800px) { .teaser { grid-template-columns: 1fr; } .portrait { max-width: 380px; } }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-top: var(--sec); position: relative; overflow: hidden; isolation: isolate; }

.ftr__cta .display { font-size: clamp(2.8rem, 7.4vw, 7rem); max-width: 14ch; }
.ftr__mail { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.ftr__mail a { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 3.2rem); text-decoration: none; border-bottom: 1px solid var(--line-2); line-height: 1.15; word-break: break-word; transition: border-color .3s; }
.ftr__mail a:hover { border-color: var(--text); }
.copy { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: none; display: grid; place-items: center; cursor: pointer; position: relative; transition: background .3s, color .3s; }
.copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.copy svg { width: 18px; height: 18px; }
.copy[data-done]::after { content: "Copied"; position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; background: var(--text); color: var(--bg); font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ftr__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--g); margin-top: clamp(80px, 10vw, 140px); padding-block: 40px; border-top: 1px solid var(--line); font-size: 15px; }
.ftr__cols .ftr__h { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--faint); }
.ftr__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr__cols a { text-decoration: none; color: var(--muted); }
.ftr__cols a:hover { color: var(--text); }
.ftr__cols p { margin: 0; color: var(--muted); max-width: 32ch; }
.ftr__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 24px 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
@media (max-width: 860px) { .ftr__cols { grid-template-columns: 1fr 1fr; } .ftr__cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 100px); position: relative; isolation: isolate; }

.phero .display { font-size: clamp(3rem, 7.4vw, 7.2rem); max-width: 14ch; }
.phero .lede { margin-top: 28px; }

/* ---------- Case study ---------- */
.case-hero { padding: clamp(140px, 16vw, 200px) 0 0; position: relative; isolation: isolate; }

.crumb { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--text); }
.case-hero .display { font-size: clamp(3rem, 7vw, 6.8rem); max-width: 15ch; }
.case-hero__idea { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--text-2); max-width: 32ch; margin: 24px 0 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin: clamp(48px, 6vw, 72px) 0 0; padding: 22px 0; border-block: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--faint); font-size: 13px; margin-bottom: 4px; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 20px; } }
.showcase { position: relative; margin-top: clamp(60px, 8vw, 100px); padding: 0 6% 0 0; }
.showcase .laptop { margin: 0 auto; width: min(100%, 1040px); }
.showcase .phone { right: 2%; bottom: -4%; width: min(20%, 210px); }
.showcase .scr { opacity: 1; }
.showcase .scr img { transition: transform 9s linear; }
.showcase:hover .scr img, .showcase.is-auto .scr img { transform: translateY(var(--pan, 0)); }
.showcase__hint { text-align: center; color: var(--faint); font-size: 13px; margin: 38px 0 0; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--g); padding-block: clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.story:first-of-type { border-top: 1px solid var(--line); }
.story .num { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--faint); margin: 0 0 12px; }
.story h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; }
.story__body p { margin: 0 0 18px; color: var(--text-2); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 56ch; }
.story__body p.muted { color: var(--muted); font-size: 16px; }
/* Needs, and how they were met: a route of stops, each with a small picture */
.story--wide { grid-template-columns: 1fr; row-gap: clamp(30px, 5vw, 56px); }
.solved { list-style: none; margin: 0; padding: 0; }
.solved li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; padding-block: clamp(28px, 4vw, 48px); }
.solved li::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; border-left: 2px dashed var(--line-2); }
.solved li:first-child::before { top: 50%; }
.solved li:last-child::before { bottom: 50%; }
.solved__n { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); font: 500 13px var(--mono); color: var(--accent-text); }
.solved h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.1; letter-spacing: -.03em; }
.solved__txt > div + div { margin-top: 14px; }
.solved small { display: block; margin-bottom: 6px; font: 500 12.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.solved p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 52ch; }
.solved__txt > div:last-child p { color: var(--text-2); }
@media (max-width: 860px) {
  .solved li { grid-template-columns: 44px minmax(0, 1fr); }
  .solved .nv { grid-column: 2; }
}

/* the small pictures */
.nv { border-radius: 12px; font: 500 13px/1.5 var(--mono); max-width: 440px; width: 100%; }
.nv--term { background: #070D0F; border: 1px solid var(--line-2); padding: 18px 20px; color: var(--text-2); }
.nv--term p { margin: 0; color: inherit; }
.nv--term b { color: var(--accent-text); font-weight: 500; }
.nv--term .x { color: #FF7A72; }
.nv--term .ok { color: #9BE58C; }
.nv--term p + p:not(.x):not(.ok) { margin-top: 10px; }

.nv--pass { display: grid; grid-template-columns: 1fr auto; background: var(--b); color: var(--a); overflow: hidden; }
.nv-pass__main { padding: 18px 20px; border-right: 2px dashed color-mix(in srgb, var(--a) 25%, transparent); }
.nv--pass small { display: block; color: var(--c); letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.nv-pass__route { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 14px; }
.nv-pass__route span { display: grid; font-size: 12px; }
.nv-pass__route b { font: 700 2rem/1 var(--sans); letter-spacing: -.03em; }
.nv-pass__route span:last-child { text-align: right; }
.nv-pass__route i { font-style: normal; font-size: 18px; color: var(--c); }
.nv--pass dl { display: flex; gap: 18px; margin: 0; }
.nv--pass dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.nv--pass dd { margin: 0; font-size: 12.5px; }
.nv-pass__stub { display: grid; align-content: space-between; justify-items: center; gap: 12px; padding: 18px 16px; background: var(--a); color: var(--d); }
.nv-pass__stub span { width: 30px; height: 2px; margin-bottom: 58px; background: var(--b); box-shadow: 0 5px 0 var(--b), 0 10px 0 var(--b), 0 15px 0 var(--b), 0 20px 0 var(--b), 0 25px 0 var(--b), 0 30px 0 var(--b), 0 35px 0 var(--b), 0 40px 0 var(--b), 0 45px 0 var(--b), 0 50px 0 var(--b), 0 55px 0 var(--b), 0 60px 0 var(--b); }   /* barcode made of flat bars */

.nv--pal { display: grid; grid-template-columns: repeat(4, 1fr); height: 170px; overflow: hidden; }
.nv--pal span { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; font-size: 11.5px; }
.nv--pal b { font-weight: 500; font-family: var(--sans); font-size: 13px; }

.nv--call { background: var(--a); padding: 14px; }
.nv-call__admin { margin: 0 0 10px !important; color: rgba(255, 255, 255, .6) !important; font-size: 12px; }
.nv-call__admin b { color: #9BE58C; font-weight: 500; }
.nv-call__ticket { position: relative; background: var(--b); color: var(--a); border-radius: 10px; padding: 16px 18px; }
.nv-call__ticket small { display: block; color: var(--c); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.nv-call__ticket strong { display: block; margin: 6px 0 12px; font: 700 1.9rem/1 var(--sans); letter-spacing: -.03em; }
.nv-call__ticket dl { display: flex; gap: 18px; margin: 0; }
.nv-call__ticket dt { font-size: 10.5px; text-transform: uppercase; opacity: .6; }
.nv-call__ticket dd { margin: 0; }
.nv-call__btn { position: absolute; right: 16px; top: 16px; background: var(--c); color: #fff; padding: 5px 10px; border-radius: 6px; font-size: 12px; }

.nv--proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nv-proj__c { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; padding: 10px; border-radius: 10px; overflow: hidden; font-size: 11.5px; line-height: 1.3; }
.nv-proj__c i { position: absolute; }
.nv-proj__c--0 i { width: 70%; aspect-ratio: 1; border-radius: 50%; right: -18%; top: -10%; background: rgba(255, 255, 255, .16); }
.nv-proj__c--1 i { left: 12px; top: 12px; width: 6px; height: 46%; background: rgba(255, 255, 255, .25); box-shadow: 12px 0 0 rgba(255, 255, 255, .25), 24px 0 0 rgba(255, 255, 255, .25), 36px 0 0 rgba(255, 255, 255, .25); }
.nv-proj__c--2 i { left: 12px; top: 12px; width: 52%; aspect-ratio: 1; background: rgba(16, 22, 43, .16); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.nv--doc { background: var(--panel); border: 1px solid var(--line-2); padding: 18px 20px; }
.nv--doc small { display: block; margin-bottom: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.nv--doc p { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); max-width: none; color: var(--muted); }
.nv--doc p b { font-weight: 500; color: var(--text-2); text-align: right; }
.nv--doc p b::after { content: "  ✓"; color: #9BE58C; }
.story__quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 3rem) !important; line-height: 1.15 !important; color: var(--text) !important; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 24px; } }

.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.swatches div { border-radius: 14px; aspect-ratio: 1 / 1.1; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; font-size: 13px; border: 1px solid var(--line); }
.swatches b { font-size: 15px; font-weight: 500; }
.specimens { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.specimens div { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--panel); }
.specimens span { display: block; font-size: 64px; line-height: 1; margin-bottom: 14px; }
.specimens small { color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.tags li { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
@media (max-width: 600px) { .swatches { grid-template-columns: 1fr 1fr; } }

.hl { display: grid; gap: clamp(60px, 8vw, 110px); }
.hl figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--g); align-items: center; }
.hl figure:nth-child(even) .hl__img { order: 2; }
.hl__img { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(20, 38, 28, .3); background: var(--panel); }
.hl__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hl figcaption h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.05; }
.hl figcaption p { margin: 14px 0 0; color: var(--muted); max-width: 40ch; }
@media (max-width: 860px) { .hl figure { grid-template-columns: 1fr; gap: 20px; } .hl figure:nth-child(even) .hl__img { order: 0; } }

.live { text-align: center; }
.live .h2 { margin: 0 auto; }
.live .lede { margin: 22px auto 0; }
.live__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.next { display: block; text-decoration: none; border-top: 1px solid var(--line); padding-block: clamp(70px, 9vw, 120px); position: relative; overflow: hidden; isolation: isolate; }


.next small { display: block; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.next strong { display: block; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1; transition: transform .6s var(--ease); }
.next:hover strong { transform: translateX(14px); }
.next span { display: block; margin-top: 14px; color: var(--muted); font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }

/* ---------- Work index ---------- */
.wlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 44px) var(--g); }
.wcard { display: block; text-decoration: none; }
.wcard__img { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-2); isolation: isolate; }

.wcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.1s var(--ease); }
.wcard:hover .wcard__img img { transform: scale(1.035); }
.wcard:hover 
.wcard h3 { margin: 20px 0 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.05; }
.wcard p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .wlist { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--g); padding-block: 30px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; }
.timeline p { margin: 0; color: var(--muted); max-width: 54ch; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.values div { border-top: 1px solid var(--line-2); padding-top: 22px; }
.values p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

/* ---------- Approach ---------- */
.big-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.big-steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--g); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.big-steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent-text); }
.big-steps h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.big-steps p { margin: 0 0 12px; color: var(--muted); }
.big-steps ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15.5px; }
.big-steps ul li { display: list-item; padding: 3px 0; border: 0; }
.big-steps ul li::before { content: none; }
@media (max-width: 860px) { .big-steps li { grid-template-columns: 1fr; gap: 14px; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq details p { margin: 0 0 28px; color: var(--muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; text-decoration: none; transition: padding .4s var(--ease); }
.channels a:hover { padding-left: 10px; }
.channels small { display: block; color: var(--faint); font-size: 13px; }
.channels strong { font-weight: 400; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; word-break: break-word; }
.channels svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 20px; }
.form h2 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.05; }
.form p.hint { margin: -8px 0 0; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 107, 69, .15); }
.field select { appearance: none; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234F5E55' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; padding-right: 40px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { justify-self: start; }
.form__note { font-size: 13px; color: var(--faint); margin: 0; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--g); }
.lost .lede { margin: 24px auto 34px; }

/* ---------- Live viewer ---------- */
.pv { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.pv.on { visibility: visible; }
.pv__bg { position: absolute; inset: 0; background: rgba(5, 8, 20, .76); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.pv.on .pv__bg { opacity: 1; }
.pv__box { position: relative; width: min(1240px, 100%); height: min(860px, 92vh); display: flex; flex-direction: column; gap: 12px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.pv.on .pv__box { transform: none; opacity: 1; }
.pv__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.pv__t { margin-right: auto; font-weight: 700; font-size: 20px; color: #fff; }
.pv__seg { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px; }
.pv__seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.pv__seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.pv__a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.pv__a:hover { background: var(--text); color: var(--bg); }
.pv__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: none; font-size: 22px; line-height: 1; cursor: pointer; }
.pv__stage { flex: 1; display: grid; place-items: center; min-height: 0; }
.pv__dev { width: 100%; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s; }
.pv__top { height: 32px; flex: none; background: #E9EBF1; display: flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 12px; color: #5F6680; }
.pv__top i { width: 10px; height: 10px; border-radius: 50%; background: #CDD1DC; }
.pv__top span { margin-left: 10px; }
.pv__dev iframe { flex: 1; border: 0; width: 100%; }
.pv__dev[data-m="phone"] { width: min(390px, 100%); height: min(800px, 100%); border-radius: 40px; border: 10px solid #121D20; }
.pv__dev[data-m="phone"] .pv__top { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Touch + menu fixes */
.logo { position: relative; z-index: 2; }
@media (hover: none) { .showcase__hint { display: none; } }

/* Flat palette chips + light-theme fixes */
.pal { display: inline-flex; gap: 4px; margin-right: 12px; vertical-align: -2px; }
.pal i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(20, 38, 28, .15); }
.chap__where { display: flex; align-items: center; }
.pv__bar { color: #fff; }
.pv__seg button { color: #fff; }
.pv__seg button[aria-pressed="true"] { background: #fff; color: var(--text); }
.pv__a, .pv__x { color: #fff; border-color: rgba(255, 255, 255, .4); }
.pv__a:hover { background: #fff; color: var(--text); }
.pv__bg { background: rgba(20, 38, 28, .78); }
.btn svg { color: currentColor; }
.chap__idea { color: var(--text-2); }
.prog b i { background: var(--accent); }
.prog li.on { color: var(--text); font-weight: 600; }
.next:hover strong { color: var(--accent-text); }

/* Refinements */
body { font-weight: 450; }
.logo { font-family: var(--sans); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.lede { font-weight: 450; }
.channels strong { font-weight: 600; letter-spacing: -.02em; }
.ftr__mail a { font-weight: 600; letter-spacing: -.03em; }
.faq summary { font-weight: 600; letter-spacing: -.02em; }

/* Footer: one solid dark-green block */
.ftr { background: var(--text); color: #F7F7F2; border-top: 0; }
.ftr .display { color: #F7F7F2; }
.ftr__mail a { border-color: rgba(247, 247, 242, .35); }
.ftr__mail a:hover { border-color: #F7F7F2; }
.ftr .copy { border-color: rgba(247, 247, 242, .35); color: #F7F7F2; }
.ftr .copy:hover { background: #F7F7F2; color: var(--text); border-color: #F7F7F2; }
.ftr__cols, .ftr__base { border-color: rgba(247, 247, 242, .16); }
.ftr__cols .ftr__h, .ftr__base { color: #A9B5AD; }
.ftr__cols a, .ftr__cols p { color: #D9E0DB; }
.ftr__cols a:hover { color: #fff; }
.h3 { font-weight: 700; letter-spacing: -.02em; }
