/* ============================================================
   WSMUnited® 2026 — "Forged precision"
   Shared stylesheet for every page. Fonts are self-hosted (no Google requests).
   ============================================================ */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink:        #2a241d;
  --ink-soft:   #3d362e;
  --paper:      #f6f2ea;
  --paper-dim:  #e7e1d6;
  --brass:      #c68b4e;
  --brass-deep: #9c6a37;
  --line-warm:  #d6cdbd;

  --bg: var(--paper);
  --text: var(--ink);
  --text-on-dark: var(--paper);
  --text-muted: #6b6257;
  --text-muted-on-dark: #c9c0b2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius: 6px;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); max-width: var(--measure); }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
section { padding: var(--space-24) 0; }
@media (max-width: 700px) { section { padding: var(--space-16) 0; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px; z-index: 200; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-deep); margin: 0 0 var(--space-4); }
.on-dark .eyebrow { color: var(--brass); }
hr.rule { border: 0; border-top: 1px solid var(--brass); width: 56px; margin: 0 0 var(--space-6); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(246,242,234,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-warm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--space-4); position: relative; }
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: .01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: flex-start; }
.brand img { height: 40px; width: auto; }
.brand sup { font-size: 11px; color: var(--ink); margin-left: 2px; line-height: 1; }
.footer-brand { display: inline-flex; align-items: flex-start; margin-bottom: var(--space-4); }
.footer-brand img { height: 40px; width: auto; }
.footer-brand sup { font-size: 11px; margin-left: 2px; line-height: 1; }
.main-nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .18s, color .18s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brass-deep); border-bottom-color: var(--brass); }
.header-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--paper); background: var(--ink); padding: 10px 18px; border-radius: 999px; transition: background .18s, transform .18s; white-space: nowrap; }
.header-call:hover { background: var(--brass-deep); transform: translateY(-1px); }
.nav-toggle { display: none; border: 1px solid var(--line-warm); background: none; border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font: 600 14px var(--font-body); color: var(--ink); }
@media (max-width: 1020px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: -24px; right: -24px; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-warm); padding: var(--space-4) 24px var(--space-6); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--space-2); }
  .main-nav a { display: block; padding: 12px 4px; font-size: 17px; }
}
@media (max-width: 560px) {
  .site-header .wrap { min-height: 60px; }
  .header-call { padding: 10px 12px; }
  .header-call .num { display: none; }
  .brand img { height: 34px; }
}

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; border-radius: 999px; font: 700 16px var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .18s, background .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--brass); color: #2b2016; }
.btn-primary:hover { background: #d59a5c; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(246,242,234,.55); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--brass-deep); transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- home hero ---------- */
.hero {
  background-color: var(--ink); background-position: center 45%; background-size: cover; background-repeat: no-repeat;
  background-image: url("photos/hero-grand-staircase-1600.jpg");
  background-image: -webkit-image-set(url("photos/hero-grand-staircase-1600.jpg") 1x, url("photos/hero-grand-staircase-2048.jpg") 2x);
  background-image: image-set(url("photos/hero-grand-staircase-1600.jpg") 1x, url("photos/hero-grand-staircase-2048.jpg") 2x);
}
@media (min-width: 1700px) { .hero { background-image: url("photos/hero-grand-staircase-2048.jpg"); } }
@media (max-width: 1000px) and (min-width: 701px) {
  .hero { background-image: url("photos/hero-grand-staircase-1080.jpg");
    background-image: image-set(url("photos/hero-grand-staircase-1080.jpg") 1x, url("photos/hero-grand-staircase-2048.jpg") 2x); }
}
@media (max-width: 700px) {
  .hero { background-position: center 30%; background-image: url("photos/hero-mobile-curved-oak-960.jpg");
    background-image: -webkit-image-set(url("photos/hero-mobile-curved-oak-640.jpg") 1x, url("photos/hero-mobile-curved-oak-960.jpg") 2x, url("photos/hero-mobile-curved-oak-1280.jpg") 3x);
    background-image: image-set(url("photos/hero-mobile-curved-oak-640.jpg") 1x, url("photos/hero-mobile-curved-oak-960.jpg") 2x, url("photos/hero-mobile-curved-oak-1280.jpg") 3x); }
}
.hero { position: relative; min-height: 86vh; min-height: 86dvh; display: flex; align-items: flex-end; color: var(--text-on-dark); isolation: isolate; padding: var(--space-24) 0 var(--space-16); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(30,26,21,.9) 8%, rgba(30,26,21,.45) 55%, rgba(30,26,21,.55)); }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); font-weight: 300; max-width: 15ch; color: var(--paper); }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .eyebrow { color: var(--brass); }
.hero p.lede { font-size: clamp(17px, 2vw, 21px); max-width: 54ch; color: var(--text-muted-on-dark); }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: var(--space-16) 0 var(--space-12); }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 300; color: var(--paper); max-width: 22ch; }
.page-hero h1 em { font-style: italic; color: var(--brass); }
.page-hero p { color: var(--text-muted-on-dark); font-size: 18px; }
.page-hero .eyebrow { color: var(--brass); }
.crumbs { font-size: 14px; color: var(--text-muted-on-dark); margin-bottom: var(--space-6); }
.crumbs a { color: var(--text-muted-on-dark); }
.crumbs a:hover { color: var(--brass); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }

