/* Home Connect design system v2 — "quiet luxury" hospitality.
   Full-bleed photography, warm ivory space, square edges, serif headlines with an italic accent,
   tracked uppercase labels, olive and terracotta actions. */

@layer reset, tokens, base, layout, components, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  input, button, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; background: none; border: 0; }
}

@layer tokens {
  :root {
    color-scheme: light;
    /* Palette "Earth & Linen": warm ivory #EADFD0, warm taupe #A08670, terracotta #9C4528,
       olive green #5E5535 (sampled from the user's swatches). Ivory page and bands, olive footer
       and dark buttons, terracotta main actions and small accents, taupe selected choices. */
    --bg: light-dark(#f9f5ef, #1b1912);
    --bg-2: light-dark(#f1e9de, #221f17);
    --blush: light-dark(#eadfd0, #2a2619);
    --surface: light-dark(#fffdf9, #24211a);
    --ink: light-dark(#2a2519, #efe7da);
    --ink-2: light-dark(#6b5d4c, #bbae9b);
    --line: light-dark(#e2d7c8, #3a352a);
    --accent: light-dark(#9c4528, #d9805e);
    --accent-fill: light-dark(#5e5535, #a08670);
    --accent-ink: light-dark(#f9f5ef, #1b1912);
    --accent-soft: light-dark(#f3e3d9, #33241b);
    --cta: light-dark(#9c4528, #c8653f);
    --cta-ink: light-dark(#f9f5ef, #1b1912);
    --solid: #a08670;
    --solid-ink: #1c1810;
    --footer: light-dark(#5e5535, #14120c);
    --footer-ink: light-dark(#f4ece0, #efe7da);
    --sage: #a08670;
    --sand: light-dark(#eadfd0, #2e2a1e);
    --olive: light-dark(#5e5535, #a8a07a);
    --ok: light-dark(#2f7a4f, #7fcf9c);
    --warn: light-dark(#a86a00, #e8b44f);
    --bad: light-dark(#b3361f, #f08a75);

    --serif: 'Newsreader', 'Tiempos Text', Georgia, serif;
    --sans: 'Jost', 'Brown', 'Futura', system-ui, sans-serif;
    --display: 'Oswald', 'Jost', sans-serif;
    --geez: 'Noto Serif Ethiopic', 'Abyssinica SIL', 'Kefa', serif;
    /* Ethiopian earth palette, shared by the site, the SEFER journal and the homes */
    --berbere: light-dark(#9e2b1d, #e0705a);
    --ochre: light-dark(#b8862b, #d9a94e);
    --highland: light-dark(#3f5a3c, #8fae86);
    --coffee: #2a1d16;
    --paper: light-dark(#f5efe6, #1d1915);
    --r-sm: 2px; --r: 0px; --r-lg: 0px;
    --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 16px 40px -18px rgb(0 0 0 / .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --max: 1320px;
    --gutter: clamp(16px, 4vw, 48px);
    --header-h: 76px;
  }
  :root[data-theme='light'] { color-scheme: light; }
  :root[data-theme='dark'] { color-scheme: dark; }
}

@layer base {
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    background: var(--bg); color: var(--ink);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased; min-height: 100dvh;
    display: flex; flex-direction: column;
  }
  h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
  h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
  h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
  h3 { font-size: 1.3rem; }
  p { text-wrap: pretty; }
  em { font-style: italic; }
  ::selection { background: #eadfd0; color: #2a2519; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  main { flex: 1; }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
  .section { padding-block: clamp(64px, 9vw, 128px); }
  .section-tight { padding-block: clamp(40px, 5vw, 72px); }
  .grid { display: grid; gap: clamp(20px, 2.4vw, 36px); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); row-gap: clamp(36px, 4vw, 56px); }
  .cards-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
  .two { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
  .stack > * + * { margin-top: var(--space, 1rem); }
  .band { background: var(--bg-2); }
  .band-blush { background: var(--blush); }
}

@layer components {
  /* Header: three columns, wordmark centred. Transparent over full-bleed heroes. */
  .site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: var(--bg); color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: background .35s, color .35s, border-color .35s, box-shadow .35s;
    .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 100%; }
  }
  body[data-header='overlay'] .site-header { position: fixed; inset: 0 0 auto; background: transparent; color: #fff; border-color: transparent;
    &::before { content: ''; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgb(0 0 0 / .35), transparent); pointer-events: none; transition: opacity .35s; }
    &.scrolled { background: var(--bg); color: var(--ink); border-color: var(--line); &::before { opacity: 0; } }
  }
  body[data-header='overlay'] main { margin-top: 0; }
  .site-header .wrap > * { position: relative; }
  .logo { justify-self: center; font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 10px;
    .mark { display: none; }
  }
  .site-footer .logo { justify-self: start; }
  .nav { display: flex; gap: 2px; align-items: center;
    a { padding: 8px 12px; white-space: nowrap; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; position: relative; transition: opacity .2s;
      &::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
      &:hover, &[aria-current='page'] { opacity: 1; &::after { scale: 1 1; } }
    }
  }
  .nav-right { justify-self: end; }
  .header-actions { display: flex; gap: 6px; align-items: center; }
  .icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .2s;
    &:hover { background: color-mix(in srgb, currentColor 10%, transparent); } }
  .menu-btn { display: none; }
  .mobile-nav { display: none; }
  @media (max-width: 1240px) {
    .site-header .wrap { grid-template-columns: auto 1fr auto; }
    .site-header .nav { display: none; }
    .menu-btn { display: grid; }
    .header-actions .btn { display: none; }
    .mobile-nav { display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto; background: var(--bg); color: var(--ink); padding: 16px var(--gutter) 32px; border-bottom: 1px solid var(--line); translate: 0 -8px; opacity: 0; pointer-events: none; transition: .25s var(--ease);
      a { padding: 14px 0; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--line); } }
    .site-header.open .mobile-nav { translate: 0; opacity: 1; pointer-events: auto; }
    body[data-header='overlay'] .site-header.open { background: var(--bg); color: var(--ink); }
  }
  @media (max-width: 520px) {
    .logo { letter-spacing: .2em; font-size: .9rem; }
    #saved-link { display: none; }
  }

  /* Buttons — square, tracked uppercase */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: var(--r-sm); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); white-space: nowrap; border: 1px solid transparent;
    &:active { transform: scale(.98); }
    &[disabled] { opacity: .4; pointer-events: none; }
  }
  /* One button colour everywhere: filled buttons are orange; ghost buttons fill orange on hover. */
  .btn-primary, .btn-dark { background: var(--accent-fill); color: var(--accent-ink); &:hover { background: color-mix(in srgb, var(--accent-fill) 88%, black); } }
  .btn-primary { background: var(--cta); color: var(--cta-ink); &:hover { background: color-mix(in srgb, var(--cta) 88%, black); } }
  .btn-ghost { border-color: currentColor; &:hover { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); } }
  .btn-light { background: #fffdf9; color: #2a2519; &:hover { background: #eadfd0; } }
  .btn-sm { padding: 9px 14px; font-size: .7rem; }
  .btn-block { width: 100%; }
  .link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; .icon { transition: translate .25s var(--ease); } &:hover .icon { translate: 4px 0; } }

  .eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
  .muted { color: var(--ink-2); }
  .lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
  .clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .caps { font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-weight: 400; }

  .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); background: var(--surface); }
  .chip-glass { position: absolute; top: 14px; left: 14px; background: rgb(255 255 255 / .92); color: #2a2519; border: 0; }
  .pill { display: inline-block; padding: 3px 9px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--bg-2); white-space: nowrap; }
  .pill-pending, .pill-new, .pill-inquiry, .pill-verification { background: color-mix(in srgb, var(--warn) 16%, transparent); color: color-mix(in srgb, var(--warn) 80%, var(--ink)); }
  .pill-confirmed, .pill-approved, .pill-active, .pill-signed, .pill-completed { background: color-mix(in srgb, var(--ok) 14%, transparent); color: color-mix(in srgb, var(--ok) 80%, var(--ink)); }
  .pill-declined, .pill-cancelled, .pill-ended { background: color-mix(in srgb, var(--bad) 12%, transparent); color: color-mix(in srgb, var(--bad) 80%, var(--ink)); }
  .pill-call, .pill-lease_sent { background: var(--accent-soft); color: var(--accent); }

  .avatar { width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; background: var(--sand); color: var(--ink); font-family: var(--serif); font-size: calc(var(--s) * .4); flex: none; }

  /* Listing card — photo, uppercase title, hairline, meta */
  .card { container-type: inline-size; position: relative; display: flex; flex-direction: column; gap: 18px; }
  .card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2);
    img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
  }
  .card:hover .card-media img { scale: 1.05; }
  .card-body { display: grid; gap: 8px;
    h3 { font-family: var(--sans); font-size: 1.02rem; text-transform: uppercase; letter-spacing: .08em; line-height: 1.35; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .clamp-2 { font-family: var(--serif); font-weight: 300; font-size: 1.02rem; }
  }
  .card .eyebrow { letter-spacing: .14em; font-size: .68rem; }
  .card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
  .specs { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .85rem; }
  .price { strong { font-weight: 500; } span { color: var(--ink-2); font-size: .82rem; margin-left: 3px; } }
  .fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .9); color: #2a2519; transition: transform .2s;
    &:hover { transform: scale(1.08); }
    &.on { color: var(--accent); svg { fill: currentColor; } }
  }
  @container (min-width: 520px) { .card-media { aspect-ratio: 3 / 2; } }

  /* Carousel — scroll-snap track with round arrow buttons */
  .carousel { position: relative;
    .track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--col, max(280px, calc(33.333% - 19px))); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
      &::-webkit-scrollbar { display: none; }
      > * { scroll-snap-align: start; } }
    .arrow { position: absolute; top: var(--arrow-top, 38%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .95); color: #2a2519; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s, opacity .2s;
      &:hover { transform: scale(1.06); }
      &.prev { left: -18px; } &.next { right: -18px; }
      @media (max-width: 760px) { display: none; } }
    @media (max-width: 760px) { .track { grid-auto-columns: 82%; } }
  }

  /* Forms */
  .field { display: grid; gap: 6px; font-size: .9rem;
    > span { color: var(--ink-2); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
  }
  .input, .field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s;
    &:focus { outline: none; border-color: var(--ink); }
  }
  .field textarea { min-height: 110px; resize: vertical; }
  .form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
  .check { display: flex; gap: 10px; align-items: center; font-size: .92rem; cursor: pointer;
    input { accent-color: var(--solid); width: 17px; height: 17px; } }
  /* Segmented control → underline tabs */
  .seg { display: inline-flex; gap: 4px; border-bottom: 1px solid var(--line);
    button, label { padding: 10px 14px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: .2s; }
    input { position: absolute; opacity: 0; pointer-events: none; }
    .on, label:has(input:checked) { color: var(--ink); border-color: var(--ink); }
  }

  /* Panels */
  .panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
  .rows { display: grid; gap: 10px; font-size: .95rem;
    > div { display: flex; justify-content: space-between; gap: 16px; }
    .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 500; }
  }
  .note { display: flex; gap: 10px; padding: 14px 16px; background: var(--accent-soft); font-size: .88rem; .icon { flex: none; color: var(--accent); margin-top: 2px; } }
  .note-warn { background: color-mix(in srgb, var(--warn) 12%, transparent); .icon { color: var(--warn); } }
  .error { color: var(--bad); font-size: .88rem; }

  /* Dialog */
  dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .45);
    &::backdrop { background: rgb(23 26 33 / .55); backdrop-filter: blur(3px); }
    &[open] { animation: pop .35s var(--ease); }
    .dlg-head { display: flex; justify-content: space-between; align-items: start; padding: 28px 28px 0; gap: 12px; }
    .dlg-body { padding: 20px 28px 28px; display: grid; gap: 14px; }
  }
  @keyframes pop { from { opacity: 0; translate: 0 16px; } }

  /* Toast */
  #toasts { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; z-index: 200; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
  .toast { display: flex; gap: 10px; align-items: center; padding: 14px 18px; background: var(--solid); color: var(--solid-ink); box-shadow: var(--shadow); animation: pop .35s var(--ease); transition: .4s; font-size: .92rem;
    &.out { opacity: 0; translate: 0 10px; }
    .icon { color: var(--accent); flex: none; } }

  /* Footer — dark brown */
  .site-footer { background: var(--footer); color: var(--footer-ink); padding-block: 72px 32px; margin-top: 0;
    .grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
    .muted { color: color-mix(in srgb, var(--footer-ink) 82%, transparent); }
    h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: color-mix(in srgb, var(--footer-ink) 82%, transparent); margin-bottom: 18px; font-weight: 400; }
    ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
    a:hover { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 4px; }
    .legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--footer-ink) 25%, transparent); font-size: .8rem; color: color-mix(in srgb, var(--footer-ink) 82%, transparent); }
    @media (max-width: 760px) { .grid { grid-template-columns: 1fr 1fr; } .grid > :first-child { grid-column: 1 / -1; } }
  }

  /* Section heads — centred serif with italic accent */
  .section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px);
    h2 { max-width: 22ch; }
  }
  .section-head.left { align-items: start; text-align: left; flex-direction: row; justify-content: space-between; align-items: end; flex-wrap: wrap; }
  .title-caps { font-family: var(--sans); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
}

@layer pages {
  /* Full-bleed hero */
  .fullbleed { position: relative; min-height: min(100svh, 920px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate;
    > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
    &::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 55% at 50% 52%, rgb(0 0 0 / .38), transparent), linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .2) 40%, rgb(0 0 0 / .45)); }
    .inner { width: min(100% - 2 * var(--gutter), 980px); padding-block: calc(var(--header-h) + 40px) 64px; display: grid; justify-items: center; gap: 20px; }
    h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.05; }
    .eyebrow { color: rgb(255 255 255 / .9); }
    .sub { font-family: var(--serif); font-weight: 300; text-shadow: 0 1px 12px rgb(0 0 0 / .45); font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .92; max-width: 52ch; }
  }
  .hero-zoom > img { animation: heroZoom 14s var(--ease) both; }
  @keyframes heroZoom { from { scale: 1.08; } to { scale: 1; } }

  /* Search bar laid over hero */
  .searchbar { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr auto; align-items: stretch; background: #fff; color: #202020; width: min(100%, 860px); margin-top: 12px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .5); text-align: left;
    .field { padding: 12px 18px; border-right: 1px solid #e7e5e8; gap: 2px; > span { color: #77737b; font-size: .62rem; } }
    .field select, .field input { border: 0; padding: 2px 0; background: transparent; color: #202020; font-size: .95rem; }
    .go { background: #202020; color: #fff; width: 64px; display: grid; place-items: center; transition: background .2s; &:hover { background: var(--accent); } }
    @media (max-width: 760px) { grid-template-columns: 1fr; .field { border-right: 0; border-bottom: 1px solid #e7e5e8; } .go { width: 100%; height: 52px; } }
  }
  .hero-hint { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; background: rgb(20 18 22 / .55); backdrop-filter: blur(8px); font-size: .78rem; color: #fff;
    b { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; } }

  .intro { text-align: center; display: grid; justify-items: center; gap: 22px;
    p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.75; max-width: 70ch; color: var(--ink-2); } }

  /* Home page: founder's note, the search in three steps, a shortlist preview */
  .hm-letter { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center;
    h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 14px 0 26px; }
    @media (max-width: 860px) { grid-template-columns: 1fr; .hm-letter-photo { max-width: 420px; } } }
  .hm-search { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
    h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 14px; }
    @media (max-width: 960px) { grid-template-columns: 1fr; } }
  .hm-steps { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--ink);
    li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-block: 20px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
    h3 { font-size: 1.35rem; }
    p { font-family: var(--serif); font-weight: 300; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); margin-top: 6px; } }
  .hm-preview { background: var(--surface); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px;
    .cl-host { margin: 16px 0; padding: 14px 16px; p { font-size: .98rem; } }
    h3 { font-size: 1.5rem; margin-top: 8px; } }
  .hm-preview-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .hm-preview-home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(16px, 2vw, 28px); align-items: start;
    @media (max-width: 560px) { grid-template-columns: 1fr; } }
  .hm-for { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: .98rem; line-height: 1.45; margin-top: 4px; }

  /* Value props (condensed display words) */
  .values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); text-align: center;
    .word { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
    .sub { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; margin-top: 6px; }
    p { font-family: var(--serif); font-weight: 300; color: var(--ink-2); margin-top: 16px; max-width: 34ch; margin-inline: auto; }
    @media (max-width: 760px) { grid-template-columns: 1fr; } }

  /* Captioned image tiles (italic serif captions) */
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px);
    a, div { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; color: #fff; display: flex; align-items: end; padding: 26px; isolation: isolate; }
    img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease); }
    a::after, div::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 50%, rgb(0 0 0 / .55)); }
    a:hover img, div:hover img { scale: 1.05; }
    span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.25; max-width: 14ch; }
    @media (max-width: 760px) { grid-template-columns: 1fr; a, div { aspect-ratio: 4 / 3; } } }

  /* Split feature */
  .split-feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 96px); align-items: center;
    .media { aspect-ratio: 4 / 3; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; } }
    .copy { display: grid; gap: 22px; justify-items: center; text-align: center; }
    &.flip { grid-template-columns: 1.25fr 1fr; .media { order: -1; } }
    @media (max-width: 860px) { grid-template-columns: 1fr !important; .media { order: -1; } } }

  /* City / journal carousel cards */
  .place { display: grid; gap: 14px;
    .media { aspect-ratio: 4 / 5; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); } }
    &:hover img { scale: 1.05; }
    h3 { font-style: italic; font-size: 1.35rem; }
    p { font-size: .82rem; color: var(--ink-2); } }

  .steps { counter-reset: s; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding: 0;
    li { list-style: none; counter-increment: s; padding: 28px; background: var(--surface);
      &::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 300; font-size: 2rem; color: var(--accent); margin-bottom: 14px; }
      h4 { font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
      p { color: var(--ink-2); font-family: var(--serif); font-weight: 300; } }
  }

  /* The collection (#/stays): a curated, personal presentation of every home */
  .cl-intro { background: var(--blush); padding-block: clamp(64px, 9vw, 128px) clamp(48px, 6vw, 88px); }
  .cl-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end;
    h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.02; margin-top: 14px; } }
  .cl-note { p { font-family: var(--serif); font-weight: 300; font-size: 1.15rem; line-height: 1.65; & + p { margin-top: .9em; } } }
  .cl-sign { display: flex; align-items: center; gap: 12px; margin-top: 22px !important; font-family: var(--sans) !important; font-size: .74rem !important; letter-spacing: .16em; text-transform: uppercase; font-weight: 400 !important; }
  .cl-choose { padding-top: clamp(32px, 4vw, 56px); }
  .cl-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); &:first-child { border-top: 1px solid var(--line); } }
  .cl-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
  .cl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .cl-chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .84rem; color: var(--ink-2); background: var(--surface); transition: border-color .2s, color .2s, background .2s;
    &:hover { border-color: var(--ink); color: var(--ink); }
    &.on { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); } }
  .cl-status { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px;
    p { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.05rem; }
    .link-arrow { cursor: pointer; } }
  .cl-map { height: min(60vh, 460px); border: 1px solid var(--line); margin-top: 24px; }
  .cl-list { display: grid; gap: clamp(72px, 9vw, 140px); padding-block: clamp(56px, 7vw, 104px) clamp(80px, 9vw, 140px); }
  .cl-home { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); align-items: center;
    &.flip { grid-template-columns: 7fr 5fr; .cl-media { order: 2; } } }
  .cl-media { position: relative; }
  .cl-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2);
    img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); } }
  #cl-list .cl-photo { border-radius: 20px; }
  .cl-media:hover img { scale: 1.035; }
  .cl-meta { display: flex; gap: 14px; align-items: baseline; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); span { color: var(--accent); } }
  .cl-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; margin: 14px 0 16px; a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; } }
  .cl-why { font-family: var(--serif); font-weight: 300; font-size: 1.22rem; line-height: 1.6; max-width: 40ch; }
  .cl-host { margin: 28px 0; padding: 18px 20px; background: var(--blush); display: flex; gap: 14px; align-items: flex-start;
    p { font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.55; }
    cite { display: block; margin-top: 8px; font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); } }
  .cl-facts { border-top: 1px solid var(--line); font-size: .92rem;
    > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; padding-top: 3px; } dd { margin: 0; color: var(--ink-2); } }
  .cl-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
  .cl-price { font-family: var(--serif); color: var(--ink-2);
    b { font-weight: 500; font-size: 1.4rem; color: var(--ink); } i { margin: 0 12px; font-style: normal; }
    small { display: block; margin-top: 6px; font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; } }
  /* About / What's close tabs on each home in the collection */
  .cl-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
    button { padding: 0 0 10px; margin-bottom: -1px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
      &:hover { color: var(--ink); } &.on { color: var(--ink); border-color: var(--ink); } } }
  .cl-near { list-style: none; padding: 0; border-top: 1px solid var(--line);
    a { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s var(--ease);
      &:hover { background: var(--blush); padding-inline: 10px; .cl-near-name { text-decoration: underline; text-underline-offset: 3px; } } }
    @media (max-width: 560px) { a { grid-template-columns: 1fr auto; } .cl-near-cat { grid-column: 1 / -1; } } }
  .cl-near-cat { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
  .cl-near-name { font-family: var(--serif); font-size: 1.02rem; }
  .cl-near-km { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cl-near-note { margin-top: 12px; font-size: .8rem; color: var(--ink-2); }

  /* What's close on the listing page: interactive map with routes */
  .wc-mapcol { margin-top: 24px; border: 1px solid var(--line); }
  .wc-map { height: clamp(300px, 42vw, 420px); background: var(--bg-2); }
  .wc-route { padding: 16px 18px; border-top: 1px solid var(--line); background: var(--surface); min-height: 64px; }
  .wc-hint { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink-2); padding: 4px 0; }
  .wc-route-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
  .wc-route-name { font-family: var(--serif); font-size: 1.25rem; }
  .wc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 12px;
    > div { background: var(--surface); padding: 10px 14px; }
    dt { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
    dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; } }
  .wc-note { margin-top: 10px; font-size: .78rem; color: var(--ink-2); a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; } }
  .wc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 32px; margin-top: 28px; }
  .wc-cat-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
  .wc-cat ul { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
  .wc-cat button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); transition: background .2s;
    &:hover { background: var(--blush); }
    &.on { background: var(--blush); .wc-name { color: var(--accent); } } }
  .wc-name { font-family: var(--serif); font-size: 1rem; line-height: 1.3; small { display: block; font-family: var(--sans); font-size: .76rem; color: var(--ink-2); margin-top: 2px; } }
  .wc-km { font-size: .85rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .wc-home { display: grid; place-items: center; width: 30px; height: 30px; translate: -50% -50%; border-radius: 50%; background: var(--ink); color: var(--bg); box-shadow: 0 0 0 3px var(--bg), var(--shadow); }
  .wc-dot { display: block; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s;
    &.on { background: var(--accent-fill); border-color: #fff; width: 18px; height: 18px; } }
  /* A home's own page (#/homes/:id), in the warm collection style */
  .hl-intro { background: var(--blush); padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 72px); }
  .hl-crumbs { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px;
    a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } > span:not(.hl-place) { opacity: .6; } }
  .hl-intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-top: 22px;
    h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.03; } }
  .hl-why { font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; margin-top: 18px; max-width: 40ch; }
  .hl-intro-side { display: grid; gap: 18px; justify-items: start; }
  .hl-facts { width: 100%; border-top: 1px solid var(--ink); font-size: .92rem;
    > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
    dt { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding-top: 3px; } dd { margin: 0; color: var(--ink-2); } }

  /* One photo size for the whole page: a third of the content width, 4:5 */
  .hl-strip, .hl-more { --hl-wrap: min(100cqw - 2 * var(--gutter), var(--max)); --hl-gap: clamp(14px, 1.6vw, 24px); --hl-col: calc((var(--hl-wrap) - 2 * var(--hl-gap)) / 3); container-type: inline-size; }
  .hl-strip { --col: var(--hl-col); --off: calc((100cqw - var(--hl-wrap)) / 2); margin-top: clamp(28px, 4vw, 56px);
    .track { grid-auto-columns: var(--col); gap: var(--hl-gap); padding-inline: var(--off); scroll-padding-inline: var(--off); }
    .arrow { top: calc(var(--hl-col) * .625); translate: 0 -50%; } .arrow.prev { left: calc(var(--off) - 24px); } .arrow.next { right: calc(var(--off) - 24px); } }
  .hl-frame { margin: 0; figcaption { margin-top: 8px; font-size: .74rem; color: var(--ink-2); font-variant-numeric: tabular-nums; } }
  .hl-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); } }
  .hl-frame:hover img, .hl-more-card:hover img { scale: 1.035; }
  button.hl-img { display: block; width: 100%; padding: 0; cursor: zoom-in; }
  dialog.lb { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; background: rgb(18 15 11 / .96); color: #fff; box-shadow: none; overflow: hidden; touch-action: pan-y;
    &[open] { display: grid; place-items: center; animation: lb-in .25s var(--ease); }
    .lb-img { max-width: calc(100% - 152px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; }
    .lb-count { position: absolute; top: 24px; left: 28px; font-size: .78rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
    .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; color: #fff; display: grid; place-items: center; transition: background .2s; &:hover { background: rgb(255 255 255 / .14); } &:focus-visible { outline: 2px solid #fff; outline-offset: 2px; } }
    .lb-close { top: 12px; right: 16px; }
    .lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
    .lb-next { right: 16px; top: 50%; translate: 0 -50%; }
    @media (max-width: 760px) {
      .lb-img { max-width: 100%; max-height: calc(100dvh - 160px); }
      .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
      .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
    }
  }
  @keyframes lb-in { from { opacity: 0; } }

  .hl-body { margin-top: clamp(40px, 5vw, 72px); }
  .hl-section { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px);
    &:first-child { border-top: 1px solid var(--ink); } }
  .hl-label { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding-top: 4px; }
  .hl-story p { font-family: var(--serif); font-weight: 300; font-size: 1.18rem; line-height: 1.75; & + p { margin-top: 1em; } }
  .hl-host { margin: 0; padding: 22px 24px; background: var(--blush); display: flex; gap: 18px; align-items: flex-start;
    p { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.6; }
    cite { display: block; margin-top: 10px; font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); } }
  .hl-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
    li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; } }
  .hl-sub { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin-bottom: 10px; }
  .hl-lead { font-family: var(--serif); font-weight: 300; font-size: 1.12rem; line-height: 1.6; }
  .hl-small { font-size: .82rem; line-height: 1.55; color: var(--ink-2); margin-top: 18px; }
  .hl-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: .88rem; a { text-decoration: underline; text-underline-offset: 3px; } }
  .hl-section .wc-mapcol { margin-top: 18px; }
  .hl-rows { border-top: 1px solid var(--line);
    > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
    dt { font-family: var(--serif); font-style: italic; } dd { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.55; } }
  .hl-book { box-shadow: none; border-color: var(--ink); .hl-label { margin-bottom: 14px; } }
  .hl-book-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }

  .hl-more { background: var(--bg-2); padding-block: clamp(56px, 7vw, 104px); margin-top: clamp(56px, 7vw, 104px); }
  .hl-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
  .hl-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hl-gap); }
  .hl-more-card { display: grid; gap: 8px; align-content: start;
    .cl-meta { margin-top: 12px; } h3 { font-size: 1.45rem; line-height: 1.15; }
    &:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } }

  @media (max-width: 980px) {
    .hl-intro-grid { grid-template-columns: 1fr; align-items: start; }
    .hl-section { grid-template-columns: 1fr; gap: 12px; }
  }
  @media (max-width: 700px) {
    .hl-strip, .hl-more { --hl-col: calc(var(--hl-wrap) - 40px); }
    .hl-more-grid { grid-template-columns: 1fr; }
    .hl-more-card .hl-img { width: var(--hl-col); }
    .hl-lists { grid-template-columns: 1fr; }
    .hl-rows > div { grid-template-columns: 1fr; gap: 4px; }
  }
  /* Home-hunting service: the brief, the private shortlist and the admin builder */
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
  .sv-wrap { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px); }
  .sv-form { max-width: 920px; }
  .sv-step { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-block: 30px; border-top: 1px solid var(--line);
    &:first-child { border-top-color: var(--ink); }
    legend { float: left; font-family: var(--serif); font-size: 1.35rem; padding: 0; display: flex; gap: 12px; align-items: baseline;
      span { font-family: var(--sans); font-size: .7rem; letter-spacing: .14em; color: var(--accent); } }
    @media (max-width: 760px) { grid-template-columns: 1fr; gap: 14px; } }
  .sv-fields { display: grid; gap: 18px; min-width: 0; }
  .sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .sv-chip { position: relative; cursor: pointer;
    input { position: absolute; opacity: 0; pointer-events: none; }
    span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .86rem; color: var(--ink-2); background: var(--surface); transition: .2s; }
    &:hover span { border-color: var(--ink); color: var(--ink); }
    input:checked + span { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
    input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; } }
  .sv-help { font-size: .82rem; color: var(--ink-2); }
  .sv-submit { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding-top: 30px; border-top: 1px solid var(--ink); }
  .sv-thanks { max-width: 760px; h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 10px; } }
  .sv-lead { font-family: var(--serif); font-weight: 300; font-size: 1.2rem; line-height: 1.6; margin: 16px 0 26px; }
  .sv-first { margin-top: clamp(56px, 7vw, 96px); container-type: inline-size; --hl-gap: clamp(14px, 1.6vw, 24px); }
  .sv-brief-recap { padding-top: clamp(32px, 4vw, 56px); }
  .sv-recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 12px;
    > div { background: var(--surface); padding: 14px 16px; }
    dt { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); } dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.4; } }
  .sv-why cite { color: var(--accent); }
  .sv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px;
    .btn.done { background: var(--blush); color: var(--ink); border-color: var(--blush); cursor: default; } }
  .sv-more { margin-top: 18px; }
  .sv-admin-brief h3 { font-size: 1.5rem; }
  .sv-sent .input { font-size: .82rem; }
  .sv-builder { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 14px; }
  .sv-pick { padding: 12px 14px; border: 1px solid var(--line); display: grid; gap: 6px; textarea { font-size: .9rem; } }
  /* How we find your home, For organisations and client stories */
  .hw-layout { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(48px, 7vw, 104px); }
  .hw-photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .hw-journey { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink);
    li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line); }
    h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
    p { font-family: var(--serif); font-weight: 300; font-size: 1.1rem; line-height: 1.65; margin-top: 10px; max-width: 58ch; }
    .link-arrow { margin-top: 14px; } }
  .hw-when { display: grid; gap: 6px; align-content: start; }
  .hw-n { font-family: var(--display); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--accent); }
  .hw-details { padding-bottom: clamp(56px, 7vw, 104px);
    .hl-section { grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding-block: 36px; }
    .hl-section:first-child { border-top: 1px solid var(--ink); }
    .hl-rows > div { grid-template-columns: 160px 1fr; } }
  .hw-aside { display: grid; gap: 18px; align-content: start; .hl-img { max-width: 340px; } }
  .org-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
  #org-enquiry { padding-top: 0; scroll-margin-top: calc(var(--header-h) + 20px);
    .hl-section { border-top-color: var(--ink); } .sv-form { max-width: none; } }
  .st-stories { padding-bottom: clamp(56px, 7vw, 104px); }
  .st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: 18px; border-top: 1px solid var(--ink); padding-top: 28px; }
  .st-story { margin: 0;
    blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; }
    figcaption { display: grid; gap: 4px; margin-top: 16px; font-size: .82rem; color: var(--ink-2);
      strong { font-weight: 500; color: var(--ink); } a { text-decoration: underline; text-underline-offset: 3px; } } }
  @media (max-width: 860px) {
    .hw-layout, .hw-details .hl-section { grid-template-columns: 1fr; }
    .hw-details .hl-section { gap: 12px; }
    .hw-photo { position: static; max-width: 420px; }
    .hw-aside .hl-img { display: none; }
    .hw-journey li { grid-template-columns: 1fr; gap: 10px; }
    .hw-details .hl-rows > div { grid-template-columns: 1fr; gap: 4px; }
  }
  .cl-empty { text-align: center; padding: 80px 16px; border: 1px solid var(--line); h3 { font-size: 1.8rem; } p { margin-top: 10px; font-family: var(--serif); color: var(--ink-2); } }
  .cl-closing { background: var(--bg-2); padding-block: clamp(72px, 9vw, 128px); }
  .cl-closing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start;
    h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
    p { font-family: var(--serif); font-weight: 300; font-size: 1.15rem; line-height: 1.65; margin-bottom: 26px; } }
  @media (max-width: 860px) {
    .cl-intro-grid, .cl-closing-grid, .cl-home, .cl-home.flip { grid-template-columns: 1fr; }
    .cl-home.flip .cl-media { order: 0; }
    .cl-row { grid-template-columns: 1fr; gap: 10px; }
  }
  .map-wrap { height: min(72dvh, 660px); overflow: hidden; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
  .leaflet-container { font-family: var(--sans); background: var(--bg-2); }
  .price-pin { background: #fff; color: #2a2519; padding: 5px 10px; font-weight: 500; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; translate: -50% -50%; display: inline-block; letter-spacing: .02em; }
  .empty { text-align: center; padding: 64px 16px; border: 1px solid var(--line); color: var(--ink-2); font-family: var(--serif); }

  /* Listing detail */
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(160px, 280px)); gap: 8px;
    img { width: 100%; height: 100%; object-fit: cover; }
    > :first-child { grid-row: span 2; }
    > * { overflow: hidden; }
    @media (max-width: 760px) { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
      > * { flex: 0 0 88%; scroll-snap-align: start; aspect-ratio: 4/3; } }
  }
  .detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 48px;
    @media (max-width: 980px) { grid-template-columns: 1fr; } }
  .booking-card { position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow); }
  .facts { display: flex; flex-wrap: wrap; gap: 12px 26px; padding-block: 22px; border-block: 1px solid var(--line); color: var(--ink-2); font-size: .9rem;
    span { display: inline-flex; gap: 8px; align-items: center; } }
  .story p { font-family: var(--serif); font-weight: 300; font-size: 1.22rem; line-height: 1.75; & + p { margin-top: 1em; } }
  .amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 24px; padding: 0; list-style: none; font-size: .95rem;
    li { display: flex; gap: 10px; align-items: center; } .icon { color: var(--ink-2); } }
  .host-box { display: flex; gap: 20px; align-items: start; p { font-family: var(--serif); font-weight: 300; font-size: 1.08rem; } }
  .detail-section { padding-block: 40px; border-bottom: 1px solid var(--line); h2 { font-size: 1.75rem; margin-bottom: 18px; } }
  .tabs-type { margin-bottom: 20px; }
  .mobile-book { display: none; @media (max-width: 980px) { display: flex; position: fixed; inset: auto 0 0; z-index: 40; padding: 12px var(--gutter); background: var(--bg); border-top: 1px solid var(--line); justify-content: space-between; align-items: center; } }

  /* Guides */
  .guide-card { display: grid; gap: 16px;
    .media { aspect-ratio: 3/2; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); } }
    h3 { font-size: 1.4rem; }
    .clamp-2 { font-family: var(--serif); font-weight: 300; }
    &:hover img { scale: 1.05; } }
  .article { max-width: 720px; margin-inline: auto;
    h2 { font-size: 1.8rem; margin: 44px 0 14px; }
    p { font-family: var(--serif); font-weight: 300; font-size: 1.18rem; line-height: 1.8; }
  }
  .page-hero { position: relative; min-height: 78svh; display: flex; align-items: end; color: white; overflow: hidden; text-align: center; justify-content: center;
    > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    &::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .35), rgb(0 0 0 / .15) 40%, rgb(0 0 0 / .55)); }
    .wrap { position: relative; z-index: 1; padding-block: 64px; display: grid; justify-items: center; }
    .eyebrow { color: rgb(255 255 255 / .85); }
    .lead { color: rgb(255 255 255 / .9) !important; }
  }
  .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
    > div { padding: 26px; background: var(--surface); }
    p { font-family: var(--serif); font-weight: 300; }
    h4 { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-2); font-weight: 400; margin-bottom: 10px; } }

  /* Landlords */
  .calc { display: grid; gap: 22px;
    input[type=range] { width: 100%; accent-color: var(--accent); }
    .big { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; } }
  .bar { height: 10px; overflow: hidden; display: flex; background: var(--bg-2);
    span:first-child { background: var(--solid); } span:last-child { background: var(--accent-fill); } }

  .faq details { border-bottom: 1px solid var(--line); padding-block: 22px;
    summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 16px;
      &::after { content: '+'; font-family: var(--sans); font-weight: 300; transition: rotate .3s; } }
    &[open] summary::after { rotate: 45deg; }
    p { margin-top: 12px; color: var(--ink-2); max-width: 70ch; font-family: var(--serif); font-weight: 300; font-size: 1.08rem; }
  }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }

  /* Dashboards */
  .dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
  .tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto;
    button { padding: 12px 14px; color: var(--ink-2); border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
      &.on { color: var(--ink); border-color: var(--ink); } }
    .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-ink); font-size: .64rem; margin-left: 6px; letter-spacing: 0; } }
  .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 32px;
    > div { padding: 22px; background: var(--surface); }
    span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
    strong { display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; margin-top: 8px; } }
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
  table { width: 100%; border-collapse: collapse; font-size: .9rem;
    th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
    th { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); font-weight: 400; background: var(--bg-2); }
    tr:last-child td { border-bottom: 0; }
    .num { text-align: right; font-variant-numeric: tabular-nums; } }
  .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
  .pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .lane { background: var(--bg-2); padding: 14px; min-height: 220px; scroll-snap-align: start;
    header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
    > p { font-size: .78rem; color: var(--ink-2); margin-bottom: 12px; } }
  .lease-card { background: var(--surface); border: 1px solid var(--line); padding: 14px; display: grid; gap: 8px; font-size: .88rem; & + & { margin-top: 10px; }
    &.paused { opacity: .6; border-style: dashed; } }
  .log { list-style: none; padding: 0; display: grid;
    li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; align-items: baseline;
      @media (max-width: 640px) { grid-template-columns: 1fr; gap: 2px; } }
    .tool { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; }
    .t-Stripe { color: #635bff; } .t-Zapier { color: #ff4f00; } .t-Sharetribe { color: #2f6fd6; } .t-Dropbox { color: #0061fe; } .t-Admin { color: var(--olive); } .t-Framer { color: var(--ink); }
  }
  .thread { display: grid; gap: 10px; max-height: 320px; overflow: auto; padding: 4px;
    .msg { max-width: 82%; padding: 10px 14px; background: var(--bg-2); font-size: .92rem; }
    .msg.me { justify-self: end; background: var(--solid); color: var(--solid-ink); } }
}

