/* ============================================
   KINNECTT — Studio Website
   Shared Stylesheet (v2)
   ============================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;1,300;1,400&family=Cormorant+Garamond:wght@300;400&family=Inter:wght@300;400;500;600&family=Saira+Stencil+One&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --ink-faint: #b8b8b8;
  --line: #e8e8e8;
  --line-dark: #1f1f1f;
  --paper: #fafafa;

  --font-display: 'Cormorant', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Logo image stack (real PNG, color-swap via container class) ---------- */
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* For headers and other places where the logo needs to swap color based on context */
.logo-stack {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.logo-stack .logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s var(--ease-soft);
}
.logo-stack .logo-img.is-white { opacity: 0; }

/* When parent is in dark mode, show the white version */
.site-header.dark-mode .logo-stack .logo-img.is-black { opacity: 0; }
.site-header.dark-mode .logo-stack .logo-img.is-white { opacity: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem var(--gutter);
  background: transparent;
  transition: background-color 0.4s var(--ease-soft),
              border-color 0.4s var(--ease-soft),
              backdrop-filter 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.site-header.dark-mode { background: transparent; }
.site-header.dark-mode.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--line-dark);
}

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

/* Center-positioned emblem in the header bar */
.nav-emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.7s var(--ease-out);
  z-index: 1;
}

.nav-emblem:hover {
  transform: translate(-50%, -50%) rotate(360deg);
}

.nav-emblem .logo-stack {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  /* Hide center emblem on small screens — would crowd the nav */
  .nav-emblem { display: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s var(--ease-soft);
}

/* Brand wordmark — Kinnectt letterforms as small images.
   Each letter is rendered as TWO stacked imgs (black + white), and the
   header dark-mode class controls which one is visible. This is the same
   pattern as the logo emblem and is rock-solid across browsers. */
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 14px;
}

.brand-wordmark .letter {
  display: block;
  position: relative;
  height: 100%;
}

.brand-wordmark .letter img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: auto;
  display: block;
  transition: opacity 0.3s var(--ease-soft);
  pointer-events: none;
  user-select: none;
}

.brand-wordmark .letter img.is-white { opacity: 0; }

/* Letter widths (set on the parent .letter span so flex knows the layout
   even before images load). Ratios from cropped letters:
   K=85x79, I=22x80, N=85x80, E=78x78, C=82x76, T=71x82.
   With height = 14px, widths are: K=15, I=4, N=15, E=14, C=15, T=12 (rounded). */
.brand-wordmark .letter[data-l="K"] { width: 15px; }
.brand-wordmark .letter[data-l="I"] { width: 4px; }
.brand-wordmark .letter[data-l="N"] { width: 15px; }
.brand-wordmark .letter[data-l="E"] { width: 14px; }
.brand-wordmark .letter[data-l="C"] { width: 15px; }
.brand-wordmark .letter[data-l="T"] { width: 12px; }

/* When the header is in dark mode, swap from black letters to white */
.site-header.dark-mode .brand-wordmark .letter img.is-black { opacity: 0; }
.site-header.dark-mode .brand-wordmark .letter img.is-white { opacity: 1; }

/* The em sizing above keys off font-size on the wordmark element */
.brand-wordmark { font-size: 14px; }

/* Footer wordmark — always white because the footer is dark.
   We just default to white versions visible. */
.footer-wordmark .letter img.is-black { opacity: 0; }
.footer-wordmark .letter img.is-white { opacity: 1; }

.site-header.dark-mode .brand,
.site-header.dark-mode .nav-links a { color: #fff; }

.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.brand:hover .brand-logo { transform: rotate(360deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease-soft);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.45) contrast(1.05);
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 1100px;
  width: 100%;
}

/* Hero wordmark — uses the actual Kinnectt brand letterforms as PNG images.
   The hero is always on a dark background so we always use the white version. */