/* ---------- trust bar ---------- */
.trust { background: var(--ink); color: var(--text-muted-on-dark); padding: var(--space-6) 0; border-top: 1px solid #3d362e; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); justify-content: center; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--brass); flex: none; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: var(--space-12); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 300; max-width: 20ch; }
.section-head h2 em { font-style: italic; color: var(--brass-deep); }
.section-head p { color: var(--text-muted); font-size: 18px; }
.on-dark .section-head h2 em { color: var(--brass); }

/* ---------- products (home) ---------- */
.products-grid { display: grid; gap: var(--space-12) var(--space-8); grid-template-columns: 1fr 1fr; }
.product { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: center; text-decoration: none; color: inherit; }
.product-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--paper-dim); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.product:hover .product-img img { transform: scale(1.04); }
.product h3 { font-size: 26px; margin-bottom: var(--space-2); }
.product p { color: var(--text-muted); font-size: 16px; margin-bottom: var(--space-3); }
.product .num { font-family: var(--font-display); font-size: 15px; color: var(--brass-deep); letter-spacing: .15em; display: block; margin-bottom: var(--space-2); }
.more { font-weight: 700; font-size: 15px; color: var(--brass-deep); }
.product:hover .more { text-decoration: underline; }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .product { grid-template-columns: 1fr; } .product-img { aspect-ratio: 4/5; max-height: 70vh; } }

/* ---------- gallery (home) ---------- */
.gallery { background: var(--paper-dim); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3 / 4; background: var(--paper-dim); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 10px; font-size: 13px; font-weight: 600; color: var(--paper); background: linear-gradient(to top, rgba(30,26,21,.85), transparent); }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); } }

