@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Text"; src: url("../fonts/dm-serif-text-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* Craft structure from the Figma example, recoloured to dark greens only
   (no lime), with the uneven layout used for text, never for screenshots. */
:root {
  --bone: #f7f5f2;
  --oat: #eae6df;
  --drift: #d7d2cc;
  --ash: #5c5150;
  --plum: #2a1a1d;
  --forest: #1d3023;
  --river: #2e5859;
  --sage: #8fa89c;
  --display: "DM Serif Display", Georgia, serif;
  --text: "DM Serif Text", Georgia, serif;
  --gutter: clamp(1.25rem, 5.4vw, 4.8rem);
  --max: 75rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--plum); font-family: var(--text); font-size: 1rem; -webkit-font-smoothing: antialiased; }
::selection { background: var(--forest); color: var(--bone); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--river); outline-offset: 4px; border-radius: 4px; }
.closing a:focus-visible, .closing button:focus-visible, .panel a:focus-visible { outline-color: var(--bone); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--bone); min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 4px; }

.section { width: min(100%, calc(var(--max) + 2 * var(--gutter))); margin: 0 auto; padding-inline: var(--gutter); }
.icon { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.mark { width: 2.1rem; height: auto; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(calc(100% - 2rem), 52rem); min-height: 3.5rem; padding: .45rem .5rem .45rem 1.1rem;
  border-radius: .5rem; background: var(--oat); color: var(--forest);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.03em; min-height: 44px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; transition: color .18s; }
.nav-links a:not(.btn):hover { color: var(--river); }
.nav .btn { min-height: 44px; padding: .5rem 1rem; }
.toggle { display: none; width: 2.75rem; height: 2.75rem; cursor: pointer; place-content: center; gap: .22rem; border: 0; border-radius: .25rem; background: var(--bone); padding: 0; }
.toggle span { display: block; width: 1.05rem; height: 1.5px; background: var(--forest); transition: transform .3s var(--ease), opacity .2s; }
.menu-open .toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .toggle span:nth-child(2) { opacity: 0; }
.menu-open .toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.panel { position: fixed; z-index: 40; inset: 0; display: grid; place-content: center; visibility: hidden; opacity: 0; transform: translateY(-100%); background: var(--forest); color: var(--bone); transition: transform .36s cubic-bezier(.76, 0, .24, 1), opacity .26s ease, visibility 0s linear .36s; }
.menu-open .panel { transition: transform .36s cubic-bezier(.76, 0, .24, 1), opacity .26s ease, visibility 0s; }
section[id] { scroll-margin-top: 6.5rem; }
.menu-open .panel { visibility: visible; opacity: 1; transform: none; }
.panel nav { display: flex; flex-direction: column; text-align: center; gap: .25rem; }
.panel a { font-family: var(--display); font-size: clamp(2.4rem, 9vw, 3.5rem); line-height: 1.15; letter-spacing: -.04em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 3rem; padding: .75rem 1.15rem; border-radius: .5rem; font-size: .98rem; transition: background .18s ease, color .18s ease, transform .18s ease; }
.btn:active { transform: scale(.98); }
.btn:hover .icon { transform: translateX(.18rem); }
.btn-forest { background: var(--forest); color: var(--bone); }
.btn-forest:hover { background: var(--river); }
.btn-bone { background: var(--bone); color: var(--forest); }
.btn-bone:hover { background: var(--oat); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--river); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; align-items: center; padding-top: 7rem; padding-bottom: 4rem; }
.hero-copy { grid-column: 1 / 7; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: .92; letter-spacing: -.04em; color: var(--forest); }
.hero h1 span { display: block; margin-left: clamp(0rem, 5vw, 4.5rem); }
.hero .lede { max-width: 30rem; margin-top: 2rem; font-size: 1.12rem; line-height: 1.55; color: var(--ash); }
.free { margin-top: 1rem; font-size: .95rem; color: var(--ash); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin-top: 2.25rem; }
.hero-art { grid-column: 7 / 13; position: relative; }
.hero-art svg { width: 100%; height: auto; }
.bob { transform-origin: 50% 75%; animation: bob 9s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.hero-note { margin-top: 1rem; text-align: right; font-size: .9rem; color: var(--ash); }

/* ---------- Section heading row ---------- */
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding-bottom: 1rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--drift); } /* taste-skill-ignore: one structural rule per section, from the reference */
.row-head h2 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.05; color: var(--forest); }
.row-head p { max-width: 34rem; text-align: right; color: var(--ash); font-size: .95rem; line-height: 1.5; }

