/* =========================================================
   NOWERA — Theme v3 "Refined Luxury"
   A layer on top of the base system (loaded last). It adds two
   supporting tones to the black/ivory/gold identity:
   deep forest green and charcoal grey. Remove this file to get
   the previous look back.
   ========================================================= */
:root {
  /* emerald — from the NOWERA logo */
  --emerald: #185c3b;        /* brand green (logo ribbon) */
  --forest-900: #0a271b;
  --forest-800: #0e3324;
  --forest-700: #134430;
  --forest-600: #1d5a3e;
  --sage: #a7bea9;           /* muted text on emerald ≈ 7.8:1 */
  --sage-subtle: #88a28c;    /* subtle text on emerald ≈ 5:1 */
  --line-forest: rgba(167, 190, 169, 0.15);
  --line-forest-strong: rgba(167, 190, 169, 0.28);

  /* steel grey — from the NOWERA logo (silver variant) */
  --steel: #8f98a0;
  --charcoal-900: #111518;
  --charcoal-800: #171c20;
  --charcoal-700: #20272c;
  --charcoal-600: #2b3339;

  /* finer hairlines (v2) */
  --line-dark: rgba(248, 245, 239, 0.09);
  --line-dark-strong: rgba(248, 245, 239, 0.18);
  --line-light: rgba(9, 9, 9, 0.08);
  --line-light-strong: rgba(9, 9, 9, 0.16);

  --panel-r: clamp(20px, 2.4vw, 36px);
}

/* ---- film grain on the whole page (very subtle) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: calc(var(--z-cursor) - 1);
  pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- stacked panels: sections slide over each other with soft corners ---- */
.positioning, .services, .why, .process, .cta {
  border-radius: var(--panel-r) var(--panel-r) 0 0;
  margin-top: calc(var(--panel-r) * -1);
}
.services, .why, .cta { box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.55); }

/* ---- eyebrow: gold hairline that fades in ---- */
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold)); }

/* ---- navigation ---- */
.nav__links a { white-space: nowrap; }
.nav.is-scrolled .nav__bar {
  background: rgba(16, 22, 20, 0.74);
  border-color: rgba(169, 187, 175, 0.12);
}

/* ---- hero: green undertone beneath the gold light ---- */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 100%, rgba(31, 70, 54, 0.42), transparent 70%),
    radial-gradient(40% 40% at 88% 8%, rgba(210, 172, 114, 0.06), transparent 70%);
}

/* ---- 03 services: charcoal ---- */
.services.on-soft { background: var(--charcoal-800); }
.stage-frame {
  border-color: rgba(248, 245, 239, 0.08);
  background:
    radial-gradient(110% 70% at 85% 0%, rgba(210, 172, 114, 0.1), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(31, 70, 54, 0.35), transparent 60%),
    var(--charcoal-900);
}
.services .v-browser, .services .v-shop__card, .services .v-rank, .services .v-bb > *, .services .v-booking,
.services .v-uptime, .services .v-status li { background: var(--charcoal-700); }

/* ---- 05 why: deep forest green ---- */
.why.on-dark {
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(210, 172, 114, 0.08), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(10, 29, 23, 0.9), transparent 70%),
    var(--forest-800);
}
.why .eyebrow { color: var(--sage-subtle); }
.why .lead, .why .why__panel-text { color: var(--sage); }
.why__grid { border-top-color: var(--line-forest); }
.why__tab { color: var(--sage-subtle); border-bottom-color: var(--line-forest); }
.why__tab:hover { color: var(--sage); }
.why__tab[aria-selected="true"] { color: var(--ivory); }
.why__visual {
  border-color: var(--line-forest);
  background: radial-gradient(80% 70% at 50% 0%, rgba(210, 172, 114, 0.1), transparent 60%), var(--forest-900);
}
.why .morph-labels { color: var(--sage-subtle); }
.why .morph-device__screen span { background: rgba(169, 187, 175, 0.14); }

/* ---- 06 experience: charcoal with green + gold light ---- */
.experience.on-dark { background: var(--charcoal-900); }
.experience__glow {
  background: radial-gradient(circle, rgba(210, 172, 114, 0.14), rgba(31, 70, 54, 0.22) 38%, transparent 65%);
}
.experience__facts { border-top-color: var(--line-dark); }

