/* ============================================
   FONTS - loaded via CSS import
============================================ */
@import url('https://api.fontshare.com/v2/css?f[]=monument-extended@400,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Permanent+Marker&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

@font-face {
  font-family: 'Pigment DEMO';
  src: local('Pigment DEMO'), local('PigmentDEMO'), local('Pigment-DEMO');
  font-weight: normal;
  font-style: normal;
}

/* ============================================
   DESIGN TOKENS
============================================ */
:root {
  /* Palette */
  --bg:          #F4F0E6;
  --bg-alt:      #EAE5D7;
  --bg-dark:     #0D0D0D;
  --text:        #111111;
  --text-muted:  #56625C;
  --green:       #1A4A2E;
  --green-mid:   #2E7D52;
  --green-light: #52B788;
  --orange:      #E8651A;
  --orange-dark: #C4520E;
  --orange-light:#F4874A;
  --white:       #FDFBF4;
  --border:      #D8D4C5;
  --border-dark: #1D1D1D;

  /* Aliases kept for backward compat with inline styles */
  --red:        #E8651A;
  --red-dark:   #C4520E;
  --red-light:  #F4874A;
  --gold:       #E8651A;

  /* Type */
  --font-head: 'Monument Extended', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-mono: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  --transition:      0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0.5em 0.5em 0.5em rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);

  --header-h: 68px;
  --max-w:    1440px;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: auto;
}

body.loading { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

::selection {
  background-color: var(--orange);
  color: var(--white);
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(3rem, 8vw, 9rem); }
h2 { font-size: clamp(2rem, 5vw, 5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
h5 { font-size: 1rem; font-weight: 700; }
h6 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-mono);
  font-weight: 400;
}

p { max-width: none; }
p + p { margin-top: var(--space-md); }

.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 768px)  { .container { padding: 0 var(--space-lg); } }
@media (max-width: 480px)  { .container { padding: 0 var(--space-md); } }

section { position: relative; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }

@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ============================================
   BUTTONS - LEFT-TO-RIGHT FILL
============================================ */
.btn {
  position: relative;
  font-size: 0.85rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7em 1.6em;
  background-image: linear-gradient(to right, var(--orange-dark) 50%, var(--orange) 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--white);
  box-shadow: var(--shadow-md);
  display: inline-block;
  transition: background-position 0.38s var(--transition), transform 0.1s, box-shadow 0.1s;
  cursor: auto;
  overflow: hidden;
}

.btn:hover  { background-position: 0% 0; }
.btn:active { transform: translate(0.08em, 0.08em); box-shadow: 0.2em 0.2em 0.3em rgba(0,0,0,0.25); }

.btn-outline {
  background-image: linear-gradient(to right, var(--green) 50%, transparent 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  border: 1.5px solid currentColor;
  color: var(--text);
  box-shadow: none;
}
.btn-outline:hover { background-position: 0% 0; color: var(--white); border-color: var(--green); }

.btn-sm  { font-size: 0.72rem; padding: 0.5em 1.1em; }
.btn-lg  { font-size: 0.95rem; padding: 0.85em 2.2em; }

/* Dark background variant */
.btn-dark-outline {
  background-image: linear-gradient(to right, var(--green-mid) 50%, transparent 50%);
  background-size: 202% 100%;
  background-position: 100% 0;
  border: 1.5px solid rgba(253,251,244,0.3);
  color: rgba(253,251,244,0.85);
  box-shadow: none;
}
.btn-dark-outline:hover { background-position: 0% 0; color: var(--white); border-color: var(--green-mid); }

/* ============================================
   LOADER
============================================ */
#loader {
  position: fixed;
  inset: 0;
  background: #121212;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--transition-slow), visibility 0.8s;
}

#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo img {
  height: 80px;
  width: auto;
  animation: loaderSpin 1.4s linear infinite;
  filter: brightness(0) invert(1);
}

.loader-bar {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: var(--orange);
  animation: loaderBar 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: 0.4s;
  width: 0;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderBar  { to { width: 100%; } }

/* ============================================
   HEADER
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Specular top-edge highlight - visible only when scrolled */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 25%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.55) 75%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.site-header.scrolled::before {
  opacity: 1;
}