.hero-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  height: clamp(2.5rem, 8vw, 5.5rem);
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 0.3s forwards;
}

.hero-wordmark .letter {
  display: block;
  height: 100%;
  width: auto;
}

@media (max-width: 480px) {
  .hero-wordmark {
    height: clamp(1.75rem, 9vw, 3rem);
    gap: 0.14em;
  }
}

.hero-tagline {
  margin: 1.75rem 0 0;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 0.7s forwards;
}

/* "Explore Projects" — fades to white background, black text, smoothly */
.hero-cta {
  margin-top: 3.5rem;
  display: inline-block;
  padding: 1.1rem 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.55s var(--ease-soft),
              color 0.55s var(--ease-soft),
              border-color 0.55s var(--ease-soft),
              opacity 0.55s var(--ease-soft);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-out) 1.1s forwards;
  cursor: pointer;
}

.hero-cta:hover,
.hero-cta:focus {
  background-color: rgba(255, 255, 255, 1);
  color: var(--ink);
  border-color: #ffffff;
}

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

@keyframes fadeIn { to { opacity: 0.7; } }

/* ---------- Sections (general) ---------- */
.section { padding: clamp(5rem, 12vw, 9rem) var(--gutter); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.display-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.display-heading em { font-style: italic; font-weight: 300; }

/* ---------- Featured Section (Home) ---------- */
.featured { padding: clamp(5rem, 12vw, 9rem) var(--gutter); }

.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

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

.featured-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.featured-card .card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper);
}

.featured-card .card-image img,
.featured-card .card-image .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.featured-card:hover .card-image img,
.featured-card:hover .card-image .placeholder {
  transform: scale(1.04);
}

/* Learn More — fades in only on hover, centered over the image */
.featured-card .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
  pointer-events: none;
}

.featured-card:hover .card-overlay,
.featured-card:focus-within .card-overlay {
  opacity: 1;
  pointer-events: auto;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transform: translateY(8px);
  transition: transform 0.55s var(--ease-out) 0.05s,
              background-color 0.3s var(--ease-soft),
              color 0.3s var(--ease-soft);
}

.featured-card:hover .learn-more,
.featured-card:focus-within .learn-more {
  transform: translateY(0);
}

.learn-more:hover {
  background: var(--ink);
  color: #fff;
}

.learn-more svg { width: 12px; height: 12px; stroke: currentColor; }

.card-meta { padding: 1.5rem 0 0; }

.card-tags {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.card-tagline { color: var(--ink-soft); font-size: 0.95rem; }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  transition: gap 0.4s var(--ease-out);
}

.view-all:hover { gap: 1.1rem; }
.view-all svg { width: 14px; height: 14px; stroke: currentColor; }

/* ---------- Brothers Block (Home) ---------- */
.brothers-block {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  text-align: center;
}

.brothers-emblem {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 2.5rem;
  cursor: pointer;
  transition: transform 0.7s var(--ease-out);
}

.brothers-emblem:hover { transform: rotate(360deg); }

.brothers-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.brothers-text {
  max-width: 580px;
  margin: 0 auto 3rem;
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}

/* "Our Origin Story" — smooth fade like Explore Projects */
.btn-ghost-light {
  display: inline-block;
  padding: 1.05rem 2.5rem;
  background-color: rgba(255,255,255,0);
  color: #fff;
  border: 1px solid #fff;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: background-color 0.55s var(--ease-soft),
              color 0.55s var(--ease-soft),
              border-color 0.55s var(--ease-soft);
  cursor: pointer;
}

.btn-ghost-light:hover,
.btn-ghost-light:focus {
  background-color: #fff;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.78);
  padding: 5rem var(--gutter) 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-dark);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #fff;
}

.footer-brand .brand-logo {
  width: 32px;
  height: 32px;
  transition: transform 0.7s var(--ease-out);
}

.footer-brand:hover .brand-logo {
  transform: rotate(360deg);
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 360px;
  color: rgba(255,255,255,0.6);
}