/* ---- 08 packages: featured plan in forest green ---- */
.plan { border-radius: calc(var(--radius-m) + 4px); }
.plan--featured {
  background: radial-gradient(120% 70% at 100% 0%, rgba(210, 172, 114, 0.12), transparent 55%), var(--forest-800);
  border-color: var(--forest-600);
}
.plan--featured .plan__name, .plan--featured .plan__for { color: var(--sage-subtle); }
.plan--featured .plan__features li { color: var(--sage); }
.plan--featured .plan__price { border-color: var(--line-forest); }

/* ---- 10 final CTA: forest light rising from the dark ---- */
.cta.on-dark {
  background:
    radial-gradient(70% 60% at 50% 55%, rgba(31, 70, 54, 0.55), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(210, 172, 114, 0.08), transparent 70%),
    var(--deep-black);
}

/* ---- 11 footer: charcoal ---- */
.footer.on-dark { background: var(--charcoal-900); border-top-color: var(--line-dark); }

/* ---- case study pages ---- */
.case-showcase .project__media { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }

@media (max-width: 767px) {
  :root { --panel-r: 18px; }
}

/* =========================================================
   10 FINAL CTA — split layout: message + consultation card
   ========================================================= */
.cta { min-height: 0; padding-block: clamp(6rem, 4rem + 8vw, 11rem); }
.cta__mark { left: auto; right: -12%; top: 58%; width: min(70vw, 900px); opacity: 0.045; }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.cta__title {
  margin-top: 1.75rem;
  font-size: clamp(2.8rem, 1.3rem + 4.6vw, 6.25rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: none;
}
.cta__title .serif { font-weight: 300; font-style: italic; text-transform: none; letter-spacing: -0.02em; color: var(--gold-soft); }
.cta__lead { margin-top: 1.75rem; max-width: 38ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--sage); }
.cta__channels { display: grid; margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; padding: 0; list-style: none; max-width: 30rem; border-top: 1px solid var(--line-forest); }
.cta__channels li { display: grid; grid-template-columns: 7.5rem 1fr; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-forest); font-size: 1.0625rem; color: var(--ivory); }
.cta__channel-label { font-size: var(--fs-micro); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--sage-subtle); }

.cta__card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: 24px;
  border: 1px solid var(--line-forest-strong);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(210, 172, 114, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(21, 52, 39, 0.82), rgba(10, 29, 23, 0.9));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta__card::before {
  content: ""; position: absolute; top: -1px; left: 2rem; right: 2rem; height: 1px;
  background: var(--gold-hairline);
}
.cta__card-kicker { display: flex; align-items: center; gap: 0.7rem; font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--gold-soft); }
.cta__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(210, 172, 114, 0.5); animation: pulse 2.4s ease-out infinite; }
.cta__steps { display: grid; margin: 1.75rem 0 2rem; padding: 0; list-style: none; }
.cta__steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; padding: 1.1rem 0; border-top: 1px solid var(--line-forest); }
.cta__steps li:last-child { border-bottom: 1px solid var(--line-forest); }
.cta__step-num { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.1; color: var(--gold); }
.cta__steps b { display: block; font-size: 1.0625rem; font-weight: 500; color: var(--ivory); }
.cta__steps small { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--sage); }

.cta__card .cta__button { display: flex; width: 100%; justify-content: space-between; padding-left: 1.75rem; font-size: 1.125rem; }
.cta__card .cta__button-arrow { width: 54px; height: 54px; }
.cta__note { margin-top: 1rem; text-align: center; font-size: var(--fs-small); color: var(--sage-subtle); }

