/* =========================================================
   earth & water living — design studio website
   ========================================================= */

:root {
  /* Playful earth + water palette */
  --bg:       #FFF6E6;      /* warm cream */
  --bg-alt:   #FFE9C2;      /* peachy sand */
  --bg-blue:  #E0F4FB;      /* pale sky */
  --bg-green: #E8F5D8;      /* pale leaf */
  --ink:      #2C3E50;      /* friendly deep navy */
  --ink-soft: #4A5C70;
  --muted:    #8a93a0;
  --line:     #E8DCC4;
  --white:    #FFFFFF;

  /* Big bold colours for buttons & accents */
  --orange:      #FF8C42;   /* sunset / primary CTA */
  --orange-dark: #E16D1F;
  --blue:        #3FB6D6;   /* water */
  --blue-dark:   #1F8DAD;
  --green:       #7BC950;   /* leaf */
  --green-dark:  #5BA836;
  --yellow:      #FFD56B;   /* sun */
  --yellow-dark: #E8B848;
  --pink:        #FF9CB0;   /* clay pink */

  /* Backwards-compat aliases used in older rules */
  --accent:        var(--orange);
  --accent-dark:   var(--orange-dark);
  --accent-2:      var(--blue);
  --accent-light:  var(--yellow);

  /* Chunky shadows (offset for "raised" feel) */
  --shadow-sm: 0 2px 0 rgba(44, 62, 80, 0.08);
  --shadow-md: 0 6px 0 rgba(44, 62, 80, 0.12), 0 10px 24px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 10px 0 rgba(44, 62, 80, 0.15), 0 20px 48px rgba(44, 62, 80, 0.12);
  --shadow-btn: 0 5px 0 var(--orange-dark);

  /* Rounded, child-friendly type */
  --serif: "Fredoka", "Comic Sans MS", system-ui, sans-serif;
  --sans:  "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Fredoka", system-ui, sans-serif;

  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --transition: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);  /* springy */
  --container: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
/* Use proximity on touch / small viewports so users aren't
   trapped on tall sections — desktop keeps strict snap. */
@media (max-width: 880px), (hover: none) {
  html { scroll-snap-type: y proximity; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-weight: 700; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
  display: inline-block;
  background: var(--bg-alt);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

em { font-style: normal; color: var(--orange); font-weight: 700; }

/* ---------- Buttons — chunky and unmissable ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  text-decoration: none;
  position: relative;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.btn--lg {
  padding: 22px 40px;
  font-size: 20px;
  border-width: 4px;
  box-shadow: 0 6px 0 var(--ink);
}
.btn--lg:hover { box-shadow: 0 9px 0 var(--ink); }
.btn--lg:active { box-shadow: 0 3px 0 var(--ink); }

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn--primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 7px 0 var(--ink);
}
.btn--primary.btn--lg { box-shadow: 0 6px 0 var(--ink); }
.btn--primary.btn--lg:hover { box-shadow: 0 9px 0 var(--ink); }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--yellow);
}

/* On dark backgrounds (hero, footer) flip the contrast */
.hero__cta .btn--primary,
.footer .btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}
.hero__cta .btn--primary:hover,
.footer .btn--primary:hover {
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.35);
}
.hero__cta .btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}
.hero__cta .btn--ghost:hover {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.35);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 5px 0 var(--ink) !important;
}

.linkbtn {
  background: none;
  border: none;
  padding: 0;
  color: var(--orange);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--orange-dark); }

/* ---------- Nav — playful and obvious ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 246, 230, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.is-scrolled {
  border-bottom-color: var(--ink);
  background: var(--bg);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
}

/* ---------- Create-new-building button (lives inside the hero) ---------- */
.free-tools-btn {
  width: 384px;
  height: 384px;
  background: var(--bg);
  color: var(--ink);
  border: 6px solid var(--ink);
  border-radius: 36px;
  box-shadow: 0 12px 0 var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 24px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  transition: transform var(--transition),
              box-shadow  var(--transition),
              background  var(--transition);
  text-align: center;
  line-height: 1;
  flex: 0 0 auto;
}
.free-tools-btn__icon {
  width: 60%;
  height: auto;
  max-height: 60%;
  flex: 0 1 auto;
  color: var(--ink);
  display: block;
}
.free-tools-btn__plus-bg {
  fill: var(--bg);  /* matches button background so + circle "punches out" cleanly */
}
.free-tools-btn__text {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.free-tools-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 0 var(--ink);
  background: var(--yellow);
}
.free-tools-btn:hover .free-tools-btn__plus-bg { fill: var(--yellow); }
.free-tools-btn:active {
  transform: translateY(4px);
  box-shadow: 0 6px 0 var(--ink);
}

