/* Jack Olivia — Iteration 1 (Home, About, Projects, Project: Lewes) — desktop only */

:root {
  --ground: #fbfaf8;
  --ink: #0e0e0c;
  --meta: #8c8880;
  --rule: #ddd8cb;
  --slate: #4a5f7a;
  --warm-white: #fdfaf4;
  --error: #b84a4a;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Source Serif 4', 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1.2em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

hr, .rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0;
}

/* ---------- caps / labels ---------- */

.caps-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}

.section-label-block {
  margin-bottom: 20px;
}

.section-label-block .caps-label {
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- layout shell ---------- */

.content {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 52px;
}

/* Home and What We Do use more of the screen — closer to the reference
   AFL scale — without touching the narrower editorial measure used by
   About, Projects, the Writers Cabin page or the CV. */
.content-wide {
  max-width: 1800px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.header-grid.content-wide {
  max-width: 1800px;
}

.header-grid {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand-wrap {
  grid-column: 1;
  justify-self: start;
}

.brand-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  display: block;
}

.site-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 4rem);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
}

/* ---------- mobile burger menu (hidden on desktop) ---------- */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 250ms ease, opacity 200ms ease, top 250ms ease;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 6px; }
.menu-toggle-bars span:nth-child(3) { top: 12px; }

body.menu-open .menu-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
body.menu-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu { display: none; }

/* ---------- footer credit ---------- */

.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  text-align: center;
  padding: 16px 20px;
  border-top: 1px solid var(--rule);
}

.site-footer a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
}

.site-footer a:hover { color: var(--ink); }


/* ============================================================
   HOME — LHS intro text, two independently-scrolling project columns
   ============================================================ */

.home-columns {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 30% 1fr 1fr;
  gap: 20px;
  padding: 44px 0 32px;
}

.home-col-text p { max-width: none; }

.practice-facts {
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  padding-top: 20px;
}

.practice-facts div {
  color: var(--meta);
  font-size: 14px;
  line-height: 1.9;
}

.home-links-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.home-links-grid a {
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  width: fit-content;
}

.home-links-grid a:hover { border-color: var(--ink); }

.home-col-projects .project-wheel {
  padding-top: 2px;
}

/* Home uses plain rectangular photos rather than the circular duotone
   plate — the Projects wheel keeps that treatment untouched. */

.home-page .wheel-item {
  margin-bottom: 48px;
}

.home-page .project-plate {
  border-radius: 0;
  aspect-ratio: 3 / 4;
  width: 100%;
}

.home-page .project-plate:hover {
  transform: none;
}

.home-page .plate-overlay,
.home-page .plate-content {
  display: none;
}

.home-page .plate-image img {
  transition: filter 350ms ease;
}

.home-page .project-plate:hover .plate-image img {
  filter: contrast(1.05) brightness(0.94);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 70px 0 64px;
}

.about-columns p { max-width: none; }

.cv-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 17px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.cv-link:hover { border-color: var(--ink); }

.about-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  margin: 30px auto 40px;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-contact {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding-top: 18px;
  font-size: 14px;
  color: var(--meta);
  line-height: 1.8;
}

/* ---------- Fixed shell: header/footer pinned, columns scroll independently ---------- */
/* Used by About, Home and the Lewes project page. Header and footer stay
   put; each column inside is its own scroll lane, so the reader can move
   through each one at their own pace without losing the others' position. */

.fixed-shell {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fixed-shell .site-header {
  flex-shrink: 0;
  margin-top: 0;
}

.fixed-shell main.content {
  flex: 1;
  min-height: 0;
  display: flex;
  padding-top: 0;
  padding-bottom: 0;
}

.about-page .about-columns {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 44px 0 32px;
}

.scroll-lane {
  height: 100%;
  overflow-y: auto;
  padding-right: 24px;
  padding-bottom: 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.scroll-lane::-webkit-scrollbar {
  width: 6px;
}

.scroll-lane::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-lane::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 3px;
}

.scroll-lane > .section-label-block {
  position: sticky;
  top: 0;
  background: var(--ground);
  padding-top: 2px;
  z-index: 1;
}

/* ============================================================
   PROJECTS
   ============================================================ */

.projects-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 28px;
  padding-top: 56px;
}

