/* =========================================================
   Vebio, 3D portfolio
   1. Tokens  2. Base  3. Header  4. Spiral showcase
   5. Card previews  6. Sections  7. Form  8. Motion
   ========================================================= */

/* ---------- 1. Tokens (Vebio, koncept A: Ink / Papir / Kamen / Grafit) ---------- */
:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --stone: #e8e8e5;
  --graphite: #55565b;

  --bg: var(--ink);
  --bg-2: #0f0f11;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f3f3f1;
  --muted: #a3a3a0;
  --dim: #8a8b90;
  --accent: var(--stone);
  --accent-soft: rgba(232, 232, 229, 0.12);
  --error: #ff9b8f;
  --success: #b9f2d6;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --gutter: clamp(18px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
/* Serif italic accent in a silver gradient: monochrome, like the logo */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.05em;
  background: linear-gradient(180deg, #ffffff 20%, #9d9ea3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--paper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 8px; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; transform: translateY(-160%); transition: transform 0.25s var(--ease); }
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* The three bars of the open E, used as a small brand marker */
.bars { display: inline-grid; gap: 3px; width: 12px; }
.bars i { display: block; height: 2px; background: currentColor; }
.bars i:nth-child(2) { width: 78%; }

/* ---------- 3. Header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: var(--hdr);
  padding-inline: var(--gutter);
  transition: background-color 0.3s var(--ease);
}
.hdr.is-scrolled { background: linear-gradient(to bottom, rgba(11, 11, 12, 0.92), rgba(11, 11, 12, 0)); }
.hdr-left, .hdr-right { display: flex; align-items: center; gap: 6px; }
.hdr-right { justify-content: flex-end; }
.hdr-brand { display: block; color: var(--text); }
.hdr-brand .logo { height: 18px; width: auto; aspect-ratio: 385 / 102; fill: currentColor; }
.mark { width: 11px; height: 19px; fill: currentColor; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, 0.14); }
.pill:active { transform: scale(0.97); }
.pill--icon { width: 44px; padding: 0; }
.pill--icon .icon { width: 18px; height: 18px; }
.pill--light { background: var(--paper); color: var(--ink); }
.pill--light:hover { background: var(--stone); }
.show-sm { display: none; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang-btn { min-width: 40px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { background: rgba(255, 255, 255, 0.16); color: var(--text); }

.menu { position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; padding: var(--hdr) var(--gutter) 40px; background: rgba(11, 11, 12, 0.97); }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 2.25rem; font-weight: 300; letter-spacing: -0.03em; }

@media (max-width: 760px) {
  .hide-sm { display: none; }
  .show-sm { display: inline-flex; }
  .hdr { grid-template-columns: auto 1fr auto; }
  .hdr-brand { justify-self: center; }
  .hdr-brand .logo { height: 15px; }
}

/* ---------- 4. Spiral showcase ---------- */
.works { --mx: 0; --my: 0; position: relative; min-height: 100svh; overflow: clip; isolation: isolate; }
.works-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 50% at 50% 55%, rgba(85, 86, 91, 0.42), transparent 70%),
    radial-gradient(30% 35% at 15% 20%, rgba(232, 232, 229, 0.06), transparent 70%),
    radial-gradient(30% 35% at 85% 85%, rgba(85, 86, 91, 0.22), transparent 70%),
    var(--bg);
}
.works-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 80%);
}

.works-eyebrow {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: calc(var(--hdr) + 14px) var(--gutter) 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.title-plane { position: relative; text-align: center; }
.works-title {
  font-size: clamp(2.8rem, min(8.4vw, 12vh), 8.6rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.works-title em { display: block; font-size: 1.12em; line-height: 0.9; }

/* Magnifier lens */
.lens { position: absolute; inset: 0; pointer-events: none; opacity: 0; clip-path: circle(var(--lr, 90px) at var(--lx, 50%) var(--ly, 50%)); transition: opacity 0.4s var(--ease); }
.lens-copy { position: absolute; inset: 0; transform-origin: var(--lx, 50%) var(--ly, 50%); transform: scale(1.28); text-shadow: -3px 0 0 rgba(255, 60, 100, 0.6), 3px 0 0 rgba(60, 220, 255, 0.6); color: #fff; }
.lens-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--lr, 90px) * 2);
  height: calc(var(--lr, 90px) * 2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(calc(var(--lx, 0px) - 50%), calc(var(--ly, 0px) - 50%));
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 40%), rgba(200, 200, 210, 0.04);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.12), 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  transition: opacity 0.4s var(--ease);
}
.title-plane.lens-on .lens, .title-plane.lens-on .lens-ring { opacity: 1; }

