/* ==========================================================================
   Control — technical precision
   Visible grid, monospaced metadata, systems as a spec sheet. Red is used
   functionally (indicators, rules, active states), not decoratively.
   ========================================================================== */

:root{
  --paper:#fbfbfa; --panel:#fff; --ink:#111214; --ink-2:#55585e; --ink-3:#8b8f96;
  --line:#e2e3e6;
  --red:#b20710;
  --green:#12795a;
  --pad:clamp(1.25rem,4vw,4rem);
  --max:1400px;
}

*,*::before,*::after{box-sizing:border-box}
/* Clears the sticky bar, which is 80px once the logo is 38px tall — an
   anchored jump otherwise lands underneath it. */
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{
  margin:0;background:var(--paper);color:var(--ink-2);overflow-x:hidden;
  font:400 clamp(.9rem,.88rem + .15vw,1rem)/1.65 Inter,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;color:var(--ink);font-weight:500;letter-spacing:-.025em;line-height:1.08}
p{margin:0 0 1rem}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}

.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--pad)}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;
  letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.tick{display:flex;align-items:center;gap:.6rem}
.tick::before{content:"";width:6px;height:6px;background:var(--red);flex:none}

.skip-link{position:absolute;left:-9999px;top:0;z-index:200;padding:.75rem 1.25rem;
  background:var(--ink);color:#fff;font-weight:500}
.skip-link:focus{left:0}

.btn{display:inline-flex;align-items:center;gap:.6rem;cursor:pointer;font:inherit;
  font-size:.8125rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;
  padding:.95rem 1.6rem;border:1px solid var(--ink);background:var(--ink);color:#fff;
  transition:background .25s,border-color .25s,color .25s}
.btn:hover{background:var(--red);border-color:var(--red)}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.btn[disabled]{opacity:.55;cursor:progress}

/* ---------------------------------------------------------------- nav --- */
.nav{position:sticky;top:0;z-index:100;background:rgba(251,251,250,.93);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav__inner{display:flex;align-items:center;gap:2rem;padding:.9rem var(--pad);
  max-width:var(--max);margin-inline:auto}
.nav__logo img{height:38px;width:auto}
.nav__menu{margin-left:auto;display:flex;gap:2rem}
.nav__menu a{font-size:.8125rem;font-weight:500;color:var(--ink-2);transition:color .2s}
.nav__menu a:hover,.nav__menu a[aria-current="true"]{color:var(--red)}
.nav__cta{background:var(--ink);color:#fff;font-size:.75rem;font-weight:500;
  letter-spacing:.06em;text-transform:uppercase;padding:.7rem 1.25rem;transition:background .25s}
.nav__cta:hover{background:var(--red)}

.nav__toggle{display:none;margin-left:auto;padding:12px;border:0;background:none;cursor:pointer}
.nav__toggle span{display:block;width:22px;height:2px;margin:5px 0;background:var(--ink);
  transition:transform .3s,opacity .2s}
.nav__toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav__toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:900px){
  .nav__cta{display:none}
  .nav__toggle{display:block}
  .nav__menu{position:absolute;top:100%;left:0;right:0;margin:0;flex-direction:column;gap:0;
    background:var(--paper);border-bottom:1px solid var(--line);
    display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease}
  .nav__menu > a{overflow:hidden;line-height:0;padding:0 var(--pad);
    transition:line-height .3s,padding .3s}
  .nav__menu.is-open{grid-template-rows:1fr}
  .nav__menu.is-open > a{line-height:1.5;padding:1rem var(--pad)}
}

/* --------------------------------------------------------------- hero --- */
.hero{border-bottom:1px solid var(--line)}
.hero__split{display:grid;grid-template-columns:1fr 1fr;max-width:var(--max);
  margin-inline:auto;min-height:clamp(28rem,78vh,46rem)}
.hero__left{padding:clamp(2.5rem,7vh,6rem) var(--pad) clamp(2.5rem,7vh,5rem);
  display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--line)}
.hero h1{font-size:clamp(2.25rem,1.1rem + 4.2vw,4.5rem);max-width:15ch;text-wrap:balance;
  margin-top:2rem}
.hero h1 span{color:var(--red)}
.hero__sub{max-width:44ch;margin:1.75rem 0 2.5rem;font-size:1.0625rem}
.hero__sub strong{font-weight:600;color:var(--ink)}
.hero__actions{display:flex;flex-wrap:wrap;gap:.75rem}
/* Each button sizes to its own label, so once they stack the pair came out
   187px and 162px wide. On a phone they take the full row instead, which makes
   them the same width and a larger tap target; justify-content keeps the label
   centred now that the box is wider than the text. */
@media(max-width:560px){
  .hero__actions .btn{width:100%;justify-content:center}
}

