/* MYS Designs. Split layout rebuilt from measurements of the reference site (1440px frame):
   458px sticky sidebar, 12px gutter everywhere, 970px images with 12px gaps, mono 12px labels,
   20px / 16px light text, 4px nav marker, cursor-follow "View Project" tag, scroll-faded gallery,
   scroll-synced accordions, full-width brand-colour footer with an oversized wordmark.
   Brand: MYS Purple #9643ff (accent), near-black purple #0f0619 (base), white #fefefe. No gradients. */
:root {
  --purple: #9643ff;
  --night: #0f0619;
  --white: #fefefe;
  --half: rgba(254, 254, 254, 0.5);
  --wash: rgba(254, 254, 254, 0.04);
  --g: 12px;
  --aside: clamp(320px, 31.8vw, 560px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Clash Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font: 300 16px/1.3 var(--sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; color: transparent; }
p, h1, h2, h3 { margin: 0; font-weight: 300; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--purple); color: var(--white); }
:focus-visible { outline: 1px solid var(--purple); outline-offset: 3px; }
.mono, .tag, .menu a, .acc-head, .cap {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.view { animation: viewIn 0.7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }

/* Nav: logo top-left, stacked links right-aligned to the sidebar edge, 4px purple marker on the active one. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: var(--aside);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--g);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.logo {
  display: block;
  width: 168px;
  aspect-ratio: 1707 / 311;
  background: var(--white);
  -webkit-mask: url(brand/wordmark.svg) left center / contain no-repeat;
  mask: url(brand/wordmark.svg) left center / contain no-repeat;
  transition: background-color 0.3s var(--ease);
}
.logo:hover { background: var(--purple); }
.menu { display: flex; flex-direction: column; align-items: flex-end; }
.menu a { position: relative; font-weight: 400; transition: color 0.3s var(--ease); }
.menu a::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  background: var(--purple);
  transform: scale(0);
  transition: transform 0.35s var(--out);
}
.menu a.on::before, .menu a:hover::before { transform: scale(1); }
.menu-btn { display: none; }
.menu a:hover { color: var(--purple); }

/* Split: sticky sidebar left, gallery right. */
.split { display: grid; grid-template-columns: var(--aside) minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; }

/* "Now viewing" card: sits at 44% of the viewport, like the reference. Cards stack and cross-fade. */
.now-stack { position: absolute; left: var(--g); right: var(--g); top: 44.5%; display: grid; }
.now {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--out);
}
.now.is-on { opacity: 1; transform: none; pointer-events: auto; }
.now.slide { opacity: 1; transform: translate3d(calc(-100% - 40px), 0, 0); transition: transform 0.9s var(--out); }
.now.slide.is-on { transform: none; }
.thumb { flex: 0 0 53px; width: 53px; height: 53px; overflow: hidden; background: var(--purple); }
.thumb img { transition: transform 0.8s var(--out); }
.thumb.is-icon img { object-fit: cover; padding: 0; }
.now:hover .thumb img { transform: scale(1.08); }
.thumb-brand { display: flex; align-items: center; justify-content: center; }
.thumb-brand::after {
  content: "";
  width: 24px;
  aspect-ratio: 231 / 254;
  background: var(--white);
  -webkit-mask: url(brand/logomark.svg) center / contain no-repeat;
  mask: url(brand/logomark.svg) center / contain no-repeat;
}
.now-text { min-width: 0; }
.now-title { display: block; font-size: 20px; line-height: 26px; letter-spacing: -0.02em; }
.tag { display: block; margin-top: 4px; font-weight: 300; color: var(--white); }
.tag b { font-weight: 300; color: var(--purple); }
.now:hover .now-title { color: var(--purple); }

/* Project description at the foot of the sidebar (home). */
.desc-stack { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); display: grid; }
.desc {
  grid-area: 1 / 1;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--out);
}
.desc.is-on { opacity: 1; transform: none; }

