/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --bg:          #0A1628;
  --surface:     #0F1E35;
  --surface-up:  #152640;
  --text:        #F0EDE8;
  --text-muted:  #8A9BB0;
  --accent:      #00C9A7;
  --warm:        #F4A261;
  --border:      #1B4D6E;

  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1200px;
  --gap:   clamp(2rem, 5vw, 4rem);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── Base ───────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 77, 110, 0.3);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ─── Page wrapper ───────────────────────────────────────────────────────── */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ─── Hero (Landing) ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,0.2) 0%,
    rgba(10,22,40,0.5) 60%,
    rgba(10,22,40,0.95) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* ─── Page Header ────────────────────────────────────────────────────────── */
.page-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.page-header .label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.page-header .subtitle {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* ─── Inline body links (studio, what-we-do) ────────────────────────────── */
.studio-text p a,
.service-text p a {
  color: var(--text);
  border-bottom: 1px solid rgba(240,237,232,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.studio-text p a:hover,
.service-text p a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Studio Page ────────────────────────────────────────────────────────── */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.studio-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.studio-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}

.studio-portrait .portrait-caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.studio-portrait .portrait-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.studio-portrait .portrait-link:hover { border-color: var(--accent); }

.studio-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.studio-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}
.studio-text p:first-of-type {
  color: var(--text);
  font-size: 1.05rem;
}

.services-list {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.services-list h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.services-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
}

.services-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.services-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ─── Stats Row ──────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0 2.5rem;
}

.stat-item {}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ─── Pull Quote ─────────────────────────────────────────────────────────── */
.pull-quote {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 1.75rem 0 1.75rem 1.5rem;
  border-left: 2px solid var(--border);
  margin: 2rem 0;
  font-style: italic;
}

/* ─── Section Label ──────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-top: 2.5rem;
}

/* ─── Institution Track ──────────────────────────────────────────────────── */
.institution-track {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(27, 77, 110, 0.4);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  line-height: 2;
}

/* ─── What We Do ─────────────────────────────────────────────────────────── */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(27, 77, 110, 0.3);
}
.service:last-child { border-bottom: none; }

.service.reverse { direction: rtl; }
.service.reverse > * { direction: ltr; }

.service-image {
  overflow: hidden;
}

.service-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service:hover .service-image img { transform: scale(1.03); }

.service-text .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.service-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ─── Past Work ──────────────────────────────────────────────────────────── */
.work-sections {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.work-section {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.work-section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.work-section-header h2 {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-section-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.work-entry {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(27, 77, 110, 0.2);
  align-items: start;
}
.work-entry:last-child { border-bottom: none; }

.work-entry-image {
  overflow: hidden;
  flex-shrink: 0;
}

.work-entry-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.work-entry:hover .work-entry-image img {
  transform: scale(1.03);
}

.work-entry-info {}

.work-entry-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.work-entry-title {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.work-entry-title a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.work-entry-title a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.work-entry-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  opacity: 0.7;
}

.work-entry-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .work-entry {
    grid-template-columns: 1fr;
  }
}

/* ─── Contact ────────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
}

.contact-image {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  overflow: hidden;
  border-radius: 2px;
}

.contact-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}

.contact-wrap {
  padding: 0;
}

.contact-intro {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.contact-legal {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  letter-spacing: 0.02em;
}
.contact-email:hover { border-color: var(--accent); }

/* ─── Contact Form ───────────────────────────────────────────────────────── */
.contact-form {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-field select option {
  background: var(--surface);
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-submit {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}

.form-submit:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Mood Divider ───────────────────────────────────────────────────────── */
.mood-divider {
  width: 100%;
  height: 40vh;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}
.mood-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

/* ─── Scroll Homepage ────────────────────────────────────────────────────── */
.scroll-page body,
body.scroll-page {
  overflow-x: hidden;
}

/* Hero */
.scroll-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-hero .scroll-bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.scroll-hero-title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
  animation: scrollFadeIn 1.2s ease forwards;
  animation-delay: 1.4s;
}

.scroll-hero-title h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(10,22,40,0.7);
}

.scroll-hero-title p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(240,237,232,0.92);
  letter-spacing: 0.03em;
  max-width: 520px;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(10,22,40,0.8), 0 0 40px rgba(10,22,40,0.6);
}

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

/* Project sections */
.scroll-project {
  display: block;
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.scroll-project .scroll-bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}

.scroll-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,22,40,0.85) 0%,
    rgba(10,22,40,0.3) 50%,
    rgba(10,22,40,0.05) 100%
  );
  z-index: 1;
  transition: background 0.3s ease;
}

.scroll-project:hover .scroll-overlay {
  background: linear-gradient(
    to top,
    rgba(10,22,40,0.75) 0%,
    rgba(10,22,40,0.2) 50%,
    rgba(10,22,40,0.05) 100%
  );
}

.scroll-project:hover .scroll-bg {
  transform: scale(1.02) !important;
  transition: transform 0.6s ease;
}

.scroll-project-info {
  position: absolute;
  bottom: clamp(2rem, 5vh, 4rem);
  left: clamp(1.5rem, 4vw, 3rem);
  z-index: 2;
}

.scroll-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(0,201,167,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.scroll-project-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.scroll-project-info p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(240,237,232,0.6);
  letter-spacing: 0.03em;
}

/* Mobile — disable parallax */
@media (max-width: 768px) {
  .scroll-hero .scroll-bg,
  .scroll-project .scroll-bg {
    inset: 0;
    transform: none !important;
  }
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-portrait { position: static; max-width: 420px; }
  .studio-portrait img { aspect-ratio: 4/3; }

  .service,
  .service.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service.reverse .service-image { order: -1; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-image {
    position: static;
  }
  .contact-image img {
    height: 300px;
  }
}

/* Nav collapses to hamburger at 768px */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    padding: 2rem clamp(1.5rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .services-list ul { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 1.25rem; }
  footer { flex-direction: column; text-align: center; }
}
