/* Unwin Works, v4: Ledger in mill colours. Blue brick is what the business stands on; brick red is the red pen, used only where something is checked. (Token names keep their v3 names: --green is now blue brick.) */

@font-face { font-family: "Roca"; src: url("../fonts/roca-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roca"; src: url("../fonts/roca-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --stone: #F8F7F4;
  --stone-2: #ECE8E1;
  --ink: #262A30;
  --ink-2: #40444B;
  --muted: #5F6168;
  --line: #DCD7CF;
  --green: #2C333D;
  --green-deep: #22282F;
  --green-pale: #F0A58E;
  --on-green: #F8F7F4;
  --on-green-2: #C9CDD3;
  --line-green: rgba(248, 247, 244, 0.2);
  --serif: "Roca", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --space: clamp(88px, 11vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; font-synthesis: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--stone); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

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

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 7.4vw, 108px); line-height: 1.0; letter-spacing: -0.022em; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -0.016em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.1vw, 28px); line-height: 1.2; letter-spacing: -0.006em; }
.lede { font-size: clamp(21px, 1.7vw, 24px); line-height: 1.5; color: var(--ink-2); }
.body { color: var(--ink-2); }
.small { font-size: 17px; }
.label { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.fig { font-family: var(--serif); font-weight: 300; font-feature-settings: "onum"; letter-spacing: -0.02em; line-height: 0.95; }
.onum { font-feature-settings: "onum"; }
.link { font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 0.22em; }
.link::after { content: " \2192"; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: var(--on-green); text-decoration: none; padding: 17px 28px; font-weight: 600; font-size: 18px; line-height: 1.2; border: 1px solid var(--green); transition: background .15s; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-green); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--stone); }
.btn-light { background: var(--stone); color: var(--green); border-color: var(--stone); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--green); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

/* ---------- Header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 26px; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; gap: 34px; font-size: 18px; font-weight: 600; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--ink); padding-block: 6px; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.site-header .btn { padding: 12px 20px; font-size: 17px; }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); }

/* ---------- Sections ---------- */
.sec { padding-top: var(--space); }
.sec-head { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 24px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .label { grid-column: 1 / span 3; padding-top: 6px; }
.sec-head .h2 { grid-column: 4 / span 9; max-width: 15em; }
.sec-head .intro { grid-column: 4 / span 7; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero .grid { row-gap: 40px; align-items: end; }
.hero h1 { grid-column: 1 / span 8; }
.hero .hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 32px; }
.hero .hero-photo { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: stretch; }
.assure { font-size: 17px; color: var(--muted); }
.assure span + span::before { content: "·"; margin: 0 10px; color: var(--line); }

/* ---------- Photography placeholders ---------- */
.photo { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo .frame { position: relative; background: var(--stone-2); aspect-ratio: 4 / 5; overflow: hidden; }
.photo .frame.land { aspect-ratio: 3 / 2; }
.photo .frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(44,51,61,0.07), rgba(44,51,61,0) 55%); }
.photo .frame .note { position: absolute; left: 20px; right: 20px; bottom: 18px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.photo .frame .note b { display: block; font-weight: 600; color: var(--ink-2); }
.photo figcaption { font-size: 16px; color: var(--muted); }
.photo figcaption b { color: var(--ink); font-weight: 600; }
.hero .photo { height: 100%; }
.hero .photo .frame { flex: 1; aspect-ratio: auto; min-height: 420px; }

/* ---------- Figures (the gap) ---------- */
.source { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* ---------- Where we help ---------- */

/* ---------- In practice ---------- */

/* ---------- Green field ---------- */
.field { background: var(--green); color: var(--on-green); }
.field .label { color: var(--green-pale); }
.field .g { color: var(--green-pale); }
.field .body, .field .lede { color: var(--on-green-2); }
.field a { color: var(--on-green); }
.field .link { color: var(--green-pale); }
.field .photo .frame { background: #3A424D; }
.field .photo .frame::before { background: linear-gradient(160deg, rgba(248,247,244,0.06), rgba(248,247,244,0) 55%); }
.field .photo .frame .note { color: var(--on-green-2); }
.field .photo .frame .note b { color: var(--on-green); }
.feature { margin-top: var(--space); padding-block: clamp(72px, 9vw, 136px); }
.feature .grid { row-gap: 40px; align-items: center; }
.feature .photo { grid-column: 1 / span 7; }
.feature .copy { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 26px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 48px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.steps .fig { font-size: 56px; color: var(--muted); }
.steps .price { margin-top: auto; padding-top: 10px; font-family: var(--serif); font-size: 23px; line-height: 1.25; font-feature-settings: "onum"; }
.steps .price small { display: block; font-family: var(--sans); font-size: 16px; color: var(--muted); margin-top: 4px; }
.promise-line { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.promise-line span { font-family: var(--serif); font-size: 22px; }

/* ---------- Founder ---------- */
.founder .grid { row-gap: 48px; }
.founder .photo { grid-column: 1 / span 5; }
.founder .copy { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 40px; justify-content: center; }
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.16; letter-spacing: -0.014em; }
.quote footer { margin-top: 18px; font-size: 17px; color: var(--muted); }
.creds { display: flex; flex-direction: column; }
.creds div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 24px; }
.creds div:last-child { border-bottom: 1px solid var(--line); }
.creds b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; }
.creds span { font-size: 18px; color: var(--ink-2); }

/* ---------- Tables ---------- */
.price-list { border-bottom: 1px solid var(--line); }
.price-list > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 6px; padding-block: 24px; border-top: 1px solid var(--line); align-items: baseline; }
.price-list .h3 { grid-column: 1 / span 3; }
.price-list p { grid-column: 4 / span 5; color: var(--ink-2); font-size: 18px; }
.price-list .cost { grid-column: 10 / span 3; font-family: var(--serif); font-size: 24px; font-feature-settings: "onum"; line-height: 1.25; }
.price-list .cost small { display: block; font-family: var(--sans); font-size: 16px; color: var(--muted); }

/* ---------- Stages (how it works) ---------- */
.stages { border-bottom: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 18px; padding-block: 40px; border-top: 1px solid var(--line); }
.stage .num { grid-column: 1 / span 1; font-size: 56px; color: var(--muted); }
.stage .name { grid-column: 2 / span 3; }
.stage .what { grid-column: 5 / span 5; color: var(--ink-2); }
.stage .you { grid-column: 10 / span 3; font-size: 18px; color: var(--ink-2); }

/* ---------- Safety list on green ---------- */
.safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 40px; }
.safe div { border-top: 1px solid var(--line-green); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.safe .h3 { color: var(--on-green); }
.safe p { color: var(--on-green-2); font-size: 18px; }
.field .sec-head { border-top-color: var(--line-green); }
.field .sec-head .intro { color: var(--on-green-2); }

/* ---------- Two-column prose blocks ---------- */
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 28px; }
.pair > :first-child { grid-column: 1 / span 5; }
.pair > :last-child { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 22px; color: var(--ink-2); }
.pair .strong { color: var(--ink); font-weight: 600; }