@layer utilities {
  .center { text-align: center; }
  .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 48px; }
  .flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .between { justify-content: space-between; }
  .justify-center { justify-content: center; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .small { font-size: .85rem; }
  .on-dark { color: #fff; }
}

/* Scroll-driven reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } }
    .parallax > img { animation: parallax linear both; animation-timeline: view(); }
    @keyframes parallax { from { translate: 0 -6%; scale: 1.14; } to { translate: 0 6%; scale: 1.14; } }
  }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { *, ::view-transition-group(*) { animation: none !important; transition: none !important; } }

/* Accounts: login / sign-up split screen and the header account menu */
@layer pages {
  .auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - var(--header-h));
    .auth-media { position: relative; overflow: hidden; img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } }
    .auth-body { display: grid; place-items: center; padding: clamp(32px, 6vw, 80px) var(--gutter); }
    .auth-card { width: min(100%, 460px); }
    h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
    .lead { font-size: 1.08rem; }
    @media (max-width: 860px) { grid-template-columns: 1fr; .auth-media { height: 220px; } }
  }
  .demo-box { padding: 20px; background: var(--bg-2); border: 1px dashed var(--line); }
}
@layer components {
  .account-btn { display: grid; place-items: center; border-radius: 50%; padding: 2px; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: border-color .2s;
    &:hover { border-color: currentColor; }
    .avatar { background: var(--sand); color: var(--ink); } }
  .menu { position: fixed; inset: auto; top: calc(var(--header-h) - 8px); right: var(--gutter); margin: 0; min-width: 240px; padding: 8px 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
    &:popover-open { display: grid; animation: pop .25s var(--ease); }
    .menu-head { display: grid; padding: 12px 20px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
    a, button { text-align: left; padding: 11px 20px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
    a:hover, button:hover { background: var(--bg-2); }
    button { border-top: 1px solid var(--line); margin-top: 6px; color: var(--ink-2); } }
  @media (max-width: 1080px) { .login-btn { display: none !important; } }
}


/* ======================================================================
   SEFER — the Home Connect guide (#/guides), web edition
   Gallery-like editorial page: white space, a large grotesk, serif reading text,
   hairline rules and one photo frame used everywhere (one column of a four-column
   grid, 4:5). The printed edition will get its own stylesheet later.
   ====================================================================== */
@layer pages {
  .sf { container-type: inline-size; color-scheme: light;
    --ink: #121212; --ink-2: #6e6e6e; --line: #e7e6e3; --accent: #9f3d22;
    --grot: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
    --gap: clamp(16px, 1.8vw, 28px);
    --wrapw: min(100cqw - 2 * var(--gutter), var(--max));
    --off: calc((100cqw - var(--wrapw)) / 2);
    --col4: calc((var(--wrapw) - 3 * var(--gap)) / 4);
    background: #fff; color: var(--ink); font-family: var(--grot); }
  .sf .geez { font-family: var(--geez); }
  .sf-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .sf-serif { font-family: var(--serif); }
  .sf-small { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
  .sf-mark { font-size: 1.35em; font-weight: 700; line-height: 1; vertical-align: -.1em; margin-right: .35em; }
  .sf-sub { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-2); margin-top: 10px; }
  .sf-am { font-size: 13px; color: var(--ink-2); margin-top: 8px; .geez { color: var(--ink); margin-right: 6px; } }

  /* The one photo frame */
  .sf-frame { margin: 0; }
  .sf-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line);
    img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); } }
  .sf-frame:hover img { scale: 1.035; }
  .sf-frame figcaption { margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--ink-2);
    span { color: var(--ink); font-weight: 600; margin-right: 10px; font-variant-numeric: tabular-nums; } }
  .sf-grid4 { display: grid; grid-template-columns: repeat(4, var(--col4)); gap: var(--gap); }
  .sf-index figcaption { color: var(--ink); font-size: 13px; font-weight: 500; }
  .sf-index:hover figcaption { text-decoration: underline; text-underline-offset: 3px; }

  /* Masthead */
  .sf-mast { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
  .sf-mast-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
  .sf-mast h1 { font-family: var(--grot); font-weight: 500; font-size: clamp(3.6rem, 13.5cqw, 14rem); letter-spacing: -.055em; line-height: .88; margin: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px) -.04em; }
  .sf-mast-intro { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
  .sf-lead { font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.4; max-width: 34ch; }
  .sf-mast-intro .sf-small { justify-self: end; max-width: 30ch; text-align: right; }

  /* Section bar */
  .sf-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgb(255 255 255 / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block: 1px solid var(--line);
    .wrap { display: flex; gap: clamp(18px, 2.4vw, 34px); overflow-x: auto; scrollbar-width: none; &::-webkit-scrollbar { display: none; } }
    a { flex: none; padding: 15px 0 13px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
      span { margin-right: 7px; font-variant-numeric: tabular-nums; opacity: .55; }
      &:hover { color: var(--ink); }
      &.on { color: var(--ink); border-color: var(--ink); span { opacity: 1; color: var(--accent); } } } }

  /* Editor's letter */
  .sf-letter { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); padding-block: clamp(80px, 10vw, 150px); }
  .sf-letter-body { p.sf-serif { font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.45; max-width: 36ch; & + p { margin-top: 1em; } } }
  .sf-sign { margin-top: 28px; font-family: var(--serif); font-style: italic; color: var(--ink-2); &::before { content: '— '; } }

  /* Sections */
  .sf-section { padding-top: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 46px); }
  .sf-head { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
  .sf-num { font-size: 12px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
  .sf-head h2 { font-family: var(--grot); font-weight: 500; font-size: clamp(3rem, 7.4cqw, 7.4rem); letter-spacing: -.045em; line-height: .92; margin-left: -.03em; }
  .sf-intro { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; max-width: 44ch; }

  /* Photo strip: same frame, scrolls sideways, aligned to the page grid */
  .sf-strip { --col: var(--col4);
    .track { grid-auto-columns: var(--col); gap: var(--gap); padding-inline: var(--off); scroll-padding-inline: var(--off); }
    .arrow { top: calc(var(--col4) * 0.625); translate: 0 -50%; }
    .arrow.prev { left: calc(var(--off) - 24px); } .arrow.next { right: calc(var(--off) - 24px); } }

  /* The list */
  .sf-recs { list-style: none; padding: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ink);
    li { display: grid; grid-template-columns: 56px 4fr 7fr; gap: var(--gap); padding-block: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); } }
  .sf-rec-n { font-size: 12px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: .55em; }
  .sf-rec-name { h3 { font-family: var(--grot); font-weight: 500; font-size: clamp(1.4rem, 2.1vw, 1.9rem); letter-spacing: -.025em; line-height: 1.1; }
    .geez { font-size: 14px; color: var(--ink-2); margin-top: 6px; } .sf-label { color: var(--ink-2); margin-top: 12px; } }
  .sf-rec-body { > p { font-size: 1.15rem; line-height: 1.6; max-width: 52ch; }
    dl { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
    dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
    dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; } dd { margin: 0; color: var(--ink-2); } }
  .sf-quote { margin: clamp(72px, 9vw, 130px) auto 0; padding-bottom: clamp(80px, 9vw, 140px); max-width: 920px; text-align: center;
    p { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.18; letter-spacing: -.01em; }
    cite { display: block; margin-top: 20px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); } }
  .sf-section:not(:has(.sf-quote)) { padding-bottom: clamp(80px, 9vw, 140px); }

  /* Neighbourhoods */
  .sf-hoods > div { display: grid; align-content: start; gap: 10px;
    h3 { font-family: var(--grot); font-weight: 500; font-size: 1.6rem; letter-spacing: -.025em; margin-top: 14px; }
    .sf-sub { margin-top: 0; font-size: 1.05rem; } }
  .sf-facts { border-top: 1px solid var(--line); margin-top: 6px; font-size: 13px;
    > div { padding: 9px 0; border-bottom: 1px solid var(--line); } dt { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; } dd { margin: 3px 0 0; color: var(--ink-2); } }
  .sf-links { display: flex; gap: 18px; font-size: 13px; a { text-decoration: underline; text-underline-offset: 3px; } }

  /* Insider guide: the one dark section */
  .sf-insider { --ink: #f3f2ef; --ink-2: #a2a19d; --line: #2c2b29; background: #131312; color: var(--ink); border-top: 0; }
  .sf-day { display: grid; grid-template-columns: var(--col4) 1fr; gap: var(--gap) calc(var(--gap) * 2); align-items: start; }
  .sf-day-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 44px) var(--gap);
    li { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
    h3 { font-family: var(--grot); font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; } .sf-area { color: var(--ink-2); } }

  /* Field notes */
  .sf-note { display: grid; gap: 8px; align-content: start;
    h3 { font-family: var(--grot); font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; margin-top: 10px; }
    &:hover h3 { text-decoration: underline; text-underline-offset: 4px; } }

  /* Essentials */
  .sf-ess { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--gap) * 3); align-items: start; }
  .sf-phrases { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 15px;
    td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; } td:first-child { font-size: 1.25rem; width: 36%; } td:nth-child(2) { width: 28%; } td:last-child { color: var(--ink-2); } }
  .sf-cal { display: grid; gap: 10px; border-top: 1px solid var(--ink); padding-top: 16px; > .sf-label:not(:first-child) { margin-top: 18px; } }
  .sf-today { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; .geez { display: block; font-size: 1rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin-top: 8px; } }
  .sf-clock { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: 14px 0; border-block: 1px solid var(--line); margin-block: 8px; p:last-child { font-size: 1.25rem; font-weight: 500; margin-top: 4px; } }
  .sf-months { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); font-size: 14px;
    li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); span:last-child { color: var(--ink-2); } } .now { font-weight: 600; color: var(--accent); span:last-child { color: var(--accent); } } }
  .sf-holidays { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2);
    b { color: var(--ink); font-weight: 600; } span { color: var(--ink); margin-right: 4px; } }

  /* Closing */
  .sf-end { display: grid; justify-items: start; gap: 28px; padding-block: clamp(90px, 10vw, 150px); border-top: 1px solid var(--line);
    .sf-mark { font-size: 3rem; margin: 0; }
    p { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.4; max-width: 34ch; } }
  .sf-section + .sf-end { margin-top: clamp(80px, 9vw, 140px); }

  @media (max-width: 900px) {
    .sf { --col4: calc((var(--wrapw) - var(--gap)) / 2); }
    .sf-head, .sf-mast-intro, .sf-letter, .sf-ess, .sf-day { grid-template-columns: 1fr; }
    .sf-mast-intro .sf-small { justify-self: start; text-align: left; }
    .sf-grid4 { grid-template-columns: repeat(2, var(--col4)); }
    .sf-recs li { grid-template-columns: 36px 1fr; .sf-rec-body { grid-column: 2; } }
    .sf-day-photo { max-width: var(--col4); }
  }
  @media (max-width: 560px) {
    .sf { --col4: var(--wrapw); }
    .sf-grid4, .sf-day-list { grid-template-columns: 1fr; }
    .sf-rec-body dl > div { grid-template-columns: 1fr; gap: 2px; }
    .sf-months { grid-template-columns: 1fr; }
  }
}