.projects-intro {
  position: sticky;
  top: 20px;
  align-self: start;
}

.projects-intro h2 {
  font-size: clamp(2.1rem, 2vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 18px 0 24px;
}

.projects-intro a {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}

.projects-intro .cv-link {
  margin-top: 10px;
}

.projects-intro a:hover { border-color: var(--ink); }

.project-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
}

.wheel-item:last-child { margin-bottom: 0; }

.project-plate {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.project-plate:hover {
  transform: translateY(-2px) scale(1.003);
}

.plate-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.plate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

.plate-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--slate);
  mix-blend-mode: color;
  opacity: 0.88;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.plate-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.plate-content .plate-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 29px;
  color: var(--warm-white);
  letter-spacing: -0.01em;
}

.plate-content .plate-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-white);
  opacity: 0.8;
  margin-top: 10px;
}

.project-plate.is-hover .plate-overlay,
.project-plate.is-hover .plate-content {
  opacity: 0;
}

.wheel-caption {
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  text-align: center;
}

.projects-closing {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 40px;
  text-align: center;
}

.all-projects-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.projects-closing p {
  max-width: 32ch;
  margin: 24px auto 0;
  font-size: 14px;
  color: var(--meta);
}

/* ============================================================
   PROJECT DETAIL
   LHS: explanatory text, scrolls normally. RHS: photo gallery scrolls
   freely and smoothly at the user's own pace, no forced pagination.
   ============================================================ */

.lewes-layout {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 20px;
  padding: 44px 0 0;
}

.meta-list {
  margin-top: 24px;
}

.meta-row {
  margin-bottom: 18px;
}

.meta-row:last-child { margin-bottom: 0; }

.meta-row .field-name {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 4px;
}

.meta-row .field-value {
  font-size: 16px;
  color: var(--ink);
}

.project-body { margin-top: 32px; }

.back-link-wrap {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding-top: 24px;
}

.back-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lewes-gallery {
  padding: 0;
  scrollbar-width: none;
}

.lewes-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
}

.gallery-slide:last-child { margin-bottom: 0; }

.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.mono-gallery .gallery-slide img {
  filter: grayscale(1) contrast(0.95);
}

/* ============================================================
   STRUCTURAL DRAWING EXAMPLES
   ============================================================ */

.drawing-examples-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 24px 80px;
}

.drawing-intro {
  max-width: 56ch;
  margin: 16px 0 24px;
  font-size: 15px;
  color: var(--meta);
}

.drawing-project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-bottom: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

.drawing-project-nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.drawing-project-nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.drawing-project {
  margin-bottom: 72px;
  scroll-margin-top: 104px;
}

.drawing-project-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 28px;
  color: var(--ink);
}

.drawing-project-pending {
  font-size: 14px;
  color: var(--meta);
}

.drawing-gallery {
  display: flex;
  flex-direction: column;
}

.drawing-row {
  display: grid;
  grid-template-columns: 80% 20%;
  align-items: start;
  border-bottom: 1px solid var(--rule);
}

.drawing-row:first-child { border-top: 1px solid var(--rule); }

.drawing-image {
  min-width: 0;
}

.drawing-image img {
  display: block;
  width: 100%;
  height: auto;
}

.drawing-title {
  padding: 20px 20px 20px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--meta);
}

/* ============================================================
   CV PAGE
   ============================================================ */

.cv-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 20px;
  padding-top: 56px;
}

.cv-nav {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
}