/* ---------- Services: the uneven wall of notes ---------- */
.services { padding-block: clamp(5rem, 9vw, 8rem); }
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; row-gap: 1rem; align-items: start; }
.note { background: var(--oat); border-radius: .5rem; padding: 1.75rem 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.note h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -.03em; color: var(--forest); }
.note p { color: var(--ash); line-height: 1.55; max-width: 34rem; }
.note .eg { color: var(--plum); font-size: .95rem; }
.note .eg b { font-weight: 400; color: var(--river); }
.n1 { grid-column: 1 / 7; }
.n2 { grid-column: 8 / 13; margin-top: 5rem; }
.n3 { grid-column: 2 / 7; margin-top: -1.5rem; }
.n4 { grid-column: 7 / 12; margin-top: 3rem; }
.lead { background: var(--forest); color: var(--bone); }
.lead h3 { color: var(--bone); }
.lead p { color: #dcece5; }
.lead .eg { color: var(--bone); }
.lead .eg b { color: var(--sage); }
.n2.lead { background: var(--river); }
.n2.lead .eg b { color: #cfe9de; }

/* ---------- Work ---------- */
.work { padding-bottom: clamp(5rem, 9vw, 8rem); }


/* ---------- Selected work: case cards in brand inks ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; border-radius: .5rem; background: var(--oat); color: var(--forest); }
.case-name { font-size: .9rem; color: var(--ash); }
.case .ask { font-size: 1.2rem; line-height: 1.35; color: var(--plum); text-wrap: pretty; }
.case .num { font-family: var(--display); font-size: clamp(3.2rem, 5vw, 4.5rem); line-height: .9; letter-spacing: -.04em; color: var(--forest); }
.case .num-label { margin-top: .5rem; color: var(--ash); max-width: 30ch; line-height: 1.45; }
.viz { color: var(--forest); }
.viz-svg { width: 100%; height: auto; aspect-ratio: 320 / 150; overflow: visible; }
.viz-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.seg { display: inline-flex; padding: 3px; border-radius: .5rem; background: rgba(29, 48, 35, .08); }
.seg-b { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 0 1rem; display: inline-flex; align-items: center; border-radius: .4rem; font-size: .9rem; color: var(--ash); transition: background-color .2s, color .2s; }
.seg-b[aria-pressed="true"] { background: var(--bone); color: var(--forest); }
.seg-b:focus-visible { outline: 2px solid var(--river); outline-offset: 2px; }
.viz-note { font-size: .8rem; color: var(--ash); }
.viz-svg text { paint-order: stroke; stroke: var(--oat); stroke-width: 4px; stroke-linejoin: round; }
.viz-svg { font-family: var(--text); }
.viz-bar { display: none; }
.js .viz-bar { display: flex; }
.ba dt { transition: color .3s; }
.case[data-state="before"] .ba > div:first-child dt, .case[data-state="after"] .ba > div:last-child dt { color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.mv { transition: transform 1.1s cubic-bezier(.65, 0, .35, 1), opacity .6s ease, fill .6s ease, stroke .6s ease; transform-box: view-box; }
@media (prefers-reduced-motion: reduce) { .mv { transition: none; } }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; }
.ba dt { font-size: .85rem; color: var(--river); }
.ba dd { margin: .25rem 0 0; font-size: .95rem; line-height: 1.45; color: var(--plum); }
.work-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; font-size: 1.1rem; color: var(--plum); }
.case .ba { margin-top: auto; }
.case .case-more + .foot-line { margin-top: 0; }
.case-more { border-top: 1px solid rgba(29, 48, 35, .14); } /* taste-skill-ignore: divides an expandable detail */
.case-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-top: .5rem; font-size: .95rem; color: var(--river); }
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary::after { content: "+"; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.case-more[open] summary::after { transform: rotate(45deg); }
.case-more summary:focus-visible { outline: 2px solid var(--river); outline-offset: 3px; border-radius: 4px; }
.case-more dl { display: grid; gap: .9rem; margin: .5rem 0 0; }
.case-more dt { font-size: .85rem; color: var(--river); }
.case-more dd { margin: .2rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--plum); }
.case-more dd .text-link { display: flex; width: fit-content; }
.foot-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-top: .25rem; font-size: .9rem; color: var(--ash); }


