/* Slashwright site. Colours and type carried over from mockups/slashwright-home-d.html. */
:root {
  --cobalt: #2a3fd0;
  --navy: #151b4f;
  --paper: #f2f2ec;
  --mist: #dfe3f7;
  --yellow: #f3d848;
  --rule: #c9cce0;
  --quiet: #4d5380;      /* secondary text on paper and mist */
  --sheet: #ffffff;      /* figure surfaces */
  --pass: #17693f;
  --fail: #b3261e;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
[id] { scroll-margin-top: 24px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--yellow); color: var(--navy); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band { padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px); }
.band-cobalt { background: var(--cobalt); color: var(--paper); }
.band-navy { background: var(--navy); color: var(--paper); }
.band-mist { background: var(--mist); }
.band-yellow { background: var(--yellow); }
.band-tight { padding-top: 0; }

h1, h2, h3 { font-family: var(--display); font-stretch: 82%; }
h2 {
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
  text-wrap: balance;
}
h3 { font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.12; letter-spacing: -0.01em; }
.note { max-width: 58ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.note + .note { margin-top: 1em; }
.quiet { color: var(--quiet); }
.on-dark .quiet, .on-dark .note { color: var(--mist); }
.head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 76px); }
@media (min-width: 900px) { .head { grid-template-columns: 7fr 5fr; align-items: end; gap: 48px; } }
.label { font: 600 0.9375rem/1.3 var(--body); margin-bottom: 14px; }

/* header */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 20px; padding-bottom: 20px; }
.mark { font: 800 1.5rem/1 var(--display); font-stretch: 82%; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; padding: 8px 0; }
.mark i { font-style: normal; color: var(--yellow); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav-links a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 10px 0; }
.nav-links a:hover, .nav-links a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav-links { order: 3; flex-basis: 100%; flex-direction: column; gap: 0; border-top: 1px solid rgba(242, 242, 236, .35); }
  .nav-links a { font-size: 1.125rem; padding: 14px 0; border-bottom: 1px solid rgba(242, 242, 236, .35); }
  .js .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    font: 600 0.9375rem/1 var(--body); color: inherit; background: none;
    border: 1.5px solid currentColor; border-radius: 999px; cursor: pointer;
  }
  .js .nav-links:not(.open) { display: none; }
  .nav .btn { display: none; }
  .nav-links .nav-start { display: block; }
}
@media (min-width: 861px) { .nav-links .nav-start { display: none; } }

