/* ==========================================================================
   Gargus Wood Floors — Southern Oregon
   Dark gallery. The floors are the product, so photography fills the screen
   and a warm near-black ground lets oak and hickory glow.
   Native scroll only.
   ========================================================================== */

@font-face{
  font-family:"Fraunces";
  src:url("../fonts/fraunces-var.woff2") format("woff2-variations"),
      url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Karla";
  src:url("../fonts/karla-var.woff2") format("woff2-variations"),
      url("../fonts/karla-var.woff2") format("woff2");
  font-weight:200 800;font-style:normal;font-display:swap;
}

:root{
  color-scheme:dark;
  accent-color:#e0a35f;

  /* warm near-black — never blue, never grey */
  --ink-900:#0b0a09;
  --ink-800:#1c1815;
  --ink-700:#1e1a16;
  --ink-600:#2a2420;

  --bone-100:#f4efe6;
  --bone-300:#d8d0c3;
  --bone-500:#a89e8e;

  --amber-400:#e0a35f;
  --amber-600:#c8873f;

  --rule:rgba(244,239,230,.14);
  --rule-strong:rgba(244,239,230,.45);

  /* the one light surface, used sparingly for contrast */
  --paper:#f4efe6;
  --paper-ink:#1a1613;

  --display:"Fraunces",Georgia,serif;
  --body:"Karla","Segoe UI",system-ui,-apple-system,sans-serif;

  --step--2:clamp(.76rem,.74rem + .1vw,.82rem);
  --step--1:clamp(.86rem,.84rem + .12vw,.94rem);
  --step-0:clamp(1rem,.97rem + .18vw,1.12rem);
  --step-1:clamp(1.2rem,1.1rem + .5vw,1.5rem);
  --step-2:clamp(1.5rem,1.3rem + 1.1vw,2.2rem);
  --step-3:clamp(1.8rem,1.4rem + 1.5vw,2.75rem);
  --step-4:clamp(2.5rem,1.9rem + 3vw,4.6rem);

  --sp-section:clamp(2.75rem,2rem + 2.6vw,4.75rem);
  --gutter:clamp(1.15rem,4vw,3rem);
  --container:1320px;
  --header-h:74px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,h4,p,figure,blockquote,dl,dd,ul,ol{margin:0}
ul[class],ol[class]{list-style:none;padding:0}
img,picture,svg{max-width:100%;display:block}
img{height:auto}
input,button,textarea,select{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}

html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 18px)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  font-family:var(--body);font-size:var(--step-0);line-height:1.7;
  color:var(--bone-300);background:var(--ink-900);
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:var(--display);color:var(--bone-100);
  font-weight:600;line-height:1.04;letter-spacing:-.018em;text-wrap:balance;
}
h1{font-variation-settings:"opsz" 144,"SOFT" 20}
h2{font-variation-settings:"opsz" 80,"SOFT" 20}
h3,h4{font-variation-settings:"opsz" 36,"SOFT" 20}
.footer h3{font-variation-settings:normal}
h1{font-size:var(--step-4);letter-spacing:-.03em}
h2{font-size:var(--step-3)}
h3{font-size:var(--step-1);letter-spacing:-.01em}
p{max-width:64ch}

a{color:var(--amber-400);text-underline-offset:.2em}
a:hover{color:var(--amber-600)}
:focus-visible{outline:2px solid var(--amber-400);outline-offset:3px}
:focus:not(:focus-visible){outline:none}
::selection{background:var(--amber-600);color:var(--ink-900)}
::placeholder{color:var(--bone-500);opacity:1}

/* ---------- layout ---------- */
.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter)}
.container--narrow{max-width:780px}
.section{padding-block:var(--sp-section)}
.section--raised{background:var(--ink-800)}
.stack>*+*{margin-top:.9rem}

.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--amber-400);color:var(--ink-900);padding:.8rem 1.2rem;font-weight:700}
.skip-link:focus{left:0}