/* ---------- How we work: a falling line of steps ---------- */
.how { padding-bottom: clamp(5rem, 9vw, 8rem); }
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.stairs li { padding-top: 1.25rem; border-top: 2px solid var(--river); } /* taste-skill-ignore: the step line is the path the project travels */
.stairs li:nth-child(2) { margin-top: 3rem; }
.stairs li:nth-child(3) { margin-top: 6rem; }
.stairs li:nth-child(4) { margin-top: 9rem; }
.stairs .when { color: var(--river); font-size: .95rem; }
.stairs h3 { margin-top: 1.5rem; font-size: 1.6rem; line-height: 1.08; letter-spacing: -.03em; color: var(--forest); }
.stairs p { margin-top: .75rem; color: var(--ash); line-height: 1.5; font-size: .98rem; }

/* ---------- Thinking ---------- */
.thinking { padding-bottom: clamp(5rem, 9vw, 8rem); }
.notes-list li { padding-top: .5rem; }
.notes-list li + li { border-top: 1px solid var(--drift); } /* taste-skill-ignore: list rows, a real list */
.notes-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 14rem 1fr 2.75rem; grid-template-rows: auto auto; column-gap: 2rem; row-gap: .35rem; align-items: baseline; padding: 1rem 0 1.5rem; }
.notes-list summary::-webkit-details-marker { display: none; }
.notes-list summary:focus-visible { outline: 2px solid var(--river); outline-offset: 4px; border-radius: 4px; }
.nl-meta { grid-row: 1 / 3; color: var(--river); font-size: .95rem; line-height: 1.5; }
.nl-date { color: var(--ash); font-size: .85rem; }
.nl-title { font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.35; letter-spacing: -.02em; color: var(--forest); }
.nl-desc { grid-column: 2; color: var(--ash); line-height: 1.5; max-width: 44rem; }
.nl-plus { grid-column: 3; grid-row: 1; align-self: center; justify-self: end; position: relative; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--oat); transition: background-color .2s; }
.nl-plus::before, .nl-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--forest); transition: transform .3s var(--ease); }
.nl-plus::after { transform: rotate(90deg); }
details[open] .nl-plus::after { transform: rotate(0deg); }
.notes-list summary:hover .nl-plus { background: var(--drift); }
.notes-list summary:hover .nl-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.nl-body { margin: 0 0 1.75rem calc(14rem + 2rem); max-width: 44rem; }
.nl-body p { line-height: 1.65; color: var(--plum); }
.nl-body p + p { margin-top: 1rem; }
.nl-body b { font-weight: 400; color: var(--river); }

/* ---------- Why a boat ---------- */
.why { padding-bottom: clamp(6rem, 11vw, 9rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; align-items: center; }
.why .mark-big { grid-column: 1 / 5; color: var(--forest); }
.why .mark-big svg { width: 78%; height: auto; }
.why .why-text { grid-column: 6 / 13; }
.why h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.03em; color: var(--forest); max-width: 22ch; }
.why .sign { margin-top: 1.5rem; font-size: .95rem; color: var(--plum); }

.why p { margin-top: 1.25rem; color: var(--ash); line-height: 1.6; max-width: 36rem; }

