:root {
  --page: #E4E4E4;
  --page-circle: #D6D6D6;
  --card: #2A2A2A;
  --card-2: #333333;
  --text: #FFFFFF;
  --muted: #C9C9C9;
  --violet: #A78BFA;
  --teal: #5EEAD4;
  --grey: #E6E6E6;
  --ink: #1F1F1F;
  --radius: 32px;
  --pad: clamp(24px, 7vw, 136px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* faint large circles behind the card (clipped so the page never scrolls sideways) */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.bg::before,
.bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--page-circle);
}
.bg::before { width: 720px; height: 720px; top: -340px; right: -300px; }
.bg::after  { width: 640px; height: 640px; top: 640px; left: -420px; }

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--teal); color: var(--ink); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 16px; }

.wrap {
  width: min(1840px, 100% - 2 * clamp(16px, 4vw, 80px));
  margin: 0 auto;
}

/* ---------- card ---------- */
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px) var(--pad);
}

.hero {
  margin-top: clamp(16px, 4vw, 64px);
  min-height: max(720px, calc(100vh - 2 * clamp(16px, 4vw, 64px)));
  display: flex;
  flex-direction: column;
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  color: var(--text);
}
.logo .word {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.04em;
}
.logo .word .eight { color: var(--teal); }
.logo .sub {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.48em;
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- hero copy ---------- */
.hero-body {
  margin-top: clamp(48px, 7vh, 110px);
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  border-left: 6px solid var(--teal);
  padding: 2px 0 2px 26px;
  margin-bottom: clamp(36px, 5vh, 64px);
}
.eyebrow .label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.eyebrow p {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 22px);
  max-width: 640px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; }

h1 {
  font-size: clamp(42px, 5.6vw, 88px);
  letter-spacing: -0.01em;
  max-width: 12ch;
}

/* ---------- notify form ---------- */
.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: clamp(36px, 5vw, 76px);
}
.notify input {
  flex: 1 1 280px;
  max-width: 492px;
  height: 66px;
  border: 0;
  border-radius: 0;
  padding: 0 26px;
  font: inherit;
  font-size: 19px;
  color: var(--ink);
  background: #FFFFFF;
}
.notify input::placeholder { color: #6E6E6E; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 66px;
  padding: 0 48px;
  border: 0;
  background: var(--teal);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 #FFFFFF;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #FFFFFF; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #FFFFFF; }

.form-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.6em;
}

.hero-foot {
  margin-top: auto;
  padding-top: 56px;
  position: relative;
  z-index: 1;
}
.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-nav a { text-decoration: none; color: var(--muted); }
.hero-nav a:hover { color: var(--text); }

/* ---------- geometric shapes ---------- */
.shapes { position: absolute; pointer-events: none; display: block; }
.shapes-top { top: 0; right: 0; width: clamp(130px, 13vw, 240px); }
.shapes-bottom { bottom: 0; right: 0; width: clamp(260px, 30vw, 560px); }
.shapes-small { top: 0; right: 0; width: clamp(90px, 9vw, 160px); }

.contact-list { margin: 30px 0 0; display: grid; gap: 18px; }
.contact-list dt {
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.contact-list dd { margin: 2px 0 0; font-size: 20px; }
.contact-list a { text-decoration-color: var(--teal); text-underline-offset: 4px; }
.contact-list a:hover { color: var(--teal); }

/* ---------- footer ---------- */
.footer {
  color: #3A3A3A;
  padding: 48px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
  font-size: 16px;
}
.footer strong { color: var(--ink); font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.footer a { color: var(--ink); text-underline-offset: 4px; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  :root { --radius: 22px; }
  body { font-size: 17px; }
  .hero { min-height: 0; padding-bottom: 210px; }
  .shapes-top { width: 104px; }
  .shapes-bottom { width: 300px; }
  .logo .word { font-size: 24px; }
  .notify input { max-width: none; flex-basis: 100%; height: 58px; }
  .btn { width: 100%; height: 58px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.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;
}

/* ---------- popups ---------- */
.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.hero-nav .link-btn { text-decoration: none; color: var(--muted); letter-spacing: inherit; text-transform: inherit; font-weight: inherit; }
.hero-nav .link-btn:hover { color: var(--text); }

dialog.popup {
  width: min(760px, 100% - 32px);
  max-height: min(86vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  overflow: hidden;
}
dialog.popup::backdrop { background: rgba(28, 28, 28, 0.62); }
dialog.popup[open] { display: flex; flex-direction: column; }
.popup-inner {
  position: static;
  overflow-y: auto;
  padding: clamp(28px, 5vw, 56px);
}
.popup .eyebrow { margin-bottom: 26px; padding-right: 90px; }
.popup h2 { font-size: clamp(32px, 4vw, 48px); padding-right: 60px; }
.popup p, .popup li { color: #DDDDDD; }
.popup h3 { font-size: 22px; margin: 34px 0 8px; }
.popup ul { padding-left: 22px; }
.popup a { color: var(--teal); text-underline-offset: 4px; }
.popup .updated { color: var(--muted); margin-top: 12px; }
.popup .contact-list a { color: var(--text); }
.popup .contact-list a:hover { color: var(--teal); }

.close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #FFFFFF; color: var(--ink);
  font: inherit; font-size: 28px; line-height: 1; cursor: pointer;
}
.close:hover { background: var(--teal); }
.popup .btn { margin-top: 36px; }
.popup a.btn { color: var(--ink); text-decoration: none; }

/* ---------- what we do ---------- */
.what {
  margin-top: clamp(48px, 7vh, 88px);
  max-width: 860px;
}
.what-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.what-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.what-list svg { width: 32px; height: 32px; display: block; margin-bottom: 14px; }
.what-list h3 { font-size: 21px; margin-bottom: 6px; }
.what-list p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .what { max-width: none; }
  .what-list { grid-template-columns: 1fr; gap: 24px; }
}

/* mid widths: keep the content clear of the bottom-right shapes */
@media (min-width: 641px) and (max-width: 1300px) {
  .hero, .page-hero { padding-bottom: calc(clamp(260px, 30vw, 560px) * 0.554 + 8px); }
}

/* ---------- studio page ---------- */
.page-hero { margin-top: clamp(16px, 4vw, 64px); display: flex; flex-direction: column; min-height: 640px; }
.page-hero .hero-body { margin-top: clamp(48px, 8vh, 120px); max-width: 900px; }
.page-title { max-width: 16ch; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 760px; margin: 28px 0 0; }
.block { margin-top: clamp(20px, 3vw, 40px); }
.block h2 { font-size: clamp(32px, 3.8vw, 56px); max-width: 20ch; padding-right: 110px; }
.block .eyebrow { margin-bottom: 30px; }
.block .what-list { margin-top: 44px; }
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.steps li { background: var(--card-2); border-radius: 20px; padding: 28px 26px 30px; }
.steps .num { display: block; font-weight: 600; font-size: 15px; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 18px; }
.steps h3 { font-size: 23px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.split .block h2 { padding-right: 0; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; font-size: 20px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px;
  border-radius: 16px 0 0 0; background: var(--violet);
}
.ticks li:nth-child(2)::before { background: var(--teal); border-radius: 50%; }
.ticks li:nth-child(3)::before { background: #FFFFFF; border-radius: 0 0 16px 0; }

@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .page-hero { min-height: 0; padding-bottom: 210px; }
  .block h2 { padding-right: 0; }
  .block .shapes-small { width: 72px; }
}