.cv-nav-list {
  margin-top: 32px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.cv-nav-list::-webkit-scrollbar { width: 6px; }
.cv-nav-list::-webkit-scrollbar-track { background: transparent; }
.cv-nav-list::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

.cv-nav-item {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 2px solid transparent;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  color: var(--meta);
  transition: color 250ms ease, border-bottom-color 250ms ease;
}

.cv-nav-item:last-child {
  border-bottom: 2px solid var(--rule);
}

.cv-nav-item.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.cv-sections { padding-bottom: 96px; max-width: 760px; }

.cv-section {
  padding-top: 8px;
  margin-bottom: 72px;
  scroll-margin-top: 104px;
}

.cv-section:last-child { margin-bottom: 0; }

.cv-section h2 {
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cv-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
}

.cv-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-title {
  font-size: clamp(2.1rem, 2vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 18px 0 8px;
}

.cv-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 32px;
}

.cv-intro { margin-bottom: 16px; }

.cv-entry { margin-top: 32px; }
.cv-entry:first-child { margin-top: 24px; }

.cv-entry-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.cv-inline-logo {
  height: 34px;
  width: auto;
  display: block;
}

.cv-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 20px;
}

.cv-image-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.cv-client-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}

.cv-client-logos img {
  height: 84px;
  width: auto;
  object-fit: contain;
}

.cv-entry h3 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cv-entry .cv-meta {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 14px;
}

.cv-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.cv-list li {
  margin-bottom: 8px;
}

/* ============================================================
   WHAT WE DO — sticky LHS index, RHS continuous scroll,
   scrollspy highlights the section currently in view
   ============================================================ */

.wwd-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 20px;
  padding-top: 56px;
}

.wwd-nav {
  position: sticky;
  top: 32px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
}

.wwd-nav-list {
  margin-top: 32px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.wwd-nav-list::-webkit-scrollbar { width: 6px; }
.wwd-nav-list::-webkit-scrollbar-track { background: transparent; }
.wwd-nav-list::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }

.wwd-nav-item {
  display: block;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 2px solid transparent;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  color: var(--meta);
  transition: color 250ms ease, border-bottom-color 250ms ease;
}

.wwd-nav-item:last-child {
  border-bottom: 2px solid var(--rule);
}

.wwd-nav-item.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.wwd-sections {
  padding-bottom: 96px;
  padding-left: clamp(24px, 6vw, 96px);
  max-width: 900px;
}

.wwd-section {
  padding-top: 8px;
  margin-bottom: 72px;
  scroll-margin-top: 104px;
}

.wwd-section:last-child { margin-bottom: 0; }

.wwd-section h2 {
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.wwd-section .wwd-tag {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 20px;
}

.wwd-faq-callout {
  margin-top: 72px;
  padding-top: 32px;
}

.wwd-faq-callout p {
  margin-top: 24px;
  margin-bottom: 0;
}

.fee-table {
  max-width: 640px;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.fee-row .fee-name { color: var(--ink); }
.fee-row .fee-price {
  color: var(--meta);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fee-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--meta);
}

.wwd-subhead {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.wwd-subhead h3 {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.wwd-list {
  margin: 20px 0 20px;
  padding-left: 20px;
  max-width: 64ch;
}

.wwd-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.wwd-list li:last-child { margin-bottom: 0; }

.wwd-list strong { font-weight: 400; }

/* ============================================================
   FAQs — sticky LHS index grouped by topic, RHS shows the answer
   for whichever question is currently selected (click, not scroll)
   ============================================================ */

.faqs-layout {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 20px;
  padding: 44px 0 32px;
}

.faqs-nav-list {
  margin-top: 32px;
}

.faqs-nav-group {
  margin-bottom: 28px;
}

.faqs-nav-group:last-child {
  margin-bottom: 0;
}

.faqs-nav-group-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 10px;
}

.faqs-nav-item {
  display: block;
  padding: 9px 0 9px 14px;
  border-left: 2px solid transparent;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--meta);
  transition: color 200ms ease, border-color 200ms ease;
}

.faqs-nav-item:hover {
  color: var(--ink);
}

.faqs-nav-item.active {
  color: var(--ink);
  border-left-color: var(--ink);
}

.faqs-panel {
  display: none;
  max-width: 640px;
}

.faqs-panel.active {
  display: block;
}

.faqs-panel-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 14px;
}

.faqs-panel h2 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.faqs-panel p {
  color: var(--meta);
  margin-bottom: 1.2em;
}

.faqs-contact {
  margin-top: 72px;
  padding-top: 32px;
  max-width: 640px;
}

.faqs-contact p {
  margin-bottom: 8px;
  color: var(--meta);
}

