/* Shared document, annotation and inquiry components for ctrl+think. */
@font-face {
  font-family: PlexMono;
  src: url("../fonts/CTRLThinkMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: PlexMono;
  src: url("../fonts/CTRLThinkMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #F7F4ED;
  --paper-2: #EFEAE0;
  --sheet: #FFFDF8;
  --surface: var(--sheet);
  --night: #121A16;
  --night-line: #2E3B34;
  --on-night: #F2EEE6;
  --on-night-muted: #B4BEB8;
  --green: #234C3B;
  --pen: var(--orange);
  --pen-text: var(--orange-text);
  --pen-on-night: #F0A27F;
  --highlight: #F0DDB4;
  --sans: Schibsted, "Helvetica Neue", Arial, sans-serif;
  --serif: Instrument, Georgia, "Times New Roman", serif;
  --mono: PlexMono, ui-monospace, "SFMono-Regular", Menlo, monospace;
  --label: 500 12px/1.4 var(--mono);
  --r-sheet: 6px;
  --shadow-sheet: 0 1px 0 rgba(32,39,35,.06), 0 18px 40px -22px rgba(32,39,35,.42);
  --plus-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 13v6M13 16h6' stroke='%23202723' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  --plus-grid-night: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 13v6M13 16h6' stroke='%23F2EEE6' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 8vw, 112px);
}

body { font-size: 18px; }
main h1 {
  font-family: var(--sans);
  font-size: clamp(44px, 6.2vw, 92px);
  font-weight: 830;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
main h1 em {
  font: italic 400 1.04em/1 var(--serif);
  letter-spacing: -.01em;
  color: var(--green);
}
main h2 {
  font-family: var(--sans);
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
main h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 720;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.eyebrow, .kicker {
  display: flex;
  align-items: baseline;
  gap: .7em;
  margin: 0 0 16px;
  color: var(--muted);
  font: var(--label);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.kicker .plus, .eyebrow .plus { color: var(--pen); font-size: 15px; }
.contact .kicker, .contact .eyebrow, .how .eyebrow { color: var(--on-green-muted, #C8D9CF); }
.contact .plus, .how .plus { color: var(--pen-on-night); }
.runhead {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 clamp(28px, 4.4vw, 56px);
  padding-top: 11px;
  border-top: 1px solid var(--line-strong, var(--line));
  color: var(--muted);
  font: var(--label);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.runhead span + span { text-align: right; }
.site-footer .footer-copy, .site-footer .footer-bottom, .site-footer .footer-note {
  font-family: var(--mono);
}
.site-header .main-nav a:not(.btn):hover { border-color: var(--green); color: var(--green); }

.working-home .skip { outline-color: var(--paper); }
body :focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
body :is(.night, .contact, .how, .site-footer, .door-revenue) :focus-visible {
  outline-color: var(--paper);
}
body :is(.inquiry, .brief) :focus-visible { outline-color: var(--green); }

.sheet {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-sheet);
}
.sheet-tag {
  display: flex;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 9px;
  margin: 0 0 12px;
  border-bottom: 1px dashed var(--line-strong, var(--line));
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sheet-tag b { font-weight: 500; color: var(--ink); }
.mark { background-color: var(--highlight); padding-inline: .12em; box-decoration-break: clone; }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.textlink .arr { text-decoration: none; }
.textlink:hover { text-decoration-thickness: 2px; }
.annot {
  color: var(--pen-text);
  font: italic 400 21px/1.2 var(--serif);
}
.annot path {
  fill: none;
  stroke: var(--pen);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.night {
  color: var(--on-night);
  background: var(--night) var(--plus-grid-night) center top;
}
.night :is(.kicker, .eyebrow, .runhead, .lede) { color: var(--on-night-muted); }
.night :is(.kicker .plus, .eyebrow .plus, .pinnotes, .ledger .limit dt) { color: var(--pen-on-night); }
.night .runhead { border-color: var(--night-line); }
.night a { color: var(--on-night); }
.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5.6vw, 82px);
}
.exhibit + .exhibit {
  margin-top: clamp(48px, 6vw, 90px);
  padding-top: clamp(48px, 6vw, 90px);
  border-top: 1px solid var(--night-line);
}
.exhibit.flip .ex-art { grid-column: 2; grid-row: 1; }
.exhibit.flip .ex-copy { grid-column: 1; grid-row: 1; }
.ex-art {
  width: 100%;
  justify-self: center;
  max-width: 410px;
  padding-inline: 16px;
}
.ex-art .frame {
  position: relative;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
}
.ex-art .frame::before, .ex-art .frame::after {
  position: absolute;
  content: "";
  width: 12px;
  height: 12px;
  border: solid var(--muted);
  pointer-events: none;
}
.ex-art .frame::before { inset: -6px auto auto -6px; border-width: 1px 0 0 1px; }
.ex-art .frame::after { inset: auto -6px -6px auto; border-width: 0 1px 1px 0; }
.night .ex-art .frame::before, .night .ex-art .frame::after { border-color: var(--on-night-muted); }
.ex-art img { width: 100%; height: auto; }
.ex-art figcaption { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.night .ex-art figcaption { color: var(--on-night-muted); }
.frame .estimate-image {
  aspect-ratio: 552 / 780;
  overflow: hidden;
  mask-image: linear-gradient(#000 93%, transparent);
}
.pin, .pinnotes li::before {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--pen-text);
  color: var(--sheet);
  font: 500 12px/1 var(--mono);
}
.pin {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--sheet);
  box-shadow: 0 3px 10px rgba(32,39,35,.22);
}
.pin-a { top: 20%; left: -11px; }
.pin-b { top: 54%; left: -11px; }
.pin-c { top: 5%; right: -11px; }
.pin-d { top: 44%; right: -11px; }
.pin-e { top: 52%; right: -11px; }
.frame.estimate-full .pin-d { top: 28%; }
.frame.estimate-full .pin-e { top: 33%; }
.ex-copy h3 { margin: 10px 0 16px; font-size: clamp(25px, 3.1vw, 40px); max-width: 23ch; }
.ex-copy .chip {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  white-space: normal;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.night .ex-copy .chip { background: #1B2620; color: var(--on-night); border-color: var(--night-line); }
.ex-copy .chip::before { content: "+"; color: var(--pen-text); margin-right: 7px; }
.night .ex-copy .chip::before { color: var(--pen-on-night); }
.exno {
  margin-top: 16px;
  color: var(--muted);
  font: var(--label);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.night .exno { color: var(--on-night-muted); }
.pinnotes {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  color: var(--pen-text);
  counter-reset: notes;
  font: italic 400 21px/1.2 var(--serif);
}
.pinnotes li { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: start; margin-bottom: 8px; }
.pinnotes li::before { counter-increment: notes; content: counter(notes); }
.ledger { margin: 0 0 18px; }
.ledger > div {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(0, 2.6fr);
  gap: 8px 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.night .ledger > div { border-color: var(--night-line); }
.ledger dt {
  color: var(--muted);
  font: 500 12px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.night .ledger dt { color: var(--on-night-muted); }
.ledger dd { font-size: 16px; line-height: 1.5; margin: 0; }
.ledger .limit { border-top: 1px dashed var(--pen-text); }
.ledger .limit dt { color: var(--pen-text); }
.night .ledger .limit { border-top-color: var(--pen-on-night); }
.ex-reference { margin-top: 10px; font-size: 14px; }
.ex-reference a { text-underline-offset: 3px; }
.ex-reference a:hover { text-decoration-thickness: 2px; }

.brief.inquiry { background: var(--sheet); border-radius: var(--r-sheet); }
.brief .sheet-tag { padding-bottom: 9px; margin-bottom: 21px; }
.brief .form-title { margin-bottom: 16px; }
.brief :is(input, select, textarea) { background-color: var(--paper); }
.brief label { color: var(--ink); }
:is(.brief, .pb-page) textarea::placeholder { color: var(--muted); opacity: 1; }
.brief .field select { min-width: 0; }
.working-contact .runhead, .how .runhead { color: var(--on-green); border-color: rgba(247,244,237,.4); }
.steps .step-num { background: var(--pen-text); color: var(--sheet); }

.prompt-sample {
  padding: clamp(16px, 3vw, 27px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: 18px;
}
.prompt-sample div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.prompt-sample div > p:not(.sheet-tag) { margin: 0; font-size: 16px; }
.prompt-sample .sheet-tag { font: 500 12px/1.4 var(--mono); margin: 0 0 9px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .runhead { font-size: 12px; }
  .runhead span + span { display: none; }
  .exhibit, .exhibit.flip { display: grid; grid-template-columns: 1fr; }
  .exhibit.flip .ex-art, .exhibit.flip .ex-copy { grid-column: auto; grid-row: auto; }
  .ex-art { max-width: 356px; padding-inline: 8px; }
  .ex-art .frame { padding: 6px; }
  .ex-art .pin { display: none; }
  .ledger > div { grid-template-columns: 1fr; gap: 4px; }
  .prompt-sample { grid-template-columns: 1fr; }
  .prompt-sample div + div { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .textlink .arr { transition: transform .2s ease-out; }
  .textlink:hover .arr { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Company pages on the utility shell share the editorial type and masthead. */
body:is(.st-page, [data-agency-utility]) .wrap,
html[data-agency-utility] body .wrap { width: min(1200px, 100% - 2 * var(--gutter)); }
.site-header .brand-dot {
  position: relative;
  border: 0;
  box-shadow: none;
  background: var(--green);
}
.site-header .brand-dot::before, .site-header .brand-dot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
}
.site-header .brand-dot::before { width: 10px; height: 2px; }
.site-header .brand-dot::after { width: 2px; height: 10px; }
html[data-agency-utility] .header-inner, body[data-agency-utility] .header-inner { min-height: 72px; }
.site-header .menu-toggle { min-height: 44px; }
.document-page > h1, .document-page .pb-intro h1 { font-size: clamp(44px, 6.2vw, 92px); }
.document-page h2 { font-size: clamp(27px, 3.2vw, 44px); }
.site-footer .footer-bottom { font-size: 12px; }
.site-footer .footer-copy, .site-footer .footer-note { font-size: 12px; }

.pb-intro { margin-bottom: 18px; }
.pb-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 5vw, 70px);
  align-items: end;
}
.document-page .pb-intro-grid h1 { max-width: 12ch; margin-bottom: 18px; }
.pb-intro-grid .pb-lede { margin-bottom: 0; }
.pb-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}
.document-page .pb-privacy li {
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 3px;
  padding: 5px 9px;
  background: var(--sheet);
  color: var(--ink);
  font: var(--label);
}
.pb-privacy-details { margin-top: 10px; }
.pb-privacy-details summary { width: fit-content; color: var(--green); cursor: pointer; padding-block: 7px; }
.pb-privacy-details .pb-note { margin-top: 6px; }
.pb-page #prompt-builder { border-radius: var(--r-sheet); background: var(--sheet); }

.case-hero h1 { font-size: clamp(44px, 6.2vw, 92px); }
.case-pair .case-image {
  background: var(--sheet);
  border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--r-sheet);
  padding: 8px;
}
.case-pair .case-image img { border-radius: 2px; }
.case-pair .case-image figcaption { color: var(--muted); background: var(--sheet); font: var(--label); }
.case-meta strong { font: var(--label); }

@media (max-width: 700px) {
  .pb-intro-grid { grid-template-columns: 1fr; }
  .document-page .pb-intro-grid h1 { max-width: none; }
  .case-hero h1 { overflow-wrap: anywhere; }
}