/* The wall behind the writing: plant shadow and window light, as in the homes themselves */
@layer pages {
  .cl-intro, .hl-intro, .band-blush, .cl-closing { position: relative; isolation: isolate; overflow: clip;
    &::before, &::after { content: ''; position: absolute; inset: -24px; z-index: -1; pointer-events: none; filter: blur(9px); -webkit-mask: var(--m) right center / auto 118% no-repeat; mask: var(--m) right center / auto 118% no-repeat; }
    &::before { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 640'%3E%3Cpath d='M911 407L934 366L954 328L902 372L957 316L964 288L963 266L886 330L962 258L959 238L946 226L861 295L941 221L928 208L907 202L831 264L899 199L879 192L852 190L796 237L842 189L818 185L788 185L758 212L778 185L750 184L721 184L719 188L719 188L714 189L707 217L701 244L733 232L699 255L692 283L689 308L748 274L688 318L683 345L686 365L766 315L687 374L687 396L697 411L788 352L700 417L709 433L728 441L816 384L735 444L756 451L786 451L853 410L798 450L839 440L884 428Z M830 316L823 279L816 246L806 299L812 237L802 216L790 203L775 282L785 199L772 188L758 187L742 273L752 187L738 185L722 193L707 270L716 195L700 201L682 214L672 272L676 218L659 228L641 244L636 276L634 249L617 262L599 277L600 281L600 281L597 284L607 305L618 324L631 301L622 332L632 353L643 370L662 319L648 376L658 395L671 407L694 335L675 411L687 425L701 429L726 346L706 431L720 436L736 432L760 351L742 430L758 423L776 408L796 348L783 401L803 374L824 343Z M995 349L1032 339L1066 329L1010 323L1075 324L1096 312L1109 299L1026 289L1113 294L1123 280L1123 265L1033 254L1123 259L1124 244L1115 228L1033 218L1112 221L1105 205L1090 188L1029 182L1085 182L1073 165L1056 147L1022 145L1050 141L1035 123L1018 106L1014 107L1014 107L1011 105L990 117L970 129L996 141L963 134L941 146L925 159L979 175L919 164L900 176L889 190L965 209L884 195L871 208L868 223L956 243L866 229L862 243L868 259L953 279L870 265L879 282L895 299L959 316L903 306L933 325L966 345Z M753 461L732 441L711 424L730 462L704 420L688 411L674 409L702 466L669 408L656 408L646 414L677 476L643 417L633 422L626 435L654 491L623 439L616 450L611 467L632 508L609 473L603 487L599 505L612 528L597 512L593 529L589 547L591 549L591 549L591 552L607 560L623 567L620 546L630 570L646 579L661 584L649 543L667 586L683 593L696 594L676 538L701 595L715 598L726 594L702 530L730 593L741 590L749 579L726 517L752 575L758 563L763 545L747 498L764 537L764 510L763 481Z'/%3E%3Cpath d='M900 640L900 420M900 640C880 520 850 420 830 330M900 640C930 540 960 450 980 350' fill='none' stroke='%23000' stroke-width='7'/%3E%3C/svg%3E"); background: color-mix(in srgb, var(--ink) 4%, transparent); }
    &::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 640'%3E%3Cpath d='M120 40L300 40L230 640L50 640ZM340 40L520 40L450 640L270 640Z'/%3E%3C/svg%3E"); background: color-mix(in srgb, #fff 34%, transparent); filter: blur(5px); } }

  /* Photos hung like the framed prints on the walls */
  .hm-letter-photo .hl-img, .hw-photo .hl-img { padding: clamp(12px, 1.5vw, 20px); background: #fffdf9; border: 5px solid #2a2519; box-shadow: 0 14px 30px -18px rgb(42 37 25 / .55); }

  .hl-body > * { min-width: 0; }
}

/* Design your home: one numbered step per item, a photo from our homes and a choice of options */
@layer pages {
  .dz-head { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
  .dz-photo { aspect-ratio: 1; overflow: hidden; background: var(--sand); img { width: 100%; height: 100%; object-fit: cover; } }
  .dz-word { display: grid; place-items: center; font-family: var(--geez); font-size: 2.4rem; color: var(--ink-2); }
  .dz-note { font-family: var(--serif); font-weight: 300; font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); }
  .dz-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
  .dz-option { position: relative; cursor: pointer;
    input { position: absolute; opacity: 0; pointer-events: none; }
    span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .2s, background .2s; }
    b { font-weight: 400; font-size: .95rem; }
    small { font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
    &:hover span { border-color: var(--ink); }
    input:checked + span { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink); }
    input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; } }
  .dz-summary { padding-block: 26px 4px; border-top: 1px solid var(--line);
    ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
    li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; font-size: .95rem; span { color: var(--ink-2); } }
    @media (max-width: 760px) { li { grid-template-columns: 1fr; gap: 0; } } }
  @media (max-width: 560px) { .dz-head { grid-template-columns: 84px 1fr; } }
}

