/* Settled — settled.business
   ---------------------------------------------------------------------------
   Kept deliberately plain: flat colour, thin borders, no shadows, no
   blur, no decorative shapes. Motion is quick and only answers what you
   do (see "Motion" at the bottom). Colours come from
   the logo. Fonts (all self-hosted in /fonts):
     headings   Lilita One
     subtitles  Grandstander Italic, standing in for Bakerie. Bakerie is a
                paid font; once you've got a web licence, put its .woff2 in
                /fonts and swap the --font-sub line below to use it.
     text       Poppins
   Both themes come from one set
   of colour tokens, swapped for dark mode below.
   --------------------------------------------------------------------------- */

@font-face { font-family: "Lilita One"; src: url("/fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Grandstander"; src: url("/fonts/grandstander-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #EFF3EA;
  --paper-2: #E3EADB;
  --cream: #FAFCF7;
  --sage: #DAE4CF;
  --picked: #F7E0D1;
  --ink: #245A3F;
  --ink-2: #44574A;
  --ink-3: #627165;
  --line: #D5DECB;
  --line-2: #BCC9AF;
  --clay: #D9774D;
  --clay-press: #C0623A;
  --clay-ink: #FFFFFF;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lilita One", "Poppins", sans-serif;
  --font-sub: "Grandstander", "Poppins", sans-serif;
  /* Three text styles, used everywhere: */
  --t-big: clamp(40px, 6vw, 72px);   /* page titles, "Be Settled." */
  --t-mid: 24px;                      /* section headings, names, room titles */
  --t-body: 16px;                     /* everything else */
  --bold: 600;
  --page: min(1120px, 100% - 48px);
  --radius: 18px;
}
/* Dark mode: picked with the toggle, or following the phone's setting
   until someone picks one. */
:root[data-mode="dark"] {
  color-scheme: dark;
  --paper: #141C17;
  --paper-2: #1B251F;
  --cream: #1C2721;
  --sage: #1F2B23;
  --picked: #3A2E25;
  --ink: #EDF2E6;
  --ink-2: #BFC9B9;
  --ink-3: #8D9A8C;
  --line: #2B3A30;
  --line-2: #3C4E41;
  --clay: #E99470;
  --clay-press: #D88159;
  --clay-ink: #1A1410;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    color-scheme: dark;
    --paper: #141C17;
    --paper-2: #1B251F;
    --cream: #1C2721;
    --sage: #1F2B23;
    --picked: #3A2E25;
    --ink: #EDF2E6;
    --ink-2: #BFC9B9;
    --ink-3: #8D9A8C;
    --line: #2B3A30;
    --line-2: #3C4E41;
    --clay: #E99470;
    --clay-press: #D88159;
    --clay-ink: #1A1410;
  }
}

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { color: var(--ink); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--picked); color: var(--ink); }

h2 { font-size: var(--t-mid); line-height: 1.12; font-weight: var(--bold); letter-spacing: -0.015em; }
h3 { font-size: var(--t-mid); line-height: 1.25; font-weight: var(--bold); }
.u { position: relative; display: inline-block; }
/* The hand-drawn squiggle under "Settled". Draws itself once when the page opens. */
.squiggle { position: absolute; left: -3%; top: 92%; width: 106%; height: auto; overflow: visible; pointer-events: none; }
.squiggle path { fill: none; stroke: var(--clay); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .squiggle path { animation: squiggle-draw 0.9s cubic-bezier(.3,.7,.4,1) 0.55s both; }
}
@keyframes squiggle-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.skip-link { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.theme-dark-only { display: none !important; }
:root[data-mode="dark"] .theme-dark-only { display: block !important; }
:root[data-mode="dark"] .theme-light-only { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode]) .theme-dark-only { display: block !important; }
  :root:not([data-mode]) .theme-light-only { display: none !important; }
}

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: var(--t-body); font-weight: var(--bold); white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: var(--t-body); }
.btn-lg { height: 54px; padding: 0 26px; font-size: var(--t-body); }
.btn-clay { background: var(--ink); color: var(--paper); }
.btn-clay:hover { background: color-mix(in srgb, var(--ink) 85%, var(--paper)); }
.btn-forest { background: var(--ink); color: var(--paper); }
.btn-forest:hover { background: color-mix(in srgb, var(--ink) 85%, var(--paper)); }
.btn-quiet { color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* Header -------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { width: var(--page); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--bold); font-size: var(--t-mid); letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand-sm { font-size: var(--t-body); gap: 8px; }
.brand-sm img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin-left: 28px; flex: 1; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: var(--t-body); font-weight: 400; color: var(--ink); }

