/* ===========================
   Custom Properties
   =========================== */
:root {
  --color-bg:        #0D0D0D;
  --color-surface:   #161616;
  --color-surface-2: #1A1A1A;
  --color-text:      #ffffff;
  --color-text-muted:#8A8580;
  --color-accent:    #D4873A;
  --color-accent-dim:#C8A96E;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  --nav-height:        64px;
  --section-padding:   clamp(64px, 10vw, 120px);
  --container-max:     1200px;
  --container-padding: clamp(20px, 5vw, 60px);
}

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

/* ===========================
   Typography
   =========================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}
h1 { font-size: clamp(52px, 8vw, 96px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }

/* ===========================
   Layout Utilities
   =========================== */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 56px;
}

/* ===========================
   Scroll Fade-In
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Navigation
   =========================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--container-padding);
  z-index: 100;
  transition: background 0.4s ease;
}
#nav.scrolled {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-surface-2);
}

.nav-logo img {
  height: 46px;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-accent); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  color: var(--color-text);
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--color-accent); }

.nav-overlay-close {
  position: absolute;
  top: 20px;
  right: var(--container-padding);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 24px;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.nav-overlay-close:hover { color: var(--color-text); }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ===========================
   Hero — Film Strip
   =========================== */
#hero {
  position: relative;
  height: 90vh;
  height: 90svh;
  overflow: hidden;
}

/* 4-column panel grid fills full viewport */
.hero-panels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-panel-bg.loaded   { opacity: 1; }
.hero-panel:hover .hero-panel-bg { transform: scale(1.04); }

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.45);
  transition: background 0.4s ease;
  z-index: 1;
}
.hero-panel:hover::after { background: rgba(13, 13, 13, 0.15); }

/* 1px amber separator between panels */
.hero-panel-sep {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 1px;
  background: rgba(212, 135, 58, 0.25);
  z-index: 2;
}

/* Placeholder card for panels without an image yet */
.hero-panel-placeholder {
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  border: 1px dashed rgba(212, 135, 58, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.hero-panel-placeholder-icon {
  width: 32px;
  height: 32px;
  color: rgba(212, 135, 58, 0.4);
}
.hero-panel-placeholder-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.7;
}
.hero-panel-placeholder-desc {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.5;
  opacity: 0.6;
  max-width: 140px;
}

/* Full-width gradient lifting content from panels */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.97) 0%,
    rgba(13, 13, 13, 0.35) 40%,
    rgba(13, 13, 13, 0) 70%
  );
  z-index: 2;
  pointer-events: none;
}

/* Panel discipline labels at the top of each column */
.hero-panel-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 3;
  pointer-events: none;
}
.hero-panel-label-item {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.3);
  padding-top: calc(var(--nav-height) + 24px);
  text-align: center;
}

/* Main content block centered at bottom */
.hero-content {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-overline {
  font-family: var(--font-mono);
  font-size: 25px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-discipline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 26px);
  color: var(--color-accent);
  height: 1.4em;
  position: relative;
  min-width: 320px;
}
.hero-discipline-word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-discipline-word.fading {
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

.hero-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.hero-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Vertical scroll indicator at bottom-right */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 4vw, 60px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}
.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .hero-panels,
  .hero-panel-labels {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .hero-content { bottom: 60px; }
  .hero-discipline { min-width: 240px; }
}

/* ===========================
   Image Loading States
   =========================== */

/* Shimmer skeleton while image fetches */
.img-wrap {
  position: relative;
  background: var(--color-surface-2);
  overflow: hidden;
}

.img-wrap.img-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: imgShimmer 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes imgShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Hide image until loaded, reveal with fade */
.img-wrap img {
  transition: opacity 0.4s ease;
}
.img-wrap.img-loading img { opacity: 0; }
.img-wrap.img-loaded  img { opacity: 1; }

/* Error state — camera icon placeholder */
.img-wrap.img-error img  { display: none; }
.img-wrap.img-error::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%238A8580' stroke-width='1'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ===========================
   About
   =========================== */
#about {
  padding-block: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  color: var(--color-text);
  border-left: 2px solid var(--color-accent);
  padding-left: 28px;
}

.about-body p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===========================
   Courses
   =========================== */
#courses {
  padding-block: var(--section-padding);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.course-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.course-card:hover { border-color: var(--color-accent); }

.course-card figure {
  position: absolute;
  inset: 0;
  margin: 0;
}
.course-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.course-card:hover figure img {
  transform: scale(1.05);
  filter: brightness(0.25);
}

.card-base {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 1;
  background: linear-gradient(transparent, rgba(13, 13, 13, 0.8));
}
.card-base h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.card-base .card-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.card-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: linear-gradient(transparent 15%, rgba(13, 13, 13, 0.96) 60%);
}
.course-card:hover .card-overlay { opacity: 1; }

