/* Studio sections after the walkthrough: studio, process, work, quote, contact. */

:root {
  --panel: #14171b;
  --panel-line: rgba(255, 255, 255, 0.1);
  --sand: #e9dccb;
  --sand-dim: rgba(233, 220, 203, 0.62);
  --accent: #ffbf7a;
  --gutter: clamp(16px, 4vw, 72px);
}

/* All sections read in white: secondary text, labels and numbers use white
   tints instead of sand and orange. The quote keeps its own light panel. */
.panel:not(.quote) {
  --sand: #ffffff;
  --sand-dim: rgba(255, 255, 255, 0.72);
  --accent: #ffffff;
}

.panel {
  margin-top: var(--inset);
  padding: clamp(56px, 8vw, 128px) var(--gutter);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--sand);
}

.kicker {
  margin-bottom: clamp(14px, 1.4vw, 22px);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2rem, 1rem + 3.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

/* ---------- Studio ---------- */

.studio__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.studio__body p {
  max-width: 34em;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.7;
  color: var(--sand);
}

.studio__body p + p { margin-top: 1.1em; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: clamp(32px, 3.5vw, 56px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--panel-line);
}

.stats dt { font-size: 14px; color: var(--sand-dim); }
.stats dd {
  margin: 4px 0 0;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.6rem);
  font-weight: 200;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.founder {
  position: relative;
  margin: clamp(48px, 6vw, 96px) 0 0;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.founder img {
  display: block;
  width: 100%;
  height: clamp(320px, 46vw, 640px);
  object-fit: cover;
}

.founder figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(24px, 4vw, 56px);
  background: linear-gradient(0deg, rgba(10, 8, 6, 0.78), rgba(10, 8, 6, 0));
}

.founder blockquote {
  margin: 0;
  max-width: 22em;
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.2rem);
  font-weight: 300;
  line-height: 1.35;
  color: #fff;
}

.founder__name {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  color: var(--sand);
}

/* ---------- Process ---------- */

.process__head { margin-bottom: clamp(40px, 5vw, 80px); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--panel-line);
}

.step {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(16px, 2vw, 32px) 8px;
  border-inline-start: 1px solid var(--panel-line);
}

.step:first-child { border-inline-start: 0; padding-inline-start: 0; }

.step__num {
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.5rem);
  font-weight: 500;
  color: #fff;
}

.step p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-dim);
}

.step__time {
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  color: var(--sand);
}

/* ---------- Work ---------- */

.work__head { margin-bottom: clamp(36px, 4vw, 64px); }

.cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(10px, 1.2vw, 18px);
}

.card {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.card:first-child { aspect-ratio: auto; }

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.card:hover img { transform: scale(1.04); }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 8, 6, 0.7) 0%, rgba(10, 8, 6, 0) 45%);
}

.card__meta {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: clamp(18px, 2vw, 28px);
}

.card__name { font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.6rem); font-weight: 500; color: #fff; }
.card__place { font-size: 14px; color: var(--sand); }

.card__tag {
  position: absolute;
  z-index: 1;
  top: 16px;
  inset-inline-start: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.card:focus-visible,
.form__send:focus-visible,
.contact a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Quote ---------- */

.quote {
  background: var(--sand);
  color: #1b1712;
}

.quote figure { margin: 0 auto; max-width: 1100px; text-align: center; }

.quote blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 0.9rem + 2.3vw, 3.2rem);
  font-weight: 300;
  line-height: 1.3;
  text-wrap: balance;
}

.quote figcaption { margin-top: 28px; font-size: 16px; font-weight: 500; }

/* ---------- Contact: a two-step brief in the site's own dark world ---------- */

/* The contact section reads in white: its secondary text and accents switch
   from sand to white tints. */
.contact {
  --sand: #ffffff;
  --sand-dim: rgba(255, 255, 255, 0.72);
}

.contact__head { max-width: 1100px; }

.contact__title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(2.6rem, 1.2rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.contact__lede {
  margin-top: clamp(18px, 2vw, 28px);
  max-width: 38em;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.7;
  color: var(--sand-dim);
}

.contact__body {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) 1.38fr;
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--panel-line);
}

/* Who answers, what happens, how to reach */
.person { display: flex; align-items: center; gap: 14px; }

.person__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(233, 220, 203, 0.4);
  color: var(--sand);
  font-size: 17px;
  font-weight: 500;
}

.person__name { font-size: 18px; font-weight: 500; color: #fff; }
.person__role { font-size: 15px; color: var(--sand-dim); }

.next { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: next; }

.next li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 40px 22px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sand-dim);
  counter-increment: next;
}

.next li b { font-weight: 500; color: #fff; }

.next li::before {
  content: counter(next);
  position: absolute;
  right: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(233, 220, 203, 0.12);
  font-size: 12px;
  color: var(--sand);
}

.next li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 11.5px;
  top: 30px;
  bottom: 6px;
  width: 1px;
  background: rgba(233, 220, 203, 0.16);
}