.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }


/* Hero ---------------------------------------------------------------- */
main { width: var(--page); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 48px; padding: 80px 0 96px; }
.hero h1 { font-size: var(--t-big); line-height: 1.02; font-weight: var(--bold); letter-spacing: -0.025em; margin-bottom: 22px; white-space: nowrap; }
.hero-lede { font-size: var(--t-body); color: var(--ink-2); max-width: 38ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: var(--t-body); color: var(--ink-3); }
.hero-phone { justify-self: end; width: min(270px, 100%); }

/* Inner pages --------------------------------------------------------- */
.page > section:first-child { padding-top: clamp(48px, 7vw, 88px); }
.page h1 { font-size: var(--t-big); line-height: 1.08; font-weight: var(--bold); letter-spacing: -0.02em; }
.page .install h1 { margin-bottom: 16px; }
.page .closing { padding: 56px 0 80px; }
.page .closing-title { font-size: var(--t-big); }

/* More about Settled (home) -------------------------------------------- */
.more { padding-bottom: 110px; }
.more h2 { margin-bottom: 28px; }
.more-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line-2); }
.more-list li { border-bottom: 1px solid var(--line-2); }
.more-list a { display: grid; gap: 4px; padding: 20px 0; }
.more-list b { font-size: var(--t-body); font-weight: var(--bold); color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.15s ease; }
.more-list a:hover b { text-decoration-color: var(--clay); }
.more-list span { font-size: var(--t-body); color: var(--ink-2); }

/* Problem ------------------------------------------------------------- */
.problem { max-width: 780px; padding: 0 0 96px; }
.problem p { font-size: var(--t-body); line-height: 1.45; color: var(--ink-2); }
.problem-turn { margin-top: 16px; color: var(--ink) !important; font-weight: var(--bold); }

/* Look around --------------------------------------------------------- */
.look { padding-bottom: 110px; }
.look-panel { background: var(--sage); border-radius: 16px; padding: clamp(24px, 4vw, 48px); }
.look-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.look-head p { color: var(--ink-2); }
.look-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }

.plan { position: relative; aspect-ratio: 240 / 190; }
.plan-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.plan-lines path, .plan-lines rect { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; }
.plan-lines .wall-outer { stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.plan-lines .wall-inner { stroke-width: 3; stroke-linecap: round; }
.plan-lines .doors path { stroke-width: 2; }
.plan-lines .fence { stroke-width: 1.5; stroke-dasharray: 6 5; }
.room {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 4px;
  background: var(--cream); color: var(--ink);
  font-size: 14px; font-weight: var(--bold); line-height: 1.15;
}
.room[data-room="garden"] { background: transparent; }
.room[data-room="hallway"], .room[data-room="garden"] { flex-direction: row; gap: 8px; }
.room .icon { width: 34px; height: 34px; }
.room[data-room="hallway"] .icon, .room[data-room="garden"] .icon { width: 26px; height: 26px; }
.icon .a { fill: var(--clay); stroke: none; }
.room:hover { background: var(--paper-2); }
.room[aria-pressed="true"] { background: var(--picked); font-weight: var(--bold); }
.room:focus-visible { outline-offset: -6px; }
.plan-caption { margin-top: 16px; font-size: var(--t-body); color: var(--ink-3); }

.readout { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 100%; }

.readout-tag { font-size: var(--t-body); color: var(--ink-3); margin-bottom: 6px; }
.readout h3 { font-size: var(--t-mid); font-weight: var(--bold); letter-spacing: -0.02em; margin-bottom: 8px; }
.readout-blurb { color: var(--ink); font-weight: var(--bold); margin-bottom: 20px; }
.readout-tips { display: grid; gap: 12px; margin: 0 0 22px; padding-left: 20px; list-style: disc; }
.readout-tips li { padding-left: 4px; font-size: var(--t-body); }
.readout-tips li::marker { color: var(--clay); }
.readout-tips b { color: var(--ink); font-weight: var(--bold); }
.readout-foot { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-body); color: var(--ink-3); }
.readout-link { justify-self: start; color: var(--ink); font-weight: var(--bold); font-size: var(--t-body); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Install ------------------------------------------------------------- */
.install { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding-bottom: 110px; }
.install h2 { margin-bottom: 16px; }
.install-lede { max-width: 46ch; margin-bottom: 28px; }
.install-steps { margin-bottom: 32px; border-top: 1px solid var(--line); }
.install-steps > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.install-steps dt { font-weight: var(--bold); color: var(--ink); }
.install-steps b { color: var(--ink); font-weight: var(--bold); }
.phone { justify-self: center; width: min(280px, 100%); border: 8px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--paper); }
.phone img { width: 100%; }

