/* MOSH — mosh.co.uk
   Route: Fluoro Modernist. Sora (headings, nav, buttons) + IBM Plex Mono (labels, metadata).
   Direction: charcoal / off-white / concrete, one controlled fluoro accent.
   Fluoro is only ever a fill (buttons, tiles, light) or text on charcoal — never text on off-white. */

:root {
  --fluoro: #D7FF00;
  --black: #0B0B0B;
  --charcoal: #1A1A1A;
  --offwhite: #F6F4EE;
  --concrete: #9A9A96;
  --mist: #DADADA;

  --ink: var(--black);
  --paper: var(--offwhite);
  --muted: #5E5E5A;          /* secondary text on off-white (AA) */
  --muted-dark: #A4A4A0;     /* secondary text on charcoal (AA) */
  --rule: #D6D4CD;
  --rule-dark: #333331;
  --band: #E4E2DC;

  --sans: "Sora", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 82rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--fluoro); color: var(--charcoal); }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 50;
  background: var(--fluoro); color: var(--charcoal); padding: .625rem 1rem; font-weight: 600;
}
.skip:focus { top: .75rem; }

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--gutter); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }

/* ---------- Type ---------- */

.label {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.9;
}
.stack { display: flex; flex-direction: column; }
.stack .dash { margin-top: 1rem; }

.dash { display: block; width: 1.25rem; height: 1px; background: currentColor; }
.dash--fluoro { width: 2.5rem; height: 2px; background: var(--fluoro); }