/* ============================================================
   CONTACT / ENQUIRY FORM
   ============================================================ */

.contact-lead {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 0 0;
  width: 100%;
}

.contact-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 96px;
  width: 100%;
}

.contact-title {
  font-size: clamp(2.1rem, 2vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 18px 0 20px;
}

.contact-intro {
  max-width: 85ch;
  margin-bottom: 40px;
}

/* ---------- find us: address + monochrome map ---------- */

.contact-find-us {
  max-width: 1100px;
  margin: 0 auto 64px;
  width: 100%;
}

.contact-find-us-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-address {
  min-width: 0;
}

.contact-address p {
  color: var(--meta);
  line-height: 1.8;
}

.contact-address a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.contact-address a:hover {
  border-color: var(--ink);
}

.contact-map {
  min-width: 0;
  border: 1px solid var(--rule);
}

.contact-map-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(0.75) contrast(1.05) brightness(0.98);
}

.contact-page fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.contact-page legend {
  padding: 0;
  width: 100%;
}

.form-section {
  margin-top: 56px;
}

.form-section:first-of-type {
  margin-top: 40px;
}

.form-section .section-label-block {
  margin-bottom: 24px;
}

.question-label {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.required {
  color: var(--meta);
  margin-left: 3px;
}

.field-help {
  font-size: 13px;
  color: var(--meta);
  margin: 8px 0 12px;
}

.field-stack > * + * {
  margin-top: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.field-row .field {
  min-width: 0;
}

.field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
}

.field-optional {
  font-weight: 300;
  color: var(--meta);
  text-transform: none;
  letter-spacing: 0;
}

.rightmove-field {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.rightmove-field .field-help {
  margin-top: -4px;
}

.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page input[type="url"],
.contact-page textarea {
  display: block;
  width: 100%;
  height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 0;
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  transition: border-color 200ms ease;
}

.contact-page input[type="text"]::placeholder,
.contact-page input[type="email"]::placeholder,
.contact-page input[type="tel"]::placeholder,
.contact-page textarea::placeholder {
  color: var(--meta);
}

.contact-page input[type="text"]:focus,
.contact-page input[type="email"]:focus,
.contact-page input[type="tel"]:focus,
.contact-page textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.contact-page textarea {
  height: auto;
  min-height: 180px;
  padding-top: 12px;
  resize: vertical;
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin: 6px 0 0;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

/* ---------- custom radio ---------- */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-group--grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 24px;
}

.radio-group--grid .radio-row {
  min-width: 0;
}

.radio-group--grid .radio-text {
  min-width: 0;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}

.radio-dot {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 200ms ease;
}

.radio-row:hover .radio-dot {
  border-color: var(--ink);
}

.radio-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 150ms ease, transform 150ms ease;
}

.contact-page input:checked + .radio-dot {
  border-color: var(--ink);
}

.contact-page input:checked + .radio-dot .radio-dot-inner {
  opacity: 1;
  transform: scale(1);
}

.contact-page input:focus-visible + .radio-dot,
.contact-page input:focus-visible + .checkbox-box {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}

.radio-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
}

/* ---------- custom checkbox ---------- */

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-box {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, border-color 150ms ease;
}

.checkbox-row:hover .checkbox-box {
  border-color: var(--ink);
}

.checkbox-tick {
  width: 10px;
  height: 10px;
  color: var(--ground);
  opacity: 0;
  transition: opacity 100ms ease;
}

.contact-page input:checked + .checkbox-box {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-page input:checked + .checkbox-box .checkbox-tick {
  opacity: 1;
}

.checkbox-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
}

/* ---------- service accordion ---------- */

.service-group {
  border-top: 1px solid var(--rule);
}

.service-option {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
}

.service-detail-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.service-option.selected .service-detail-wrap {
  grid-template-rows: 1fr;
}

.service-detail-inner {
  overflow: hidden;
}

.service-description {
  font-size: 14px;
  font-weight: 300;
  color: var(--meta);
  max-width: 56ch;
  margin: 8px 0 0 28px;
}

.service-detail-inner .upload-zone {
  margin: 16px 0 20px 28px;
}

