/* ===== Jason Aspinall — Site Tokens ===== */
:root {
  /* Typography */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Palette */
  --bg-primary: #FAFAF9;
  --bg-secondary: #F3F2F0;
  --bg-dark: #1A1A18;
  --text-primary: #1A1A18;
  --text-secondary: #6B6B66;
  --text-light: #9C9C96;
  --border: #E4E3E0;
  --border-light: #EEEEEB;
  --accent: #993C1D;
  --accent-light: #F5EBE7;

  /* Discipline colours */
  --photo-bg: #4A1B0C;
  --booth-bg: #04342C;
  --booth-accent: #1D9E75;
  --elec-bg: #26215C;
  --elec-accent: #534AB7;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Navigation ===== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.site-nav__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-nav__links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-secondary);
  list-style: none;
}
.site-nav__links a { transition: color 0.2s ease; }
.site-nav__links a:hover { color: var(--text-primary); }
.site-nav__links a[aria-current="page"] { color: var(--text-primary); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; padding: 4px; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text-primary); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 0.5px solid var(--border);
    padding: 16px 28px 20px;
    gap: 14px;
  }
  .site-nav__links.open { display: flex; }
}

/* ===== Eyebrow label ===== */
.eyebrow {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--accent { color: var(--accent); font-weight: 500; }
.eyebrow--elec { color: var(--elec-accent); font-weight: 500; }

/* ===== Typography ===== */
h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
}
h2 {
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.015em;
  font-weight: 500;
}
h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  transition: all 0.2s ease;
}
.btn:hover { border-color: var(--text-secondary); }
.btn--solid {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.btn--solid:hover { opacity: 0.88; }

/* ===== Section wrappers ===== */
.section { padding: var(--space-xl) 28px; }
.section--alt { background: var(--bg-secondary); }
.section--bordered { border-top: 0.5px solid var(--border); }
.section--narrow { max-width: 760px; }

/* ===== Image placeholder ===== */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Named image slots =====
   Drop a real file at assets/images/<data-file> and it replaces the slot.
   Until then, the slot shows the expected filename on a hatched fill.
   The <img> sits above the label; on 404 its onerror hides it, revealing it. */
.img-slot { position: relative; overflow: hidden; background: #1c1a14; }
.img-slot > img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.img-slot::after {
  content: "▲  " attr(data-file);
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  background: repeating-linear-gradient(45deg, #232019, #232019 11px, #1b1813 11px, #1b1813 22px);
}

/* ===== Homepage cards ===== */
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 0.5px solid var(--border);
}
.home-card {
  padding: 28px;
  border-right: 0.5px solid var(--border);
  transition: background 0.25s ease;
}
.home-card:last-child { border-right: none; }
.home-card:hover { background: var(--bg-secondary); }
.home-card__image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.home-card__number {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.home-card__link {
  font-size: 12px;
  border-top: 0.5px solid var(--border);
  padding-top: 12px;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .home-cards { grid-template-columns: 1fr; }
  .home-card { border-right: none; border-bottom: 0.5px solid var(--border); }
  .home-card:last-child { border-bottom: none; }
}

/* ===== Split hero ===== */
.split-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-bottom: 0.5px solid var(--border);
}
.split-hero__text { padding: var(--space-xl) 28px; }
.split-hero__image { min-height: 340px; }
@media (max-width: 720px) {
  .split-hero { grid-template-columns: 1fr; }
  .split-hero__image { min-height: 240px; }
}

/* ===== Feature strip ===== */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-strip__item {
  padding: 20px;
  border-right: 0.5px solid var(--border);
}
.feature-strip__item:last-child { border-right: none; }
.feature-strip__num {
  font-size: 11px;
  color: var(--elec-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feature-strip__item { border-bottom: 0.5px solid var(--border); }
}

/* ===== Pricing cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.pricing-card--featured {
  border: 2px solid var(--booth-accent);
  position: relative;
}
.pricing-card__badge {
  position: absolute;
  top: -10px;
  left: 22px;
  background: #E1F5EE;
  color: var(--booth-bg);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-weight: 500;
}
.pricing-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.pricing-table td { padding: 8px 0; }
.pricing-table td:first-child { color: var(--text-secondary); }
.pricing-table td:last-child { text-align: right; font-weight: 500; }
.pricing-table tr:not(:last-child) td { border-bottom: 0.5px solid var(--border-light); }
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ===== Extras table ===== */
.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 0.5px solid var(--border);
}
.extras-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
}
.extras-item:nth-child(even) {
  padding-left: 24px;
  border-left: 0.5px solid var(--border);
}
.extras-item:nth-child(odd) { padding-right: 24px; }
.extras-item__price {
  font-weight: 500;
  white-space: nowrap;
  padding-left: 16px;
}
@media (max-width: 720px) {
  .extras-grid { grid-template-columns: 1fr; }
  .extras-item:nth-child(even) { padding-left: 0; border-left: none; }
  .extras-item:nth-child(odd) { padding-right: 0; }
}

/* ===== Spec table ===== */
.spec-table { border-top: 0.5px solid var(--border); }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 13px;
}
.spec-row__label { color: var(--text-secondary); }
.spec-row__value { font-family: var(--font-mono); font-size: 12px; }

