/* =========================================================================
   Five Valleys Design — site stylesheet
   Plain CSS, no build step. Design tokens first, then layout, then components.
   ========================================================================= */

:root {
  /* Olive */
  --olive-950: #1E241B;
  --olive-900: #3E5634;
  --olive-800: #33472B;
  --olive-700: #4E6B42;
  --olive-600: #5C7A50;
  --olive-400: #7E9A74;
  --olive-200: #D5E0D0;
  --olive-100: #EAF0E7;
  --olive-50:  #F4F7F2;
  /* Ochre */
  --ochre-700: #6E6322;
  --ochre-600: #887A2B;
  --ochre-500: #9A8B34;
  --ochre-400: #B8A84C;
  --ochre-100: #F5F1DF;
  --ochre-50:  #FAF8F0;
  /* Stone */
  --bg: #FAF9F6;
  --card: #FFFFFF;
  --border: #E6E4DC;

  --text: var(--olive-950);
  --text-muted: rgba(30, 36, 27, 0.75);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --shadow-soft: 0 10px 30px -10px rgba(30, 36, 27, 0.07);
  --shadow-elevated: 0 20px 45px -15px rgba(30, 36, 27, 0.13);

  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --container: 80rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.01em; }
::selection { background: var(--olive-900); color: #fff; }
:focus-visible { outline: 3px solid var(--ochre-400); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--olive-900); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
.section--tight { padding-block: 3.5rem; }
.band { background: var(--card); border-block: 1px solid var(--border); }
.band--bottom { background: var(--card); border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 1.5rem; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--gap-lg { gap: 1.75rem; }
}

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .split--7-5 { grid-template-columns: 7fr 5fr; }
  .split--4-8 { grid-template-columns: 4fr 8fr; align-items: start; }
}

.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-head--center { text-align: center; max-width: 42rem; margin-inline: auto; display: block; }

