/* ==========================================================
   WAZO — Ideas made real
   ========================================================== */

:root {
  --black: #111111;
  --white: #F7F5EF;
  --terra: #D17A5B;
  --violet: #5B68FF;
  --ink: #111111;
  --paper: #F7F5EF;
  --muted: #6d6a63;
  --line: rgba(17, 17, 17, .14);
  --terra-deep: #9c4f34;
  --violet-deep: #2f37a8;

  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .9s var(--ease);
}
/* JS takes over section backgrounds: body fades between them while scrolling */
.morph .project, .morph .contact { background: transparent; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
::selection { background: var(--terra); color: var(--white); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.small { font-size: 11px; }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin: 0 0 24px;
  opacity: .8;
}

/* grain overlay */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

/* custom cursor (fine pointers only) */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 99;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--accent, var(--terra));
    pointer-events: none;
    mix-blend-mode: multiply;
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s;
  }
  .cursor span {
    font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--white); opacity: 0; transition: opacity .2s;
  }
  .cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; }
  .cursor.is-big span { opacity: 1; }
  body[data-tone="dark"] .cursor { mix-blend-mode: normal; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--black); --fg: var(--white);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--display); font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--bg);
  transition: transform .3s var(--ease), color .3s;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--terra);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--terra); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--dark {}
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--white); }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light:hover { color: var(--white); }
.btn--light::before { background: var(--black); }
.btn--light:hover { border-color: var(--black); }
.btn--violet { --bg: var(--violet); --fg: var(--white); }
.btn--violet::before { background: var(--white); }
.btn--violet:hover { color: var(--ink); border-color: var(--white); }
.btn--terra { --bg: var(--terra); --fg: var(--black); }
.btn--terra::before { background: var(--white); }
.btn--terra:hover { border-color: var(--white); }
.btn--xl { padding: 22px 38px; font-size: 20px; }

.link {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .4s var(--ease);
}
.link:hover { background-size: 100% 1px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--live::before { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled {
  background: rgba(247, 245, 239, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav.on-dark { color: var(--white); }
.nav.on-dark.is-scrolled { background: rgba(17, 17, 17, .72); border-color: rgba(255,255,255,.1); }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--mono); letter-spacing: .4em; font-size: 13px; font-weight: 700; }
.nav__logo svg { width: 38px; height: 20px; color: var(--terra); transition: transform .5s var(--ease); }
.nav__logo svg, .nav__logo span { opacity: var(--logo-in, 1); }
.nav__logo:hover svg { transform: skewX(-12deg); }
.nav__links { display: flex; gap: 32px; font-family: var(--display); font-size: 14px; font-weight: 600; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--terra); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: .8; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 0 rgba(209,122,91,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(209,122,91,0); } 100% { box-shadow: 0 0 0 0 rgba(209,122,91,0); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 90px;
  overflow: hidden;
}
.hero__construction {
  position: absolute; right: -10%; top: 50%;
  width: min(1000px, 90vw); height: auto;
  transform: translateY(-50%);
  color: var(--ink); opacity: .14;
  pointer-events: none;
}
.hero__construction circle { transform-origin: 400px 400px; animation: spin 80s linear infinite; }
.hero__construction circle:nth-child(2) { animation-direction: reverse; animation-duration: 110s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__lockup {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  margin-bottom: clamp(36px, 5vw, 64px);
}
.hero__mark { flex: none; width: clamp(120px, 17vw, 280px); aspect-ratio: 262 / 132; }
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 132px);
  line-height: .88;
  letter-spacing: -.045em;
  margin: 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title em { font-style: normal; color: var(--terra); }
@keyframes rise { from { transform: translateY(105%); } }

.hero__copy { position: relative; z-index: 2; max-width: 46em; }
.hero__def {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  max-width: 34em;
}
.hero__def strong { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.hero__def .mono { font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: .08em; }
.hero__def-mean { font-style: italic; color: var(--terra-deep); }
.hero__claim {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -.025em;
  margin: 0 0 20px; max-width: 20em;
}
.hero__lede { max-width: 36em; font-size: clamp(16px, 1.25vw, 19px); color: #3b3933; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 3D-printed W — fixed layer, JS moves it from the hero slot to the nav logo */
.mark-flyer {
  position: fixed; left: 0; top: 0; z-index: 60;
  transform-origin: 0 0;
  perspective: 1200px;
  pointer-events: none;
  will-change: transform, opacity;
}
.extrude {
  position: relative;
  width: 100%;
  aspect-ratio: 262 / 132;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 18deg)) rotateY(var(--ry, -24deg));
}
.extrude .layer { position: absolute; inset: 0; color: var(--terra-deep); }
.extrude .layer svg { width: 100%; height: 100%; }
.extrude .layer--front { color: var(--terra); }
.extrude .layer--shadow { color: rgba(17,17,17,.18); filter: blur(14px); opacity: var(--shadow, 1); }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 12px; font-size: 10px; opacity: .6;
}
.hero__scroll span { width: 60px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--terra); animation: scan 2s var(--ease) infinite; transform: translateX(-100%); }
@keyframes scan { to { transform: translateX(100%); } }