.card-overlay h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card-overlay p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@media (max-width: 1023px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .courses-grid { grid-template-columns: 1fr; }
}

/* ===========================
   Features
   =========================== */
#features {
  padding-block: var(--section-padding);
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-top: 4px;
}
.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.feature-item p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ===========================
   Gallery
   =========================== */
#gallery {
  padding-block: var(--section-padding);
  overflow: hidden;
}

#gallery .container {
  margin-bottom: 40px;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-inline: var(--container-padding);
  padding-bottom: 12px;
  width: 100%;
}
.gallery-strip:active { cursor: grabbing; }

.gallery-strip::-webkit-scrollbar { height: 2px; }
.gallery-strip::-webkit-scrollbar-track { background: var(--color-surface); }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--color-accent); }

.gallery-strip figure {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 400px;
  height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-strip figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.gallery-strip figure:hover img { transform: scale(1.03); }

@media (max-width: 767px) {
  .gallery-strip figure {
    width: 280px;
    height: 200px;
  }
}

/* ===========================
   Ads Banner
   =========================== */
#ads-banner {
  border-top: 1px solid var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
}
.ads-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
}
.ads-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--color-text);
}
.ads-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}
.ads-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}
@media (max-width: 767px) {
  .ads-inner { flex-direction: column; align-items: flex-start; }
}

/* ===========================
   Enroll / Registration Form
   =========================== */
#enroll {
  padding-block: var(--section-padding);
  background: var(--color-surface);
}

.enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.enroll-intro .section-label { margin-bottom: 20px; }
.enroll-headline { margin-bottom: 20px; }
.enroll-subline {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Form shell */
.enroll-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-optional {
  font-size: 9px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.55;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-surface-2);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.form-group select {
  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='%238A8580' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option { background: var(--color-surface); }

.form-group textarea { resize: vertical; min-height: 100px; }

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

.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error { border-color: #c0392b; }

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

.form-error {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #e74c3c;
  min-height: 14px;
  letter-spacing: 0.04em;
}

/* Captcha row */
.form-captcha {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.captcha-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

#captcha-canvas {
  display: block;
  border: 1px solid var(--color-surface-2);
}

.captcha-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  background: none;
  border: 1px solid var(--color-surface-2);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.captcha-refresh:hover { border-color: var(--color-accent); color: var(--color-accent); }
.captcha-refresh svg { width: 13px; height: 13px; }

.form-captcha .form-group { flex: 1; }

/* Honeypot */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Submit button */
.enroll-submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 44px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.enroll-submit-btn:hover:not(:disabled) { opacity: 0.85; }
.enroll-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-spinner {
  display: none;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(13, 13, 13, 0.3);
  border-top-color: var(--color-bg);
  border-radius: 50%;
  animation: formSpin 0.7s linear infinite;
}
.enroll-submit-btn.loading .btn-spinner { display: block; }
.enroll-submit-btn.loading .btn-label { opacity: 0.7; }

@keyframes formSpin { to { transform: rotate(360deg); } }

/* Feedback */
.form-feedback {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  display: none;
}
.form-feedback.success {
  display: block;
  border: 1px solid rgba(39, 174, 96, 0.35);
  color: #27ae60;
  background: rgba(39, 174, 96, 0.05);
}
.form-feedback.error {
  display: block;
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
}

@media (max-width: 1023px) {
  .enroll-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .form-row { grid-template-columns: 1fr; }
  .form-captcha { flex-direction: column; align-items: stretch; }
  #captcha-canvas { width: 100%; }
  .enroll-submit-btn { align-self: stretch; justify-content: center; }
}

/* ===========================
   Footer
   =========================== */
footer {
  padding-block: 64px 40px;
  border-top: 1px solid var(--color-surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 32px;
  mix-blend-mode: screen;
  margin-bottom: 12px;
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-text); }

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact address a,
.footer-contact address span {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer-contact address a:hover { color: var(--color-text); }

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  color: var(--color-text-muted);
  transition: color 0.2s;
  line-height: 0;
}
.footer-social a:hover { color: var(--color-accent); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===========================
   Responsive Adjustments
   =========================== */

/* Prevent horizontal overflow */
body { overflow-x: hidden; }

/* Ensure gallery strip doesn't create page-level horizontal scroll */
#gallery { overflow: hidden; }
.gallery-strip { width: 100%; }

@media (max-width: 767px) {
  .section-title {
    margin-bottom: 36px;
  }
  .hero-content h1 {
    font-size: clamp(40px, 11vw, 64px);
  }
  .hero-cta {
    margin-top: 32px;
  }
  #features {
    padding-block: 64px;
  }
  .footer-grid {
    gap: 32px;
  }
}