/* White text + dark gradient when header sits over a dark hero */
.site-header:not(.scrolled) .nav-link            { color: rgba(255,255,255,0.82); }
.site-header:not(.scrolled) .nav-link:hover      { color: #fff; }
.site-header:not(.scrolled) .nav-link::after     { background: #fff; }
.site-header:not(.scrolled) .hamburger span      { background: rgba(255,255,255,0.85); }
.site-header:not(.scrolled)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(253,251,244,0.72);
  backdrop-filter: blur(28px) saturate(160%) brightness(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(1.04);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}

.site-logo:hover { opacity: 0.82; }

.site-logo img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Fallback text if image fails */
.site-logo span { color: var(--orange); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: 'Poppins', var(--font-head), sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--orange); }

.nav-cta { margin-left: var(--space-md); }

/* ── Nav Search ───────────────────────────────────────────── */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: var(--space-md);
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--text);
  padding: 4px 6px;
  cursor: auto;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-search-btn:hover { color: var(--orange); }

.nav-search-panel {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 0;
  padding: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s var(--transition), opacity 0.25s, padding 0.35s;
  pointer-events: none;
}

.nav-search.open .nav-search-panel {
  width: 260px;
  opacity: 1;
  padding: 0.3em 0.8em;
  pointer-events: all;
}

.nav-search-input {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  outline: none;
  cursor: text;
}

.nav-search-input::placeholder { color: var(--text-muted); }

.nav-search-close {
  background: none;
  border: none;
  cursor: auto;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 0 0 0 6px;
  flex-shrink: 0;
  transition: color var(--transition);
}

.nav-search-close:hover { color: var(--text); }

/* Search results dropdown */
.nav-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-search.open .nav-search-results:not(:empty) {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.search-result-item {
  display: block;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-alt); }
.search-result-title {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.search-result-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.search-no-results {
  padding: 1rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav .nav-link {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  color: var(--white);
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 800;
}

.mobile-nav .nav-link::after { background: var(--orange); }

/* ============================================
   HERO
============================================ */
.hero {
  height: 100svh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-2xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero.loaded .hero-bg img { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,13,13,0.88) 0%,
    rgba(13,13,13,0.25) 55%,
    rgba(13,13,13,0.05) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--transition-slow) 1.8s forwards;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 13vw, 16rem);
  font-weight: 800;
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

/* Platform tagline variant - Monument Extended */
.hero-title--platform {
  font-family: 'Monument Extended', var(--font-head), sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow: visible;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 1.5s; }
.hero-title .line:nth-child(2) { animation-delay: 1.65s; }

.hero-title .accent { color: var(--orange); font-style: italic; }

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: rgba(253,251,244,0.75);
  max-width: 38ch;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--transition-slow) 2s forwards;
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--transition-slow) 2.2s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-xl);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
  animation: fadeUp 0.8s var(--transition-slow) 2.5s forwards;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--transition-slow), transform 0.8s var(--transition-slow);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s var(--transition-slow), transform 0.8s var(--transition-slow);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s var(--transition-slow), transform 0.8s var(--transition-slow);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-children > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--transition-slow), transform 0.6s var(--transition-slow);
}
.stagger-children.visible > *:nth-child(1)  { opacity:1; transform:none; transition-delay:0s; }
.stagger-children.visible > *:nth-child(2)  { opacity:1; transform:none; transition-delay:.08s; }
.stagger-children.visible > *:nth-child(3)  { opacity:1; transform:none; transition-delay:.16s; }
.stagger-children.visible > *:nth-child(4)  { opacity:1; transform:none; transition-delay:.24s; }
.stagger-children.visible > *:nth-child(5)  { opacity:1; transform:none; transition-delay:.32s; }
.stagger-children.visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay:.40s; }
.stagger-children.visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay:.48s; }
.stagger-children.visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay:.56s; }
.stagger-children.visible > *:nth-child(9)  { opacity:1; transform:none; transition-delay:.64s; }
.stagger-children.visible > *:nth-child(10) { opacity:1; transform:none; transition-delay:.72s; }