/* ---------- Cases ---------- */
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 28px; padding-block: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case .head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 14px; }
.case .head .h2 { font-size: clamp(32px, 3.2vw, 44px); }
.case .text { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.case .result { display: flex; align-items: baseline; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.case .result .fig { font-size: clamp(56px, 6vw, 84px); color: var(--green); }
.case .result span:last-child { font-size: 18px; color: var(--ink-2); max-width: 14em; }
.case .photo { grid-column: 1 / span 12; }

/* ---------- Thinking ---------- */
.posts { border-bottom: 1px solid var(--line); }
.post { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 14px; padding-block: 40px; border-top: 1px solid var(--line); text-decoration: none; }
.post .label { grid-column: 1 / span 3; padding-top: 8px; }
.post .h2 { grid-column: 4 / span 6; font-size: clamp(30px, 3vw, 42px); }
.post p { grid-column: 4 / span 6; color: var(--ink-2); }
.post:hover .h2 { color: var(--green); }

/* ---------- Article ---------- */
.article-head { padding-top: clamp(40px, 6vw, 88px); }
.article-head .grid { row-gap: 28px; }
.article-head .label { grid-column: 1 / span 12; }
.article-head h1 { grid-column: 1 / span 10; font-size: clamp(44px, 5.6vw, 84px); }
.prose { max-width: 700px; margin: clamp(56px, 7vw, 96px) auto 0; display: flex; flex-direction: column; gap: 24px; }
.prose p { color: var(--ink-2); }
.prose .standfirst { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.prose h2 { margin-top: 28px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.2; }
.prose .pull { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 40px); line-height: 1.18; color: var(--green); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding-block: 28px; margin-block: 12px; letter-spacing: -0.012em; }
.prose .sources { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.prose .sources ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- CTA and footer ---------- */
.cta { margin-top: var(--space); padding-block: clamp(80px, 10vw, 152px) clamp(64px, 7vw, 104px); }
.cta .grid { row-gap: 40px; align-items: end; }
.cta h2 { grid-column: 1 / span 8; }
.cta .copy { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 26px; }
.cta .copy p { color: var(--on-green-2); }
.site-footer { background: var(--green-deep); color: var(--on-green-2); font-size: 17px; }
.site-footer .grid { padding-block: 56px 40px; row-gap: 32px; }
.site-footer .brand { grid-column: 1 / span 4; }
.site-footer .brand img { height: 28px; }
.site-footer nav { grid-column: 6 / span 3; display: flex; flex-direction: column; gap: 8px; }
.site-footer .contact { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-green); text-decoration: none; }
.site-footer a:hover { color: var(--green-pale); text-decoration: underline; }
.site-footer .base { border-top: 1px solid var(--line-green); padding-block: 22px 32px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(72px, 10vw, 160px); }
.notfound .grid { row-gap: 32px; }
.notfound h1 { grid-column: 1 / span 9; }
.notfound .actions { grid-column: 1 / span 12; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero h1 { grid-column: 1 / span 12; }
  .hero .hero-copy { grid-column: 1 / span 7; }
  .hero .hero-photo { grid-column: 8 / span 5; grid-row: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature .photo { grid-column: 1 / span 12; }
  .feature .copy { grid-column: 1 / span 9; }
  .cta h2 { grid-column: 1 / span 12; }
  .cta .copy { grid-column: 1 / span 8; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .site-header .wrap { flex-wrap: wrap; gap: 14px 20px; padding-block: 18px 0; }
  .brand img { height: 25px; }
  .site-header .btn { display: none; }
  .site-nav { order: 3; width: 100%; margin: 0; gap: 26px; overflow-x: auto; white-space: nowrap; font-size: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .hero .hero-photo { grid-row: auto; }
  .hero .photo .frame { min-height: 0; aspect-ratio: 4 / 5; }
  .sec-head { margin-bottom: 40px; row-gap: 16px; }
  .sec-head .label { padding-top: 0; }
  .stage .num { font-size: 44px; }
  .creds div { grid-template-columns: minmax(0, 1fr); }
  .site-footer .grid > * { grid-column: 1 / -1; }
  .assure span { display: block; }
  .assure span + span::before { content: none; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Round 2 fixes */
.display .line { display: block; }
.field a.btn-light, .field a.btn-light:hover { color: var(--green); }
.feature .photo { grid-column: 1 / span 7; }
.feature .copy { grid-column: 8 / span 5; padding-left: clamp(0px, 2vw, 32px); }
.feature .h2 { font-size: clamp(34px, 3.6vw, 50px); }
@media (max-width: 760px) {
  .feature .copy { padding-left: 0; }
}

/* Round 3 polish */
h1, h2, h3, .quote p, .fig { text-wrap: balance; }
p { text-wrap: pretty; }
.case .photo .frame.land { aspect-ratio: 16 / 7; }
.hero .photo figcaption { display: none; }
@media (max-width: 760px) {
  .site-nav { gap: 18px; font-size: 16px; }
  .hero .photo figcaption { display: block; }
  .case .photo .frame.land { aspect-ratio: 3 / 2; }
}
@media (max-width: 760px) {
  .site-nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
}
.person { display: flex; gap: 16px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); }
.person .avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--stone-2); }
.person b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--ink); }
.person span:last-child { font-size: 17px; color: var(--muted); }
.field .person { border-top-color: var(--line-green); }
.field .person .avatar { background: #3A424D; }
.field .person b { color: var(--on-green); }
.field .person span:last-child { color: var(--on-green-2); }

/* ================= Interactive: An ordinary Tuesday ================= */
.sectors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.sectors .label { width: 100%; margin-bottom: 6px; }
.sector { font: inherit; font-size: 19px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0; cursor: pointer; }
.sector:hover { color: var(--ink); }
.sector[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--green); }



/* Without the script: show the day both ways, hide the controls */

/* ================= Interactive: Bring ten goals ================= */
.goals { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 40px; margin-top: clamp(56px, 6vw, 88px); padding-top: 32px; border-top: 1px solid var(--line-green); }
.goals[hidden] { display: none; }
.goals-pick { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 20px; }
.goals-list { grid-column: 8 / span 5; background: var(--green-deep); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 20px; align-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-size: 17px; line-height: 1.3; text-align: left; color: var(--on-green); background: transparent; border: 1px solid rgba(248, 247, 244, 0.34); padding: 11px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--on-green); }
.chip[aria-pressed="true"] { background: var(--stone); color: var(--green); border-color: var(--stone); }
.chip[aria-pressed="true"]::before { content: "\2713\00a0"; font-weight: 700; }
.chip:disabled { opacity: .38; cursor: not-allowed; }
.goal-add { display: flex; gap: 12px; align-items: stretch; margin-top: 4px; }
.goal-add input { flex: 1; min-width: 0; font: inherit; font-size: 18px; color: var(--on-green); background: transparent; border: 0; border-bottom: 1px solid rgba(248, 247, 244, 0.5); padding: 12px 2px; border-radius: 0; }
.goal-add input::placeholder { color: var(--on-green-2); opacity: .8; }
.goal-add input:focus { outline: none; border-bottom-color: var(--on-green); }
.goal-add .btn { padding: 12px 22px; font-size: 17px; }
.goals-list-head { display: flex; justify-content: space-between; }
.goals-list .label { color: var(--green-pale); }
.goals-empty { color: var(--on-green-2); font-size: 18px; }
.goals-empty[hidden], .goals-start[hidden], .goals-for[hidden] { display: none; }
.goals-list ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.goals-list ol:empty { display: none; }
.goals-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line-green); }
.goals-list li:last-child { border-bottom: 1px solid var(--line-green); }
.goals-list .n { font-family: var(--serif); font-size: 22px; font-feature-settings: "onum"; color: var(--green-pale); }
.goals-list .t { color: var(--on-green); font-size: 18px; }
.goals-list .x { font: inherit; font-size: 15px; color: var(--on-green-2); background: none; border: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 0; }
.goals-start { display: flex; flex-direction: column; gap: 8px; }
.start-main { font-family: var(--serif); font-size: 23px; line-height: 1.3; color: var(--on-green); }
.start-why, .goals-for { font-size: 16px; color: var(--on-green-2); }
.goals-note { font-size: 15px; color: var(--on-green-2); }
.cta-top { row-gap: 40px; align-items: end; }
.cta-top h2 { grid-column: 1 / span 8; }
.cta-top .copy { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 26px; }
.cta-top .copy p { color: var(--on-green-2); }