/* ---------- the label: letterspaced caps on a hairline ---------- */
.label{
  display:block;font-family:var(--body);font-weight:600;
  font-size:var(--step--2);letter-spacing:.24em;text-transform:uppercase;
  color:var(--amber-400);margin-bottom:.75rem;
}
.label--rule{border-top:1px solid var(--rule-strong);padding-top:.9rem}

.lede{font-size:var(--step-1);color:var(--bone-100);line-height:1.5;font-family:var(--display);font-weight:400}
.section-head{max-width:62ch;margin-bottom:clamp(1.5rem,2.4vw,2.25rem)}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  font-family:var(--body);font-weight:700;font-size:var(--step-0);
  letter-spacing:.02em;padding:.95rem 1.8rem;border:1px solid transparent;border-radius:2px;
  text-decoration:none;min-height:52px;
  transition:background-color .18s,border-color .18s,color .18s;
}
.btn--primary{background:var(--amber-400);color:var(--ink-900)}
.btn--primary:hover{background:var(--bone-100);color:var(--ink-900)}
.btn--ghost{background:transparent;color:var(--bone-100);border-color:var(--rule-strong)}
.btn--ghost:hover{border-color:var(--amber-400);color:var(--amber-400)}
.btn--onLight{background:var(--ink-900);color:var(--bone-100)}
.btn--onLight:hover{background:var(--amber-600);color:var(--ink-900)}
.btn--lg{padding:1.1rem 2.2rem;font-size:var(--step-1)}
.btn svg{width:1.05em;height:1.05em;flex:none;fill:currentColor}

/* ---------- header ---------- */
.header{
  position:sticky;top:0;z-index:100;
  background:rgba(11,10,9,.86);backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--rule);
}
.header__inner{display:flex;align-items:center;gap:1.5rem;min-height:var(--header-h)}
.brand{display:flex;flex-direction:column;line-height:1;text-decoration:none;flex:none}
.brand__name{font-family:var(--display);font-weight:700;font-size:1.32rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--bone-100);font-variation-settings:"opsz" 90}
.brand__sub{font-family:var(--body);font-weight:700;font-size:.56rem;letter-spacing:.42em;
  text-transform:uppercase;color:var(--amber-400);margin-top:.34rem}
.brand:hover .brand__name{color:var(--amber-400)}
.nav{margin-left:auto}
.nav__list{display:flex;align-items:center;gap:.15rem}
.nav__link{
  display:block;padding:.55rem .8rem;
  font-family:var(--body);font-weight:600;font-size:.78rem;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--bone-300);text-decoration:none;white-space:nowrap;
}
.nav__link:hover{color:var(--amber-400)}
.nav__link[aria-current="page"]{color:var(--amber-400)}

.header__call{display:flex;align-items:center;gap:.9rem;flex:none;margin-left:auto}
.header__phone{
  display:inline-flex;align-items:center;gap:.45rem;
  font-family:var(--display);font-weight:600;font-size:1.05rem;
  color:var(--bone-100);text-decoration:none;white-space:nowrap;
}
.header__phone:hover{color:var(--amber-400)}
.header__phone svg{width:1em;height:1em;fill:var(--amber-400)}

.nav-toggle{display:none;width:50px;height:50px;align-items:center;justify-content:center;border:1px solid var(--rule-strong)}
.nav-toggle svg{width:22px;height:22px;stroke:var(--bone-100);fill:none;stroke-width:1.6;stroke-linecap:round}

@media (max-width:1100px){
  .nav{position:fixed;inset:var(--header-h) 0 auto 0;background:var(--ink-900);
    border-bottom:1px solid var(--rule);padding:.75rem var(--gutter) 1.5rem;display:none}
  .nav[data-open="true"]{display:block}
  .nav__list{flex-direction:column;align-items:stretch;gap:0}
  .nav__link{padding:.95rem .3rem;font-size:.92rem;border-bottom:1px solid var(--rule)}
  .nav-toggle{display:inline-flex;order:3}
  .header__call .btn{display:none}
}
@media (max-width:560px){
  .header__phone span{display:none}
  .header__phone{min-width:48px;min-height:48px;justify-content:center;border:1px solid var(--rule-strong)}
  .header__phone svg{width:20px;height:20px}
}