.reveal-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.reveal-wrap.is-open {
  grid-template-rows: 1fr;
}

.reveal-wrap .reveal-inner {
  overflow: hidden;
}

.reveal-wrap .reveal-label {
  display: block;
  margin-top: 20px;
}

/* ---------- upload zone ---------- */

.upload-zone {
  border: 1px dashed var(--rule);
  padding: 24px;
  text-align: center;
  transition: border-color 200ms ease;
}

.upload-zone.drag-over {
  border-color: var(--ink);
}

.upload-prompt {
  font-size: 13px;
  color: var(--meta);
  margin: 0 0 14px;
}

.upload-trigger {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.upload-trigger:hover {
  color: var(--slate);
}

.upload-helper {
  font-size: 12px;
  color: var(--meta);
  margin: 8px 0 0;
}

.upload-file-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.upload-file-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 4px 8px;
}

.upload-file-remove {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--meta);
  font-size: 14px;
  line-height: 1;
  margin-left: 8px;
}

.upload-file-remove:hover {
  color: var(--ink);
}

.upload-error {
  font-size: 12px;
  color: var(--error);
  margin: 8px 0 0;
}

.upload-error:empty {
  display: none;
}

/* ---------- submit ---------- */

.submit-btn {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 40px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--ground);
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 200ms ease, opacity 200ms ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--slate);
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (min-width: 769px) {
  .submit-btn {
    width: auto;
    min-width: 240px;
  }
}

.required-note {
  font-size: 12px;
  color: var(--meta);
  margin-top: 24px;
}

.submit-error {
  font-size: 14px;
  color: var(--error);
  margin-top: 24px;
}

.success-message {
  max-width: 600px;
  margin: 0 auto;
  padding: 96px 0;
  text-align: center;
}

