/* AtticBox website. Colors are the app's Palette (app/Sources/AtticBox/Theme.swift): paper, ink, moss and gold in
   light; the exported gallery's greens in dark. The page follows the system appearance unless the visitor picks Light
   or Dark in the footer, which sets data-theme on <html>. */

:root {
  color-scheme: light;
  --paper: #F5F2EB;
  --paper-2: #ECE7DB;
  --card: #FFFFFF;
  --ink: #303D33;
  --ink-2: #545E56;
  --moss: #26362B;
  --moss-fill: #26362B;
  --on-moss: #FFFFFF;
  --sage: #9EBFA6;
  --gold: #C99E5C;
  --gold-text: #8A6420;
  --line: rgba(38, 54, 43, .14);
  --wash: rgba(38, 54, 43, .06);
  --shadow: 0 1px 2px rgba(17, 32, 24, .06), 0 18px 40px -12px rgba(17, 32, 24, .22);
  --sidebar: #26362B;
  --map-land: #ECE6D8;
  --map-water: #B9CFCB;
  --map-park: #D3DEC9;
  --map-road: #FFFFFF;
  --map-minor: #F9F6EF;
  --figure: #4A6853;
  --highlight: #DCE8DE;
  --print: #FBF7EE;
  --hero-1: #3C5544;
  --hero-2: #203226;
  --cream: #F4EEDC;
  --focus: #0058D0;
}

/* Dark: the app's dark palette, which follows the exported gallery. Written twice so a visitor's choice wins over the
   system setting in both directions. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121714;
    --paper-2: #171E19;
    --card: #1F2822;
    --ink: #EEF0E6;
    --ink-2: #A1AEA3;
    --moss: #9EBFA6;
    --moss-fill: #528060;
    --on-moss: #FFFFFF;
    --gold: #DBB77B;
    --gold-text: #DBB77B;
    --line: #323E34;
    --wash: rgba(158, 191, 166, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
    --sidebar: #1C271F;
    --map-land: #1B231E;
    --map-water: #23383A;
    --map-park: #22302A;
    --map-road: #36443A;
    --map-minor: #2A352E;
    --figure: #9EBFA6;
    --highlight: #2C3D31;
    --print: #DDD6C5;
    --hero-1: #26382C;
    --hero-2: #121714;
    --focus: #5EA8FF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121714;
  --paper-2: #171E19;
  --card: #1F2822;
  --ink: #EEF0E6;
  --ink-2: #A1AEA3;
  --moss: #9EBFA6;
  --moss-fill: #528060;
  --on-moss: #FFFFFF;
  --gold: #DBB77B;
  --gold-text: #DBB77B;
  --line: #323E34;
  --wash: rgba(158, 191, 166, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
  --sidebar: #1C271F;
  --map-land: #1B231E;
  --map-water: #23383A;
  --map-park: #22302A;
  --map-road: #36443A;
  --map-minor: #2A352E;
  --figure: #9EBFA6;
  --highlight: #2C3D31;
  --print: #DDD6C5;
  --hero-1: #26382C;
  --hero-2: #121714;
  --focus: #5EA8FF;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:root {
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.015em; line-height: 1.12; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */

.hero {
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(241, 213, 160, .12), transparent 70%),
    linear-gradient(180deg, var(--hero-1), var(--hero-2));
  padding-bottom: clamp(150px, 20vw, 290px);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.topbar nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: .95rem; }