.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-list a {
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-soft);
}

.footer-list a:hover { color: #fff; }

/* Socials stacked vertically (matching Navigation column) */
.footer-socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-socials a {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.3s var(--ease-soft);
}

.footer-socials a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Games Page ---------- */
.games-hero {
  padding: clamp(8rem, 16vw, 12rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}

.games-hero-inner { max-width: var(--max-w); margin: 0 auto; }

.games-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.games-title em { font-style: italic; font-weight: 300; }

.games-intro {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.games-grid { padding: 0 var(--gutter) clamp(5rem, 12vw, 9rem); }

.games-grid-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) 2rem;
}

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

/* ---------- About Page ---------- */
.about-hero {
  padding: clamp(8rem, 16vw, 11rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.about-hero-inner { max-width: 900px; margin: 0 auto; }

.about-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.about-title em { font-style: italic; }

.about-story {
  position: relative;
  padding: 0 var(--gutter) clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}

/* HUGE background emblem on About page - mirrors Contact, but on the right side and slightly bigger */
.about-bg-emblem {
  position: absolute;
  right: -12%;
  top: 50%;
  transform: translateY(-50%);
  width: min(900px, 85vw);
  height: min(900px, 85vw);
  opacity: 0.045;
  z-index: 0;
  pointer-events: none;
}

.about-story-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Rounded photo corners */
.about-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-dark);
  border-radius: 18px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.7) 100%);
}

.about-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  color: #fff;
}

.about-photo-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  color: #fff;
  max-width: 600px;
}

.about-photo-heading em { font-style: italic; }

.about-photo-text {
  max-width: 540px;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: #fff;
}

/* Brothers cards */
.brothers-section {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.brothers-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .brothers-grid { grid-template-columns: 1fr; gap: 3.5rem; }
}

.brother-card {
  text-align: center;
  position: relative;
  padding-top: 2rem;
}

.brother-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin: 0 auto 1.75rem;
  font-weight: 500;
}

.brother-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.5rem;
}

.brother-role {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.brother-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto;
}

/* Motto block on about */
.motto-block {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(5rem, 10vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

.motto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .motto-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.motto-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.motto-text {
  margin-top: 2rem;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
}

.motto-side {
  border-left: 1px solid var(--line-dark);
  padding-left: 2.5rem;
}

@media (max-width: 768px) {
  .motto-side {
    border-left: none;
    border-top: 1px solid var(--line-dark);
    padding-left: 0;
    padding-top: 2rem;
  }
}

.motto-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.motto-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 300;
  line-height: 1.3;
  color: #fff;
}

/* Background emblem on motto block */
.motto-bg-emblem {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Contact Page ---------- */
.contact-section {
  position: relative;
  padding: clamp(8rem, 16vw, 11rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}

/* HUGE background emblem on contact page, off-center to the left */
.contact-bg-emblem {
  position: absolute;
  left: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: min(820px, 80vw);
  height: min(820px, 80vw);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

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

.contact-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.contact-title em { font-style: italic; }

.contact-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 3rem;
}

.contact-detail { margin-bottom: 2.5rem; }

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.contact-value {
  font-size: 1.15rem;
  color: var(--ink);
}

.contact-form {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: 6px;
  position: relative;
  z-index: 2;
}

.form-group { margin-bottom: 2rem; }

.form-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 0.6rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s var(--ease-soft);
}

.form-input:focus,
.form-textarea:focus { border-color: #fff; }

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

.form-submit {
  width: 100%;
  background: #fff;
  color: var(--ink);
  padding: 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 1rem;
  font-weight: 500;
  transition: background-color 0.3s var(--ease-soft);
  cursor: pointer;
}

.form-submit:hover { background: #ececec; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Generated placeholder images ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Utilities ---------- */
@media (max-width: 768px) {
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.18em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
