@import url('tokens.css');

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--font-body);
}
img, svg, picture { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -0.005em; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); font-weight: 600; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible { outline-color: var(--ivory); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  background: var(--ink); color: var(--ivory); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 720px) { .container { padding-inline: var(--space-8); } }

.muted { color: var(--ink-muted); }
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--champagne); }

/* ---- Buttons: pill everywhere ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0.625rem 1.375rem;
  border-radius: var(--radius-pill); border: 1.5px solid var(--ink);
  font: 600 var(--text-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--ivory);
  transition: background-color .15s, color .15s;
}
.btn:hover { background: #3A3834; border-color: #3A3834; text-decoration: none; }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--ivory); }
.btn--quiet { background: transparent; border-color: transparent; color: var(--ink); padding-inline: var(--space-3); }
.btn--quiet:hover { background: var(--ivory-deep); border-color: var(--ivory-deep); }
.btn--small { min-height: 36px; padding: 0.375rem 1rem; font-size: var(--text-xs); }
.on-ink .btn { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.on-ink .btn--secondary { background: transparent; color: var(--ivory); }

/* ---- Header ------------------------------------------------------------ */
.site-header { border-bottom: 1px solid var(--line); background: var(--ivory); }
.utility-bar { background: var(--ink); color: #E9E4D8; font-size: var(--text-xs); }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 36px; }
.utility-bar nav { display: flex; gap: var(--space-6); }
.utility-bar a { color: #E9E4D8; text-decoration: none; padding-block: var(--space-2); }
.utility-bar a:hover { text-decoration: underline; }
.utility-bar a:focus-visible { outline-color: var(--ivory); }
.site-header .main-bar { display: flex; align-items: center; gap: var(--space-6); min-height: 84px; }
.site-header .brand img { height: 58px; width: auto; margin-inline: -9px; }  /* SVGs include clear space */
.site-header .brand .brand-compact { display: none; height: 46px; }
.site-nav { display: flex; gap: var(--space-6); margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: var(--text-sm); padding-block: var(--space-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 var(--champagne); }
.header-actions { display: flex; gap: var(--space-2); align-items: center; }
.menu { display: none; }

@media (max-width: 1120px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 220px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel);
    padding: var(--space-2); display: grid; box-shadow: 0 8px 24px rgb(34 33 31 / .08);
  }
  .menu-panel a { padding: var(--space-3) var(--space-4); text-decoration: none; border-radius: 4px; }
  .menu-panel a:hover { background: var(--ivory); }
}
@media (max-width: 560px) {
  .site-header .brand .brand-full { display: none; }
  .site-header .brand .brand-compact { display: block; }
  .header-actions .btn--quote { display: none; }
  .utility-bar .endorsement { display: none; }
  .utility-bar .container { justify-content: flex-end; }
}

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: var(--space-16); }
.section--band { background: var(--ivory-deep); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head p { margin: 0; }
@media (min-width: 720px) { .section { padding-block: var(--space-24); } }

.hero { padding-block: var(--space-16) var(--space-12); }
.hero .container { display: grid; gap: var(--space-12); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: var(--text-lg); color: var(--ink-muted); max-width: 46ch; }
.hero .tagline { font-family: var(--font-display); font-style: italic; color: var(--ink); margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
@media (min-width: 900px) { .hero .container { grid-template-columns: 1.1fr 1fr; } }

/* Photo placeholder: stands in until real project photography is supplied. */
.photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-panel);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgb(181 150 98 / .10) 14px 15px),
    var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: var(--space-6);
  color: var(--ink-muted); font-size: var(--text-sm);
}
.photo strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: var(--space-1); }
.photo--tall { aspect-ratio: 4 / 5; }
figure { margin: 0; }
figcaption { font-size: var(--text-sm); color: var(--ink-muted); margin-top: var(--space-3); }
figcaption b { color: var(--ink); font-weight: 600; }

/* Service cards */
.grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--champagne);
  border-radius: var(--radius-panel); padding: var(--space-6); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink-muted); font-size: var(--text-sm); }
.card ul { margin: 0 0 var(--space-6); padding-left: 1.1em; font-size: var(--text-sm); }
.card li { margin-bottom: var(--space-1); }
.card .card-link { margin-top: auto; font-weight: 600; font-size: var(--text-sm); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 1px solid var(--champagne); padding-top: var(--space-4); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: var(--text-xl); display: block; margin-bottom: var(--space-2);
}
.steps p { color: var(--ink-muted); font-size: var(--text-sm); }