/* ---------- projects ---------- */
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  padding: clamp(90px, 12vw, 160px) var(--gutter);
  overflow: hidden;
}
.project--terra { background: var(--terra); color: var(--black); }
.project--violet { background: var(--black); color: var(--white); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.project--black { background: var(--white); color: var(--black); }
.project--violet::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, rgba(91,104,255,.35), transparent);
  pointer-events: none;
}
.project__info { position: relative; z-index: 1; }
.project__num {
  display: block; margin: 0 0 14px -.04em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(84px, 11vw, 190px); line-height: .8; letter-spacing: -.06em;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px currentColor;
  opacity: .35;
  transform: translateY(var(--shift, 0px));
  will-change: transform;
}
.project__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(56px, 8.4vw, 136px); line-height: .9; letter-spacing: -.05em;
  margin: 0 0 32px;
}
.project--violet .project__title { color: var(--white); }
.project__title .mk {
  display: inline-block; vertical-align: top; margin-top: .18em;
  font-family: var(--mono); font-size: .2em; letter-spacing: .1em; font-weight: 700;
  padding: .3em .6em; border: 2px solid currentColor; border-radius: 6px;
}
.project__lede { font-size: clamp(17px, 1.35vw, 20px); max-width: 32em; margin: 0 0 28px; }
.project--violet .project__lede { color: rgba(247,245,239,.78); }

.tags { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 32%, transparent); font-size: 11px; opacity: .85; }

.status { max-width: 460px; margin-bottom: 40px; }
.status__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status__row.small { margin-top: 10px; }
.status__row.small span { opacity: .45; transition: opacity .6s, color .6s; }
.status__row.small span.is-now { opacity: 1; font-weight: 700; }
.status__row.small span.is-now::before { content: "▸ "; }
.status__bar { position: relative; height: 4px; margin-top: 16px; background: rgba(17,17,17,.15); border-radius: 4px; color: inherit; }
.status__bar::after {
  content: ""; position: absolute; top: 50%; left: calc(var(--p, 0) * 100%);
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--bar, currentColor);
  opacity: 0; transform: scale(0);
  transition: opacity .4s 1.6s, transform .5s var(--ease) 1.6s;
}
.is-in .status__bar::after { opacity: 1; transform: none; animation: headpulse 2s 2.2s infinite; }
@keyframes headpulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bar, currentColor) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px transparent; }
}
.project--violet .status__bar { background: rgba(247,245,239,.15); }
.status__bar span {
  position: absolute; inset: 0; transform-origin: left;
  background: currentColor; border-radius: 4px;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) .3s;
}
.project--violet .status__bar { --bar: var(--violet); }
.project--violet .status__bar span { background: var(--violet); }
.project--violet .status__row.small .is-now { color: var(--violet); }
.is-in .status__bar span { transform: scaleX(var(--p)); }
.project--violet .chip--proto { color: var(--violet); }

