/* Brim House Co. — brand: Ink Black, Off White, Camel, Warm Tan, Brass.
   Display: Archivo Expanded (stand-in for Monument Extended), body: Montserrat (stand-in for Gotham),
   accent: Yellowtail (stand-in for the signature script). Swap in licensed files in fonts.css if you own them. */
:root {
  --ink: #0B0B0B;
  --ink-2: #171513;
  --ink-3: #24201c;
  --paper: #F6F1E7;
  --paper-2: #EDE4D3;
  --camel: #C8A177;
  --tan: #A36B3F;
  --tan-dark: #8a5631;
  --brass: #B29963;
  --text: #0B0B0B;
  --muted: #6b5a48;
  --line: #e0d5c1;
  --white: #ffffff;
  --ok: #3f7a4a;
  --warn: #a8741a;
  --bad: #a33a2b;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(11, 11, 11, .06), 0 8px 24px rgba(11, 11, 11, .06);
  --display: 'Archivo', 'Arial Black', sans-serif;
  --body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tan); }
a:hover { color: var(--tan-dark); }
h1, h2, h3, h4 {
  font-family: var(--display); font-stretch: 125%; font-weight: 800; line-height: 1.08;
  text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.1rem; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.eyebrow {
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
  color: var(--tan); display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.script { font-family: var(--script); text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--camel); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 4px; border: 1.5px solid var(--tan); background: var(--tan); color: var(--paper);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  line-height: 1.2; min-height: 46px;
}
.btn:hover { background: var(--tan-dark); border-color: var(--tan-dark); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn.ghost:hover { background: var(--paper); color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-3); }
.btn.small { padding: 8px 14px; min-height: 36px; font-size: .7rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn[disabled], .btn.loading { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--tan); cursor: pointer; font: inherit; text-decoration: underline; }

/* header */
.site-header { background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #2a2622; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand svg { width: 46px; height: 30px; color: var(--paper); flex: none; }
.brand-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { white-space: nowrap; }
.nav a { color: var(--paper); text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--camel); }
.nav .btn { opacity: 1; color: var(--paper); }
.nav a.nav-staff { font-size: .7rem; opacity: .65; border: 1px solid #3a342e; border-radius: 4px; padding: 6px 10px; }
.nav a.nav-staff:hover { opacity: 1; border-color: var(--camel); }
.nav-toggle { display: none; background: none; border: 1px solid #3a342e; color: var(--paper); border-radius: 4px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 12px 20px 22px; gap: 4px; border-bottom: 1px solid #2a2622; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #221f1b; }
  .nav .btn { margin-top: 10px; }
}

/* flashes */
.flashes { margin: 18px auto 0; }
.flash { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid; font-size: .94rem; }
.flash.success { background: #edf5ee; border-color: #b9d6bd; color: #24502d; }
.flash.error { background: #fbeeec; border-color: #e8c0b9; color: #7a2a1e; }

/* hero */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: var(--paper); }
.hero p.lead { font-size: 1.1rem; color: #d9cfbf; max-width: 520px; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.hero-media img { width: 100%; aspect-ratio: 966/300; object-fit: cover; }
.hero-media .script { position: absolute; left: 18px; bottom: 10px; font-size: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero-price { margin-top: 26px; display: flex; gap: 28px; flex-wrap: wrap; color: #cbbfae; font-size: .86rem; }
.hero-price strong { display: block; font-family: var(--display); font-stretch: 125%; font-size: 1.6rem; color: var(--camel); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; } }

.page-hero { background: var(--ink); color: var(--paper); padding: 56px 0 50px; }
.page-hero h1 { color: var(--paper); margin-bottom: .3em; }
.page-hero p { color: #d9cfbf; max-width: 640px; font-size: 1.05rem; margin: 0; }
.crumbs { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; color: #a99a86; }
.crumbs a { color: #a99a86; text-decoration: none; }

/* hero banner (designed image with a live button over the drawn one) */
.hero-banner { background: #0d0a08; }
.banner-frame { position: relative; max-width: 1774px; margin: 0 auto; }
.banner-frame img { width: 100%; height: auto; }
.banner-cta {
  position: absolute; left: 3.4%; top: 70%; width: 20.9%; height: 10.8%;
  border-radius: 999px; color: transparent; font-size: 0; overflow: hidden;
  transition: box-shadow .15s, background .15s;
}
.banner-cta:hover { background: rgba(255,255,255,.08); box-shadow: 0 0 0 2px rgba(178,153,99,.65); }
.banner-cta:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.banner-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.banner-mobile { display: none; }
@media (max-width: 760px) {
  .banner-frame { display: none; }
  .banner-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; padding-top: 36px; padding-bottom: 20px; color: var(--paper); }
  .banner-text h1 { color: var(--paper); font-size: 2.1rem; margin-bottom: .35em; }
  .banner-text p { color: #d9cfbf; }
  .banner-mobile { display: block; }
  .banner-mobile img { width: 100%; }
}

/* feature strip */
.features { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.features ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features li { display: flex; gap: 12px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.features svg { width: 30px; height: 30px; color: var(--tan); flex: none; }
@media (max-width: 760px) { .features ul { grid-template-columns: 1fr 1fr; } }

/* sections */
section.block { padding: 76px 0; }
section.block.tight { padding: 52px 0; }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h2, section.dark h3 { color: var(--paper); }
section.dark .muted { color: #b5a893; }
section.tan { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.three, .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.rounded { border-radius: var(--radius); overflow: hidden; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.style-card { display: flex; flex-direction: column; }
.style-card .swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.swatch { font-size: .72rem; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; background: var(--paper); }
.style-card .price { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; margin-top: auto; }
.style-icon { width: 100%; aspect-ratio: 16/9; background: var(--ink); border-radius: 4px; display: grid; place-items: center; margin-bottom: 18px; }
.style-icon svg { width: 46%; color: var(--camel); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { counter-increment: step; border-top: 2px solid var(--tan); padding-top: 18px; }
.steps li::before { content: '0' counter(step); font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.8rem; color: var(--camel); display: block; margin-bottom: 6px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.price-box { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 30px; border: 1px solid #2a2622; }
.price-box .big { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3.2rem; color: var(--camel); line-height: 1; }
.price-box ul { padding-left: 18px; color: #d9cfbf; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1/1.1; object-fit: cover; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:last-child { display: none; } }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--tan); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.cta-band { background: var(--tan); color: var(--paper); padding: 54px 0; }
.cta-band h2 { color: var(--paper); margin: 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); }

/* forms */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password],
input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid #cfc2ab; border-radius: 4px;
  background: var(--white); color: var(--text); min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tan); box-shadow: 0 0 0 3px rgba(163,107,63,.18); }
input[type=file] { font-size: .9rem; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--tan); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .row2, .row3 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
legend { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1rem; letter-spacing: .04em; margin-bottom: 14px; padding: 0; }
.hp { position: absolute; left: -5000px; }

/* builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding: 40px 0 80px; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } }
.builder-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 700; margin-right: 10px; font-family: var(--body); font-stretch: 100%; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; border: 1.5px solid var(--line); border-radius: 4px; padding: 13px 14px; cursor: pointer; background: var(--paper); font-weight: 600; font-size: .9rem; height: 100%; }
.choice small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; margin-top: 3px; }
.choice input:checked + span { border-color: var(--tan); background: #fbf5ec; box-shadow: inset 0 0 0 1px var(--tan); }
.choice input:focus-visible + span { outline: 2px solid var(--tan); outline-offset: 2px; }
.color-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chips .choice span { padding: 9px 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); flex: none; }
.placement { border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 12px; background: var(--paper); position: relative; }
.placement .remove { position: absolute; top: 10px; right: 12px; }
.assistant { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.assistant h2 { color: var(--paper); font-size: 1.05rem; }
.assistant textarea { min-height: 80px; }
.assistant .questions { color: var(--camel); font-size: .88rem; margin: 10px 0 0; }
.summary { position: sticky; top: 92px; }
.summary .card { padding: 22px; }
.summary table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.summary td { padding: 7px 0; vertical-align: top; border-bottom: 1px dashed var(--line); }
.summary td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.summary .total td { font-weight: 800; font-size: 1.05rem; border-bottom: 0; padding-top: 12px; }
.per-hat { background: var(--ink); color: var(--paper); border-radius: 4px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.per-hat strong { font-family: var(--display); font-stretch: 125%; font-size: 1.6rem; color: var(--camel); }
.notice { background: #fbf5ec; border: 1px solid #ecd9bf; border-radius: 4px; padding: 12px 14px; font-size: .88rem; margin-top: 12px; }
.errors { background: #fbeeec; border: 1px solid #e8c0b9; color: #7a2a1e; border-radius: 4px; padding: 12px 16px; margin-bottom: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.design-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }

.brand-tabs { margin-bottom: 14px; }
.brand-tabs button { padding: 8px 14px; border-radius: 99px; color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.brand-tabs button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.color-search { margin-bottom: 12px; max-width: 420px; }
.color-chips.scroll { max-height: 330px; overflow-y: auto; padding: 2px; border: 1px solid var(--line); border-radius: 4px; padding: 10px; background: var(--paper); }
.color-chips .choice[hidden], #styles .choice[hidden] { display: none; }

/* design studio */
.studio { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; padding: 40px 0 80px; align-items: start; }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.stage { background: var(--ink); border-radius: var(--radius); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; color: #8e8273; text-align: center; padding: 20px; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.spinner { width: 42px; height: 42px; border: 3px solid #3a342e; border-top-color: var(--camel); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.thumbs a { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }

/* order status */
.progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 10px 0 30px; list-style: none; padding: 0; }
.progress li { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); position: relative; padding-top: 30px; }
.progress li::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); z-index: 1; }
.progress li::after { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.done::before { background: var(--tan); border-color: var(--tan); }
.progress li.done::after { background: var(--tan); }
.progress li.done { color: var(--ink); }
@media (max-width: 560px) { .progress li { font-size: .58rem; } }
.status-pill, .pill { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.pill.new { background: #e6eef8; color: #24466e; }
.pill.quoted, .pill.quote { background: #f3ead7; color: #7a5a1a; }
.pill.proofing { background: #efe5f5; color: #5a2f74; }
.pill.approved { background: #e3f1ea; color: #22573a; }
.pill.in_production { background: #fbecd9; color: #8a4b12; }
.pill.ready, .pill.shipped { background: #e1eef0; color: #1f5560; }
.pill.completed, .pill.paid { background: #e3f1e4; color: #2c5c32; }
.pill.cancelled, .pill.unpaid { background: #f6e3e0; color: #7a2a1e; }
.pill.deposit, .pill.partial { background: #f3ead7; color: #7a5a1a; }
.proof-box { border: 2px solid var(--tan); border-radius: var(--radius); padding: 22px; background: var(--white); }
.proof-box img { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 16px; }
table.lines { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.lines th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 6px; }
table.lines td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines .num { text-align: right; white-space: nowrap; }
table.lines tfoot td { border: 0; padding: 5px 6px; }
table.lines tfoot tr.grand td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--ink); padding-top: 10px; }

/* style photos */
.style-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; margin-bottom: 18px; background: var(--paper-2); }
.choice-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; margin-bottom: 8px; background: var(--paper-2); }

/* home page builder */
.build-section { padding-top: 64px; scroll-margin-top: 72px; }
.build-head { margin-bottom: -12px; }
.build-head p { max-width: 600px; }
.build-section .builder { padding-top: 24px; }

/* style guide */
a.brand-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.brand-card:hover { border-color: var(--tan); transform: translateY(-2px); color: var(--ink); }
.guide-card[hidden] { display: none; }
.guide-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.guide-icon { width: 64px; height: 44px; background: var(--ink); border-radius: 4px; display: grid; place-items: center; flex: none; }
.guide-icon svg { width: 42px; color: var(--camel); }
.guide-specs { grid-template-columns: 100px 1fr; font-size: .85rem; background: var(--paper); border-radius: 4px; padding: 12px 14px; }
.more-colors summary { cursor: pointer; color: var(--tan); font-weight: 600; margin: 4px 0 10px; }
.guide-filters label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.guide-filters select { width: auto; }
table.compare th, table.compare td { white-space: nowrap; padding: 10px 12px; }

/* work gallery */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .4s; }
.work-card:hover img { transform: scale(1.03); }
.work-card figcaption { padding: 14px 16px 16px; }
.work-card h2, .work-card h3 { font-size: .95rem; margin: 0 0 4px; }
.work-card p { margin: 0; font-size: .82rem; color: var(--muted); }
.work-card .tech { color: var(--tan); margin-top: 4px; font-weight: 600; }
.work-card.dark { background: var(--ink-2); border-color: #2a2622; }
.work-card.dark h3 { color: var(--paper); }
.work-card.dark p { color: #b5a893; }
.hero-media.custom img { aspect-ratio: 16/9; }

/* footer */
.site-footer { background: var(--ink); color: #b5a893; padding: 60px 0 30px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { color: var(--paper); font-size: .78rem; letter-spacing: .18em; margin-bottom: 14px; }
.site-footer a { color: #d9cfbf; text-decoration: none; }
.site-footer a:hover { color: var(--camel); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal { border-top: 1px solid #24201c; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }
.footer-brand svg { width: 64px; height: 42px; color: var(--paper); margin-bottom: 10px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ============================ admin ============================ */
body.admin { background: #f4efe6; }
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--paper); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { margin: 0 6px 26px; }
.admin-side .brand-name { font-size: .74rem; white-space: normal; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; color: #d9cfbf; text-decoration: none; padding: 10px 12px; border-radius: 4px; font-size: .88rem; font-weight: 600; margin-bottom: 2px; }
.admin-side nav a:hover { background: var(--ink-3); color: var(--paper); }
.admin-side nav a.active { background: var(--tan); color: var(--paper); }
.admin-side .count { background: var(--camel); color: var(--ink); border-radius: 99px; font-size: .7rem; padding: 1px 8px; }
.admin-side .section { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: #7d7062; margin: 20px 12px 8px; }
.admin-side .who { border-top: 1px solid #24201c; margin-top: 24px; padding: 16px 12px 0; font-size: .8rem; color: #a99a86; }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.admin-mobile-bar { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 30% 0 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; height: 100%; }
  .admin-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
  .admin-mobile-bar { display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); padding: 12px 16px; position: sticky; top: 0; z-index: 40; }
  .admin-main { padding: 20px 16px 50px; }
}
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 1rem; letter-spacing: .05em; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel h2 .actions { font-family: var(--body); font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kpi .value { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.7rem; margin-top: 6px; }
.kpi .value.pos { color: var(--ok); }
.kpi .value.neg { color: var(--bad); }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 10px; border-bottom: 1px solid #efe8db; vertical-align: top; }
table.data tr:hover td { background: #fbf8f2; }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data a.row-link { font-weight: 700; color: var(--ink); text-decoration: none; }
table.data a.row-link:hover { color: var(--tan); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.filters > * { flex: 0 1 auto; }
.filters input[type=search] { min-width: 240px; }
.filters select, .filters input { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 600; background: var(--white); border: 1px solid var(--line); }
.tabs a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1200px) { .order-grid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .8rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.flags { list-style: none; padding: 0; margin: 10px 0 0; }
.flags li { background: #fbf1e3; border-left: 3px solid var(--warn); padding: 8px 12px; margin-bottom: 6px; font-size: .86rem; border-radius: 0 4px 4px 0; }
.ai-summary { background: #f6f1e7; border-radius: 4px; padding: 12px 14px; font-size: .9rem; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .84rem; max-height: 420px; overflow-y: auto; }
.timeline li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--camel); }
.timeline time { display: block; color: var(--muted); font-size: .74rem; }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.file-tile { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); font-size: .76rem; text-decoration: none; color: var(--ink); display: block; }
.file-tile img, .file-tile .ph { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #eee6d6; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.file-tile div { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.items-edit td { padding: 6px 4px; }
.items-edit input { min-height: 38px; padding: 7px 9px; font-size: .9rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .bar { width: 42%; max-width: 18px; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .bar.rev { background: var(--tan); }
.bars .bar.exp { background: #cfc2ab; }
.bars .lbl { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--tan); vertical-align: -1px; }
.legend span.exp::before { background: #cfc2ab; }
.inline-form { display: inline; }
.stack > * + * { margin-top: 12px; }
.ok-dot, .no-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.ok-dot { background: var(--ok); } .no-dot { background: #cdbfa8; }
.email-preview { border: 1px solid var(--line); border-radius: 4px; width: 100%; height: 640px; background: var(--paper); }
code.var { background: var(--paper-2); padding: 2px 6px; border-radius: 3px; font-size: .8rem; display: inline-block; margin: 2px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--paper); border-radius: var(--radius); padding: 34px; }
.login-card .brand { color: var(--ink); justify-content: center; margin-bottom: 22px; }
.login-card .brand svg { color: var(--ink); }
.attention a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #efe8db; text-decoration: none; color: var(--ink); font-size: .88rem; }
.attention a:hover { color: var(--tan); }
