:root {
  --ink: #1F2D3A;
  --text: #3A4A57;
  --muted: #5A6874;
  --accent: #2B6E77;
  --accent-dark: #1F555C;
  --tint: #E3EEF0;
  --line: #DDE3E7;
  --bg: #F5F7F8;
  --white: #FFFFFF;
  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Assistant', 'Segoe UI', Tahoma, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100px; right: 1rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.35rem; color: var(--text); }

.hero { padding: 3rem 0 2.5rem; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; }
.hero-text { flex: 999 1 480px; min-width: 0; }
.hero-text h1 { margin-bottom: 1rem; }
.hero-art { flex: 0 1 260px; color: var(--accent); }
.hero-art svg { width: 100%; height: auto; max-width: 260px; display: block; margin: 0 auto; }

.intro { display: flex; flex-wrap: wrap; gap: 3rem; align-items: flex-start; }
.intro-photo { flex: 0 0 240px; width: 240px; height: 240px; border-radius: 50%; object-fit: cover; }
.intro-text { flex: 999 1 460px; min-width: 0; }
.more-link { font-weight: 700; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Portfolio cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; font-size: 1.05rem; }
.card-head { display: flex; align-items: center; gap: 1rem; }
.card-head img { width: 88px; height: 60px; object-fit: contain; flex: 0 0 auto; }
.card-head .site-link { display: block; font-size: .9rem; font-weight: 600; text-decoration: none; }
.card p { margin: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 700; font-size: 1rem; margin-top: auto; }

.quote { margin: 0; background: var(--tint); border-radius: var(--radius); padding: 1.1rem 1.25rem; color: var(--ink); }
.quote p { margin: 0 0 .5rem; }
.quote strong { font-weight: 700; }
.quote footer { font-size: .95rem; font-weight: 600; color: var(--accent-dark); }
.quote .full[hidden] { display: none; }

.toggle {
  background: none; border: none; padding: 0; font: inherit; font-weight: 700;
  color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.toggle:hover { color: var(--accent-dark); }

.statement { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; color: var(--ink); max-width: 860px; margin: 0 auto; line-height: 1.45; }
.band { background: var(--tint); }

/* Lists and features */
ol.numbered, ul.plain { padding-inline-start: 1.5rem; margin: 0 0 1rem; }
ol.numbered li, ul.plain li { margin-bottom: .5rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature h3 { margin-bottom: .6rem; color: var(--accent-dark); }
.feature p { margin: 0; font-size: 1.05rem; }

.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--accent); }
.timeline li { position: relative; padding-inline-start: 2.5rem; padding-bottom: 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num {
  position: absolute; inset-inline-start: -17px; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.timeline strong { color: var(--ink); font-size: 1.15rem; display: block; }

.aside-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.aside-note h3 { font-size: 1.1rem; margin-bottom: .35rem; }

/* About */
.about-hero .container { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; }
.about-hero .about-text { flex: 999 1 480px; min-width: 0; }
.about-photo { flex: 0 0 280px; width: 280px; height: 320px; object-fit: cover; border-radius: var(--radius); }
.stations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.station { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: var(--white); font-size: 1rem; }
.station h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.station p { margin: 0; }
.stories { display: flex; flex-direction: column; gap: 1.5rem; }
.story { scroll-margin-top: 90px; }

/* Contact */
.contact .container { display: flex; flex-wrap: wrap; gap: 3rem; }
.contact form { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; color: var(--ink); font-size: 1rem; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--white);
  border: 1px solid #B9C3CA; border-radius: 8px; padding: .65rem .8rem; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.btn {
  align-self: flex-start; background: var(--accent); color: var(--white); border: none; border-radius: 8px;
  padding: .85rem 2rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px;
}
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: .7; cursor: wait; }
.form-note { font-size: .95rem; color: var(--muted); margin: 0; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #A3322D; }
.contact-details { flex: 1 1 260px; padding-top: 3.4rem; font-size: 1.05rem; }
.contact-details p { margin-bottom: .6rem; }
.contact-details span { font-weight: 700; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #D5DDE2; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.site-footer a { color: #D5DDE2; }
.site-footer a:hover { color: var(--white); }

/* Floating phone */
.phone-fab {
  position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(31, 45, 58, .25);
}
.phone-fab:hover { background: var(--accent-dark); color: var(--white); }

/* Legal */
.legal h1 { font-size: 2.2rem; margin-bottom: 1.25rem; }
.legal h2 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal .updated { color: var(--muted); font-size: .95rem; }
.placeholder { background: #FFF3C4; padding: 0 .25rem; border-radius: 3px; }

@media (max-width: 900px) {
  .features, .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 1.05rem; }
  .section { padding: 3.25rem 0; }
  .hero { padding: 3.25rem 0 2.5rem; }
  .cards, .tracks, .features, .stations, .form-row { grid-template-columns: 1fr; }
  .intro-photo { width: 180px; height: 180px; flex-basis: 180px; }
  .about-photo { width: 100%; flex-basis: 100%; height: 340px; }
  .contact-details { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
