:root {
  --pitch: #16332a;
  --pitch-light: #1f4536;
  --chalk: #f6f4ec;
  --panel: #fffdf8;
  --amber: #f0a202;
  --ink: #161c18;
  --muted: #5c6b62;
  --line: #ddd7c6;
  --line-dark: rgba(246, 244, 236, 0.18);
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, .brand, .score-num, .btn, .fixture-tag, .result-date {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

a { color: var(--pitch); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pitch);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
}

.brand {
  color: var(--chalk);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; opacity: 0.85; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #d7e0d9;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}
.nav-links a:hover { color: var(--amber); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--chalk);
  display: block;
}

/* Hero */
.hero {
  background: var(--pitch);
  min-height: calc(100vh - var(--header-h, 64px));
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  opacity: 0;
  animation: heroIn 0.7s ease-out 0.1s forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-role {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--amber);
  margin: 0 0 0.5rem;
}

.hero-location {
  color: #b7c4bb;
  margin: 0 0 2rem;
  font-size: 1.1rem;
}

.hero-tagline {
  color: #e4e9e2;
  font-size: 1.3rem;
  margin: 0 0 2.5rem;
  max-width: 48ch;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
}

.hero-art {
  opacity: 0;
  animation: heroIn 0.7s ease-out 0.35s forwards;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  padding: 12px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 4px;
  filter: saturate(0.9) contrast(1.03);
}

.frame-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid var(--amber);
}
.frame-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.frame-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: transparent;
  border: 2px solid var(--chalk);
  border-radius: 2px;
  color: var(--chalk);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus-visible {
  text-decoration: none;
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--pitch);
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #d88f00;
  border-color: #d88f00;
  color: var(--pitch);
}

.btn-secondary, .btn-outline {
  background: transparent;
}

/* Scoreboard strip */
.scoreboard {
  background: var(--pitch-light);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.scoreboard-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1rem;
  border-left: 1px solid var(--line-dark);
}
.score:first-child { border-left: none; }

.score-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-label {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: #b7c4bb;
  margin-top: 0.5rem;
  max-width: 16ch;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.75rem 1.25rem;
}

.section.band { background: var(--panel); max-width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.band > * { max-width: calc(var(--max-width) - 2.5rem); margin-left: auto; margin-right: auto; }

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--pitch);
  margin: 0 0 1.75rem;
  letter-spacing: 0.01em;
}

.summary-text {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.summary-text:last-child { margin-bottom: 0; }

/* How I work */
.approach-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.5rem;
}

.approach-item {
  padding: 0 1.75rem;
  border-left: 1px solid var(--line);
}
.approach-item:first-child { border-left: none; padding-left: 0; }

.approach-index {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.approach-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pitch);
  margin: 0 0 0.5rem;
}

.approach-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Fixture list (featured work) */
.fixture-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.fixture {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fixture:hover, .fixture:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 51, 42, 0.08);
}

.fixture-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pitch);
  background: rgba(240, 162, 2, 0.14);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.fixture-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.fixture-highlight {
  color: var(--pitch);
  font-weight: 500;
  font-size: 1rem;
  border-left: 3px solid var(--amber);
  padding-left: 0.85rem;
  margin: 0 0 0.75rem;
}

.fixture-body p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Results list (full experience) */
.exp-group {
  padding-top: 2.75rem;
}
.exp-group:first-child {
  padding-top: 0;
}

.group-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pitch);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--amber);
  display: inline-block;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem 1.75rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.result:hover, .result:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22, 51, 42, 0.08);
}

.result-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pitch);
  background: rgba(240, 162, 2, 0.14);
  font-variant-numeric: tabular-nums;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 0.9rem;
}

.result-body h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.2rem;
}

.result-org {
  font-size: 0.92rem;
  color: var(--pitch);
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.result ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.result li { margin-bottom: 0.3rem; }
.result li:last-child { margin-bottom: 0; }

/* Skills */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  color: var(--pitch);
  margin-bottom: 1.75rem;
}
.cert-badge svg { width: 24px; height: 24px; color: var(--amber); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  border: 1px solid var(--line);
  color: var(--pitch);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.result-tags {
  margin-top: 0.9rem;
}
.result-tags .tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
}

/* Contact */
.contact-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-links .btn-secondary {
  border-color: var(--pitch);
  color: var(--pitch);
}
.contact-links .btn-secondary:hover, .contact-links .btn-secondary:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  background: transparent;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  color: var(--pitch);
  font-size: 0.92rem;
}
.contact-phone:hover { border-color: var(--pitch); text-decoration: none; background: rgba(22,51,42,0.04); }
.contact-phone svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }
.contact-phone strong { font-weight: 600; }

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

/* Focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 240px; margin: 1rem 0 0; }
  .hero h1 { font-size: 3rem; white-space: normal; }
  .hero-tagline { font-size: 1.1rem; }
  .approach-row { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .approach-item { border-left: none; padding-left: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .approach-item:first-child { border-top: none; padding-top: 0; }
  .scoreboard-inner { grid-template-columns: repeat(2, 1fr); }
  .score:nth-child(3) { border-left: none; }
  .fixture, .result { padding: 1.35rem 1.25rem; }
  .section-title { font-size: 1.75rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pitch);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 360px; }

  .nav-links li { border-top: 1px solid var(--line-dark); }

  .nav-links a {
    display: block;
    padding: 0.9rem 1.25rem;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-inner { padding: 3rem 1.25rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-art { animation: none !important; opacity: 1 !important; transform: none !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .fixture, .result { transition: none !important; }
}
