/* Home page (user 2026-11-01): the first thing a visitor sees — pique interest, show the problem the library solves, and a
   glimpse of what is coming (Mood Board Generator, 3D Room Creator). Uses the app's tokens (--bg, --ink, --accent …). */
body.home .wrap, body.home .foot, body.home .tabs { display: none !important; }
#homeView { display: block; color: var(--ink); }
#homeView[hidden] { display: none; }
.hm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.hm-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hm-h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.01em; margin: 10px 0 14px; }
.hm-lead { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 0; }
.hm-sec { padding: 96px 0; }
.hm-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--sans); border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.hm-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
.hm-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.hm-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.hm-reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hm-hero { position: relative; min-height: calc(100vh - 78px); min-height: calc(100svh - 78px); display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; overflow: hidden; }
.hm-hero-text { position: relative; z-index: 2; padding: 64px 28px 64px max(28px, calc((100vw - 1320px) / 2 + 28px)); }
.hm-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 6.4vw, 96px); line-height: .96; letter-spacing: -.02em; margin: 18px 0 22px; }
.hm-hero h1 em { font-style: italic; color: var(--accent); }
.hm-hero .hm-lead { font-size: 17px; }
.hm-search { margin-top: 30px; display: flex; align-items: center; gap: 10px; max-width: 560px; height: 62px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px -30px rgba(40,30,20,.45); }
.hm-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px var(--sans); color: var(--ink); }
.hm-search button { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 14px var(--sans); cursor: pointer; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 580px; }
.hm-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.hm-chips button:hover { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.hm-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hm-stats { display: flex; gap: 34px; margin-top: 42px; }
.hm-stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
.hm-stats span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
/* the moving wall of surfaces */
.hm-mosaic { position: absolute; inset: -6% -4% -6% 0; left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform: rotate(-6deg); }
.hm-col { display: flex; flex-direction: column; gap: 14px; animation: hmDrift 70s linear infinite; }
.hm-col:nth-child(2) { animation-duration: 90s; animation-direction: reverse; margin-top: -120px; }
.hm-col:nth-child(3) { animation-duration: 78s; margin-top: -40px; }
.hm-col:nth-child(4) { animation-duration: 100s; animation-direction: reverse; margin-top: -200px; }
.hm-tile { aspect-ratio: 1 / 2; border-radius: 6px; background: var(--surface-2) center / cover no-repeat; box-shadow: 0 20px 40px -24px rgba(30,20,10,.55); flex: none; }
.hm-tile.sq { aspect-ratio: 1 / 1; }
@keyframes hmDrift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hm-hero::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 56%; background: linear-gradient(90deg, var(--bg) 82%, transparent); z-index: 1; pointer-events: none; }