.h1 {
  font-size: clamp(2.875rem, 6.2vw, 6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -.025em; }

.lead { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.55; letter-spacing: -.015em; font-weight: 300; max-width: 34ch; }
.muted { color: var(--muted); }
.prose { max-width: 38em; color: var(--muted); }
.prose + .prose { margin-top: 1.125rem; }

.fluoro-text { color: var(--fluoro); }

/* ---------- Marks ---------- */

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile {
  display: inline-grid; place-items: center;
  width: 1em; height: 1em;
  background: var(--fluoro); color: var(--charcoal);
  font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: 0;
}
.tile > span { font-size: .52em; }

/* ---------- Header ---------- */

.header {
  position: relative; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  height: 5.5rem;
}
.header .wordmark { font-size: 1.5rem; padding: .5rem 0; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  position: relative; display: flex; align-items: center;
  height: 2.75rem; padding: 0 .75rem;
  font-size: .875rem; font-weight: 500; letter-spacing: -.005em;
}
.nav a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .55rem;
  height: 2px; background: var(--fluoro);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.btn { margin-left: .75rem; }
.nav a.btn::after { display: none; }

.menu-btn { display: none; width: 2.75rem; height: 2.75rem; place-items: center; margin-right: -.625rem; }
.menu-btn svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.menu-btn .close { display: none; }
.menu-open .menu-btn .open { display: none; }
.menu-open .menu-btn .close { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3rem; padding: 0 1.375rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--fluoro { background: var(--fluoro); color: var(--charcoal); }
.btn--sm { min-height: 2.5rem; padding: 0 1rem; font-size: .6875rem; }
.btn--fluoro:hover { background: var(--charcoal); color: var(--fluoro); }
.btn--line { box-shadow: inset 0 0 0 1px currentColor; }
.btn--line:hover { background: var(--charcoal); color: var(--offwhite); box-shadow: inset 0 0 0 1px var(--charcoal); }
.on-dark .btn--fluoro:hover { background: var(--offwhite); color: var(--charcoal); }
.on-dark .btn--line:hover { background: var(--offwhite); color: var(--charcoal); box-shadow: none; }

/* ---------- Media frames ---------- */

.frame { position: relative; overflow: hidden; background: var(--concrete); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame__labels {
  position: absolute; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  color: var(--offwhite);
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2rem, 5vw, 4rem) 0; }
.hero .grid { row-gap: 3rem; align-items: center; }
.hero__text { grid-column: 1 / span 6; padding-block: 2rem; }
.hero__media { grid-column: 7 / span 6; }
.hero__media .frame { aspect-ratio: 4 / 5; max-height: 44rem; width: 100%; }
.hero .lead { margin-top: 2rem; }
.hero .actions { margin-top: 2.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Pillars band ---------- */

.band { background: var(--band); }
.band__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem) clamp(2rem, 3.5vw, 3rem); border-left: 1px solid #C9C7C0; }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar__no { color: var(--muted); }
.pillar__name { margin-top: .875rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.pillar p + p { margin-top: .375rem; font-size: .9375rem; line-height: 1.45; color: var(--muted); max-width: 18ch; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section__head { row-gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.section__head .label { grid-column: 1 / span 3; align-self: start; padding-top: .75rem; }
.section__head .section__title { grid-column: 4 / span 9; }
.section__title .lead { margin-top: 1.25rem; }

.on-dark { background: var(--charcoal); color: var(--offwhite); }
.on-dark .muted, .on-dark .prose { color: var(--muted-dark); }

/* ---------- Approach (dark) ---------- */

.approach .grid { row-gap: 3.5rem; align-items: stretch; }
.approach__text { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.approach__media { grid-column: 8 / span 5; }
.approach__media .frame { height: 100%; min-height: 28rem; }
.approach .h2 { margin-top: 1.5rem; }
.approach .lead { margin-top: 1.75rem; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: auto; padding-top: 3.5rem; }
.principle { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.principle svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.principle .label { line-height: 1.7; }

/* ---------- Work ---------- */

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 1.5rem; }
.project .frame { aspect-ratio: 4 / 3; }
.project:hover .frame img { transform: scale(1.03); }
.project__meta { display: flex; justify-content: space-between; margin-top: 1.25rem; color: var(--muted); }
.project .h3 { margin-top: .5rem; }
.project__desc { margin-top: .375rem; font-size: .9375rem; color: var(--muted); }
.project__tags { margin-top: 1rem; color: var(--muted); }

/* ---------- About ---------- */

.about { padding-top: 0; }
.about__grid { row-gap: 2.5rem; border-top: 1px solid var(--rule); padding-top: clamp(2.5rem, 5vw, 4rem); }
.about__label { grid-column: 1 / span 3; padding-top: .5rem; }
.about__text { grid-column: 4 / span 6; }
.about__traits { grid-column: 11 / span 2; }
.about .lead { max-width: 34ch; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 400; letter-spacing: -.025em; }
.about .prose { margin-top: 1.5rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .625rem;
  min-height: 2.75rem; margin-top: 1.75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat;
}
.textlink svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform .2s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

.extlink {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.extlink svg { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform .2s var(--ease); }
.extlink:hover svg { transform: translate(2px, -2px); }

/* ---------- Areas (info) ---------- */

.areas { border-bottom: 1px solid var(--rule); }
.area {
  display: grid; grid-template-columns: 3rem 2.75rem minmax(0, 1fr) minmax(0, 1.5fr);
  column-gap: 1rem; align-items: start;
  padding-block: 1.375rem;
  border-top: 1px solid var(--rule);
}
.area__no { font-size: .75rem; color: var(--muted); padding-top: .3rem; font-variant-numeric: tabular-nums; }
.area svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.area__name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; }
.area__desc { font-size: .9375rem; color: var(--muted); }

/* ---------- Contact ---------- */

.contact { background: var(--band); }
.contact .grid { row-gap: 2rem; align-items: end; }
.contact .lead { margin-top: 1.25rem; }
.contact__tile { font-size: clamp(6rem, 13vw, 11rem); }
.contact__side { display: flex; justify-content: flex-end; }
.contact__text { grid-column: 1 / span 8; }
.contact__side { grid-column: 10 / span 3; }
.contact .h2 { margin-top: 1.5rem; }

.email {
  display: inline-block; margin-top: 2rem;
  font-size: clamp(1.625rem, 4.6vw, 3.75rem);
  line-height: 1.1; font-weight: 600; letter-spacing: -.04em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--fluoro), var(--fluoro)) left 92% / 100% .14em no-repeat;
  transition: background-size .35s var(--ease);
}
.email:hover { background-size: 100% .5em; }

.copy {
  display: inline-flex; align-items: center; gap: .625rem;
  min-height: 2.75rem; padding: 0 1rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px currentColor;
}
.copy:hover { background: var(--charcoal); color: var(--offwhite); }
.copy svg { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 1.75; }
.copy[hidden] { display: none; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }

/* ---------- Footer ---------- */

.footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
.footer .grid { row-gap: 2.5rem; }
.footer__brand { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 1.75rem; }
.footer__lock { display: flex; align-items: center; gap: 1rem; }
.footer__lock .tile { font-size: 3rem; }
.footer__lock .wordmark { font-size: 1.875rem; }
.lockup { display: flex; flex-direction: column; gap: .5rem; }
.lockup__desc { font-size: .5625rem; letter-spacing: .3em; color: var(--muted-dark); }
.footer__line { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; max-width: 16ch; }
.footer__nav { grid-column: 7 / span 3; }
.footer__nav a { display: inline-flex; min-height: 2.5rem; align-items: center; font-size: .9375rem; }
.footer__nav a:hover { color: var(--fluoro); }
.footer__contact { grid-column: 10 / span 3; }
.footer__contact a { display: inline-flex; min-height: 2.5rem; align-items: center; font-size: .9375rem; }
.footer__contact a:hover { color: var(--fluoro); }
.footer__colhead { color: var(--muted-dark); margin-bottom: .5rem; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--muted-dark);
}
.footer__bottom code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0; text-transform: none; color: var(--offwhite); }
.live { display: inline-flex; align-items: center; gap: .625rem; }
.live[hidden] { display: none; }
.live__dot { width: .4375rem; height: .4375rem; background: var(--fluoro); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.tick { animation: tick 1s steps(1) infinite; }
@keyframes tick { 50% { opacity: 0; } }
.keys-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--muted-dark); }
.keys-btn:hover { color: var(--offwhite); }
.keys-btn[hidden] { display: none; }

kbd {
  display: inline-grid; place-items: center;
  min-width: 1.5rem; height: 1.5rem; padding: 0 .375rem;
  box-shadow: inset 0 0 0 1px currentColor;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .6875rem; letter-spacing: 0;
}

/* ---------- Shortcuts dialog ---------- */

.keys { width: min(26rem, calc(100% - 2rem)); padding: 0; border: 0; background: var(--charcoal); color: var(--offwhite); }
.keys::backdrop { background: rgb(26 26 26 / .55); }
.keys__head { display: flex; justify-content: space-between; align-items: center; padding: .25rem .25rem .25rem 1.25rem; border-bottom: 1px solid var(--rule-dark); }
.keys__close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; }
.keys__close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.75; }
.keys ul { padding: .5rem 1.25rem 1.25rem; }
.keys li { display: flex; justify-content: space-between; align-items: center; padding-block: .625rem; border-bottom: 1px solid var(--rule-dark); font-size: .9375rem; }
.keys li:last-child { border-bottom: 0; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60;
  transform: translate(-50%, 200%); visibility: hidden;
  padding: .75rem 1.125rem;
  background: var(--fluoro); color: var(--charcoal);
  font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: transform .3s var(--ease), visibility 0s .3s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .3s var(--ease); }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(4rem, 10vw, 8rem); }
