/* ==========================================================================
   Keith Systems
   Palette : marine graphite ground, cool fog paper, signal amber
   Type    : IBM Plex Sans Condensed (display) / Plex Sans (body) / Plex Mono (data)
   Signature: amber coverage brackets over imagery, mono field labels
   ========================================================================== */

:root {
  --ink:        #0A1215;
  --ink-2:      #0E181C;
  --ink-3:      #131F24;
  --line:       #1E2C31;
  --line-soft:  #17242A;

  --fog:        #E7EBEA;
  --fog-2:      #DBE2E0;
  --fog-line:   #C3CDCB;
  --fog-ink:    #0D171A;
  --fog-muted:  #4C5C60;

  --text:       #DCE4E3;
  --muted:      #8A999E;
  --amber:      #E39A2B;
  --amber-lift: #F2AE44;
  --amber-deep: #8A5D10;
  --amber-dim:  rgba(227, 154, 43, 0.14);

  --display: 'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --r: 3px;
  --band-y: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  background: var(--amber); color: #12181A; font-family: var(--mono);
  font-size: .8rem; padding: .6rem 1rem; z-index: 999; transition: transform .18s;
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* ---------- type primitives ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.005em; }

.label {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.label-amber { color: var(--amber); }
.label-dark  { color: var(--fog-muted); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.14rem); color: var(--muted); max-width: 54ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: .01em;
  padding: .85rem 1.55rem;
  border: 1px solid transparent; border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-amber { background: var(--amber); color: #12181A; }
.btn-amber:hover { background: var(--amber-lift); }

.btn-ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-ink { background: var(--fog-ink); color: var(--fog); }
.btn-ink:hover { background: #1D2E33; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 18, 21, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(10, 18, 21, .95); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.wordmark-mark {
  width: 16px; height: 16px;
  border: 2px solid var(--amber);
  border-right-color: transparent; border-bottom-color: transparent;
  position: relative;
}
.wordmark-mark::after {
  content: ""; position: absolute; right: -5px; bottom: -5px;
  width: 16px; height: 16px;
  border: 2px solid var(--amber);
  border-left-color: transparent; border-top-color: transparent;
}
.wordmark-text {
  font-family: var(--display); font-weight: 700; font-size: 1.22rem;
  letter-spacing: -0.02em; color: var(--text);
}
.wordmark-thin { font-weight: 600; color: var(--muted); margin-left: .3em; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-size: .92rem; color: var(--muted); text-decoration: none; transition: color .15s; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; display: block; height: 1px; background: var(--amber); margin-top: 3px; }
.nav-cta { color: #12181A !important; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  padding: .55rem .5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }

.grid-field {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138, 153, 158, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 153, 158, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 20%, transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: .85rem; max-width: 22ch; }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 32ch;
  margin-bottom: 1.15rem;
}
.hero-copy .lede { margin-bottom: 2.1rem; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; }

.creds {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); padding-top: 1.15rem; gap: 1rem;
}
.creds dt {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.creds dd { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--text); }

/* framed imagery + coverage brackets (signature) */
.frame { position: relative; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.frame > picture { display: block; width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.06) brightness(.82); }
.frame img.portrait { object-position: 50% 22%; filter: saturate(.8) contrast(1.03) brightness(.94); }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, rgba(10,18,21,.05) 0%, rgba(10,18,21,.62) 100%);
}

.bracket { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2; }
.bracket-tl { top: 10px; left: 10px; border-top: 1.5px solid var(--amber); border-left: 1.5px solid var(--amber); }
.bracket-tr { top: 10px; right: 10px; border-top: 1.5px solid var(--amber); border-right: 1.5px solid var(--amber); }
.bracket-bl { bottom: 10px; left: 10px; border-bottom: 1.5px solid var(--amber); border-left: 1.5px solid var(--amber); }
.bracket-br { bottom: 10px; right: 10px; border-bottom: 1.5px solid var(--amber); border-right: 1.5px solid var(--amber); }

.sweep {
  position: absolute; left: 0; right: 0; height: 34%; top: -34%; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(227,154,43,.10), transparent);
  animation: sweep 9s ease-in-out infinite; pointer-events: none;
}
@keyframes sweep {
  0%, 12%   { transform: translateY(0); opacity: 0; }
  20%       { opacity: 1; }
  70%       { opacity: 1; }
  85%, 100% { transform: translateY(400%); opacity: 0; }
}

.frame-tag {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text); background: rgba(10, 18, 21, .82);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: .45rem .8rem;
}
.hero-figure .frame { aspect-ratio: 4 / 3.3; }