/* Shared section heading -------------------------------------------- */
.section-head { margin-bottom: 36px; }
.section-head p { margin-top: 6px; }
.section-head p { color: var(--ink-2); }

/* Team ---------------------------------------------------------------- */
.team { padding-bottom: 110px; }
.team-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 40px 24px; }
.person-photo { display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 18px; border-radius: 50%; background: var(--sage); color: var(--ink-3); object-fit: cover; }
.person-photo { font-size: var(--t-mid); font-weight: var(--bold); color: var(--ink); }
.team-group { border-top: 1px solid var(--line); }
.team-group:last-of-type { border-bottom: 1px solid var(--line); }
.team-group summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.team-group summary::-webkit-details-marker { display: none; }
.team-summary { display: grid; gap: 2px; }
.team-heading { margin: 0; }
.team-lead { color: var(--ink-3); }
.team-chev { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.team-group[open] .team-chev { transform: rotate(180deg); }
.team-group summary:hover .team-heading { color: var(--clay-press); }
.team-group .team-list { padding: 6px 0 32px; }
.team-list-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; }
.person-sm { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; }
.person-sm .person-photo { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: var(--t-body); }
.person-sm .person-name { font-size: var(--t-body); font-weight: var(--bold); }
.person-sm .person-role { margin: 0; font-weight: 400; color: var(--ink-3); }
.person-name { font-size: var(--t-mid); }
.person-role { margin-top: 2px; font-size: var(--t-body); font-weight: var(--bold); color: var(--clay-press); }
.person-bio { margin-top: 10px; font-size: var(--t-body); max-width: 32ch; }

/* What's next --------------------------------------------------------- */
.plans { padding-bottom: 110px; }
.roadmap { list-style: none; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.stage-when { grid-row: span 2; padding-top: 2px; }
.stage.is-now h3 { color: var(--ink); }
.stage-when { font-size: var(--t-body); font-weight: var(--bold); color: var(--ink-3); margin-bottom: 6px; }
.stage.is-now .stage-when { color: var(--clay-press); }
.stage h3 { margin-bottom: 10px; }
.stage p:last-child { font-size: var(--t-body); }

/* FAQ ----------------------------------------------------------------- */
.faq { padding-bottom: 110px; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; text-align: left; font-size: var(--t-body); font-weight: var(--bold); color: var(--ink); }
.faq-q .plus::before { content: "+"; font-size: var(--t-mid); font-weight: 400; line-height: 1; color: var(--clay-press); }
.faq-a { display: grid; grid-template-rows: 0fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 32px 20px 0; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* Closing ------------------------------------------------------------- */
.closing { text-align: center; padding: 72px 0 96px; border-top: 1px solid var(--line); }
.closing-title { font-size: var(--t-big); line-height: 1; font-weight: var(--bold); letter-spacing: -0.03em; margin-bottom: 28px; color: var(--ink); }

/* Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { width: var(--page); margin: 0 auto; padding: 28px 0 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; font-size: var(--t-body); color: var(--ink); }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: var(--t-body); color: var(--ink-3); }

/* 404 ----------------------------------------------------------------- */
.notfound { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 20px; padding: 48px 0; }
.notfound h1 { font-size: var(--t-big); line-height: 1.05; font-weight: var(--bold); letter-spacing: -0.025em; max-width: 14ch; }
.notfound p { font-size: var(--t-body); max-width: 40ch; margin-bottom: 8px; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .look-body, .install, .faq, .more-list { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; }
  .stage-when { grid-row: auto; margin-bottom: 4px; }
  .install { gap: 40px; }
  .faq { gap: 20px; }
}
@media (max-width: 920px) {
  .nav-links, .nav .btn-sm { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 72px; gap: 28px; }
  .hero-phone { display: none; }
}
@media (max-width: 560px) {
  :root { --page: calc(100% - 36px); }
  body { font-size: var(--t-body); }
  .nav-inner { height: 60px; }
  .brand { font-size: var(--t-mid); }
  .brand img { width: 30px; height: 30px; }
  .hero h1 { font-size: var(--t-big); }
  .hero-actions .btn { width: 100%; }
  .look-panel { margin: 0 -8px; padding: 22px 16px; border-radius: 14px; }
  .room { font-size: 11px; padding: 2px; gap: 3px; }
  .room .icon { width: 22px; height: 22px; }
  .room[data-room="hallway"] .icon, .room[data-room="garden"] .icon { width: 18px; height: 18px; }
  .readout { padding: 22px 20px; }
  .install-steps > div { grid-template-columns: 1fr; gap: 2px; }
  .faq-q { font-size: var(--t-body); }
  .team-list { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .person-photo { width: 88px; height: 88px; }
  .team-list-sm { grid-template-columns: 1fr; gap: 18px; }
  .person-bio { font-size: var(--t-body); }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}


/* Hero: one button, and a plain link for the look around */
.hero-more { display: inline-block; margin-left: 6px; padding: 10px 6px; font-weight: var(--bold); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.hero-more:hover { text-decoration-color: var(--clay); }
@media (max-width: 640px) { .hero-more { margin: 6px 0 0; display: block; padding-left: 0; } }


/* ---------- Fonts: headings and subtitles ---------- */
h1, h2, h3, .brand, .closing-title, .person-photo {
  font-family: var(--font-head);
  font-weight: 400;          /* Lilita One only comes in one weight */
  letter-spacing: 0.005em;
}
.person-sm .person-name { font-family: var(--font); font-weight: var(--bold); letter-spacing: 0; }
.section-head p, .team-lead, .plan-caption, .readout-blurb, .stage-when {
  font-family: var(--font-sub);
  font-style: italic;
  font-weight: 500;
}


/* ---------- Motion ----------
   One easing for everything, so it all feels like the same hand.
   Everything here switches off if someone has asked their phone or
   computer for reduced motion. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --ease-in: cubic-bezier(.55, 0, .75, .4); }

/* Buttons and links: colour eases, and buttons press in slightly. */
.btn, .icon-btn { transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .18s var(--ease); }
.btn:active, .icon-btn:active { transform: scale(.96); }
.hero-more, .readout-link, .more-list b { transition: text-decoration-color .25s var(--ease); }
.hero-more:hover { text-decoration-color: var(--clay); }

/* Nav: an orange line slides in under the page you hover or are on. */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--clay); transform: scaleX(0); transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Light/dark: the icon turns as it changes. */
.icon-btn svg.spin-in { animation: spin-in .5s var(--ease); }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.5); opacity: 0; } }