@layer pages {
  .tiles:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr);
    @media (max-width: 900px) { grid-template-columns: repeat(2, 1fr); }
    @media (max-width: 760px) { grid-template-columns: 1fr; } }
}

/* Interiors (#/interiors): what earns a place, every room in the collection, and finishing a home */
@layer pages {
  .ix-look { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px);
    li { display: grid; gap: 8px; align-content: start; }
    h3 { font-size: 1.3rem; font-style: italic; }
    p:not(.ix-n) { font-family: var(--serif); font-weight: 300; color: var(--ink-2); line-height: 1.55; }
    @media (max-width: 1000px) { grid-template-columns: repeat(3, 1fr); }
    @media (max-width: 640px) { grid-template-columns: repeat(2, 1fr); } }
  .ix-look-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); margin-bottom: 8px; img { width: 100%; height: 100%; object-fit: cover; } }
  .ix-n { font-size: .72rem; letter-spacing: .18em; color: var(--accent); }
  .ix-chips { justify-content: center; margin-bottom: clamp(24px, 3vw, 40px); }
  .ix-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(18px, 2vw, 28px) clamp(10px, 1.4vw, 18px); padding-bottom: clamp(56px, 7vw, 104px); }
  .ix-room { display: grid; gap: 10px; align-content: start;
    &:hover img { scale: 1.04; } }
  .ix-room-photo { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand);
    img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 1.2s var(--ease); } }
  .ix-room-cap { display: flex; justify-content: space-between; gap: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
    b { font-weight: 400; color: var(--ink); } }
  @media (max-width: 600px) {
    .ix-rooms { grid-template-columns: 1fr 1fr; }
    .ix-room-cap { flex-direction: column; gap: 2px; font-size: .64rem; letter-spacing: .1em; } }
  .ix-finish { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
    h2 { margin: 12px 0 16px; }
    @media (max-width: 760px) { grid-template-columns: 1fr; } }
  .ix-items { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
    li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.08rem; }
    @media (max-width: 420px) { grid-template-columns: 1fr; } }

  /* The curator's note on each home: a few words on the interior, and its palette taken from the photos */
  .hl-palette { display: flex; gap: 10px; margin-top: 18px; padding: 0; list-style: none;
    li { display: grid; gap: 6px; justify-items: center; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
    span { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); } }
}
