/* Monogram Media — Architectural base, Blueprint details */

:root {
  --accent: #FF4F00;          /* placeholder until tested in both modes */
  --accent-ink: #111111;      /* text on accent */
  --page: #FFFFFF;
  --ink: #111111;
  --ink-2: #4A4A48;
  --ink-3: #8A8A86;
  --rule: #111111;
  --hair: #DCDCD8;
  --grid: rgba(17, 17, 17, 0.045);
  --panel: #F4F4F2;
  --slot-bg: rgba(255, 79, 0, 0.08);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #101011;
    --ink: #F4F4F2;
    --ink-2: #B8B8B3;
    --ink-3: #7A7A76;
    --rule: #F4F4F2;
    --hair: #2A2A2B;
    --grid: rgba(244, 244, 242, 0.04);
    --panel: #18181A;
    --slot-bg: rgba(255, 79, 0, 0.14);
  }
}
:root[data-theme="dark"] {
  --page: #101011;
  --ink: #F4F4F2;
  --ink-2: #B8B8B3;
  --ink-3: #7A7A76;
  --rule: #F4F4F2;
  --hair: #2A2A2B;
  --grid: rgba(244, 244, 242, 0.04);
  --panel: #18181A;
  --slot-bg: rgba(255, 79, 0, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.mono, .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label { color: var(--ink-2); }

/* Copy slots: visible placeholders until real copy drops in */
.slot {
  background: var(--slot-bg);
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
  padding: 0 0.15em;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--page); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
}
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--page); }
.btn:not(.btn--accent):hover { background: var(--ink); color: var(--page); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header (C4 Ruled) ---------- */
.site-header { border-bottom: 2px solid var(--rule); background: var(--page); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }

.c4 { text-decoration: none; color: var(--ink); display: inline-block; }
.c4__top { display: flex; align-items: center; gap: 18px; }
.c4__name { font-weight: 800; font-size: 22px; letter-spacing: 0.01em; line-height: 1; }
.c4__sq { width: 10px; height: 10px; background: var(--accent); margin-left: auto; }
.c4__rule { height: 2px; background: var(--rule); margin: 7px 0 6px; }
.c4__tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--accent); }
.nav .btn { padding: 11px 16px; font-size: 12px; }

.nav-toggle { display: none; background: none; border: 2px solid var(--ink); color: var(--ink); padding: 8px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--page); border-bottom: 2px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- Blueprint grid backdrop ---------- */
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Section frame ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--hair); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px; border-bottom: 2px solid var(--rule); padding-bottom: 14px; margin-bottom: 40px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.sheet { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--hair); position: relative; }
.hero .wrap { padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(56px, 9vw, 112px); position: relative; }
.hero__meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 92px); line-height: 0.98; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 28px; max-width: 14ch; text-transform: uppercase; }
.hero__sub { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 46ch; margin: 0 0 40px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Dimension line under the hero headline */
.dim { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; max-width: 640px; color: var(--ink-3); }
.dim::before, .dim::after { content: ""; height: 1px; background: currentColor; flex: 1; }
.dim span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; }
.dim i { width: 1px; height: 12px; background: currentColor; }

/* Corner crop marks */
.crop { position: absolute; width: 18px; height: 18px; border-color: var(--ink-3); border-style: solid; }
.crop--tl { top: 20px; left: var(--gutter); border-width: 1px 0 0 1px; }
.crop--tr { top: 20px; right: var(--gutter); border-width: 1px 1px 0 0; }
.crop--bl { bottom: 20px; left: var(--gutter); border-width: 0 0 1px 1px; }
.crop--br { bottom: 20px; right: var(--gutter); border-width: 0 1px 1px 0; }

/* ---------- Pitch ---------- */
.pitch { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--rule); }
.pitch > div { padding: clamp(24px, 4vw, 48px); }
.pitch > div + div { border-left: 2px solid var(--rule); background: var(--panel); }
.pitch h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 12px; font-weight: 800; line-height: 1.15; }
.pitch p { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) {
  .pitch { grid-template-columns: 1fr; }
  .pitch > div + div { border-left: 0; border-top: 2px solid var(--rule); }
}