.reach { margin: 12px 0 0; padding-top: 8px; border-top: 1px solid var(--panel-line); }
.reach div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--panel-line); }
.reach dt { font-size: 15px; color: var(--sand-dim); }
.reach dd { margin: 0; font-size: 15px; color: #fff; }
.reach a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: border-color 0.2s; }
.reach a:hover { border-color: #fff; }

/* ---------- The brief ---------- */

.lead {
  position: relative;
  padding: clamp(24px, 3.2vw, 48px);
  border: 1px solid rgba(233, 220, 203, 0.14);
  border-radius: calc(var(--radius) + 4px);
  background: #1a1d22;
}

.lead__form[hidden], .lead__done[hidden], .step[hidden] { display: none; }

.lead__progress { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.lead__step-label { flex: none; font-size: 14px; color: var(--sand-dim); }
.lead__step-label b { font-weight: 500; color: #fff; }
.lead__bar { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(233, 220, 203, 0.14); overflow: hidden; }

.lead__bar span {
  position: absolute;
  inset: 0;
  background: var(--sand);
  transform: scaleX(var(--step-p, 0.5));
  transform-origin: right center;
  transition: transform 0.6s var(--ease-out);
}

.step { display: grid; gap: 26px; margin: 0; padding: 0; border: 0; min-width: 0; }
.step.is-entering { animation: stepIn 0.5s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.step__title { padding: 0; margin: 0 0 -6px; line-height: 1.2; font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 300; color: #fff; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }

/* Fields: a label above a quiet underline, the line warms to sand on focus */
.field { position: relative; display: grid; gap: 6px; }
.field label, .group__label { font-size: 14px; color: var(--sand-dim); }
.opt-tag { margin-inline-start: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(233, 220, 203, 0.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;
  text-align: right;
  appearance: none;
  caret-color: var(--sand);
  transition: border-color 0.25s;
}

.field textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.field input::placeholder { color: rgba(255, 255, 255, 0.55); }
.field select { cursor: pointer; padding-left: 26px; }
.field select option { color: #14171b; background: #f4efe7; }

.field:has(select)::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 20px;
  width: 7px;
  height: 7px;
  border-left: 1.5px solid var(--sand-dim);
  border-bottom: 1.5px solid var(--sand-dim);
  transform: rotate(-45deg);
  pointer-events: none;
}

.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(233, 220, 203, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sand); box-shadow: 0 1px 0 var(--sand); }

.field__count { justify-self: end; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.field__err { display: none; font-size: 14px; color: #f0a48a; }
.is-invalid > .field__err, .consent__err.is-on { display: block; }
.field.is-invalid input { border-bottom-color: #f0a48a; box-shadow: 0 1px 0 #f0a48a; }

/* Project type tiles */
.group { display: grid; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile input, .seg input { position: absolute; opacity: 0; pointer-events: none; }

.tile span {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 16px 18px 16px 44px;
  border: 1px solid rgba(233, 220, 203, 0.18);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.tile b { font-size: 17px; font-weight: 500; color: #fff; }
.tile small { font-size: 14px; color: var(--sand-dim); }

.tile span::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1.5px solid rgba(233, 220, 203, 0.4);
  border-radius: 50%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tile:hover span { border-color: rgba(233, 220, 203, 0.4); }
.tile input:checked + span { border-color: var(--sand); background: rgba(233, 220, 203, 0.07); }
.tile input:checked + span::after { border-color: var(--sand); box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 8px var(--sand); }
.tile input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.group.is-invalid .tile span { border-color: rgba(240, 164, 138, 0.6); }

.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(233, 220, 203, 0.18); border-radius: 999px; }
.seg label { flex: 1; }

.seg span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--sand-dim);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.seg input:checked + span { background: var(--sand); color: #1b1712; font-weight: 500; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; color: var(--sand-dim); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--sand); }

/* Actions */
.step__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }

.lead__next,
.lead__send {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: #1b1712;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.lead__next svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.lead__next:hover, .lead__send:hover { background: #f4ebde; }
.lead__next:hover svg { transform: translateX(-3px); }
.lead__send { flex: 1; max-width: 320px; }

.lead__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(233, 220, 203, 0.25);
  border-radius: 999px;
  background: none;
  color: var(--sand);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lead__back svg { width: 14px; height: 14px; }
.lead__back:hover { border-color: var(--sand); }
.lead__next:focus-visible, .lead__send:focus-visible, .lead__back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lead__spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(27, 23, 18, 0.25);
  border-top-color: #1b1712;
  border-radius: 50%;
  opacity: 0;
}

.lead__form.is-sending .lead__send-text { opacity: 0; }
.lead__form.is-sending .lead__spinner { opacity: 1; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lead__promise { margin-top: -8px; text-align: left; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* After sending */
.lead__done { display: grid; justify-items: start; gap: 12px; padding: clamp(8px, 2vw, 24px) 0; }
.lead__done:focus { outline: none; }
.lead__check { width: 56px; height: 56px; color: var(--sand); }
.lead__check svg { width: 100%; height: 100%; }
.lead__done-title { margin: 6px 0 0; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem); font-weight: 200; color: #fff; }
.lead__done-text { max-width: 34em; font-size: 17px; line-height: 1.65; color: var(--sand-dim); }
.lead__summary { width: 100%; max-width: 460px; margin: 12px 0 0; border-top: 1px solid var(--panel-line); }
.lead__summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--panel-line); }
.lead__summary dt { font-size: 15px; color: var(--sand-dim); }
.lead__summary dd { margin: 0; font-size: 15px; color: #fff; }
.lead__again { margin-top: 14px; font-size: 15px; color: var(--sand); border-bottom: 1px solid currentColor; }

::selection { background: rgba(233, 220, 203, 0.85); color: #14171b; }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px var(--gutter) 20px;
  font-size: 14px;
  color: var(--sand-dim);
}

.footer__brand { font-family: var(--font-display); font-size: 22px; color: #fff; letter-spacing: -0.03em; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: #fff; }

/* ---------- Scroll reveal (only when the script runs) ---------- */

.js [data-rise] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-soft), transform 1.1s var(--ease-out);
}

.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .studio__grid,
  .contact__body { grid-template-columns: 1fr; }
  .contact__aside { order: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--panel-line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  .panel { padding: 56px 20px; }
  .row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .seg span { font-size: 14px; padding: 0 4px; }
  .lead { padding: 22px 18px; margin-inline: -6px; }
  .step__actions { flex-wrap: wrap; }
  .lead__next, .lead__send { flex: 1; max-width: none; }
  .lead__promise { text-align: center; }

  /* Phones: the whole contact section is compact. */
  .panel.contact { padding: 40px 16px 32px; }
  .contact__title { font-size: 2.1rem; }
  .contact__lede { margin-top: 10px; font-size: 15px; line-height: 1.6; }
  .contact__body { margin-top: 24px; padding-top: 20px; gap: 28px; }
  .lead { padding: 16px 14px 18px; margin-inline: 0; border-radius: 16px; }
  .lead__progress { margin-bottom: 14px; gap: 12px; }
  .lead__step-label { font-size: 13px; }
  .step { gap: 16px; }
  .step__title { font-size: 1.25rem; margin-bottom: -4px; }
  .group { gap: 8px; }
  .field label, .group__label { font-size: 13px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile span { padding: 11px 12px 11px 30px; border-radius: 12px; }
  .tile b { font-size: 15px; }
  .tile small { display: none; }
  .tile span::after { left: 10px; width: 12px; height: 12px; margin-top: -6px; }
  .row { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .field select { padding-left: 18px; text-overflow: ellipsis; }
  .field:has(select)::after { left: 2px; }
  .field { gap: 2px; }
  .field input, .field select, .field textarea { min-height: 40px; padding: 6px 2px; font-size: 16px; }
  .field textarea { min-height: 64px; }
  .field:has(select)::after { bottom: 15px; }
  .seg span { min-height: 36px; font-size: 13px; }
  .consent { font-size: 13px; gap: 10px; }
  .lead__next, .lead__send, .lead__back { min-height: 48px; font-size: 15px; }
  .lead__promise { font-size: 13px; margin-top: -4px; }
  .person__mark { width: 40px; height: 40px; font-size: 14px; }
  .person__name { font-size: 16px; }
  .person__role { font-size: 13px; }
  .next { margin-top: 20px; }
  .next li { padding-bottom: 14px; font-size: 14px; }
  .reach div { padding: 9px 0; }
  .reach dt, .reach dd { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-inline-start: 0; padding-inline: 0; }
  .step + .step { border-top: 1px solid var(--panel-line); }
  .cards { grid-template-columns: 1fr; }
  .card,
  .card:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .stats dd { font-size: 2.2rem; }
  .founder img { height: 420px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .demo-badge { transition: none; }
  .lead__form.is-sending .lead__spinner { animation: none; }
  .step.is-entering { animation: none; }
  .card img { transition: none; }
}

/* ---------- Demo badge (this page is a sample) ---------- */

.demo-badge {
  position: fixed;
  z-index: 50;
  bottom: 14px;
  left: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #101418;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Shown once the hero is scrolled away, so it never covers the hero links. */
.js .demo-badge { opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-out); }
.js .demo-badge.is-on { opacity: 1; transform: none; pointer-events: auto; }

.demo-badge:hover { background: #fff; }
.demo-badge:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 600px) {
  .demo-badge { bottom: 10px; left: 10px; font-size: 12px; padding: 8px 12px; }
}