/* ============================================
   MARQUEE
============================================ */
.marquee-wrap {
  overflow: hidden;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 22s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 800;
  font-style: italic;
  color: var(--text-muted);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--transition);
}

.marquee-item:hover { color: var(--orange); }

.marquee-item .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   HORIZONTAL SCROLL
============================================ */
.h-scroll-section { position: relative; height: 400vh; }

.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.h-scroll-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.1s linear;
  will-change: transform;
  padding: 0 var(--space-xl);
}

.h-scroll-card {
  flex-shrink: 0;
  width: min(80vw, 560px);
  height: 68vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}

.h-scroll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-slow);
}

.h-scroll-card:hover img { transform: scale(1.04); }

/* Rounded corners on hover */
.h-scroll-card {
  border-radius: 0;
  transition: border-radius 0.42s var(--transition-slow), box-shadow 0.42s var(--transition-slow);
}
.h-scroll-card:hover {
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.28);
}

.h-scroll-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(13,13,13,0.92), transparent);
  color: var(--white);
}

/* ============================================
   INTRO SECTIONS
============================================ */
.section-intro { padding: var(--space-3xl) 0; }

.section-intro .large-text {
  font-family: 'Pigment DEMO', 'Permanent Marker', cursive;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.section-intro .large-text em {
  font-style: italic;
  color: var(--orange);
}

/* ============================================
   WORK GRID - EDITORIAL PHOTO CARDS
============================================ */
.work-grid-section { padding: var(--space-md) 0 var(--space-3xl); }

/* Main editorial grid */
.work-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card base */
.wcard {
  position: relative;
  cursor: auto;
  display: block;
  text-decoration: none;
  border-radius: 0;
  transition: border-radius 0.38s var(--transition), box-shadow 0.38s var(--transition);
  box-shadow: 0 6px 28px rgba(0,0,0,0.13);
}

.wcard:hover {
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0,0,0,0.22);
}

.wcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

/* Photo / visual layer */
.wcard-visual {
  width: 100%;
  height: 100%;
  min-height: 100%;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.wcard:hover .wcard-visual { transform: scale(1.04); }

/* Overlay - always has a bottom gradient so title is readable */
.wcard-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.0) 55%);
  transition: background 0.5s var(--transition-slow);
  z-index: 2;
}

.wcard:hover .wcard-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.70) 55%,
    rgba(0,0,0,0.18) 100%
  );
}

/* Category - hidden until hover */
.wcard-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s 0.05s, transform 0.4s 0.05s;
}

/* Title - always visible */
.wcard-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}

/* Subtext - hidden until hover */
.wcard-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s 0.15s, transform 0.4s 0.15s;
}

.wcard-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s 0.2s, transform 0.4s 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wcard:hover .wcard-cat,
.wcard:hover .wcard-desc,
.wcard:hover .wcard-link {
  opacity: 1;
  transform: translateY(0);
}

/* Number badge (always visible) */
.wcard-num {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  z-index: 3;
  transition: color 0.3s;
}

.wcard:hover .wcard-num { color: rgba(255,255,255,0.5); }

/* Grid placements - uniform 3-col grid */
.wcard--large,
.wcard--medium,
.wcard--third  { grid-column: span 1; aspect-ratio: 3/4; }
.wcard--wide   { grid-column: span 3; aspect-ratio: 16/6; }

@media (max-width: 900px) {
  .work-editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .wcard--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .work-editorial-grid { grid-template-columns: 1fr; }
  .wcard--large, .wcard--medium, .wcard--wide, .wcard--third { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ============================================
   SHOP CARDS - POST-IT FOLD
============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
}

@media (max-width: 1024px) { .shop-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .shop-grid { grid-template-columns: 1fr; } }

.shop-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-radius 0.38s var(--transition), transform 0.4s var(--transition-slow), box-shadow 0.4s;
  cursor: auto;
}

