/* Direction E: Helix. Deep navy, glowing orange, glass cards over a fixed 3D background. */
:root {
  --beige: #d4c9b4;   /* Gerta Psachou Interiors 'stone': the studio projects' colour */
  --brass: #af976a;
  --bg: #050b18;
  --fg: #eef2f8;
  --muted: #a3b2c8;
  --line: rgba(238, 242, 248, 0.14);
  --accent: #ff9f1c;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 64px);
}

body { background: radial-gradient(ellipse 120% 90% at 70% 20%, #10264a 0%, #081428 45%, #050b18 100%) fixed; }

.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.6s ease; }
.bg-canvas.is-ready { opacity: 1; }
.progress { position: fixed; right: 18px; top: 50%; width: 2px; height: 90px; transform: translateY(-50%); background: rgba(238, 242, 248, 0.12); z-index: 5; }
.progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }

.nav { background: linear-gradient(to bottom, rgba(5, 11, 24, 0.7), transparent); }
.nav__brand { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.nav__links a { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; }
.nav__cta { min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #1a0f00; font-weight: 600; opacity: 1 !important; }
.nav__toggle { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 14px; }

.main { position: relative; z-index: 1; }
.sec { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--pad); }
.sec__inner { max-width: 520px; display: flex; flex-direction: column; gap: 22px; }
.sec__inner--wide { max-width: 1180px; width: 100%; margin: 0 auto; }
.sec--hero { align-items: flex-end; padding-bottom: 14vh; }
.sec--right { justify-content: flex-end; }

.h1 { font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(5, 11, 24, 0.6); }
.h2 { font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; text-shadow: 0 2px 30px rgba(5, 11, 24, 0.6); }
.lede { color: #c9d4e4; font-size: 17px; max-width: 46ch; text-shadow: 0 1px 16px rgba(5, 11, 24, 0.9); }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 500; }
.arrow-link span { color: var(--accent); font-size: 20px; }

.glass {
  background: linear-gradient(160deg, rgba(40, 52, 78, 0.55), rgba(16, 22, 38, 0.55));
  border: 1px solid rgba(238, 242, 248, 0.12); border-radius: 16px;
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.fact__label { font: 500 10px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; width: 100%; margin: 0 auto; }
.fact { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.fact__num { font-size: clamp(34px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.fact__num small { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.fact p:last-child { color: var(--muted); font-size: 14.5px; }

.work__more { color: var(--muted); font-size: 14px; }

.sec--contact { flex-direction: column; justify-content: center; gap: 0; padding-bottom: 72px; }
.contact { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; max-width: 720px; }
.contact__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #1a0f00; font-weight: 600; text-decoration: none; }
.pill .todo { color: #1a0f00; }
.footer { width: 100%; max-width: 1180px; display: flex; flex-direction: column; gap: 28px; padding-top: 48px; border-top: 1px solid var(--line); margin-top: 48px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 24px; justify-content: end; }
.footer__cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.footer__cols h3 { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--fg); }
.footer__base { font-size: 12px; color: var(--muted); padding-bottom: 40px; }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .sec--right { justify-content: flex-start; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; }
  .progress { display: none; }
}

/* ---------- Pointer reaches the 3D scene between text blocks ---------- */
.main { pointer-events: none; }
.main a, .main button, .glass, .sec__inner > *, .contact, .footer { pointer-events: auto; }
.bg-canvas.is-hovering { cursor: pointer; }

/* ---------- Project list (the beige connectors' twins) ---------- */
.plist { display: flex; flex-direction: column; gap: 8px; }
.pbtn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%;
  min-height: 56px; padding: 0 18px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(16, 22, 38, 0.55); border: 1px solid rgba(212, 201, 180, 0.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s, background .2s, transform .2s;
}
.pbtn:hover, .pbtn.is-active { border-color: var(--beige); background: rgba(212, 201, 180, 0.12); transform: translateX(4px); }
.pbtn__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.pbtn__meta { font: 500 10px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--beige); }
.pbtn__dot { width: 22px; height: 6px; border-radius: 3px; background: var(--beige); box-shadow: 0 0 12px rgba(212, 201, 180, 0.6); flex: none; }
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hint__touch { display: none; }
@media (pointer: coarse) { .hint__fine { display: none; } .hint__touch { display: inline; } }
.no-3d .hint { display: none; }

/* ---------- Preview widget ---------- */
.preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 340px; padding: 12px 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
  border-color: rgba(212, 201, 180, 0.35); border-top: 2px solid var(--beige);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.preview.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
.preview__frame { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #f2ede4, #d5cfc6); }
.preview__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.preview.is-phone .preview__img { object-fit: contain; padding: 8px 0 0; }
.preview__kicker { color: var(--beige); padding: 4px 4px 0; }
.preview__title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; padding: 0 4px; }
.preview__text { color: var(--muted); font-size: 14px; padding: 0 4px; }
.preview__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 0; }
.preview__chips li { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.preview__close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(5, 11, 24, 0.7); color: var(--fg); font-size: 18px; line-height: 1; cursor: pointer; display: none; }
.tether { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 29; pointer-events: none; }
.tether line { stroke: var(--beige); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .2s; }
.tether.is-on line { opacity: 0.8; }
@media (max-width: 760px), (pointer: coarse) {
  .preview { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .preview__close { display: block; }
  .tether { display: none; }
}