/* work showcase: full-width install photo, shown bright */
.work-figure { margin-top: clamp(2.2rem, 4.5vw, 3.4rem); }
.work-figure .frame { aspect-ratio: 16 / 9; }
.work-figure .frame img { object-position: 50% 50%; filter: saturate(1) contrast(1.04) brightness(1.02); }
.work-figure .frame::after {
  background: linear-gradient(190deg, rgba(10,18,21,0) 0%, rgba(10,18,21,.10) 62%, rgba(10,18,21,.34) 100%);
}
.work-figure figcaption {
  margin-top: .85rem; color: var(--muted); font-size: .93rem; max-width: 68ch;
}
@media (max-width: 700px) {
  .work-figure .frame { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Bands
   ========================================================================== */
.band { padding: var(--band-y) 0; border-top: 1px solid var(--line-soft); }
.band-raised { background: var(--ink-2); }

.band-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.band-head h2 { margin-bottom: .9rem; }
.band-sub { color: var(--muted); max-width: 58ch; }

/* ==========================================================================
   Issue / fix rows
   ========================================================================== */
.fixes { list-style: none; border-top: 1px solid var(--line); }
.fix {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  transition: background .18s;
}
.fix:hover { background: rgba(227, 154, 43, .035); }

.tag {
  display: inline-block; font-family: var(--mono); font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .5rem;
}
.tag-issue { color: #7F8E93; }

.fix-issue h3 { font-size: 1.22rem; color: var(--text); max-width: 24ch; }
.fix-fix p { color: var(--muted); font-size: .97rem; max-width: 62ch; }

/* ==========================================================================
   Packages (light "menu" panel)
   ========================================================================== */
.packages {
  background: var(--fog); color: var(--fog-ink);
  background-image: linear-gradient(to bottom, var(--fog) 0%, var(--fog-2) 100%);
  padding: var(--band-y) 0;
}
.pkg-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.pkg-head h2 { margin-bottom: .9rem; }
.pkg-sub { color: var(--fog-muted); max-width: 58ch; }

.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--fog-line); border: 1px solid var(--fog-line); }

.pkg {
  position: relative; background: var(--fog);
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  transition: background .18s;
}
.pkg:hover { background: #EEF1F0; }
.pkg-featured { background: #F4F6F5; box-shadow: inset 0 3px 0 var(--amber); }

.pkg-top { border-bottom: 1px solid var(--fog-line); padding-bottom: 1rem; margin-bottom: 1.1rem; }
.pkg-kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: .55rem;
}
.pkg h3 { font-size: 1.5rem; margin-bottom: .45rem; }
.pkg-for { font-size: .88rem; color: var(--fog-muted); }

.pkg-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.6rem; flex: 1; }
.pkg-list li { position: relative; padding-left: 1.15rem; font-size: .88rem; color: #2C3B3F; line-height: 1.5; }
.pkg-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-left: 1.5px solid var(--amber-deep); border-bottom: 1.5px solid var(--amber-deep);
  transform: rotate(-45deg) translateY(-1px);
}

.pkg-flag {
  position: absolute; top: 0; right: 0;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--amber); color: #12181A; padding: .28rem .6rem;
}

.addons { margin-top: clamp(2rem, 4vw, 2.8rem); border-top: 2px solid var(--fog-ink); padding-top: 1.4rem; }
.addons .label { margin-bottom: .9rem; }
.addon-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.addon-list li {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  border: 1px solid var(--fog-line); background: rgba(255,255,255,.5);
  padding: .4rem .7rem; color: #2C3B3F;
}
.addon-note { margin-top: 1.1rem; font-size: .9rem; color: var(--fog-muted); }

/* ==========================================================================
   Capabilities
   ========================================================================== */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap { background: var(--ink); padding: clamp(1.5rem, 2.6vw, 2.1rem); transition: background .18s; }
.cap:hover { background: var(--ink-3); }
.cap h3 { margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }

.ticks { list-style: none; display: grid; gap: .45rem; }
.ticks li {
  font-size: .89rem; color: var(--muted); line-height: 1.5;
  padding-left: 1.1rem; position: relative;
}
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--amber); }

