:root {
  --bg: #030303;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4f4f4;
  --muted: #b8b8b8;
  --purple: #a48cff;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 93, 255, 0.12), transparent 28rem),
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.86)),
    url('../images/HOME-(0-00-00-00)-background.jpg') center top / 1000px auto repeat-y,
    var(--bg);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  letter-spacing: .02em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0,0,0,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img {
  width: 166px;
  height: auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  color: #d6d6d6;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 11px;
  border-right: 1px solid rgba(255,255,255,.34);
  transition: color .18s ease, background .18s ease;
}
.site-nav a:last-child { border-right: 0; }
.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 15px;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.intro {
  max-width: 780px;
  padding: 52px 0 30px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.intro h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}
.intro p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  letter-spacing: 0;
}

.section-heading {
  margin: 38px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 34px 30px;
}
.featured-grid { grid-template-columns: repeat(3, 1fr); }
.compact-grid { grid-template-columns: repeat(4, 1fr); gap: 30px 28px; }

.card {
  text-align: center;
  text-transform: uppercase;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 16px 36px rgba(0,0,0,.42);
  filter: saturate(.92) contrast(1.04);
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.card:hover img {
  transform: translateY(-3px);
  filter: saturate(1.05) contrast(1.08);
  border-color: rgba(255,255,255,.72);
}
.card h3 {
  margin: 11px 0 0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: .08em;
}
.card p {
  margin: 4px 0 0;
  color: #d8d8ff;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .12em;
}
.card.small h3 { font-size: 12px; }
.card.small p { font-size: 9px; }

.site-footer {
  margin-top: 58px;
  padding: 36px 0 44px;
  color: #9d9d9d;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 960px) {
  .header-inner { min-height: 78px; }
  .brand img { width: 140px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 16px 18px;
    background: rgba(0,0,0,.94);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    white-space: normal;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 14px 0;
  }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .intro { padding: 34px 0 12px; }
  .section-heading {
    display: block;
    margin-top: 30px;
  }
  .section-heading p { margin-top: 8px; }
  .featured-grid, .compact-grid { grid-template-columns: 1fr; gap: 28px; }
  .card h3 { font-size: 14px; }
  .card.small h3 { font-size: 14px; }
  .card p, .card.small p { font-size: 10px; }
}


/* Modernised inner pages */
.site-nav a.active { color: var(--white); }
.compact-intro { padding-bottom: 18px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 30px;
  margin-top: 28px;
}
.about-panel {
  max-width: 820px;
  margin: 24px auto 0;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  line-height: 1.75;
  color: #eeeeee;
}
.about-panel p { margin: 0 0 18px; }
.about-panel .contact-line {
  margin: 28px 0 0;
  text-align: center;
  font-size: clamp(20px, 4vw, 32px);
  letter-spacing: .04em;
}
.project-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 0 10px;
  text-align: center;
}
.project-page h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: .08em;
  font-weight: 500;
  text-transform: uppercase;
}
.project-subtitle {
  margin: 12px 0 28px;
  color: #d8d8ff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  overflow: hidden;
  margin: 30px auto;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-missing {
  margin: 30px auto;
  padding: 36px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.project-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.project-actions a {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.project-actions a:hover { background: rgba(255,255,255,.10); }
.project-thumb {
  max-width: 360px;
  margin: 38px auto 0;
  opacity: .75;
  border: 1px solid rgba(255,255,255,.18);
}
@media (max-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-page { padding-top: 34px; }
  .project-actions { display: grid; grid-template-columns: 1fr; }
}
