@font-face {
  font-family: Geist;
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #211f1b;
  --muted: #534e46;
  --line: #c9c1b5;
  --red: #8f3527;
  --red-dark: #70281e;
  --clay: #eee7db;
  --display: Geist, Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 Inter, system-ui, sans-serif; }
::selection { background: var(--red); color: var(--white); }
:where(a, button, summary, input, select, textarea, iframe):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .12em; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 560; letter-spacing: -.056em; line-height: 1.03; }
h2 { font-size: clamp(2.3rem, 4.3vw, 3.8rem); }
h3 { font: 600 clamp(1.15rem, 2vw, 1.45rem)/1.24 Inter, system-ui, sans-serif; letter-spacing: -.025em; }
p { max-width: 65ch; }
.shell { width: min(100% - 6rem, 70rem); margin-inline: auto; }
.section { padding-block: clamp(3.35rem, 7vw, 6rem); }
.eyebrow {
  margin-bottom: .85rem;
  color: var(--red-dark);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .105em;
  line-height: 1.45;
  text-transform: uppercase;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  z-index: 10;
  inset: .7rem auto auto .7rem;
  transform: translateY(-180%);
  padding: .65rem 1rem;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer { border-color: var(--line); border-style: solid; border-width: 0 0 1px; }
.site-footer { border-width: 1px 0 0; }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.2rem; min-height: 5rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  gap: .76rem;
  font: 630 1.36rem/1 var(--display);
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: underline; }
.brand-symbol { display: block; width: 2.45rem; height: 2.45rem; }
.site-nav, .footer-nav { display: flex; align-items: center; gap: clamp(.15rem, 1.55vw, 1.15rem); }
.site-nav a, .footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: .2rem;
  font-size: .9375rem;
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover, .footer-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
.site-nav a:last-child { padding-inline: 1.05rem; border: 1px solid var(--ink); border-radius: 2rem; font-weight: 620; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  max-width: 100%;
  padding: .76rem 1.18rem;
  gap: 1.2rem;
  border: 1px solid transparent;
  border-radius: .26rem;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover:enabled, a.button:hover { text-decoration: underline; }
.button-primary { color: var(--white); background: var(--red-dark); }
.button-primary:hover:enabled, a.button-primary:hover { background: var(--ink); }
.button-primary:disabled { color: var(--muted); background: var(--clay); border-color: var(--line); cursor: default; }
.button-light { color: var(--red-dark); background: var(--white); }
.button-outline { color: var(--red-dark); background: transparent; border-color: currentColor; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--red-dark); font-weight: 650; }
.actions, .video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.25rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 5.4vw, 5.3rem); border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 1.25rem; display: flex; align-items: center; gap: .65rem; }
.hero-copy .eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--red); }
.hero h1 { font-size: clamp(3.5rem, 6.4vw, 6.18rem); letter-spacing: -.06em; line-height: .98; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-intro { max-width: 37ch; margin-top: 1.45rem; color: var(--muted); font-size: clamp(1.02rem, 1.35vw, 1.16rem); line-height: 1.55; }
.hero .actions { margin-top: 1.6rem; }
.hero-print { margin: 0; min-width: 0; }
.hero-print img { display: block; width: 100%; height: auto; }
.hero-print figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; align-items: center; margin-top: .2rem; color: var(--muted); font: .75rem/1.4 var(--mono); }
.hero-print figcaption a { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .4rem; color: var(--red-dark); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem 3rem; align-items: end; }
.section-heading > p { max-width: 40ch; color: var(--muted); }
.section-heading + .content-list, .section > h2 + .content-list { margin-top: clamp(1.4rem, 3vw, 2.6rem); }
.content-list { border-top: 1px solid var(--line); }
.content-row { border-bottom: 1px solid var(--line); padding-block: 1.35rem; }
.content-row > p:not(.eyebrow), .content-row > div > p { color: var(--muted); }
.content-row h3 + p { margin-top: .45rem; }
.content-row h3 a { text-decoration-color: var(--red); }
.service-list .content-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: .7rem 3rem;
}
.service-list .text-link { margin-top: .25rem; }
.service-list .content-row:target { border-left: 3px solid var(--red); padding-inline: 1rem; background: var(--clay); }

.labs { background: var(--clay); border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 2rem; }
.project-grid article { padding: 1.35rem 0; border-block: 1px solid var(--line); }
.project-grid h3 { font: 560 2rem/1.12 var(--display); letter-spacing: -.05em; }
.project-grid p { margin-top: .55rem; color: var(--muted); }
.lab-more { margin-top: 1.3rem; }
.labs .text-link { margin-top: .35rem; }
.section-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1rem 3rem; }
.about-copy p { color: var(--muted); }
.about-copy p + p { margin-top: .75rem; }
.about-copy .actions { margin-top: .45rem; }
.contact-band { background: var(--ink); color: var(--white); }
.contact-band .section-heading { align-items: center; }