.hero__right{position:relative;overflow:hidden;background:var(--ink)}
.hero__stage{position:absolute;inset:0}
.hero__slide{position:absolute;inset:0;opacity:0;transition:opacity 1.3s ease}
.hero__slide.is-active{opacity:1}
.hero__slide img{width:100%;height:100%;object-fit:cover}
.hero__stamp{position:absolute;left:1.25rem;bottom:1.25rem;margin:0;color:rgba(255,255,255,.85);
  text-shadow:0 1px 6px rgba(0,0,0,.6)}
.hero__dots{position:absolute;right:1.25rem;bottom:1.25rem;display:flex;gap:6px}
.hero__dots button{width:7px;height:7px;padding:0;border:0;cursor:pointer;
  background:rgba(255,255,255,.4);transition:background .2s}
.hero__dots button[aria-selected="true"]{background:#fff}

.specs{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);
  max-width:var(--max);margin-inline:auto}
.specs div{padding:1.35rem var(--pad);border-right:1px solid var(--line)}
.specs div:last-child{border-right:0}
.specs b{display:block;color:var(--ink);font-size:1.0625rem;font-weight:500;margin-top:.3rem}

@media(max-width:880px){
  .hero__split{grid-template-columns:1fr;min-height:0}
  .hero__left{border-right:0;border-bottom:1px solid var(--line)}
  .hero__right{aspect-ratio:3/2}
  .specs{grid-template-columns:repeat(2,1fr)}
  .specs div:nth-child(2){border-right:0}
  .specs div:nth-child(-n+2){border-bottom:1px solid var(--line)}
}

/* ------------------------------------------------------------ sections --- */
/* padding-block, not the padding shorthand: these elements also carry .wrap,
   whose padding-inline a shorthand here would silently reset to 0 — which is
   what put every section heading hard against the edge of the viewport. */
.sec{padding-block:clamp(3rem,8vh,6rem);border-bottom:1px solid var(--line)}
.sec__head{display:grid;grid-template-columns:14rem 1fr;gap:clamp(1.5rem,4vw,4rem);
  margin-bottom:clamp(2rem,5vh,3.5rem)}
.sec__head h2{font-size:clamp(1.6rem,1.2rem + 1.6vw,2.6rem);max-width:20ch}
.sec__head p{margin:.9rem 0 0;max-width:56ch}
@media(max-width:880px){.sec__head{grid-template-columns:1fr;gap:1rem}}

.matrix{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);
  background:var(--line);gap:1px}
.cell{background:var(--panel);padding:1.75rem;display:flex;flex-direction:column;gap:.75rem;
  transition:background .25s}
.cell:hover{background:#fff}
.cell__idx{font-family:"IBM Plex Mono",monospace;font-size:.6875rem;color:var(--red);
  letter-spacing:.08em;text-transform:uppercase}
.cell h3{font-size:1.125rem}
.cell p{margin:0;font-size:.9rem}
@media(max-width:880px){.matrix{grid-template-columns:1fr}}

.system{display:grid;grid-template-columns:7rem 1fr 1fr;gap:clamp(1rem,3vw,3rem);
  align-items:center;padding:1.5rem 0;border-top:1px solid var(--line)}
.system:last-of-type{border-bottom:1px solid var(--line)}
.system img{width:100%;aspect-ratio:16/7;object-fit:cover;filter:grayscale(.35);
  transition:filter .4s}
.system:hover img{filter:none}
.system h3{font-size:1.1875rem;margin-bottom:.4rem}
.system p{margin:0;font-size:.9rem;max-width:48ch}
/* Smart Shades is the only system with a second destination — the quote builder
   at /design-shades/ — so the link comes from that item's own content rather
   than from markup naming it. */
.system__cta{display:inline-flex;align-items:center;gap:.4rem;margin-top:.8rem;
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;
  letter-spacing:.08em;text-transform:uppercase;color:var(--red)}
.system__cta::after{content:"\2192";font-size:.8125rem;line-height:1}
.system__cta:hover{text-decoration:underline;text-underline-offset:3px}

/* -------------------------------------------------- page head (sub-page) --- */
.page-head{border-bottom:0;padding-bottom:0}
.page-head h1{font-size:clamp(1.9rem,1.2rem + 2.6vw,3.25rem);max-width:18ch;margin-top:1.25rem}
.page-head__lede{max-width:56ch;margin:1.1rem 0 0;font-size:1.0625rem}
.page-head__back{margin:1.6rem 0 0}
.page-head__back a{color:var(--red)}
.page-head__back a:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:880px){
  .system{grid-template-columns:1fr;gap:.9rem}
  .system__code{order:-1}
}

/* Separate tiles rather than a seamless lattice, because the partner count is
   not a multiple of the column count and never will be reliably — 22 marks
   divide evenly only by 2 and 11. A framed grid turns that remainder into
   empty cells inside the frame; discrete tiles turn it into a short last row,
   which is centred and reads as deliberate. Holds at any count and any width.

   Widening the tiles below 560px keeps two per row filling the line, instead
   of two narrow tiles stranded in the middle of the screen. */