/* CTA band */
.cta { background: var(--ink); color: var(--ivory); border-radius: var(--radius-panel); padding: var(--space-12) var(--space-8); display: grid; gap: var(--space-6); align-items: center; }
.cta p { color: #D9D4C8; }
@media (min-width: 800px) { .cta { grid-template-columns: 1fr auto; } }

/* ---- Footer ------------------------------------------------------------ */
.designs-banner {
  margin-top: var(--space-16);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(110deg, #f1e4cb, var(--ivory-deep) 75%);
  border-top: 1px solid var(--champagne);
}
.designs-banner-inner { display: grid; align-items: center; justify-items: start; gap: var(--space-6); }
.designs-banner h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: var(--space-2); }
.designs-banner p { max-width: 56ch; margin: 0; color: var(--ink-muted); }
@media (min-width: 800px) { .designs-banner-inner { grid-template-columns: 1fr auto; } }
.site-footer { background: var(--ink); color: var(--ivory); padding-block: var(--space-16) var(--space-8); margin-top: var(--space-16); }
.designs-banner + .site-footer { margin-top: 0; }
.site-footer .footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 480px) { .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); }
.site-footer .footer-brand { font: 500 var(--text-xl)/1.15 var(--font-display); letter-spacing: normal; text-transform: none; color: var(--ivory); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer a { text-decoration: none; color: #E9E4D8; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { color: #CFC9BC; font-size: var(--text-sm); }
.site-footer .footer-company { color: var(--champagne); font-weight: 600; }
.footer-art {
  position: relative;
  overflow: hidden;
  height: clamp(13rem, 30vw, 21rem);
  margin-top: var(--space-12);
  border: 1px solid #b5966238;
  background:
    radial-gradient(ellipse at center, #b5966214, transparent 72%),
    linear-gradient(90deg, #b5966211 1px, transparent 1px) center / 2rem 2rem,
    linear-gradient(#b5966211 1px, transparent 1px) center / 2rem 2rem;
}
.footer-art::before {
  content: '';
  position: absolute;
  inset: -26% 4%;
  background: linear-gradient(115deg, #8c7858 18%, #dfc69d 51%, #9e7949 82%);
  mask: url('../assets/fbs-footer-logo.png') center / contain no-repeat;
  opacity: .32;
}
.footer-art::after {
  content: '';
  position: absolute;
  inset: 9% 4%;
  border: 1px dashed #b5966240;
}
.footer-base { padding-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); justify-content: space-between; font-size: var(--text-xs); color: #B9B3A6; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.endorsement { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); }

/* ---- Forms ------------------------------------------------------------- */
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-8) var(--space-6); }
@media (min-width: 720px) { .form-panel { padding: var(--space-12); } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-8); }
legend { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-4); padding: 0; }
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-6); }
.field-row { display: grid; gap: 0 var(--space-6); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, .label { font-weight: 600; font-size: var(--text-sm); }
.hint { font-size: var(--text-xs); color: var(--ink-muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 0.625rem 0.875rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-panel);
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.choices { display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .choices { grid-template-columns: repeat(2, 1fr); } }
.choice { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--line-strong); border-radius: var(--radius-panel); cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ivory); }
.choice input { margin-top: .3em; accent-color: var(--ink); width: 18px; height: 18px; }
.file-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-panel); padding: var(--space-6); text-align: center; background: var(--ivory); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---- Breadcrumb, page head -------------------------------------------- */
.page-head { padding-block: var(--space-12) var(--space-8); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: var(--text-sm); color: var(--ink-muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--ink-muted); }
.two-col { display: grid; gap: var(--space-12); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.6fr 1fr; } }
.aside-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-6); align-self: start; }
.aside-panel h2 { font-size: var(--text-lg); }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-2); }
.check-list li { padding-left: 1.5em; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: .7em; height: 1px; background: var(--champagne); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0 0 var(--space-6); font-size: var(--text-sm); }
dl.facts dt { color: var(--ink-muted); }
dl.facts dd { margin: 0; font-weight: 600; }

/* ---- App shell (portal + studio) -------------------------------------- */
.app-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.app-bar .container { display: flex; align-items: center; gap: var(--space-4); min-height: 60px; }
.app-bar img { height: 28px; width: auto; }
.app-bar .divider { width: 1px; height: 24px; background: var(--line); }
.app-bar .app-name { font-weight: 600; font-size: var(--text-sm); }
.app-bar .spacer { flex: 1; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ivory-deep); display: grid; place-items: center; font-weight: 600; font-size: var(--text-xs); border: 1px solid var(--line-strong); }
.status { display: inline-flex; align-items: center; gap: .4em; font-size: var(--text-xs); font-weight: 600; padding: .2em .7em; border-radius: var(--radius-pill); border: 1px solid currentColor; white-space: nowrap; }
.status--review { color: var(--attention); }
.status--done { color: var(--success); }
.status--progress { color: var(--ink-muted); }

