/* Generated from index.html by tools/build_cities.py. Edit index.html, then rebuild. */
:root {
      --night: #0C1118;
      --night-raised: #141C26;
      --harbor: #2A3D52;
      --brass: #C4A574;
      --brass-soft: #8E7A57;
      --paper: #F8F3E9;
      --paper-deep: #EDE5D5;
      --ink: #26241F;
      --graphite: #6B665C;
      --rule-paper: #D8CDB9;

      --bg: var(--night);
      --bg-raised: var(--night-raised);
      --text: #E9E4D8;
      --text-soft: #A7A398;
      --rule: #243243;
      --accent: var(--brass);
      --button-bg: var(--brass);
      --button-text: var(--night);

      --display: Georgia, "Times New Roman", serif;
      --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

      --gutter: clamp(16px, 4vw, 48px);
      --max: 1240px;
      --ease: cubic-bezier(.2, .7, .2, 1);
      color-scheme: dark;
    }

    html[data-style="paper"] {
      --bg: var(--paper);
      --bg-raised: var(--paper-deep);
      --text: var(--ink);
      --text-soft: var(--graphite);
      --rule: var(--rule-paper);
      --accent: #7A6441;
      --button-bg: var(--ink);
      --button-text: var(--paper);
      color-scheme: light;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
    ::-webkit-scrollbar { width: 12px; height: 12px; }
    ::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--rule); }
    ::-webkit-scrollbar-thumb { background: var(--brass-soft); border-radius: 999px; border: 3px solid var(--bg); }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
    ::-webkit-scrollbar-corner { background: var(--bg); }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font: 400 17px/1.6 var(--body);
      font-feature-settings: "tnum" 0;
      transition: background-color .6s var(--ease), color .6s var(--ease);
      overflow-x: hidden;
    }

    img { display: block; max-width: 100%; height: auto; }
    a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    a:hover { color: var(--accent); }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
    button { font: inherit; color: inherit; cursor: pointer; }
    .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
    .skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--button-bg); color: var(--button-text); padding: 10px 16px; }
    .skip:focus { left: 8px; }
    .num { font-variant-numeric: tabular-nums; }

    h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
    h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; max-width: 18ch; text-wrap: balance; }
    h3 { font-size: 1.35rem; line-height: 1.25; }
    p { margin: 0; }
    .lede { color: var(--text-soft); max-width: 58ch; }

    /* Header */
    .site-header {
      position: sticky; top: 0; z-index: 40;
      background: color-mix(in srgb, var(--bg) 88%, transparent);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--rule);
      transition: background-color .6s var(--ease), border-color .6s var(--ease);
    }
    .header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
    .wordmark { font-family: var(--display); font-size: 1.35rem; text-decoration: none; letter-spacing: .02em; margin-right: auto; }
    .nav { display: flex; gap: 28px; font-size: .95rem; }
    .nav a { text-decoration: none; color: var(--text-soft); }
    .nav a:hover { color: var(--text); }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      min-height: 48px; padding: 0 22px;
      background: var(--button-bg); color: var(--button-text);
      border: 1px solid var(--button-bg); border-radius: 999px;
      font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
      transition: transform .2s var(--ease), background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
    }
    .btn:hover { color: var(--button-text); transform: translateY(-1px); }
    .btn:active { transform: translateY(0); }
    .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
    .btn.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
    .btn.ghost:hover { border-color: var(--text-soft); color: var(--text); }
    .btn.small { min-height: 40px; padding: 0 18px; font-size: .92rem; }

    /* Style switch: the page's signature control */
    .style-switch { display: inline-flex; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; gap: 2px; background: var(--bg); transition: border-color .6s var(--ease), background-color .6s var(--ease); }
    .style-switch button {
      border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; min-height: 38px;
      font-size: .92rem; font-weight: 500; color: var(--text-soft);
      display: inline-flex; align-items: center; gap: 8px;
    }
    .style-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
    .swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor; flex: none; }
    .swatch.midnight { background: var(--night); }
    .swatch.paper { background: var(--paper); }
    .swatch.both { background: linear-gradient(90deg, var(--night) 50%, var(--paper) 50%); }

    /* Hero */
    .hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
    .hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 13ch; }
    .hero .lede { margin-top: 24px; font-size: 1.12rem; }
    .hero-buy { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
    .hero-price { color: var(--text-soft); font-size: .95rem; }
    .hero-price strong { color: var(--text); font-weight: 600; }
    .hero-sizes { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); }
    .hero-sizes ul { display: flex; align-items: flex-end; gap: 28px; list-style: none; margin: 0; padding: 0; }
    .hero-sizes li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
    .hs-print { display: block; border: 1px solid var(--accent); border-radius: 1px; }
    .hero-sizes li span:last-child { font-family: var(--display); font-size: 1.05rem; line-height: 1; white-space: nowrap; }
    .hero-sizes figcaption { margin-top: 12px; color: var(--text-soft); font-size: .88rem; max-width: 52ch; }

    .frame-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
    /* ============================================================
       Frame system. One component everywhere, built from real
       proportions: print (--aw x --ah in) + 1 in moulding on each side.
       The print fills the frame edge to edge (no mat).
       ============================================================ */
    /* One neutral gallery wall for every mockup: suits black and oak frames alike */
    :root { --aw: 12; --ah: 18; --wall: #E2DDD4; --wall-light: rgba(255,252,246,.75); }
    .frame {
      --tw: calc(var(--aw) + 2);
      --th: calc(var(--ah) + 2);
      --u: calc(100cqw / var(--tw));
      --m: calc(1 * var(--u));            /* moulding width: 1 in */
      /* black-stained wood; light comes from the top left */
      --rail-t: #34312E; --rail-l: #2D2A27; --rail-r: #242220; --rail-b: #201E1C;
      --grain-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3000' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .55' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .58 0 0 0 0 .52 0 0 0 .28 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
      --grain-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='3000'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .012' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .58 0 0 0 0 .52 0 0 0 .28 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
      --hi: .16; --hi-soft: .05; --lo: .10; --lo-deep: .28;
      --lip: rgba(255,255,255,.16);
      background: var(--rail-r);   /* under the mitre joints, so no seam can show */
      container-type: inline-size;
      position: relative; width: 100%; isolation: isolate;
      aspect-ratio: var(--tw) / var(--th);
    }
    .frame.oak {
      --rail-t: #DCC199; --rail-l: #CDAE84; --rail-r: #AE8C61; --rail-b: #9A784D;
      --hi: .34; --hi-soft: .08; --lo: .14; --lo-deep: .42;
      --lip: rgba(255,255,255,.22);
      --grain-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3000' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .55' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
      --grain-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='3000'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .012' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    }
    /* Wall shadow: a tight contact shadow plus a soft spread, offset away from the light */
    .frame-shadow {
      position: absolute; inset: 0; z-index: -1; pointer-events: none;
      box-shadow:
        calc(.12 * var(--u)) calc(.22 * var(--u)) calc(.25 * var(--u)) rgba(0,0,0,.38),
        calc(.5 * var(--u)) calc(1.1 * var(--u)) calc(1.8 * var(--u)) rgba(0,0,0,.26),
        calc(1 * var(--u)) calc(2.4 * var(--u)) calc(4.5 * var(--u)) rgba(0,0,0,.14);
    }
    /* Four rails, mitred at 45 degrees like a cut frame */
    .rail { position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; }
    .rail.t {
      clip-path: polygon(0 0, 100% 0, calc(100% - var(--m)) var(--m), var(--m) var(--m));
      background:
        linear-gradient(180deg, rgba(255,255,255,var(--hi)) 0, rgba(255,255,255,var(--hi-soft)) calc(.08 * var(--m)), transparent calc(.45 * var(--m)), rgba(0,0,0,var(--lo)) calc(.82 * var(--m)), rgba(0,0,0,var(--lo-deep)) var(--m)),
        var(--grain-h), var(--rail-t);
    }
    .rail.b {
      clip-path: polygon(var(--m) calc(100% - var(--m)), calc(100% - var(--m)) calc(100% - var(--m)), 100% 100%, 0 100%);
      background:
        linear-gradient(0deg, rgba(255,255,255,calc(var(--hi) * .4)) 0, rgba(255,255,255,calc(var(--hi-soft) * .4)) calc(.08 * var(--m)), transparent calc(.45 * var(--m)), rgba(0,0,0,var(--lo)) calc(.82 * var(--m)), rgba(0,0,0,calc(var(--lo-deep) * .75)) var(--m)),
        var(--grain-h), var(--rail-b);
    }
    .rail.l {
      clip-path: polygon(0 0, var(--m) var(--m), var(--m) calc(100% - var(--m)), 0 100%);
      background:
        linear-gradient(90deg, rgba(255,255,255,calc(var(--hi) * .8)) 0, rgba(255,255,255,calc(var(--hi-soft) * .8)) calc(.08 * var(--m)), transparent calc(.45 * var(--m)), rgba(0,0,0,var(--lo)) calc(.82 * var(--m)), rgba(0,0,0,calc(var(--lo-deep) * .95)) var(--m)),
        var(--grain-v), var(--rail-l);
    }
    .rail.r {
      clip-path: polygon(100% 0, 100% 100%, calc(100% - var(--m)) calc(100% - var(--m)), calc(100% - var(--m)) var(--m));
      background:
        linear-gradient(270deg, rgba(255,255,255,calc(var(--hi) * .45)) 0, rgba(255,255,255,calc(var(--hi-soft) * .45)) calc(.08 * var(--m)), transparent calc(.45 * var(--m)), rgba(0,0,0,var(--lo)) calc(.82 * var(--m)), rgba(0,0,0,calc(var(--lo-deep) * .8)) var(--m)),
        var(--grain-v), var(--rail-r);
    }
    .frame-art {
      position: absolute; inset: var(--m);
      overflow: hidden; background: #E9E4D8;
    }
    .frame-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
    /* Rebate shadow: the moulding's inner lip shades the top and left of the print */
    .frame-art::before {
      content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
      box-shadow:
        inset 0 0 0 max(1px, calc(.035 * var(--u))) var(--lip),
        inset calc(.10 * var(--u)) calc(.16 * var(--u)) calc(.22 * var(--u)) rgba(0,0,0,.45);
    }
    /* Glass: a faint diagonal reflection, strongest near the lit corner */
    .frame-art::after {
      content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
      background:
        linear-gradient(118deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.05) 22%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 64%, rgba(255,255,255,.035) 74%, rgba(255,255,255,0) 86%);
    }
    .frame-art img.is-hidden { opacity: 0; }

    /* A piece of wall the frame hangs on */
    .wall {
      position: relative; background-color: var(--wall);
      background-image:
        radial-gradient(110% 90% at 20% 0%, var(--wall-light), transparent 62%),
        radial-gradient(130% 110% at 50% 115%, rgba(0,0,0,.18), transparent 55%);
      transition: background-color .6s var(--ease);
    }
    .wall::after {
      content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .28; mix-blend-mode: multiply;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* Hero */
    .hero-wall { width: min(100%, 460px); padding: 11% 12% 13%; border-radius: 4px; }
    .hero-wall .frame { --aw: 16; --ah: 24; }

    /* Room: a 100 in wide wall drawn to scale, frame only */
    .room-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 24px; }
    .room-controls label { font-size: .92rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: 10px; }
    .room-controls select {
      font: inherit; color: var(--text); background-color: var(--bg); border: 1px solid var(--rule);
      border-radius: 999px; min-height: 46px; padding: 0 38px 0 16px; appearance: none; -webkit-appearance: none;
      background-image: linear-gradient(45deg, transparent 50%, var(--text-soft) 50%), linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
      background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
    }
    .cselect { position: relative; display: inline-block; }
    .cselect-native { display: none; }
    .cselect-btn {
      position: relative; min-width: 210px; min-height: 46px; padding: 0 44px 0 18px; text-align: left; cursor: pointer;
      font: inherit; font-size: .98rem; color: var(--text); background-color: var(--bg); border: 1px solid var(--rule); border-radius: 999px;
      transition: border-color .25s var(--ease), background-color .6s var(--ease);
    }
    .cselect-btn::after {
      content: ""; position: absolute; right: 19px; top: 50%; width: 7px; height: 7px;
      border-right: 1.5px solid var(--text-soft); border-bottom: 1.5px solid var(--text-soft);
      transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease);
    }
    .cselect-btn[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
    .cselect-btn:hover, .cselect-btn[aria-expanded="true"] { border-color: var(--text-soft); }
    .cselect-btn:focus-visible, .cselect-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .cselect-list {
      position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); min-width: 100%; max-height: 288px; overflow-y: auto;
      margin: 0; padding: 6px; list-style: none; background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 16px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, .3); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; overscroll-behavior: contain;
    }
    .cselect-list.up { top: auto; bottom: calc(100% + 8px); }
    .cselect-list[hidden] { display: none; }
    .cselect-list li { padding: 9px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; color: var(--text); font-size: .96rem; }
    .cselect-list li.is-active { background: color-mix(in srgb, var(--text) 10%, transparent); }
    .cselect-list li[aria-selected="true"] { color: var(--accent); font-weight: 600; }
    .room { container-type: inline-size; border-radius: 6px; overflow: hidden; }
    .scene { --wu: calc(100cqw / 72); aspect-ratio: 72 / 46; }
    .room-art {
      --aw: 16; --ah: 24;
      position: absolute; left: 50%; top: 47%; z-index: 1;
      width: calc((var(--aw) + 2) * var(--wu)); height: calc((var(--ah) + 2) * var(--wu));
      transform: translate(-50%, -50%);
      transition: width .55s var(--ease), height .55s var(--ease);
    }
    .room-art .frame { height: 100%; aspect-ratio: auto; }
    .dim { position: absolute; color: color-mix(in srgb, var(--text) 70%, var(--wall)); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
    .dim { color: #5E574B; }
    .dim::before { content: ""; position: absolute; border-color: currentColor; opacity: .55; }
    .dim-w { left: 0; right: 0; top: calc(100% + max(10px, 1.6 * var(--wu))); text-align: center; }
    .dim-w::before { left: 0; right: 0; top: -6px; height: 5px; border-style: solid; border-width: 0 1px 1px; }
    .dim-h { top: 0; bottom: 0; left: calc(100% + max(10px, 1.6 * var(--wu))); display: flex; align-items: center; padding-left: 10px; }
    .dim-h::before { top: 0; bottom: 0; left: 0; width: 5px; border-style: solid; border-width: 1px 0 1px 1px; }
    .room-caption { margin-top: 14px; color: var(--text-soft); font-size: .92rem; font-variant-numeric: tabular-nums; }
    .room-caption strong { color: var(--text); font-weight: 500; }

    /* Gallery: each city framed on a piece of wall */
    .poster-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
    .poster .wall { padding: 12% 14% 14%; border-radius: 3px; }

    /* Lightbox */
    dialog.lightbox {
      border: 0; padding: 0; background: transparent; color: var(--text);
      max-width: min(94vw, 1100px); width: fit-content; max-height: 94vh; overflow: visible;
    }
    dialog.lightbox::backdrop { background: rgba(6, 9, 13, .86); backdrop-filter: blur(4px); }
    html[data-style="paper"] dialog.lightbox::backdrop { background: rgba(38, 36, 31, .78); }
    dialog.lightbox[open] { animation: lb-in .28s var(--ease); }
    @keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
    .lb-body { display: grid; grid-template-columns: minmax(0, auto) minmax(220px, 280px); gap: 32px; align-items: center; background: var(--bg); border-radius: 10px; padding: 20px; }
    .lb-wall { width: calc(min(78vh, 820px) * .72); padding: 8% 9% 10%; border-radius: 4px; }
    .lb-wall .frame { --aw: 16; --ah: 24; }
    .lb-info h3 { font-size: 2rem; }
    .lb-info p { color: var(--text-soft); margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
    .lb-nav { display: flex; gap: 10px; margin-top: 24px; }
    .icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: var(--bg); color: var(--text); display: inline-grid; place-items: center; font-size: 1.15rem; }
    .icon-btn:hover { border-color: var(--text-soft); }
    .lb-close { position: absolute; top: -14px; right: -14px; z-index: 2; }
    .frame-caption { font-size: .88rem; color: var(--text-soft); text-align: center; }

    /* Sections */
    .section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--rule); transition: border-color .6s var(--ease); }
    .section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
    .section-head .lede { margin-top: 16px; }

    /* Gallery */
    .gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px) clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
    .poster { margin: 0; }
    .poster figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
    .poster figcaption strong { font-weight: 500; font-size: .98rem; }
    .poster figcaption a, .city-list a { text-decoration: none; }
    .poster figcaption a:hover, .city-list a:hover { text-decoration: underline; }
    .poster figcaption span { color: var(--text-soft); font-size: .8rem; font-variant-numeric: tabular-nums; }


    /* View all: link to the full city index */
    .view-all { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
    .view-all .btn { gap: 10px; min-width: 220px; justify-content: center; min-height: 48px; }
    .view-all .chev { transition: transform .3s var(--ease); }
    .view-all .btn:hover .chev { transform: translateX(4px); }
    .view-all-count { margin: 0; color: var(--text-soft); font-size: .88rem; text-align: center; }
    .gallery li { animation: rise .5s var(--ease) both; }
    .gallery li:nth-child(5n+2) { animation-delay: 40ms; } .gallery li:nth-child(5n+3) { animation-delay: 80ms; }
    .gallery li:nth-child(5n+4) { animation-delay: 120ms; } .gallery li:nth-child(5n) { animation-delay: 160ms; }
    @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
    .all-cities { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 24px 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
    .all-cities h3 { font-size: 1.5rem; }
    .all-cities p.note { color: var(--text-soft); margin-top: 10px; font-size: .95rem; }
    .city-list { columns: 4 10rem; column-gap: 32px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
    .city-list li { padding: 3px 0; break-inside: avoid; color: var(--text-soft); }
    .city-list li.shown { color: var(--text); }

    /* Files */
    .files-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
    .size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
    .size-table caption { text-align: left; color: var(--text-soft); font-size: .92rem; padding-bottom: 14px; }
    .size-table th, .size-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
    .size-table thead th { color: var(--text-soft); font-size: .85rem; font-weight: 500; }
    .size-table td:first-child { font-family: var(--display); font-size: 1.25rem; white-space: nowrap; }
    .size-table td:nth-child(2) { white-space: nowrap; }
    .size-scale { display: inline-block; vertical-align: middle; border: 1px solid var(--accent); margin-right: 14px; border-radius: 1px; }
    .tree {
      margin: 0; padding: 22px 24px; background: var(--bg-raised); border-radius: 6px;
      font: 400 .84rem/1.75 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
      color: var(--text-soft); overflow-x: auto; white-space: pre; transition: background-color .6s var(--ease);
    }
    .tree b { color: var(--text); font-weight: 400; }
    .files-notes { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
    .files-notes li { padding-left: 22px; position: relative; color: var(--text-soft); }
    .files-notes li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
    .files-notes strong { color: var(--text); font-weight: 500; }

    /* Licenses */
    .packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
    .pack { border: 1px solid var(--rule); border-radius: 10px; padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 18px; transition: border-color .6s var(--ease); }
    .pack.featured { background: var(--bg-raised); }
    .pack-cover { border-radius: 4px; padding: 12% 16% 14%; display: grid; gap: 8%; }
    .pack-cover.two { grid-template-columns: 1fr 1fr; padding: 12% 10% 14%; }
    .pack-cover .frame { --aw: 12; --ah: 18; }
    .pack-badge { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
    .pack h3 { font-size: 1.6rem; }
    .pack p.about { color: var(--text-soft); }
    .pack-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--text-soft); }
    .pack-facts b { color: var(--text); font-weight: 500; }
    .pack-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
    .pack-buy .price { font-size: 2.2rem; }
    .pack-buy .btn { margin: 0; }
    .license-note { margin-top: clamp(24px, 3vw, 40px); }
    .licenses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
    .license { border: 1px solid var(--rule); border-radius: 10px; padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 22px; transition: border-color .6s var(--ease); }
    .license.featured { background: var(--bg-raised); }
    .license-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
    .price { font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; }
    .price small { font-family: var(--body); font-size: .9rem; color: var(--text-soft); margin-left: 6px; }
    .license p.for { color: var(--text-soft); }
    .rights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .97rem; }
    .rights li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
    .rights li::before { content: "✓"; color: var(--accent); }
    .rights li.no { color: var(--text-soft); }
    .rights li.no::before { content: "✕"; color: var(--text-soft); }
    .license .btn { align-self: flex-start; margin-top: auto; }
    .checkout-note { margin-top: 24px; color: var(--text-soft); font-size: .92rem; max-width: 70ch; }

    /* Delivery steps: a real sequence */
    .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
    .steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--rule); }
    .steps li::before { content: counter(step); font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--accent); display: block; margin-bottom: 18px; }
    .steps h3 { margin-bottom: 10px; }
    .steps p { color: var(--text-soft); }

    /* FAQ */
    .faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); }
    .faq-grid > div > p { margin-top: 16px; color: var(--text-soft); }
    details.qa { border-bottom: 1px solid var(--rule); }
    details.qa:first-child { border-top: 1px solid var(--rule); }
    details.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 1.08rem; font-weight: 500; }
    details.qa summary::-webkit-details-marker { display: none; }
    details.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--text-soft); transition: transform .3s var(--ease); }
    details.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
    details.qa .answer { padding: 0 0 22px; color: var(--text-soft); max-width: 64ch; }

    /* Footer */
    .site-footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: .94rem; color: var(--text-soft); }
    .footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
    .footer-row .wordmark { color: var(--text); }
    .footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
    .footer-cities { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .9rem; }
    .footer-links a { text-decoration: none; }
    .policies { margin-top: 36px; display: grid; gap: 0; }
    details.policy { border-top: 1px solid var(--rule); }
    details.policy summary { cursor: pointer; padding: 14px 0; color: var(--text); }
    details.policy .policy-body { padding-bottom: 18px; display: grid; gap: 10px; max-width: 72ch; }
    details.policy strong { color: var(--text); font-weight: 500; }
    .legal { margin-top: 28px; font-size: .85rem; }

    /* Toast */
    .toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; max-width: min(92vw, 520px); padding: 14px 20px; background: var(--text); color: var(--bg); border-radius: 10px; font-size: .95rem; transition: opacity .3s var(--ease), transform .3s var(--ease); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); }
    .toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

    /* Mobile header bar */
    .mobile-buy { display: none; }

    @media (max-width: 760px) {
      .lb-body { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
      .lb-wall { width: min(100%, calc(58vh * .72)); margin: 0 auto; }
      .lb-info h3 { font-size: 1.5rem; }
      .lb-close { top: 8px; right: 8px; }
      .scene { --wu: calc(100cqw / 60); aspect-ratio: 60 / 58; }
    }
    @media (max-width: 1080px) {
      .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 900px) {
      .nav { display: none; }
      /* Stacked hero: copy, buy button, then the poster, then the size row, so the poster is on the first screen */
      .hero-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
      .hero-copy { display: contents; }
      .hero-grid .frame-stage { margin-top: 32px; }
      .hero-sizes { order: 1; margin-top: 32px; }
      .hero-wall { width: min(80vw, 380px); }
      .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .all-cities, .files-grid, .faq-grid { grid-template-columns: 1fr; }
      .licenses, .packs { grid-template-columns: 1fr; }
      .steps { grid-template-columns: 1fr; }
      .hero-sizes ul { gap: 18px; }
    }
    @media (max-width: 560px) {
      body { font-size: 16px; }
      .header-row .btn { display: none; }
      .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .gallery li:nth-child(15) { display: none; }
      .style-switch button { padding: 8px 12px; }
      .city-list { columns: 2; }
      .mobile-buy {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--rule);
        align-items: center; justify-content: space-between; gap: 12px;
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        transform: translateY(110%); transition: transform .35s var(--ease);
      }
      .mobile-buy.is-visible { transform: translateY(0); }
      .mobile-buy span { font-size: .9rem; color: var(--text-soft); }
      .mobile-buy span strong { color: var(--text); }
      .site-footer { padding-bottom: 96px; }
      .toast { bottom: 84px; }
    }

    /* ============================================================
       Mobile and performance pass
       ============================================================ */
    /* Solid header: text no longer shows through it while scrolling */
    .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .wordmark { padding: 8px 0; }
    .menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-weight: 500; font-size: .95rem; }
    .menu-btn[aria-expanded="true"] { background: var(--text); color: var(--bg); }
    .buy-short { display: none; }
    .files-grid > * { min-width: 0; }

    /* Thumbnail frames (gallery, related cities): one bordered box with real
       45-degree mitres instead of four clipped rails, no grain tiles, no noise
       overlay. Looks the same at this size and costs a fraction to paint. */
    .poster .rail.r, .poster .rail.b, .poster .rail.l,
    .related .rail.r, .related .rail.b, .related .rail.l { display: none; }
    .poster .rail.t, .related .rail.t {
      inset: 0; clip-path: none; background: none; box-sizing: border-box;
      border: solid var(--m);
      border-color: var(--rail-t) var(--rail-r) var(--rail-b) var(--rail-l);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
    }
    .poster .wall::after, .related .wall::after { display: none; }
    .poster .frame-shadow, .related .frame-shadow {
      box-shadow:
        calc(.12 * var(--u)) calc(.22 * var(--u)) calc(.25 * var(--u)) rgba(0,0,0,.38),
        calc(.5 * var(--u)) calc(1.1 * var(--u)) calc(1.8 * var(--u)) rgba(0,0,0,.26);
    }

    @media (max-width: 900px) {
      .menu-btn { display: inline-flex; align-items: center; }
      .nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0; padding: 4px var(--gutter) 12px;
        background: var(--bg); border-bottom: 1px solid var(--rule);
        box-shadow: 0 18px 30px rgba(0,0,0,.28);
      }
      .nav.is-open { display: flex; }
      .nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--rule); }
      .nav a:last-child { border-bottom: 0; }
      .header-row { gap: 12px; }
    }

    @media (max-width: 560px) {
      /* The hero button and the sticky bottom bar already carry the buy action; no third Buy in the header */
      .header-row .btn.buy-top { display: none; }
      .buy-long { display: none; }
      .buy-short { display: inline; }
      .mobile-buy { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }

      /* Size table becomes a list: nothing runs off the right edge */
      .size-table thead { display: none; }
      .size-table, .size-table tbody, .size-table tr, .size-table td { display: block; }
      .size-table caption { display: block; }
      .size-table tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
      .size-table td { border: 0; padding: 0; }
      .size-table td:first-child { font-size: 1.35rem; white-space: nowrap; }
      .size-table td:nth-child(2), .size-table td:nth-child(3) { color: var(--text-soft); font-size: .92rem; margin-top: 2px; }
      .tree { font-size: .7rem; padding: 16px; line-height: 1.7; }

      /* Bigger tap targets */
      .city-list { columns: 2; column-gap: 16px; }
      .city-list li { padding: 0; }
      .city-list a { display: inline-block; padding: 11px 0; }
      .poster figcaption a { display: inline-block; padding: 10px 0; }
      .style-switch button { min-height: 44px; }
      .footer-links { gap: 0 22px; }
      .footer-links a { display: inline-block; padding: 12px 0; }
      .scene { aspect-ratio: 60 / 54; }
    }
