:root {
  color-scheme: dark;
  --bg: #171715;
  --paper: #efece2;
  --muted: #bdb9ac;
  --line: #46443e;
  --orange: #ff7948;
  --panel: #282725;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--paper); font: 1rem/1.6 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; top: -10rem; left: 1rem; z-index: 2; background: var(--paper); color: var(--bg); padding: .55rem .9rem; }
.skip:focus { top: 1rem; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 80px; border-bottom: 1px solid var(--line); }
.logo { display: block; flex: none; width: clamp(9rem, 17vw, 13rem); }
.logo img { width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.75rem, 2.8vw, 2.6rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 650; }
nav a[aria-current='page']:not(.button) { text-decoration: underline; text-decoration-color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 45px; padding: .65rem 1rem; border: 1px solid transparent; background: var(--orange); color: var(--bg); font-weight: 750; text-decoration: none; }
.button:hover { background: var(--paper); color: var(--bg); }
.button.outline { border-color: var(--line); color: var(--paper); background: transparent; }
.button.outline:hover { border-color: var(--paper); }
.button[aria-disabled='true'] { background: #3b3833; color: var(--muted); }
.label { color: var(--orange); font: 700 .875rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
h1, h2 { line-height: 1.02; font-weight: 850; letter-spacing: -.07em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.65rem, 6.2vw, 6.9rem); margin-bottom: 1.15rem; }
h1 em { display: block; color: var(--orange); font-style: normal; }
.label + h1 { margin-top: .8rem; }
.intro { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 46rem; }
.actions { display: flex; align-items: center; gap: .65rem 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 4vw, 5.5rem); align-items: center; padding-block: clamp(1.6rem, 4vw, 4.25rem); }
.hero .intro { max-width: 28rem; }
.hero img { width: 100%; aspect-ratio: 1.3; object-fit: cover; background: #26231f; }
figcaption { color: var(--muted); font-size: .875rem; margin-top: .55rem; }
.section { border-top: 1px solid var(--line); padding-block: clamp(2.7rem, 6vw, 5.65rem); }
.section h2 { font-size: clamp(2.15rem, 5vw, 5.2rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); align-items: end; gap: 1rem 4rem; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); max-width: 35rem; }
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case { display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; padding: clamp(1.15rem, 3vw, 2.35rem); min-height: 200px; background: var(--panel); border: 1px solid transparent; text-decoration: none; }
.case:nth-child(even) { background: #322521; }
a.case:hover { border-color: var(--orange); color: var(--paper); }
.case h2, .case h3 { font-size: clamp(1.7rem, 3.2vw, 3.3rem); letter-spacing: -.055em; line-height: 1.05; margin-bottom: .4rem; }
.case p:not(.label) { color: var(--muted); max-width: 45ch; }
.case p + p { margin-top: .75rem; }
.case .text-link { align-self: start; }
.studies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.study img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; background: #26231f; }
.study figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; }
.study { text-decoration: none; }
.study strong { font-size: 1.04rem; color: var(--paper); text-decoration: underline; }
.study:hover strong { color: var(--orange); }
.services { list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: minmax(11rem, .6fr) 1fr; gap: .25rem 1.5rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -.035em; }
.services p, .prose p, .prose li { color: var(--muted); }
.contact { background: var(--paper); color: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 1.5rem 4rem; }
.contact p { max-width: 37rem; }
.contact a:hover { color: #a5300e; }
.contact .button { background: var(--bg); color: var(--paper); }
.contact .button:hover { background: #3b3833; }
.contact :focus-visible { outline-color: #a5300e; }
.email { overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; border-top: 1px solid var(--line); padding-block: 1.35rem; font-size: .875rem; color: var(--muted); }
.footer div { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.page-head { padding-block: clamp(2.6rem, 7vw, 6rem) clamp(1.8rem, 4vw, 3.2rem); }
.prose { max-width: 72ch; }
.prose section { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.prose h2, .shortlist h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); margin-bottom: .75rem; }
.prose p + p { margin-top: .75rem; }
.prose > .email { margin-bottom: 1.25rem; }
.prose > .actions + p { margin-top: .75rem; }
.prose section ul + p { margin-top: .75rem; }
.prose ul { margin-block: .5rem 0; padding-inline-start: 1.35rem; }
.prose li + li { margin-top: .35rem; }
.page-body { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.example { background: var(--panel); padding-inline: clamp(1rem, 3vw, 1.75rem); }
.faq { max-width: 72ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { padding: .8rem .2rem; cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--orange); }
.faq details p { padding: 0 .3rem 1rem 1.25rem; color: var(--muted); }
.gallery-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, .33fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shortlist { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; padding: 1.15rem; background: var(--panel); border-top: 3px solid var(--orange); }
.shortlist p + p { margin-top: .55rem; }
.shortlist-status, .shortlist-help { color: var(--muted); }
.shortlist-names { margin: .4rem 0 .85rem; padding: 0; font-weight: 650; }
.shortlist .button { margin: .75rem 0; }
.concept { display: flex; flex-direction: column; background: var(--panel); }
.concept img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; background: #26231f; }
.concept-info { padding: 1rem; flex: 1; }
.concept h2 { font-size: clamp(1.35rem, 2.4vw, 2.3rem); margin-block: .35rem .55rem; letter-spacing: -.05em; }
.concept-info > p:last-child { color: var(--muted); }
.pick { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .5rem 1rem; border-top: 1px solid var(--line); cursor: pointer; font-weight: 650; }
.pick:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.pick:has(input:disabled) { cursor: default; color: var(--muted); }
.pick:has(input:checked) { color: var(--orange); }
.pick input { margin: 0; width: 1.15rem; height: 1.15rem; accent-color: var(--orange); flex: none; }
.shortlist-return { margin-top: 1.25rem; }
.noscript { margin-bottom: 1.3rem; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 56px); }
  .section-head, .contact-grid { column-gap: 1.75rem; }
}
@media (max-width: 790px) {
  .masthead { display: grid; padding-block: .8rem .55rem; }
  nav { gap: 0 1rem; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .hero, .section-head, .contact-grid, .gallery-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.35rem; }
  .hero img { aspect-ratio: 1.45; }
  .shortlist { position: static; grid-column: auto; grid-row: auto; }
  .services li { grid-template-columns: 1fr; }
  .case { min-height: 170px; }
}
@media (max-width: 470px) {
  nav { gap: 0 .75rem; }
  nav a { font-size: .9rem; }
  nav .button { padding-inline: .65rem; }
  .work, .studies { grid-template-columns: 1fr; }
}