.success-message h2 {
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.success-message p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   MOBILE (≤768px) — continuous scroll, condensing header
   Nothing above this breakpoint is touched: every rule here is
   scoped inside this single media query, so desktop is byte-for-
   byte the same as before.
   ============================================================ */

@media (max-width: 768px) {

  .contact-lead { padding: 40px 0 0; }
  .contact-page { padding: 0 0 64px; }

  .contact-find-us { margin-bottom: 40px; }

  .contact-find-us-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-map-frame { height: 240px; }

  .field-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .radio-group--grid {
    grid-template-columns: 1fr;
  }

  .service-description,
  .service-detail-inner .upload-zone {
    margin-left: 0;
  }

  .content { padding: 0 20px; }

  /* ---------- header: fixed, shrinks on scroll, hides on scroll-down ---------- */
  /* Section labels below stick at top:0 too, so while the header is
     visible it simply paints over them (same opaque background, higher
     z-index) — the moment it hides, whichever label is stuck underneath
     is already in place with no jump. */

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--ground);
    transition: transform 280ms ease;
  }

  .header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    transition: padding 250ms ease;
  }

  .brand-wrap { justify-self: unset; }

  .brand-logo {
    transition: height 250ms ease, width 250ms ease;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.m-condensed .header-grid { padding: 8px 20px; }
  .site-header.m-condensed .brand-logo { height: 22px; width: 22px; }
  .site-header.m-hide { transform: translateY(-100%); }

  main.content { padding-top: 70px; }

  /* ---------- full-screen mobile menu overlay ---------- */

  body.menu-open { overflow: hidden; }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--ground);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 280ms ease, visibility 280ms ease;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
  }

  .mobile-menu-logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: block;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: calc(100% - 68px);
  }

  .mobile-menu-link {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .mobile-menu-link.active {
    color: var(--meta);
  }

  .site-footer { padding: 14px 20px 20px; }

  /* ---------- kill the fixed-shell / independent-scroll-lane mechanics:
     everything becomes one normal continuous page scroll ---------- */

  .fixed-shell {
    height: auto;
    overflow: visible;
    display: block;
  }

  .fixed-shell main.content {
    display: block;
    flex: none;
    min-height: 0;
    padding-top: 70px;
    padding-bottom: 0;
  }

  .scroll-lane {
    height: auto;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }

  .scroll-lane > .section-label-block,
  .section-label-block {
    position: sticky;
    top: 0;
    background: var(--ground);
    z-index: 10;
    padding-top: 10px;
    padding-bottom: 4px;
  }

  /* ---------- Home: single column, plates in numeric order ---------- */

  .home-columns {
    display: flex;
    flex-direction: column;
    padding: 24px 0 40px;
  }

  .home-col-text { margin-bottom: 44px; }

  .home-col-projects,
  .home-col-projects .project-wheel {
    display: contents;
  }

  [data-m-order="1"] { order: 1; }
  [data-m-order="2"] { order: 2; }
  [data-m-order="3"] { order: 3; }
  [data-m-order="4"] { order: 4; }

  /* ---------- About: single column ---------- */

  .about-page .about-columns,
  .about-columns {
    display: block;
    padding: 24px 0 40px;
  }

  /* ---------- Projects: single column, smaller plates ---------- */

  .projects-layout {
    display: block;
    padding-top: 24px;
  }

  .projects-intro {
    position: static;
    margin-bottom: 44px;
  }

  .project-plate { width: min(82vw, 300px); }

  .wheel-item { margin-bottom: 52px; }

  /* ---------- Writers Cabin detail: single column, gallery stacks ---------- */

  .lewes-layout {
    display: block;
    padding: 24px 0 0;
  }

  .lewes-gallery {
    margin-top: 40px;
  }

  .gallery-slide {
    margin-bottom: 24px;
  }

  /* ---------- Structural drawing examples: title stacks below image ---------- */

  .drawing-row {
    grid-template-columns: 1fr;
  }

  .drawing-title {
    padding: 12px 0 24px;
  }

  /* ---------- What We Do: single column, index becomes a sticky
     horizontal pill strip pinned under the header so you can jump
     between sections without scrolling back to the top ---------- */

  .wwd-layout {
    display: block;
    padding-top: 24px;
  }

  .wwd-nav {
    position: sticky;
    top: var(--mobile-header-offset, 70px);
    transition: top 280ms ease;
    z-index: 10;
    background: var(--ground);
    display: block;
    max-height: none;
    margin-bottom: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
  }

  .wwd-nav .section-label-block {
    position: static;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .wwd-nav-list {
    margin-top: 12px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 6px;
  }

  .wwd-nav-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 16px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-size: 0.95rem;
  }

  .wwd-nav-item.active {
    color: var(--warm-white);
    background: var(--ink);
    border-color: var(--ink);
  }

  .wwd-sections {
    padding-left: 0;
    max-width: none;
  }

  .wwd-section {
    scroll-margin-top: calc(var(--mobile-header-offset, 70px) + 110px);
  }

  /* ---------- CV: single column, index list stops sticking ---------- */

  .cv-layout {
    display: block;
    padding-top: 24px;
  }

  .cv-nav {
    position: static;
    max-height: none;
    margin-bottom: 40px;
  }

  .cv-nav-list {
    overflow-y: visible;
  }

  .cv-sections { max-width: none; }

  /* ---------- CV: photo pairs stack to one column so mismatched
     aspect ratios never leave gaps or misaligned rows ---------- */

  .cv-image-row {
    grid-template-columns: 1fr;
  }

  /* ---------- FAQs: single column, index becomes a compact sticky
     drawer (its own internal scroll) pinned under the header, so you
     can pick another question without scrolling back to the top ---------- */

  .faqs-layout {
    display: block;
    padding: 24px 0 40px;
  }

  .faqs-nav {
    position: sticky;
    top: var(--mobile-header-offset, 70px);
    transition: top 280ms ease;
    z-index: 10;
    background: var(--ground);
    max-height: 330px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }

  .faqs-nav::after {
    content: '';
    position: sticky;
    display: block;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    margin-top: -28px;
    background: linear-gradient(to bottom, transparent, var(--ground));
    pointer-events: none;
  }

  .faqs-nav-list { margin-top: 24px; }

  .faqs-panel {
    scroll-margin-top: calc(var(--mobile-header-offset, 70px) + 330px);
  }

  .faqs-panel,
  .faqs-contact {
    max-width: none;
  }

  .faqs-contact { margin-top: 48px; }

}