@media (max-width: 960px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__mark { right: -30%; top: 20%; width: 120vw; }
}
@media (max-width: 480px) {
  .cta__channels li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* =========================================================
   PROJECT INQUIRY — split drawer: reassurance + guided form
   ========================================================= */
.inquiry { width: min(1120px, 100%); background: var(--charcoal-800); border-left-color: rgba(248, 245, 239, 0.08); }
.inquiry::backdrop { background: rgba(6, 10, 9, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.inquiry__shell { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); height: 100%; }

.inquiry__aside {
  position: relative; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: clamp(2rem, 3.5vw, 3rem);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(210, 172, 114, 0.12), transparent 55%),
    linear-gradient(170deg, var(--forest-700), var(--forest-900));
  border-right: 1px solid var(--line-forest);
}
.inquiry__mark { width: 52px; height: auto; }
.inquiry__aside-title { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.inquiry__aside-title .serif { font-weight: 300; font-style: italic; color: var(--gold-soft); }
.inquiry__aside-text { color: var(--sage); font-size: 0.975rem; line-height: 1.6; }
.inquiry__steps { margin: 0.25rem 0 0; }
.inquiry__direct { display: grid; gap: 0.45rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--line-forest); font-size: 0.975rem; }
.inquiry__trust { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.5; color: var(--sage-subtle); }
.inquiry__trust svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; }

.inquiry__inner { padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem); }
.inquiry__head { margin-bottom: 2rem; }
.inquiry__title .serif { font-style: italic; font-weight: 300; color: var(--gold-soft); }
.inquiry__req { margin-top: 0.85rem; font-size: 0.8125rem; color: var(--paper-subtle); }

/* sections */
.form { gap: 1.25rem; }
.form__section { display: grid; gap: 1.25rem; padding: 1.5rem 0 0.25rem; border-top: 1px solid var(--line-dark); }
.form__step { display: flex; align-items: center; gap: 0.85rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.form__step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(210, 172, 114, 0.5); font-size: 0.75rem; color: var(--gold-soft); }
.form__row { gap: 1rem 1.25rem; }

/* fields: soft boxed inputs */
.field { gap: 0.45rem; }
.field label, .field legend { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; text-transform: none; color: var(--paper-muted); }
.field label > span[aria-hidden], .field legend > span[aria-hidden] { color: var(--gold); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem; color: var(--ivory);
  background-color: rgba(248, 245, 239, 0.035);
  border: 1px solid var(--line-dark-strong);
  border-radius: 12px;
  transition: border-color var(--dur-s) ease, background-color var(--dur-s) ease, box-shadow var(--dur-s) ease;
}
.field select { background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; padding-right: 2.5rem; }
.field select option { background: var(--charcoal-800); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(248, 245, 239, 0.3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold); background-color: rgba(210, 172, 114, 0.05);
  box-shadow: 0 0 0 4px rgba(210, 172, 114, 0.14);
}
.field [aria-invalid="true"] { border-color: #e59a8c; box-shadow: 0 0 0 4px rgba(229, 154, 140, 0.12); }
.field textarea { min-height: 140px; line-height: 1.55; }
.field__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 1.2rem; }
.field__meta .field__error:empty { display: block; }
.field__count { margin-left: auto; font-size: 0.75rem; color: var(--paper-subtle); transition: color var(--dur-s) ease; }
.field__count.is-ok { color: var(--gold-soft); }

/* chips */
.chips { gap: 0.5rem; margin-top: 0.15rem; }
.chip span { min-height: 42px; padding: 0 1rem; background: rgba(248, 245, 239, 0.025); }
.chip input:checked + span { border-color: var(--gold); color: var(--ivory); background: rgba(210, 172, 114, 0.14); box-shadow: inset 0 0 0 1px rgba(210, 172, 114, 0.35); }
.chip input:checked + span::before { content: ""; width: 6px; height: 6px; margin-right: 0.55rem; border-radius: 50%; background: var(--gold); }

.check { padding: 1rem 1.1rem; border-radius: 12px; background: rgba(248, 245, 239, 0.03); border: 1px solid var(--line-dark); }

/* footer of the form */
.form__foot { position: sticky; bottom: calc(clamp(1.75rem, 4vw, 3.25rem) * -1); z-index: 2; gap: 0.75rem 1.25rem; margin: 0.5rem calc(clamp(1.5rem, 4vw, 3.5rem) * -1) calc(clamp(1.75rem, 4vw, 3.25rem) * -1); padding: 1.25rem clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); background: linear-gradient(to top, var(--charcoal-800) 70%, rgba(24, 27, 30, 0)); }
.form__submit { min-width: 15rem; }
.form__hint { font-size: 0.8125rem; color: var(--paper-subtle); }
.form__status:empty { display: none; }