.shop-card:hover {
  border-radius: 16px;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.shop-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.shop-card-body   { padding: var(--space-lg); }
.shop-card-title  { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: var(--space-sm); }
.shop-card-summary { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-md); }
.shop-card-price  { font-family: var(--font-mono); font-size: 0.85rem; color: var(--orange); font-weight: 700; }

/* ============================================
   BLOG
============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

.blog-card         { cursor: pointer; display: flex; flex-direction: column; }

.blog-card-img-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--bg-alt), var(--border));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-slow);
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

/* Direct img (no wrapper div) */
img.blog-card-img {
  object-fit: cover;
  transition: transform 0.6s var(--transition-slow);
}
.blog-card:hover img.blog-card-img { transform: scale(1.04); }

.blog-card-date  {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: var(--space-sm);
}

.blog-card-title {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}

.blog-card:hover .blog-card-title { color: var(--orange); }

.blog-card-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.blog-card-read-more {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition), gap var(--transition);
}

.blog-card:hover .blog-card-read-more { color: var(--orange); gap: 12px; }

/* Newsletter */
.newsletter-section {
  background: #000000;
  color: var(--white);
  padding: var(--space-3xl) 0;
  margin-top: var(--space-2xl);
}

.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 { color: var(--white); margin-bottom: var(--space-md); font-size: clamp(1.2rem, 2.2vw, 1.8rem); white-space: nowrap; }
.newsletter-inner p  { color: rgba(253,251,244,0.6); margin: 0 auto var(--space-xl); font-size: 0.8rem; max-width: 44ch; }

@media (max-width: 600px) {
  .newsletter-inner h2 { white-space: normal; font-size: clamp(1.1rem, 5vw, 1.4rem); }
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.7em 1.2em;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-body);
}

.newsletter-input:focus { border-color: var(--orange); }
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }

@media (max-width: 480px) { .newsletter-form { flex-direction: column; } }

/* ============================================
   ABOUT - PASSPORT
============================================ */
.about-hero {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg-dark);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.about-hero-title {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(8rem, 22vw, 26rem);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 0.85;
  letter-spacing: -0.05em;
  bottom: -0.1em;
  left: var(--space-xl);
  user-select: none;
}

.about-intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: end;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.about-intro-grid h1 { font-family: var(--font-head); color: var(--white); line-height: 1; }
.about-intro-grid p  { font-size: 1rem; color: rgba(253,251,244,0.7); line-height: 1.75; }

.passport-section { padding: var(--space-3xl) 0; }

.passport-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 260px 1fr;
}

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

.passport-photo {
  background: var(--bg-dark);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.passport-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px dashed rgba(255,255,255,0.12);
}

.passport-seal {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.08);
}

.passport-details { padding: var(--space-xl); }

.passport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.passport-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.passport-mrz {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  background: var(--bg-alt);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-top: var(--space-xl);
  word-break: break-all;
  line-height: 1.8;
}

.passport-field { margin-bottom: var(--space-md); }

.passport-field-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.passport-field-value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.passport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

/* Skills */
.skills-section { padding: var(--space-2xl) 0; }

.skill-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.4em 0.9em;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  cursor: auto;
}

.skill-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,101,26,0.05);
}

/* Countries */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.country-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-md);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.875rem;
  color: rgba(253,251,244,0.8);
  transition: border-color var(--transition), transform var(--transition);
  cursor: auto;
}

.country-item:hover { border-color: var(--orange); transform: translateY(-2px); }
.country-flag { font-size: 1.2rem; }

/* Hobbies */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.hobby-card {
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  cursor: auto;
}

.hobby-card:hover { border-color: var(--orange); transform: translateY(-4px); }
.hobby-icon  { font-size: 1.8rem; margin-bottom: var(--space-sm); }
.hobby-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-sm); }
.hobby-desc  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* Currently into */
.currently-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  cursor: auto;
}