/* ---------- process ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.process-step { border-top: 2px solid var(--brass); padding-top: var(--space-4); }
.process-step .step-no { font-family: var(--font-display); font-size: 44px; font-weight: 300; color: var(--brass-deep); line-height: 1; display: block; margin-bottom: var(--space-3); }
.process-step h3 { font-size: 20px; font-family: var(--font-body); font-weight: 700; }
.process-step p { color: var(--text-muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- consulting (dark) ---------- */
.consulting { background: var(--ink); color: var(--text-on-dark); }
.consulting .section-head p { color: var(--text-muted-on-dark); }
.consulting-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-16); align-items: start; }
@media (max-width: 900px) { .consulting-grid { grid-template-columns: 1fr; gap: var(--space-12); } }
.consulting h3 { font-size: 22px; font-weight: 500; color: var(--paper); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }
@media (max-width: 560px) { .svc-list { grid-template-columns: 1fr; } }
.svc-list li { padding: var(--space-3) var(--space-4); border: 1px solid #554c41; border-radius: var(--radius); font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.svc-list svg { color: var(--brass); flex: none; }
.cred-card { background: #362f27; border: 1px solid #554c41; border-radius: var(--radius); padding: var(--space-8); }
.cred-card .who { font-family: var(--font-display); font-size: 28px; color: var(--paper); margin: 0 0 2px; }
.cred-card .titles { color: var(--brass); font-weight: 700; letter-spacing: .06em; font-size: 14px; text-transform: uppercase; margin-bottom: var(--space-6); }
.cred-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.cred-list li { padding: var(--space-3) 0; border-bottom: 1px solid #554c41; font-size: 15.5px; color: var(--text-muted-on-dark); }
.cred-list li:last-child { border-bottom: 0; }
.cred-list strong { color: var(--paper); font-weight: 700; }
.cred-note { margin: 0; font-size: 15px; color: var(--text-muted-on-dark); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-12); } }
.contact-item { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: var(--space-6); }
.contact-item svg { color: var(--brass-deep); flex: none; margin-top: 4px; }
.contact-item .label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.contact-item a { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--brass-deep); }
.contact-item p { margin: 0; font-size: 16px; color: var(--text-muted); }
form.quote { display: grid; gap: var(--space-4); }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; font: 500 16px var(--font-body); color: var(--ink); background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(198,139,78,.25); }
.field .err { display: none; color: #b3402a; font-size: 13.5px; font-weight: 600; margin: 5px 0 0; }
.field.invalid input, .field.invalid textarea { border-color: #b3402a; }
.field.invalid .err { display: block; }
.form-note { font-size: 14px; color: var(--text-muted); margin: 0; }
.form-success { display: none; padding: var(--space-4); border-radius: var(--radius); background: #dcefe0; color: #285c35; font-weight: 600; }
.form-success.show { display: block; }

/* ---------- cards (category pages) ---------- */
.intro { font-size: 18px; color: var(--text-muted); max-width: 70ch; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-8) var(--space-6); }
.card { text-decoration: none; color: inherit; display: block; }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-3); } .card h3 { font-size: 14px; } }
.card .card-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--paper-dim); margin-bottom: var(--space-3); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.card:hover img { transform: scale(1.04); }
.card .card-no { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); }
.card h3 { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.45; margin: 4px 0 0; }
.sub-head { margin: var(--space-16) 0 var(--space-6); font-size: clamp(26px, 3vw, 36px); font-weight: 300; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .type-grid { grid-template-columns: 1fr 1fr; } }
.type-grid .card .card-img { aspect-ratio: 3/4; }
.type-grid .card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.type-grid .card p { font-size: 15px; color: var(--text-muted); margin: 4px 0 0; }

/* ---------- project page ---------- */
.project { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: var(--space-8); } }
.viewer { margin: 0; }
.viewer-main { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-dim); }
.viewer-main img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--paper-dim); }
.thumbs { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); list-style: none; padding: 0; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: none; width: 84px; height: 84px; }
.thumbs button[aria-pressed="true"] { border-color: var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.project-info h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 300; }
.project-info .caption { font-size: 18px; color: var(--text-muted); }
.spec { list-style: none; padding: 0; margin: var(--space-6) 0; border-top: 1px solid var(--line-warm); }
.spec li { padding: var(--space-3) 0; border-bottom: 1px solid var(--line-warm); font-size: 15.5px; }
.spec strong { display: inline-block; min-width: 110px; color: var(--text-muted); font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--line-warm); flex-wrap: wrap; }
.pager a { font-weight: 700; text-decoration: none; color: var(--ink); }
.pager a:hover { color: var(--brass-deep); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--paper-dim); padding: var(--space-16) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; margin: 0; max-width: 24ch; }
.cta-band .cta-row { margin-top: 0; }

/* ---------- prose (privacy etc.) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin: var(--space-8) 0 var(--space-2); }
.prose p { color: #3f3830; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-muted-on-dark); padding: var(--space-12) 0 var(--space-8); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin: 0 0 var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--brass); }
.footer-brand { font-family: var(--font-display); font-size: 20px; color: var(--paper); }
.fine { font-size: 13px; opacity: .75; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid #3d362e; max-width: none; }

/* ---------- reveal on scroll ---------- */
html.jsio .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease-out, transform .6s ease-out; }
html.jsio .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.jsio .reveal { opacity: 1; transform: none; transition: none; } }