.project__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- Bastlírna visual --- */
.project__visual { position: relative; display: grid; place-items: center; }
.phone {
  width: min(380px, 100%);
  background: var(--white);
  border-radius: 36px;
  padding: 22px 18px 14px;
  box-shadow: 0 40px 80px -30px rgba(80, 30, 10, .55), 0 0 0 8px var(--black);
  transform: rotate(-3deg);
  transition: transform .8s var(--ease);
}
.project--terra:hover .phone { transform: rotate(0deg) translateY(-6px); }
.phone__top { display: flex; flex-direction: column; gap: 4px; padding: 0 6px 16px; }
.phone__top span:first-child { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; text-transform: none; }
.phone__top span:last-child { font-size: 9px; opacity: .55; }
.spools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spool {
  background: #ECE9E0; border-radius: 18px; padding: 14px;
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
}
.spool .ring {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--fill, 0) * 1%), rgba(17,17,17,.1) 0);
  -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px);
          mask: radial-gradient(circle, transparent 9px, #000 10px);
  transition: --fill 1.6s var(--ease);
  position: relative;
}
.spool--low .ring { background: conic-gradient(#b9b5aa calc(var(--fill, 0) * 1%), rgba(17,17,17,.1) 0); }
.spool b { font-family: var(--display); font-size: 13px; line-height: 1.2; }
.spool .mono { font-size: 10px; opacity: .7; }
.spool--low .mono { color: var(--terra-deep); opacity: 1; font-weight: 700; }
.partak {
  margin-top: 12px; background: var(--black); color: var(--white);
  border-radius: 18px; padding: 14px 16px;
}
.partak__head { display: flex; align-items: center; gap: 8px; font-size: 10px; opacity: .8; }
.partak__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.partak p { min-height: 4.2em; margin: 8px 0 12px; font-size: 14px; line-height: 1.45; }
.partak p::after { content: "▍"; color: var(--terra); animation: blink 1s steps(1) infinite; }
.partak__actions { display: flex; gap: 8px; }
.partak__actions span { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-family: var(--display); font-weight: 600; background: var(--terra); color: var(--black); }
.partak__actions span + span { background: transparent; border: 1px solid rgba(247,245,239,.3); color: var(--white); }
.phone__nav {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; text-align: center;
  margin-top: 14px; font-size: 8px; letter-spacing: .06em; opacity: .7;
}
.phone__nav .on { color: var(--terra-deep); font-weight: 700; opacity: 1; }
.phone__nav b { justify-self: center; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 20px; font-family: var(--display); }
.float-chip {
  position: absolute; padding: 10px 14px; border-radius: 12px;
  background: var(--black); color: var(--white); font-size: 10px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  animation: float 6s ease-in-out infinite;
}
.fc1 { top: 12%; right: 4%; }
.fc2 { top: 30%; left: 0; background: var(--white); color: var(--black); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px); } }

@property --fill { syntax: "<number>"; inherits: false; initial-value: 0; }
.is-in .spool .ring { --fill: var(--v); }

/* --- Home Buddy visual --- */
.device { width: min(560px, 100%); }
.device__body {
  position: relative;
  background: linear-gradient(160deg, #ece7da, #d9d2c1);
  border-radius: 28px;
  padding: 26px 26px 26px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.7),
    inset 0 -6px 14px rgba(0,0,0,.08),
    0 50px 80px -40px rgba(0,0,0,.45);
  transform: perspective(1200px) rotateX(10deg) rotateY(-8deg);
  transition: transform .8s var(--ease);
}
.project--black:hover .device__body { transform: perspective(1200px) rotateX(4deg) rotateY(-2deg); }
.device__body::before {
  /* printed texture */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px);
}
.device__screen {
  background: var(--black); padding: 12px; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #2a2a2a;
}
#eink {
  width: 100%; height: auto; aspect-ratio: 296 / 128;
  image-rendering: pixelated; image-rendering: crisp-edges;
  background: #e8e5dc; border-radius: 2px;
}
.device__stick { display: grid; justify-items: center; gap: 10px; }
.device__stick button {
  width: 44px; height: 32px; border: 0; border-radius: 10px;
  background: rgba(17,17,17,.08); color: var(--black);
  font: 700 20px/1 var(--display); cursor: pointer;
  transition: background .2s, transform .2s;
}
.device__stick button:hover { background: var(--terra); color: var(--white); }
.device__stick button:active { transform: scale(.94); }
.device__stick .knob {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e88f6f, var(--terra) 45%, var(--terra-deep));
  box-shadow: 0 6px 12px rgba(0,0,0,.25), inset 0 -3px 6px rgba(0,0,0,.2);
  transition: transform .25s var(--ease);
}
.device__stick .knob.left { transform: translateX(-6px) rotate(-8deg); }
.device__stick .knob.right { transform: translateX(6px) rotate(8deg); }
.device__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: 10px; opacity: .6; }
.device__caption [data-screen-name] { opacity: 1; font-weight: 700; color: var(--terra-deep); }