.currently-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.currently-icon { font-size: 1.4rem; flex-shrink: 0; width: 40px; height: 40px; background: var(--bg-alt); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.currently-text strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: .2rem; }
.currently-text span   { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================
   CONTACT
============================================ */
.contact-section { padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-3xl); min-height: 100vh; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

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

.contact-form .form-group { margin-bottom: var(--space-lg); }

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75em 1em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  font-family: var(--font-body);
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); }

.contact-form textarea { height: 150px; resize: vertical; }

/* Contact info */
.contact-info-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label  { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-muted); }
.contact-info-value  { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; transition: color var(--transition); }
.contact-info-value a:hover { color: var(--orange); }

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
  padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-hero-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: var(--space-md);
}

.page-hero-title {
  font-family: 'Monument Extended', var(--font-head), sans-serif;
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

/* Hero newsletter form - blog page */
.hero-newsletter-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  max-width: 420px;
  flex-wrap: wrap;
}

.hero-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.62em 1.2em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  cursor: text;
}

.hero-newsletter-form input[type="email"]:focus { border-color: var(--orange); }

.page-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-top: var(--space-lg);
  line-height: 1.7;
}

/* ============================================
   CASE STUDY (Margin / No Hesitation)
============================================ */
.case-header {
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--white);
}

.case-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  text-align: center;
  color: var(--white);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.case-title em { color: var(--orange); font-style: italic; }

.case-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); justify-content: center; }

.case-header .container { text-align: center; }
.case-header .case-title { text-align: center; }

.back-link {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
  text-decoration: none;
  padding: 0.5em 1.1em;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.back-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.case-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
}

@media (max-width: 768px) { .case-specs { grid-template-columns: repeat(2,1fr); gap: var(--space-lg) 0; } }
@media (max-width: 480px) { .case-specs { grid-template-columns: 1fr; } }

.case-spec-item { padding-right: var(--space-xl); }

.case-spec-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
}

.case-spec-value { font-size: 0.95rem; color: rgba(255,255,255,0.88); font-weight: 500; }

.case-spec-value .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  animation: pulse 2s ease infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.case-body { padding: var(--space-3xl) 0; }

/* cap text-heavy case sections to a readable column */
.case-body section > p,
.case-body .asks-intro p {
  max-width: 860px;
}

.case-what { max-width: 860px; margin-bottom: var(--space-2xl); }

.case-what h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.case-what p { font-size: 1.15rem; line-height: 1.75; max-width: 58ch; }

/* Flow */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: var(--space-xl) 0;
  padding: var(--space-lg);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.flow-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); text-align: center; }

.flow-icon {
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.flow-step:hover .flow-icon { border-color: var(--orange); transform: scale(1.1); }

.flow-label { font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.flow-arrow { font-size: 1rem; color: var(--border); font-family: var(--font-mono); }

/* Tech stack */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.tech-item {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: auto;
  transition: border-color var(--transition), background var(--transition);
}

.tech-item:hover { border-color: var(--orange); background: rgba(232,101,26,0.03); }
.tech-name { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; margin-bottom: var(--space-xs); }
.tech-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* Lessons */
.lessons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.lesson-card { padding: var(--space-xl); border-top: 2px solid var(--border); transition: border-color var(--transition); }
.lesson-card:hover { border-color: var(--orange); }
.lesson-num   { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--orange); margin-bottom: var(--space-md); }
.lesson-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-md); }
.lesson-body  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

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