/* ============================================================
   HERO — full-bleed photograph, type sitting in the dark
   ============================================================ */
.hero{position:relative;min-height:min(clamp(440px,64vh,700px),620px);display:flex;align-items:flex-end;overflow:hidden}
.hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%}
.hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,10,9,.72) 0%,rgba(11,10,9,.40) 38%,rgba(11,10,9,.92) 100%);
}
.hero__inner{position:relative;z-index:2;width:100%;padding-block:clamp(2.5rem,6vw,5rem)}
.hero h1{max-width:16ch;margin:.6rem 0 1.3rem}
.hero__lede{font-family:var(--display);font-size:var(--step-1);color:var(--bone-100);max-width:44ch;margin-bottom:2rem}
.hero__actions{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:2.2rem}
.hero__facts{
  display:flex;flex-wrap:wrap;gap:1rem 2.5rem;
  border-top:1px solid var(--rule-strong);padding-top:1.3rem;
}
.hero__facts div{min-width:0}
.hero__facts b{
  display:block;font-family:var(--display);font-size:1.15rem;font-weight:600;
  color:var(--bone-100);line-height:1.2;
}
.hero__facts span{display:block;font-size:var(--step--2);letter-spacing:.16em;text-transform:uppercase;color:var(--bone-500);margin-top:.3rem}

/* ============================================================
   PLATE — a full-bleed photograph with a catalogue caption
   ============================================================ */
.plate{margin:0;position:relative;background:var(--ink-800)}
.plate img{width:100%;height:auto;display:block}
.plate--crop img{height:clamp(300px,46vw,620px);object-fit:cover}
.plate figcaption{
  max-width:var(--container);margin-inline:auto;
  padding:1rem var(--gutter) 0;
  font-size:var(--step--2);letter-spacing:.2em;text-transform:uppercase;color:var(--bone-500);
}
.plate figcaption b{color:var(--bone-300);font-weight:600}

/* ============================================================
   INDEX ROW — numbered portfolio index
   ============================================================ */
.index-row{
  display:grid;grid-template-columns:4.5rem 1fr auto;
  gap:clamp(1rem,3vw,3rem);align-items:start;
  padding:clamp(1.75rem,3.5vw,3rem) 0;
  border-top:1px solid var(--rule);
  text-decoration:none;color:inherit;
  transition:background-color .2s;
}
.index-row:last-of-type{border-bottom:1px solid var(--rule)}
.index-row:hover{background:rgba(224,163,95,.05)}
.index-row__no{
  font-family:var(--body);font-size:var(--step--2);font-weight:700;
  letter-spacing:.18em;color:var(--amber-400);padding-top:.5rem;
}
.index-row h3{margin-bottom:.6rem;font-size:var(--step-2);color:var(--bone-100)}
.index-row:hover h3{color:var(--amber-400)}
.index-row p{color:var(--bone-300);font-size:var(--step-0);max-width:56ch}
.index-row__media{width:clamp(90px,14vw,190px);flex:none}
.index-row__media img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
.index-row__go{
  display:inline-block;margin-top:.9rem;font-size:var(--step--2);
  letter-spacing:.2em;text-transform:uppercase;color:var(--amber-400);font-weight:700;
}
@media (max-width:720px){
  .index-row{grid-template-columns:2.6rem 1fr;gap:.9rem}
  .index-row__media{grid-column:2;width:100%;max-width:220px;margin-top:.9rem}
}

/* ============================================================
   SPECIMEN STRIP — the patterns he actually cuts
   ============================================================ */