/* ---------- contact ---------- */
.contact {
  background: var(--black); color: var(--white);
  padding: clamp(100px, 14vw, 200px) var(--gutter);
  position: relative; overflow: hidden;
}
.contact::after {
  content: ""; position: absolute; right: -8vw; top: 50%; width: 60vw; aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(247,245,239,.12);
  outline: 1px solid rgba(247,245,239,.07); outline-offset: 60px; /* hollow rings: the section background fades in underneath */
  pointer-events: none;
}
.contact__title {
  position: relative; z-index: 1;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 8vw, 132px); line-height: .92; letter-spacing: -.05em;
  margin: 0 0 56px;
}
.contact__title em { font-style: normal; color: var(--terra); }
.contact__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.contact__actions p { margin: 0; opacity: .6; }

/* ---------- footer ---------- */
.footer { background: var(--black); color: var(--white); padding: 22px var(--gutter); border-top: 1px solid rgba(247,245,239,.1); }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__mark { width: 64px; height: auto; color: var(--white); transition: color .4s; }
.footer__mark:hover { color: var(--terra); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: 11px; }
.footer__row > * { opacity: .6; }
.footer__tag { letter-spacing: .5em; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a:hover { color: var(--terra); }

.form__legal { margin: 18px 0 0; font-size: 13px; opacity: .6; }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 0 0 20px; }
.legal__meta { color: var(--muted); margin: 0 0 40px; }
.legal .legal__toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 64px; padding: 0; list-style: none; }
.legal__toc a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.legal__toc a:hover { border-color: var(--terra); color: var(--terra-deep); }
.legal section { scroll-margin-top: 90px; padding-top: 8px; margin-bottom: 56px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 0 0 18px; }
.legal h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); }
.legal__table th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.legal__scroll { overflow-x: auto; }
.nav--static { background: rgba(247, 245, 239, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .project, .project--violet { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; padding-bottom: 80px; }
  .hero__mark { width: 20vw; }
  .hero__title { font-size: 11vw; }
  .hero__construction { right: -30%; width: 120vw; }
  .project--violet .project__visual { order: 2; }
  .nav__meta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links { gap: 18px; font-size: 13px; }
  .nav__logo span { display: none; }
  .hero { justify-content: flex-start; padding-top: 96px; padding-bottom: 72px; }
  .hero__lockup { flex-direction: column; align-items: flex-start; gap: 30px; margin-bottom: 32px; }
  .hero__mark { width: 38vw; }
  .hero__title { font-size: 17.5vw; }
  .hero__construction { right: -55%; top: 30%; width: 150vw; }
  .hero__def { gap: 4px 10px; }
  .hero__claim { font-size: 25px; }
  .hero__lede { margin-bottom: 28px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__scroll { display: none; }
  .spools { grid-template-columns: 1fr; }
  .spool:nth-child(n+3) { display: none; }
  .device__body { grid-template-columns: 1fr; padding: 18px; transform: none; }
  .device__stick { grid-auto-flow: column; justify-content: center; align-items: center; }
  .device__caption span:last-child { display: none; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}

/* ==========================================================
   Real screenshots, Georvis OS
   ========================================================== */

/* optional screenshots: hidden until loaded, then they replace the mockup */
[data-optional-shot] { display: none; }
.has-shot > [data-optional-shot] { display: block; }
.phone.has-shot > :not(.phone__shot) { display: none; }
.phone__shot { width: 100%; border-radius: 22px; }

/* browser windows */
.screens { position: relative; width: 100%; padding: 0 0 12% 0; }
.window {
  margin: 0;
  border-radius: 14px; overflow: hidden;
  background: #0f1620;
  border: 1px solid rgba(247,245,239,.14);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
}
.window__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #161f2b; border-bottom: 1px solid rgba(247,245,239,.08);
}
.window__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247,245,239,.18); }
.window__bar i:first-child { background: var(--terra); }
.window__bar span { margin-left: 10px; font-size: 9px; color: rgba(247,245,239,.55); }
.window img { width: 100%; height: auto; }
.window--back { width: 72%; opacity: .75; transform: rotate(-2deg); transition: transform .8s var(--ease), opacity .6s; }
.window--front { position: absolute; width: 84%; right: 0; bottom: 0; transition: transform .8s var(--ease); }
.project--violet:hover .window--back { transform: rotate(-4deg) translate(-12px, -10px); opacity: .9; }
.project--violet:hover .window--front { transform: translate(8px, 6px); }
.screens__note { position: absolute; right: 0; top: -30px; font-size: 9px; color: rgba(247,245,239,.45); }