/* ---------- categories + colours ---------- */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.hm-link { font: 600 14px var(--sans); color: var(--accent); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.hm-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hm-cat { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; cursor: pointer; border: 0; padding: 0; background: var(--surface-2); text-align: left; }
.hm-cat i { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hm-cat:hover i { transform: scale(1.06); }
.hm-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(18,14,10,.72)); }
.hm-cat span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
.hm-cat b { display: block; font: 500 24px/1.05 var(--serif); }
.hm-cat small { font-size: 12px; opacity: .8; }
.hm-colours { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; align-items: center; }
.hm-colours h3 { width: 100%; margin: 0 0 6px; font: 500 26px var(--serif); }
.hm-sw { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font: 500 13px var(--sans); color: var(--ink-2); transition: transform .2s; }
.hm-sw:hover { transform: translateY(-2px); }
.hm-sw i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- the story: sticky stage + scrolling steps ---------- */
.hm-story { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
.hm-steps { padding: 18vh 0; }
.hm-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.hm-step.on { opacity: 1; }
.hm-step .n { font: 500 14px var(--sans); color: var(--accent); letter-spacing: .1em; }
.hm-step h3 { font: 500 clamp(30px, 3.2vw, 46px)/1.05 var(--serif); margin: 12px 0 14px; }
.hm-step p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 470px; margin: 0; }
.hm-step .who { display: inline-block; margin-top: 14px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.hm-stage-wrap { position: sticky; top: 110px; height: calc(100vh - 150px); display: flex; align-items: center; }
.hm-stage { position: relative; width: 100%; aspect-ratio: 1.12 / 1; max-height: 100%; border-radius: 22px; background: var(--bg); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(30,20,10,.5); }
.hm-grid { position: absolute; inset: 22px; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 1fr; gap: 6px; transition: opacity .6s; }
.hm-g { border-radius: 4px; background: var(--surface-2) center / cover no-repeat; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .6s, filter .6s; }
.hm-stage[data-step="0"] .hm-grid { opacity: 0; }
.hm-stage[data-step="1"] .hm-g { animation: hmShuffle 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes hmShuffle { 0%, 70%, 100% { transform: none; } 80% { transform: rotateY(90deg) scale(.9); } 90% { transform: none; } }
.hm-stage[data-step="2"] .hm-g:not(.m), .hm-stage[data-step="3"] .hm-g:not(.m), .hm-stage[data-step="4"] .hm-g:not(.m) { opacity: .07; transform: scale(.82); filter: grayscale(1); }
.hm-stage[data-step="2"] .hm-g.m { transform: scale(1.14); box-shadow: 0 0 0 2px var(--accent), 0 14px 30px -12px rgba(0,0,0,.5); z-index: 2; position: relative; }
.hm-stage[data-step="3"] .hm-g.m:not(.p), .hm-stage[data-step="4"] .hm-g.m:not(.p) { opacity: .25; }
.hm-stage[data-step="4"] .hm-grid { opacity: .15; }
/* step 0: a phone full of photos that all look the same */
.hm-phone { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 9 / 18.5; transform: translate(-50%, -50%); border-radius: 34px; background: #111; padding: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); }
.hm-phone .scr { height: 100%; border-radius: 24px; background: #f4f2ee; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 22%; gap: 3px; padding: 26px 4px 4px; position: relative; }
.hm-phone .scr i { background: center / cover; filter: blur(.4px) saturate(.6) brightness(1.05); }
.hm-phone .scr::before { content: "Photos"; position: absolute; top: 6px; left: 10px; font: 600 11px var(--sans); color: #333; }
.hm-q { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%) translateY(10px); background: var(--ink); color: var(--bg); font: 600 14px var(--sans); padding: 12px 18px; border-radius: 14px; white-space: nowrap; opacity: 0; transition: opacity .5s .6s, transform .5s .6s; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); }
.hm-stage[data-step="0"] .hm-q { opacity: 1; transform: translateX(-50%); }
.hm-stage:not([data-step="0"]) .hm-phone { opacity: 0; transform: translate(-50%, -40%) scale(.9); pointer-events: none; }
.hm-stage:not([data-step="0"]) .hm-q { opacity: 0; transition-delay: 0s; }
/* step 1: the counter */
.hm-count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; padding: 26px 40px; border-radius: 22px; background: rgba(24,18,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-shadow: 0 4px 30px rgba(0,0,0,.6); opacity: 0; transition: opacity .5s; pointer-events: none; }
.hm-count b { display: block; font: 500 clamp(56px, 7vw, 96px)/1 var(--serif); }
.hm-count span { font: 600 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hm-stage[data-step="1"] .hm-count { opacity: 1; }
/* step 2: the filter bar */
.hm-filters { position: absolute; left: 22px; right: 22px; top: 22px; display: flex; gap: 8px; flex-wrap: wrap; opacity: 0; transform: translateY(-12px); transition: opacity .5s, transform .5s; z-index: 3; }
.hm-filters span { padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 12.5px var(--sans); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); }
.hm-stage[data-step="2"] .hm-filters, .hm-stage[data-step="3"] .hm-filters { opacity: 1; transform: none; }
/* step 3: the shortlist tray */
.hm-tray { position: absolute; right: 22px; bottom: 22px; width: 52%; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 30px 60px -24px rgba(0,0,0,.5); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); z-index: 4; }
.hm-tray h4 { margin: 0 0 10px; font: 600 13px var(--sans); display: flex; justify-content: space-between; }
.hm-tray h4 em { font-style: normal; color: var(--accent); }
.hm-tray .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hm-tray .slots i { aspect-ratio: 1 / 1.4; border-radius: 6px; background: var(--surface-2) center / cover; transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.3,1.4,.4,1), opacity .4s; }
.hm-tray .slots i:nth-child(2) { transition-delay: .15s; } .hm-tray .slots i:nth-child(3) { transition-delay: .3s; }
.hm-tray .go { margin-top: 12px; font: 600 12.5px var(--sans); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hm-tray .go::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hm-stage[data-step="3"] .hm-tray, .hm-stage[data-step="4"] .hm-tray { opacity: 1; transform: none; }
.hm-stage[data-step="3"] .hm-tray .slots i, .hm-stage[data-step="4"] .hm-tray .slots i { transform: none; opacity: 1; }
.hm-stage[data-step="4"] .hm-tray { opacity: 0; }
/* step 4: a folder of full-resolution files */
.hm-files { position: absolute; left: 50%; top: 50%; width: 76%; transform: translate(-50%, -46%); padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); opacity: 0; transition: opacity .5s, transform .7s cubic-bezier(.2,.7,.2,1); z-index: 5; display: grid; grid-template-columns: 38% 1fr; gap: 18px; }
.hm-files .big { aspect-ratio: 1 / 1.6; border-radius: 8px; background: var(--surface-2) center / cover; }
.hm-files ul { list-style: none; margin: 0; padding: 0; font: 500 13px var(--sans); }
.hm-files li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .4s; }
.hm-files li small { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.hm-files li::before { content: ""; width: 22px; height: 22px; border-radius: 4px; background: var(--accent-soft); flex: none; }
.hm-files .dl { margin-top: 14px; display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 12.5px var(--sans); }
.hm-files h4 { margin: 0 0 8px; font: 500 22px var(--serif); }
.hm-stage[data-step="4"] .hm-files { opacity: 1; transform: translate(-50%, -50%); }
.hm-stage[data-step="4"] .hm-files li { opacity: 1; transform: none; }
.hm-stage[data-step="4"] .hm-files li:nth-child(2) { transition-delay: .12s; } .hm-stage[data-step="4"] .hm-files li:nth-child(3) { transition-delay: .24s; }
.hm-stage[data-step="4"] .hm-files li:nth-child(4) { transition-delay: .36s; } .hm-stage[data-step="4"] .hm-files li:nth-child(5) { transition-delay: .48s; }

/* ---------- coming soon ---------- */
.hm-soon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.hm-card { position: relative; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); padding: 30px; overflow: hidden; display: flex; flex-direction: column; }
.hm-badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hm-card h3 { font: 500 34px/1.05 var(--serif); margin: 16px 0 8px; }
.hm-card > p { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.hm-card .foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hm-card .foot small { color: var(--muted); font-size: 12px; }
/* the mood board demo: Earthy Riad */
.hm-board { position: relative; border-radius: 18px; background: #efe9df; padding: 22px; min-height: 420px; }
.hm-gen { display: flex; align-items: center; gap: 10px; font: 600 12px var(--sans); color: #6b5b4a; margin-bottom: 14px; height: 18px; }
.hm-gen i { width: 120px; height: 3px; border-radius: 3px; background: rgba(107,91,74,.18); position: relative; overflow: hidden; }
.hm-gen i::after { content: ""; position: absolute; inset: 0; width: 40%; background: #9B492C; border-radius: 3px; animation: hmLoad 1.4s ease-in-out infinite; }
@keyframes hmLoad { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.hm-board.done .hm-gen i { display: none; }
.hm-flat { display: grid; grid-template-columns: 1.1fr .9fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 10px; height: 300px; }
.hm-flat div { position: relative; border-radius: 4px; background: #ddd center / cover; box-shadow: 0 18px 30px -16px rgba(60,40,20,.55); opacity: 0; transform: translateY(18px) rotate(-1.5deg); transition: opacity .7s, transform .9s cubic-bezier(.2,.7,.2,1); }
.hm-flat div span { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.88); font: 600 10.5px var(--sans); color: #3a3128; white-space: nowrap; }
.hm-flat .a { grid-row: 1 / 4; } .hm-flat .b { grid-row: 1 / 4; } .hm-flat .c, .hm-flat .d, .hm-flat .e { grid-column: 3; }
.hm-board.go .hm-flat div { opacity: 1; transform: none; }
.hm-flat div:nth-child(2) { transition-delay: .25s; } .hm-flat div:nth-child(3) { transition-delay: .5s; } .hm-flat div:nth-child(4) { transition-delay: .75s; } .hm-flat div:nth-child(5) { transition-delay: 1s; }
.hm-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 16px; }
.hm-meta h4 { margin: 0; font: 500 30px/1 var(--serif); color: #2d241c; opacity: 0; transition: opacity .6s 1.3s; }
.hm-meta small { display: block; font: 500 11.5px var(--sans); color: #7a6a58; margin-top: 6px; opacity: 0; transition: opacity .6s 1.4s; }
.hm-pal { display: flex; gap: 6px; }
.hm-pal i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.4,1); }
.hm-board.go .hm-meta h4, .hm-board.go .hm-meta small { opacity: 1; }
.hm-board.go .hm-pal i { transform: scale(1); }
.hm-pal i:nth-child(1) { transition-delay: 1.3s; } .hm-pal i:nth-child(2) { transition-delay: 1.4s; } .hm-pal i:nth-child(3) { transition-delay: 1.5s; } .hm-pal i:nth-child(4) { transition-delay: 1.6s; } .hm-pal i:nth-child(5) { transition-delay: 1.7s; }
/* the 3D room demo */
.hm-room-box { position: relative; border-radius: 18px; background: radial-gradient(120% 90% at 50% 10%, #fbf7f1, #e9e0d3); min-height: 420px; perspective: 1100px; overflow: hidden; display: flex; flex-direction: column; }
.hm-room-view { flex: 1; display: flex; align-items: center; justify-content: center; }
.hm-room { position: relative; width: 300px; height: 210px; transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(-24deg); animation: hmOrbit 12s ease-in-out infinite alternate; }
@keyframes hmOrbit { from { transform: rotateX(-26deg) rotateY(-36deg); } to { transform: rotateX(-20deg) rotateY(-12deg); } }
.hm-face { position: absolute; background-color: #ccc; background-repeat: repeat; transition: background-image .8s; backface-visibility: hidden; }
.hm-face::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.55) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: var(--tw) var(--th); }
.hm-back { width: 300px; height: 210px; transform: translateZ(-150px); }
.hm-left { width: 300px; height: 210px; transform: rotateY(90deg) translateZ(-150px); filter: brightness(.82); }
.hm-floor { width: 300px; height: 300px; top: 60px; transform: rotateX(90deg); filter: brightness(.95); }
.hm-feat { position: absolute; left: 105px; top: 0; width: 90px; height: 210px; transform: translateZ(-149px); background: center / 90px 210px no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.4); transition: background-image .8s; }
.hm-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(30,20,10,.12)); pointer-events: none; }
.hm-swatch { display: flex; gap: 8px; justify-content: center; padding: 0 0 16px; position: relative; z-index: 2; }
.hm-swatch button { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid rgba(60,40,20,.15); background: rgba(255,255,255,.75); font: 600 11.5px var(--sans); color: #4a3d30; cursor: pointer; }
.hm-swatch button i { width: 22px; height: 22px; border-radius: 50%; background: center / cover; }
.hm-swatch button[aria-pressed="true"] { border-color: #9B492C; box-shadow: 0 0 0 1px #9B492C; }
.hm-notify.done { background: var(--good); border-color: var(--good); color: #fff; }

/* ---------- designers + closing ---------- */
.hm-pro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.hm-pro div { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.hm-pro svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hm-pro h4 { margin: 14px 0 6px; font: 500 24px var(--serif); }
.hm-pro p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.hm-close { background: var(--accent); color: #fff; text-align: center; padding: 96px 28px; }
.hm-close h2 { font: 500 clamp(36px, 5vw, 68px)/1.02 var(--serif); margin: 0 0 22px; }
.hm-close p { margin: 0 auto 30px; max-width: 520px; opacity: .85; font-size: 16px; }
.hm-close .hm-btn { background: #fff; color: var(--accent); border-color: #fff; }

/* ---------- phones and tablets ---------- */
@media (max-width: 980px) {
  .hm-sec { padding: 64px 0; }
  .hm-wrap { padding: 0 18px; }
  .hm-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hm-hero::after { display: none; }
  .hm-mosaic { position: relative; inset: auto; left: auto; height: 290px; margin: -40px -30px 8px; transform: rotate(-6deg); grid-template-columns: repeat(4, 1fr); gap: 10px; order: -1; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
  .hm-mosaic .hm-col { gap: 10px; }
  .hm-hero-text { padding: 0 18px 48px; }
  .hm-stats { gap: 22px; }
  .hm-stats b { font-size: 28px; }
  .hm-cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hm-cat b { font-size: 20px; }
  .hm-story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hm-stage-wrap { top: calc(var(--st) + 58px); height: 48vh; z-index: 2; order: -1; }
  .hm-stage { aspect-ratio: auto; height: 100%; }
  .hm-steps { padding: 4vh 0 10vh; position: relative; z-index: 1; }
  .hm-step { min-height: 64vh; }
  .hm-grid { grid-template-columns: repeat(6, 1fr); }
  .hm-g:nth-child(n+37) { display: none; }
  .hm-phone { width: 38%; }
  .hm-soon-grid, .hm-pro { grid-template-columns: minmax(0, 1fr); }
  .hm-card { padding: 20px; }
  .hm-flat { height: 240px; }
  .hm-board, .hm-room-box { min-height: 360px; }
  .hm-room { transform-origin: 50% 60%; scale: .82; }
  .hm-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 980px) { body.home { padding-bottom: calc(var(--bnav) + var(--sb)); } }
@media (prefers-reduced-motion: reduce) {
  .hm-col, .hm-room, .hm-g, .hm-gen i::after { animation: none !important; }
  .hm-reveal { opacity: 1; transform: none; }
}

/* ---------- inspiration: home teaser ---------- */
.hm-how { margin-top: 18px; background: none; border: 0; padding: 0; font: 600 13.5px var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hm-how svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-inspo-sec { padding-top: 0; }
.hm-inspo { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 12px; }
.hm-in { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.hm-in.big { grid-row: 1 / 3; }
.hm-in img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hm-in:hover img { transform: scale(1.05); }
.hm-in span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: #2a221b; font: 600 12px var(--sans); }
.hm-inspo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hm-inspo-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; }
.hm-inspo-chips small { color: var(--muted); margin-left: 4px; }

/* ---------- inspiration: the gallery and one space ---------- */
.ig, .igv { position: fixed; inset: 0; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--st); color: var(--ink); }
.ig { z-index: 47; } .igv { z-index: 48; }
.ig[hidden], .igv[hidden] { display: none; }
.ig-top, .igv-top { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.ig-x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink); }
.ig-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ig-title h2 { margin: 0; font: 500 28px/1 var(--serif); }
.ig-title p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.ig-chips { display: flex; gap: 8px; padding: 12px 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; }
.ig-chips::-webkit-scrollbar { display: none; }
.ig-chips button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; white-space: nowrap; }
.ig-chips button small { color: var(--muted); margin-left: 6px; }
.ig-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ig-chips button[aria-pressed="true"] small { color: inherit; opacity: .7; }
.ig-body { flex: 1; overflow-y: auto; padding: 18px 24px 40px; -webkit-overflow-scrolling: touch; }
.ig-grid { columns: 4 280px; column-gap: 14px; }
.ig-card { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); cursor: pointer; min-height: 120px; }
.ig-card img { width: 100%; display: block; min-height: 120px; }
.ig-card figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(16,12,8,.72)); color: #fff; opacity: 0; transition: opacity .3s; }
.ig-card:hover figcaption, .ig-card:focus figcaption { opacity: 1; }
.ig-card figcaption b { display: block; font: 500 18px var(--serif); }
.ig-card figcaption span { font-size: 12px; opacity: .85; }
.ig-more { height: 1px; }
.igv-top .grow { flex: 1; }
.igv-body { flex: 1; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); }
.igv-photo { background: #16120e; display: grid; place-items: center; overflow: hidden; }
.igv-photo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.igv-side { overflow-y: auto; padding: 26px 28px 40px; }
.igv-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.igv-side h3 { margin: 8px 0 16px; font: 500 26px var(--serif); }
.igv-tiles { display: flex; flex-direction: column; gap: 10px; }
.igv-tile { display: grid; grid-template-columns: 74px 1fr 40px; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.igv-face { width: 74px; height: 96px; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.igv-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igv-info { min-width: 0; }
.igv-where { display: inline-block; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.igv-info b { display: block; font: 500 19px/1.15 var(--serif); margin: 2px 0; cursor: pointer; }
.igv-info small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igv-link { margin-top: 6px; padding: 0; border: 0; background: none; font: 600 12.5px var(--sans); color: var(--ink); cursor: pointer; }
.igv-heart { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.igv-heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.igv-heart.on { color: var(--accent); } .igv-heart.on svg { fill: currentColor; }
.igv-simhead { display: flex; align-items: baseline; justify-content: space-between; margin-top: 30px; }
.igv-simhead h3 { margin: 0 0 12px; }
.igv-all { border: 0; background: none; font: 600 13px var(--sans); color: var(--accent); cursor: pointer; }
.igv-sim { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.igv-sim button { border: 0; padding: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.igv-sim img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- phone pass (user 2026-11-01: "the home page on the phone is not correct") ---------- */
.hm-close { background: #9B492C; }                              /* the same clay in light and dark */
.hm-close .hm-btn { color: #9B492C; }
@media (max-width: 980px) {
  body.home .top .search { display: none; }                     /* the hero has its own search; one is enough */
  .hm-mosaic { height: 200px; margin: -36px -30px 6px; }
  .hm-hero h1 { font-size: 40px; margin: 12px 0 14px; }
  .hm-hero .hm-lead { font-size: 15px; }
  .hm-search { height: 54px; margin-top: 22px; padding-left: 18px; }
  .hm-search button { height: 42px; padding: 0 16px; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chips button { flex: none; }
  .hm-ctas { margin-top: 22px; }
  .hm-ctas .hm-btn { flex: 1; justify-content: center; height: 50px; padding: 0 14px; }
  .hm-stats { margin-top: 28px; justify-content: space-between; }
  .hm-h2 { font-size: 34px; }
  .hm-cats { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .hm-cats::-webkit-scrollbar, .hm-colours::-webkit-scrollbar, .hm-pro::-webkit-scrollbar, .hm-inspo-chips::-webkit-scrollbar { display: none; }
  .hm-cat { scroll-snap-align: start; }
  .hm-colours { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 40px -18px 0; padding: 0 18px; }
  .hm-colours h3 { position: absolute; }
  .hm-colours { padding-top: 40px; position: relative; }
  .hm-colours h3 { top: 0; left: 18px; width: auto; font-size: 22px; }
  .hm-sw { flex: none; }
  .hm-inspo { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; gap: 8px; }
  .hm-in.big { grid-column: 1 / 3; grid-row: 1; }
  .hm-in:nth-child(n+6) { display: none; }
  .hm-inspo-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 0; padding: 0 18px; }
  .hm-inspo-chips button { flex: none; }
  .hm-stage-wrap { background: var(--surface); margin: 0 -18px; padding: 10px 18px; height: 46vh; top: calc(var(--st) + 52px); }
  .hm-step { min-height: 56vh; }
  .hm-step h3 { font-size: 28px; }
  .hm-meta { flex-direction: column; align-items: flex-start; }
  .hm-meta h4 { font-size: 26px; }
  .hm-flat { height: 230px; }
  .hm-swatch { gap: 6px; padding: 0 8px 12px; }
  .hm-swatch button { font-size: 10.5px; padding: 5px 9px 5px 5px; gap: 6px; }
  .hm-swatch button i { width: 18px; height: 18px; }
  .hm-card h3 { font-size: 28px; }
  .hm-pro { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 24px -18px 0; padding: 0 18px; gap: 12px; }
  .hm-pro > div { scroll-snap-align: start; }
  .hm-close { padding: 64px 22px; }
  /* gallery */
  .ig-top, .igv-top { padding: 10px 14px; }
  .ig-title h2 { font-size: 24px; }
  .ig-chips { padding: 10px 14px; }
  .ig-body { padding: 12px 10px 30px; }
  .ig-grid { columns: 2; column-gap: 8px; }
  .ig-card { margin-bottom: 8px; border-radius: 10px; }
  .ig-card figcaption { opacity: 1; padding: 20px 10px 8px; }
  .ig-card figcaption b { font-size: 15px; }
  .ig-card figcaption span { display: none; }
  .igv-body { grid-template-columns: 1fr; overflow-y: auto; display: block; }
  .igv-photo { height: 44vh; }
  .igv-side { overflow: visible; padding: 20px 16px 40px; }
  .igv-tile { grid-template-columns: 64px 1fr 40px; gap: 12px; }
  .igv-face { width: 64px; height: 84px; }
  .igv-sim { grid-template-columns: repeat(2, 1fr); }
}

/* phone: the "05 — For designers" download card keeps its file list inside the card */
@media (max-width: 980px) {
  .hm-files { width: 90%; padding: 14px; gap: 12px; grid-template-columns: 26% minmax(0, 1fr); border-radius: 14px; }
  .hm-files > div { min-width: 0; }
  .hm-files h4 { font-size: 18px; margin-bottom: 4px; }
  .hm-files ul { font-size: 12px; }
  .hm-files li { gap: 8px; padding: 7px 0; min-width: 0; white-space: nowrap; }
  .hm-files li::before { width: 18px; height: 18px; }
  .hm-files li small { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .hm-files .dl { margin-top: 10px; padding: 8px 14px; font-size: 12px; }
}

/* category banners (user 2026-11-01): tiles shown whole on a tinted backdrop; mockups fill the card */
.hm-cat.prod { background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--tint) 10%, #FBF8F3), color-mix(in srgb, var(--tint) 30%, #E9E2D6)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hm-cat.prod { background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--tint) 22%, #2A2722), color-mix(in srgb, var(--tint) 12%, #171512)); } }
:root[data-theme="dark"] .hm-cat.prod { background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--tint) 22%, #2A2722), color-mix(in srgb, var(--tint) 12%, #171512)); }
.hm-cat.prod::after { background: linear-gradient(180deg, transparent 62%, rgba(18,14,10,.66)); }
.hm-prod { position: absolute; inset: 18px 18px 74px; display: flex; gap: 8%; justify-content: center; align-items: stretch; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hm-prod.col { flex-direction: column; gap: 6%; }
.hm-cat .hm-prod i { position: relative; inset: auto; flex: 1; min-width: 0; min-height: 0; background: center / contain no-repeat; filter: drop-shadow(0 16px 18px rgba(40,28,18,.32)); transform: none !important; }
.hm-cat.prod:hover .hm-prod { transform: translateY(-4px) scale(1.03); }
.hm-cat small em { font-style: normal; opacity: .85; }
@media (max-width: 980px) { .hm-prod { inset: 12px 12px 100px; } .hm-prod.col { gap: 5%; } .hm-cat.prod::after { background: linear-gradient(180deg, transparent 52%, rgba(18,14,10,.7)); } }