/* Home: the intro rises in once, then the squiggle draws under "Settled". */
.hero h1, .hero-lede, .hero-actions, .hero-phone { animation: rise .8s var(--ease) both; }
.hero-lede { animation-delay: .08s; }
.hero-actions { animation-delay: .16s; }
.hero-phone { animation-delay: .22s; animation-duration: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* House plan: rooms ease their colour, the picked room's icon gives a
   little nudge, and the tips fade across. */
.room { transition: background-color .25s var(--ease); }
.room .icon { transition: transform .35s var(--ease); }
.room:hover .icon { transform: translateY(-2px); }
.room[aria-pressed="true"] .icon { animation: nudge .45s var(--ease); }
@keyframes nudge { 40% { transform: scale(1.15); } }
.readout-inner { transition: opacity .2s var(--ease), transform .3s var(--ease); }
.readout-inner.is-leaving { opacity: 0; transform: translateY(6px); }

/* FAQ: answers slide open, the + turns into an x. */
.faq-a { transition: grid-template-rows .4s var(--ease); }
.faq-a p { opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: .06s; }
.faq-q .plus { display: inline-block; transition: transform .35s var(--ease); }
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-q span:first-child { transition: color .2s var(--ease); }
.faq-q:hover span:first-child { color: var(--clay-press); }

/* Team: groups slide open and shut (main.js), the arrow turns. */
.team-body { overflow: hidden; }
.team-chev { transition: transform .4s var(--ease); }
.team-group.is-closing .team-chev { transform: none; }
.team-heading { transition: color .2s var(--ease); }

/* Between pages: a soft fade, the header stays put. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: page-out .2s var(--ease-in) both; }
::view-transition-new(root) { animation: page-in .45s var(--ease) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
/* ...except when switching light/dark, where the circle does the work. */
:root.theme-switching .nav { view-transition-name: none; }
:root.theme-switching::view-transition-old(root),
:root.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}


/* ---------- Phone menu ----------
   The burger's two lines turn into an x. The menu fills the screen under
   the header, links rise in one after another, and the page behind
   stops scrolling while it's open. */
:root { --nav-h: 68px; }
@media (max-width: 640px) { :root { --nav-h: 60px; } }
:root.menu-open { overflow: hidden; }