table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--white); }
table.data th, table.data td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
table.data th { font-weight: 600; color: var(--ink-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); }

/* ---- Portal: sign-in --------------------------------------------------- */
.entry { min-height: 100vh; display: grid; place-items: center; padding: var(--space-8) var(--space-4); }
.entry-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--champagne); border-radius: var(--radius-panel); padding: var(--space-8) var(--space-6); }
@media (min-width: 480px) { .entry-card { padding: var(--space-12); } }
.entry-card .entry-logo { width: 190px; margin: calc(-1 * var(--space-4)) auto var(--space-6); }
.entry-card h1 { font-size: var(--text-xl); text-align: center; }
.entry-card .btn { width: 100%; }
.entry-foot { text-align: center; font-size: var(--text-sm); color: var(--ink-muted); margin-top: var(--space-6); }
.entry-foot p { margin-inline: auto; }

/* ---- Portal: project + proof ------------------------------------------ */
.project-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: start; padding-block: var(--space-8) var(--space-6); }
.project-head h1 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.proof-layout { display: grid; gap: var(--space-6); padding-bottom: var(--space-16); }
@media (min-width: 1000px) { .proof-layout { grid-template-columns: 1fr 340px; } }
.proof-stage { background: #E9E7E2; border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-8) var(--space-4); display: grid; place-items: center; min-height: 420px; position: relative; }
.proof-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); font-size: var(--text-sm); }
.proof-toolbar .group { display: flex; gap: var(--space-1); align-items: center; }
/* Neutral surround so artwork color is judged without brand gold nearby. */
.artboard { background: var(--white); box-shadow: 0 1px 3px rgb(0 0 0 / .12), 0 8px 24px rgb(0 0 0 / .06); width: min(100%, 440px); aspect-ratio: 3.5 / 2; display: grid; place-items: center; color: #9A968E; font-size: var(--text-sm); text-align: center; padding: var(--space-4); position: relative; }
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: var(--text-xs); font-weight: 700; display: grid; place-items: center; border: 2px solid var(--white); }
.side-panel { display: grid; gap: var(--space-4); align-content: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-6); }
.panel h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: var(--space-4); }
.comment { display: grid; grid-template-columns: 26px 1fr; gap: var(--space-3); font-size: var(--text-sm); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; padding-top: 0; }
.comment p { margin: 0; }
.comment .meta { color: var(--ink-muted); font-size: var(--text-xs); }
.decision { display: grid; gap: var(--space-2); }
.decision .btn { width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); display: grid; gap: var(--space-2); }
.timeline li { display: flex; justify-content: space-between; gap: var(--space-3); }
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); overflow-x: auto; }
.tabs a { padding: var(--space-3) var(--space-4); text-decoration: none; font-weight: 500; font-size: var(--text-sm); white-space: nowrap; }
.tabs a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }

/* ---- Studio frame ------------------------------------------------------ */
.studio { display: grid; grid-template-rows: auto auto 1fr; height: 100vh; background: #EDEBE6; }
.studio .app-bar .container { max-width: none; }
.studio-tools { background: var(--white); border-bottom: 1px solid var(--line); display: flex; gap: var(--space-1); padding: var(--space-2) var(--space-4); overflow-x: auto; align-items: center; }
.tool { min-width: 40px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid transparent; background: transparent; font: 500 var(--text-sm) var(--font-body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.tool:hover { background: var(--ivory); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.tool-sep { width: 1px; height: 22px; background: var(--line); margin-inline: var(--space-2); flex: none; }
.studio-body { display: grid; grid-template-columns: 240px 1fr 280px; min-height: 0; }
.studio-panel { background: var(--white); border-right: 1px solid var(--line); padding: var(--space-4); overflow: auto; font-size: var(--text-sm); }
.studio-panel:last-child { border-right: 0; border-left: 1px solid var(--line); }
.studio-panel h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin: var(--space-2) 0 var(--space-3); }
.layer { display: flex; justify-content: space-between; padding: var(--space-2) var(--space-3); border-radius: 4px; }
.layer[aria-selected="true"] { background: var(--ivory); outline: 1px solid var(--line-strong); }
.canvas { display: grid; place-items: center; overflow: auto; padding: var(--space-8); }
.canvas .artboard { width: min(100%, 560px); }
.prop { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-bottom: var(--space-4); }
.prop label { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--ink-muted); font-weight: 600; }
.prop input { min-height: 36px; padding: .35rem .6rem; font-size: var(--text-sm); }
@media (max-width: 900px) {
  .studio { height: auto; min-height: 100vh; }
  .studio-body { grid-template-columns: minmax(0, 1fr); }
  .studio .app-bar .container { gap: var(--space-2); }
  .studio .app-name, .studio .app-bar .status, .studio .app-bar .btn--quiet { display: none; }
  .studio-panel { border: 0; border-bottom: 1px solid var(--line); }
  .studio-panel:last-child { border-left: 0; }
}

/* ---- Home: premium hero, assurances, inquiry --------------------------- */
.hero--premium { padding-bottom: var(--space-8); }
.hero--premium h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); max-width: 15ch; }
.assurances { list-style: none; margin: var(--space-12) 0 0; padding: var(--space-6) 0 0; border-top: 1px solid var(--champagne); display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .assurances { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .assurances { grid-template-columns: repeat(4, 1fr); } }
.assurances strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.assurances span { color: var(--ink-muted); font-size: var(--text-sm); }
.card--ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); border-top-color: var(--champagne); }
.card--ink p { color: #D9D4C8; }
.inquiry { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 900px) { .inquiry { grid-template-columns: 1fr 1.3fr; gap: var(--space-16); } }

/* ---- Inner pages ------------------------------------------------------- */
.page-head .lede { font-size: var(--text-lg); color: var(--ink-muted); max-width: 60ch; }
.subnav { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.solution { display: grid; gap: var(--space-8); padding-block: var(--space-16); border-bottom: 1px solid var(--line); scroll-margin-top: var(--space-8); }
.solution:last-child { border-bottom: 0; }
@media (min-width: 900px) { .solution { grid-template-columns: 1fr 1.2fr; gap: var(--space-16); } }
.solution .cols { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .solution .cols { grid-template-columns: 1fr 1fr; } }
.solution h3 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.solution .check-list { font-size: var(--text-sm); }
.tier-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.qty-table td:first-child, .qty-table th:first-child { width: 40%; }
.estimate { background: var(--ivory); border: 1px solid var(--line-strong); border-radius: var(--radius-panel); padding: var(--space-4) var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; margin-bottom: var(--space-6); }
.estimate strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
.contact-options { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .contact-options { grid-template-columns: repeat(3, 1fr); } }
.contact-options a { text-decoration: none; }
.contact-options .card:hover { border-color: var(--ink-muted); }
[id] { scroll-margin-top: var(--space-6); }
.contact-options .h3-like { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
dl.faq { margin: 0; font-size: var(--text-sm); }
dl.faq dt { font-weight: 600; margin-top: var(--space-4); }
dl.faq dt:first-child { margin-top: 0; }
dl.faq dd { margin: var(--space-1) 0 0; color: var(--ink-muted); }

/* ---- Portal: nav, dashboard, tracking ---------------------------------- */
.app-bar .app-mark { height: 44px; margin-inline: -8px; }
.sample-flag { font-size: var(--text-xs); font-weight: 600; color: var(--attention); border: 1px dashed currentColor; border-radius: var(--radius-pill); padding: .1em .6em; }
.portal-nav { border-top: 1px solid var(--line); }
.portal-nav .container { display: flex; gap: var(--space-1); overflow-x: auto; }
.portal-nav a { padding: var(--space-3) var(--space-4); text-decoration: none; font-weight: 500; font-size: var(--text-sm); white-space: nowrap; }
.portal-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.portal-page { padding-block: var(--space-8) var(--space-16); }
.portal-page > h1 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.stats { display: grid; gap: var(--space-4); margin: var(--space-8) 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-4) var(--space-6); text-decoration: none; display: block; }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; line-height: 1.1; }
.stat span { color: var(--ink-muted); font-size: var(--text-sm); }
a.stat:hover { border-color: var(--ink-muted); }
.dash { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .dash { grid-template-columns: 1fr 340px; } }
.dash > div h2 { font-size: var(--text-xl); }
.dash > div > section + section { margin-top: var(--space-8); }
.tracker { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-1); counter-reset: s; }
.tracker li { font-size: var(--text-xs); color: var(--ink-muted); padding-top: var(--space-3); border-top: 4px solid var(--line); }
.tracker li.done { border-top-color: var(--ink); color: var(--ink); }
.tracker li.current { border-top-color: var(--champagne); color: var(--ink); font-weight: 600; }
.order { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: var(--space-6); }
.order + .order { margin-top: var(--space-4); }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: baseline; }
.order-head h3 { margin: 0; }
.updates { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.updates li { padding-block: var(--space-3); border-top: 1px solid var(--line); }
.updates li:first-child { border-top: 0; padding-top: 0; }
.updates time { display: block; color: var(--ink-muted); font-size: var(--text-xs); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.file-icon { display: inline-grid; place-items: center; width: 34px; height: 40px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 10px; font-weight: 700; color: var(--ink-muted); margin-right: var(--space-3); vertical-align: middle; background: var(--ivory); }
@media (max-width: 640px) { .app-bar .app-name, .sample-flag { display: none; } }
/* Let grid columns shrink below their content so tables scroll inside .table-wrap. */
.two-col > *, .dash > *, .proof-layout > *, .inquiry > *, .grid > *, .solution > * { min-width: 0; }
/* Keep visually-hidden children (table headers, file inputs) inside their scroll box. */
.table-wrap, .section-head { position: relative; }
/* The visible label stands in for a hidden file input, so it shows the focus ring. */
label:has(+ input.visually-hidden:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.hero .assurances-row { display: block; }

/* ---- Form status messages (js/forms.js) ------------------------------- */
.form-status { border-radius: var(--radius-panel); padding: var(--space-4) var(--space-6); margin-bottom: var(--space-6); font-size: var(--text-sm); }
.form-status--error { background: #FBF1E8; border: 1.5px solid var(--attention); color: var(--ink); }
.form-status--success { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--success); padding: var(--space-8) var(--space-6); }
.form-status--success h2 { font-size: var(--text-xl); }
.form-status--success:focus { outline: none; }
.form-status--success:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---- Long-form text (privacy, legal) ---------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-12); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: var(--space-2); }
.footer-base a { color: inherit; }
.privacy-note a { color: inherit; }
.form-actions .privacy-note { flex-basis: 100%; }

/* ---- 404 --------------------------------------------------------------- */
.not-found h1 { max-width: 18ch; }
.not-found .lede { font-size: var(--text-lg); color: var(--ink-muted); }
.not-found-links { list-style: none; padding: var(--space-6) 0 0; margin: var(--space-12) 0 0; border-top: 1px solid var(--champagne); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); }
.not-found-links a { font-weight: 500; }

