/**
 * Bradford Blinds Plus — one stylesheet for every page.
 *
 * Theme: the site is "daylight" by default. The home page starts with
 * <html class="is-night">, which swaps every colour token to its night value,
 * and js/jade.js removes it as the blinds open. The tokens are registered with
 * @property so the swap fades smoothly instead of snapping.
 *
 * Palette: ivory walls, charcoal ink (from the logo), sage "jade" (Jade's
 * sweater in her photo) and a warm sunlight gold (the gold sunburst on her
 * studio wallpaper).
 */

@property --bg { syntax: "<color>"; inherits: true; initial-value: #f7f3ec; }
@property --bg-alt { syntax: "<color>"; inherits: true; initial-value: #efe8dc; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #fffdf9; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #24272a; }
@property --ink-soft { syntax: "<color>"; inherits: true; initial-value: #5d625f; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e0d8ca; }
@property --jade { syntax: "<color>"; inherits: true; initial-value: #5e8270; }
@property --jade-deep { syntax: "<color>"; inherits: true; initial-value: #3f5e4f; }
@property --sun { syntax: "<color>"; inherits: true; initial-value: #d9a441; }
@property --wall { syntax: "<color>"; inherits: true; initial-value: #ece4d6; }
@property --floor { syntax: "<color>"; inherits: true; initial-value: #c9b293; }
@property --photo-dim { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  --bg: #f7f3ec;
  --bg-alt: #efe8dc;
  --surface: #fffdf9;
  --ink: #24272a;
  --ink-soft: #5d625f;
  --line: #e0d8ca;
  --jade: #5e8270;
  --jade-deep: #3f5e4f;
  --sun: #d9a441;
  --wall: #ece4d6;
  --floor: #c9b293;
  --photo-dim: 1;
  --on-jade: #fffdf9;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgb(36 39 42 / 0.35);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light;
}

:root.is-night {
  --bg: #12151b;
  --bg-alt: #181c24;
  --surface: #1d222b;
  --ink: #ebe6dc;
  --ink-soft: #a3a7ad;
  --line: #2b313c;
  --jade: #8fb5a2;
  --jade-deep: #a9cbb9;
  --sun: #c7a25a;
  --wall: #1b2029;
  --floor: #14181e;
  --photo-dim: 0.45;
  --on-jade: #12151b;
  color-scheme: dark;
}

:root.is-dawning {
  transition:
    --bg 2.8s ease, --bg-alt 2.8s ease, --surface 2.8s ease, --ink 2.8s ease,
    --ink-soft 2.8s ease, --line 2.8s ease, --jade 2.8s ease, --jade-deep 2.8s ease,
    --sun 2.8s ease, --wall 2.8s ease, --floor 2.8s ease, --photo-dim 2.8s ease;
  transition-delay: 0.7s;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 0.9rem;
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 0.98rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--jade); color: var(--on-jade); box-shadow: 0 12px 26px -14px var(--jade); }
.btn--primary:hover { background: var(--jade-deep); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
.logo__name { font-size: 1.45rem; font-weight: 600; letter-spacing: 0.08em; }
.logo__sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.62em; margin-top: 4px; font-family: var(--sans); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { color: var(--on-jade); padding: 0.75em 1.25em; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-120%); transition: transform 0.3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; justify-content: center; padding: 1em; }
}

/* Hero: the morning room */

.hero { position: relative; overflow: hidden; background: var(--wall); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(calc(100vh - 76px), 820px);
  padding-block: clamp(40px, 6vw, 72px);
  position: relative; z-index: 2;
}
.hero__copy { position: relative; z-index: 3; }
.hero__copy .lede { color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }

.rating {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
}
.rating__g { width: 26px; height: 26px; }
.rating__score { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.rating__stars { color: var(--sun); letter-spacing: 2px; font-size: 1rem; line-height: 1; }
.rating__count { font-size: 0.82rem; color: var(--ink-soft); }

.scene { position: relative; aspect-ratio: 5 / 5.2; width: 100%; max-width: 620px; justify-self: end; }
.scene__room { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.scene__sky-day, .scene__sun, .scene__beam, .scene__floor-light { opacity: 0; }
.scene__sky-night, .scene__moon { opacity: 1; }
.scene__glow { opacity: 0.55; }

.scene .wall { fill: var(--wall); }
.scene .floor { fill: var(--floor); }

.jade-slot {
  position: absolute; left: -2%; bottom: 0;
  width: 39%; z-index: 4;
}

.bubble {
  position: absolute; left: 4%; top: 2%; z-index: 5;
  width: min(290px, 60%);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-size: 0.98rem; line-height: 1.5;
  opacity: 0; transform: translateY(10px) scale(0.96); transform-origin: bottom left;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.9,.3,1.3);
  pointer-events: none;
}
.bubble.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.bubble strong { font-family: var(--serif); font-size: 1.3rem; display: block; line-height: 1.1; margin-bottom: 4px; }

.replay {
  position: absolute; right: 2%; bottom: 3%; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 600 0.82rem var(--sans); cursor: pointer;
  opacity: 0; transition: opacity 0.4s ease;
}
.replay.is-shown { opacity: 1; }
.replay:hover { color: var(--ink); }
.replay svg { width: 16px; height: 16px; }

/* The window light that falls across the hero, like the logo. */
.sunpatch {
  position: absolute; z-index: 1; pointer-events: none;
  left: -6%; top: 12%;
  width: 62%; aspect-ratio: 1.25;
  transform: skewX(-18deg) rotate(-4deg);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5%;
  filter: blur(14px);
  opacity: 0;
  mix-blend-mode: soft-light;
}
.sunpatch span { background: #fff6dc; border-radius: 2px; }
.hero.is-day .sunpatch { opacity: 0.9; transition: opacity 2.6s ease 0.6s; }

.motes { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity 2s ease 1s; }
.hero.is-day .motes { opacity: 1; }
.motes i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #fff3cf; box-shadow: 0 0 6px #ffe8a8;
  animation: mote 9s linear infinite;
}
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translate(60px, -140px); opacity: 0; }
}

@media (max-width: 480px) {
  .bubble { left: 30%; width: 68%; font-size: 0.82rem; line-height: 1.4; padding: 10px 12px; }
  .bubble strong { font-size: 1.05rem; }
  .replay { font-size: 0.75rem; padding: 6px 10px; }
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .scene { order: -1; justify-self: center; max-width: 460px; }
  .sunpatch { width: 110%; top: 30%; }
  .bubble { left: 34%; top: 0; width: 64%; font-size: 0.9rem; padding: 12px 14px; }
  .bubble strong { font-size: 1.15rem; }
}

/* Photos dim at night */

.photo { filter: brightness(var(--photo-dim)); }

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Meet Jade */

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--flip { grid-template-columns: 1.1fr 0.9fr; }
.split--flip > :first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

.portrait { position: relative; }
.portrait img { border-radius: 220px 220px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; width: 100%; height: auto; box-shadow: var(--shadow); }
.portrait__badge {
  position: absolute; right: -14px; bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  width: 112px; height: 112px;
  display: grid; place-content: center; text-align: center;
  font-family: var(--serif); line-height: 1; box-shadow: var(--shadow);
}
.portrait__badge b { font-size: 2rem; display: block; }
.portrait__badge span { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 600px) { .portrait__badge { right: 8px; } }

.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--jade); }

.ticks { list-style: none; padding: 0; margin: 1.4em 0 1.8em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--jade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Your options */

.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
@media (max-width: 980px) { .options { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }

.option {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.option:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.option__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.option__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.option:hover .option__img img { transform: scale(1.05); }
.option__body { padding: 22px 24px 26px; }
.option__body h3 { margin-bottom: 0.3em; }
.option__body p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.option--motor .option__img {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--sun) 35%, transparent), transparent 60%), var(--bg-alt);
}
.option--motor svg { width: 46%; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 30px 28px 28px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 3.4rem; font-weight: 600; line-height: 1;
  color: var(--sun); display: block; margin-bottom: 14px;
}
.step p { color: var(--ink-soft); margin: 0; }
.step__tag {
  display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--jade) 14%, transparent); color: var(--jade-deep);
  font-size: 0.8rem; font-weight: 700;
}

/* Reviews */

.reviews { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .reviews { grid-template-columns: 1fr; } }
.reviews__score { font-family: var(--serif); font-size: clamp(5rem, 12vw, 8rem); font-weight: 600; line-height: 0.9; }
.reviews__stars { color: var(--sun); font-size: 1.6rem; letter-spacing: 4px; }
.quotes { display: grid; gap: 18px; }
.quote {
  margin: 0; padding: 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.quote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; margin-bottom: 0.6em; }
.quote footer { font-size: 0.9rem; color: var(--ink-soft); }
.quote footer b { color: var(--ink); }

/* Gallery */

.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.gallery-strip a:nth-child(1) { grid-row: span 2; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 1; }
.gallery-strip a:nth-child(1) img { aspect-ratio: auto; }
@media (max-width: 700px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip a:nth-child(1) { grid-row: auto; }
  .gallery-strip a:nth-child(1) img { aspect-ratio: 1; }
  .gallery-strip a:nth-child(n+5) { display: none; }
}

.masonry { columns: 3 300px; column-gap: 16px; margin-top: 44px; }
.masonry a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative; }
.masonry img { width: 100%; transition: transform 0.6s ease; }
.masonry a:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.55));
  color: #fff; font-size: 0.9rem; font-weight: 600;
  opacity: 0; transition: opacity 0.3s ease;
}
.masonry a:hover figcaption, .masonry a:focus-visible figcaption { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgb(10 12 15 / 0.92); padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: min(1100px, 100%); border-radius: 10px; }
.lightbox button {
  position: absolute; background: rgb(255 255 255 / 0.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; }
.lightbox__next { right: 18px; top: 50%; }

/* Safety note */

.note {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 26px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--sun) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sun) 35%, var(--line));
}
.note svg { width: 34px; height: 34px; flex: none; color: var(--sun); }
.note p { margin: 0; color: var(--ink-soft); }
.note b { color: var(--ink); }