@media (max-width: 1080px) {
  .cta-top h2, .cta-top .copy { grid-column: 1 / -1; }
  .goals-pick, .goals-list { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sectors { gap: 4px 20px; }
  .sector { font-size: 17px; }
  .goals-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .goals-list .x { grid-column: 2; justify-self: start; }
  .chip { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* Interactions, round 2 */
[hidden] { display: none !important; }
.key { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; }
.key-ink { background: var(--ink-2); }
.key-green { background: var(--green); }
@media (max-width: 1080px) {
}
@media (max-width: 760px) {
}

/* Interactions, round 3 */
/* Goals as a notepad list, not a wall of boxes */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; gap: 0 32px; border-bottom: 1px solid var(--line-green); }
.chip { position: relative; display: block; width: 100%; border: 0; border-top: 1px solid var(--line-green); padding: 14px 6px 14px 36px; font-size: 18px; color: var(--on-green); background: none; }
.chip::before { content: ""; position: absolute; left: 2px; top: 17px; width: 18px; height: 18px; border: 1.5px solid rgba(248, 247, 244, 0.6); }
.chip:hover { border-color: var(--line-green); color: #fff; }
.chip:hover::before { border-color: var(--on-green); }
.chip[aria-pressed="true"] { background: none; color: #fff; border-color: var(--line-green); }
.chip[aria-pressed="true"]::before { content: ""; background: var(--green-pale); border-color: var(--green-pale); }
.chip[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; top: 19px; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.chip:focus-visible { outline: 3px solid var(--green-pale); outline-offset: 2px; }
.field :focus-visible { outline-color: var(--green-pale); }
@media (max-width: 1080px) {
}
@media (max-width: 760px) {
  .chips { grid-template-columns: minmax(0, 1fr); }
}
.chip { display: flex; align-items: flex-start; }
@media (max-width: 760px) {
}

/* ================= v3: Unwin Works ================= */
:root { --card: #FFFFFF; --ease: cubic-bezier(.2, .7, .2, 1); }

/* Reveal on scroll: only when the script has switched it on */
.reveal [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

.page-h1 { grid-column: 1 / span 10 !important; }
.hero .hero-copy { grid-column: 1 / span 7; }
.foot-brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 14px; }
.foot-brand span { font-size: 16px; }
.site-footer .brand { grid-column: auto; }
.key-half { background: linear-gradient(135deg, var(--green) 50%, var(--ink-2) 50%); }

/* ---------- A. Hero: a rule becomes a check ---------- */
.hero-home .grid { align-items: start; }
.hero-home h1 { grid-column: 1 / span 7; }
.hero-home .hero-copy { grid-column: 1 / span 6; }
.hero-visual { grid-column: 8 / span 5; grid-row: 1 / span 2; position: relative; display: flex; flex-direction: column; }
.hero-visual .photo .frame { aspect-ratio: 4 / 4.4; min-height: 0; }
.hero-visual .photo figcaption { display: none; }
.hc { position: relative; z-index: 2; margin: -150px 0 0 -18%; width: 112%; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(38, 42, 48, .35); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hc-note { padding: 22px 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hc-rule { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--ink); transition: color .6s; }
.hc-doc { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hc-doc-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hc-tag { color: var(--green); white-space: nowrap; }
.hc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.hc-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 8px; font-size: 16px; line-height: 1.3; border-bottom: 1px solid var(--line); transition: opacity .45s var(--ease), transform .45s var(--ease), background .5s, color .5s; }
.hc-row .v { font-family: var(--serif); font-feature-settings: "onum"; white-space: nowrap; }
.hc-row.is-flag { background: var(--green); color: var(--on-green); }
.hc-flag { font-size: 15px; line-height: 1.4; color: var(--green); font-weight: 600; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hc-flag::before { content: "\2713\00a0"; }
.hc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.hc-next { font: inherit; font-size: 16px; font-weight: 600; color: var(--green); background: none; border: 0; padding: 12px 0; min-height: 48px; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
/* Animation steps, set by the script. With no script, the finished state shows. */
.hc[data-step="0"] .hc-doc { opacity: 0; transform: translateX(14px); }
.hc[data-step="0"] .hc-row, .hc[data-step="1"] .hc-row { }
.hc[data-step="1"] .hc-row.is-flag, .hc[data-step="0"] .hc-row.is-flag { background: transparent; color: inherit; }
.hc[data-step="0"] .hc-row { opacity: 0; transform: translateY(6px); }
.hc[data-step="0"] .hc-flag, .hc[data-step="1"] .hc-flag { opacity: 0; transform: translateY(6px); }
.hc[data-step="2"] .hc-rule { color: var(--green); }
.hc .hc-row:nth-child(2) { transition-delay: .08s; } .hc .hc-row:nth-child(3) { transition-delay: .16s; }
.hc.is-swapping { opacity: 0; transition: opacity .2s; }

/* ---------- B. Your Tuesday ---------- */
.ot-controls { display: flex; flex-direction: column; gap: 26px; padding-bottom: 18px; }
.ot .sectors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
.ot .sectors .label { width: 100%; margin-bottom: 6px; }
.sector { font: inherit; font-size: 19px; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; min-height: 48px; cursor: pointer; }
.sector:hover { color: var(--ink); }
.sector[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--green); }
.ot-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); transition: opacity .16s; }
.ot.is-switching .ot-rows { opacity: 0; }
.ot-row { --t: var(--ot-t, 0); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 6px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); transition: opacity .3s; }
.ot-tick { grid-column: 1 / span 5; display: flex; gap: 14px; align-items: center; cursor: pointer; min-height: 44px; }
.ot-tick input { width: 22px; height: 22px; accent-color: var(--green); flex: none; margin: 0; cursor: pointer; }
.ot-name { font-size: 19px; color: var(--ink); }
.ot-bar { grid-column: 6 / span 5; height: 14px; width: calc(var(--b) / var(--max) * 100%); background: var(--green); display: flex; }
.ot-keep { background: var(--ink-2); width: calc((var(--b) - (var(--b) - var(--a)) * var(--t)) / var(--b) * 100%); }
.ot-mins { grid-column: 11 / span 2; justify-self: end; display: flex; gap: 8px; align-items: baseline; font-family: var(--serif); font-size: 21px; font-feature-settings: "onum"; white-space: nowrap; }
.ot-arrow { color: var(--muted); font-size: 16px; }
.ot-after { color: var(--green); }
.ot-how { grid-column: 1 / span 10; padding-left: 36px; font-size: 16px; color: var(--green); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s; }
.ot[data-after] .ot-row:not([data-off]) .ot-how { max-height: 80px; opacity: 1; }
.ot-row[data-off] { opacity: .5; }
.ot-row[data-off] .ot-bar { background: var(--line); }
.ot-row[data-off] .ot-keep { width: 100%; background: var(--line); }
.ot-row[data-off] .ot-after, .ot-row[data-off] .ot-arrow { visibility: hidden; }
.ot-slide { display: flex; flex-direction: column; gap: 12px; padding-block: 26px; }
.ot-slider { display: flex; align-items: center; gap: 18px; }
.ot-slider input { flex: 1; accent-color: var(--green); height: 48px; cursor: pointer; }
.ot-end { font: inherit; font-size: 17px; font-weight: 600; padding: 12px 18px; min-height: 48px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.ot-end-after { border-color: var(--green); background: var(--green); color: var(--on-green); }
.ot-total { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 18px; border-top: 1px solid var(--ink); padding-top: 24px; }
.ot-total > div { grid-column: span 4; display: flex; flex-direction: column; gap: 6px; }
.ot-total .fig { font-size: clamp(56px, 6vw, 88px); color: var(--green); }
.ot-sub { font-size: 16px; color: var(--muted); }
.ot-note { grid-column: 9 / span 4; align-self: end; font-size: 16px; color: var(--muted); }
/* Without the script: the after-state reads as a list */
.ot:not([data-ready]) .ot-slide, .ot:not([data-ready]) .ot-tick input { display: none; }
.ot:not([data-ready]) .ot-how { max-height: none; opacity: 1; padding-left: 0; }
.ot:not([data-ready]) .ot-row[data-off] { opacity: 1; }
.ot:not([data-ready]) .ot-row[data-off] .ot-after, .ot:not([data-ready]) .ot-row[data-off] .ot-arrow { visibility: visible; }

/* ---------- How it starts ---------- */
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 28px; padding: clamp(24px, 3vw, 40px); background: var(--stone-2); border-top: 2px solid var(--green); }
.offer > div { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; }
.offer-2 > div { grid-column: span 6; }
.offer-price .fig { font-size: clamp(56px, 6vw, 84px); color: var(--green); }
.offer-price span:last-child { font-size: 17px; color: var(--muted); }
.offer p { font-size: 19px; color: var(--ink-2); }
.offer-guarantee p { font-family: var(--serif); font-size: 23px; line-height: 1.3; color: var(--green); }

/* ---------- Worth more when you step back ---------- */
.step-back .grid { align-items: start; row-gap: 48px; }
.sb-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 24px; }
.sb-figs { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 36px; }
.sb-figs > div { border-top: 1px solid var(--line-green); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sb-figs .fig { font-size: clamp(52px, 5.4vw, 80px); color: var(--green-pale); }
.sb-figs p { color: var(--on-green-2); font-size: 18px; }
.sb-figs a { font-size: 15px; color: var(--on-green-2); }

/* ---------- Proof ---------- */
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 56px; }
.proof { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--ink); padding-top: 22px; }
.proof .photo { margin-bottom: 8px; }
.proof-fig { display: flex; align-items: baseline; gap: 18px; padding: 28px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.proof-fig .fig { font-size: clamp(88px, 10vw, 150px); color: var(--green); }
.proof-fig span:last-child { font-size: 18px; color: var(--ink-2); max-width: 12em; }

/* ---------- C. What you already pay for ---------- */
.sw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--ink); padding: 12px 18px; min-height: 48px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sw:hover { border-color: var(--green); color: var(--green); }
.sw[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.sw[aria-pressed="true"]::before { content: "\2713\00a0"; }
.sw-out { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 32px; margin-top: 36px; }
.sw-have { grid-column: 1 / span 6; }
.sw-gaps { grid-column: 7 / span 6; }
.sw-out ul { list-style: none; margin: 12px 0 0; padding: 0; }
.sw-have li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; color: var(--ink-2); }
.sw-have li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }
.sw-gaps li { position: relative; padding: 16px 0 16px 26px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 21px; line-height: 1.3; color: var(--green); }
.sw-gaps li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 2px; background: var(--green); }
.sw-gaps li.is-new { animation: swIn .5s var(--ease) both; }
@keyframes swIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.sw-static { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.swx[data-ready] .sw-static { display: none; }
.swx:not([data-ready]) .sw-chips { display: none; }
.sw-note { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* ---------- D. The buyer's questions ---------- */
.bqx { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 40px; align-items: start; }
.bq-list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.bq { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bq-q { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.bq-a { display: inline-flex; align-self: flex-start; border: 1px solid var(--ink); }
.bq-a button { font: inherit; font-size: 16px; font-weight: 600; padding: 10px 18px; min-height: 48px; min-width: 88px; background: transparent; color: var(--ink); border: 0; cursor: pointer; transition: background .2s, color .2s; }
.bq-a button + button { border-left: 1px solid var(--ink); }
.bq-a [data-a="yes"][aria-pressed="true"] { background: var(--green); color: var(--on-green); }
.bq-a [data-a="partly"][aria-pressed="true"] { background: var(--stone-2); color: var(--ink); box-shadow: inset 0 -4px 0 var(--green); }
.bq-a [data-a="no"][aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.bq-side { grid-column: 9 / span 4; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bt { aspect-ratio: 1; background: var(--stone-2); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 8px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--muted); transition: background .45s var(--ease), color .45s, border-color .45s; }
.bt[data-state="yes"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
.bt[data-state="partly"] { background: linear-gradient(135deg, var(--green) 50%, var(--ink-2) 50%); border-color: var(--ink-2); color: var(--on-green); }
.bt[data-state="no"] { background: var(--ink-2); border-color: var(--ink-2); color: var(--stone); }
.bt-key { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.bt-key .key { margin-right: 6px; }
.bq-fix { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ink); }
.bq-fix ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.bq-fix li { font-size: 17px; color: var(--ink-2); }
.bq-fix li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--green); }
.bq-empty { font-size: 16px; color: var(--muted); }
.bqx:not([data-ready]) .bq-a, .bqx:not([data-ready]) .bq-side { display: none; }

/* ---------- The Standard ---------- */
.year { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 40px; }
.year li { border-top: 2px solid var(--green); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.year p { font-size: 18px; color: var(--ink-2); }
.never { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); }
.never .label { grid-column: 1 / span 3; }
.never p { grid-column: 4 / span 8; color: var(--ink-2); }
.source a { color: inherit; }

/* ---------- Our work, sectors ---------- */
.sector-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); row-gap: 20px; }
.sector-link { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); background: var(--stone-2); text-decoration: none; border-top: 2px solid var(--green); transition: background .2s; }
.sector-link:hover { background: #E3DED6; }
.sector-link .h3::after { content: " \2192"; color: var(--green); }
.safe-ink div { border-top-color: var(--line); }
.safe-ink .h3 { color: var(--ink); }
.safe-ink p { color: var(--ink-2); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px); }
.rules li { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; padding-block: 22px; border-top: 1px solid var(--line); }
.founder .copy .quote p { font-size: clamp(26px, 2.6vw, 34px); }

/* ---------- Goals ---------- */
.more { align-self: flex-start; font: inherit; font-size: 16px; font-weight: 600; color: var(--green-pale); background: none; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.chip[data-extra] { display: none; }
.goals.show-more .chip[data-extra] { display: flex; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1080px) {
  .hero-home h1, .hero-home .hero-copy { grid-column: 1 / span 12; }
  .hero-visual { grid-column: 1 / span 12; grid-row: auto; max-width: 620px; }
  .hc { margin: -110px 0 0 6%; width: 94%; }
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-tick { grid-column: 1 / span 6; }
  .ot-bar { grid-column: 7 / span 4; }
  .bq-list { grid-column: 1 / span 12; }
  .bq-side { grid-column: 1 / span 12; position: static; }
  .sb-copy, .sb-figs { grid-column: 1 / span 12; }
  .ot-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .grid > *, .sec-head > *, .stage > *, .price-list > div > *, .pair > *, .case > *, .post > *, .offer > div, .ot-total > *, .sw-out > *, .bqx > *, .never > * { grid-column: 1 / -1 !important; }
  .grid, .sec-head, .stage, .price-list > div, .pair, .case, .post, .offer, .ot-total, .sw-out, .bqx, .never { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps-3, .safe, .proofs, .sector-links, .rules, .year { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .hero-visual { max-width: none; }
  .hc { margin: -64px 0 0 12px; width: calc(100% - 12px); grid-template-columns: minmax(0, 1fr); }
  .hc-note { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .hc-rule { font-size: 20px; }
  .hc[data-step="0"] .hc-doc { transform: translateY(10px); }
  .ot-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
  .ot-tick { grid-column: 1 / -1; }
  .ot-bar { grid-column: 1; }
  .ot-mins { grid-column: 2; font-size: 19px; }
  .ot-how { grid-column: 1 / -1; }
  .ot-name { font-size: 18px; }
  .ot-slider { gap: 10px; }
  .ot-end { padding: 10px 12px; font-size: 16px; }
  .ot-slide { position: sticky; bottom: 0; z-index: 5; background: var(--stone); padding: 14px 0 16px; border-top: 1px solid var(--line); }
  .ot-total .fig { font-size: 52px; }
  .bt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bt { font-size: 11px; padding: 6px; }
  .bq-side { position: static; }
  .creds div { grid-template-columns: minmax(0, 1fr); }
  .site-footer .grid > * { grid-column: 1 / -1; }
  .assure span { display: block; }
  .assure span + span::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hc-doc, .hc-row, .hc-flag, .hc-rule, .ot-keep, .ot-how, .bt, .sw-gaps li { transition: none !important; animation: none !important; }
}
/* v3 hero layout: the line across the top, the copy and the rule-card beneath */
.hero-home h1 { grid-column: 1 / -1; font-size: clamp(48px, 6.6vw, 96px); }
.hero-home .hero-copy { grid-column: 1 / span 6; grid-row: 2; padding-top: 12px; }
.hero-home .hero-visual { grid-column: 7 / span 6; grid-row: 2; }
.hero-visual .photo .frame { aspect-ratio: 16 / 11; }
.hc { margin: -120px 0 0 -10%; width: 104%; }
.hc-doc-head { flex-direction: column; gap: 2px; }
@media (max-width: 1080px) {
  .hero-home .hero-copy, .hero-home .hero-visual { grid-column: 1 / -1; grid-row: auto; }
  .hc { margin: -90px 0 0 6%; width: 94%; }
}
@media (max-width: 760px) {
  .hc { margin: -48px 0 0 12px; width: calc(100% - 12px); }
}
.feature-light { background: var(--stone-2); }
.feature-light .sec-head { border-top-color: var(--ink); }
.safe-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .safe-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .safe-4 { grid-template-columns: minmax(0, 1fr); } }

/* ================= Refinement, 17 Oct: legibility for our owners ================= */
/* Type: Roca Light only for the biggest lines (64px and up). Regular below that, and always on green. */
.h2, .quote p, .prose .standfirst, .prose .pull, .rules li, .case .head .h2, .post .h2 { font-weight: 400; letter-spacing: -0.01em; }
.field .display, .field .h2, .field .fig, .cta h2 { font-weight: 400; letter-spacing: -0.012em; }
.sb-figs .fig, .proof-fig .fig, .offer-price .fig, .ot-total .fig, .case .result .fig, .steps .fig, .stage .num { font-weight: 400; }
@media (max-width: 1000px) { .display, .fig { font-weight: 400; letter-spacing: -0.014em; } }

/* Data colour: the owner's remaining time is stone with an ink outline; time handed back is solid green.
   Ink and racing green are the same darkness, so they are never set against each other to carry meaning. */
.ot-bar { background: var(--green); }
.ot-keep { background: var(--stone-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ot-row[data-off] .ot-bar, .ot-row[data-off] .ot-keep { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bt[data-state="no"] { background: var(--stone-2); border: 1.5px solid var(--ink); color: var(--ink); }
.bt[data-state="partly"] { background: linear-gradient(135deg, var(--green) 50%, var(--stone-2) 50%); border: 1.5px solid var(--ink); color: var(--on-green); }
.bt[data-state="partly"] span { background: var(--green); padding: 1px 3px; }
.key-ink { background: var(--stone-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.key-half { background: linear-gradient(135deg, var(--green) 50%, var(--stone-2) 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ot-key { margin-top: 14px; font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.ot-key .key { margin-right: 8px; width: 16px; height: 12px; }
.bt:not([data-state]) { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.bt-key span { white-space: nowrap; display: inline-flex; align-items: center; }


/* ================= v4: Ledger in mill colours ================= */
@font-face { font-family: "Roca"; src: url("../fonts/roca-light-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Roca"; src: url("../fonts/roca-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root { --red: #A8402A; --red-deep: #86331F; --red-tint: #F7E4DB; --red-pale: #F0A58E; }
@property --pen { syntax: "<percentage>"; inherits: false; initial-value: 100%; }

/* Emphasis in headings is Roca italic, not colour. Red is kept for the red pen. */
.g { color: inherit; font-style: italic; }
.field .g, .cta .g { color: inherit; }
:focus-visible { outline-color: var(--red); }
a:hover, .site-nav a:hover { color: var(--red-deep); }
.field a:hover { color: var(--red-pale); }

/* The red pen: one word in the hero, underlined by hand. */
.hero-home .g.pen { position: relative; color: var(--red); font-style: normal; white-space: nowrap; }
.hero-home .g.pen::after { content: ""; position: absolute; left: -1%; right: -3%; bottom: 0.09em; height: 0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 46 4, 118 2.5, 197 6.5' fill='none' stroke='%23A8402A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 0 0 0); }
.reveal .hero-home .g.pen::after { clip-path: inset(0 100% 0 0); transition: clip-path .75s cubic-bezier(.5,0,.2,1) 1.05s; }
.reveal .hero-home .is-in .g.pen::after { clip-path: inset(0 0 0 0); }

/* Display lines rise one after another. */
.reveal .display[data-reveal] .line { display: block; opacity: 0; transform: translateY(.32em); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal .display[data-reveal].is-in .line { opacity: 1; transform: none; }
.reveal .display[data-reveal].is-in .line:nth-child(2) { transition-delay: .18s; }
.reveal .display[data-reveal] { transform: none; }

/* Photographs sit in round-headed frames, like the paired top-floor windows of a Stockport mill. Landscape frames stay square. */
.photo .frame:not(.land) { border-radius: 999px 999px 0 0; }

/* Hero card: no coloured edge stripes. The flagged row is tinted and the figure circled in red pen. */
.hc { box-shadow: 0 22px 48px -26px rgba(38, 42, 48, .38); }
.hc-row.is-flag { background: var(--red-tint); color: var(--ink); box-shadow: none; }
.hc-row .v { position: relative; }
.hc-row.is-flag .v::after { content: ""; position: absolute; left: -12px; right: -12px; top: -7px; bottom: -7px; border: 2px solid var(--red); border-radius: 50%; transform: rotate(-5deg);
  -webkit-mask: conic-gradient(from 200deg, #000 var(--pen), transparent 0); mask: conic-gradient(from 200deg, #000 var(--pen), transparent 0); transition: --pen .7s cubic-bezier(.5,0,.2,1) .15s; }
.hc[data-step="0"] .hc-row.is-flag .v::after, .hc[data-step="1"] .hc-row.is-flag .v::after { --pen: 0%; transition: none; }
.hc[data-step="1"] .hc-row.is-flag, .hc[data-step="0"] .hc-row.is-flag { background: transparent; }
.hc-flag { color: var(--red-deep); }
.hc[data-step="2"] .hc-rule { color: var(--ink); }
.hc-tag { color: var(--red-deep); transition: opacity .4s var(--ease) .5s, transform .4s var(--ease) .5s; }
.hc[data-step="0"] .hc-tag, .hc[data-step="1"] .hc-tag { opacity: 0; transform: scale(.92); }
.hc-rows { position: relative; }
.hc-rows::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); opacity: 0; pointer-events: none; }
.hc[data-scan] .hc-rows::after { animation: hc-scan .8s cubic-bezier(.45,0,.3,1) forwards; }
@keyframes hc-scan { 0% { top: 0; opacity: 0; } 15% { opacity: .85; } 85% { opacity: .85; } 100% { top: 100%; opacity: 0; } }
.hc-rule .caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--red); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hc-next { color: var(--ink); }

/* Selected states and charts in blue brick; nothing striped on one edge. */
.bq-a [data-a="partly"][aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--green); background: var(--stone-2); }
.key-half { background: linear-gradient(135deg, var(--green) 50%, var(--stone-2) 50%); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sw-gaps li { color: var(--ink); }
.sw-gaps li::before { background: var(--red); }
.bq-fix li b { color: var(--red-deep); }
.ot-after, .ot-how { color: var(--ink-2); }
.ot-total .fig, .offer-price .fig, .proof-fig .fig, .case .result .fig { color: var(--ink); }
.offer { border-top-color: var(--ink); }
.year li { border-top-color: var(--ink); }
.sector-link { border-top-color: var(--ink); }
.sector-link .h3::after { color: var(--red); }
.prose .pull { color: var(--ink); font-style: italic; }
.sector[aria-pressed="true"] { border-bottom-color: var(--red); }

/* How it starts: the three steps are ruled in, one after another. */
.steps li { position: relative; }
.reveal .steps li[data-reveal] { border-top-color: transparent; }
.reveal .steps li[data-reveal]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.5,0,.2,1); }
.reveal .steps li[data-reveal].is-in::before { transform: none; }
.reveal .steps li[data-reveal]:nth-child(2), .reveal .steps li[data-reveal]:nth-child(2)::before { transition-delay: .25s; }
.reveal .steps li[data-reveal]:nth-child(3), .reveal .steps li[data-reveal]:nth-child(3)::before { transition-delay: .5s; }
.steps .fig { color: var(--ink); }

/* On blue brick, labels, links and figures stay in paper tones; the pale red is kept for the ticks a visitor makes. */
.field .label, .goals-list .label { color: var(--on-green-2); }
.field .link, .more { color: var(--on-green); }
.sb-figs .fig { color: var(--on-green); }
.goals-list .n { color: var(--on-green-2); }

@media (prefers-reduced-motion: reduce) {
  .hc-row.is-flag .v::after { --pen: 100% !important; transition: none !important; }
  .hc-rows::after, .hc-rule .caret { display: none; }
}

.ot-key { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ot-key span { white-space: nowrap; display: inline-flex; align-items: center; }