.notfound .h1 { margin-top: 1.5rem; }
.notfound .lead { margin-top: 1.5rem; }
.trace {
  margin: 2.5rem 0; max-width: 36rem; padding: 1.125rem 1.25rem;
  background: var(--charcoal); color: var(--offwhite);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8125rem; line-height: 1.8;
  overflow-x: auto; white-space: pre;
}
.trace .hl-text { color: var(--fluoro); }

/* ---------- Page intro (info) ---------- */

.intro { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.intro .grid { row-gap: 2rem; align-items: end; }
.intro__text { grid-column: 1 / span 8; }
.intro__text .h1 { margin-top: 1.5rem; }
.intro__side { grid-column: 10 / span 3; }
.intro .dash--fluoro { margin-top: 2rem; }

/* ---------- Reveal (JS adds .js) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 64rem) {
  .hero__text { grid-column: 1 / span 7; }
  .hero__media { grid-column: 8 / span 5; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach__text { grid-column: 1 / -1; }
  .approach__media { grid-column: 1 / -1; }
  .approach__media .frame { min-height: 0; aspect-ratio: 16 / 9; }
  .about__text { grid-column: 4 / span 7; }
  .about__traits { grid-column: 4 / span 6; }
}

@media (max-width: 47.5rem) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
  .grid > * { grid-column: 1 / -1 !important; }

  .header { height: 4.5rem; }
  .header .wordmark { font-size: 1.5rem; }
  .js .menu-btn { display: grid; }
  .js .nav {
    position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    flex-direction: column; gap: 0; margin: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .js .menu-open .nav { display: flex; }
  .js .nav a { height: 3.5rem; padding: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; border-top: 1px solid var(--rule); }
  .js .nav a::after { left: 0; right: auto; width: 2rem; bottom: .7rem; }
  .js .nav a.btn { height: 3.25rem; margin: 1.25rem 0 0; padding: 0 1.25rem; border-top: 0; font-size: .75rem; letter-spacing: .14em; justify-content: space-between; }
  .contact__side { display: none; }
  html:not(.js) .nav a { padding: 0 .5rem; font-size: .8125rem; }

  .hero { padding-top: .5rem; }
  .hero .grid { row-gap: 0; }
  .hero__media { order: -1; }
  .hero__media .frame { aspect-ratio: 5 / 4; }
  .hero__text { padding-block: 2.25rem 3rem; }
  .hero .lead { margin-top: 1.25rem; }
  .hero .actions { margin-top: 2rem; }
  .actions .btn { flex: 1 1 100%; justify-content: space-between; min-height: 3.25rem; }

  .band__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 1.5rem 1rem 1.75rem; border-left: 1px solid #C9C7C0; }
  .pillar:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid #C9C7C0; }

  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .approach__media .frame { aspect-ratio: 1 / 1; }

  .projects { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .section__head .label { padding-top: 0; }

  .area { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: .5rem; }
  .area__no { display: none; }
  .area__desc { grid-column: 2; }

  .footer__lock .tile { font-size: 2.5rem; }
  .footer__lock .wordmark { font-size: 1.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) { .keys-btn { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .nav, .menu-btn, .actions, .copy, .keys-btn, .skip { display: none !important; }
  .on-dark { background: none; color: #000; }
}

/* ---------- Fluoro Modernist devices ---------- */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Highlighter: fluoro behind charcoal text keeps contrast on light grounds */
.hl {
  background: linear-gradient(var(--fluoro), var(--fluoro)) 0 88% / 100% .42em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}

.marker { display: flex; align-items: center; gap: .75rem; }
.plus {
  display: inline-block; flex-shrink: 0; width: .75rem; height: .75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}
.on-dark .plus { color: var(--fluoro); }

.bar { display: block; width: 1.75rem; height: 3px; margin-top: 1rem; background: var(--fluoro); }

.hero .h1 { margin-top: 1.5rem; }

.frame--grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(246 244 238 / .14) 1px, transparent 1px),
    linear-gradient(90deg, rgb(246 244 238 / .14) 1px, transparent 1px);
  background-size: 64px 64px;
}
.corner { position: absolute; z-index: 1; width: 1.25rem; height: 1.25rem; pointer-events: none; }
.corner--tl { top: 1rem; left: 1rem; border-top: 2px solid var(--fluoro); border-left: 2px solid var(--fluoro); }
.corner--br { bottom: 1rem; right: 1rem; border-bottom: 2px solid var(--offwhite); border-right: 2px solid var(--offwhite); }
.frame__labels { z-index: 1; }
.hero .frame__labels { bottom: 3rem; right: 3rem; }
.about__label { align-self: start; }