.stack > * + * { margin-top: 1.25rem; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ochre-700);
}
.h1 { font-size: clamp(2.25rem, 5vw, 3.35rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.h1--page { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; margin-top: .5rem; }
.h2--sm { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.h3 { font-size: 1.125rem; font-weight: 700; }
.lead { font-size: clamp(1rem, 1.6vw, 1.125rem); color: var(--text-muted); max-width: 36rem; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.xs { font-size: .75rem; }
.accent { color: var(--olive-900); }
.gold { color: var(--ochre-600); }

/* ---------- Pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .85rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--card); border: 1px solid var(--border); color: var(--olive-900);
}
.pill--ochre { background: var(--ochre-50); border-color: var(--ochre-100); color: var(--ochre-700); text-transform: uppercase; letter-spacing: .08em; }
.pill--olive { background: var(--olive-50); border-color: var(--olive-200); color: var(--olive-900); text-transform: uppercase; letter-spacing: .08em; }
.pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ochre-600); }

.tag {
  display: inline-block; padding: .25rem .65rem; border-radius: .5rem;
  font-size: .72rem; font-weight: 700; background: var(--olive-50); color: var(--olive-900);
}
.tag--ochre { background: var(--ochre-50); color: var(--ochre-700); }
.tag--plain { background: var(--card); border: 1px solid var(--border); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.6rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  transition: background-color .2s, box-shadow .2s, color .2s, border-color .2s, transform .2s;
  border: 2px solid transparent; text-align: center;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn--primary { background: var(--olive-900); color: #fff; box-shadow: var(--shadow-elevated); }
.btn--primary:hover { background: var(--olive-800); }
.btn--primary svg { color: var(--ochre-400); }
.btn--secondary { background: var(--card); color: var(--olive-950); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.btn--secondary:hover { background: var(--olive-50); }
.btn--outline { border-color: var(--olive-900); color: var(--olive-900); background: transparent; }
.btn--outline:hover { background: var(--olive-900); color: #fff; }
.btn--light { background: #fff; color: var(--olive-950); font-weight: 700; }
.btn--light:hover { background: var(--ochre-50); }
.btn--ghost-light { background: rgba(30,36,27,.35); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.btn--ghost-light:hover { background: rgba(30,36,27,.55); }
.btn--gold { background: var(--ochre-600); color: #fff; font-size: .8rem; font-weight: 700; padding: .75rem 1rem; border-radius: var(--radius-sm); }
.btn--gold:hover { background: var(--ochre-500); }
.btn--sm { padding: .6rem 1rem; font-size: .8rem; border-radius: var(--radius-sm); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: .875rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; align-items: center; } }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--olive-900); }
.link-arrow:hover { color: var(--ochre-600); }
.link-arrow svg { width: 1rem; height: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 228, 220, .8);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 5rem; }

.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand__mark { width: 3rem; height: 2.75rem; flex-shrink: 0; transition: transform .3s; }
.brand:hover .brand__mark { transform: scale(1.05); }
.brand__text { line-height: 1; white-space: nowrap; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; color: var(--ochre-600); }
.brand__sub { font-family: var(--font-display); font-weight: 500; font-size: .8rem; letter-spacing: .28em; color: var(--olive-900); margin-top: .15rem; }
.brand__tag { font-size: .56rem; font-weight: 600; letter-spacing: .2em; color: var(--ochre-600); margin-top: .3rem; }
@media (min-width: 640px) { .brand__name { font-size: 1.125rem; } .brand__sub { font-size: .875rem; } }

.nav { display: none; align-items: center; gap: .25rem; }
.nav a {
  padding: .6rem .9rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
  transition: background-color .2s;
}
.nav a:hover { background: rgba(234, 240, 231, .7); }
.nav a[aria-current="page"] { background: var(--olive-900); color: #fff; }
@media (min-width: 1024px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-cta { display: none; padding: .65rem 1.25rem; font-size: .875rem; font-weight: 500; border-radius: var(--radius-sm); box-shadow: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.menu-btn {
  display: inline-flex; padding: .6rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--olive-900);
}
.menu-btn svg { width: 1.5rem; height: 1.5rem; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mobile-nav {
  border-top: 1px solid var(--border); background: var(--bg);
  padding: .75rem 1rem 1.5rem; box-shadow: var(--shadow-elevated);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 500; }
.mobile-nav a:hover { background: var(--olive-100); }
.mobile-nav a[aria-current="page"] { background: var(--olive-900); color: #fff; }
.mobile-nav .btn { margin-top: .5rem; width: 100%; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
/* Homepage: Stroud valleys photo replaces the cream background.
   Photo stays bright; a soft olive wash sits only behind the left-hand text. */
.hero--photo { background: var(--olive-950); border-bottom: 0; }
.hero__bg { position: absolute; inset: 0; z-index: 0; display: block; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(30,36,27,.78) 0%, rgba(30,36,27,.62) 32%, rgba(30,36,27,.18) 55%, rgba(30,36,27,0) 70%);
}
@media (max-width: 1023px) {
  .hero--photo::before { background: linear-gradient(180deg, rgba(30,36,27,.70) 0%, rgba(30,36,27,.58) 50%, rgba(30,36,27,.15) 80%, rgba(30,36,27,0) 100%); }
}
.hero--photo .hero__inner { z-index: 2; }
.hero--photo .h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.hero--photo .h1 .accent { color: var(--ochre-400); }
.hero--photo .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.hero--photo .pill { background: rgba(255,255,255,.95); border-color: transparent; }
.hero--photo .checks-inline { color: rgba(255,255,255,.9); }
.hero--photo .check { color: var(--ochre-400); }
.hero--photo .btn--primary { background: var(--ochre-400); color: var(--olive-950); font-weight: 700; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.hero--photo .btn--primary:hover { background: #C9BA5E; }
.hero--photo .btn--primary svg { color: var(--olive-950); }
.hero--photo .btn--secondary { border-color: transparent; }
.hero--photo .showcase { box-shadow: 0 30px 60px -20px rgba(0,0,0,.4) !important; }

.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .65; }
.hero__inner { position: relative; padding-block: 3.5rem; }
@media (min-width: 640px) { .hero__inner { padding-block: 5rem; } }
@media (min-width: 1024px) { .hero__inner { padding-block: 6rem; } }
.hero .stack > * + * { margin-top: 1.5rem; }

.checks-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .75rem; font-weight: 500; color: var(--olive-700); }
.check { color: var(--ochre-600); font-weight: 700; }

.page-hero { background: var(--card); border-bottom: 1px solid var(--border); padding-block: 3.5rem; }
@media (min-width: 640px) { .page-hero { padding-block: 4.5rem; } }
.page-hero__body { max-width: 48rem; }
.page-hero__body > * + * { margin-top: 1rem; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__body { margin-inline: auto; }
.page-hero--center .lead { margin-inline: auto; max-width: 42rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-soft);
  transition: box-shadow .25s, transform .25s;
}
.card--hover:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.card--flex { display: flex; flex-direction: column; justify-content: space-between; }
.card--stone { background: var(--bg); box-shadow: none; }
.card--lg { padding: 2rem; }
@media (min-width: 640px) { .card--xl { padding: 3rem; } }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.card__foot {
  padding-top: 1rem; margin-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}

.icon-tile {
  width: 3rem; height: 3rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  background: var(--olive-50); color: var(--olive-900); margin-bottom: 1.25rem; flex-shrink: 0;
  transition: background-color .2s, color .2s;
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.icon-tile--ochre { background: var(--ochre-50); color: var(--ochre-600); }
.icon-tile--sm { width: 2.75rem; height: 2.75rem; margin: 0; border: 1px solid var(--olive-100); }
.icon-tile--sm.icon-tile--ochre { border-color: var(--ochre-100); }
.icon-tile--sm svg { width: 1.25rem; height: 1.25rem; }
.card--hover:hover .icon-tile { background: var(--olive-900); color: #fff; }
.card--hover:hover .icon-tile--ochre { background: var(--ochre-600); color: #fff; }

.service-card h3 { margin-bottom: .6rem; }

/* Services page: detailed service boxes, linked from the homepage by #id */
.service-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.service-jump a {
  padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--olive-900); transition: background-color .2s, border-color .2s;
}
.service-jump a:hover { background: var(--olive-50); border-color: var(--olive-200); }
.service-detail { scroll-margin-top: 6.5rem; }
.service-detail__title { font-size: 1.3rem; margin-bottom: .35rem !important; }
.service-detail__hook { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--olive-900) !important; }
.service-detail .checklist { margin-block: 1.1rem 1rem; }
.best-for {
  font-size: .8rem !important; color: var(--olive-800) !important; background: var(--ochre-50);
  border: 1px solid var(--ochre-100); border-radius: var(--radius-sm); padding: .65rem .85rem; margin-bottom: 1.5rem;
}
.best-for strong { color: var(--ochre-700); }
.service-detail__cta { box-shadow: none; padding: .875rem; }
.service-detail:target { border: 2px solid var(--ochre-600); box-shadow: 0 0 0 6px rgba(184,168,76,.18), var(--shadow-elevated); animation: service-pulse 1.6s ease-out 1; }
@keyframes service-pulse { 0% { box-shadow: 0 0 0 0 rgba(184,168,76,.5), var(--shadow-elevated); } 100% { box-shadow: 0 0 0 6px rgba(184,168,76,.18), var(--shadow-elevated); } }
.service-card p { font-size: .875rem; color: var(--text-muted); }

.checklist { display: grid; gap: .6rem; font-size: .875rem; color: var(--olive-900); margin-block: 1.25rem 1.5rem; }
.checklist li { display: flex; gap: .5rem; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--ochre-600); font-weight: 700; flex-shrink: 0; }
.checklist--roomy { gap: .875rem; margin-bottom: 2rem; }

.number-tile {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .875rem; color: #fff; background: var(--olive-900); margin-bottom: 1rem;
}
.number-tile--ochre { background: var(--ochre-600); }
.number-tile--soft { width: 2.75rem; height: 2.75rem; background: var(--olive-50); color: var(--olive-900); margin-bottom: 1.25rem; }
.number-tile--soft.number-tile--ochre { background: var(--ochre-50); color: var(--ochre-600); }

/* ---------- Highlights bar ---------- */
.highlights { padding-block: 1.75rem; }
.highlight { display: flex; align-items: center; gap: .875rem; }
.highlight strong { display: block; font-family: var(--font-display); font-size: .875rem; }
.highlight span { display: block; font-size: .75rem; color: var(--olive-700); }

/* ---------- Showcase card (hero right) ---------- */
.showcase { position: relative; }
.showcase__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.showcase__logo { width: 3.5rem; height: 3.5rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); padding: .5rem; flex-shrink: 0; }
.lighthouse { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .875rem; border-radius: var(--radius); background: var(--olive-50); border: 1px solid var(--olive-200); }
.lighthouse__score { width: 2rem; height: 2rem; border-radius: 50%; background: var(--olive-900); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.lighthouse__text { line-height: 1.2; }
.lighthouse__text strong { display: block; font-family: var(--font-display); font-size: .75rem; }
.lighthouse__text span { font-size: .63rem; font-weight: 600; color: var(--olive-700); }

.tracker { margin-block: 1.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.tracker__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; }
.tracker__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre-700); }
.tracker__title { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.tracker__status-pill { padding: .25rem .6rem; border-radius: 999px; background: var(--olive-100); color: var(--olive-900); font-size: .68rem; font-weight: 700; flex-shrink: 0; }
.tracker__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .375rem; margin-bottom: .875rem; }
.tracker__step {
  padding: .5rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border);
  font-size: .68rem; font-weight: 600; color: var(--olive-900); transition: all .2s;
}
.tracker__step:hover { border-color: var(--olive-600); }
.tracker__step[aria-pressed="true"] { background: var(--olive-900); border-color: var(--olive-900); color: #fff; font-weight: 700; }
.tracker__bar { height: .5rem; background: var(--olive-200); border-radius: 999px; overflow: hidden; margin-bottom: .625rem; }
.tracker__fill { height: 100%; width: 76%; border-radius: 999px; background: linear-gradient(to right, var(--olive-900), var(--ochre-600)); transition: width .3s; }
.tracker__foot { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; }
.tracker__foot strong { font-family: var(--font-display); color: var(--ochre-600); }

.devices { display: grid; grid-template-columns: 2fr 1fr; gap: .875rem; }
.device { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: .875rem; display: flex; flex-direction: column; }
.device__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: .625rem; }
.device__dots { display: flex; gap: .375rem; }
.device__dots i { width: .5rem; height: .5rem; border-radius: 50%; }
.device__label { font-size: .63rem; font-weight: 600; color: var(--olive-600); }
.device__screen { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem; display: grid; gap: .5rem; flex: 1; align-content: center; }
.bar { height: .5rem; border-radius: 4px; background: var(--olive-100); }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .375rem; padding-top: .25rem; }
.blocks i { height: 2rem; border-radius: .5rem; background: var(--olive-50); border: 1px solid var(--olive-100); }
.blocks i:nth-child(2) { background: var(--ochre-50); border-color: var(--ochre-100); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  padding: .55rem 1rem; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border); color: var(--olive-900); transition: all .2s;
}
.filter-btn--white { background: #fff; }
.filter-btn:hover { background: var(--olive-50); }
.filter-btn[aria-pressed="true"] { background: var(--olive-900); border-color: var(--olive-900); color: #fff; }

/* ---------- Portfolio ---------- */
.project { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: box-shadow .25s; }
.project:hover { box-shadow: var(--shadow-elevated); }
.project[hidden] { display: none; }
.project__banner { height: 11rem; padding: 1.5rem 1.5rem 0; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.project__banner--olive { background: linear-gradient(135deg, var(--olive-900), var(--olive-600)); }
.project__banner--ochre { background: linear-gradient(135deg, var(--ochre-600), var(--ochre-700)); }
.project__banner--dark  { background: linear-gradient(135deg, var(--olive-950), var(--olive-900)); }
.project__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project__sector { padding: .25rem .6rem; border-radius: .5rem; background: rgba(255,255,255,.15); font-size: .68rem; font-weight: 600; }
.project__stat { font-size: .75rem; font-weight: 700; color: var(--ochre-100); }
.project__mock { background: #fff; color: var(--olive-950); border-radius: var(--radius-sm) var(--radius-sm) 0 0; padding: .875rem; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.project__mock strong { display: block; font-family: var(--font-display); font-size: .875rem; }
.project__mock span { font-size: .68rem; color: var(--olive-700); }
.project__body { padding: 1.5rem; }

/* Featured (single) project: banner beside details on desktop */
.project--featured { display: grid; }
.project--featured .project__banner { height: auto; min-height: 15rem; gap: 2rem; }
@media (min-width: 900px) {
  .project--featured { grid-template-columns: 5fr 7fr; }
  .project--featured .project__banner { height: auto; min-height: 22rem; padding: 2rem 2rem 0; }
  .project--featured .project__body { padding: 2.25rem 2.5rem; align-self: center; }
}
.project__banner--horse { background: linear-gradient(135deg, #5A2A22 0%, #3E5634 100%); }
.browser-frame {
  background: #fff; border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden;
  box-shadow: 0 -6px 30px rgba(0,0,0,.25);
}
.browser-frame__bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .75rem; background: #F1EEE8; border-bottom: 1px solid var(--border); }
.browser-frame__bar i { width: .5rem; height: .5rem; border-radius: 50%; background: #D9D4C9; }
.browser-frame__bar span { margin-left: .5rem; font-size: .65rem; color: var(--olive-700); background: #fff; border-radius: 999px; padding: .1rem .6rem; }
.browser-frame img { width: 100%; height: auto; aspect-ratio: 936 / 650; object-fit: cover; object-position: top; }
@media (min-width: 900px) {
  .project--featured .browser-frame img { max-height: 19rem; }
}
.project__mock-eyebrow { display: block; font-size: .62rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre-700) !important; margin-bottom: .35rem; }
.project--featured .project__mock strong { font-size: 1.05rem; line-height: 1.3; margin-bottom: .35rem; }
.project--featured .project__body h3 { font-size: 1.5rem; }
.project--featured .project__body > p:not(.project__loc) { font-size: .95rem; }
.project__features { font-size: .875rem; margin-block: 0 1.25rem; }
@media (min-width: 640px) { .project__features { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; } }
.project__loc { font-size: .75rem; font-weight: 600; color: var(--ochre-700); margin-bottom: .25rem; }
.project__body h3 { margin-bottom: .5rem; }
.project__body p { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--olive-900); color: #fff; border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px) { .cta-banner { padding: 3rem; } }
@media (min-width: 1024px) { .cta-banner { flex-direction: row; } }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: .5rem; }
.cta-banner p { color: rgba(234, 240, 231, .85); max-width: 36rem; font-size: .95rem; }
.cta-banner__kicker { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--ochre-400); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.cta-banner__actions { display: flex; flex-direction: column; gap: .75rem; width: 100%; flex-shrink: 0; }
@media (min-width: 640px) { .cta-banner__actions { flex-direction: row; } }
@media (min-width: 1024px) { .cta-banner__actions { width: auto; } }

/* ---------- Hosting ---------- */
.tier { position: relative; }
.tier--featured { border: 2px solid var(--ochre-600); box-shadow: var(--shadow-elevated); }
.tier__flag {
  position: absolute; top: -.9rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ochre-600); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem 1rem; border-radius: 999px;
}
.tier h2 { font-size: 1.5rem; font-weight: 700; margin-top: .75rem; }
.tier__desc { font-size: .875rem; color: var(--olive-700); margin-top: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.notice {
  margin-top: 2.5rem; background: var(--ochre-50); border: 1px solid var(--ochre-100); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; justify-content: space-between;
}
@media (min-width: 640px) { .notice { flex-direction: row; align-items: center; } }
.notice__body { display: flex; gap: .875rem; align-items: flex-start; }
.notice__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); background: var(--ochre-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.notice strong { display: block; font-family: var(--font-display); }
.notice p { font-size: .875rem; color: var(--olive-800); }

.table-card { margin-top: 3.5rem; padding: 0; overflow: hidden; }
.table-card__head { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
.table-scroll { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; min-width: 44rem; }
.spec-table th, .spec-table td { padding: .875rem 1.5rem; }
.spec-table thead tr { background: var(--bg); border-bottom: 1px solid var(--border); font-family: var(--font-display); }
.spec-table tbody tr + tr { border-top: 1px solid var(--border); }
.spec-table tbody td { color: var(--olive-900); }
.spec-table tbody th { font-weight: 500; }
.spec-table .featured { color: var(--ochre-600); }
.spec-table .strong { font-weight: 600; }

/* ---------- About ---------- */
.emblem-card { text-align: center; max-width: 24rem; width: 100%; margin-inline: auto; }
.emblem-card svg { width: 8rem; height: 6rem; margin: 0 auto .75rem; }
.valley { padding: 1rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.valley strong { display: block; font-family: var(--font-display); color: var(--olive-900); }
.valley span { font-size: .75rem; color: var(--olive-700); }
@media (min-width: 640px) { .valley--wide { grid-column: span 2; } }
.stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: var(--olive-900); }
.stat:nth-child(even) strong { color: var(--ochre-600); }
.stat span { font-size: .8rem; font-weight: 500; color: var(--olive-700); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Products ---------- */
.product[hidden] { display: none; }
.product details { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.product summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--olive-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.product summary::-webkit-details-marker { display: none; }
.product summary::after { content: "+"; font-size: 1.1rem; color: var(--ochre-600); }
.product details[open] summary::after { content: "–"; }
.product__usecase { margin-top: .875rem; background: rgba(244,247,242,.7); border: 1px solid var(--olive-100); border-radius: var(--radius-sm); padding: .6rem .875rem; font-size: .75rem; color: var(--olive-900); }
.product__usecase strong { color: var(--olive-900); }

/* ---------- Contact ---------- */
.detail { display: flex; align-items: flex-start; gap: .875rem; }
.detail + .detail { margin-top: 1.25rem; }
.detail .icon-tile { width: 2.5rem; height: 2.5rem; margin: 0; border-radius: var(--radius-sm); }
.detail .icon-tile svg { width: 1.25rem; height: 1.25rem; }
.detail strong { display: block; }
.detail p { color: var(--olive-700); font-size: .875rem; margin-top: .125rem; }
.copy-btn { margin-top: .5rem; display: inline-flex; font-size: .75rem; font-weight: 600; color: var(--ochre-700); background: var(--ochre-50); border: 1px solid var(--ochre-100); padding: .35rem .75rem; border-radius: .5rem; }
.copy-btn:hover { color: var(--olive-950); }

.form-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: .375rem; }
.field + .field { margin-top: 1.25rem; }
.input {
  width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); font-size: .875rem; transition: border-color .2s, background-color .2s;
}
.input:focus { outline: none; background: #fff; border-color: var(--olive-900); }
.input[aria-invalid="true"] { border-color: #B42318; }
.error { font-size: .75rem; font-weight: 600; color: #B42318; margin-top: .25rem; }
.error[hidden] { display: none; }
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: .625rem; }
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline label {
  position: relative; display: block; padding: .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); font-size: .82rem; font-weight: 600; color: var(--olive-900); text-align: center; cursor: pointer; transition: all .2s; margin: 0;
}
.timeline input { position: absolute; opacity: 0; pointer-events: none; }
.timeline label:hover { border-color: var(--olive-900); }
.timeline input:checked + span { color: #fff; }
.timeline label:has(input:checked) { background: var(--olive-900); border-color: var(--olive-900); color: #fff; }
.timeline label:has(input:focus-visible) { outline: 3px solid var(--ochre-400); outline-offset: 2px; }
.form-note { font-size: .75rem; color: var(--olive-700); margin-top: .875rem; }

.confirm { border: 2px solid var(--olive-900); box-shadow: var(--shadow-elevated); }
.confirm[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-950); color: var(--olive-100); border-top: 1px solid var(--olive-900); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }
.site-footer .brand__mark { background: #fff; border-radius: var(--radius-sm); padding: .25rem; }
.site-footer .brand__name { color: var(--ochre-400); font-size: 1.15rem; }
.site-footer .brand__sub { color: var(--olive-200); }
.site-footer .brand__tag { color: var(--olive-400); }
.footer-text { font-size: .875rem; color: rgba(213, 224, 208, .8); }
.footer-title { font-family: var(--font-display); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; }
.footer-list { display: grid; gap: .6rem; font-size: .875rem; color: rgba(213, 224, 208, .8); }
.footer-list a:hover { color: var(--ochre-400); }
.footer-badge { display: inline-block; padding: .25rem .6rem; border-radius: .5rem; background: var(--olive-900); border: 1px solid var(--olive-800); font-size: .68rem; font-weight: 500; color: var(--olive-200); }
.footer-bottom { padding-block: 2rem; border-top: 1px solid var(--olive-900); display: flex; flex-direction: column; align-items: center; gap: 1rem; justify-content: space-between; font-size: .75rem; color: var(--olive-400); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Prose (privacy page) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p + p { margin-top: .875rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; margin-top: .75rem; }
.prose a { color: var(--olive-900); text-decoration: underline; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2.5rem; }
.mt-4 { margin-top: 3.5rem; }
.mt-5 { margin-top: 5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2.5rem; }
.center { text-align: center; }
.flex-center { display: flex; justify-content: center; }
.row { display: flex; align-items: center; gap: .875rem; }
.nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