.btn {
  display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none;
  padding: 15px 22px; border-radius: 999px; background: var(--yellow); color: var(--navy);
}
.btn:hover { background: var(--paper); }
.btn-small { padding: 12px 16px; font-size: 0.875rem; }
.arrow { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.arrow::after { content: " \2192"; white-space: nowrap; }
.arrow.out::after { content: " \2197"; }

/* hero: one composition, two phrases, stepped along the angle of the slash */
.hero-in { padding-top: clamp(40px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
h1 { font-weight: 800; line-height: 0.92; letter-spacing: 0; }
.hero h1 { font-size: clamp(2rem, 10.2vw, 9.25rem); }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .l2 { margin-left: 0.9em; }
.hero h1 .l3 { margin-left: 1.8em; }
.hero h1 em { font-style: normal; font-weight: 400; color: var(--mist); }
@media (max-width: 700px) {
  .hero h1 .l2 { margin-left: 0.35em; }
  .hero h1 .l3 { margin-left: 0.7em; }
}
.hero-foot { display: grid; gap: 28px; margin-top: clamp(32px, 6vw, 80px); }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 5fr 7fr; align-items: end; } .hero-foot .note { order: 2; } }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.cut { display: block; width: 100%; height: clamp(36px, 8vw, 120px); background: var(--paper); clip-path: polygon(0 100%, 100% 0, 100% 100%); }

/* ruled index rows: consulting areas, more work, catalogue */
.rows > li, .rows > div { border-top: 1px solid var(--rule); padding: 26px 0; display: grid; gap: 10px; }
.rows > :last-child { border-bottom: 1px solid var(--rule); }
.rows h3 a { text-decoration: none; }
.rows h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.rows p { max-width: 62ch; }
.rows .links { font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (min-width: 900px) {
  .rows > li, .rows > div { grid-template-columns: 4fr 5fr 3fr; gap: 40px; padding: 34px 0; align-items: start; }
  .rows .links { flex-direction: column; }
}
.on-dark .rows > *, .on-dark .rows > :last-child { border-color: #3a4189; }

/* the order journey */
.line { display: grid; }
.line li { position: relative; }
.line b { display: block; font: 700 1.1875rem/1.2 var(--display); font-stretch: 82%; }
.line span { display: block; font-size: 0.9375rem; line-height: 1.4; margin-top: 6px; max-width: 24ch; }
.line li::before { content: ""; position: absolute; background: var(--yellow); }
.line li::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); }
.line .store { color: var(--quiet); }
.line .store::before { background: var(--rule); }
.line .store::after { background: var(--paper); border: 3px solid var(--navy); }
.key { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 32px; font-size: 0.9375rem; }
.key span::before { content: ""; display: inline-block; width: 28px; height: 8px; margin-right: 10px; background: var(--yellow); vertical-align: 1px; }
.key span:first-child::before { background: var(--rule); }
@media (min-width: 900px) {
  .line { grid-template-columns: repeat(7, 1fr); }
  .line li { padding: 40px 16px 0 0; }
  .line li::before { left: 0; right: 0; top: 3px; height: 8px; }
  .line li::after { left: 0; top: 0; }
}
@media (max-width: 899px) {
  .line li { padding: 0 0 26px 38px; }
  .line li::before { left: 3px; top: 4px; bottom: -4px; width: 8px; }
  .line li:last-child::before { display: none; }
  .line li::after { left: 0; top: 4px; }
  .line span { max-width: 40ch; }
}

/* spreads and figures */
.spread { display: grid; gap: 40px; }
@media (min-width: 980px) {
  .spread { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
  .spread.flip { grid-template-columns: 7fr 5fr; }
  .spread.flip > .spread-text { order: 2; }
}
.spread-text > * + * { margin-top: 20px; }
.spread-text .credit { font-size: 0.9375rem; }
figure { min-width: 0; }
figcaption { margin-top: 16px; font-size: 0.9375rem; max-width: 70ch; }
figcaption b { font-weight: 600; }
.fig { background: var(--sheet); color: var(--navy); border-radius: 6px; padding: clamp(16px, 2.4vw, 28px); min-width: 0; }
.fig-dark { background: #0d1238; color: var(--paper); border: 1px solid #3a4189; }
.fig-title { font: 600 0.8125rem/1.3 var(--body); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mono, code, pre { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* a closer look at the Picked step, under the order journey */
.closer { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); display: grid; gap: 28px; }
.closer h3 + p { margin-top: 12px; max-width: 52ch; }
@media (min-width: 900px) { .closer { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }
.floor { background: var(--navy); color: var(--paper); border-radius: 6px; padding: clamp(20px, 2.6vw, 30px); }
.floor .mono { font-size: 1rem; color: var(--mist); }
.floor .mono + .mono { margin-top: 4px; }
.floor .next { margin-top: 18px; padding-top: 18px; border-top: 1px solid #3a4189; color: var(--yellow); font: 700 clamp(1.6rem, 3.2vw, 2.3rem)/1.1 var(--display); font-stretch: 82%; }
.ok { color: var(--pass); font-weight: 600; }
.bad { color: var(--fail); font-weight: 600; }

/* scanner */
.scan-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .scan-grid { grid-template-columns: 4fr 8fr; align-items: start; } }
.product .pic { aspect-ratio: 4 / 3; border-radius: 4px; background: var(--mist); display: grid; place-items: center; font: 800 2.5rem/1 var(--display); font-stretch: 82%; color: var(--cobalt); }
.product h4 { font: 700 1.25rem/1.2 var(--display); font-stretch: 82%; margin-top: 14px; }
.product .price { font-weight: 600; margin-top: 4px; }
.product .fake-btn { margin-top: 12px; display: inline-block; padding: 9px 14px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: 0.875rem; font-weight: 600; }
.tabs { display: grid; gap: 6px; margin-bottom: 14px; }
.tabs button {
  text-align: left; font: 600 1rem/1.3 var(--body); color: var(--navy);
  background: none; border: 0; border-left: 6px solid var(--rule); padding: 10px 12px; cursor: pointer; min-height: 44px;
}
.tabs button[aria-selected="true"] { border-left-color: var(--cobalt); background: var(--sheet); }
.panel h4 { font: 600 1rem/1.3 var(--body); margin-bottom: 12px; }
.panel + .panel { margin-top: 14px; }
.js .panel h4 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.js .panel + .panel { margin-top: 0; }
.checks li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.875rem; }
.checks .state { font-family: var(--mono); font-size: 0.8125rem; }
.checks .fix { grid-column: 1 / -1; color: var(--quiet); }
.checks .fix b { color: var(--navy); font-weight: 600; }

/* beaconfire exchange */
.exchange li { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid #3a4189; }
.exchange li:first-child { border-top: 0; padding-top: 0; }
.exchange .step { font: 600 1rem/1.3 var(--body); }
.exchange .in { color: var(--yellow); }
.exchange .back { color: var(--mist); }
@media (min-width: 720px) { .exchange li { grid-template-columns: 5fr 7fr; gap: 24px; } }

/* catalogue */
.cat { margin-top: clamp(40px, 5vw, 64px); }
.cat > h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: none; margin-bottom: 8px; }
.cat > p { margin-bottom: 22px; max-width: 62ch; }
.cat-list > li { border-top: 1px solid #b5bbe0; padding: 18px 0; display: grid; gap: 4px; }
.cat-list > li:last-child { border-bottom: 1px solid #b5bbe0; }
.cat-list h3 { font-size: 1.25rem; }
.cat-list .meta { font-size: 0.875rem; color: var(--quiet); }
.cat-list .go { font-size: 0.9375rem; padding: 6px 0; }
@media (min-width: 900px) {
  .cat-list > li { grid-template-columns: 3fr 5fr 3fr; gap: 32px; align-items: baseline; }
  .cat-list .meta { grid-column: 2; grid-row: 2; }
  .cat-list .go { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
}

/* how we work */
.split { display: grid; gap: 44px; }
@media (min-width: 900px) { .split { grid-template-columns: 6fr 6fr; gap: 72px; } }
.steps { border-top: 8px solid var(--navy); counter-reset: s; }
.steps li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.steps b { display: block; font: 700 1.25rem/1.2 var(--display); font-stretch: 82%; }

/* start */
.start h2 { font-size: clamp(2.5rem, 7.4vw, 6.5rem); line-height: 0.96; letter-spacing: -0.025em; max-width: 13ch; }
.start .note { margin-top: clamp(28px, 4vw, 48px); }
.enquiry { margin-top: clamp(28px, 4vw, 44px); max-width: 640px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: 400 1.0625rem/1.5 var(--body); color: var(--navy);
  background: var(--sheet); border: 2px solid var(--navy); border-radius: 6px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 9em; }
.field [aria-invalid="true"] { border-color: var(--fail); border-width: 3px; }
.err { font-weight: 600; }
.err:empty { display: none; }
.err::before { content: "\26A0\FE0E  "; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-navy { background: var(--navy); color: var(--paper); border: 0; cursor: pointer; justify-self: start; }
.btn-navy:hover { background: var(--cobalt); }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.sent { margin-top: clamp(28px, 4vw, 44px); font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--display); font-stretch: 82%; }
.sent:empty { display: none; }

/* measurement choice, shown only where production measurement is on */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--navy); color: var(--paper); padding: 16px var(--pad); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: 0.9375rem; }
.consent p { max-width: 62ch; }
.consent div { display: flex; gap: 10px; }
.consent button { font: 600 0.9375rem/1 var(--body); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--paper); background: none; color: var(--paper); cursor: pointer; }
.consent button[data-choice="granted"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.linklike { font: inherit; color: inherit; background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; }

.start .contact { margin-top: 28px; font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--display); font-stretch: 82%; overflow-wrap: anywhere; }

.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-head h1 { font-size: clamp(2.5rem, 8.4vw, 7rem); }
.page-head .note { margin-top: 28px; color: var(--mist); }

footer { background: var(--navy); color: var(--mist); padding: 36px 0; font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
footer a { text-decoration: none; padding: 10px 0; }
footer a:hover { text-decoration: underline; }
footer .mark { color: var(--paper); font-size: 1.25rem; margin-right: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