/* ---------- Info page ---------- */

.section__body { grid-column: 4 / span 9; }
.info__text { grid-column: 4 / span 7; }

.notes { display: grid; height: 100%; align-content: end; }
.note { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding-block: 1.125rem; border-top: 1px solid var(--rule-dark); }
.note:last-child { border-bottom: 1px solid var(--rule-dark); }
.note dt { color: var(--fluoro); padding-top: .2rem; }
.note dd { font-size: .9375rem; color: var(--offwhite); }

@media (max-width: 47.5rem) {
  .note { grid-template-columns: 6.5rem minmax(0, 1fr); }
}

/* ---------- FAQ (info) ---------- */

.areas-section { padding-bottom: 0; }
.faq__list { border-bottom: 1px solid var(--rule); }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 4rem; padding-block: 1rem;
  font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex-shrink: 0; width: 2rem; height: 2rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / .875rem 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px .875rem no-repeat,
    var(--fluoro);
  transition: transform .25s var(--ease);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item p { max-width: 40em; padding-bottom: 1.5rem; color: var(--muted); }
.faq__item p a { color: var(--ink); background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }

/* ---------- Work page ---------- */

.work-index {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  padding-block: 1.25rem; border-block: 1px solid var(--rule);
}
.work-index a { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; font-size: .9375rem; font-weight: 500; }
.work-index a .label { color: var(--muted); }
.work-index a:hover { background: linear-gradient(var(--fluoro), var(--fluoro)) left 80% / 100% 2px no-repeat; }

