:root {
  color-scheme: light;
  --paper: #f7f0df;
  --ink: #241a17;
  --muted: #624b41;
  --red: #ef6847;
  --line: #b7a495;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip, .visually-hidden, .switch input { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.skip:focus { position: fixed; z-index: 30; left: 12px; top: 12px; width: auto; height: auto; clip-path: none; padding: 8px; background: var(--paper); }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.masthead.wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding-inline: max(56px, calc((100% - 1280px) / 2));
  background: var(--paper);
  box-shadow: 0 1px var(--line);
}
#main { scroll-margin-top: 84px; }
.signature { font-size: 1.13rem; font-weight: 850; text-decoration: none; letter-spacing: -.055em; }
.signature span { color: #a93221; }
nav { display: flex; gap: clamp(18px, 4vw, 42px); font-weight: 650; }
nav a:not([aria-current]) { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.label { font: 650 .69rem/1.4 var(--mono); letter-spacing: .08em; }
.poster { background: var(--red); border-block: 1px solid var(--ink); }
.poster-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); padding-block: clamp(48px, 8vw, 114px); }
.hero-copy h1 { font-size: clamp(3rem, 7.6vw, 8.2rem); letter-spacing: -.052em; line-height: .95; font-weight: 880; margin-block: 20px 24px; }
.hero-copy h1 em { font: italic 500 1.05em/.85 Georgia, serif; letter-spacing: -.065em; }
.intro { max-width: 39ch; font-size: clamp(1rem, 1.5vw, 1.27rem); line-height: 1.5; }
.button { display: inline-flex; align-items: center; gap: 25px; margin-top: 25px; padding: 11px 15px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 730; text-decoration: none; }
.button:hover { background: var(--paper); color: var(--ink); }
.proof { position: relative; isolation: isolate; padding: clamp(16px, 2.6vw, 30px); border: 1px solid var(--ink); background: var(--paper); box-shadow: 6px 7px 0 var(--ink); transform: rotate(2deg); }
.proof-top { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.setup { margin-top: 15px; color: var(--muted); font-size: .88rem; }
.switch { display: flex; flex-wrap: wrap; gap: 5px; border: 0; margin: 12px 0 0; padding: 0; }
.switch label { cursor: pointer; font-size: .79rem; font-weight: 700; border: 1px solid var(--ink); padding: 5px 10px; }
.switch input:checked + label { background: var(--ink); color: var(--paper); }
.switch input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.sample { min-height: 2.35em; margin-top: 15px; font: 500 clamp(1.7rem, 3vw, 2.65rem)/1.05 Georgia, serif; letter-spacing: -.04em; }
.annotation { min-height: 3em; margin-top: 9px; color: #8f261c; font-size: .88rem; line-height: 1.35; }
.sample-note { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 13px; font-size: .57rem; color: var(--muted); }
.shortcut { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.shortcut a { font-weight: 730; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
body:has(.shortcut) .footer { border-top: 0; }
.interior { padding-block: clamp(48px, 7vw, 96px); }
.masthead:has(+ main .interior) { border-bottom: 1px solid var(--line); }
.interior h1 { margin: 10px 0 16px; font-size: clamp(3rem, 8vw, 7.5rem); line-height: .97; letter-spacing: -.08em; max-width: 14ch; }
.lede { max-width: 55ch; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); }
.work-list { list-style: none; margin: 45px 0 0; padding: 0; }
.work-list li { border-top: 1px solid var(--line); }
.work-list li:last-child { border-bottom: 1px solid var(--line); }
.work-list a { display: grid; grid-template-columns: 45px 1fr auto; align-items: baseline; gap: 10px; padding: 18px 4px; text-decoration: none; }
.work-list a:hover h2 { text-decoration: underline; text-underline-offset: .12em; }
.work-list h2 { font-size: clamp(1.5rem, 3.5vw, 2.7rem); letter-spacing: -.055em; line-height: 1.12; margin: 3px 0 6px; }
.work-list p:not(.label) { color: var(--muted); }
.arrow, .item-number, .case > .label { color: #963225; }
.arrow { font-size: 1.45rem; }
.back { display: inline-block; margin-bottom: 22px; }
.case-body { max-width: 680px; margin-top: 28px; }
.case-body > p + p { margin-top: 12px; }
.diagram { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); background: #eee0ca; font: 650 .8rem/1.4 var(--mono); text-align: center; }
.diagram div, .generations span { padding: 6px; }
.rules small { display: block; }
.team { flex-direction: column; }
.manager { background: var(--ink); color: var(--paper); }
.workers span { display: inline-block; padding: 3px 5px; border: 1px solid var(--line); }
.build-list, .timeline { list-style: none; padding: 0; }
.build-list li, .timeline li { border-top: 1px solid var(--line); padding: 12px 0; }
.build-list li { display: flex; justify-content: space-between; gap: 8px; }
.build-list span, .timeline time, .date { color: var(--muted); }
.about-intro:has(.about-portrait) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.about-portrait {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .about-intro:has(.about-portrait) { grid-template-columns: 1fr; }
}
.interior > :is(.about-section, .portfolio-section),
.notes-index > .editorial-list:first-of-type {
  position: relative;
  margin-top: clamp(36px, 6vw, 82px);
  padding-top: clamp(22px, 3.6vw, 46px);
  border-top: 1px solid var(--line);
}
.interior > :is(.about-section, .portfolio-section)::before,
.notes-index > .editorial-list:first-of-type::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: clamp(32px, 5vw, 62px);
  height: 3px;
  background: #963225;
}
.interior > :is(.about-section, .portfolio-section) > h2 {
  margin: 0 0 clamp(12px, 1.7vw, 22px);
  font-size: clamp(1.65rem, 3.2vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -.05em;
}
.interior > :is(.cv-section, .side-work) > h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.pill { display: inline-block; padding: 3px 5px; background: #efc9ad; font: 650 .62rem var(--mono); vertical-align: middle; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-grid article { border-top: 1px solid var(--line); padding-top: 9px; }
.principle-grid article > span { font: 650 .72rem var(--mono); color: #963225; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .poster-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { font-size: clamp(2.65rem, 10vw, 5rem); }
  .proof { width: min(100% - 10px, 390px); }
  .principle-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 3px; }
  .work-list a { grid-template-columns: 24px 1fr auto; }
}


.masthead nav { flex-wrap: wrap; column-gap: clamp(13px, 2.6vw, 32px); row-gap: 8px; }
.masthead .signature { flex: none; }
.interior > :is(.about-section, .portfolio-section),
.interior > :is(.about-section, .portfolio-section) > h2,
#faq-heading { scroll-margin-top: 84px; }
.side-work > p, .about-conversation > p { max-width: 62ch; color: var(--muted); }
.side-work-list { max-width: 760px; margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.side-work-list li { border-bottom: 1px solid var(--line); }
.side-work-list a { display: block; padding: 12px 0; text-decoration: none; }
.side-work-list h3 { font-size: 1rem; font-weight: 720; }
.side-work-list a:hover h3 { text-decoration: underline; }
.side-work-list p { margin-top: 2px; color: var(--muted); font-size: .92rem; }
.brand-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.brand-index li {
  display: grid;
  place-items: center;
  min-height: clamp(84px, 10vw, 112px);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.brand-index img {
  display: block;
  width: min(100%, var(--logo-width, 86px));
  height: 58px;
  object-fit: contain;
}
.brand-index img:is([alt="Durex"], [alt="Strepsils"]) { --logo-width: 116px; }
.brand-index img:is([alt="XL"], [alt="AXIS"]) { height: 48px; }
.editorial-list { max-width: 800px; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.editorial-list li { border-bottom: 1px solid var(--line); }
.editorial-list a { display: block; padding: 16px 0; text-decoration: none; }
.editorial-list a:hover h2 { text-decoration: underline; }
.editorial-list h2 { letter-spacing: -.04em; }
.editorial-list p, .conversation-help { color: var(--muted); }
.essay { font-size: 1.13rem; margin-bottom: 24px; }
.conversation { max-width: 620px; margin-top: 24px; }
.conversation form { padding: clamp(15px, 4vw, 28px); border: 1px solid var(--ink); background: #f4dfc7; }
.conversation label { display: block; font-weight: 720; margin-bottom: 6px; }
.conversation select, .conversation textarea { display: block; width: 100%; padding: 10px; border: 1px solid var(--ink); border-radius: 0; background: #fffaf0; color: var(--ink); font: inherit; }
.conversation select { margin-bottom: 16px; }
.conversation textarea { resize: vertical; }
.conversation button { font: inherit; font-weight: 720; cursor: pointer; }
.conversation .button { margin-top: 12px; }
.conversation [hidden] { display: none; }
.note-preview { margin-top: 20px; }
.note-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#note-status:not(:empty), .conversation-help { margin-top: 10px; }

@media (max-width: 640px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .masthead nav { font-size: .9rem; }
  .brand-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.footer { flex-wrap: wrap; }
.site-credit { margin-inline-start: auto; }
@media (max-width: 640px) {
  .site-credit { flex-basis: 100%; margin-inline-start: 0; }
}

body:has(.reader-switcher) { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
.reader-switcher {
  position: fixed;
  z-index: 10;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  max-width: calc(100% - 40px);
}
.reader-switcher summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  width: 126px;
  padding: 8px 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 3px 0 #241a1740;
  cursor: pointer;
  text-align: center;
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.2;
}
.reader-switcher summary::-webkit-details-marker { display: none; }
.reader-switcher summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.reader-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: min(342px, calc(100vw - 36px));
  max-height: min(64dvh, calc(100dvh - 155px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 3px 4px 0 var(--ink);
}
.reader-panel fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.reader-panel legend { font-weight: 750; margin-bottom: 8px; }
.reader-panel label {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.reader-panel label:last-child { grid-column: 1 / -1; }
.reader-panel label:hover { background: #f4dfc7; }
.reader-panel label:has(:checked) { background: var(--role-color); border-color: var(--ink); }
.reader-panel label:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.reader-panel input { position: absolute; top: 7px; left: 7px; margin: 0; accent-color: var(--ink); }

@media (max-width: 640px) {
  .reader-switcher { right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .reader-switcher summary { width: 110px; }
}

.language-menu { position: relative; align-self: center; z-index: 2; }
.language-menu summary,
.language-option {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .82rem;
  white-space: nowrap;
}
.language-menu summary { cursor: pointer; border: 1px solid var(--line); }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.language-options {
  position: absolute;
  inset-block-start: calc(100% + 5px);
  inset-inline-end: 0;
  min-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 2px 3px 0 var(--ink);
}
.language-option[aria-current], .language-option:hover { background: #f4dfc7; }
.language-option[aria-current] { color: var(--muted); }

@media (max-width: 640px) {
  .language-menu summary, .language-option { min-height: 44px; }
}


.reader-switcher, .reader-panel label { --role-color: #ffbc97; }
.reader-switcher [data-role="recruiter"], .reader-switcher[data-role="recruiter"] { --role-color: #ffd785; }
.reader-switcher [data-role="ux"], .reader-switcher[data-role="ux"] { --role-color: #bfdcaf; }
.reader-switcher [data-role="business"], .reader-switcher[data-role="business"] { --role-color: #f5b4ae; }
.reader-switcher [data-role="builder"], .reader-switcher[data-role="builder"] { --role-color: #d4c7f3; }
.reader-trigger-icon, .reader-role-icon { display: block; object-fit: contain; }
.reader-trigger-icon { width: 66px; height: 66px; }
.reader-role-icon { width: 58px; height: 58px; }
.reader-trigger-art { position: relative; }
.reader-action-badge {
  position: absolute;
  inset-inline-end: -3px;
  inset-block-end: -1px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.reader-action-badge::before,
.reader-action-badge::after {
  content: "";
  grid-area: 1 / 1;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.reader-action-badge::after { transform: rotate(90deg); }
.reader-switcher[open] .reader-action-badge::after { transform: rotate(0); }
.reader-switcher summary:focus-visible { box-shadow: 0 6px 0 #241a1740; }

@media (hover: hover) {
  .reader-switcher summary:hover { background: #442d24; box-shadow: 0 6px 0 #241a1740; }
}
@media (prefers-reduced-motion: no-preference) {
  .reader-switcher summary { transition: background 180ms ease-out, box-shadow 180ms ease-out; }
  .reader-switcher:not([open]) summary:not(:focus-visible) {
    animation: reader-nudge 4.8s ease-in-out;
  }
  .reader-trigger-icon { transition: rotate 220ms ease-out, scale 220ms ease-out; }
  .reader-action-badge::after { transition: transform 200ms ease-out; }
  .reader-switcher:not([open]) summary:focus-visible .reader-trigger-icon { rotate: 24deg; scale: 1.1; }

  @media (hover: hover) {
    .reader-switcher:not([open]) summary:hover .reader-trigger-icon { rotate: 24deg; scale: 1.1; }
  }
  .reader-switcher[open] .reader-panel {
    transform-origin: bottom right;
    animation: reader-reveal 500ms cubic-bezier(.22,.65,.3,1) both;
  }
  .reader-switcher[open] .reader-panel label { animation: reader-option-in 220ms ease-out both; }
  .reader-switcher[open] .reader-panel label:nth-of-type(2) { animation-delay: 25ms; }
  .reader-switcher[open] .reader-panel label:nth-of-type(3) { animation-delay: 50ms; }
  .reader-switcher[open] .reader-panel label:nth-of-type(4) { animation-delay: 75ms; }
  .reader-switcher[open] .reader-panel label:nth-of-type(5) { animation-delay: 100ms; }
  .reader-panel label { transition: background-color 160ms ease-out; }
  .reader-role-icon { transition: transform 170ms ease-out; }
  .reader-panel label:is(:hover, :focus-within) .reader-role-icon { transform: rotate(-12deg) scale(1.12); }
}

@keyframes reader-nudge {
  0%, 9%, 31%, 55%, 77%, 100% { translate: 0 0; }
  20%, 66% { translate: 0 -6px; }
}

@keyframes reader-reveal {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes reader-option-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.rich-text { overflow-wrap: anywhere; line-height: 1.68; }
.rich-text > :is(p, div, ul, ol, blockquote) + :is(p, div, ul, ol, blockquote) { margin-top: .9em; }
.rich-text > :is(h2, h3) { margin: 1.25em 0 .4em; line-height: 1.2; }
.rich-text > :is(h2, h3):first-child { margin-top: 0; }
.rich-text h2 { font-size: 1.65em; letter-spacing: -.035em; }
.rich-text h3 { font-size: 1.25em; letter-spacing: -.02em; }
.rich-text blockquote { margin: 1em 0; border-inline-start: 3px solid var(--line); padding-inline-start: 1em; color: var(--muted); }
.rich-text :is(ul, ol) { padding-inline-start: 1.5em; }
.rich-text li + li { margin-top: .25em; }

.rich-text .content-image { width: 100%; margin: 1.5em auto; }
.rich-text .content-image[data-width="narrow"] { width: 50%; }
.rich-text .content-image[data-width="wide"] { width: 75%; }
.rich-text .content-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.rich-text .content-image figcaption {
  margin-top: .4em;
  color: var(--muted);
  font-size: .85em;
  text-align: center;
}
@media (max-width: 580px) {
  .rich-text .content-image[data-width] { width: 100%; }
}

/* Give the home poster the space between the header and footer. */
body:has(.poster) {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}
body:has(.poster) #main,
.poster {
  display: flex;
  flex-direction: column;
}
.poster { flex: 1; justify-content: center; }
.hero-copy, .proof, .masthead nav { min-width: 0; }
.hero-copy h1, .interior h1 { overflow-wrap: anywhere; }
.switch { min-inline-size: 0; }
.footer { column-gap: 20px; row-gap: 8px; }

@media (min-width: 1000px) {
  body:has(.poster):has(.reader-switcher) { padding-bottom: 0; }
  body:has(.poster) .footer {
    min-height: calc(80px + env(safe-area-inset-bottom));
    padding-inline-end: 245px;
  }
  .poster-inner {
    padding-block: clamp(18px, 3.6svh, 66px);
    gap: clamp(32px, 5vw, 76px);
  }
  .hero-copy h1 { font-size: clamp(3rem, min(6.7vw, 9.4svh), 8.2rem); }
  .shortcut { padding-block: 16px; }
}

@media (min-width: 761px) and (max-width: 999px) {
  .wrap { width: calc(100% - 64px); }
  .masthead.wrap { padding-inline: 32px; }
  .masthead nav { column-gap: 16px; }
  .poster-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
  .hero-copy h1 { font-size: clamp(2.85rem, 6.1vw, 4.5rem); }
  .proof { transform: rotate(1deg); }
}

@media (max-width: 760px) {
  .masthead { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 14px; }
  .masthead.wrap { padding-inline: 20px; }
  #main { scroll-margin-top: 165px; }
  .masthead nav { align-items: center; column-gap: 14px; row-gap: 4px; font-size: .9rem; }
  .masthead nav > a { display: inline-flex; min-height: 44px; align-items: center; }
  .poster-inner { padding-block: clamp(32px, 8vw, 52px); }
  .proof { transform: none; width: min(100% - 6px, 480px); }
  .switch label { display: inline-flex; align-items: center; min-height: 44px; }
  .language-menu summary, .language-option { min-height: 44px; }
  .interior h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); }
  .build-list li { flex-wrap: wrap; }
}

.mobile-nav-controls { display: none; }

@media (max-width: 820px) {
  .masthead.has-mobile-nav {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-block: 9px;
  }
  .masthead.has-mobile-nav + #main { scroll-margin-top: 70px; }
  .mobile-nav-controls { display: flex; gap: 8px; align-items: center; }
  .mobile-nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .mobile-nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
  .mobile-nav-toggle span,
  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .mobile-nav-toggle span { position: relative; }
  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after { position: absolute; content: ""; }
  .mobile-nav-toggle span::before { top: -6px; }
  .mobile-nav-toggle span::after { top: 6px; }
  .mobile-nav-toggle[aria-expanded="true"] span { background: transparent; }
  .mobile-nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .mobile-nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .masthead.has-mobile-nav nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 12px #241a1720;
  }
  .masthead.has-mobile-nav nav.is-open { display: grid; gap: 0; }
  .masthead.has-mobile-nav nav > a {
    min-height: 48px;
    padding: 10px 20px;
    border-top: 1px solid var(--line);
  }
  .masthead.has-mobile-nav nav > a[aria-current] { background: #eee0ca; }
  .reader-switcher .reader-trigger-icon { width: 54px; height: 54px; }
  .reader-switcher summary { width: 100px; }
}

.cv-section p { color: var(--muted); }

.proof :is(.edit-examples, #copy-example, #edit-draft, #edit-result)[hidden] { display: none; }
.edit-examples { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.edit-examples button, #edit-draft button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
}
.edit-examples button[aria-pressed="true"], #edit-draft button { background: var(--ink); color: var(--paper); }
#edit-draft {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid #d6bfaa;
  border-radius: 18px;
  background: #f0e2cf;
}
#edit-draft label { font-weight: 700; font-size: .88rem; }
#edit-draft :is(textarea, input) {
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid #c8b19a;
  border-radius: 12px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  line-height: 1.45;
  box-shadow: inset 0 1px 2px #241a1709;
}
#edit-draft :is(textarea, input)::placeholder { color: #735f50; }
#edit-draft :is(textarea, input):focus {
  outline: 2px solid #95492f;
  outline-offset: 2px;
  background: #fffdf7;
}
#edit-draft textarea { min-height: 86px; resize: vertical; }
#edit-draft button {
  justify-self: start;
  padding: 8px 15px;
  border-radius: 999px;
}
#edit-draft button:disabled { opacity: .6; cursor: wait; }
#edit-status:empty, #edit-reason:empty { display: none; }
#edit-status, #edit-reason { font-size: .85rem; color: var(--muted); }
#edit-result { border-top: 1px dashed var(--line); padding-top: 8px; }
#edited-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 4px; }
@media (max-width: 760px) {
  .edit-examples button, #edit-draft button { min-height: 44px; min-width: 44px; }
  #edit-draft :is(textarea, input) { font-size: 1rem; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .proof { padding-block: 18px; }
  .proof-top { padding-bottom: 8px; }
  .proof .setup, .proof .sample { margin-top: 10px; }
  .proof .sample-note { margin-top: 9px; padding-top: 8px; }
}

.explore.wrap {
  display: block;
  margin-block: 0 clamp(22px, 4vw, 38px);
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eee0ca;
}
.explore h2 {
  font: italic 500 clamp(1.4rem, 3vw, 2rem)/1.15 Georgia, serif;
  letter-spacing: -.025em;
}
.explore ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 4vw, 40px);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.explore li { border-top: 1px solid var(--line); }
.explore li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding-block: 6px;
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}
.explore li a::after { content: "↗" / ""; color: #963225; }
.explore li a:hover, .explore li a:focus-visible { text-decoration: underline; }

#note-preview .note-actions #copy-note {
  background: transparent;
  color: var(--ink);
}
#note-preview .note-actions #copy-note:hover { background: #fffaf0; }

@media (max-width: 520px) {
  .explore ul { grid-template-columns: 1fr; }
}

.contact-faq { max-width: 620px; margin-top: clamp(28px, 4vw, 46px); }
.contact-faq h3, .note-preview h3 { margin-bottom: 8px; font-size: 1.25rem; letter-spacing: -.03em; }
.contact-faq details { border-bottom: 1px solid var(--line); }
.contact-faq details:first-of-type { border-top: 1px solid var(--line); }
.contact-faq summary { min-height: 44px; padding: 10px 4px; font-weight: 650; cursor: pointer; }
.contact-faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-faq details p { padding: 0 4px 12px; color: var(--muted); white-space: pre-line; }

.tool-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px 20px;
  margin-top: 14px;
}
.tool-group { border-top: 1px solid var(--line); padding-top: 10px; }
.tool-group h3 { color: var(--muted); font-size: .86rem; font-weight: 650; }
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.tool-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
}
.tool-list img { display: block; object-fit: contain; }
#work-tools { scroll-margin-top: 88px; }

.work-showcase { display: grid; gap: clamp(24px, 4vw, 48px); margin-top: 16px; }
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
  padding-block: 18px 0;
  border-top: 1px solid var(--line);
}
.work-card:first-child { padding-top: 0; border-top: 0; }
.work-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #eadcec;
}
.work-preview-jago { background: #ffdf77; }
.work-preview-wondr { background: #e2edc3; }
.work-preview-title {
  max-width: 18ch;
  padding: 12px;
  font-size: clamp(1.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  text-align: center;
  overflow-wrap: anywhere;
}
.work-preview :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  object-fit: contain;
}
.work-gif-toggle {
  position: absolute;
  inset: auto auto 10px 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.work-card h3 {
  margin-block: 4px 8px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.work-card-copy p { color: var(--muted); }
.work-learn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; }
.work-learn span[aria-hidden] { margin-inline-start: 6px; }
@media (max-width: 640px) {
  .work-card { grid-template-columns: minmax(0, 1fr); }
}