@media (min-width: 1000px) {
  .works { height: max(100svh, 760px); }
  .stage { position: absolute; inset: 0; z-index: 2; perspective: 1800px; perspective-origin: 50% 46%; pointer-events: none; }
  .scene { position: absolute; left: 50%; top: 53%; width: 0; height: 0; transform-style: preserve-3d; }
  /* The title lives inside the 3D scene, so cards really pass in front of and behind it */
  .title-plane { position: absolute; left: 0; top: 0; width: 92vw; transform: translate(-50%, -72%) translateZ(0); pointer-events: none; }

  /* A tilted ring: front cards pass below the title, back cards above it */
  .orbit {
    --R: min(38vw, 620px);
    --pitch: min(3.2vh, 30px);
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
    transform: translateY(var(--oy, min(15vh, 160px))) rotateX(var(--tilt, -15deg)) rotateY(var(--rot, 0deg));
  }
  .card {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(220px, min(21vw, 40vh), 380px);
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 60deg)) translateZ(var(--R)) translateY(calc((var(--i) - 2.5) * var(--pitch)));
    pointer-events: auto;
  }
  .card-link { display: block; transform-style: preserve-3d; border-radius: 14px; }
  .card-link:focus-visible { outline: none; }
  .card-float { position: relative; transform-style: preserve-3d; animation: float var(--dur) ease-in-out var(--del) infinite; }

  /* Front/back faces are swapped from JS when a card turns edge-on
     (backface-visibility stops Chrome from painting the preview images here) */
  .card-body, .card-back { border-radius: 14px; }
  .card-back { visibility: hidden; }
  .card.is-back .card-body { visibility: hidden; }
  .card.is-back .card-back { visibility: visible; }
  .card-body {
    --tx: 0deg;
    --ty: 0deg;
    position: relative;
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
    transition: transform 0.9s var(--ease), opacity 0.6s var(--ease), box-shadow 0.6s var(--ease);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
  }
  .card-body::after {
    /* depth fog, driven from JS by how far the card is from the viewer */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--ink);
    opacity: var(--fog, 0);
    pointer-events: none;
    transition: opacity 0.5s var(--ease);
  }
  .card-back {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 6px;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, #1a1a1d, #0e0e10);
    color: var(--dim);
    text-transform: uppercase;
  }
  .card-back span { font-size: 0.75rem; letter-spacing: 0.2em; }
  .card-back b { font-size: 1.5rem; font-weight: 300; letter-spacing: 0.2em; color: rgba(243, 243, 241, 0.55); }

  /* Hover / focus: the card glides toward the viewer and tilts with the cursor */
  .card-link:hover .card-body,
  .card-link:focus-visible .card-body {
    transform: translateZ(110px) rotateX(var(--ty)) rotateY(var(--tx)) scale(1.06);
    box-shadow: 0 60px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 90px -20px rgba(255, 255, 255, 0.18);
  }
  .card-link:hover .card-body::after, .card-link:focus-visible .card-body::after { opacity: 0; }
  .card-link:focus-visible .card-body { outline: 2px solid var(--paper); outline-offset: 4px; }
  .orbit:has(.card-link:hover) .card-link:not(:hover) .card-body,
  .orbit:has(.card-link:focus-visible) .card-link:not(:focus-visible) .card-body { opacity: 0.45; }

  .card-info {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "num name cta" "num ind cta";
    align-items: center;
    column-gap: 14px;
    padding: 12px 12px 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(18, 18, 20, 0.95);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
    pointer-events: none;
  }
  .card-link:hover .card-info, .card-link:focus-visible .card-info { opacity: 1; transform: none; }
  .card-num { grid-area: num; align-self: start; padding-top: 4px; color: var(--dim); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
  .card-name { grid-area: name; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2; }
  .card-ind { grid-area: ind; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
  .card-cta { grid-area: cta; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
  @media (hover: none) { .card-info { opacity: 1; transform: none; } }

  .works-foot { position: absolute; inset: auto 0 0; z-index: 3; }
  .works::after { content: ""; position: absolute; inset: auto 0 0; z-index: 2; height: 130px; background: linear-gradient(to top, var(--bg) 15%, transparent); pointer-events: none; }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

/* Bottom bar */
.works-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 var(--gutter) clamp(20px, 3vh, 32px); pointer-events: none; }
.works-foot > * { pointer-events: auto; }
.works-intro { display: grid; gap: 8px; justify-items: start; max-width: 40ch; }
.works-intro p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.works-mail { font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--line-2); transition: border-color 0.25s; }
.works-mail:hover { border-color: var(--paper); }
.works-ctrl { display: flex; align-items: center; gap: 8px; }
.ctrl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--muted); font-size: 0.875rem; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.ctrl-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.ctrl-btn .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.view-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.vt-btn { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.875rem; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.vt-btn:hover { color: var(--text); }
.vt-btn.is-active { background: rgba(255, 255, 255, 0.14); color: var(--text); }

/* List view */
.works-list { position: relative; z-index: 2; }
.works-list ol { border-top: 1px solid var(--line); }
.works-list a { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 24px; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: padding 0.5s var(--ease); }
.wl-num { color: var(--dim); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.wl-name { font-size: clamp(2rem, 5vw, 4.25rem); font-weight: 200; letter-spacing: -0.04em; line-height: 1.05; text-transform: uppercase; }
.wl-ind { color: var(--muted); }
.works-list .icon { width: 28px; height: 28px; color: var(--dim); transition: transform 0.5s var(--ease), color 0.3s; }
.works-list a:hover { padding-left: 20px; }
.works-list a:hover .icon { color: var(--paper); transform: translate(3px, -3px); }
@media (min-width: 1000px) {
  .works-list { position: absolute; left: 50%; top: 52%; width: min(1000px, 100% - var(--gutter) * 2); transform: translate(-50%, -50%); }
  .works.is-list .stage { visibility: hidden; }
  .works.is-list [data-spin-toggle] { visibility: hidden; }
}

/* Mobile / tablet: a vertical deck instead of a shrunken 3D spiral */
@media (max-width: 999px) {
  .works { padding-bottom: 40px; }
  .works-eyebrow .bars { display: none; }
  .title-plane { padding: 18px var(--gutter) 0; }
  .lens, .lens-ring, .card-back, [data-spin-toggle], .view-toggle { display: none; }
  .card.is-back .card-body { visibility: visible; }
  .stage { padding: 40px var(--gutter) 8px; }
  .orbit { display: grid; gap: clamp(28px, 6vw, 48px); max-width: 640px; margin-inline: auto; }
  .card:nth-child(odd) { --tilt: -1.4deg; }
  .card:nth-child(even) { --tilt: 1.4deg; }
  .card-link { display: block; border-radius: 16px; transition: transform 0.25s var(--ease); -webkit-tap-highlight-color: transparent; }
  .card-link:active { transform: scale(0.98); }
  .card-body { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); transform: rotate(var(--tilt)); }
  .card-info { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num name cta" "num ind cta"; align-items: center; column-gap: 14px; padding: 16px 18px 18px; }
  .card-num { grid-area: num; align-self: start; padding-top: 4px; color: var(--dim); font-size: 0.75rem; }
  .card-name { grid-area: name; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15; }
  .card-ind { grid-area: ind; color: var(--muted); font-size: 0.875rem; }
  .card-cta { grid-area: cta; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
  .works-foot { flex-direction: column-reverse; align-items: stretch; padding-top: 24px; }
  .works-list { display: none !important; }
  @supports (animation-timeline: view()) {
    .card-body { animation: deck-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@media (max-width: 480px) {
  .card-info { grid-template-columns: auto 1fr; grid-template-areas: "num name" "num ind" "cta cta"; row-gap: 2px; }
  .card-cta { justify-content: center; margin-top: 12px; }
}
@keyframes deck-in {
  from { opacity: 0.4; transform: perspective(900px) rotateX(24deg) rotate(var(--tilt)) translateY(40px) scale(0.94); }
  to { opacity: 1; transform: rotate(var(--tilt)); }
}

/* ---------- 5. Card previews (each in its own demo's identity) ---------- */
.pv { border-radius: 14px; overflow: hidden; background: #111; }
.pv-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: #161618; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.pv-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3f; }
.pv-bar span { margin: 0 auto; transform: translateX(-14px); padding: 2px 10px; border-radius: 5px; background: #0e0e10; color: #85868b; font-size: 9px; white-space: nowrap; }
.pv-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.pv-view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-nav, .pv-hero { position: relative; z-index: 1; font-size: 1.25cqw; }
.pv-nav { display: flex; align-items: center; gap: 2.4em; padding: 2.2em 3.6em; }
.pv-nav b { margin-right: auto; font-size: 1.5em; }
.pv-nav span { font-size: 0.95em; opacity: 0.85; }
.pv-nav em { font-family: inherit; font-style: normal; background: none; color: inherit; padding: 0.7em 1.4em; border: 1px solid currentColor; font-size: 0.95em; }
.pv-hero small { display: block; font-size: 0.9em; letter-spacing: 0.22em; text-transform: uppercase; }

.pv--lumiere .pv-view { color: #fff8ec; }
.pv--lumiere .pv-view::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 14, 26, 0.55), rgba(10, 14, 26, 0.25) 45%, rgba(10, 14, 26, 0.65)); }
.pv--lumiere .pv-nav b { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: 0.3em; }
.pv--lumiere .pv-nav em { border-radius: 999px; }
.pv--lumiere .pv-hero { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-top: 4em; }
.pv--lumiere .pv-hero small { color: #e8cf9f; }
.pv--lumiere .pv-hero strong { margin-top: 0.3em; font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: 6.2em; line-height: 0.95; }

.pv--noir .pv-view { background: #0a0908; color: #efe6d8; }
.pv--noir .pv-view > img { left: 42%; width: 58%; }
.pv--noir .pv-view::before { content: ""; position: absolute; inset: 0 0 0 42%; z-index: 1; background: linear-gradient(90deg, #0a0908, transparent 40%); }
.pv--noir .pv-nav b { font-family: "Bodoni Moda", serif; font-weight: 500; letter-spacing: 0.35em; }
.pv--noir .pv-nav em { border-color: #b08a4f; color: #d9b77e; }
.pv--noir .pv-hero { position: absolute; left: 3.6em; bottom: 4em; z-index: 2; }
.pv--noir .pv-hero small { color: #b08a4f; }
.pv--noir .pv-hero strong { display: block; font-family: "Bodoni Moda", serif; font-weight: 500; font-size: 14em; line-height: 0.85; letter-spacing: -0.03em; }

.pv--apex .pv-view { color: #fff; }
.pv--apex .pv-view::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 8, 9, 0.85), rgba(8, 8, 9, 0.2) 60%, transparent), linear-gradient(0deg, rgba(8, 8, 9, 0.8), transparent 50%); }
.pv--apex .pv-nav b { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 125%; letter-spacing: 0.1em; }
.pv--apex .pv-nav em { background: #e5322d; border-color: #e5322d; }
.pv--apex .pv-hero { position: absolute; left: 3.6em; bottom: 3.4em; }
.pv--apex .pv-hero small { color: #ff6b66; }
.pv--apex .pv-hero strong { display: block; font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 125%; font-size: 12.5em; line-height: 0.85; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 0.012em #fff; }

.pv--forma .pv-view { background: #ecebe6; color: #121212; }
.pv--forma .pv-view > img { left: auto; right: 3.6cqw; top: 15cqw; width: 40cqw; height: 42cqw; }
.pv--forma .pv-nav { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.pv--forma .pv-nav b { font-family: "Space Grotesk", sans-serif; font-weight: 500; letter-spacing: 0.2em; }
.pv--forma .pv-hero { padding: 6em 3.6em 0; max-width: 58%; }
.pv--forma .pv-hero small { color: #6c6a63; }
.pv--forma .pv-hero strong { display: block; margin-top: 0.5em; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 6em; line-height: 0.98; letter-spacing: -0.045em; }

.pv--velora .pv-view { background: #f4ebe4; color: #4a332c; }
.pv--velora .pv-nav b { font-family: "Fraunces", serif; font-style: italic; font-weight: 400; font-size: 1.9em; }
.pv--velora .pv-nav em { border-radius: 999px; background: #8f6e61; border-color: #8f6e61; color: #fff; }
.pv--velora .pv-hero { padding: 7em 3.6em 0; }
.pv--velora .pv-hero small { color: #8a9a82; }
.pv--velora .pv-hero strong { display: block; margin-top: 0.4em; font-family: "Fraunces", serif; font-weight: 400; font-style: italic; font-size: 6.6em; line-height: 1; letter-spacing: -0.02em; }
.pv--velora .pv-hero strong i { color: #a8645a; }
.pv-arch { position: absolute; right: 6cqw; top: 13cqw; width: 30cqw; height: 46cqw; border-radius: 15cqw 15cqw 1cqw 1cqw; overflow: hidden; }
.pv-arch img { width: 100%; height: 100%; object-fit: cover; }

.pv--estate .pv-view { color: #fff; }
.pv--estate .pv-view::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 22, 42, 0.6), rgba(12, 22, 42, 0.25) 50%, rgba(12, 22, 42, 0.55)); }
.pv--estate .pv-nav b { letter-spacing: 0.25em; font-weight: 700; }
.pv--estate .pv-nav em { background: #c8a96a; border-color: #c8a96a; color: #0f1a2b; border-radius: 0.4em; }
.pv--estate .pv-hero { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding-top: 3em; }
.pv--estate .pv-hero strong { font-family: var(--serif); font-weight: 400; font-size: 6.2em; line-height: 1; letter-spacing: -0.01em; }
.pv-search { display: grid; grid-template-columns: repeat(3, 9em) auto; align-items: center; margin-top: 2.2em; padding: 0.6em 0.6em 0.6em 1.6em; border-radius: 0.8em; background: #fff; color: #0f1a2b; text-align: left; font-size: 0.95em; }
.pv-search span { color: #5d6678; border-right: 1px solid #e4e6ea; margin-right: 1em; }
.pv-search span:nth-child(3) { border: 0; }
.pv-search b { padding: 0.8em 1.6em; border-radius: 0.5em; background: #0f1a2b; color: #fff; }

/* ---------- 6. Sections ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker::before {
  /* open E marker */
  content: "";
  width: 12px;
  height: 10px;
  background:
    linear-gradient(var(--stone), var(--stone)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--stone), var(--stone)) 0 50% / 78% 2px no-repeat,
    linear-gradient(var(--stone), var(--stone)) 0 100% / 100% 2px no-repeat;
}
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 980px; }
.sec-title { font-size: clamp(2.3rem, 5.6vw, 5rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }

.statement, .services, .industries, .process, .why, .faq, .contact { padding-block: clamp(96px, 13vw, 180px); position: relative; }
.statement { background: radial-gradient(60% 50% at 20% 0%, rgba(85, 86, 91, 0.22), transparent 70%); border-top: 1px solid var(--line); }
.st-title { max-width: 14ch; font-size: clamp(2.8rem, 8.4vw, 8rem); font-weight: 200; line-height: 0.95; letter-spacing: -0.055em; }
.paths { display: grid; gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: border-color 0.4s; }
.path:hover { border-color: var(--line-2); }
.path--accent { border-color: rgba(255, 255, 255, 0.22); background: radial-gradient(80% 70% at 100% 0%, rgba(255, 255, 255, 0.08), transparent 60%), var(--surface); }
.path-tag { align-self: flex-start; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 0.8125rem; }
.path--accent .path-tag { background: var(--paper); border-color: var(--paper); color: var(--ink); font-weight: 600; }
.path h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.path p { color: var(--muted); max-width: 50ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; min-height: 44px; font-weight: 600; }
.link-arrow .icon { transition: transform 0.35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.sv-list { border-top: 1px solid var(--line); }
.sv { display: grid; grid-template-columns: 56px 1fr; gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .sv { grid-template-columns: 80px 1.2fr 1fr; align-items: center; padding: 34px 0; } }
.sv-num { color: var(--dim); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.sv h3 { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; transition: transform 0.6s var(--ease); }
.sv p { color: var(--muted); grid-column: 2; }
@media (min-width: 900px) { .sv p { grid-column: auto; } }
.sv:hover h3 { transform: translateX(12px); }

.industries { padding-block: clamp(64px, 9vw, 120px); border-block: 1px solid var(--line); background: var(--bg-2); }
.in-cloud { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(1.5rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.25; }
.in-cloud span { display: inline-flex; align-items: center; }
.in-cloud > span:not(:last-child)::after { content: ""; width: 0.16em; height: 0.16em; margin-inline: 0.45em; border-radius: 50%; background: var(--graphite); }
.in-cloud > span:nth-child(even) { color: var(--muted); }

.steps { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--line); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { display: flex; flex-direction: column; gap: 10px; min-height: 240px; padding: 28px; background: var(--bg); transition: background-color 0.4s; }
.step:hover { background: #111113; }
.step span { color: var(--dim); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: auto; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
.step p { color: var(--muted); font-size: 0.9375rem; }

.why { background: radial-gradient(50% 50% at 90% 50%, rgba(85, 86, 91, 0.18), transparent 70%); }
.why-grid { display: grid; gap: 0 48px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-grid li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.why-grid h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.why-grid p { margin-top: 6px; color: var(--muted); }

.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 96px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 24px 0; font-size: 1.125rem; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--dim); transition: transform 0.35s var(--ease), color 0.3s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--paper); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--muted); }

/* ---------- 7. Contact + form ---------- */
.contact { border-top: 1px solid var(--line); background: radial-gradient(50% 60% at 85% 100%, rgba(232, 232, 229, 0.06), transparent 70%), radial-gradient(50% 60% at 10% 20%, rgba(85, 86, 91, 0.2), transparent 70%); }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 88px; align-items: start; } }
.ct-lead { margin-top: 24px; color: var(--muted); font-size: 1.0625rem; max-width: 44ch; }
.channels { display: grid; gap: 10px; margin-top: 36px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 0.25s, background-color 0.25s; }
.channel[hidden] { display: none; }
.channel:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.07); }
.channel > .icon { width: 22px; height: 22px; color: var(--paper); }
.channel b { display: block; font-weight: 600; }
.channel span span { color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

.form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: 24px; background: rgba(255, 255, 255, 0.03); }
.row { display: grid; gap: 20px; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { font-size: 0.9375rem; font-weight: 500; }
.field > legend { margin-bottom: 8px; padding: 0; }
.req { color: var(--stone); }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(11, 11, 12, 0.6); font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field ::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--paper); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:disabled { opacity: 0.45; cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: 0.875rem; }
.err:empty { display: none; }
.check { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-height: 32px; margin-top: -6px; color: var(--muted); font-size: 0.9375rem; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check > span[aria-hidden] { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; transition: background-color 0.2s, border-color 0.2s; }
.check .icon { width: 14px; height: 14px; stroke-width: 3; color: var(--ink); opacity: 0; }
.check input:checked + span { background: var(--paper); border-color: var(--paper); }
.check input:checked + span .icon { opacity: 1; }
.check input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 0.9375rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chips label:hover span { color: var(--text); }
.chips input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.35s, background-color 0.25s; }
.btn:hover { background: var(--stone); box-shadow: 0 12px 40px -12px rgba(255, 255, 255, 0.45); }
.btn:active { transform: scale(0.98); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-note { color: var(--dim); font-size: 0.8125rem; text-align: center; }
.form-summary { padding: 14px 16px; border: 1px solid rgba(255, 155, 143, 0.4); border-radius: 12px; background: rgba(255, 155, 143, 0.08); color: var(--error); font-size: 0.9375rem; }
.form-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.form-summary a { text-decoration: underline; }
.status:empty { display: none; }
.status { padding: 14px 16px; border-radius: 12px; font-size: 0.9375rem; }
.status.is-success { border: 1px solid rgba(185, 242, 214, 0.35); background: rgba(185, 242, 214, 0.08); color: var(--success); }
.status.is-error { border: 1px solid rgba(255, 155, 143, 0.35); background: rgba(255, 155, 143, 0.08); color: var(--error); }

.foot { padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line); overflow: clip; }
.foot-mark { width: 100%; height: auto; aspect-ratio: 385 / 102; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; color: var(--dim); font-size: 0.875rem; }
.foot-row a { color: var(--text); }
.foot-row a:hover { text-decoration: underline; }

/* ---------- 8. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion: no continuous or travelling motion, but state changes still fade smoothly */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lens-copy { transform: none; }
}
