/* MyBTO. White background with one bright cyan accent (darker cyan for text). Poppins for headings, Inter for text.
   Kept deliberately plain: flat cards, thin borders, no animation. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f8f9;
  --card: #ffffff;
  --card-2: #e6eef0;
  --line: rgba(15, 30, 40, .1);
  --line-2: rgba(15, 30, 40, .2);
  --text: #16232b;
  --text-2: #4c5a63;
  --muted: #7d8a92;
  --accent: #35e4ff;
  --accent-2: #6aedff;
  --accent-ink: #0a87a0;
  --accent-soft: rgba(53, 228, 255, .16);
  --on-accent: #0b2a31;
  --pos: #1f9d55;
  --neg: #d64545;
  --neg-soft: rgba(214, 69, 69, .1);
  --head: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --r: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display, .h1, .h2 { font-family: var(--head); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.display { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08; }
.h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.12; }
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.18; }
.display em, .h1 em, .h2 em, .h3 em { font-style: normal; color: var(--accent-ink); }
.h3 { font: 600 20px/1.3 var(--head); margin: 0; }
.label { font: 600 13px/1 var(--sans); color: var(--accent-ink); display: inline-block; }
.lede { font-size: 17px; line-height: 1.7; max-width: 56ch; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.err { color: var(--neg); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { text-decoration: none; font: 700 22px/1 var(--head); color: var(--text); }
.logo em { font-style: normal; color: var(--accent-ink); }
.site-header .tabs { display: flex; gap: 6px; margin-left: auto; min-width: 0; }
.tab { text-decoration: none; font: 600 14px/1.2 var(--sans); color: var(--text-2); padding: 9px 14px; border-radius: 8px; border: 1px solid transparent; text-align: center; }
.tab:hover { color: var(--accent-ink); }
.tab[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent); }
@media (max-width: 640px) {
  .site-header .bar { flex-wrap: wrap; height: auto; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .site-header .tabs { width: 100%; margin-left: 0; }
  .tab { flex: 1 1 0; padding: 8px 6px; font-size: 13px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--sans); text-decoration: none; padding: 13px 20px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; border-radius: 8px; }
.btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn.primary, .btn.sea { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover, .btn.sea:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn.light, .btn.ghost { border-color: var(--line-2); color: var(--text); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.linkbtn { all: unset; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- home hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lede { margin: 20px 0 28px; }
.hero .actions, .cta-final .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-foot div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; min-width: 120px; }
@media (max-width: 520px) { .hero-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .hero-foot div { min-width: 0; padding: 12px; } .hero-foot b { font-size: 21px; } .hero-foot span { font-size: 12px; } }
.hero-foot b { display: block; font: 600 26px/1.1 var(--head); color: var(--accent-ink); }
.hero-foot span { font-size: 13px; color: var(--muted); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.hero-media p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.sec-head { margin-bottom: 32px; max-width: 720px; }
.sec-head .h2 { margin-top: 10px; }
.sec-head .lede { margin: 12px 0 0; }

/* intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro-photo { margin: 0; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.intro-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.statement { font: 500 clamp(22px, 2.3vw, 30px)/1.4 var(--head); margin: 12px 0 0; }
.statement em { font-style: normal; color: var(--accent-ink); }
.intro p.body { color: var(--text-2); max-width: 52ch; margin: 18px 0 26px; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

/* projects */
.filters-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters-tabs button { all: unset; cursor: pointer; font: 500 14px/1 var(--sans); padding: 10px 16px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--text-2); }
.filters-tabs button:hover { color: var(--text); }
.filters-tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard { text-decoration: none; color: inherit; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pcard:hover { border-color: var(--accent); }
.pcard .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .badge-type { position: absolute; top: 12px; left: 12px; font: 600 12px/1 var(--sans); padding: 6px 10px; border-radius: 14px; background: var(--bg); color: var(--text); }
.pcard .badge-type.Prime { background: var(--accent); color: var(--on-accent); }
.pcard .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard h3 { font: 600 20px/1.2 var(--head); margin: 0; }
.pcard .town { font-size: 13px; color: var(--accent-ink); order: -1; }
.pcard .go { display: none; }
.pcard .blurb { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
.pcard .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--muted); }
.pcard .facts b { color: var(--text); font-weight: 600; margin-right: 3px; }
.pcard[hidden] { display: none; }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.steps .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 15px/1 var(--head); }
.steps h3 { font: 600 20px/1.2 var(--head); margin: 16px 0 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* factors */
.findex { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.findex a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.findex a:hover { border-color: var(--accent); }
.findex .n, .findex .arrow { display: none; }
.findex h3 { font: 600 18px/1.3 var(--head); margin: 0 0 4px; }
.findex p { margin: 0; color: var(--text-2); font-size: 15px; }
.findex .src { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--accent-ink); }
@media (max-width: 760px) { .findex { grid-template-columns: 1fr; } }

/* insights */
.insights-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.insights-photo { margin: 0; }
.insights-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.insights-sec .h2 { margin-top: 10px; }
.insights-sec .lede { margin: 14px 0 24px; }
.bullets { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.bullets li { font-size: 15px; color: var(--text-2); display: flex; gap: 10px; }
.bullets li::before { content: '✓'; color: var(--accent-ink); font-weight: 700; }
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; } }

/* final CTA */
.cta-final { text-align: center; }
.cta-final .h1 { margin: 10px auto 24px; max-width: 18ch; }
.cta-row { display: flex; flex-direction: column; align-items: center; }
.cta-final .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); color: var(--muted); padding: 24px 0 28px; }
.site-footer .credits { font-size: 12px; line-height: 1.6; margin: 0; max-width: 90ch; opacity: .8; }

/* ---------- inner page header ---------- */
.page-hero { padding: clamp(36px, 5vw, 56px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.page-hero .bg { display: none; }
.page-hero .h1 { margin: 8px 0 12px; }
.page-hero p { max-width: 60ch; margin: 0; font-size: 16px; color: var(--text-2); }