.spec{display:flex;flex-wrap:wrap;gap:0;border-top:1px solid var(--rule)}
.spec li{
  flex:1 1 auto;padding:1.1rem 1.4rem;border-bottom:1px solid var(--rule);
  border-right:1px solid var(--rule);
  font-size:var(--step--2);letter-spacing:.2em;text-transform:uppercase;
  color:var(--bone-300);white-space:nowrap;
}
.spec li:last-child{border-right:0}

/* ---------- figure pair, hung unevenly ---------- */
.figure-pair{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(1rem,2.5vw,2rem);align-items:end}
.figure-pair figure{margin:0}
.figure-pair img{width:100%;height:auto}
.figure-pair figcaption{margin-top:.7rem;font-size:var(--step--2);letter-spacing:.18em;text-transform:uppercase;color:var(--bone-500)}
@media (max-width:760px){.figure-pair{grid-template-columns:1fr}}

/* ---------- gallery grid ---------- */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:clamp(.6rem,1.4vw,1.1rem)}
.gallery figure{margin:0;position:relative;background:var(--ink-800)}
.gallery img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.gallery figcaption{
  padding:.7rem 0 0;font-size:var(--step--2);letter-spacing:.18em;
  text-transform:uppercase;color:var(--bone-500);
}

/* ---------- detail list ---------- */
.detail{border-top:1px solid var(--rule)}
.detail li{display:grid;grid-template-columns:34% 1fr;gap:1.25rem;padding:.9rem 0;border-bottom:1px solid var(--rule)}
.detail strong{font-family:var(--display);font-weight:600;color:var(--bone-100)}
.detail span{color:var(--bone-300)}
@media (max-width:640px){.detail li{grid-template-columns:1fr;gap:.15rem}}