/* ==========================================================================
   Background split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split-figure .frame { aspect-ratio: 4 / 3.6; position: sticky; top: 100px; }

.facts { list-style: none; border-top: 1px solid var(--line); }
.facts li {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.25rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.fact-key {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--amber); padding-top: .28em;
}
.fact-val { color: var(--muted); font-size: .97rem; }
.fact-val strong { color: var(--text); font-weight: 600; }

.pull {
  margin-top: 1.8rem; font-family: var(--display); font-size: 1.16rem;
  line-height: 1.4; color: var(--text); max-width: 46ch;
  border-left: 2px solid var(--amber); padding-left: 1.1rem;
}

/* ==========================================================================
   Process
   ========================================================================== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--ink); padding: clamp(1.4rem, 2.4vw, 1.9rem); }
.step-n {
  display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--amber); margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line); padding-bottom: .55rem;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .93rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative; font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber); }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 1.55rem;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--amber); border-bottom: 1.5px solid var(--amber);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq-body { padding: 0 0 1.35rem; }
.faq-body p { color: var(--muted); font-size: .97rem; max-width: 72ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { position: relative; padding: var(--band-y) 0; overflow: hidden; border-top: 1px solid var(--line-soft); }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg picture { display: block; width: 100%; height: 100%; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; filter: saturate(.4); }
.contact-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,21,.78) 0%, rgba(10,18,21,.95) 100%);
}
.contact-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 1rem; }
.contact-copy .lede { margin-bottom: 2.2rem; }

.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.contact-list dd { font-size: 1.02rem; color: var(--text); }
.contact-list a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.contact-list a:hover { color: var(--amber); }

/* form */
.form-shell { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-shell.is-flash { border-color: var(--amber); }
.form { display: grid; gap: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.opt { text-transform: none; letter-spacing: .02em; opacity: .75; }

.form input, .form select, .form textarea {
  width: 100%; padding: .82rem .9rem;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); font-family: var(--body); font-size: .97rem;
  transition: border-color .15s, background .15s;
}
.form textarea { resize: vertical; min-height: 108px; }
.form input::placeholder, .form textarea::placeholder { color: #71838A; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #2A3A40; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); background: var(--ink-3); }
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23E39A2B' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
.form [aria-invalid="true"] { border-color: #C4553C; }
.err { font-family: var(--mono); font-size: .72rem; color: #E08067; letter-spacing: .03em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--muted); }
.form-note a { color: var(--text); }

.form-done { display: grid; gap: .9rem; }
.form-done h3 { font-size: 1.3rem; }
.form-done p { color: var(--muted); font-size: .95rem; }
.form-done a { color: var(--amber); }
.draft {
  font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: var(--muted);
  background: var(--ink); border: 1px solid var(--line); padding: 1rem;
  white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto;
}
.done-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ==========================================================================
   Footer + call bar
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 30ch; margin-top: .5rem; }
.footer-nav { display: grid; gap: .5rem; align-content: start; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--amber); }
.footer-meta { display: grid; gap: .5rem; align-content: start; font-style: normal; color: var(--muted); font-size: .92rem; }
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--amber); }

.footer-fine { opacity: .72; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.25rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .06em; color: var(--muted);
}

.callbar { display: none; }

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .pkg-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure .frame { aspect-ratio: 16 / 9; }
  .split { grid-template-columns: 1fr; }
  .split-figure { order: -1; }
  .split-figure .frame { position: static; aspect-ratio: 16 / 9; }
  .split-figure .frame.frame-portrait { aspect-ratio: 4 / 4.4; max-width: 360px; margin-inline: auto; }
  .contact-inner { grid-template-columns: 1fr; }
  .caps, .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-block: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav a.is-active::after { display: none; }
  .nav-cta { margin-top: .9rem; border-bottom: none !important; text-align: center; }
  .nav-toggle { display: flex; }

  .creds { grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
  .facts li { grid-template-columns: 1fr; gap: .35rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }

  body { padding-bottom: 64px; }
  .callbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1fr;
    background: rgba(10, 18, 21, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .callbar a {
    text-align: center; padding: 1.05rem .5rem; text-decoration: none;
    font-family: var(--display); font-weight: 600; font-size: .98rem;
  }
  .callbar-call { background: var(--amber); color: #12181A; }
  .callbar-form { color: var(--text); }
}

@media (max-width: 700px) {
  .fix { grid-template-columns: 1fr; gap: .75rem; padding: 1.35rem 0; }
  .fix-issue h3 { max-width: none; }
}

@media (max-width: 620px) {
  .caps, .steps, .pkg-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}

/* ==========================================================================
   Motion + print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sweep { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .callbar, .contact-bg, .sweep, .nav-toggle { display: none !important; }
  .frame img, .frame img.portrait, .work-figure .frame img { filter: none; }
  a { text-decoration: underline; }
}

/* ==========================================================================
   Internal link mesh - used in the footer sitewide and in interior page bodies
   ========================================================================== */
.link-mesh,
.footer-mesh {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.link-mesh .label,
.footer-mesh .label { margin-bottom: 1rem; }
.mesh-col ul { list-style: none; display: grid; gap: .1rem; }
.mesh-col li { border-top: 1px solid var(--line-soft); }
.mesh-col li:last-child { border-bottom: 1px solid var(--line-soft); }
.mesh-col a {
  display: block;
  padding: .7rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color .15s, padding-left .15s;
}
.mesh-col a:hover { color: var(--amber); padding-left: .35rem; }

.footer-mesh {
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

/* capability card -> service page link */
.cap-more { margin-top: 1.1rem; }
.cap-more a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--amber); text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.cap-more a::after { content: " \2192"; }
.cap-more a:hover { border-bottom-color: var(--amber); }