/* Responsive scaling */
@media (max-width: 1240px) {
  .free-tools-btn {
    width: 320px; height: 320px;
    border-radius: 32px;
  }
  .free-tools-btn__text { font-size: 28px; }
}
@media (max-width: 1024px) {
  .free-tools-btn {
    width: 260px; height: 260px;
    border-width: 5px; border-radius: 28px;
    box-shadow: 0 10px 0 var(--ink);
    padding: 22px 18px;
  }
  .free-tools-btn__text { font-size: 24px; }
}
@media (max-width: 880px) {
  .free-tools-btn {
    width: 200px; height: 200px;
    border-width: 4px; border-radius: 24px;
    box-shadow: 0 8px 0 var(--ink);
    padding: 18px 14px;
  }
  .free-tools-btn__text { font-size: 20px; }
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 0 var(--ink);
}
.logo-mark--lg { width: 56px; height: 56px; font-size: 22px; }
.nav__links {
  display: flex;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-left: auto;
  margin-right: 18px;
}
.nav__links a {
  position: relative;
  padding: 8px 16px;
  color: var(--ink);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  font-family: var(--display);
}
.nav__links a:hover {
  background: var(--yellow);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 880px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px 28px;
    gap: 20px;
    margin: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- Hero — big friendly welcome ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 60px;
  overflow: hidden;
  scroll-snap-align: start;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__image {
  position: absolute;
  inset: 0;
  background-color: #6b5d4a;
  background-image: url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
}
/* Subtle print-line texture suggesting layered 3D-printed earth */
.hero__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 11px,
      rgba(0, 0, 0, 0.045) 11px,
      rgba(0, 0, 0, 0.045) 12px
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.2) 35%,
      rgba(0, 0, 0, 0.15) 60%,
      rgba(0, 0, 0, 0.6) 100%
    );
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.0) 0%,
    rgba(250, 249, 246, 0.0) 75%,
    rgba(250, 249, 246, 0.95) 100%
  );
}
/* Hero 2-column grid: button column hugs the button so the headline gets
   the rest of the viewport. */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 32px 56px;
  align-items: center;
  width: 100%;
}
.hero__btn-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Nudge the button up so its vertical centre roughly aligns with the headline
     (the right-column stack is centred; the headline sits in the upper half). */
  transform: translateY(-60px);
}
@media (max-width: 1024px) {
  .hero__btn-cell { transform: translateY(-40px); }
  .hero__grid    { gap: 24px 40px; }
}
@media (max-width: 880px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .hero__btn-cell {
    transform: none;
    justify-content: flex-start;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 100%;
}
.hero__content .eyebrow {
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-weight: 700;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  margin: 0 0 18px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.hero__title em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 700;
}
.hero__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--white);
  max-width: 560px;
  margin-bottom: 26px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(20px, 4vh, 36px);
}
.hero__cta .btn--primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.hero__cta .btn--primary:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.hero__cta .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero__cta .btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  max-width: 540px;
}
.hero__stats > div {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.hero__stats strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
  color: var(--yellow);
}
.hero__stats span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.4s ease-in-out infinite;
  text-decoration: none;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }
.section__header {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}
.section__title {
  font-size: clamp(34px, 4.5vw, 56px);
  margin-bottom: 18px;
}
.section__lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   Snap sections — each is a full-viewport "slide"
   ---------------------------------------------------------
   The document scroll-snaps section by section. Each
   section is min-height 100vh and snaps to viewport start.
   Padding/header sizes are tuned to keep contents inside
   the viewport on common laptop heights.
   ========================================================= */