/* e-ink real frames */
#eink { display: block; transition: filter .08s; }
#eink.flash-dark { filter: invert(1) brightness(.3); }
#eink.flash-light { filter: brightness(1.6) contrast(.2); }

/* Georvis OS section */
.project--indigo { background: var(--violet); color: var(--white); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.project--indigo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(rgba(247,245,239,.22) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(110deg, #000 0%, transparent 55%);
          mask: linear-gradient(110deg, #000 0%, transparent 55%);
}
.project--indigo .project__lede { color: rgba(247,245,239,.88); }
.project--indigo .status__bar { background: rgba(247,245,239,.25); }
.project--indigo .status__bar { --bar: var(--white); }
.project--indigo .status__bar span { background: var(--white); }
.project--indigo .project__visual, .project--indigo .project__info { z-index: 1; }

.window--os { width: 100%; background: #121212; transform: rotate(1.5deg); transition: transform .8s var(--ease); }
.project--indigo:hover .window--os { transform: none; }
.window--os.has-shot .os { display: none; }
.os { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; color: var(--white); }
.os__side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: #181818; border-right: 1px solid rgba(247,245,239,.06); font-size: 13px; }
.os__side b { font-family: var(--display); font-size: 16px; padding: 0 10px 12px; }
.os__side span { padding: 8px 10px; border-radius: 8px; color: rgba(247,245,239,.65); }
.os__side .on { background: rgba(91,104,255,.18); color: var(--white); }
.os__main { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.os__model { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 9px; padding: 6px 10px; border-radius: 999px; background: rgba(247,245,239,.06); color: rgba(247,245,239,.7); }
.os__model .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 8px #5fd38d; }
.bubble { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.bubble--me { align-self: flex-end; background: var(--violet); border-bottom-right-radius: 4px; }
.bubble--ai { background: #1e1e1e; border-bottom-left-radius: 4px; }
.bubble--ai p { margin: 0 0 10px; min-height: 3em; }
.bubble--ai p::after { content: "▍"; color: var(--violet); animation: blink 1s steps(1) infinite; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; font-size: 9px; }
.sources span { padding: 4px 8px; border-radius: 6px; background: rgba(247,245,239,.07); color: rgba(247,245,239,.7); }
.os__input { margin-top: auto; padding: 14px; border-radius: 12px; border: 1px solid rgba(247,245,239,.12); font-size: 10px; color: rgba(247,245,239,.4); }

@media (max-width: 1000px) {
  .project--indigo { grid-template-columns: 1fr; }
  .project--indigo .project__visual { order: 2; }
}
@media (max-width: 640px) {
  .os { grid-template-columns: 1fr; }
  .os__side { display: none; }
  .screens { padding-bottom: 20%; }
}

/* ---------- Home Buddy photo scene ---------- */
.hbscene { position: relative; width: min(600px, 100%); }
.hbscene__stage {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1 / 1.02;
  border-radius: 28px;
  background:
    radial-gradient(70% 55% at 50% 38%, #e48f70 0%, var(--terra) 55%, #b9613f 100%);
  perspective: 1000px;
  box-shadow: 0 50px 90px -40px rgba(120, 50, 20, .55);
}
.hbscene__stage::before { /* dot grid like the brand boards */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(rgba(17,17,17,.28) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%);
          mask: linear-gradient(180deg, #000, transparent 70%);
}
.hbscene__rings {
  position: absolute; inset: -8%; width: 116%; height: 116%; z-index: 0;
  color: rgba(17,17,17,.35); transition: transform .5s var(--ease);
}
.hbscene__floor { /* contact shadow */
  position: absolute; left: 14%; right: 14%; bottom: 8%; height: 8%; z-index: 1;
  background: radial-gradient(closest-side, rgba(40,15,5,.55), transparent);
  filter: blur(8px);
}
.hbscene__photo {
  position: absolute; left: 4%; right: 4%; top: 15%; z-index: 2;
  width: 92%; height: auto;
  filter: drop-shadow(0 26px 24px rgba(60,20,5,.4)) drop-shadow(0 4px 6px rgba(60,20,5,.3));
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.hbscene__tag {
  position: absolute; left: 18px; top: 16px; z-index: 3; font-size: 9px;
  padding: 6px 10px; border-radius: 999px; background: var(--black); color: var(--white);
}

.livecard {
  position: relative; z-index: 4;
  width: min(330px, 78%); margin: -70px 0 0 auto;
  padding: 12px; border-radius: 18px;
  background: var(--black); color: var(--white);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.livecard__screen { padding: 8px; border-radius: 8px; background: #1b1b1b; }
.livecard__screen #eink { width: 100%; height: auto; aspect-ratio: 296 / 128; background: #e8e5dc; }
.livecard__ctl { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 12px 0 8px; }
.livecard__ctl button {
  width: 42px; height: 30px; border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(247,245,239,.1); color: var(--white); font: 700 18px/1 var(--display);
  transition: background .2s, transform .2s;
}
.livecard__ctl button:hover { background: var(--terra); }
.livecard__ctl button:active { transform: scale(.94); }
.livecard__ctl .knob {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #151515 70%);
  box-shadow: 0 3px 6px rgba(0,0,0,.4), inset 0 -2px 4px rgba(0,0,0,.5);
  transition: transform .25s var(--ease);
}
.livecard__ctl .knob.left { transform: translateX(-5px) rotate(-8deg); }
.livecard__ctl .knob.right { transform: translateX(5px) rotate(8deg); }
.livecard__cap { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: rgba(247,245,239,.55); }
.livecard__cap [data-screen-name] { color: var(--terra); font-weight: 700; }

@media (max-width: 640px) {
  .livecard { width: 88%; margin-top: -50px; }
  .hbscene__tag { font-size: 8px; }
}

/* ---------- Bastlírna real screenshots ---------- */
.bastshots { position: relative; width: min(640px, 100%); padding: 0 0 8% 14%; }
.window--cad { background: #17101a; border-color: rgba(17,17,17,.35); transform: rotate(2deg); box-shadow: 0 40px 70px -30px rgba(80,30,10,.6); transition: transform .8s var(--ease); }
.window--cad .window__bar { background: #221825; }
.window--cad img { aspect-ratio: 2000 / 845; object-fit: cover; }
.phone--shot {
  position: absolute; left: 0; bottom: 0; width: 46%; margin: 0;
  padding: 0; background: #130f12; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -25px rgba(60,20,5,.65), 0 0 0 6px var(--black);
  transform: rotate(-4deg);
}
.phone--shot img { width: 100%; height: auto; }
.project--terra:hover .window--cad { transform: rotate(0deg) translateY(-6px); }
.project--terra:hover .phone--shot { transform: rotate(-1deg) translateY(-8px); }
.project--terra .screens__note { right: 0; top: auto; bottom: -26px; color: rgba(17,17,17,.55); }
@media (max-width: 640px) { .bastshots { padding-left: 8%; padding-bottom: 14%; } .phone--shot { width: 52%; } }

/* ---------- contact form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__intro, .form { position: relative; z-index: 1; }
.contact__title { margin-bottom: 32px; font-size: clamp(44px, 6.4vw, 108px); }
.contact__note { margin: 0; max-width: 34em; opacity: .6; line-height: 1.8; }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 10px; opacity: .6; padding: 0; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--white);
  background: rgba(247,245,239,.06);
  border: 1px solid rgba(247,245,239,.16); border-radius: 14px;
  padding: 15px 16px; outline: none; resize: vertical;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(247,245,239,.35); }
.field input:focus, .field textarea:focus {
  border-color: var(--terra); background: rgba(209,122,91,.08); box-shadow: 0 0 0 4px rgba(209,122,91,.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #e5574b; }

.form__bot { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__foot .btn { font-size: 18px; padding: 18px 32px; }
.form__foot .btn:disabled { opacity: .7; cursor: wait; }
.form__status { margin: 0; font-size: 11px; }
.form__status[data-kind="ok"] { color: #8be0a8; }
.form__status[data-kind="err"] { color: #ff8b80; }
.form.is-sent .btn { background: #2f8f5b; border-color: #2f8f5b; color: var(--white); }

@media (max-width: 1000px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- hero: project index ---------- */
.hero__index {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: 90px;
  width: min(400px, 30vw);
  display: grid;
}
.hero__index-head {
  display: flex; justify-content: space-between;
  margin: 0 0 6px; font-size: 10px; opacity: .55;
}
.hero__index a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 34px 1fr auto 14px; align-items: center; gap: 12px;
  padding: 14px 12px 14px 4px;
  border-top: 1px solid var(--line);
  transition: color .35s, padding .45s var(--ease);
}
.hero__index a:last-child { border-bottom: 1px solid var(--line); }
.hero__index a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--c); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.hero__index a .mono { font-size: 10px; opacity: .6; }
.hero__index b { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.hero__index i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); justify-self: end; transition: transform .45s var(--ease), background .35s; }
.hero__index a:hover, .hero__index a:focus-visible { color: var(--white); padding-left: 14px; outline: none; }
.hero__index a:hover::before, .hero__index a:focus-visible::before { transform: none; }
.hero__index a:hover i, .hero__index a:focus-visible i { background: var(--white); transform: scale(1.6); }
@media (max-width: 1100px) {
  .hero__index { position: relative; right: auto; bottom: auto; width: 100%; max-width: 34em; margin-top: 48px; }
}

/* ---------- Europa: bigger, glowing shots ---------- */
.project--violet { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.project--violet .window { box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(91,104,255,.25), 0 0 110px -20px rgba(91,104,255,.55); }
.project--violet .window--back { width: 78%; }
.project--violet .window--front { width: 88%; }
[data-tilt] { transition: transform .6s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* ---------- contact extras ---------- */
.contact__alt { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 36px 0 0; padding: 0; }
.contact__alt .link { font-size: 11px; color: var(--terra); }
.form__foot { position: relative; }
.form__stamp {
  position: absolute; left: 150px; top: -26px; width: 92px; height: auto;
  color: var(--terra); pointer-events: none;
  opacity: 0; transform: scale(2.6) rotate(-28deg);
}
.form.is-sent .form__stamp { animation: stamp .7s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.6) rotate(-28deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-10deg); }
}

/* ---------- mobile: visual right under the title ---------- */
@media (max-width: 1000px) {
  .project--violet { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .project, .project--violet, .project--indigo { gap: 0; }
  .project__info { display: contents; }
  .project__info > * { order: 3; }
  .project__info > .project__num, .project__info > .label, .project__info > .project__title { order: 1; }
  .project .project__visual { order: 2; margin: 0 0 52px; }
  .project__title { margin-bottom: 28px; }
  .project__num { font-size: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .project__num, [data-tilt] { transform: none !important; }
}
