/* CornerWright: design "Site plan". Static, no framework, no scripts.
   Brand exception (Baldev, Oct 29): hard offset shadow on buttons, against Guide 16h. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe6da;
  --sheet: #fbf9f4;
  --ink: #1b1f23;
  --ink-2: #3d4248;
  --muted: #4a4f56;
  --rule: #d8d1c2;
  --orange: #f2652b; /* CornerWright orange (Baldev, Oct 29): graphite on it 5.27:1, it on graphite 5.27:1; decorative only on paper (2.76:1) */
  --orange-text: #a63a18;
  --link: #1e3a5f;
  --dark: #1b1f23;
  --dark-text: #f3f0e8;
  --dark-muted: #b9b4a8;
  --wrap: 1160px;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { a:hover { color: var(--orange-text); } }
::selection { background: rgba(242, 101, 43, 0.25); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { left: 8px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Header */
@media (max-height: 500px) { .site-header { position: static !important; } }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; min-height: 44px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav-links a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) { .nav-links a.nav-opt:hover { color: var(--orange-text); } }
@media (max-width: 560px) { .nav-opt { display: none !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--orange); color: var(--ink); font-weight: 600; font-size: 17px;
  text-decoration: none; border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
@media (hover: hover) { .btn:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); } }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.nav-links a.btn { color: var(--ink); }
.btn-sm { min-height: 48px; padding: 6px 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 560px) { .btn:not(.btn-sm) { min-height: 56px; } }
.mono-note { font-family: var(--mono); font-size: 14px; color: var(--muted); -webkit-user-select: all; user-select: all; cursor: text; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type */
.label { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(44px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 800; }
h2 { margin: 0; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; }
h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; font-weight: 700; }
.h-sm { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 8px; }
.lede { margin: 28px 0 0; max-width: 620px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink-2); }
.sub { margin: 18px 0 0; max-width: 640px; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
p { margin: 0; }
.body { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.body-lg { font-size: 20px; line-height: 1.55; }

/* Sections */
.section { padding-top: 104px; padding-bottom: 104px; border-top: 1px solid var(--rule); }
.section-panel { background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--dark-text); border-top: 0; }
.section-dark .body { color: var(--dark-muted); }
.sec-head { max-width: 760px; }
.cta-row { margin-top: 36px; display: flex; gap: 14px 22px; align-items: center; flex-wrap: wrap; }

/* Crop marks: the logo's corner bracket, top-left and bottom-right */
.crop { position: relative; }
.crop::before, .crop::after { content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none; }
.crop::before { top: -12px; left: -12px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.crop::after { bottom: -12px; right: -12px; border-bottom: 2px solid var(--orange); border-right: 2px solid var(--orange); }

/* Hero */
.hero {
  padding-top: 88px; padding-bottom: 96px;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(27, 31, 35, 0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(27, 31, 35, 0.045) 0 1px, transparent 1px 32px);
}
.hero-grid { display: grid; gap: 64px 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* Plan drawing */
.plan { background: var(--sheet); border: 1.5px solid var(--ink); padding: 14px; max-width: 560px; width: 100%; justify-self: center; }
.plan-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 2px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.map { position: relative; height: 290px; overflow: hidden; border: 1px solid var(--rule); background: var(--sheet); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; fill: var(--ink); }
.ml-inv { fill: #fbf9f4; }
.search {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: #fff; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 14px; color: var(--ink);
}
.search svg { flex: none; }
.typed { position: relative; display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: middle; }
.tags { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .tags { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.tag { border: 1px solid var(--ink); background: #fff; padding: 12px 14px; }
.tag-k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 6px; }
.tag-name { font-size: 18px; font-weight: 700; }
.tag-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.open { color: #1d6b34; font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.chip { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; color: var(--ink); }
.chip-face { position: relative; }
.chip-calling { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--orange); color: var(--ink); opacity: 0; }
.ai-q { font-size: 14px; color: var(--muted); }
.ai-a { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--ink); }

/* Terms strip */
.terms-strip { background: var(--ink); color: var(--dark-text); }
.strip { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.strip > div { padding: 40px 28px 44px 0; border-top: 1px solid #3a3f45; }
@media (min-width: 840px) { .strip > div { border-top: 0; border-left: 1px solid #3a3f45; padding: 48px 28px; } .strip > div:first-child { border-left: 0; padding-left: 0; } }
.strip p { font-size: 16px; line-height: 1.6; color: var(--dark-muted); }
.strip .h-sm { color: var(--dark-text); }

/* What I will not do: numbered spec sheet */
.wont { list-style: none; margin: 56px 0 0; padding: 0; border-top: 3px solid var(--ink); }
.wont li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 20px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.wont li::before { content: ""; grid-row: span 2; width: 18px; height: 2px; margin-top: 14px; background: var(--orange); }
@media (min-width: 860px) { .wont li { grid-template-columns: 48px minmax(0, 0.9fr) minmax(0, 1.4fr); } .wont li::before { grid-row: auto; } .wont h3 { margin: 0; font-size: 22px; } }
.wont a { display: block; width: fit-content; margin-top: 2px; padding-block: 12px; font-size: 15px; }

/* Services */
.services { display: grid; gap: 0 40px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.services > div { border-top: 1.5px solid var(--ink); padding: 22px 0 32px; }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { border-top: 1px solid #4a4f56; padding-top: 24px; }
.step-no { font-family: var(--mono); font-size: 34px; color: var(--dark-text); margin-bottom: 18px; line-height: 1; }

/* Two-column: sticky heading, list */
.split { display: grid; gap: 40px 72px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .split-head { position: sticky; top: 100px; align-self: start; } }
.split-list > div + div { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--rule); }

/* Contact */
.contact { background: var(--paper); }
.contact-box { border: 1.5px solid var(--ink); background: var(--sheet); padding: clamp(28px, 5vw, 64px); }

/* Footer */
.site-footer { border-top: 1px solid var(--ink); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 20px 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 48px; padding-inline: 4px; }

/* Legal pages */
.legal { padding-top: 72px; padding-bottom: 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin: 0; text-align: left; }
.legal .updated { margin-top: 12px; font-family: var(--mono); color: var(--muted); font-size: 14px; }
.legal h2 { font-size: 26px; letter-spacing: -0.01em; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; }
.legal li + li { margin-top: 6px; }
.legal.center h1 { text-align: center; }
.legal.center .sub { margin-left: auto; margin-right: auto; }

/* Motion: only when the visitor has not asked for less motion. Content is visible at first paint;
   only the map ink moves, and everything except the You pulse stops by about 4.8 s (Guide 3a/3d). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
  .btn:active { transition-duration: 60ms; }
  .btn > span[aria-hidden] { display: inline-block; transition: transform 0.2s ease-out; }
  @media (hover: hover) { .btn:hover > span[aria-hidden] { transform: translateX(3px); } }
  .plan.crop::before { transform-origin: 0 0; }
  .plan.crop::after { transform-origin: 100% 100%; }
  .plan.crop::before, .plan.crop::after { animation: mark 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .plan.crop::after { animation-delay: 0.12s; }
  .typed::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--orange) 0 2px, #fff 2px);
    animation: type 0.95s steps(19, end) 0.35s both;
  }
  .pin, .pin-shadow, .you-ring, .eta, .biz { transform-box: fill-box; transform-origin: center; }
  .pin { transform-origin: 50% 100%; animation: drop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1) 2.1s both; }
  .pin-shadow { animation: shadow 0.45s cubic-bezier(0.3, 0.7, 0.4, 1) 2.1s both; }
  .route { stroke-dasharray: 1 2; animation: draw 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.35s both; }
  /* Exception (Baldev, Oct 29): the You pulse loops. Compositor-only, off under reduced motion; fails WCAG 2.2.2 for others, accepted. */
  .you-ring { animation: pulse 2.4s ease-out 0.2s infinite both; }
  .eta, .biz { animation: pop 0.25s ease-out both; }
  .eta { animation-delay: 1.75s; }
  .biz { animation-delay: 2.4s; }
  .tag { position: relative; }
  .tag::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--orange); opacity: 0; pointer-events: none; animation: stamp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) 2.6s both; }
  .tag-ai::after { animation-delay: 2.9s; }
  .chip-calling { animation: call-on 1.6s ease 3.2s both; }
  .chip-face { animation: call-off 1.6s ease 3.2s both; }
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--orange); transform-origin: 0 50%; }
  @keyframes mark { from { transform: scale(0); } }
  @keyframes type { to { transform: translateX(100%); } }
  @keyframes drop { 0% { transform: translateY(-220px); } 70% { transform: translateY(0) scale(1.05, 0.92); } }
  @keyframes shadow { from { opacity: 0; transform: scale(0.3); } }
  @keyframes pulse { 0% { transform: scale(0.7); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }
  @keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 4% { opacity: 1; } to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: translateY(4px); } }
  @keyframes stamp { 0% { opacity: 0; transform: scale(1.04); } 40% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes call-on { 0%, 100% { opacity: 0; } 8%, 92% { opacity: 1; } }
  @keyframes call-off { 0%, 100% { opacity: 1; } 8%, 92% { opacity: 0; } }
  @keyframes draft { from { transform: scaleX(0); } }
  @supports (animation-timeline: view()) {
    .steps::before { animation: draft linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}

/* Print */
@media print {
  .site-header, .split-head { position: static; }
  .nav-links, .skip, .plan, .foot nav { display: none !important; }
  body, .section, .section-dark, .terms-strip, .section-panel, .hero, .contact-box { background: #fff !important; color: #000 !important; }
  .section-dark .body, .strip p, .strip .h-sm, .label-inv, .step-no { color: #000 !important; }
  .btn { box-shadow: none; }
  .section { padding: 24pt 0; }
  li, .services > div, .split-list > div { break-inside: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* Before you email */
.before { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.before h3 { font-size: 18px; margin-bottom: 6px; }
.before p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