/* CTA band */

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--jade-deep); color: #fffdf9;
  border-radius: 28px; padding: clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
:root.is-night .cta-band { background: #26332d; }
.cta-band h2 { margin-bottom: 0.25em; }
.cta-band p { opacity: 0.85; margin: 0; max-width: 52ch; }
.cta-band .btn--primary { background: #fffdf9; color: #2c4a3c; box-shadow: none; }
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: -8%; top: -40%; width: 60%; aspect-ratio: 1;
  background:
    linear-gradient(#fff 0 0) 0 0 / 47% 47% no-repeat,
    linear-gradient(#fff 0 0) 100% 0 / 47% 47% no-repeat,
    linear-gradient(#fff 0 0) 0 100% / 47% 47% no-repeat,
    linear-gradient(#fff 0 0) 100% 100% / 47% 47% no-repeat;
  transform: skewX(-16deg); filter: blur(18px); opacity: 0.13;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Page header (inner pages) */

.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.page-head .lede { margin-top: 0.6em; }
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: -6%; top: -10%; width: 46%; aspect-ratio: 1.2;
  background:
    linear-gradient(var(--sun) 0 0) 0 0 / 47% 47% no-repeat,
    linear-gradient(var(--sun) 0 0) 100% 0 / 47% 47% no-repeat,
    linear-gradient(var(--sun) 0 0) 0 100% / 47% 47% no-repeat,
    linear-gradient(var(--sun) 0 0) 100% 100% / 47% 47% no-repeat;
  transform: skewX(-18deg); filter: blur(30px); opacity: 0.18;
}

/* FAQ */

.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.8rem; line-height: 0.8; color: var(--jade); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Consult form */

.consult { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .consult { grid-template-columns: 1fr; } }

.consult__aside { position: sticky; top: 100px; }
@media (max-width: 900px) { .consult__aside { position: static; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--jade); margin-top: 3px; }
.contact-list a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: 0.88rem; }

.mini-jade { width: 150px; margin-top: 10px; }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label, .field legend { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font: 500 1rem var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--jade);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--jade) 18%, transparent);
}
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; font-size: 0.92rem; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chips input:checked + span { background: var(--jade); border-color: var(--jade); color: var(--on-jade); }
.chips input:focus-visible + span { outline: 2px solid var(--jade); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-foot small { color: var(--ink-soft); }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.is-error { color: #b4442f; }
.hidden-field { position: absolute; left: -9999px; }

.form-done { text-align: center; padding: 30px 10px; }
.form-done:focus { outline: none; }
.form-done svg { width: 64px; height: 64px; color: var(--jade); margin: 0 auto 14px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 96px; margin-top: 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { color: var(--jade); }
.site-footer p { color: var(--ink-soft); font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.site-footer__base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Reduced motion calms the extras (scroll fades, floating dust, hover lifts) but keeps the sunrise. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .motes { display: none; }
  .btn:hover, .option:hover, .option:hover .option__img img, .masonry a:hover img { transform: none; }
}

/* Jade (js/jade.js) */

.jade svg { width: 100%; height: auto; overflow: visible; display: block; }
.jade * { transform-box: view-box; }
.jade__shadow { fill: rgb(0 0 0 / 0.16); }
.jade__body { transform-origin: 100px 405px; animation: jade-breathe 4.2s ease-in-out infinite; }
@keyframes jade-breathe { 50% { transform: scaleY(1.008) translateY(-1px); } }

.jade__arm, .jade__forearm, .jade__head, .jade__pupil {
  transition: transform 0.7s cubic-bezier(.3,.8,.3,1.1);
}
.jade__arm--wave { transform-origin: 66px 156px; transform: rotate(4deg); }
.jade__forearm { transform-origin: 58px 206px; }
.jade__arm--remote { transform-origin: 134px 156px; transform: rotate(-8deg); }
.jade__head { transform-origin: 100px 128px; }
.jade__signal { opacity: 0; }
.jade__eyes-sleepy, .jade__yawn { opacity: 0; }

.jade.is-sleepy .jade__eyes-open { opacity: 0; }
.jade.is-sleepy .jade__eyes-sleepy { opacity: 1; }
.jade.is-sleepy .jade__head { transform: rotate(-4deg); }
.jade.is-yawning .jade__smile { opacity: 0; }
.jade.is-yawning .jade__yawn { opacity: 1; }
.jade.is-yawning .jade__arm--wave { transform: rotate(150deg); }
.jade.is-yawning .jade__forearm { transform: rotate(40deg); }

.jade.is-pressing .jade__arm--remote { transform: rotate(-112deg); }
.jade.is-pressing .jade__head { transform: translateX(3px) rotate(5deg); }
.jade.is-pressing .jade__pupil { transform: translate(2.5px, -1px); }
.jade.is-pressing .jade__led { animation: jade-led 0.35s steps(2) 0.5s 4; }
.jade.is-pressing .jade__signal { animation: jade-signal 0.7s ease-out 0.5s 3; }
@keyframes jade-led { 50% { fill: #ffd25a; } }
@keyframes jade-signal { 0% { opacity: 0; transform: translateX(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(6px); } }

.jade.is-waving .jade__arm--wave { transform: rotate(122deg); }
.jade.is-waving .jade__forearm { animation: jade-wave 0.5s ease-in-out 0.4s 4 alternate; transform: rotate(60deg); }
.jade.is-waving .jade__head { transform: rotate(-3deg); }
@keyframes jade-wave { from { transform: rotate(38deg); } to { transform: rotate(82deg); } }

.jade.is-idle { cursor: pointer; }
.jade.is-idle .jade__head { animation: jade-tilt 6s ease-in-out infinite; }
.jade.is-idle .jade__eyes-open { animation: jade-blink 5s infinite; transform-origin: 100px 95px; }
@keyframes jade-tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes jade-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }

/* The room (index.html hero SVG) */

.scene * { transform-box: view-box; }
.scene .trim { fill: var(--surface); }
.scene .trim-shade { fill: var(--line); }
.scene__fabric { transition: transform 2.8s cubic-bezier(.5,.05,.3,1); }
.hero.is-day .scene__fabric { transform: translateY(-282px); }
.scene__tint { opacity: 0.62; transition: opacity 2.6s ease 0.4s; }
.hero.is-day .scene__tint { opacity: 0; }
.scene__sky-day, .scene__sun { transition: opacity 2.6s ease 0.5s, transform 3.6s ease 0.4s; }
.scene__sun { transform: translateY(40px); }
.hero.is-day .scene__sky-day, .hero.is-day .scene__sun { opacity: 1; }
.hero.is-day .scene__sun { transform: none; }
.scene__sky-night, .scene__moon { transition: opacity 2.2s ease 0.6s; }
.hero.is-day .scene__sky-night, .hero.is-day .scene__moon { opacity: 0; }
.scene__glow { transition: opacity 1s ease; }
.hero.is-day .scene__glow { opacity: 0; }
.scene__beam, .scene__floor-light { transition: opacity 2.6s ease 1.2s; }
.hero.is-day .scene__beam { opacity: 0.55; }
.hero.is-day .scene__floor-light { opacity: 0.8; }
.scene__lamp-light { transition: opacity 1.2s ease; opacity: 0.9; }
.hero.is-day .scene__lamp-light { opacity: 0; }

/* Sunny, the chat robot (js/robot.js) */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.robot-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.4);
  font: 700 0.95rem var(--sans); cursor: pointer;
  transition: transform 0.2s ease;
  animation: robot-in 0.6s cubic-bezier(.2,.9,.3,1.3) 2s both;
}
.robot-launch:hover { transform: translateY(-2px); }
.robot-launch svg { width: 44px; height: 44px; }
.robot-launch .robot__sun { animation: robot-sun 2.4s ease-in-out infinite; transform-origin: 32px 6px; }
.robot-launch.is-open span { display: none; }
.robot-launch.is-open { padding-right: 8px; }
@keyframes robot-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } }
@keyframes robot-sun { 50% { transform: scale(1.25); } }

.robot-panel {
  position: fixed; right: 18px; bottom: 88px; z-index: 90;
  width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.45);
  overflow: hidden;
  animation: robot-open 0.3s cubic-bezier(.2,.9,.3,1.2);
}
.robot-panel[hidden] { display: none; }
@keyframes robot-open { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@media (max-width: 520px) {
  .robot-panel { right: 16px; bottom: 80px; }
  .robot-launch { right: 16px; bottom: 16px; padding: 6px; }
  .robot-launch span { display: none; }
}

.robot-panel__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--jade-deep); color: #fffdf9;
}
:root.is-night .robot-panel__head { background: #26332d; }
.robot-panel__avatar { width: 42px; height: 42px; background: #fffdf9; border-radius: 50%; display: grid; place-items: center; }
.robot-panel__avatar svg { width: 36px; height: 36px; }
.robot-panel__head b { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.robot-panel__head small { opacity: 0.8; font-size: 0.8rem; }
.robot-panel__close { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

.robot-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.robot-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; }
.robot-msg--bot { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.robot-msg--user { align-self: flex-end; background: var(--jade); color: var(--on-jade); border-bottom-right-radius: 4px; }
.robot-msg.is-typing { display: flex; gap: 4px; padding: 14px; }
.robot-msg.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: robot-dot 1s infinite; }
.robot-msg.is-typing i:nth-child(2) { animation-delay: 0.15s; }
.robot-msg.is-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes robot-dot { 50% { opacity: 0.3; transform: translateY(-3px); } }
.robot-msg__cta { align-self: flex-start; padding: 0.7em 1.2em; font-size: 0.9rem; }

.robot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.robot-chips[hidden] { display: none; }
.robot-chips button {
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font: 600 0.82rem var(--sans); cursor: pointer;
}
.robot-chips button:hover { border-color: var(--jade); }

.robot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.robot-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px;
  background: var(--bg); color: var(--ink); font: 500 0.95rem var(--sans);
}
.robot-form input:focus { outline: none; border-color: var(--jade); }
.robot-form button { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--jade); color: var(--on-jade); cursor: pointer; display: grid; place-items: center; }
.robot-form button svg { width: 18px; height: 18px; }
.robot-panel__jade { display: block; text-align: center; padding: 0 12px 12px; font-size: 0.82rem; font-weight: 600; color: var(--jade); }

/* Options: five cards, with the last row centred */

.options { display: flex; flex-wrap: wrap; justify-content: center; }
.options .option { flex: 0 1 calc((100% - 44px) / 3); }
@media (max-width: 980px) { .options .option { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 600px) { .options .option { flex-basis: 100%; } }

/* Motorization spotlight: Jade presses her remote and a little shade glides up */

.spotlight {
  margin-top: 22px;
  display: grid; grid-template-columns: minmax(280px, 1fr) 1fr; align-items: center; gap: clamp(20px, 4vw, 56px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 44px);
  overflow: hidden;
}
@media (max-width: 760px) { .spotlight { grid-template-columns: 1fr; } }
.spotlight__copy h3 { font-size: 2.2rem; }
.spotlight__copy p { color: var(--ink-soft); }

.spotlight__stage { position: relative; aspect-ratio: 1.25; max-width: 440px; width: 100%; justify-self: center; }
.spotlight__jade { position: absolute; left: 2%; bottom: 0; width: 34%; z-index: 2; }

.spot-windows {
  position: absolute; right: 2%; top: 18%; width: 62%; height: 64%;
  display: flex; align-items: flex-end; gap: 5%;
}
.spot-window {
  position: relative; flex: 1; height: 84%;
  border: 6px solid var(--bg-alt); border-radius: 5px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -16px rgb(0 0 0 / 0.4);
}
.spot-window:nth-child(2) { height: 100%; }
.spot-sky { position: absolute; inset: 0; background: linear-gradient(#9fd0ef, #fde7b8); }
.spot-sky i { position: absolute; left: 30%; top: 50%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 30px 12px #ffe39a; }
.spot-shade {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: repeating-linear-gradient(#ebe4d8 0 9px, #f8f4ec 9px 18px);
  border-bottom: 6px solid #d8cfbf;
  transition: height 2.2s cubic-bezier(.5,.05,.3,1);
}
.spot-cassette { position: absolute; left: 0; right: 0; top: 0; height: 9px; background: #ece6db; border-bottom: 2px solid #d7cfc1; }
.spotlight.is-open .spot-shade { height: 10%; }

.spot-bubble {
  position: absolute; left: 22%; top: -2%; z-index: 3; max-width: 62%;
  background: var(--jade-deep); color: #fffdf9;
  padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  font-weight: 700; font-size: 0.95rem; line-height: 1.35;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(0.95); transform-origin: bottom left;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.9,.3,1.3);
}
.spotlight.is-talking .spot-bubble { opacity: 1; transform: none; }
:root.is-night .spot-bubble { background: #26332d; }
.site-footer__base a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.site-footer__base a { display: inline-flex; align-items: center; gap: 5px; }
.credit-icon { width: 16px; height: 16px; color: var(--sun); }