/* ---------- Service teasers ---------- */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--rule); }
.teaser { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; text-decoration: none; }
.teaser + .teaser { border-left: 1px solid var(--rule); }
.teaser h3 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; }
.teaser p { margin: 0; color: var(--ink-2); }
.teaser .more { margin-top: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.teaser:hover { background: var(--panel); }
.teaser:hover .more { color: var(--accent); }
.teasers-foot { margin-top: 20px; }
@media (max-width: 860px) {
  .teasers { grid-template-columns: 1fr; }
  .teaser + .teaser { border-left: 0; border-top: 1px solid var(--rule); }
  .teaser { min-height: 0; }
}

/* ---------- Blueprint drawers ---------- */
.drawers { border-top: 2px solid var(--rule); }
.drawer { border-bottom: 1px solid var(--rule); }
.drawer__btn {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px;
  background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer;
  padding: 22px 0; font: inherit;
}
.drawer__btn:hover .drawer__title { color: var(--accent); }
.drawer__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.drawer__title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.2; }
.drawer__state { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.drawer__icon { width: 22px; height: 22px; border: 2px solid var(--ink); position: relative; flex: none; }
.drawer__icon::before, .drawer__icon::after { content: ""; position: absolute; background: var(--ink); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.drawer__icon::before { width: 10px; height: 2px; }
.drawer__icon::after { width: 2px; height: 10px; transition: transform .2s; }
.drawer__btn[aria-expanded="true"] .drawer__icon { background: var(--accent); border-color: var(--accent); }
.drawer__btn[aria-expanded="true"] .drawer__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.drawer__btn[aria-disabled="true"] { cursor: default; }
.drawer__btn[aria-disabled="true"] .drawer__title { color: var(--ink-3); }
.drawer__btn[aria-disabled="true"]:hover .drawer__title { color: var(--ink-3); }

.drawer__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.drawer__panel.is-open { grid-template-rows: 1fr; }
.drawer__panel > .drawer__inner { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer__panel { transition: none; } }

.drawer__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 8px 0 40px 80px; }
.drawer__body h4 { font-size: 22px; font-weight: 800; margin: 0 0 14px; line-height: 1.25; }
.drawer__body p { color: var(--ink-2); margin: 0 0 20px; }
.drawer__links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .drawer__btn { grid-template-columns: 44px 1fr auto; }
  .drawer__state .txt { display: none; }
  .drawer__body { grid-template-columns: 1fr; padding-left: 0; gap: 24px; }
}

/* ---------- Spoke wheel diagram ---------- */
.wheel { border: 1px solid var(--hair); padding: 12px; background: var(--page); }
.wheel svg { width: 100%; height: auto; }
.wheel .w-line { stroke: var(--ink); stroke-width: 1.5; }
.wheel .w-dash { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.wheel .w-hub { fill: var(--ink); }
.wheel .w-hub-text { fill: var(--page); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; font-weight: 600; }
.wheel .w-node rect { fill: var(--page); stroke: var(--ink); stroke-width: 1.5; }
.wheel .w-node text { fill: var(--ink); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; }
.wheel .w-node .w-sub { fill: var(--ink-3); font-size: 9px; }
.wheel .w-node { cursor: pointer; }
.wheel .w-node:hover rect, .wheel .w-node:focus rect, .wheel .w-node.is-active rect { fill: var(--accent); stroke: var(--accent); }
.wheel .w-node:hover text, .wheel .w-node:focus text, .wheel .w-node.is-active text { fill: var(--accent-ink); }
.wheel .w-node:focus { outline: none; }
.wheel .w-tag { fill: var(--ink-3); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; }
.wheel-caption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); margin-top: 10px; min-height: 2.6em; letter-spacing: 0.02em; }
.wheel-caption b { color: var(--ink); font-weight: 600; }

/* ---------- Proof ---------- */
.proof { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--rule); }
.proof__shot { background: var(--panel); min-height: 280px; display: grid; place-items: center; border-right: 2px solid var(--rule); }
.proof__shot span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.proof__body { padding: clamp(24px, 4vw, 48px); }
.proof__body h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 10px 0 14px; line-height: 1.1; }
.proof__body p { color: var(--ink-2); margin: 0 0 24px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 28px; font-size: 15px; }
.specs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); padding-top: 3px; text-transform: uppercase; }
.specs dd { margin: 0; }
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; }
  .proof__shot { border-right: 0; border-bottom: 2px solid var(--rule); min-height: 200px; }
}

/* ---------- Final CTA ---------- */
.cta { background: var(--ink); color: var(--page); }
.cta .wrap { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cta h2 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; line-height: 1; margin: 10px 0 0; text-transform: uppercase; letter-spacing: -0.01em; max-width: 16ch; }
.cta .label { color: var(--ink-3); }
.cta .slot { outline-color: var(--accent); }
.cta .steps { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 20px; text-transform: uppercase; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Footer (A1 full block) ---------- */
.site-footer { padding: 64px 0 40px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; }
.a1 { border: 2px solid var(--rule); max-width: 420px; }
.a1__top { padding: 18px 20px 16px; }
.a1__project { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; }
.a1__name { font-weight: 800; font-size: 32px; line-height: 1; margin-top: 6px; letter-spacing: 0.005em; }
.a1__cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--rule); }
.a1__cells span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; padding: 10px 14px; font-weight: 600; }
.a1__cells span + span { border-left: 1px solid var(--rule); }
.a1__cells span:last-child { background: var(--accent); color: var(--accent-ink); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { margin: 0 0 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 8px; }
.footer-cols a { text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: var(--accent); }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 20px; color: var(--ink-3); }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .a1__name { font-size: 26px; }
}

/* ---------- Blueprint page ---------- */
.bp-hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.bp-hero h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; line-height: 1; margin: 12px 0 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.bp-hero p { font-size: 20px; color: var(--ink-2); max-width: 52ch; margin: 0; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.bp-layout p { color: var(--ink-2); }
@media (max-width: 860px) { .bp-layout { grid-template-columns: 1fr; } }
.crumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