/* The kiosk used to follow the wall. With it on its own page the standard
   section gap read as a hole, so this section closes up below its tiles. */
#partners{padding-bottom:clamp(1.75rem,4vh,2.75rem)}
.logos{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.logos div{flex:0 0 118px;border:1px solid var(--line);background:var(--panel);
  display:grid;place-items:center;padding:1.5rem 1rem;min-height:84px}
@media(max-width:560px){.logos div{flex:0 0 calc(50% - 5px)}}
/* The marks range from near-square (JBL, Kramer) to 5:1 wordmarks, so sizing
   on height alone rendered them anywhere between 19px and 92px wide. Each gets
   the same box and is contained in it, so every mark lands at roughly the same
   optical size whatever its proportions. */
.logos img{width:100%;height:34px;object-fit:contain;object-position:center;
  filter:grayscale(1);opacity:.55;transition:opacity .25s,filter .25s}
.logos div:hover img{opacity:1;filter:none}

/* ------------------------------------------------------------ contact --- */
.contact{background:var(--ink);color:rgba(255,255,255,.72);padding:clamp(3.5rem,10vh,7rem) 0}
.contact h2{color:#fff;font-size:clamp(1.8rem,1.2rem + 2.4vw,3.25rem);max-width:15ch;
  margin-top:1.75rem}
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,6rem)}
.contact .mono{color:rgba(255,255,255,.45)}
.contact__meta{margin-top:2.5rem;display:grid;gap:1.5rem}
.contact__meta p{margin:0 0 .4rem}
.contact__meta a{color:#fff;font-size:1.25rem;font-weight:500;
  border-bottom:1px solid rgba(255,255,255,.25);padding-bottom:.15rem;transition:border-color .25s}
.contact__meta a:hover{border-color:var(--red)}
.contact__area{color:#fff}

form{display:grid;gap:1.1rem}
label{display:block;margin-bottom:.45rem}
input,textarea{width:100%;font:inherit;color:#fff;background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.16);padding:.75rem .85rem;transition:border-color .25s}
input:focus,textarea:focus{outline:0;border-color:var(--red)}
input[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--red)}
textarea{resize:vertical;min-height:5rem}
form .btn{justify-self:start;border-color:var(--red);background:var(--red)}
form .btn:hover{background:#fff;color:var(--ink);border-color:#fff}
.trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.status{margin-top:1.25rem;padding:.9rem 1.1rem;font-size:.9375rem;color:#fff}
.status--ok{background:var(--green)}
.status--fail{background:var(--red)}
@media(max-width:880px){.contact__grid{grid-template-columns:1fr;gap:3rem}}

/* ------------------------------------------------------------- footer --- */
.foot{padding-block:2rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;
  align-items:center}
/* No opacity here. It dated from the old logo, which was dark artwork and
   merely looked quieter when faded; the current one is full colour, so 70%
   over the paper turned the brand red into salmon — a different colour from
   the same mark in the bar, not a softer one. */
.foot img{height:42px;width:auto}
/* One run of text wrapped wherever it ran out of room — "Bradenton &" at the
   end of a line and "Sarasota, FL" alone on the next. Each clause is now
   unbreakable, so the only place it can wrap is between them. */
.foot__legal{display:flex;flex-wrap:wrap;gap:.2rem .55rem}
/* Logo and legal line stop sitting at opposite ends once they wrap onto
   separate rows, which happens around 613px — 139 + 16 + 407 plus the gutters. */
@media(max-width:620px){
  .foot{justify-content:center;text-align:center}
  .foot__legal{justify-content:center}
}
.foot__legal > span{white-space:nowrap}
/* Separator trails the first clause rather than leading the second, so a
   wrapped line does not begin with a dangling middot. */
.foot__legal > span:not(:last-child)::after{content:"·";margin-left:.55rem;color:var(--ink-3)}

/* ------------------------------------------------------------- reveal --- */
.js [data-reveal]{opacity:0;transform:translateY(16px);
  transition:opacity .8s cubic-bezier(.2,.7,.3,1),transform .8s cubic-bezier(.2,.7,.3,1)}
.js [data-reveal].in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js [data-reveal]{opacity:1;transform:none;transition:none}
}

/* ------------------------------------------------- Clara Shades kiosk --- */
.kiosk { padding: clamp(3rem, 8vh, 6rem) 0; border-bottom: 1px solid var(--line); }
.kiosk__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.kiosk__heading { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); max-width: 20ch; }
.kiosk__lede { max-width: 56ch; margin: .9rem 0 2rem; }
/* Fixed height with internal scrolling — a third-party frame can't report
   its own size, so the space has to be reserved. */
.kiosk__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.kiosk__frame iframe {
  display: block;
  width: 100%;
  height: clamp(680px, 88vh, 920px);
  border: 0;
}
.kiosk__note {
  margin: 1rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kiosk__note a { color: var(--red); }