/* ---------- Closing ---------- */
.closing { background: var(--forest); color: var(--bone); }
.closing-inner { display: flex; flex-direction: column; min-height: 80svh; width: min(100%, calc(var(--max) + 2 * var(--gutter))); margin: 0 auto; padding: clamp(5.5rem, 9vw, 8rem) var(--gutter) 2rem; }
.closing h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: .92; letter-spacing: -.045em; max-width: 20ch; }
.closing h2 span { display: block; margin-left: clamp(0rem, 5vw, 4.5rem); }
.closing .row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; margin-top: 2rem; }
.closing .lede { max-width: 30rem; color: #d2dbd6; line-height: 1.55; }
.closing .reach { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.mailrow { display: flex; flex-wrap: wrap; gap: 0 1.25rem; color: #d2dbd6; font-size: .98rem; }
.mailrow a, .mailrow button { min-height: 44px; display: inline-flex; align-items: center; }
.mailrow a { text-decoration: underline; text-underline-offset: 4px; color: var(--bone); }
.copy { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(247, 245, 242, .2); color: #d2dbd6; font-size: .9rem; } /* taste-skill-ignore: footer rule, from the reference */
.foot .brand { justify-self: start; color: var(--bone); font-size: 1.35rem; }
.foot nav { display: flex; gap: 1.5rem; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--bone); text-decoration: underline; }
.foot > p { justify-self: end; }

/* Entrances */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: .5rem; }
  .toggle { display: grid; }
  .nav { gap: .5rem; }
  .hero { grid-template-columns: 1fr; padding-top: 6.5rem; gap: 2rem; min-height: auto; }
  .hero-copy, .hero-art { grid-column: 1; }
  .hero-art { order: -1; width: min(70%, 26rem); justify-self: end; }
  .hero-note { display: none; }
  .wall { grid-template-columns: 1fr 1fr; }
  .n1, .n2, .n3, .n4 { grid-column: auto; margin-top: 0; }
  .n2, .n4 { margin-top: 2.5rem; }
  .stairs { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .stairs li:nth-child(n) { margin-top: 0; }
  .stairs li:nth-child(2), .stairs li:nth-child(4) { margin-top: 2.5rem; }
  .why .mark-big { grid-column: 1 / -1; }
  .why .mark-big svg { width: 40%; }
  .why .why-text { grid-column: 1 / -1; margin-top: 1.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .row-head { flex-direction: column; align-items: start; }
  .row-head p { text-align: left; }
  .wall, .stairs, .cases { grid-template-columns: 1fr; }
  .notes-list summary { grid-template-columns: 1fr 2.75rem; }
  .nl-body { margin-left: 0; }
  .nl-meta { grid-row: auto; grid-column: 1; }
  .nl-title, .nl-desc { grid-column: 1; }
  .nl-plus { grid-row: 2; grid-column: 2; }
  .case { padding: 1.5rem; }
  .ba { grid-template-columns: 1fr; }
  .n2, .n4, .stairs li:nth-child(2), .stairs li:nth-child(4) { margin-top: 0; }
  .note { padding: 1.4rem; }
  .hero h1 span, .closing h2 span { margin-left: 0; }
  .nav .btn { padding: .5rem .8rem; font-size: .9rem; }
  .brand { font-size: 1.2rem; }
  .foot { grid-template-columns: 1fr; gap: .5rem; }
  .foot nav { justify-self: start; flex-wrap: wrap; gap: 0 1.25rem; }
  .foot > p { justify-self: start; }
  .foot .brand { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bob { animation: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Entrance delays (were inline styles; moved here for a strict CSP) */
[data-d="60"] { --d: 60ms; }
[data-d="70"] { --d: 70ms; }
[data-d="80"] { --d: 80ms; }
[data-d="120"] { --d: 120ms; }
[data-d="140"] { --d: 140ms; }
[data-d="160"] { --d: 160ms; }
[data-d="210"] { --d: 210ms; }
.sprite { position: absolute; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.5rem; }
.nf .brand { color: var(--forest); margin-bottom: 2rem; }
.nf h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; color: var(--forest); }
.nf p { max-width: 36rem; color: var(--ash); line-height: 1.55; }

/* Short cards: the glance shows name, question, number and picture. The rest sits in Read the case. */
.case { gap: 1.1rem; }
.case .figure { display: flex; align-items: flex-end; gap: 1rem; }
.case .num { flex: none; }
.case .num-label { margin-top: 0; max-width: 26ch; }
.viz .viz-note { margin-top: .4rem; text-align: right; }
.case-more .viz-bar { margin: .5rem 0 1rem; }
.case-more .ba { margin-bottom: .9rem; }
.case-name { font-size: .9rem; }
.case.lead .case-name { color: var(--bone); }
.case.lead .viz-svg text { stroke: var(--forest); }
.case.lead .seg { background: rgba(247, 245, 242, .12); }
.case.lead .seg-b { color: var(--bone); }
.case.lead .seg-b[aria-pressed="true"] { background: var(--bone); color: var(--forest); }
.case.lead .seg-b:focus-visible { outline-color: var(--bone); }
.case.lead .viz-note { color: var(--bone); }
.case.lead .viz { color: var(--bone); }
.case.lead .case-more { border-top-color: rgba(247, 245, 242, .2); } /* taste-skill-ignore: divides an expandable detail */
.case.lead .case-more summary, .case.lead .case-more dt { color: var(--sage); }
.case.lead .case-more dd { color: var(--bone); }
.case.lead .case-more summary:focus-visible { outline-color: var(--bone); }
.case.lead { background: var(--forest); color: var(--bone); }
.case.lead .ask, .case.lead .ba dd { color: var(--bone); }
.case.lead .num { color: var(--bone); }
.case.lead .num-label, .case.lead .foot-line { color: var(--bone); }
.case.lead .ba dt { color: var(--sage); }
.case.lead .text-link { color: var(--bone); }
.case.lead .ba dt { color: var(--sage); }
.case.lead[data-state="before"] .ba > div:first-child dt, .case.lead[data-state="after"] .ba > div:last-child dt { color: var(--bone); }
.case.lead .case-more summary { color: var(--bone); }
.case .viz-svg text.unknown { stroke: none; }
.case.lead .viz-svg text.unknown { stroke: none; }