.page-intro { padding-block: clamp(3rem, 8vw, 6.1rem) clamp(1.7rem, 4.5vw, 3.3rem); border-bottom: 1px solid var(--line); }
.page-intro h1 { max-width: 22ch; font-size: clamp(3.1rem, 6vw, 5.7rem); line-height: .98; }
.page-intro h1 + p { margin-top: clamp(.9rem, 2.5vw, 1.55rem); color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.page-intro > .text-link { margin-bottom: 1rem; }
.page-intro > p + .text-link { margin-top: 1.1rem; }
.page-intro + .section { padding-top: clamp(2.2rem, 5.4vw, 4.15rem); }
.section + .section:has(#linkedin-heading) { padding-top: 0; }
.prose { max-width: 66ch; padding-block: 2.5rem clamp(4rem, 8vw, 7rem); }
.prose section { margin-top: 2.1rem; }
.prose h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .6rem; }
.prose p + p { margin-top: .85rem; }
.prose a { color: var(--red-dark); }
.demo-project { padding-block: 1.7rem; }
.demo-project h2 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.demo-project > p { margin-top: .65rem; }
.demo-status { font-weight: 600; }
.demo-project .content-list { margin-top: 1.2rem; }
.video-actions { margin-top: .9rem; }
.video-player:not(:empty) { max-width: 49rem; margin-top: 1rem; }
.video-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.video-transcript { margin-top: .5rem; }
.video-transcript summary { min-height: 2.75rem; padding-block: .5rem; color: var(--red-dark); font-weight: 650; cursor: pointer; }
.video-transcript p + p { margin-top: .55rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 2rem clamp(2rem, 6vw, 5rem); }
.subheading { font-size: clamp(2.25rem, 4vw, 3.45rem); }
.enquiry-form { display: grid; gap: 1rem; margin-top: 1.45rem; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 650; }
.field label span { color: var(--muted); font-weight: 400; }
.field :is(input, select, textarea) { min-width: 0; width: 100%; min-height: 2.85rem; padding: .56rem .65rem; color: var(--ink); background: var(--white); border: 1px solid #756b60; border-radius: .125rem; }
.field textarea { resize: vertical; }
.field-hint, .contact-aside p { color: var(--muted); }
.field-hint, .field-error { font-size: .9375rem; }
.field-error { color: var(--red-dark); font-weight: 650; }
[aria-invalid="true"] { border: 2px solid var(--red) !important; }
.enquiry-form > button { justify-self: start; }
.form-notice { margin-top: .85rem; padding: .75rem 1rem; border-left: 3px solid var(--red); background: var(--clay); }
.form-error { color: var(--red-dark); font-weight: 600; }
.contact-aside { padding-block: 1rem; border-block: 1px solid var(--line); }
.contact-aside p { margin-top: .6rem; }
.contact-aside .text-link { margin-top: .35rem; }

@media (max-width: 53rem) {
  .shell { width: calc(100% - 3rem); }
  .hero { gap: 1.75rem; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { max-width: 30rem; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; padding-top: .4rem; }
  .site-nav { width: 100%; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .site-nav a { font-size: .875rem; }
  .section-heading, .service-list .content-row, .project-grid, .section-about { grid-template-columns: minmax(0, 1fr); }
  .project-grid article + article { border-top: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2.8rem 1.4rem; gap: 2.15rem; }
  .hero h1 { font-size: clamp(3.3rem, 11.5vw, 5.2rem); }
  .hero-print { max-width: 32rem; }
  .site-nav { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 0; }
  .site-nav a:last-child { border: 0; padding-inline: .2rem; color: var(--red-dark); }
  .page-intro h1 { font-size: clamp(3.15rem, 11vw, 5rem); }
  .footer-inner { flex-wrap: wrap; gap: .1rem 1rem; padding-block: .35rem; }
}
@media (max-width: 22.4rem) {
  .site-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 30rem) {
  .form-pair { grid-template-columns: minmax(0, 1fr); }
}

.writing-jumps, .writing-intro-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.writing-jumps a, .writing-intro-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--red-dark); }
.writing-archive .content-row h3 { max-width: 55ch; }
.writing-archive + .writing-archive { padding-top: 0; }
.review-form { max-width: 42rem; }
.rating-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.rating-group legend { margin-bottom: .4rem; font-weight: 650; }
.rating-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.rating-options label { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .4rem .65rem; border: 1px solid #756b60; border-radius: .2rem; background: var(--white); cursor: pointer; }
.rating-options input, .review-consent input { accent-color: var(--red-dark); inline-size: 1.12rem; block-size: 1.12rem; margin: 0; }
.rating-options label:has(:checked) { outline: 1px solid var(--red-dark); background: var(--clay); color: var(--red-dark); }
.rating-options label:focus-within { outline: 3px solid var(--red-dark); outline-offset: 2px; }
.review-consent { display: flex; align-items: flex-start; gap: .7rem; padding: .7rem 0; }
.review-consent input { flex: 0 0 auto; margin-top: .25rem; }
.review-quote { margin: 0; padding: 1.2rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.review-quote blockquote, .moderation-row blockquote { margin: .5rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-rating { color: var(--red-dark); font-size: .9rem; }
.review-rating span { margin-right: .4rem; letter-spacing: .08em; }
.moderation-row { padding-block: 1.35rem; border-top: 1px solid var(--line); }
.featured-section .review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem 2.5rem; }
.featured-section .text-link { margin-top: 1rem; }