.topbar nav a { text-decoration: none; color: rgba(244, 238, 220, .82); }
.topbar nav a:hover { color: #fff; }
.hero-copy { text-align: center; padding-top: clamp(28px, 6vw, 64px); max-width: 860px; margin-inline: auto; }
.hero-icon { width: clamp(112px, 14vw, 156px); height: auto; margin: 0 auto 18px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
.hero .eyebrow { color: #DBB77B; }
.hero h1 { color: var(--cream); font-size: clamp(2.6rem, 1.4rem + 5vw, 4.9rem); letter-spacing: -.025em; margin: 14px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: #F1D5A0; }
.hero .lede { color: rgba(244, 238, 220, .84); max-width: 680px; margin-inline: auto; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: #DBB77B; color: #1B241E; }
.btn-gold:hover { background: #E6C78F; }
.btn.soon { cursor: default; font-size: .94rem; padding-inline: 18px;background: rgba(219, 183, 123, .14); color: #F1D5A0; border-color: rgba(219, 183, 123, .5); }
.btn.soon:hover { transform: none; }
.btn-ghost { border-color: rgba(244, 238, 220, .38); color: var(--cream); }
.btn-ghost:hover { background: rgba(244, 238, 220, .08); }
.btn .icon { width: 19px; height: 19px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(244, 238, 220, .66); }

/* ---------- The app window illustration ---------- */

.showcase { margin-top: calc(-1 * clamp(130px, 18vw, 260px)); position: relative; }
.window {
  display: grid; grid-template-columns: 212px 1fr;
  background: var(--paper); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12), 0 40px 80px -24px rgba(10, 20, 14, .55);
  font-size: 13px; line-height: 1.35; color: var(--ink);
}
.window .sidebar { background: var(--sidebar); color: rgba(255, 255, 255, .84); padding: 14px 10px 18px; display: flex; flex-direction: column; gap: 2px; }
.lights { display: flex; gap: 7px; padding: 2px 6px 16px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #EC6A5E; }
.lights i:nth-child(2) { background: #F4BF4F; }
.lights i:nth-child(3) { background: #61C554; }
.sb-project { font-family: var(--serif); font-size: 15px; color: #fff; padding: 0 10px 10px; }
.sb-project small { display: block; font-family: system-ui, sans-serif; font-size: 11px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.sb-item { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; }
.sb-item .icon { width: 16px; height: 16px; color: #DBB77B; stroke-width: 1.7; }
.sb-item.on { background: rgba(255, 255, 255, .15); color: #fff; }
.sb-item b { margin-left: auto; font-weight: 500; font-size: 11px; color: rgba(255, 255, 255, .62); }
.sb-gap { height: 10px; }
.main { padding: 18px 22px 22px; min-width: 0; }
.main-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.main-head h3 { font-size: 22px; }
.main-head span { color: var(--ink-2); }
.search { margin-left: auto; display: flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink-2); min-width: 0; }
.search .icon { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
.tile .thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; background: var(--card); }
.tile .thumb svg { width: 100%; height: 100%; }
.tile.photo .thumb { padding: 5px; background: var(--print); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); border-radius: 4px; }
.tile.photo .thumb svg { border-radius: 2px; }
.duration { position: absolute; right: 6px; bottom: 6px; background: rgba(16, 23, 19, .82); color: #fff; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tile b { display: block; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { color: var(--ink-2); font-size: 11.5px; }
.tile small em { font-style: normal; color: var(--gold-text); font-weight: 600; }

/* ---------- Sections ---------- */

section { scroll-margin-top: 20px; }
.intro { padding-block: clamp(64px, 9vw, 120px) clamp(24px, 4vw, 48px); text-align: center; }
.intro h2 { max-width: 780px; margin: 12px auto 18px; text-wrap: balance; }
.intro .lede { max-width: 720px; margin-inline: auto; text-wrap: pretty; }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; margin-top: 44px; text-align: left; }
.ba { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.ba h3 { font-family: inherit; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 650; margin-bottom: 12px; }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.ba.raw li { font-family: var(--mono); font-size: .84rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.ba.raw li span:last-child { opacity: .7; }
.ba.sorted li { display: flex; gap: 10px; align-items: baseline; }
.ba.sorted li em { font-style: normal; color: var(--gold-text); font-weight: 650; font-variant-numeric: tabular-nums; min-width: 3.2em; }
.ba.sorted li small { color: var(--ink-2); margin-left: auto; white-space: nowrap; }
.arrow { color: var(--gold); }
.arrow .icon { width: 34px; height: 34px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin: 12px 0 18px; text-wrap: balance; }
.feature-copy .lede { text-wrap: pretty; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23C99E5C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.band { background: var(--paper-2); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; font-size: 13.5px; line-height: 1.4; }

/* Moments: a tape with marks under its slider, and the list following playback. */
.player .video { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #000; }
.player .video > svg { width: 100%; height: 100%; }
.osd { position: absolute; font-family: var(--mono); color: #F4EEDC; text-shadow: 0 0 4px rgba(0, 0, 0, .7), 1px 1px 0 rgba(0, 0, 0, .6); font-size: clamp(11px, 1.5vw, 15px); letter-spacing: .06em; }
.osd.play { left: 5%; top: 5%; }
.osd.date { right: 5%; bottom: 6%; }
.pip-badge { position: absolute; right: 4%; top: 5%; background: rgba(0, 0, 0, .45); color: #fff; border-radius: 6px; padding: 3px 7px; display: flex; gap: 5px; align-items: center; font-size: 11px; }
.pip-badge .icon { width: 14px; height: 14px; }
.scrub { padding: 14px 2px 4px; }
.rail { position: relative; height: 4px; border-radius: 2px; background: var(--line); margin-inline: 7px; }
.rail .fill { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: 2px; background: var(--moss); animation: fill 24s linear infinite; }
.rail .knob { position: absolute; top: 50%; left: 30%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 3px rgba(0, 0, 0, .3); animation: knob 24s linear infinite; }
.marks { position: relative; height: 11px; margin: 8px 7px 0; }
.marks i { position: absolute; top: 0; height: 11px; }
.marks i::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 11px; background: var(--moss); }
.marks i::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 5px; border-radius: 1.5px; background: var(--moss); opacity: calc(.3 + .6 * var(--on)); }
.times { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 11.5px; font-variant-numeric: tabular-nums; margin-top: 6px; }
@property --on { syntax: "<number>"; inherits: true; initial-value: 0; }
.mlist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.mlist li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  border: 2px solid color-mix(in srgb, var(--moss) calc(var(--on) * 100%), transparent);
  background: color-mix(in srgb, var(--highlight) calc(var(--on) * 100%), transparent);
}
.mlist li::before { content: "▶"; font-size: 10px; color: var(--moss); opacity: var(--on); width: 10px; }
.mlist time { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 4.4em; }
.mlist span { font-weight: calc(400 + 200 * var(--on)); }
.m1 { --on: 1; animation: m1 24s linear infinite; }
.m2 { animation: m2 24s linear infinite; }
.m3 { animation: m3 24s linear infinite; }
.m4 { animation: m4 24s linear infinite; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes knob { from { left: 0; } to { left: 100%; } }
@keyframes m1 { 0%, 17.9% { --on: 1; } 18%, 100% { --on: 0; } }
@keyframes m2 { 0%, 17.9% { --on: 0; } 18%, 40.6% { --on: 1; } 40.7%, 100% { --on: 0; } }
@keyframes m3 { 0%, 40.6% { --on: 0; } 40.7%, 70.4% { --on: 1; } 70.5%, 100% { --on: 0; } }
@keyframes m4 { 0%, 70.4% { --on: 0; } 70.5%, 100% { --on: 1; } }

/* Search */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.searchbar .icon { width: 18px; height: 18px; color: var(--ink-2); }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scope { color: var(--ink-2); font-size: 12px; margin: 10px 2px 14px; }
.result { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.result + .result { margin-top: 10px; }
.result .thumb { border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.result .thumb svg { width: 100%; height: 100%; }
.result b { font-size: 14.5px; }
.result small { display: block; color: var(--ink-2); margin: 2px 0 8px; }
.cue { display: flex; gap: 10px; padding: 7px 10px; margin-top: 6px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; }
.cue em { font-style: normal; color: var(--gold-text); font-weight: 650; font-variant-numeric: tabular-nums; }
mark { background: color-mix(in srgb, var(--gold) 38%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Faces */
.faces-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.faces-head b { font-family: var(--serif); font-size: 19px; }
.faces-head span { color: var(--ink-2); }
.portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.portrait { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; outline: 3px solid var(--gold); outline-offset: -3px; }
.portrait svg { width: 100%; height: 100%; }
.portrait::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--moss-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 0 0 2px var(--card); }
.portrait.off { outline-color: transparent; opacity: .55; }
.portrait.off::after { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink-2), 0 0 0 2px var(--card); }
.portrait time { position: absolute; left: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.face-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
.pill-btn { border-radius: 7px; padding: 6px 12px; font-weight: 600; font-size: 12.5px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pill-btn.primary { background: var(--moss-fill); color: var(--on-moss); border-color: transparent; }
.face-actions small { color: var(--ink-2); margin-left: auto; }

/* Family tree */
.tree svg { width: 100%; height: auto; }
.tree .card-rect { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.tree .card-rect.sel { stroke: var(--gold); stroke-width: 3; }
.tree .link { stroke: var(--ink-2); stroke-width: 1.5; fill: none; opacity: .6; }
.tree .name { fill: var(--ink); font: 600 13.5px system-ui, -apple-system, sans-serif; }
.tree .dates { fill: var(--ink-2); font: 11.5px system-ui, -apple-system, sans-serif; }
.tree .tag { fill: var(--gold-text); font: 600 10.5px system-ui, -apple-system, sans-serif; letter-spacing: .04em; }
.tree .avatar { fill: var(--wash); stroke: var(--line); }
.tree .avatar-figure { fill: var(--figure); opacity: .75; }
.formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.formats span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); background: var(--paper); }

/* Map */
.map { padding: 0; overflow: hidden; position: relative; }
.map svg { width: 100%; height: auto; }
.map .land { fill: var(--map-land); }
.map .water { fill: var(--map-water); }
.map .park { fill: var(--map-park); }
.map .road { stroke: var(--map-road); stroke-width: 7; fill: none; stroke-linecap: round; }
.map .minor { stroke: var(--map-minor); stroke-width: 3.5; fill: none; stroke-linecap: round; }
.map .label { fill: var(--ink-2); font: italic 11px var(--serif); }
.map .pin { fill: var(--moss-fill); stroke: var(--card); stroke-width: 2; }
.map .attribution { fill: var(--ink-2); font: 9px system-ui, sans-serif; opacity: .8; }
.place-card { position: absolute; left: 14px; top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); max-width: 62%; }
.place-card b { font-family: var(--serif); font-size: 16px; display: block; }
.place-card small { display: block; color: var(--ink-2); font-size: 11.5px; }
.place-card .exact { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 650; color: var(--gold-text); }

/* Timelines */
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tl-head b { font-family: var(--serif); font-size: 19px; }
.tl-head span { color: var(--ink-2); font-size: 12px; }
.tl-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.tl-track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 33px; height: 2px; background: var(--line); }
.tl-track li { position: relative; display: flex; flex-direction: column; }
.tl-track .yr { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--gold-text); text-align: center; }
.tl-track .dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin: 6px auto 12px; box-shadow: 0 0 0 4px var(--card); position: relative; }
.tl-card { flex: 1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.tl-card svg { width: 100%; aspect-ratio: 16 / 10; height: auto; }
.tl-card div { padding: 8px 10px 10px; }
.tl-card b { display: block; font-size: 12.5px; line-height: 1.25; }
.tl-card small { color: var(--ink-2); font-size: 11px; }
.tl-presets { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Gallery (it keeps its own dark look, as exports do) */
.browser { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #121714; }
.browser-bar { display: flex; align-items: center; gap: 12px; background: #252B27; padding: 9px 12px; }
.browser-bar .lights { padding: 0; }
.address { flex: 1; min-width: 0; background: #1A201C; color: #A1AEA3; border-radius: 6px; padding: 4px 10px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery { color: #EEF0E6; padding: 18px 20px 22px; font-size: 12.5px; }
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #323E34; padding-bottom: 12px; margin-bottom: 16px; }
.g-brand { font-size: 14px; }
.g-brand span { color: #DBB77B; }
.g-pill { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #A1AEA3; }
.gallery h4 { font: 600 26px/1.05 Georgia, serif; letter-spacing: -.5px; margin: 6px 0 12px; }
.g-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.g-tabs span { border: 1px solid #323E34; background: #1C231E; border-radius: 6px; padding: 3px 9px; font-size: 11px; }
.g-tabs span.on { background: #DBB77B; color: #192019; border-color: #DBB77B; }
.g-search { background: #1C231E; border: 1px solid #323E34; border-radius: 8px; padding: 7px 10px; color: #A1AEA3; margin-bottom: 14px; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g-grid .thumb { border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 10; position: relative; }
.g-grid .thumb svg { width: 100%; height: 100%; }
.g-grid b { display: block; font-size: 11.5px; font-weight: 600; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-grid small { color: #A1AEA3; font-size: 10.5px; }
.g-grid small em { font-style: normal; color: #DBB77B; }

/* Files */
.files { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.files ul { list-style: none; margin: 0; padding: 0; }
.files ul ul { padding-left: 20px; border-left: 1px dashed var(--line); margin-left: 7px; }
.files li { padding: 3px 0; }
.files .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.files .row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.files .row .icon { width: 16px; height: 16px; color: var(--gold); }
.files .row.dir > span { font-weight: 650; }
.files .tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px 24px; font-family: system-ui, sans-serif; }
.files .tags span { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--wash); color: var(--moss); border: 1px solid var(--line); }
.files .dim { color: var(--ink-2); }

/* Privacy */
.privacy { padding-block: clamp(64px, 9vw, 120px); }
.privacy-head { max-width: 760px; }
.privacy-head h2 { margin: 12px 0 18px; text-wrap: balance; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.trio article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.trio .icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 14px; }
.trio h3 { margin-bottom: 8px; }
.trio p { color: var(--ink-2); font-size: .97rem; }
.fineprint { margin-top: 24px; color: var(--ink-2); font-size: .92rem; max-width: 820px; }

/* Mac */
.mac { padding-block: clamp(64px, 9vw, 112px); }
.mac-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.mac-head h2 { margin: 12px 0 16px; text-wrap: balance; }
.mac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mac-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mac-grid .icon { width: 26px; height: 26px; color: var(--moss); margin-bottom: 10px; }
.mac-grid b { display: block; margin-bottom: 4px; }
.mac-grid p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }

/* Everything */
.everything { padding-block: clamp(64px, 9vw, 120px); }
.everything-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.everything-head h2 { margin: 12px 0 16px; }
.columns { columns: 3 300px; column-gap: 20px; }
.group { break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; margin-bottom: 20px; }
.group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 12px; }
.group h3 .icon { color: var(--gold); width: 24px; height: 24px; }
.group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.group li { position: relative; padding-left: 16px; font-size: .95rem; line-height: 1.45; color: var(--ink); }
.group li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.group li small { color: var(--ink-2); font-size: .85rem; }

/* Pricing */
.pricing { padding-block: clamp(64px, 9vw, 120px); }
.price-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--cream); border-radius: 24px; padding: clamp(28px, 5vw, 60px); box-shadow: var(--shadow); }
.price-card .eyebrow { color: #DBB77B; }
.price { font-family: var(--serif); font-size: clamp(4rem, 3rem + 5vw, 6.6rem); line-height: 1; letter-spacing: -.03em; margin: 14px 0 6px; color: var(--cream); }
.price small { font-size: .32em; letter-spacing: 0; color: rgba(244, 238, 220, .78); margin-left: 6px; }
.price-card p { color: rgba(244, 238, 220, .82); }
.price-card .btn { margin-top: 26px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; }
.price-list .icon { color: #DBB77B; margin-top: 2px; }
.price-list b { display: block; color: #fff; font-weight: 600; }
.price-list span { color: rgba(244, 238, 220, .74); font-size: .95rem; }
.never { margin-top: 26px; font-size: .92rem; color: var(--ink-2); text-align: center; }

/* FAQ */
.faq { padding-block: clamp(48px, 7vw, 100px) clamp(64px, 9vw, 120px); }
.faq-inner { max-width: 820px; margin-inline: auto; }
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 2px; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--serif); color: var(--gold-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 2px 20px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--ink-2); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot .brand { color: var(--ink); font-size: 1.15rem; }
.foot .brand img { width: 30px; height: 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.theme-switch button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .85rem; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--moss-fill); color: var(--on-moss); }
.foot-note { margin-top: 22px; font-size: .84rem; }

/* ---------- Narrow windows ---------- */

@media (max-width: 980px) {
  .window { grid-template-columns: 1fr; }
  .window .sidebar { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid .tile:nth-child(n + 7) { display: none; }
  .mac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .before-after { grid-template-columns: minmax(0, 1fr); }
  .arrow { justify-self: center; transform: rotate(90deg); }
  .trio { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar nav a:not(.keep) { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .tile:nth-child(n + 5) { display: none; }
  .main { padding: 14px; }
  .main-head .search { display: none; }
  .portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portraits .portrait:nth-child(n + 7) { display: none; }
  .result { grid-template-columns: 1fr; }
  .result .thumb { max-width: 180px; }
  .tl-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .tl-track::before { display: none; }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-grid > div:nth-child(n + 5) { display: none; }
  .mac-grid { grid-template-columns: 1fr; }
  .place-card { max-width: calc(100% - 28px); }
  .files { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .rail .fill, .rail .knob, .mlist li, .marks i, .caret { animation: none !important; }
  .mlist li, .marks i { --on: 0; }
  .mlist li.m2, .marks i.m2 { --on: 1; }
}