.case { padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem; }
.case__grid { row-gap: 2rem; align-items: start; }
.case__media { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
.case__text { grid-column: 9 / span 4; }
.case:nth-of-type(even) .case__media { grid-column: 6 / span 7; order: 2; }
.case:nth-of-type(even) .case__text { grid-column: 1 / span 4; order: 1; }
.case__title { margin-top: 1.25rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.case .lead { margin-top: 1rem; font-size: 1.0625rem; }
.case__facts { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.case__facts div { padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.case__facts dt { color: var(--muted); }
.case__facts dd { margin-top: .25rem; font-size: .9375rem; line-height: 1.6; }
.case .project__tags { margin-top: 1.25rem; }
.case .extlink { margin-top: .75rem; background: linear-gradient(var(--fluoro), var(--fluoro)) left 72% / 100% 2px no-repeat; }
.case + .contact { margin-top: 0; }

.project .frame img { transition: transform 1.2s var(--ease); }
.project.has-link:hover .h3 { background: linear-gradient(var(--fluoro), var(--fluoro)) left 88% / 100% .35em no-repeat; }

@media (max-width: 64rem) {
  .case__media, .case:nth-of-type(even) .case__media { grid-column: 1 / -1; order: 0; }
  .case__text, .case:nth-of-type(even) .case__text { grid-column: 1 / span 9; order: 1; }
}
.intro__text .lead { margin-top: 1.5rem; }

/* ---------- Photography bands ---------- */

.band-image { aspect-ratio: 21 / 8; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.band-image img { object-position: center 40%; }
.notfound__grid { row-gap: 2.5rem; align-items: center; }
.notfound__text { grid-column: 1 / span 6; }
.notfound__media { grid-column: 8 / span 5; aspect-ratio: 4 / 5; }
.notfound__media img { object-position: 72% center; }

@media (max-width: 47.5rem) {
  .band-image { aspect-ratio: 4 / 3; }
  .notfound__media { aspect-ratio: 4 / 3; }
}

/* ---------- Logo (Window · pane) ---------- */

.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { display: block; height: 1.5rem; width: auto; }
.footer__icon { width: 2.75rem; height: 2.75rem; }
.footer__lock .lockup img { display: block; height: 1.75rem; width: auto; }
.contact__mark { width: clamp(6rem, 13vw, 10rem); height: auto; }
.brand:hover img { opacity: .85; }

@media (max-width: 47.5rem) {
  .brand img { height: 1.25rem; }
  .footer__icon { width: 2.25rem; height: 2.25rem; }
  .footer__lock .lockup img { height: 1.375rem; }
}
.footer__lock .lockup { align-items: flex-start; }

/* ---------- Footer legal row ---------- */

.footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted-dark); }
.footer__legal a:hover { color: var(--fluoro); }
.footer__tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }

/* ---------- Contact page + form ---------- */

.contact-page { padding-top: 0; }
.contact-page .grid { row-gap: 3.5rem; align-items: start; }
.form { grid-column: 1 / span 7; display: grid; gap: 1.5rem; }
.contact-aside { grid-column: 9 / span 4; display: grid; gap: 2.25rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.field { display: grid; gap: .5rem; }
.field .label { color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .75rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #C9C7C0; border-radius: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--fluoro); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__error { font-size: .8125rem; color: #B3261E; }
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__check { min-height: 65px; }
.form__note { font-size: .875rem; color: var(--muted); }
.form__note a, .aside-block a:not(.aside-email) { color: var(--ink); background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-size: .9375rem; }
.form__status.is-error { color: #B3261E; }
.form__status.is-ok { color: var(--ink); font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: progress; }

.aside-block { display: grid; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.aside-email { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.aside-email:hover { background: linear-gradient(var(--fluoro), var(--fluoro)) left 88% / 100% .35em no-repeat; }
.aside-block .copy { justify-self: start; }
.steps { display: grid; gap: .75rem; }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); font-size: .9375rem; }
.steps .label { color: var(--muted); padding-top: .15rem; }
.contact-aside .contact__mark { width: 5rem; }

/* ---------- Trust centre ---------- */

.trust-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.trust-card {
  display: grid; align-content: start; gap: .625rem; min-height: 13rem;
  padding: 1.5rem; background: #fff; border: 1px solid var(--rule);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.trust-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.trust-card__desc { font-size: .9375rem; color: var(--muted); }
.trust-card__go { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .75rem; font-weight: 600; }
.trust-card__go svg { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 1.75; }
.on-dark .section__body .lead { margin-top: 1.25rem; }
.on-dark .actions { margin-top: 2rem; }

/* ---------- Policy documents ---------- */

.crumb { background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }
.doc { padding-top: 0; }
.doc__updated { margin-top: 1.5rem; }
.doc .grid { align-items: start; row-gap: 2rem; }
.doc__toc { grid-column: 1 / span 3; position: sticky; top: 1.5rem; display: grid; gap: .75rem; }
.doc__toc ol { display: grid; gap: .125rem; counter-reset: toc; }
.doc__toc li { counter-increment: toc; }
.doc__toc a { display: flex; gap: .75rem; min-height: 2.75rem; align-items: center; font-size: .9375rem; color: var(--muted); }
.doc__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.doc__toc a:hover { color: var(--ink); }
.doc__body { grid-column: 4 / span 8; max-width: 46rem; }
.doc__section { padding-block: 2rem; border-top: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.doc__section:first-child { border-top: 1px solid var(--ink); }
.doc__h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 1rem; }
.doc__h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; margin: 1.75rem 0 .5rem; }
.doc__section p { margin-top: .875rem; line-height: 1.7; }
.doc__h2 + p { margin-top: 0; }
.doc__section a { background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }
.doc__section code { font-family: var(--mono); font-size: .875em; background: var(--band); padding: .1em .35em; }
.ticks { display: grid; gap: .625rem; margin-top: .875rem; }
.ticks li { position: relative; padding-left: 1.5rem; line-height: 1.65; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .625rem; height: .625rem; background: var(--fluoro); box-shadow: inset 0 0 0 1.5px var(--ink); }
.doc__table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .9375rem; }
.doc__table th { text-align: left; font-family: var(--mono); font-size: .6875rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .625rem .75rem .625rem 0; border-bottom: 1px solid var(--ink); }
.doc__table td { padding: .875rem .75rem .875rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.placeholder { background: #FFF7B3; padding: .1em .3em; }

@media (max-width: 64rem) {
  .form { grid-column: 1 / -1; }
  .contact-aside { grid-column: 1 / span 8; }
  .trust-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.5rem) {
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .trust-cards { grid-template-columns: minmax(0, 1fr); }
  .doc__toc { position: static; }
  .doc__table { display: block; overflow-x: auto; }
  .footer__legal { gap: 0 1rem; }
}
.aside-email { display: inline-flex; align-items: center; min-height: 2.75rem; }
.marker .crumb { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Footer lockup: icon matches the full height of wordmark + descriptor */
.footer__lock { align-items: stretch; gap: .875rem; }
.footer__icon { width: auto; height: 3.375rem; aspect-ratio: 1; align-self: center; }
.footer__lock .lockup { justify-content: center; gap: .5rem; }
.footer__lock .lockup img { height: 1.75rem; }
@media (max-width: 47.5rem) {
  .footer__icon { height: 2.875rem; }
  .footer__lock .lockup img { height: 1.375rem; }
}

/* ---------- Footer security status ---------- */

.status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem 1rem; min-height: 2.75rem; color: var(--muted-dark); }
.status__item { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.status svg { width: .875rem; height: .875rem; padding: .0625rem; background: var(--fluoro); fill: none; stroke: var(--charcoal); stroke-width: 2.25; stroke-linecap: square; }
.status:hover { color: var(--offwhite); }

/* ================= Content pages: services, case studies, notes ================= */

/* Footer: four columns */
.footer__brand { grid-column: 1 / span 4; }
.footer__services { grid-column: 6 / span 3; }
.footer__nav { grid-column: 9 / span 2; }
.footer__contact { grid-column: 11 / span 2; }
.footer__services a { display: inline-flex; min-height: 2.5rem; align-items: center; font-size: .9375rem; }
.footer__services a:hover { color: var(--fluoro); }
@media (max-width: 64rem) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__services { grid-column: 1 / span 5; }
  .footer__nav { grid-column: 6 / span 3; }
  .footer__contact { grid-column: 9 / span 4; }
}

/* Services hub */
.services-hub { padding-top: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.svc-card {
  display: grid; align-content: start; gap: .875rem; min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--rule);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.svc-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.svc-card svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.svc-card__title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.svc-card__desc { color: var(--muted); max-width: 34ch; }
.svc-card .trust-card__go { margin-top: auto; }
.svc-note { margin-top: 2.5rem; max-width: 52ch; }
.svc-note a, .note-links a { background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }

/* Service page */
.svc-intro { padding-top: 0; }
.svc-intro .prose { margin-top: 1.25rem; }
.svc-covers { padding-top: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: none; }
.steps-grid li { padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); display: grid; gap: .5rem; align-content: start; }
.steps-grid__no { color: var(--fluoro); }
.steps-grid__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.steps-grid p { color: var(--muted-dark); font-size: .9375rem; }
.fit-list { margin-top: 0; }
.fit-list li { font-size: 1.0625rem; }
.related-notes { margin-top: 3rem; row-gap: 1rem; }
.note-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.note-links .textlink { margin-top: 0; background: none; }
.note-links .textlink:hover { background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }

/* Case study */
.case-hero { aspect-ratio: 4 / 3; max-height: 46rem; margin-bottom: 0; }
.case-hero img { object-fit: cover; }
.case-body .grid { align-items: start; row-gap: 2rem; }
.case-facts { grid-column: 1 / span 3; position: sticky; top: 1.5rem; }
.case-facts dl { display: grid; gap: 1.25rem; }
.case-facts dl > div { padding-top: .875rem; border-top: 1px solid var(--rule); }
.case-facts dd { margin-top: .375rem; font-size: .9375rem; }
.case-facts ul { display: grid; gap: .25rem; }
.case-facts a:not(.extlink) { background: linear-gradient(var(--fluoro), var(--fluoro)) left bottom / 100% 2px no-repeat; }
.case-facts .extlink { margin-top: 0; min-height: 2.75rem; }
.case-text { grid-column: 5 / span 7; max-width: 44rem; }
.case-text .doc__section p { font-size: 1.0625rem; }
.case-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-bottom: var(--section); }
.case-nav a { display: grid; gap: .375rem; padding: 1.5rem; border: 1px solid var(--rule); background: #fff; transition: border-color .2s var(--ease); }
.case-nav a:last-child { text-align: right; }
.case-nav a:hover { border-color: var(--ink); }

/* Notes */
.notes-list { padding-top: 0; }
.notes-rss { margin-top: 1.5rem; }
.notes-rss a { display: inline-flex; min-height: 2.75rem; align-items: center; background: linear-gradient(var(--fluoro), var(--fluoro)) left 75% / 100% 2px no-repeat; }
.note-card .h3 { font-size: 1.25rem; }
.note-cta { margin-top: 2.5rem; padding: 1.5rem; background: var(--band); display: grid; gap: .75rem; }
.home-notes { padding-top: 0; }

/* Home: pillar links */
.pillar.has-link:hover .pillar__name { background: linear-gradient(var(--fluoro), var(--fluoro)) left 85% / 100% .35em no-repeat; }
.pillar__more { display: inline-flex; align-items: center; gap: .375rem; margin-top: .625rem; color: var(--ink); }
.pillar__more svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 64rem) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-facts { grid-column: 1 / -1; position: static; }
  .case-text { grid-column: 1 / -1; }
}
@media (max-width: 47.5rem) {
  .svc-grid, .steps-grid, .case-nav { grid-template-columns: minmax(0, 1fr); }
  .case-nav a:last-child { text-align: left; }
  .footer__services, .footer__nav, .footer__contact { grid-column: 1 / -1; }
}

/* Five services: value strip + hub */
.band__inner:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.svc-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 64rem) { .band__inner:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 47.5rem) { .band__inner:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shared section layout: label in columns 1–3, content from column 4 */
.section__label { grid-column: 1 / span 3; align-self: start; padding-top: .5rem; }
.section__body--narrow { grid-column: 4 / span 7; }
.section__label + .section__body, .section__label + .section__body--narrow { min-width: 0; }
.fit-list li { max-width: 46rem; }
@media (max-width: 64rem) { .section__body--narrow { grid-column: 4 / span 9; } }

/* Footer bottom: one line on desktop */
@media (min-width: 64.01rem) {
  .footer__bottom { flex-wrap: nowrap; gap: 1.5rem; }
  .footer__bottom .status { flex-wrap: nowrap; gap: .875rem; }
  .footer__bottom .footer__legal { flex-wrap: nowrap; gap: 1rem; margin-left: auto; }
  .footer__bottom > * { white-space: nowrap; }
}
@media (min-width: 64.01rem) and (max-width: 80rem) {
  .footer__bottom { font-size: .625rem; letter-spacing: .12em; }
}

/* Readability: footer descriptor at least 10px; contact email full tap height */
.lockup__desc { font-size: .625rem; letter-spacing: .26em; }
.aside-email { min-height: 2.75rem; }

/* Small screens: long words in big headlines wrap instead of overflowing */
.h1, .h2, .case__title, .doc__h2 { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 22.5rem) { .h1 { font-size: 2.375rem; } }
.email { min-height: 2.75rem; }
.notes-year + .notes-year { margin-top: clamp(2.5rem, 5vw, 4rem); }
.notes-year__title { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }

/* Card links: only the title is the link (short, unique anchor text); its ::after stretches
   over the whole card so the card stays clickable. */
.has-link { position: relative; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.has-link:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }

/* Decorative brand marks (CSS images, so they're not counted as images missing alt text) */
.footer__icon { display: block; background: url(/assets/brand/mosh-icon-mark-white.svg) center / contain no-repeat; }
.contact__mark { display: block; aspect-ratio: 1; background: url(/assets/brand/mosh-icon-mark.svg) center / contain no-repeat; }