.screenshot-placeholder {
  aspect-ratio: 9/16;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* What next */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.next-item { padding: var(--space-lg); border-left: 2px solid var(--border); transition: border-color var(--transition); }
.next-item:hover { border-color: var(--orange); }
.next-num   { font-family: var(--font-mono); font-size: 0.62rem; color: var(--orange); letter-spacing: 0.2em; margin-bottom: var(--space-sm); }

/* PWA guide */
.pwa-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

@media (max-width: 640px) { .pwa-guide { grid-template-columns: 1fr; } }

.pwa-guide-step { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.pwa-guide-step strong { color: var(--text); display: block; margin-bottom: var(--space-sm); }

/* ============================================
   HOME - ABOUT TEASER
============================================ */
.home-about {
  padding: var(--space-3xl) 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  position: relative;
}

.home-about-bg-text {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(8rem, 22vw, 28rem);
  font-weight: 800;
  color: rgba(0,0,0,0.04);
  top: 50%;
  transform: translateY(-50%);
  right: -3%;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
}

.home-about .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

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

.home-about h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.home-about h2 em { color: var(--orange); font-style: italic; }

.home-about p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: var(--space-xl);
}

/* ============================================
   JOURNAL FRAME - about teaser
============================================ */
.home-about-journal { display: flex; align-items: flex-start; justify-content: center; }

.journal-frame {
  background: #FEFDF8;
  border-radius: 12px;
  border: 1px solid rgba(180,160,120,.22);
  padding: 24px;
  box-shadow: 0 6px 28px rgba(0,0,0,.18), 2px 3px 0 rgba(0,0,0,.06);
  position: relative;
  max-width: 320px;
  width: 100%;
  background-image:
    linear-gradient(to right, rgba(220,60,60,.18) 1px, transparent 1px),
    repeating-linear-gradient(
      to bottom,
      transparent, transparent 31px,
      rgba(120,140,200,.13) 31px, rgba(120,140,200,.13) 32px
    );
  background-size: 38px 100%, 100% 32px;
}

.journal-frame-photo {
  width: 100%;
  transform: rotate(1.5deg);
  box-shadow: 3px 4px 18px rgba(0,0,0,.22), 0 0 0 6px #fff;
  border-radius: 3px;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
}

.journal-frame-notes { margin-top: 18px; }

.journal-pen-note {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--orange);
  border-bottom: 1.5px solid rgba(232,101,26,.35);
  padding-bottom: 2px;
  margin-bottom: 10px;
}

.journal-pen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.journal-pen-tags span {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: rgba(15,23,42,.65);
  border: 1.5px solid rgba(15,23,42,.18);
  border-radius: 5px;
  padding: 3px 8px;
  background: rgba(255,255,255,.7);
}

/* ============================================
   WORKSPACE LOG PANEL
============================================ */
.workspace-log-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 506px;
  width: 100%;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}

.log-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.log-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.log-dot--red    { background: #ff5f57; }
.log-dot--yellow { background: #febc2e; }
.log-dot--green  { background: #28c840; }

.log-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-left: 8px;
}

.log-entries {
  display: flex;
  flex-direction: column;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}

.log-entry:last-child { border-bottom: none; }
.log-entry:hover { background: var(--bg-alt); }
.log-entry:hover .log-arrow { color: var(--orange); }
.log-entry:hover .log-text  { color: var(--text); }

.log-thumb {
  width: 50px;
  height: 50px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: block;
}

.log-thumb--color {
  background: var(--bg-dark);
}

.log-entry-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.log-date {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-arrow {
  font-family: var(--font-mono);
  color: var(--border);
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: color var(--transition);
}

.log-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}

.log-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--bg-alt);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }

.footer-brand .logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  display: block;
  letter-spacing: -0.03em;
}

.footer-brand .logo span { color: var(--orange); }

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.social-links { display: flex; gap: var(--space-md); margin-top: var(--space-md); }

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  cursor: auto;
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--white);
  background: var(--orange);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

.footer-legal { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.75); }

/* ============================================
   COOKIE BANNER
============================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  max-width: 460px;
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s var(--transition-slow), opacity 0.5s;
  border: 1px solid rgba(255,255,255,0.06);
}

.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner.hidden  { display: none; }

.cookie-banner h4 { font-size: 0.88rem; margin-bottom: var(--space-sm); font-family: var(--font-head); font-weight: 700; }
.cookie-banner p  { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: var(--space-md); }

.cookie-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.cookie-btn {
  font-size: 0.72rem;
  padding: 0.5em 1.2em;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: auto;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cookie-btn-accept  { background: var(--orange); color: var(--white); }
.cookie-btn-accept:hover  { background: var(--orange-dark); }
.cookie-btn-decline { background: rgba(255,255,255,0.08); color: var(--white); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.15); }
.cookie-btn-more    { background: transparent; color: rgba(255,255,255,0.45); text-decoration: underline; font-weight: 400; }

/* ============================================
   LEGAL PAGES
============================================ */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.legal-content h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: var(--space-xl); }
.legal-content h2 { font-size: 1.4rem; margin: var(--space-xl) 0 var(--space-md); }
.legal-content p  { margin-bottom: var(--space-md); color: var(--text-muted); line-height: 1.8; max-width: 100%; }
.legal-content ul { margin: var(--space-md) 0; padding-left: var(--space-lg); list-style: disc; }
.legal-content ul li { color: var(--text-muted); margin-bottom: var(--space-sm); font-size: 0.93rem; }