/* ===== Project tiles ===== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.project-tile {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.project-tile:hover { border-color: var(--text-light); }
.project-tile__image { aspect-ratio: 16/9; }
.project-tile__body { padding: 18px 20px; }
.project-tile__tag {
  font-size: 11px;
  color: var(--elec-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ===== Engineering note ===== */
.eng-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: #EEEDFE;
  border-left: 3px solid var(--elec-accent);
}
.eng-note__label {
  font-size: 11px;
  color: #3C3489;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 500;
}
.eng-note__text { font-size: 13px; color: #26215C; line-height: 1.6; }

/* ===== About principles ===== */
.principle {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 0.5px solid var(--border);
  align-items: start;
}
.principle:last-child { border-bottom: 0.5px solid var(--border); }
.principle__num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
}
.principle__title {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 400;
}
@media (max-width: 720px) {
  .principle { grid-template-columns: 48px 1fr; gap: 16px; }
  .principle__num { font-size: 26px; }
}

/* ===== What I bring grid ===== */
.qualities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quality {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
}
.quality:nth-child(even) { padding-left: 24px; border-left: 0.5px solid var(--border); }
.quality:nth-child(odd) { padding-right: 24px; }
.quality:nth-last-child(-n+2) { border-bottom: none; }
.quality__letter {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  padding-top: 2px;
}
@media (max-width: 720px) {
  .qualities-grid { grid-template-columns: 1fr; }
  .quality:nth-child(even) { padding-left: 0; border-left: none; }
  .quality:nth-child(odd) { padding-right: 0; }
  .quality { border-bottom: 0.5px solid var(--border) !important; }
  .quality:last-child { border-bottom: none !important; }
}

/* ===== Pull-quote ===== */
.pullquote {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.5vw, 20px);
  line-height: 1.55;
  color: var(--text-primary);
  max-width: 680px;
  font-weight: 400;
}

/* ===== Contact form ===== */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--bg-primary);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-secondary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== CTA strip ===== */
.cta-strip {
  text-align: center;
  padding: var(--space-xl) 28px;
  background: var(--bg-secondary);
}

/* ===== Footer ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.site-footer__links { display: flex; gap: 14px; }
.site-footer__links a { transition: color 0.2s ease; }
.site-footer__links a:hover { color: var(--text-primary); }
@media (max-width: 720px) {
  .site-footer { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== Utility ===== */
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.max-w-body { max-width: 760px; }
.max-w-narrow { max-width: 520px; }
.gap-sm { gap: 10px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.lh-relaxed { line-height: 1.7; }

/* ===== Filter pills (photography) ===== */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-top: 0.5px solid var(--border);
}
.filter-pill {
  font-size: 12px;
  padding: 6px 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: none;
  transition: all 0.2s ease;
}
.filter-pill:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.filter-pill--active { border-color: var(--text-primary); color: var(--text-primary); }

/* ===== Info bar ===== */
.info-bar {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
