/* ─── Design tokens ─── */
:root {
  --bg:           #07070f;
  --surface:      #0e0e1c;
  --text:         #ece7df;
  --text-muted:   #60607a;
  --accent:       #c5a05a;    /* warm gold — distant headlights */
  --accent-cool:  #3d6fa0;    /* northern sky blue */
  --border:       rgba(255, 255, 255, 0.07);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --gutter:       clamp(1.5rem, 5vw, 4.5rem);
  --section-gap:  clamp(6rem, 12vw, 11rem);
  --max-w:        1160px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar              { width: 3px; }
::-webkit-scrollbar-track        { background: var(--bg); }
::-webkit-scrollbar-thumb        { background: var(--accent); border-radius: 2px; }

/* ─── Navigation ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.75rem var(--gutter);
  /* frosted blur added via JS once user scrolls */
  transition: background 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  color: var(--text);
  opacity: 0.9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ─── Section base ─── */
.section { position: relative; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}

.section-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.8;
}

/* ─── Hero ─── */
.section-hero {
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg);
}

/* Road centerline — a faint vertical thread running down the page */
.section-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--border) 20%,
    var(--border) 80%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  pointer-events: none;
}

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

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;

  animation: heroReveal 0.65s var(--ease-out) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8.5vw, 7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;

  animation: heroReveal 0.85s var(--ease-out) 0.25s both;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;

  animation: heroReveal 0.6s var(--ease-out) 0.7s both;
}

.scroll-hint__label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-hint__line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(1);   opacity: 0.5; }
  50%  { transform: scaleY(0.4); opacity: 1; }
  100% { transform: scaleY(1);   opacity: 0.5; }
}

/* ─── About ─── */
.section-about {
  border-top: 1px solid var(--border);
}

/* Road dash divider between sections */
.section-about::before,
.section-clients::before,
.section-recognition::before,
.section-work::before,
.section-contact::before {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1px;
  width: 2px;
  height: 4rem;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0px,
    var(--accent) 8px,
    transparent 8px,
    transparent 16px
  );
}

.about-body {
  max-width: 58ch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-body p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.85;
}

.about-location {
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin-top: 0.5rem;
}

/* ─── Clients ─── */
.section-clients {
  border-top: 1px solid var(--border);
}

.clients-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.client-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.client-logo:hover { opacity: 1; }

/* ─── Recognition ─── */
.section-recognition {
  border-top: 1px solid var(--border);
}

.recognition-text {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 62ch;
  margin-top: 0.5rem;
}

.awards-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.award-badge {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.award-badge--invert {
  filter: brightness(0) invert(1);
}

/* ─── Work ─── */
.section-work {
  border-top: 1px solid var(--border);
}

/* Featured project */
.project--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

/* Second and subsequent featured projects get a top border as a divider */
.project--featured-alt {
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.project-image-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;   /* clips the img to the container + border-radius */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-placeholder span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.project-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.project-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.project-copy p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.85;
}

/* Stub cards */
.project-stubs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.project--stub {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-right: 1px solid var(--border);
}

.project--stub:last-child {
  border-right: none;
}

.project--stub .project-title {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.project-stub-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .project--featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .project-stubs {
    grid-template-columns: 1fr;
  }
  .project--stub {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .project--stub:last-child {
    border-bottom: none;
  }
}

/* ─── CGI & Renders ─── */
.section-cgi {
  border-top: 1px solid var(--border);
}

.cgi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--border); /* gap colour via background bleed */
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.cgi-cell {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--surface);
  margin: 0;
}

.cgi-cell picture,
.cgi-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--ease-out);
}

.cgi-cell:hover img {
  transform: scale(1.04);
}

.cgi-cell figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .cgi-grid {
    grid-template-columns: 1fr;
  }
  .cgi-cell {
    height: 280px;
  }
}

/* ─── Contact ─── */
.section-contact {
  border-top: 1px solid var(--border);
}

.contact-portrait {
  width: 300px;
  height: 300px;
  margin-bottom: 2.5rem;
  border-radius: 50%;     /* circular crop — avatar feel */
  overflow: hidden;
  background: var(--surface);
}

#contact-canvas {
  width: 300px;
  height: 300px;
  display: block;
}

.contact-link {
  display: inline-block;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  margin-top: 0.5rem;
  transition: color 0.2s, opacity 0.2s;
}

.contact-link:hover { opacity: 0.7; }

/* ─── Footer ─── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  max-width: 100%;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .section-hero::after { display: none; }
  .contact-portrait { width: 220px; height: 220px; }
  #contact-canvas   { width: 220px; height: 220px; }

  .site-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