/* success state */
.inquiry__success { display: grid; justify-items: start; gap: 1.1rem; padding: clamp(2rem, 6vh, 5rem) 0; outline: none; }
.inquiry__success[hidden] { display: none; }
.inquiry__success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(210, 172, 114, 0.14); border: 1px solid rgba(210, 172, 114, 0.5); }
.inquiry__success-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw 0.7s var(--ease-out) 0.15s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.inquiry__success-title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 400; letter-spacing: -0.03em; }
.inquiry__success-text { max-width: 44ch; color: var(--paper-muted); font-size: 1.0625rem; line-height: 1.6; }
.inquiry__success-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }

@media (max-width: 900px) {
  .inquiry__shell { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .inquiry { overflow-y: auto; }
  .inquiry__inner { height: auto; overflow: visible; }
  .inquiry__aside { order: 2; overflow: visible; border-right: 0; border-top: 1px solid var(--line-forest); }
  .inquiry__steps, .inquiry__mark { display: none; }
  .form__foot { position: static; margin: 0.5rem 0 0; padding: 0; background: none; }
  .form__submit { width: 100%; }
}
.inquiry__aside { scrollbar-width: none; }
.inquiry__aside::-webkit-scrollbar { display: none; }
.inquiry__inner { scrollbar-width: thin; scrollbar-color: rgba(248, 245, 239, 0.18) transparent; }
.form[hidden] { display: none; }


/* =========================================================
   NOWERA — brand refresh on black
   ========================================================= */
.intro__mark { aspect-ratio: 824 / 472; width: clamp(170px, 22vw, 280px); }
.intro-active .intro { background: radial-gradient(60% 50% at 50% 48%, #17130d, var(--deep-black) 70%); }
.intro__mark { filter: drop-shadow(0 0 40px rgba(210, 172, 114, 0.22)); }
.pt { background: var(--deep-black); }

/* hero: black, with an emerald halo behind the W and warm gold light */
.hero__glow { background: radial-gradient(circle at center, rgba(210, 172, 114, 0.16), rgba(210, 172, 114, 0.05) 38%, transparent 64%); }
.hero__bg::after {
  background:
    radial-gradient(55% 50% at 8% 100%, rgba(24, 92, 59, 0.3), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, rgba(210, 172, 114, 0.07), transparent 70%);
}
.hero__mark { width: clamp(300px, 38vw, 640px); filter: drop-shadow(0 0 70px rgba(210, 172, 114, 0.16)) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.wmark { width: 100%; height: auto; overflow: visible; }

.nav__mark { height: 24px; }
.nav__word { height: 12px; }
.footer__logo img { height: 40px; }
.cta__mark { opacity: 0.06; }

/* =========================================================
   MOBILE — rebuilt layout for phones & small tablets
   ========================================================= */
.mcta { display: none; }
.cdots { display: none; }
.svc__media { display: none; }

@media (max-width: 899px) {
  /* ---- swipe carousels: shared ---- */
  .services__list, .pricing {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    border-top: 0;
  }
  .services__list::-webkit-scrollbar, .pricing::-webkit-scrollbar { display: none; }
  .cdots { display: flex; justify-content: center; gap: 7px; margin-top: 1.25rem; }
  .cdots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: 0.25; transition: width var(--dur-m) var(--ease-out), opacity var(--dur-s) ease, background-color var(--dur-s) ease; }
  .cdots i.is-on { width: 22px; opacity: 1; background: var(--gold); }

  /* ---- 03 services: cards with their live visual ---- */
  .services .section-head { margin-bottom: 2rem; }
  .svc {
    flex: 0 0 84%; max-width: 420px;
    scroll-snap-align: start;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.85rem; row-gap: 0;
    padding: 0 0 1.5rem;
    border: 1px solid var(--line-dark-strong);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--charcoal-700), var(--charcoal-800));
    overflow: hidden;
  }
  .svc::after { display: none; }
  .svc__media {
    display: block; grid-column: 1 / -1;
    position: relative; aspect-ratio: 4 / 3.25; margin-bottom: 1.25rem;
    overflow: hidden;
    border-bottom: 1px solid var(--line-dark);
    background:
      radial-gradient(110% 70% at 85% 0%, rgba(210, 172, 114, 0.12), transparent 55%),
      radial-gradient(90% 60% at 0% 100%, rgba(31, 90, 62, 0.35), transparent 60%),
      var(--charcoal-900);
  }
  .svc__media .svc-visual { position: absolute; inset: 0; padding: 9% 9% 7%; opacity: 1; transform: none; zoom: 0.72; }
  .svc__media .v-phone { right: -3%; bottom: -16%; }
  .svc__media .v-chip--score { left: -3%; bottom: 2%; }
  .svc__media .v-toast--cart { right: -3%; top: -12%; }
  .svc__media .v-toast--booking { right: 3%; bottom: 3%; }
  .svc__num { padding-left: 1.25rem; font-size: 1.5rem; color: var(--gold); align-self: start; padding-top: 0.2rem; }
  .svc__title { font-size: 1.6rem; color: var(--ivory); transform: none !important; }
  .svc__desc { font-size: 0.95rem; opacity: 1 !important; }
  .svc__tags { opacity: 1 !important; }
  .svc__link { grid-column: auto; align-self: start; margin-right: 1.1rem; width: 44px; height: 44px; border-color: rgba(210, 172, 114, 0.55); }
  .services .cdots { color: var(--ivory); }

  /* ---- 08 packages: swipe cards ---- */
  .pricing { grid-template-columns: none; align-items: stretch; padding-top: 18px; }
  .plan { flex: 0 0 86%; max-width: 400px; scroll-snap-align: center; transform: none !important; }
  .packages .cdots { color: var(--ink); }
  .packages .cdots i.is-on { background: var(--gold-ink); }
  .pricing__note { margin-top: 1.5rem; }

  /* ---- 02 positioning: compact pillar rows ---- */
  .positioning__grid { margin-top: 3rem; gap: 2rem; }
  .pillars { gap: 0; }
  .pillar { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 0.75rem; padding: 1.25rem 0; }
  .pillar__num { grid-row: span 2; padding-top: 0.15rem; }
  .pillar__title { margin: 0 0 0.3rem; font-size: 1.125rem; }

  /* ---- sticky CTA ---- */
  .mcta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-nav) - 1);
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(9, 9, 9, 0.92) 55%, rgba(9, 9, 9, 0));
    transform: translateY(110%); transition: transform var(--dur-m) var(--ease-out);
    pointer-events: none;
  }
  .mcta.is-on { transform: none; pointer-events: auto; }
  .mcta__btn { width: 100%; min-height: 54px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.8); }
  html:has(dialog[open]) .mcta, .menu-open .mcta { transform: translateY(110%); }

  /* ---- misc ---- */
  .footer__col a[href^="tel"], .cta__channels a[href^="tel"] { white-space: nowrap; }
  .footer__top { gap: 2.25rem 1.5rem; }
  .section-head { margin-bottom: 2.25rem; }
}