/* Accordions at the foot of the sidebar: mono label, 4px dot (purple when open), light body copy. */
.acc { position: absolute; left: var(--g); right: var(--g); bottom: var(--g); }
.acc-head {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 2px;
  font-weight: 300;
  text-align: left;
  cursor: pointer;
}
.acc-head span { transition: color 0.3s var(--ease); }
.acc-head:hover span { color: var(--purple); }
.dot { flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--half); transition: background-color 0.3s var(--ease), transform 0.4s var(--out); }
.acc-item.open .dot { background: var(--purple); transform: scale(1.25); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.95s cubic-bezier(0.65, 0, 0.35, 1); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.studio-address { margin-top: 1.6em; }
.acc-inner { overflow: hidden; min-height: 0; }
.acc-inner p { padding: 3px 2px 0; font-size: 16px; line-height: 1.3; opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.acc-inner p:last-child { padding-bottom: 14px; }
.acc-inner a { text-decoration: underline; text-underline-offset: 3px; }
.acc-inner a:hover { color: var(--purple); }
.acc-item.open .acc-inner p { opacity: 1; transform: none; transition: opacity 0.7s var(--ease) 0.3s, transform 0.9s var(--out) 0.25s; }

/* Gallery: 12px from top and right, 12px gaps, 16:9 frames. */
.gallery { min-width: 0; display: flex; flex-direction: column; gap: var(--g); padding: var(--g) var(--g) var(--g) 0; }
.card { position: relative; display: block; transition: opacity 0.18s linear; }
.media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wash); }
video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--wash); }
.media > video { position: absolute; inset: 0; }
.media video { opacity: 0; transition: opacity 0.9s var(--ease); }
.media video.loaded { opacity: 1; }
.thumb video { width: 100%; height: 100%; }
.media img { opacity: 0; transform: scale(1.035); transition: opacity 0.9s var(--ease), transform 1.6s var(--out); }
.media img.loaded { opacity: 1; transform: none; }
.block { display: flex; flex-direction: column; gap: var(--g); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
.row .media { aspect-ratio: 479 / 512; }
.cap { display: none; }
.cap b { font-weight: 300; color: var(--purple); }

/* Cursor-follow tag: sits 24px below-right of the pointer, square top-left corner. */
.cursor { position: fixed; left: 0; top: 0; z-index: 40; padding: 24px 0 0 24px; pointer-events: none; will-change: transform; }
.cursor-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px 10px 15px;
  background: var(--purple);
  color: var(--white);
  font: 400 13px/21px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0 3px 3px 3px;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.2s var(--ease);
}
.cursor.on .cursor-box { clip-path: inset(0 0 0 0); opacity: 1; }
.cursor-text { min-width: 12ch; }
.cursor-caret { width: 7px; height: 13px; background: var(--white); animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Footer: full-width MYS Purple band, near-black text, oversized wordmark rising in as it scrolls into view. */
.foot { position: relative; overflow: hidden; background: var(--purple); color: var(--night); padding: clamp(36px, 4vw, 56px) clamp(16px, 2.6vw, 40px) 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; }
.foot-line { max-width: 22em; font: 300 clamp(22px, 1.8vw, 28px)/1.15 var(--sans); letter-spacing: -0.03em; }
.foot-mail { display: inline-block; margin-top: 14px; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot-mail:hover { color: var(--white); }
.foot-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 36px; align-content: start; font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.foot-links a { padding: 4px 0; opacity: 0.75; transition: opacity 0.3s var(--ease); }
.foot-links a:hover { opacity: 1; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(20px, 2.4vw, 32px); padding: 18px 0 clamp(22px, 2.6vw, 34px); border-top: 1px solid rgba(15, 6, 25, 0.22); font: 300 13px/1.5 var(--sans); letter-spacing: 0; }
.foot-bottom p { margin: 0; opacity: 0.75; }
.foot-legal { display: flex; gap: 24px; }
.foot-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ctas { display: flex; gap: 16px; }
.btn-line, .btn-solid { display: inline-flex; align-items: center; height: 64px; border-radius: 10px; font: 400 18px/1 var(--sans); letter-spacing: -0.02em; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.btn-line { padding: 0 16px; border: 1px solid var(--night); }
.btn-line:hover { background: var(--night); color: var(--white); }
.btn-solid { gap: 16px; padding: 0 13px 0 16px; background: var(--night); color: var(--white); }
.btn-solid i { display: flex; align-items: center; justify-content: center; width: 48px; height: 38px; border-radius: 6px; background: var(--purple); transition: transform 0.45s var(--out); }
.btn-solid i svg { width: 16px; height: 16px; }
.btn-solid:hover i { transform: translateX(4px); }
.giant {
  display: block;
  width: 100%;
  margin-top: clamp(56px, 9vw, 150px);
  aspect-ratio: 1707 / 311;
  background: var(--night);
  -webkit-mask: url(brand/wordmark.svg) center bottom / 100% auto no-repeat;
  mask: url(brand/wordmark.svg) center bottom / 100% auto no-repeat;
  transform: translate3d(0, calc((1 - var(--p, 1)) * 40%), 0);
  will-change: transform;
}

/* Privacy Policy and Terms: full text on the right, section summaries in the sidebar accordion. */
.legal { padding: clamp(80px, 12vh, 140px) clamp(12px, 4vw, 64px) 55vh clamp(24px, 4vw, 64px); max-width: 980px; }
.legal-head { margin-bottom: clamp(48px, 8vh, 96px); }
.legal-title { font-size: clamp(44px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 300; }
.legal-updated { margin-top: 16px; font: 300 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(254, 254, 254, 0.6); }
.btn-inline { font: 400 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.btn-inline:hover { color: var(--white); }
.toc-link { text-decoration: none; color: rgba(254, 254, 254, 0.55); transition: color 0.3s var(--ease); }
.toc-link:hover, .toc-link.on { color: var(--white); }
.toc-link.on .dot { background: var(--purple); transform: scale(1.25); }
.legal-sec { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 24px; padding: 28px 0 36px; border-top: 1px solid rgba(254, 254, 254, 0.12); }
.legal-num { margin: 0; padding-top: 6px; }
.legal-sec h2 { margin: 0 0 14px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; }
.legal-sec p { margin: 0 0 12px; max-width: 62ch; font-size: 17px; line-height: 1.5; color: rgba(254, 254, 254, 0.82); }

/* Contact page form. */
.contact-intro { margin-top: 18px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; color: rgba(254, 254, 254, 0.82); }
.cform { max-width: 760px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.f-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.f-field.half { grid-column: span 1; }
.f-label { font: 300 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(254, 254, 254, 0.7); }
.f-opt { color: rgba(254, 254, 254, 0.4); }
.cform input, .cform textarea, .cform select {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(254, 254, 254, 0.25);
  border-radius: 0;
  color: var(--white);
  font: 300 18px/1.4 var(--sans);
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform textarea:focus, .cform select:focus { border-color: var(--purple); }
.cform ::placeholder { color: rgba(254, 254, 254, 0.3); }
.f-select { position: relative; }
.f-select select { appearance: none; cursor: pointer; padding-right: 28px; }
.f-select select option { background: var(--night); color: var(--white); }
.f-select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1px solid var(--white); border-bottom: 1px solid var(--white); transform: rotate(45deg); pointer-events: none; }
.f-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.f-choice { position: relative; }
.f-choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.f-choice span { display: inline-block; padding: 9px 14px; border: 1px solid rgba(254, 254, 254, 0.25); font-size: 15px; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.f-choice input:checked + span { background: var(--purple); border-color: var(--purple); }
.f-choice input:focus-visible + span { outline: 1px solid var(--purple); outline-offset: 2px; }
.f-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-error { margin-top: 22px; color: #ff8a9b; font-size: 15px; }
.f-submit { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; height: 60px; padding: 0 12px 0 20px; border: 0; border-radius: 10px; background: var(--purple); color: var(--white); font: 400 18px/1 var(--sans); letter-spacing: -0.02em; cursor: pointer; transition: filter 0.3s var(--ease); }
.f-submit i { display: flex; align-items: center; justify-content: center; width: 44px; height: 36px; border-radius: 6px; background: var(--night); transition: transform 0.45s var(--out); }
.f-submit i svg { width: 16px; height: 16px; }
.f-submit:hover i { transform: translateX(4px); }
.f-submit:disabled { filter: grayscale(0.4) brightness(0.8); cursor: default; }
.f-done { max-width: 560px; padding: 28px 0; border-top: 1px solid rgba(254, 254, 254, 0.14); }
.f-done-title { font-size: 28px; margin-bottom: 10px; }
.f-done p { margin-bottom: 14px; color: rgba(254, 254, 254, 0.85); font-size: 18px; }
.f-next { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 18px; }
.f-next li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.f-next-n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--purple); color: var(--purple); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.f-next strong { display: block; font-weight: 500; font-size: 18px; color: var(--white); margin-bottom: 4px; }
.f-next span:not(.f-next-n) { display: block; color: rgba(254, 254, 254, 0.75); font-size: 16px; line-height: 1.5; }
.f-next-foot { font-size: 15px !important; }
.contact-page .legal { padding-bottom: 120px; }

/* Intro: scrambled name, wordmark, a purple line draws across, then the screen opens top and bottom. */
html.intro { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.ld-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--night); transition: transform 1s cubic-bezier(0.77, 0, 0.18, 1); }
.ld-top { top: 0; }
.ld-bot { bottom: 0; }
.ld-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: var(--purple); transform: scaleX(0); transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.4s var(--ease); }
.ld-core { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s var(--ease), transform 1s cubic-bezier(0.77, 0, 0.18, 1); }
.ld-text { position: absolute; font: 400 clamp(16px, 1.6vw, 22px)/1 var(--mono); letter-spacing: 0.3em; color: var(--white); text-transform: uppercase; opacity: 0; transition: opacity 0.35s var(--ease), letter-spacing 0.6s var(--out); }
.ld-mark {
  position: absolute;
  width: clamp(200px, 26vw, 380px);
  aspect-ratio: 1707 / 311;
  background: var(--white);
  -webkit-mask: url(brand/wordmark.svg) center / contain no-repeat;
  mask: url(brand/wordmark.svg) center / contain no-repeat;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}
.loader.s1 .ld-text { opacity: 1; }
.loader.s2 .ld-text { opacity: 0; letter-spacing: 0.6em; }
.loader.s2 .ld-mark { clip-path: inset(0 0 0 0); }
.loader.s3 .ld-line { transform: scaleX(1); }
.loader.s4 .ld-top { transform: translate3d(0, -100%, 0); }
.loader.s4 .ld-bot { transform: translate3d(0, 100%, 0); }
.loader.s4 .ld-line { opacity: 0; }
.loader.s4 .ld-core { opacity: 0; transform: scale(0.96); }

/* Editor preview badge */
.preview-tag { position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%); padding: 8px 14px; background: #ffb547; color: var(--night); font: 400 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 3px; }

/* Home positioning: what we do, who for, where. Top of the sidebar on desktop, top of the page on phones. */
.pitch { position: absolute; left: var(--g); right: var(--g); top: 124px; max-width: 30em; }
.pitch-line { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 300; max-width: 17em; }
.pitch-sub { margin-top: 12px; font-size: 15px; line-height: 1.4; color: rgba(254, 254, 254, 0.62); max-width: 32em; }
.pitch-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.btn-inline.dim { color: rgba(254, 254, 254, 0.6); }
.btn-inline.dim:hover { color: var(--white); }
.m-only { display: none; }
.d-only { display: flex; flex-direction: column; gap: var(--g); }

/* Services page */
.services .sv-sec { padding: 34px 0 10px; border-top: 1px solid rgba(254, 254, 254, 0.12); }
.services .sv-sec > h2 { margin: 0 0 18px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; }
.sv-list { margin: 0 0 18px; padding: 0; list-style: none; }
.sv-list li { position: relative; padding: 9px 0 9px 22px; font-size: 17px; line-height: 1.45; color: rgba(254, 254, 254, 0.85); border-bottom: 1px solid rgba(254, 254, 254, 0.07); }
.sv-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 6px; height: 6px; background: var(--purple); }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--g); }
.pkg { display: flex; flex-direction: column; padding: 24px; border: 1px solid rgba(254, 254, 254, 0.16); background: var(--wash); }
.pkg.is-rec { border-color: var(--purple); background: rgba(150, 67, 255, 0.08); }
.pkg-tag { margin: 0 0 10px; }
.pkg-name { font-size: 28px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; }
.pkg-sum { margin: 10px 0 14px; font-size: 16px; line-height: 1.4; color: rgba(254, 254, 254, 0.75); }
.pkg .sv-list { flex: 1; }
.pkg .sv-list li { font-size: 15px; padding: 7px 0 7px 20px; }
.pkg .sv-list li::before { top: 15px; }
.pkg-price { margin: 4px 0 16px; font: 300 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(254, 254, 254, 0.7); }
.pkg .f-submit, .pkg .btn-ghost { margin-top: 0; align-self: flex-start; }
.btn-ghost { display: inline-flex; align-items: center; height: 60px; padding: 0 20px; border: 1px solid rgba(254, 254, 254, 0.35); border-radius: 10px; font: 400 18px/1 var(--sans); letter-spacing: -0.02em; color: var(--white); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.btn-ghost:hover { border-color: var(--purple); background: rgba(150, 67, 255, 0.12); }
.sv-note { margin: 18px 0 8px; font-size: 15px; color: rgba(254, 254, 254, 0.65); max-width: 60ch; }
.faq { border-bottom: 1px solid rgba(254, 254, 254, 0.1); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; list-style: none; cursor: pointer; font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--purple); }
.faq[open] .dot { background: var(--purple); transform: scale(1.25); }
.faq p { margin: 0 0 18px; max-width: 62ch; font-size: 17px; line-height: 1.5; color: rgba(254, 254, 254, 0.8); }
.sv-cta { padding: 44px 0 0; border-top: 1px solid rgba(254, 254, 254, 0.12); }
.sv-cta-line { font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.sv-cta .f-submit { margin-top: 0; }
.f-submit { text-decoration: none; }

/* Phone tap tag on project cards: a small arrow that wipes open into "View Project" when tapped. */
.tap-tag { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; align-items: center; gap: 8px; height: 36px; padding: 0 9px; border-radius: 8px; background: var(--purple); color: var(--white); font: 400 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 20px rgba(15, 6, 25, 0.35); }
.tap-text { display: inline-block; max-width: 0; overflow: hidden; transition: max-width 0.45s cubic-bezier(0.77, 0, 0.18, 1); }
.tap-arrow { display: flex; width: 18px; height: 18px; transition: transform 0.45s var(--out); }
.tap-arrow svg { width: 100%; height: 100%; }
.card.tapped .tap-text { max-width: 14ch; }
.card.tapped .tap-arrow { transform: translate(2px, -2px); }

/* Pre-render fallback text for search engines and no-JS visitors (replaced on load). */
.fallback { max-width: 720px; padding: 120px 24px; }
.fallback h1 { font-size: 40px; line-height: 1.1; margin-bottom: 20px; }
.fallback p { margin-bottom: 14px; font-size: 18px; }
.fallback nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.fallback a { text-decoration: underline; }

/* Short desktop windows: lift the "now" card so it clears the accordions. */
@media (min-width: 900px) and (max-height: 760px) {
  .now-stack { top: 96px; }
  .home .pitch-sub { display: none; }
  .home .now-stack { top: 54%; }
}

/* Phones and small tablets: sticky top bar, sidebar becomes an intro block, captions under images. */
@media (max-width: 899px) {
  /* Phone menu: a Menu button opens a full-screen panel in the site colour, very slightly see-through. */
  .nav { position: sticky; width: auto; align-items: center; height: 60px; padding: 0 var(--g); background: var(--night); }
  .logo, .menu-btn { position: relative; z-index: 2; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-right: -8px; padding: 0 8px; border: 0; background: none; color: var(--white); font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
  .menu-btn i { position: relative; width: 18px; height: 8px; }
  .menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.45s var(--out), top 0.45s var(--out); }
  .menu-btn i::before { top: 0; }
  .menu-btn i::after { top: 6.5px; }
  .menu-open .menu-btn i::before { top: 3.25px; transform: rotate(45deg); }
  .menu-open .menu-btn i::after { top: 3.25px; transform: rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px;
    padding: 90px var(--g) calc(40px + env(safe-area-inset-bottom));
    background: rgba(15, 6, 25, 0.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .menu-open .menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.45s var(--ease); }
  .menu a { display: block; padding: 6px 0; font: 300 clamp(44px, 13vw, 64px)/1.05 var(--sans); letter-spacing: -0.04em; text-transform: none; color: var(--white); transform: translate3d(0, 18px, 0); opacity: 0; transition: transform 0.6s var(--out), opacity 0.45s var(--ease), color 0.3s var(--ease); }
  .menu-open .menu a { transform: none; opacity: 1; }
  .menu-open .menu a:nth-child(2) { transition-delay: 0.04s; }
  .menu-open .menu a:nth-child(3) { transition-delay: 0.08s; }
  .menu-open .menu a:nth-child(4) { transition-delay: 0.12s; }
  .menu a::before { display: none; }
  .menu a.on { color: var(--purple); }
  html.menu-open { overflow: hidden; }

  /* Home on phones: project cards pin under the menu bar and pile onto each other as you scroll. */
  .home .gallery { gap: 0; padding-bottom: 14vh; }
  .home .card { position: sticky; top: 72px; margin-bottom: 14px; padding-bottom: 10px; background: var(--night); transform-origin: 50% 0; will-change: transform, filter; }
  .tap-tag { display: flex; }
  .home .card:last-child { margin-bottom: 0; }
  .logo { width: 132px; }
  .split { display: block; }
  .side { position: static; height: auto; padding: 8px var(--g) 28px; }
  .home .side { padding: 22px var(--g) 26px; }
  .home .now-stack, .home .desc-stack { display: none; }
  .pitch { position: static; max-width: none; }
  .pitch-line { font-size: 30px; line-height: 1.08; }
  .pitch-sub { font-size: 16px; }
  .pitch-ctas .btn-inline { padding: 10px 0; }
  .d-only { display: none; }
  .m-only { display: block; }
  .case .acc { display: none; }
  .case .now-stack { margin-bottom: 8px; }
  .m-sec { padding: 26px 4px 14px; }
  .m-sec-title { font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
  .m-sec p { font-size: 17px; line-height: 1.45; color: rgba(254, 254, 254, 0.88); margin-bottom: 10px; }
  .m-media { display: flex; flex-direction: column; gap: var(--g); }
  .m-media .row .media { aspect-ratio: 479 / 512; }
  .m-next { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding: 16px 0; border-top: 1px solid rgba(254, 254, 254, 0.14); }
  .m-next .now-title { font-size: 20px; }
  .pkg { padding: 20px; }
  .btn-ghost, .f-submit { height: 54px; font-size: 17px; }
  .faq summary { font-size: 17px; }
  .now-stack, .desc-stack, .acc { position: static; }
  .now.slide { display: none; }
  .legal { padding: 8px var(--g) 48px; }
  .legal-page .legal { padding-bottom: 48px; }
  .legal-sec { grid-template-columns: 1fr; }
  .legal-num { padding: 0 0 8px; }
  .legal-page .now-stack { display: none; }
  .f-grid { grid-template-columns: 1fr; }
  .f-field.half { grid-column: 1 / -1; }
  .contact-page .acc { margin-bottom: 8px; }
  .legal-page .side { padding-bottom: 8px; }
  .now-stack { margin-bottom: 24px; }
  .gallery { padding: 0 var(--g) var(--g); }
  .card { opacity: 1 !important; }
  .cap { display: block; margin: 8px 4px 0; font-size: 11px; line-height: 15px; }
  .home .gallery { gap: 18px; }
  .cursor { display: none; }
  .foot { padding: 32px var(--g) 0; }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .foot-line { font-size: 22px; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .foot-links a { padding: 8px 0; }
  .foot-bottom { flex-direction: column; font-size: 12px; padding-bottom: 22px; }
  .btn-line, .btn-solid { height: 48px; font-size: 15px; }
  .btn-solid i { width: 36px; height: 30px; }
}
@media (hover: none) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .giant { transform: none; }
  .loader { display: none; }
}

/* Contact form, one question at a time (Typeform style). */
.tf { position: relative; max-width: 720px; min-height: 380px; padding-top: 26px; }
.tf-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(254, 254, 254, 0.1); border-radius: 2px; overflow: hidden; }
.tf-bar i { display: block; height: 100%; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--out); }
.tf-step { transition: opacity 0.22s var(--ease), transform 0.5s var(--out); }
.tf-step.tf-out-up { opacity: 0; transform: translate3d(0, -24px, 0); }
.tf-step.tf-out-down { opacity: 0; transform: translate3d(0, 24px, 0); }
.tf-step.tf-in-up { opacity: 0; transform: translate3d(0, 34px, 0); transition: none; }
.tf-step.tf-in-down { opacity: 0; transform: translate3d(0, -34px, 0); transition: none; }
.tf-q + .tf-q { margin-top: 38px; }
.tf-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font: 400 clamp(22px, 2.2vw, 32px)/1.2 var(--sans); letter-spacing: -0.03em; color: var(--white); }
.tf-label label { cursor: inherit; }
.tf-label .f-opt { font: 300 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tf-num { display: inline-flex; align-items: center; gap: 6px; font: 300 13px/1 var(--mono); color: var(--purple); transform: translateY(-3px); }
.tf-num svg { width: 11px; height: 11px; }
.tf-hint { margin: 10px 0 0; font: 300 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(254, 254, 254, 0.45); }
.tf-help { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: rgba(254, 254, 254, 0.6); max-width: 46ch; }
.tf input:not([type=radio]), .tf textarea { margin-top: 18px; padding: 10px 0 12px; font-size: clamp(20px, 1.8vw, 26px); border-bottom-color: rgba(150, 67, 255, 0.45); }
.tf textarea { min-height: 96px; resize: none; }
.tf-opts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; }
.tf-opt { position: relative; display: flex; align-items: center; gap: 14px; min-width: min(100%, 360px); max-width: 100%; padding: 12px 16px 12px 12px; border: 1px solid rgba(150, 67, 255, 0.45); border-radius: 10px; background: rgba(150, 67, 255, 0.08); font-size: 18px; line-height: 1.3; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.tf-opt:hover { background: rgba(150, 67, 255, 0.18); }
.tf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tf-key { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid rgba(150, 67, 255, 0.6); border-radius: 6px; font: 400 12px/1 var(--mono); color: rgba(254, 254, 254, 0.85); background: var(--night); transition: background-color 0.2s, border-color 0.2s; }
.tf-txt { flex: 1; }
.tf-tick { flex: none; width: 14px; height: 8px; margin-left: 10px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translateY(-2px); opacity: 0; transition: opacity 0.2s; }
.tf-opt:has(input:checked) { background: rgba(150, 67, 255, 0.32); border-color: var(--purple); }
.tf-opt:has(input:checked) .tf-key { background: var(--purple); border-color: var(--purple); color: var(--white); }
.tf-opt:has(input:checked) .tf-tick { opacity: 1; }
.tf-opt:has(input:focus-visible) { outline: 1px solid var(--white); outline-offset: 2px; }
.tf-opt.tf-blink { animation: tf-blink 0.36s steps(2) 1; }
@keyframes tf-blink { 50% { background: rgba(150, 67, 255, 0.08); } }
.tf-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.tf-actions .f-submit { margin-top: 0; }
.tf-ok { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--purple); color: var(--white); font: 400 17px/1 var(--sans); cursor: pointer; transition: filter 0.2s; }
.tf-ok:hover { filter: brightness(1.1); }
.tf-enter { font: 300 12px/1 var(--mono); color: rgba(254, 254, 254, 0.5); }
.tf-enter b { font-weight: 400; color: rgba(254, 254, 254, 0.8); }
.tf .f-error { margin-top: 16px; }
.tf-shake { animation: tf-shake 0.35s var(--ease); }
@keyframes tf-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.tf-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(254, 254, 254, 0.08); }
.tf-back { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 1px solid rgba(150, 67, 255, 0.45); border-radius: 10px; background: transparent; color: rgba(254, 254, 254, 0.85); font: 400 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease); }
.tf-back span { display: inline-block; transition: transform 0.35s var(--out); }
.tf-back:hover:not(:disabled) { background: rgba(150, 67, 255, 0.16); border-color: var(--purple); color: var(--white); }
.tf-back:hover:not(:disabled) span { transform: translateX(-3px); }
.tf-back:disabled { opacity: 0.25; cursor: default; }
.tf-dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tf-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(254, 254, 254, 0.22); cursor: pointer; transition: width 0.35s var(--out), background-color 0.25s var(--ease), transform 0.25s var(--out); }
.tf-dot::after { content: ""; position: absolute; inset: -9px; }
.tf-dot.done { background: rgba(150, 67, 255, 0.7); }
.tf-dot.on { width: 22px; background: var(--purple); }
.tf-dot:hover:not(:disabled) { transform: scale(1.25); }
.tf-dot:disabled { cursor: default; }
.tf-dot:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
@media (hover: none) { .tf-enter { display: none; } }
@media (max-width: 899px) { .tf { min-height: 0; } .tf-opt { min-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .tf-step, .tf-bar i { transition: none; } }

/* Project card hover: an image or looping video fades in over the cover on desktop. */
.hover-media { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.hover-media img, .hover-media video { position: absolute; inset: 0; }
@media (hover: hover) and (min-width: 900px) {
  .card:hover .hover-media { opacity: 1; }
}
@media (hover: none), (max-width: 899px) { .hover-media { display: none; } }
