/* TapIn Studio — "Blueprint": a light drafting-grid ground, near-black ink,
   one teal accent. Archivo (condensed for display), IBM Plex Mono for labels. */
:root {
  --paper: #eef1ee;
  --paper-2: #f7f8f6;
  --ink: #0d1b1c;
  --ink-2: #4a5a5a;
  --line: rgba(13, 27, 28, 0.22);
  --rule: #0d1b1c;
  --teal: #0c5f5e;
  --teal-bright: #16a6a5;
  --gold: #b88724;
  --night: #0d1b1c;
  --night-text: #eef1ee;
  --night-muted: rgba(238, 241, 238, 0.68);
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(13, 27, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 28, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font: 400 17px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.05; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); }
.label { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(238, 241, 238, 0.92); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.02em; }
.brand small { font: 400 12px var(--mono); color: var(--teal); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal); }
.nav a.btn-solid, .nav a.btn-solid:hover { color: var(--paper); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font: 500 13px var(--mono); border: 1.5px solid var(--rule); padding: 9px 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1.5px solid var(--rule); padding: 8px var(--pad) 20px; }
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
@media (max-width: 900px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 560px) { .brand small { display: none; } .hero-side { padding-left: 18px; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; font: 700 15px var(--display); text-decoration: none; border: 1.5px solid var(--ink); transition: background .15s, color .15s; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.btn-line { color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- hero ---- */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(48px, 7.2vw, 100px); font-weight: 900; font-stretch: 78%; letter-spacing: -0.02em; text-transform: uppercase; line-height: 0.95; margin-top: 22px; }
.hero-side { border-left: 1.5px solid var(--rule); padding-left: 28px; display: flex; flex-direction: column; gap: 20px; }
.hero-side .lead { font-size: 20px; line-height: 1.55; }

/* ---- section scaffolding ---- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; border-bottom: 1.5px solid var(--rule); padding-bottom: 14px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; font-stretch: 82%; text-transform: uppercase; letter-spacing: -0.01em; }
.section-head .fig { font: 400 13px var(--mono); color: var(--ink-2); }
.intro { max-width: 46em; font-size: 18px; color: var(--ink-2); margin: 18px 0 8px; }

/* ---- capabilities ---- */
.cap-group { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px 48px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.cap-group:last-child { border-bottom: 0; }
.cap-group-title { display: flex; flex-direction: column; gap: 8px; }
.cap-group-title h3 { font-size: 26px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; }
.cap-group-title p { font-size: 15px; color: var(--ink-2); }
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.cap-list li { display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.cap-list li span.mono { font-size: 12px; color: var(--teal); padding-top: 4px; }
.cap-list b { font-size: 17px; font-weight: 700; display: block; }
.cap-list em { grid-column: 2; font-style: normal; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 760px) { .cap-group { grid-template-columns: 1fr; } }

/* ---- dark band ---- */
.band { background: var(--night); color: var(--night-text); }
.band .section-head { border-color: rgba(238, 241, 238, 0.4); }
.band .section-head .fig, .band .label { color: var(--teal-bright); }
.band .muted { color: var(--night-muted); }
.grid-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(238, 241, 238, 0.16); border: 1px solid rgba(238, 241, 238, 0.16); margin-top: 28px; }
@media (max-width: 980px) { .grid-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-cells { grid-template-columns: 1fr; } }
.cell { background: var(--night); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: 20px; font-weight: 700; }
.cell p { font-size: 15.5px; line-height: 1.6; color: var(--night-muted); }

/* ---- sectors ---- */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); border-left: 1px solid var(--line); margin-top: 24px; }
.sector { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: rgba(247, 248, 246, 0.6); }
.sector h3 { font-size: 21px; font-weight: 700; }
.sector p { font-size: 15.5px; color: var(--ink-2); }

/* ---- process ---- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; counter-reset: step; }
.steps li { border-top: 3px solid var(--ink); padding: 18px 22px 18px 0; display: flex; flex-direction: column; gap: 8px; }
.steps li:last-child { border-top-color: var(--teal); }
.steps h3 { font-size: 20px; font-weight: 800; font-stretch: 88%; text-transform: uppercase; }
.steps p { font-size: 15.5px; color: var(--ink-2); }

/* ---- engagement ---- */
.engage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 8px; }
.engage > div { padding: 30px 28px 30px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.engage h3 { font-size: 22px; font-weight: 700; }
.engage p { color: var(--ink-2); font-size: 15.5px; }

/* ---- reference ---- */
.reference { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 0; border: 1.5px solid var(--rule); background: var(--paper-2); margin-top: 28px; }
.reference > div { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.reference > div + div { border-left: 1.5px solid var(--rule); }
@media (max-width: 960px) { .reference > div + div { border-left: 0; border-top: 1.5px solid var(--rule); } }
.reference h3 { font-size: clamp(34px, 4vw, 52px); font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.ticks li::before { content: ''; width: 12px; height: 12px; margin-top: 7px; border: 1.5px solid var(--teal); background: linear-gradient(var(--teal), var(--teal)) center / 6px 6px no-repeat; }

/* ---- faq ---- */
.faq { margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 22px var(--mono); color: var(--teal); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; max-width: 52em; color: var(--ink-2); }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; align-items: start; }
.contact h2 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 900; font-stretch: 78%; text-transform: uppercase; line-height: 0.96; letter-spacing: -0.02em; }
.contact-card { border: 1.5px solid var(--rule); background: var(--paper-2); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-card .email { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-card .email:hover { color: var(--teal); }
.brief { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ---- footer ---- */
.site-footer { border-top: 1.5px solid var(--rule); padding-block: 32px 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; color: var(--ink-2); }
.site-footer a { color: var(--ink); }

/* ---- capability statement page ---- */
.statement { max-width: 900px; margin: 0 auto; padding: 48px var(--pad) 72px; display: flex; flex-direction: column; gap: 34px; }
.statement h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; font-stretch: 80%; text-transform: uppercase; }
.statement h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1.5px solid var(--rule); padding-bottom: 8px; margin-bottom: 12px; }
.statement ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.print-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .print-bar, .skip { display: none !important; }
  .statement { padding: 0; gap: 18px; }
  a { color: var(--ink); text-decoration: none; }
}