@media (max-width: 767px) {
  /* ---- 01 hero: the W gets its own space above the headline — never behind it ---- */
  .hero__scene { display: flex; flex-direction: column; }
  .hero__mark {
    position: relative; top: auto; right: auto; translate: none;
    flex: none; align-self: flex-end;
    width: min(42vw, 190px);
    margin: calc(var(--nav-h) + 3.5vh) var(--gutter) 0 0;
  }
  .hero__inner { flex: 1 1 auto; height: auto; min-height: 0; padding-top: 1rem; padding-bottom: 4.75rem; }
  .hero__title { font-size: min(14.2vw, 9.4vh, 5rem); margin: 0 0 1.5rem; }
  .hero__foot { gap: 1.5rem; }
  .hero__lead { font-size: 1.05rem; }
  .hero__meta { bottom: 1.1rem; }

  .why__grid { margin-top: 2.5rem; padding-top: 2rem; }
  .cta { padding-block: 5rem 4rem; }
  .cta__card { border-radius: 20px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero__mark { width: min(30vw, 130px); margin-top: calc(var(--nav-h) + 1.5vh); }
  .hero__lead { display: none; }
}

@media (max-width: 899px) {
  /* nav: the W + wordmark are wider than the old mark — keep everything on one line */
  .nav__bar { gap: 0.5rem; }
  .nav__logo { gap: 0.55rem; }
  .nav__mark { height: 22px; }
  .nav__word { height: 10px; }
  .nav__burger { flex: none; }
  .lang__opt { min-width: 30px; }
}
@media (max-width: 359px) { .nav__word { display: none; } }
/* big W on phones: fills the space above the headline, sized by height so it can never reach the text */
@media (max-width: 767px) {
  .hero__mark { width: min(80vw, 36vh, 340px); margin-top: calc(var(--nav-h) + 2.5vh); }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero__mark { width: min(72vw, 34vh); margin-top: calc(var(--nav-h) + 1vh); }
}

/* =========================================================
   MOBILE — 04 selected work: swipe cards with a live phone preview
   ========================================================= */
@media (max-width: 899px) {
  .work { padding-top: 4.5rem; padding-bottom: 4rem; }
  .work__head { margin-bottom: 1.75rem; }
  .work__track {
    flex-direction: row; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 6px var(--gutter) 12px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .project, .project--cta { flex: 0 0 84%; width: auto; max-width: 420px; scroll-snap-align: start; display: flex; }
  .project__link {
    display: flex; flex-direction: column; width: 100%;
    border-radius: 22px; overflow: hidden;
    background: var(--warm-white);
    border: 1px solid var(--line-light-strong);
    box-shadow: 0 18px 40px -26px rgba(9, 9, 9, 0.35);
  }
  .project__media { aspect-ratio: 4 / 4.4; border-radius: 0; }
  .project__media::after { background: radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 65%); }
  .work .device--desktop { display: none; }
  .work .device--phone {
    left: 50%; right: auto; top: 9%; translate: -50% 0;
    width: 52%; padding: 5px; border-radius: 28px;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .work .device--phone .device__screen { border-radius: 23px; }
  .project__info { padding: 1.1rem 1.25rem 1.4rem; row-gap: 0.35rem; }
  .project__title { font-size: 1.6rem; }
  .project__title span::after { opacity: 1; }
  .project__cat { opacity: 1; transform: none; font-size: 0.9rem; }
  .project__tag { font-size: 0.625rem; padding: 0.3rem 0.65rem; }
  .project__cta { width: 100%; min-height: 100%; aspect-ratio: auto; border-radius: 22px; justify-content: flex-end; padding: 1.75rem 1.5rem; }
  .project__cta-title { font-size: 2.75rem; }
  .work .cdots { color: var(--ink); margin-top: 1rem; }
  .work .cdots i.is-on { background: var(--gold-ink); }

  /* case-study page: one large live phone */
  .case-showcase .project__media { aspect-ratio: 4 / 4.6; border-radius: 22px; }
  .case-showcase .device--desktop { display: none; }
  .case-showcase .device--phone { left: 50%; right: auto; top: 8%; translate: -50% 0; width: 50%; padding: 5px; border-radius: 28px; }
  .case-showcase .device--phone .device__screen { border-radius: 23px; }
  .case-live { flex-direction: column; }
  .case-live .btn { width: 100%; }
}
/* clip live previews to the phone's rounded screen (iframes ignore plain overflow rounding in some browsers) */
.device--phone .device__screen { clip-path: inset(0 round 19px); }
@media (max-width: 899px) {
  .work .device--phone .device__screen, .case-showcase .device--phone .device__screen { clip-path: inset(0 round 23px); }
}

/* honeypot field for the inquiry form */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* inquiry form: optional extra details, folded away by default */
.form__more { margin-top: 1.25rem; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 14px; }
.form__more > summary { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none; font-size: .95rem; }
.form__more > summary::-webkit-details-marker { display: none; }
.form__more > summary::after { content: "+"; margin-left: auto; font-size: 1.15rem; line-height: 1; opacity: .7; transition: transform .25s ease; }
.form__more[open] > summary::after { transform: rotate(45deg); }
.form__more > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 12px; }
.form__more-body { display: grid; gap: 1rem; padding: 0 1.1rem 1.1rem; }