.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 10vh, 96px) 0 clamp(24px, 4vh, 44px);
  position: relative;
}
.snap-section > .container { width: 100%; }
.snap-section .section__header { margin-bottom: clamp(20px, 3vh, 34px); }
.snap-section .section__title {
  font-size: clamp(24px, 3.4vw, 40px);
  margin-bottom: 10px;
  line-height: 1.1;
}
.snap-section .section__lede {
  font-size: clamp(13px, 1.1vw, 15px);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel section: header at top, carousel fills (and centres) the rest */
.snap-section--carousel {
  padding: clamp(78px, 11vh, 96px) 0 clamp(20px, 3vh, 36px);
  justify-content: flex-start;
}
.snap-section--carousel > .container { flex: 0 0 auto; }
.snap-section--carousel .section__header { margin-bottom: clamp(14px, 2vh, 24px); }

.section__lede--small {
  font-size: 14px;
  margin-top: 18px;
  color: var(--muted);
}

kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85em;
  color: var(--ink);
  margin: 0 2px;
  font-weight: 500;
}

/* =========================================================
   Carousel — horizontal scroll with snap + nav arrows
   ========================================================= */
.carousel {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;          /* vertically centre the track */
  justify-content: center;
  padding-bottom: clamp(24px, 3vh, 40px);
  min-height: 0;
}
.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  width: 100%;
  padding: 6px max(28px, calc(50vw - 230px));   /* tighter centering for narrower cards */
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 auto;
  width: min(460px, 80vw);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: block;
  color: inherit;
  cursor: pointer;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--ink);
}
.carousel-card__img {
  aspect-ratio: 4 / 3;
  background-color: #2a2520;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--ink);
}
.carousel-card__meta {
  padding: 12px 16px 14px;
  background: var(--white);
}
.carousel-card__meta span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  background: var(--blue);
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  margin-bottom: 6px;
  font-weight: 600;
  font-family: var(--display);
}
.carousel-card__meta h3 {
  font-size: 22px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--yellow);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  font-family: var(--display);
  box-shadow: 0 4px 0 var(--ink);
}
.carousel-nav:hover:not(:disabled) {
  background: var(--orange);
  color: var(--white);
  transform: translateY(calc(-50% - 3px));
  box-shadow: 0 8px 0 var(--ink);
}
.carousel-nav:active:not(:disabled) {
  transform: translateY(calc(-50% + 3px));
  box-shadow: 0 2px 0 var(--ink);
}
.carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.carousel-nav--prev { left: 24px; }
.carousel-nav--next { right: 24px; }
@media (max-width: 720px) {
  .carousel-nav { width: 42px; height: 42px; font-size: 18px; }
  .carousel-nav--prev { left: 10px; }
  .carousel-nav--next { right: 10px; }
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.is-active {
  background: var(--orange);
  width: 32px;
  border-radius: var(--radius-pill);
}

/* reduced motion: instant snaps, no smoothing */
@media (prefers-reduced-motion: reduce) {
  html,
  .carousel-track {
    scroll-behavior: auto !important;
  }
}

/* ---------- Ladder (four-rung service progression) ---------- */
.ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ladder__step {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 6px 0 var(--ink);
}
.ladder__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--ink);
}
/* Each rung gets its own colour accent on the number badge */
.ladder__step:nth-child(1) .ladder__num { background: var(--green); }
.ladder__step:nth-child(2) .ladder__num { background: var(--blue); }
.ladder__step:nth-child(3) .ladder__num { background: var(--yellow); }
.ladder__step:nth-child(4) .ladder__num { background: var(--orange); color: var(--white); }
.ladder__num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  line-height: 1;
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.ladder__step h3 {
  font-size: 24px;
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.ladder__outcome {
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-weight: 500;
}
.ladder__what {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.ladder__what li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
  line-height: 1.4;
  font-weight: 500;
}
.ladder__what li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 15px;
}
.ladder__price {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 16px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  display: inline-block;
  align-self: flex-start;
  font-weight: 600;
}
.ladder__step--final .ladder__price { background: var(--yellow); }
.ladder__cta {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  margin-top: auto;
  transition: all var(--transition);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.ladder__cta:hover {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.ladder__cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
@media (max-width: 900px) {
  .ladder { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ladder { grid-template-columns: 1fr; }
}

/* ---------- Services (legacy, kept for any residual use) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: transparent;
  border: none;
}
.service {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 0 var(--ink);
  padding: 22px 20px;
  transition: transform var(--transition);
}
.service:hover { background: var(--bg-alt); }
.section--alt .service { background: var(--bg-alt); }
.section--alt .service:hover { background: var(--bg); }
.service__icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--serif);
  line-height: 1;
}
.service h3 { font-size: 18px; margin-bottom: 6px; }
.service p { color: var(--ink-soft); margin: 0; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
}

/* ---------- Price calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 var(--ink);
  padding: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.calc__col { display: flex; flex-direction: column; }
.calc__heading {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--ink);
}
/* The services column stretches to match the result-box column's height.
   The 5 service rows distribute with space-between so the last one's bottom
   edge sits flush with the bottom of the estimated-cost box. */
.calc__services { gap: 12px; }
.calc__service-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 7px;
  min-height: 0;
}
.calc__service {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}
.calc__service:hover { background: var(--yellow); }
.calc__service input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
  margin: 0;
}
.calc__service:has(input:checked) { background: var(--bg-blue); }
.calc__service-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.calc__service-rate {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: var(--white);
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.calc__inputs { gap: 10px; }
.calc__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc__field > span {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.calc__field input,
.calc__field select {
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.calc__field input:focus,
.calc__field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 2px 0 var(--ink), 0 0 0 3px var(--yellow);
}
.calc__result {
  background: var(--bg-alt);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 3px 0 var(--ink);
}
.calc__result-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.calc__result-value {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  margin: 0 0 4px;
  line-height: 1.05;
}
.calc__result-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.calc__contact-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  line-height: 1.1;
}
.calc__contact-btn:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--ink);
}
.calc__contact-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.calc__result-note {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 880px) {
  .calc { grid-template-columns: 1fr; padding: 16px; }
}