.burger { position: relative; width: 22px; height: 14px; display: block; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease), bottom .4s var(--ease), width .3s var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child { bottom: 0; width: 70%; left: auto; right: 0; }
.menu-btn:hover .burger span:last-child { width: 100%; }
.menu-btn[aria-expanded="true"] .burger span:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:last-child { bottom: 6px; width: 100%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 49;
  display: flex; flex-direction: column; gap: 28px;
  padding: 20px max(20px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); overflow-y: auto;
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-links { display: grid; }
.mobile-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: var(--t-big); line-height: 1.1; color: var(--ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), color .2s var(--ease);
  transition-delay: calc(60ms + var(--i, 0) * 45ms);
}
.mobile-links a::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-top: 2.5px solid currentColor; transform: rotate(45deg); opacity: .35; margin-right: 6px; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.mobile-links a:hover::after, .mobile-links a:active::after { opacity: 1; transform: translateX(4px) rotate(45deg); }
.mobile-links a[aria-current="page"] { color: var(--clay-press); }
.mobile-links a[aria-current="page"]::after { opacity: 1; }
.menu-cta { margin-top: auto; width: 100%; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease) .3s, transform .5s var(--ease) .3s, background-color .22s var(--ease); }
.mobile-menu.is-open .mobile-links a, .mobile-menu.is-open .menu-cta { opacity: 1; transform: none; }
@media (min-width: 921px) { .mobile-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-links a, .menu-cta { opacity: 1; transform: none; }
}


/* ---------- Homely bits ---------- */
/* A little street above the footer, drawn like the house plan.
   One window's lit, the chimney's going. */
.street-wrap { width: var(--page); margin: 0 auto; padding-top: 40px; overflow: hidden; }
.street { display: block; width: min(640px, 100%); height: auto; margin: 0 auto; overflow: visible; }
.street path, .street rect, .street circle { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.street .knob { fill: var(--ink-3); stroke: none; }
.street .lit { fill: var(--clay); stroke: var(--clay); }
.street .smoke { stroke: var(--line-2); stroke-width: 1.8; }
@media (prefers-reduced-motion: no-preference) {
  .street .smoke { stroke-dasharray: 60; animation: smoke 4.5s ease-in-out infinite; }
}
@keyframes smoke { 0% { stroke-dashoffset: 60; opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: -60; opacity: 0; } }
.footer { border-top: 0; }
.footer-inner { border-top: 1px solid var(--line-2); }

/* Team: the initials give a small friendly tilt when you hover someone. */
.person-photo { transition: transform .4s var(--ease), background-color .3s var(--ease); }
.person:hover .person-photo { transform: rotate(-6deg) scale(1.04); background-color: var(--picked); }


/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--sage); }
.photo figcaption { margin-top: 12px; font-family: var(--font-sub); font-style: italic; font-weight: 500; color: var(--ink-3); }
.photo-band { margin: 0 0 96px; }
.photo-band img { aspect-ratio: 21 / 9; }

/* Home: why we made Settled */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 24px 0 110px; }
.why-logo { display: grid; place-items: center; aspect-ratio: 1; padding: 16%; border-radius: var(--radius); background: var(--sage); }
.why-logo img { width: 100%; height: auto; }
.why-copy p { max-width: 60ch; }
.why-copy p + p { margin-top: 14px; }
.why-copy .section-head { margin-bottom: 22px; }
.why-sign { margin-top: 22px !important; font-family: var(--font-sub); font-style: italic; font-weight: 500; color: var(--clay-press); }

/* Questions: photo under the heading */
.faq-side { display: grid; gap: 16px; align-content: start; }
.faq-ask a { font-weight: var(--bold); text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; }
.faq-photo { margin-top: 12px; }
.faq-photo img { aspect-ratio: 4 / 5; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-bottom: 96px; }
.contact-copy > p { max-width: 54ch; }
.contact-email { margin: 18px 0 20px; font-family: var(--font-head); font-size: var(--t-mid); letter-spacing: .005em; overflow-wrap: anywhere; }
.contact-email a { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 44px; }
.contact-copy h2 { margin-bottom: 12px; }
.contact-list, .legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 10px; max-width: 62ch; }
.contact-list li::marker, .legal li::marker { color: var(--clay); }
.contact-list a, .legal a { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 3px; }
.contact-photo img { aspect-ratio: 4 / 5; }

/* Privacy */
.legal { max-width: 720px; padding-bottom: 96px; }
.legal h2 { margin: 40px 0 10px; }
.legal p { max-width: 64ch; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }

@media (max-width: 860px) {
  .why, .contact { grid-template-columns: 1fr; gap: 28px; }
  .why-logo { aspect-ratio: auto; padding: 40px 25%; }
  .contact-photo { order: -1; }
  .contact-photo img { aspect-ratio: 16 / 9; }
  .faq-photo { display: none; }
  .photo-band img { aspect-ratio: 4 / 3; }
  .photo-band { margin-bottom: 64px; }
}