/* ---- Imagery ----------------------------------------------------------- */
/* Hero: 4:5 beside the headline; 16:10 when stacked, centred on the desk. */
.hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-panel); box-shadow: 0 28px 56px -28px rgb(34 33 31 / .55); }
@media (max-width: 899px) { .hero-media img { aspect-ratio: 16 / 10; object-position: 50% 55%; } }

/* Service cards: full-bleed 4:3 image above the text. */
.card--media { padding-top: 0; overflow: hidden; }
.card--media .card-media { display: block; width: calc(100% + 2 * var(--space-6)); max-width: none; height: auto; margin: 0 calc(-1 * var(--space-6)) var(--space-6); aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card--media:hover, .card--media:focus-within { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgb(34 33 31 / .45); }
.card--media:hover .card-media { transform: scale(1.03); }

/* Concept projects: labelled so they're never mistaken for client work. */
.concept-media { position: relative; overflow: hidden; border-radius: var(--radius-panel); }
.concept-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.concept-badge { position: absolute; left: var(--space-3); top: var(--space-3); background: var(--ivory); color: var(--ink); font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .25em .8em; border-radius: var(--radius-pill); }
.concept-note { max-width: 46ch; }

/* Inline illustrations on inner pages (same treatment as the service cards). */
.figure-media { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-panel); }

/* Reveal on scroll (js/reveal.js adds .reveal-ready only when motion is allowed). */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .card, .card--media .card-media { transition: none; }
  .card--media:hover, .card--media:focus-within, .card--media:hover .card-media { transform: none; }
}
.form-reference { font-weight: 600; color: var(--ink); }

/* ---- Coming soon --------------------------------------------------------- */
.soon-tag { display: inline-block; vertical-align: middle; margin-left: var(--space-2); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; color: var(--ink); background: var(--ivory-deep); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: .05em .65em; }
.on-ink .soon-tag { color: var(--ivory); background: transparent; border-color: #8A8377; }
.card--soon { background: var(--ivory); }
.btn--soon { opacity: .6; cursor: default; }
.btn--soon:hover { background: transparent; color: var(--ink); }
.coming-soon { max-width: 640px; }