/* ---------- light section, used sparingly ---------- */
.section--paper{background:var(--paper);color:var(--paper-ink)}
.section--paper h1,.section--paper h2,.section--paper h3{color:var(--paper-ink)}
.section--paper .label{color:#8a4f12}
.section--paper .lede{color:var(--paper-ink)}
.section--paper a{color:#8a4f12}
.section--paper .detail{border-color:rgba(26,22,19,.16)}
.section--paper .detail li{border-color:rgba(26,22,19,.16)}
.section--paper .detail strong{color:var(--paper-ink)}
.section--paper .detail span{color:#4a4139}

/* ---------- estimate form ---------- */
.formcard{background:var(--ink-800);border:1px solid var(--rule);padding:clamp(1.5rem,3vw,2.4rem)}
.section--paper .formcard{background:#fff;border-color:rgba(26,22,19,.14)}
.formcard h2{font-size:var(--step-2);margin-bottom:.4rem}
.field{margin-bottom:1rem}
.field label{display:block;font-size:var(--step--2);letter-spacing:.16em;text-transform:uppercase;
  font-weight:700;color:var(--bone-300);margin-bottom:.4rem}
.section--paper .field label{color:#4a4139}
.field input,.field select,.field textarea{
  width:100%;padding:.85rem .9rem;border:1px solid var(--rule-strong);border-radius:2px;
  background:var(--ink-900);color:var(--bone-100);min-height:52px;
}
.section--paper .field input,.section--paper .field select,.section--paper .field textarea{
  background:#fff;color:var(--paper-ink);border-color:rgba(26,22,19,.22);
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--amber-400);outline-offset:0}
.field--row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media (max-width:520px){.field--row{grid-template-columns:1fr}}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form__note{font-size:var(--step--2);color:var(--bone-500);margin-top:.8rem}
.section--paper .form__note{color:#6b6157}
.form__status{margin-top:1rem;font-weight:700;font-size:.95rem}
.form__status[data-state="ok"]{color:#1f7a45}
.form__status[data-state="err"]{color:#a3271a}

/* ---------- CTA band ---------- */
.cta{background:var(--ink-800);border-top:1px solid var(--rule)}
.cta__inner{display:flex;flex-wrap:wrap;gap:2rem;align-items:center;justify-content:space-between;
  padding-block:clamp(2.5rem,5vw,4.5rem)}
.cta__actions{display:flex;flex-wrap:wrap;gap:.9rem}

/* ---------- footer ---------- */
.footer{background:var(--ink-900);border-top:1px solid var(--rule);color:var(--bone-500)}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2.5rem;
  padding-block:clamp(2.5rem,5vw,4rem)}
@media (max-width:900px){.footer__grid{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.footer__grid{grid-template-columns:1fr}}
.footer h3{color:var(--bone-100);font-size:var(--step--2);letter-spacing:.22em;text-transform:uppercase;
  margin-bottom:1rem;font-family:var(--body);font-weight:700}
.footer a{color:var(--bone-300);text-decoration:none;display:inline-block;padding:.3rem 0}
.footer a:hover{color:var(--amber-400)}
.footer li+li{margin-top:.1rem}
.footer__brand .brand{margin-bottom:1.1rem}
.footer__brand p{font-size:var(--step--1);max-width:32ch}
.footer__bottom{border-top:1px solid var(--rule);padding-block:1.3rem;
  display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;justify-content:space-between;font-size:var(--step--2)}
.footer__legal{display:flex;flex-wrap:wrap;gap:1.25rem}

/* ---------- mobile call bar ---------- */
.callbar{position:fixed;left:0;right:0;bottom:0;z-index:90;display:none;
  background:var(--ink-800);border-top:1px solid var(--amber-600);padding:.6rem var(--gutter);gap:.6rem}
.callbar .btn{flex:1;min-height:50px}
@media (max-width:760px){.callbar{display:flex}body{padding-bottom:76px}}

/* ---------- page head (inner pages) ---------- */
.pagehead{border-bottom:1px solid var(--rule);background:var(--ink-800)}
.pagehead__inner{padding-block:clamp(1.75rem,3.2vw,2.75rem)}
.pagehead h1{margin:.35rem 0 .7rem}
.crumbs{font-size:var(--step--2);letter-spacing:.18em;text-transform:uppercase;color:var(--bone-500)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0;margin:0}
.crumbs li::after{content:"/";margin-left:.5rem;color:var(--rule-strong)}
.crumbs li:last-child::after{content:""}
.crumbs a{color:var(--bone-500);display:inline-block;padding:.25rem 0}
.crumbs a:hover{color:var(--amber-400)}

/* ---------- notice ---------- */
.notice{border-left:2px solid var(--amber-400);background:var(--ink-800);padding:1.1rem 1.35rem;color:var(--bone-300)}
.section--paper .notice{background:rgba(26,22,19,.05);color:#4a4139}

/* ---------- reveal ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}


/* ---------- stock-image label ----------
   Anything not photographed by George carries this. It is deliberately legible,
   not a hidden disclaimer — passing stock off as his work is the one thing that
   would actually damage him. */
.stocknote{
  display:block;margin-top:.45rem;
  font-family:var(--body);font-size:var(--step--2);
  letter-spacing:.16em;text-transform:uppercase;color:var(--bone-500);
}
.section--paper .stocknote{color:#6b6157}

/* ---------- never upscale a source photograph ----------
   These are phone photos from Facebook and Instagram; stretching one past its
   real pixels only softens it. The selectors key off the width attribute each
   <img> already carries, so this keeps working if a photo is swapped for a
   larger one — the rule simply stops matching. */
img[width="361"]{max-width:361px}
img[width="640"]{max-width:640px}
img[width="921"]{max-width:921px}
img[width="957"]{max-width:957px}

/* ============================================================
   FIXES FROM THE DESIGN + CONVERSION AUDIT
   Each of these was measured on the live pages, not guessed.
   ============================================================ */

/* The lead-capture card was the NARROWER column on desktop (507px) while a
   list of details repeated in the footer got 685px. */
#estimate .figure-pair{grid-template-columns:1fr 1.15fr}

/* .plate figcaption sets a container max-width and gutter padding; that leaked
   into figures inside .figure-pair and pushed captions ~39px right of their
   own image edge. */
.figure-pair figcaption{padding-inline:0;max-width:none;margin-inline:0}

/* A mid-page CTA. Desktop hides the call bar, which left four consecutive
   screenfuls of the highest-intent content with nothing to click. */
.cta-inline{
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:center;justify-content:space-between;
  padding-block:1.25rem;margin-block:clamp(2rem,4vw,3.5rem);
}
.cta-inline p{
  margin:0;font-family:var(--display);font-size:var(--step-1);color:var(--bone-100);max-width:none;
}
.cta-inline__links{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;align-items:center}
.cta-inline a{
  font-family:var(--body);font-weight:700;font-size:var(--step--1);
  letter-spacing:.14em;text-transform:uppercase;text-decoration:none;
  display:inline-block;padding:.5rem 0;
}

@media (max-width:1100px){
  /* mobile nav rows measured 37px tall — that is the primary navigation */
  .nav__link{padding-block:.85rem}
}

@media (max-width:760px){
  /* On the estimate section the form sits second in source, so arriving at
     #estimate showed a phone/email list and pushed every field off screen. */
  #estimate .formcard{order:-1}
  #estimate .figure-pair{grid-template-columns:1fr}

  /* The photo was landing AFTER the "See installation →" link. */
  .index-row__media{order:-1}

  /* "Call (541) 840-1461" wrapped to two lines, making the bar 107px tall
     against 76px of reserved body padding — the footer legal links ended up
     underneath it. Also honour the home-indicator inset. */
  .callbar{padding:.55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom,0px))}
  .callbar .btn{font-size:.95rem;padding-inline:.9rem;min-height:48px}
  body{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}

  /* footer links measured 19px tall */
  .footer a{padding:.55rem 0}
}

@media (max-width:600px){
  /* The specimen strip broke into a ragged 4x2 block whose internal rules
     landed at a different x on every row. An even grid lines them up. */
  .spec{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--rule)}
  .spec li{white-space:normal;border-right:1px solid var(--rule);padding:.85rem 1rem}
  .spec li:nth-child(2n){border-right:0}
}

/* ============================================================
   FIXES FROM THE ACCESSIBILITY / PERFORMANCE / SEO AUDIT
   ============================================================ */

/* The page declares color-scheme:dark, so the browser painted a black
   scrollbar inside the white textarea and would do the same to the select
   popup, caret and autofill panel. The light island must opt back out. */
.section--paper,
.section--paper .formcard,
.section--paper input,
.section--paper select,
.section--paper textarea{color-scheme:light}

/* The reset only covered ul[class]; the footer lists carry no class, so they
   rendered with browser bullets and a 40px indent away from their heading. */
.footer ul{list-style:none;padding:0;margin:0}

/* Contrast inside the light panel — every one of these measured below AA. */
.section--paper ::placeholder{color:#6b6157}            /* was 2.64:1 */
.section--paper .field input,
.section--paper .field select,
.section--paper .field textarea{border-color:rgba(26,22,19,.45)}  /* was 1.61:1 */
.section--paper :focus-visible{outline-color:#1a1613}   /* amber ring was 1.92:1 on cream */

/* Phone and email on the contact list were 19px tall — the two highest-intent
   targets on the page. */
.detail span a{display:inline-block;padding-block:.35rem}

/* The no-upscale caps were unscoped, so a 361px photo sat in a 507px grid
   column leaving a 146px void beside its pair. Cap only where an image can
   actually stretch full-bleed, and let grid children fill their cell. */
img[width="361"],img[width="640"],img[width="921"],img[width="957"]{max-width:100%}
.plate img[width="361"]{max-width:361px}
.plate img[width="640"]{max-width:640px}
.figure-pair img,.gallery img,.index-row__media img{width:100%;max-width:none}

/* .reveal starts at opacity:0 and waits for JS. Printing produced blank
   sections, and any script error would blank the body copy. */
@media print{
  .reveal{opacity:1!important;transform:none!important}
  .callbar,.nav-toggle,.header__call{display:none!important}
}

/* <picture> wraps the hero image, so the wrapper needs the same absolute fill */
.hero picture{position:absolute;inset:0;display:block}
.hero picture .hero__img{position:absolute;inset:0}

/* A .plate inside a .figure-pair is a grid child, not a full-bleed band, so the
   no-upscale cap must not apply — it was leaving a 146px void beside its pair. */
.figure-pair .plate img{max-width:none;width:100%}

@media (max-width:760px){
  /* the hero was running 835px on an 812px screen, pushing the CTAs off */
  .hero__inner{padding-block:1.5rem 1.75rem}
  .hero h1{margin:.4rem 0 .8rem}
  .hero__lede{margin-bottom:1.25rem}
  .hero__actions{gap:.6rem;margin-bottom:1.25rem}
  .hero__actions .btn{width:100%}
  .hero__facts{padding-top:1rem;gap:.7rem 1.5rem}
}

/* ============================================================
   CREDENTIALS BAND
   Replaces a full-bleed photograph that was too soft to survive
   edge-to-edge. This is the trust content he actually has on record.
   ============================================================ */
.creds{
  background:var(--ink-800);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding-block:clamp(2.25rem,4vw,3.5rem);
}
.creds__row{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:clamp(1.25rem,2.5vw,2.5rem);
}
.creds__row li{border-top:2px solid var(--amber-400);padding-top:1rem}
.creds__row b{
  display:block;font-family:var(--display);font-weight:600;
  font-size:clamp(1.15rem,1.5vw,1.5rem);color:var(--bone-100);
  line-height:1.15;letter-spacing:-.01em;font-variation-settings:"opsz" 40;
}
.creds__row span{
  display:block;margin-top:.5rem;font-size:var(--step--1);
  color:var(--bone-500);line-height:1.5;
}
.creds__note{
  margin-top:clamp(1.5rem,3vw,2.25rem);padding-top:1rem;
  border-top:1px solid var(--rule);
  font-size:var(--step--2);letter-spacing:.06em;color:var(--bone-500);max-width:none;
}
@media (max-width:900px){.creds__row{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.creds__row{grid-template-columns:1fr;gap:1rem}}

/* ---------- phone scroll length ----------
   Measured at 375px: the gallery ran 11 tiles x 323px in a single column
   (3,553px of images), and each service row spent 220px on a thumbnail. */
@media (max-width:760px){
  .gallery{grid-template-columns:1fr 1fr;gap:.5rem}
  .index-row{padding:1.1rem 0;grid-template-columns:2rem 1fr;gap:.2rem .7rem}
  .index-row__no{padding-top:.15rem;font-size:.75rem}
  .index-row h3{font-size:1.3rem;margin-bottom:.35rem}
  .index-row p{font-size:1rem;line-height:1.55}
  .index-row__media{max-width:180px;margin-top:.7rem}
  .index-row__go{padding-top:.5rem}
  .creds{padding-block:1.75rem}
  .creds__row li{padding-top:.7rem}
  .creds__note{margin-top:1.1rem}
  .cta__inner,.cta-inline{padding-block:1.5rem}
  .formcard{padding:1.25rem}
  .field{margin-bottom:.8rem}
  .pagehead__inner{padding-block:1.4rem}
}

/* The one genuinely small source photo (361px). Capping it stops a 41% upscale;
   centring it means the leftover space sits either side rather than as a
   one-sided void next to its pair. */
.figure-pair img[width="361"]{max-width:361px;margin-inline:auto}
