/* ============================================================
   Parallax digital card: one phone-width column on every screen,
   on top of _base.css (copied verbatim from the shoot brief).
   The card is black end to end, on the same ground as the team wallpaper.
   ============================================================ */

/* Contrast tokens (WCAG AA gate): change the token, never the component. */
:root {
  --bg: #050505;
  --surface: #0c0c0f;
  --raised: #131318;
  --text-3: rgba(255,255,255,0.58);
  --ok: oklch(0.80 0.17 154);
  --col: 460px;
}

b, strong { font-weight: 700; }
html { font-synthesis-weight: none; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* JS hides intro pieces until GSAP plays them; a safety timeout always clears it */
.js .intro, .js .rv, .js .rv-c, .js .mark { visibility: hidden; }

/* The one column (".col" is taken by the base charts) */
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 16px; position: relative; }
section { padding: 56px 0; border-top: 1px solid var(--border); }

/* ── Nav ── */
.nav { height: 56px; padding: 0 max(16px, calc((100% - var(--col)) / 2 + 16px)); background: rgba(5,5,5,0.72); }
.nav__brand { font-size: 18px; }
.nav__save {
  font-family: var(--font-m); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #050505; background: #fff; border: 1px solid #fff; padding: 9px 12px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.nav__save.is-on { opacity: 1; transform: none; pointer-events: auto; }
.nav__save svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover: hover) { .nav__save:hover { border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--accent); transform: translate(-1.5px,-1.5px); } }

/* ── Hero ── */
.hero { padding: 0 0 40px; }
.hero__grid { opacity: .7; }
.hero__glow { background: radial-gradient(circle at 50% 22%, var(--accent-dim) 0%, transparent 52%); }
.hero__grid { -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 70%); mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 70%); }

/* The logo mark, built on load. Layers move at their own depth afterwards. */
.stage { position: relative; aspect-ratio: 1355 / 1344; width: 66%; max-width: 270px; margin: 0 auto 4px; pointer-events: none; }
.mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark .m-lines { opacity: .9; }
.m-outline { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-dot, .m-rim { transform-box: fill-box; transform-origin: 50% 50%; }

.hero .slabel { margin: 0 0 14px; }
#name { font-size: clamp(48px, 14.5vw, 66px); letter-spacing: -0.05em; line-height: 0.92; }
#name .nl { display: block; }
#name .dot { color: var(--accent); display: inline-block; }
.hero__lead { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.hero__lead b { color: var(--text); font-weight: 700; }
.welcome { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.welcome b { color: var(--text); }
#side { margin-top: 20px; }

/* Where they are now: city (with the live pulse) and the status line */
.live { background: var(--surface); border: 1px solid var(--border); padding: 16px; }
.live__now { margin: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-m); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.live__now b { color: var(--text); font-weight: 500; }
.live__now small { margin-left: auto; font-size: 10px; letter-spacing: .1em; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.pulse { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Save + action tiles */
.btn--save { width: 100%; justify-content: center; margin-top: 12px; padding: 17px 20px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  min-height: 78px; padding: 10px 11px 11px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; cursor: pointer; text-align: left;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.tile__n { font-family: var(--font-m); font-size: 9.5px; letter-spacing: .12em; color: var(--text-3); }
.tile svg { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tile__l { font-family: var(--font-d); font-weight: 700; font-size: 14.5px; letter-spacing: -0.02em; line-height: 1.1; }
@media (hover: hover) {
  .tile:hover { border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--accent); transform: translate(-1.5px,-1.5px); }
}
.tile:active, .btn:active { transform: scale(0.97); box-shadow: none; }

/* ── Selected work: the small client strip ── */
.work { padding: 32px 0 40px; }
.work__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.work__head .slabel { margin: 0; }
.work__all { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.work__all:hover { color: var(--text); }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; }
.client {
  display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 60px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.client__logo { flex: 0 0 auto; width: 30px; height: 26px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.client__name { font-family: var(--font-d); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; line-height: 1.15; }
.client__go { margin-left: auto; font-family: var(--font-m); font-size: 13px; color: var(--text-3); transition: color 160ms var(--ease-out), transform 160ms var(--ease-out); }
@media (hover: hover) {
  .client:hover { border-color: var(--accent); box-shadow: 3px 3px 0 0 var(--accent); transform: translate(-1.5px,-1.5px); }
  .client:hover .client__go { color: var(--accent); transform: translateX(3px); }
}

/* ── Leave your card ── */
.meet h2 { font-size: 34px; letter-spacing: -0.04em; }
.meet .slabel { margin-bottom: 14px; }
.meet__sub { margin: 12px 0 20px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.form { background: var(--surface); border: 1px solid var(--border); padding: 18px; display: grid; gap: 14px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field span { font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea { width: 100%; border: 1px solid var(--border-s); background: var(--bg); padding: 13px 14px; font-size: 16px; line-height: 1.4; border-radius: 0; transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field textarea { resize: vertical; min-height: 76px; }
.form .btn { justify-content: center; padding: 16px; }
.form__msg { min-height: 20px; margin: 0; font-family: var(--font-m); font-size: 11px; letter-spacing: .04em; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sealed { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.sealed h3 { margin-bottom: var(--s2); }
.sealed p { color: var(--text-2); margin: 0 0 var(--s3); }
.reply { margin-top: var(--s4); border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; }
.reply small { font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.reply p { color: var(--text); margin: 6px 0 0; }
.btn--line { background: transparent; color: var(--text); border-color: var(--border-s); }
.sealed .btn { margin-top: var(--s2); }

/* ── Footer ── */
footer { padding: 40px 0 48px; }
.foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { font-size: 26px; }
.footer__meta { margin: 0; text-align: left; }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--text); }

@media (max-width: 360px) {
  .acts { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}

/* Wordmark: "Parallax." with the accent dot tight against it */
.wm { font-weight: 800; }
.wm i { font-style: normal; color: var(--accent); }
.nav__brand em { font-style: normal; }
.nav__brand .sep { display: inline-block; }
[hidden] { display: none !important; }

/* Nav: "Parallax. | Digital Craft Studio"; the scrolled save button shortens to "Save" on phones */
.nav__brand { gap: 10px; }
.nav__brand .tag { font-size: 9.5px; letter-spacing: .14em; white-space: nowrap; }
@media (max-width: 420px) { .nav__save-more { display: none; } }
@media (max-width: 380px) { .nav__save { font-size: 0; gap: 0; padding: 9px 11px; } .nav__save svg { width: 16px; height: 16px; } }