/* ============================================
   UTILITIES
============================================ */
.hr      { height: 1px; background: var(--border); margin: var(--space-2xl) 0; }
.hr-dark { background: rgba(255,255,255,0.08); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3em 0.8em;
  background: rgba(232,101,26,0.1);
  color: var(--orange);
  border-radius: 0;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.parallax-img { will-change: transform; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  :root { --space-xl: 2.5rem; --space-2xl: 5rem; --space-3xl: 8rem; }
}

@media (max-width: 768px) {
  :root { --space-xl: 1.5rem; --space-2xl: 3.5rem; --space-3xl: 6rem; }
  .hamburger { display: flex; }
  .site-nav  { display: none; }
  body { font-size: 0.975rem; }
}

@media (max-width: 480px) {
  :root { --space-xl: 1.25rem; }
}

/* ============================================
   WORK CARD HEIGHT FIX
   Ensures visual layer fills grid-item area
============================================ */
.wcard {
  isolation: isolate;
}

.wcard-inner {
  position: absolute;
  inset: 0;
}

/* .wcard needs a position context */
.wcard { position: relative !important; }

/* Visual fills the inner */
.wcard-visual {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: unset;
}

/* Colored bg helpers */
.bg-margin,
.bg-nohes,
.bg-soon {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   READING PROGRESS BAR
============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--orange);
  z-index: 2000;
  transition: width 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(232,101,26,0.65);
}

/* ============================================
   PAGE BREADCRUMB
============================================ */
.page-breadcrumb {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.page-breadcrumb--dark {
  background: #1a1a1a;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.breadcrumb-back {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 600;
}

.breadcrumb-back:hover { color: var(--orange); }

.page-breadcrumb--dark .breadcrumb-back {
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.page-breadcrumb--dark .breadcrumb-back:hover { color: var(--orange); }

.breadcrumb-sep {
  color: var(--text-muted);
  user-select: none;
}

.page-breadcrumb--dark .breadcrumb-sep { color: rgba(255,255,255,0.3); }

.breadcrumb-current {
  color: var(--orange);
  font-weight: 600;
}

.page-breadcrumb--dark .breadcrumb-current {
  color: rgba(255,255,255,0.9);
}

/* ============================================
   POST NEWSLETTER HOOK
============================================ */
.post-newsletter {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  border-radius: var(--radius-lg);
  text-align: center;
}

.post-newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
}

.post-newsletter .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: var(--space-md);
  display: block;
}

.post-newsletter h3 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.post-newsletter p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

.post-newsletter .newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 380px;
  margin: 0 auto;
}

.post-newsletter .newsletter-input {
  flex: 1;
  padding: 0.65em 1em;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
}

.post-newsletter .newsletter-input::placeholder { color: rgba(255,255,255,0.25); }
.post-newsletter .newsletter-input:focus { border-color: var(--orange); }

.post-newsletter .newsletter-submit {
  padding: 0.65em 1.4em;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.post-newsletter .newsletter-submit:hover { background: var(--orange-dark); }

@media (max-width: 480px) {
  .post-newsletter .newsletter-form { flex-direction: column; }
}

@media (max-width: 640px) {
  .post-newsletter { margin-bottom: var(--space-2xl); }
  .post-nav { gap: var(--space-xl); flex-direction: column; align-items: stretch; }
  .post-nav .btn { text-align: center; }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