/* ---------- Materials & construction ---------- */
.materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.material {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform var(--transition);
}
.material:hover { transform: translateY(-3px); }
.materials > .material:nth-child(1) { background: var(--bg-green); }
.materials > .material:nth-child(2) { background: var(--bg-blue); }
.materials > .material:nth-child(3) { background: var(--bg-alt); }
.section--alt .material { background: var(--white); }
.material h3 {
  font-size: 22px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--ink);
  font-family: var(--display);
  font-weight: 700;
}
.material__icon {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
  background: var(--white);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.material ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.material li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
  font-weight: 500;
}
.material li::before {
  content: "●";
  position: absolute;
  left: 4px;
  top: 2px;
  color: var(--orange);
  font-size: 10px;
}
@media (max-width: 880px) {
  .materials { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Portfolio ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.portfolio__item {
  grid-column: auto;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.portfolio__item--lg { grid-column: auto; }
.portfolio__img {
  aspect-ratio: 4 / 3;
  background-color: #2a2520;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 600ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.portfolio__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.25) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio__item:hover .portfolio__img::after { opacity: 1; }
.portfolio__item:hover .portfolio__img { transform: scale(1.04); }
.portfolio__item--lg .portfolio__img { aspect-ratio: 4 / 3; }
.portfolio__meta {
  padding: 18px 4px 0;
}
.portfolio__meta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.portfolio__meta h3 { font-size: 24px; margin: 0; }

@media (max-width: 900px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .portfolio__item, .portfolio__item--lg { grid-column: span 1; }
}
@media (max-width: 560px) {
  .portfolio { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 22px 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 0 var(--ink);
  transition: transform var(--transition);
}
.process li:hover { transform: translateY(-3px); }
.process li:nth-child(1) { background: var(--bg-blue); }
.process li:nth-child(2) { background: var(--bg-green); }
.process li:nth-child(3) { background: var(--bg-alt); }
.process li:nth-child(4) { background: var(--yellow); }
.process__num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 14px;
  line-height: 1;
}
.process h3 { font-size: 20px; margin-bottom: 8px; font-family: var(--display); font-weight: 700; }
.process p { color: var(--ink-soft); margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__text .section__title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.about__text p { font-size: 14.5px; margin-bottom: 14px; }
.about__text .btn { margin-top: 4px; }
.about__media { aspect-ratio: 4 / 3; overflow: hidden; }
.about__img {
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
}
.about__text .section__title { font-size: clamp(30px, 3.5vw, 44px); }
.about__text p { color: var(--ink-soft); }
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__media { aspect-ratio: 4 / 3; }
}

/* ---------- Testimonials — chunky speech bubbles ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  margin: 0;
  padding: 22px 22px 20px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 0 var(--ink);
  position: relative;
  transition: transform var(--transition);
}
.testimonial:hover { transform: translateY(-3px); }
.testimonials > .testimonial:nth-child(1) { background: var(--bg-blue); }
.testimonials > .testimonial:nth-child(2) { background: var(--bg-green); }
.testimonials > .testimonial:nth-child(3) { background: var(--yellow); }
.testimonial p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 500;
}
.testimonial footer {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 600;
}
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Studio (the team) ---------- */
.studio-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 0 var(--ink);
  padding: 24px 20px 22px;
  text-align: center;
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-3px); }
.studio-team > .team-card:nth-child(1) { background: var(--bg-blue); }
.studio-team > .team-card:nth-child(2) { background: var(--bg-green); }
.studio-team > .team-card:nth-child(3) { background: var(--bg-alt); }
.studio-team > .team-card:nth-child(4) { background: var(--yellow); }
.team-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.team-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 2px;
}
.team-card__role {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--orange-dark);
  margin: 0 0 10px;
}
.team-card__bio {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}
@media (max-width: 980px) { .studio-team { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 520px) { .studio-team { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact > div p { color: var(--ink-soft); font-size: 14.5px; }
.contact > div .section__title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.contact__list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px 16px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--ink);
}
.contact__list span {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  color: var(--ink);
  text-align: center;
  font-family: var(--display);
  letter-spacing: 0;
}
.contact__list a, .contact__list address {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.contact__list a:hover { color: var(--orange); }
.contact__list span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.contact__list a, .contact__list address {
  color: var(--ink);
  font-style: normal;
  font-size: 17px;
}
.contact__list a:hover { color: var(--accent); }
@media (max-width: 880px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   Modal — viewport-locked takeover, no scrolling
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 42, 38, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 340ms cubic-bezier(0.2, 0.6, 0.2, 1),
              opacity   260ms ease;
}
.modal.is-open .modal__panel {
  transform: translateY(0);
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 3px solid var(--ink);
  background: var(--orange);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  z-index: 3;
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--display);
}
.modal__close:hover {
  background: var(--orange-dark);
  transform: rotate(90deg) translateX(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.modal__close:active {
  transform: rotate(90deg) translateX(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.modal__content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(20px, 3vh, 36px) clamp(20px, 5vw, 56px) clamp(16px, 2.5vh, 28px);
  display: flex;
  flex-direction: column;
}
.modal__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: clamp(16px, 2.5vh, 28px);
  flex: 0 0 auto;
}
.modal__brand .logo-mark {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
body.modal-open { overflow: hidden; }

/* Calc-mode: skip the multi-step progress, the step labels aren't relevant
   because we go directly to the combined name+phone+OTP step. */
.modal.is-calc-mode .form__progress { display: none; }
.calc-otp-block { margin-top: 18px; }
.calc-otp-block .otp input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg-alt);
}

/* =========================================================
   Form — chromeless, fills modal, no scroll
   ========================================================= */
.form {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* progress */
.form__progress {
  position: relative;
  margin-bottom: clamp(18px, 3vh, 32px);
  flex: 0 0 auto;
}
.form__progress-bar {
  position: absolute;
  top: 16px;
  left: 0;
  height: 1px;
  background: var(--accent);
  width: 0%;
  transition: width 400ms cubic-bezier(0.2, 0.6, 0.2, 1);
  z-index: 1;
}
.form__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.form__steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.form__steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.form__steps li::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  margin-bottom: 8px;
  transition: all var(--transition);
}
.form__steps li.is-active {
  color: var(--ink);
  font-weight: 700;
}
.form__steps li.is-active::before {
  background: var(--orange);
  border-color: var(--ink);
  transform: scale(1.15);
  box-shadow: 0 3px 0 var(--ink);
}
.form__steps li.is-done {
  color: var(--green-dark);
}
.form__steps li.is-done::before {
  background: var(--green);
  border-color: var(--ink);
}
@media (max-width: 640px) {
  .form__steps li { font-size: 0; }
  .form__steps li::before { width: 26px; height: 26px; margin-bottom: 0; }
  .form__progress-bar { top: 13px; }
  .form__steps::before { top: 13px; }
}

/* steps */
.step {
  border: none;
  margin: 0;
  padding: 0;
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  animation: fadeUp 400ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.step.is-active { display: flex; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 8px;
  padding: 0;
  flex: 0 0 auto;
}
.step__hint {
  color: var(--ink-soft);
  margin-bottom: clamp(14px, 2vh, 22px);
  font-size: 14px;
  flex: 0 0 auto;
}
.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: clamp(14px, 2vh, 22px);
  border-top: 1px solid var(--line);
  gap: 16px;
  flex: 0 0 auto;
}

/* choices */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  flex: 0 0 auto;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--ink);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.choice:has(input:checked) {
  background: var(--orange);
  color: var(--white);
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}
.choice:has(input:checked) .choice__icon { color: var(--white); }
.choice__icon {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.choice__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.choice__label small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* fields */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  flex: 0 0 auto;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 12px 14px;
  transition: box-shadow var(--transition), border-color var(--transition);
  border-radius: var(--radius);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--yellow);
}
.field textarea { resize: none; min-height: 80px; height: 80px; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

/* otp channel */
.otp-channel { margin: 18px 0 12px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 28px;
  cursor: pointer;
  font-size: 15px;
}
.radio input { accent-color: var(--ink); }

/* checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  cursor: pointer;
}
.checkbox input { margin-top: 4px; accent-color: var(--ink); }
.checkbox a { color: var(--accent); text-decoration: underline; }

/* dropzone */
.dropzone {
  display: block;
  border: 1.5px dashed var(--line);
  background: var(--bg-alt);
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  flex: 0 0 auto;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--accent);
  background: var(--bg);
}
.dropzone__icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1;
}
.dropzone__text { margin-bottom: 4px; }
.dropzone__text strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.dropzone__text span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
}
.dropzone small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.filelist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.filelist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 13px;
  flex: 0 0 auto;
}
.filelist .file-thumb {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.filelist .file-info {
  flex: 1;
  min-width: 0;
}
.filelist .file-info strong {
  display: block;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filelist .file-info span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.filelist .remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  transition: color var(--transition);
}
.filelist .remove:hover { color: var(--ink); }

/* OTP inputs */
.otp {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: clamp(16px, 3vh, 28px) 0 16px;
  flex: 0 0 auto;
}
.otp input {
  width: 52px;
  height: 62px;
  text-align: center;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  border: 3px solid var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
}
.otp input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 3px 0 var(--ink), 0 0 0 4px var(--yellow);
}
.otp input.is-filled {
  border-color: var(--ink);
  background: var(--bg-green);
}
.otp__resend {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 0;
}
.otp__resend #resendTimer {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
}
.otp__error {
  color: #b03a3a;
  text-align: center;
  font-size: 14px;
  margin-top: 14px;
}
@media (max-width: 480px) {
  .otp { gap: 8px; }
  .otp input { width: 44px; height: 56px; font-size: 24px; }
}

/* success */
.step--success { text-align: center; padding: 0; }
.step--success.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.success { max-width: 480px; }
.success__mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 44px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: pop 500ms cubic-bezier(0.2, 0.8, 0.4, 1.4);
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
@keyframes pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
.success h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 12px;
}
.success p { color: var(--ink-soft); }
.success__ref {
  margin: 28px 0 36px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.success__ref strong {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 100px 0 48px;
  scroll-snap-align: start;
  min-height: 60vh;
  display: flex;
  align-items: center;
  border-top: 6px solid var(--orange);
}
.footer .logo-mark {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  box-shadow: 0 3px 0 var(--orange);
}
.footer__brand p {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}
.footer__links a, .footer__legal a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
}
.footer__links a:hover, .footer__legal a:hover {
  color: var(--yellow);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__brand .logo-mark {
  background: var(--bg);
  color: var(--ink);
}
.footer__brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.footer__links, .footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer__links a:hover, .footer__legal a:hover { color: var(--bg); }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--ink);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 280ms cubic-bezier(0.2, 0.6, 0.2, 1);
  z-index: 1100;
  text-align: center;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast strong { color: var(--accent-light); }
.toast .toast__code {
  display: inline-block;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: var(--accent-light);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
