/* page: team */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-scroll-behavior: smooth;
}

body {
  /* Safe area support for notch devices */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* iOS-specific optimizations */
button, a {
  -webkit-tap-highlight-color: rgba(0, 168, 150, 0.2);
  -webkit-user-select: none;
  user-select: none;
}

button, a, input, textarea, select {
  -webkit-touch-callout: none;
}

/* Minimum touch target size (44x44px) */
button, a.btn, input[type="button"], input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
  padding: 12px 16px;
  font-size: 16px;
}

:root {
  --teal:       #00A896;
  --teal-dark:  #088F7F;
  --teal-glow:  rgba(0,168,150,0.15);
  --orange:     #DD6F3E;
  --orange-dark:#C45E32;
  --brown:      #3D2321;
  --charcoal:   #2C1A18;
  --copper:     #C37F58;
  --sand:       #F3E9D2;
  --sand-50:    #FDFAF4;
  --sand-100:   #FAF6EE;
  --sand-200:   #F3E9D2;
  --sand-300:   #E8D5BC;
  --beige:      #B7A095;
  --white:      #FFFFFF;
  --paper-light:#F9F6F0;
  --paper-dark: #EAE3D5;
  --ink:        #2C1A18;
  --color-sand: #F4F1EB;
  --color-copper: #B85B38;
  --color-copper-dark: #9A4A2B;
  --text-dark: #2A1A17;
  --text-light: #FDFCFB;
  --font-main: 'Lato', sans-serif;
  --typewriter: 'Space Mono', monospace;

  --ease-expo:    ease;
  --ease-quart:   ease;
  --ease-spring:  ease;

  --shadow-sm:  0 1px 3px rgba(61,35,33,0.04), 0 1px 2px rgba(61,35,33,0.06);
  --shadow-md:  0 4px 6px rgba(61,35,33,0.04), 0 10px 15px rgba(61,35,33,0.06);
  --shadow-lg:  0 10px 25px rgba(61,35,33,0.06), 0 20px 48px rgba(61,35,33,0.08);
  --shadow-xl:  0 25px 50px rgba(61,35,33,0.1), 0 12px 24px rgba(61,35,33,0.06);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--brown);
  background: var(--sand-50);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.3s var(--ease-expo), transform 1s var(--ease-expo); }

.rv.vis { opacity: 1; transform: none; }

.rv-d1 { transition-delay: .1s; }

.rv-d2 { transition-delay: .2s; }

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

.nav-menu { display: flex; list-style: none; gap: 35px; align-items: center; }

.nav-menu a { text-decoration: none; color: white; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 1.8px; transition: color 0.35s var(--ease-expo); text-shadow: 0 2px 4px rgba(0,0,0,0.2); }

.nav-menu a:not(.nav-donate):hover, .nav-menu a.active { color: var(--teal); }

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(61,35,33,0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 20px;
    gap: 15px;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .nav-menu li { width: 100%; text-align: center; }

  .nav-menu a { display: block; padding: 12px 0; font-size: 14px; }

  .nav-menu.show { display: flex; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--brown);
  background-image: url('../../images/banner/IMG_2954.webp');
  background-size: cover;
  background-position: center 15%;
}

.hero-bg,
img.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  display: block !important;
}

.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(61,35,33,0.25) 0%, rgba(61,35,33,0.35) 40%, rgba(61,35,33,0.85) 100%); }

.hero-content { position: relative; z-index: 2; padding: 0 clamp(24px, 6vw, 120px) clamp(60px, 10vh, 120px); max-width: 800px; }

.hero-eyebrow { font-size: 0.68rem; letter-spacing: 5px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 18px; opacity: 0; animation: fadeUp .9s .4s var(--ease-expo) forwards; }

.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--sand); line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 4px 20px rgba(0,0,0,0.3); opacity: 0; animation: fadeUp 1s .55s var(--ease-expo) forwards; }

.hero h1 em { font-style: italic; color: var(--teal); font-weight: 500; }

.hero-line { width: 64px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--copper)); margin: 28px 0; opacity: 0; animation: fadeUp .8s .7s var(--ease-expo) forwards; }

.hero-sub { font-size: 1rem; color: rgba(243,233,210,0.75); line-height: 1.8; max-width: 480px; font-weight: 300; letter-spacing: 0.01em; opacity: 0; animation: fadeUp .9s .85s var(--ease-expo) forwards; }

/* ─── PHILOSOPHY ─── */
.philosophy { background: var(--brown); padding: clamp(38px, 4.5vw, 64px) clamp(24px, 6vw, 120px); text-align: center; position: relative; }

.philosophy::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(243,233,210,0.15), transparent); }

.phi-label { font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 20px; }

.phi-quote { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: var(--sand); line-height: 1.65; max-width: 680px; margin: 0 auto; font-weight: 400; font-style: italic; }

.phi-attr { margin-top: 16px; font-size: 0.78rem; color: var(--beige); letter-spacing: 1px; }

/* ─── TEAM MAIN (LEADERSHIP) ─── */
.team-section { padding: clamp(48px, 8vw, 100px) clamp(24px, 6vw, 120px); background: linear-gradient(180deg, rgba(243,233,210,0.85) 0%, rgba(243,233,210,0.8) 100%), url('https://res.cloudinary.com/dk1nlcy8f/image/upload/v1771825694/9213_liesex.jpg') center/cover no-repeat; position: relative; }

.team-header { text-align: center; margin-bottom: clamp(40px, 6vw, 60px); }

.team-header .label { font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 16px; display: block; }

.team-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--brown); }

.team-header h2 em { font-style: italic; color: var(--copper); font-weight: 500; }

.team-header .intro { max-width: 560px; margin: 20px auto 0; font-size: 0.95rem; line-height: 1.9; color: var(--beige); }

.member { display: grid; grid-template-columns: 4fr 5fr; gap: clamp(30px, 4vw, 60px); align-items: center; max-width: 960px; margin: 0 auto clamp(40px, 6vw, 80px); }

.member:nth-child(even) .member-img { order: 2; }

.member:nth-child(even) .member-info { order: 1; }

.member-img { position: relative; overflow: hidden; border-radius: var(--radius-lg); }

.member-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; filter: grayscale(100%) contrast(1.05); transition: filter 0.3s var(--ease-expo), transform 0.8s var(--ease-expo); }

.member:hover .member-img img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }

.member-info { padding: 12px 0; }

.member-number { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 700; color: var(--sand-300); line-height: 1; margin-bottom: 8px; letter-spacing: -0.04em; }

.member-name { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; color: var(--brown); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }

.member-role { font-size: 0.72rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 20px; }

.member-rule { width: 40px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--copper)); margin-bottom: 20px; border-radius: 2px; }

.member-bio { font-size: 0.9rem; line-height: 1.8; color: var(--brown); margin-bottom: 24px; }

.member-socials { display: flex; gap: 14px; list-style: none; }

.member-socials a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--sand-300); color: var(--beige); text-decoration: none; font-size: 13px; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease var(--ease-expo); }

.member-socials a:hover { background: var(--teal); border-color: var(--teal); color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,168,150,0.25); }

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

  .member:nth-child(even) .member-img, .member:nth-child(even) .member-info { order: 0; }
}

/* ─── LEADERSHIP CARD GRID ─── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  max-width: 1300px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 0 clamp(16px, 4vw, 40px);
}

.leader-card {
  position: relative;
  background: var(--paper-light);
  box-shadow: 2px 4px 16px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 20px 20px 24px;
  text-align: center;
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo);
}

.leader-card::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 60px; height: 20px;
  background: rgba(230,225,210,0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 1px;
  z-index: 2;
}

.leader-card:hover {
  transform: translateY(-8px) rotate(0.4deg);
  box-shadow: 6px 24px 40px rgba(0,0,0,0.18);
}

.leader-frame {
  width: 100%; aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--paper-dark);
  border: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 16px;
}

.leader-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.3s var(--ease-expo);
  display: block;
}

.leader-card:hover .leader-frame img { transform: scale(1.08); }

.leader-number { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--sand-300); line-height: 1; margin-bottom: 6px; }

.leader-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--brown); margin-bottom: 4px; letter-spacing: -0.01em; }

.leader-role { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 12px; }

.leader-bio { font-size: 0.82rem; line-height: 1.7; color: var(--brown); }

@media (max-width: 1100px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}

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

/* ═══════════════════════════════════════════
   ABSTRACT DIG SITE GRID (SCATTERED)
   ═══════════════════════════════════════════ */
.dig-site-fixed {
  position: relative;
  /* Seamless Geological Transition */
  background: linear-gradient(180deg, var(--sand-50) 0%, var(--sand-200) 25%, #A27B60 65%, #4A352F 100%);
  padding: clamp(60px, 8vw, 100px) 5%;
  overflow: hidden;
}

/* Beautiful Concentric Topography Rings */
.canvas-topo {
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 10% 20%, transparent 0, transparent 48px, rgba(0,0,0,0.03) 49px, transparent 50px),
    repeating-radial-gradient(circle at 90% 70%, transparent 0, transparent 68px, rgba(0,0,0,0.03) 69px, transparent 70px),
    repeating-radial-gradient(circle at 50% 110%, transparent 0, transparent 58px, rgba(0,0,0,0.04) 59px, transparent 60px);
  pointer-events: none;
}

/* Archaeological Grid Lines */
.canvas-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 150px 150px;
  pointer-events: none;
}

/* Subtly beautiful Lake Turkana Map Underlay */
.canvas-map {
  position: absolute; top: 10%; left: 0; width: 100%; height: 90%;
  pointer-events: none; z-index: 1; /* Below strata items */
  display: flex; justify-content: center; opacity: 0.04;
}

.lake-path { fill: var(--brown); stroke: var(--brown); stroke-width: 2; }

.contour-path { fill: none; stroke: var(--brown); stroke-width: 1; stroke-dasharray: 4 4; }

/* Field Team Header */
.field-lab-header {
  text-align: center;
  margin-bottom: clamp(50px, 8vw, 80px);
  position: relative;
  z-index: 2;
}

.field-lab-header .label {
  font-size: 0.65rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--orange-dark); font-weight: 700; margin-bottom: 12px; display: block;
}

.field-lab-header h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--brown); line-height: 1.1; letter-spacing: -0.02em;
}

.stratum-block {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto 100px;
  display: flex;
  align-items: center;
  min-height: 250px;
}

.stratum-block:last-child { margin-bottom: 0; }

/* Abstract Giant Numbers fading into dirt */
.stratum-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif; font-size: clamp(8rem, 20vw, 24rem);
  color: rgba(0,0,0,0.03); font-weight: 700; pointer-events: none; line-height: 1;
  white-space: nowrap; user-select: none;
}

/* Deep strata get lighter text for contrast against dark bedrock */
.stratum-block:nth-child(n+3) .stratum-bg-text { color: rgba(255,255,255,0.03); }

/* Vertical Side Markers */
.stratum-side-label {
  position: absolute; left: -20px; top: 0; height: 100%;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--typewriter); font-size: 0.7rem; letter-spacing: 4px;
  color: rgba(0,0,0,0.4); text-transform: uppercase;
  display: flex; align-items: center; gap: 20px; font-weight: 700;
  user-select: none;
}

.stratum-block:nth-child(n+3) .stratum-side-label { color: rgba(255,255,255,0.4); }

.stratum-side-label::before {
  content: ''; width: 1px; height: 100px; background: currentColor; opacity: 0.3;
}

/* Fluid Scatter Layout for Notes */
.notes-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 50px);
  padding: 20px 0 20px 60px; /* offset for side label */
}

/* Interactive Field Notes (The Finds) */
.field-note {
  position: relative;
  width: 100%; max-width: 200px; aspect-ratio: 4/5;
  background: var(--paper-light);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo);
  padding: 12px;

  /* Abstract scatter logic driven by JS properties */
  transform: translate(var(--base-x, 0), var(--base-y, 0)) rotate(var(--base-rot, 0deg));
}

/* Tape effect */
.field-note::before {
  content: ''; position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 60px; height: 20px;
  background: rgba(230, 225, 210, 0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 2; border-radius: 1px;
}

/* Hard override on hover so it pops directly upward clearly */
.field-note:hover {
  transform: scale(1.08) translateY(calc(var(--base-y, 0px) - 15px)) rotate(0deg) !important;
  box-shadow: 5px 25px 40px rgba(0,0,0,0.2) !important;
  z-index: 10;
}

/* Inner polaroid / sketch frame */
.fn-frame {
  width: 100%; flex-grow: 1;
  background: var(--paper-dark);
  border: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; overflow: hidden; position: relative;
}

.fn-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 2px;
}

.fn-frame i { font-size: 2.5rem; color: rgba(61,35,33,0.3); transition: color 0.3s; }

.j-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) sepia(20%);
}

.field-note:hover .fn-frame i { color: var(--orange); }

/* Faint fossil silhouette on hover */
.fn-fossil {
  position: absolute; inset: 0; background: rgba(0,0,0,0.02);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s;
}

.field-note:hover .fn-fossil { opacity: 1; }

.fn-fossil i { font-size: 4rem; color: rgba(221,111,62,0.1); transform: rotate(-15deg);}

.fn-label {
  font-family: var(--typewriter); font-size: 0.75rem; font-weight: 700;
  color: var(--ink); text-transform: uppercase; letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stratum-side-label { display: none; }

  .notes-grid { padding-left: 0; gap: 16px; }

  .field-note {
    --base-x: 0px !important;
    --base-y: 0px !important;
    max-width: 46%;
  }

  .dig-site-fixed { padding: 48px 4%; }

  .team-section { padding-left: 16px; padding-right: 16px; }

  .leadership-grid { gap: 16px; }

  .journal-panel { max-height: 88vh; }

  .hero { min-height: 55vh; }

  .hero-content { padding: 0 20px 48px; }
}

/* ─── FIELD JOURNAL MODAL ─── */
.journal-overlay {
  position: fixed; inset: 0; background: rgba(44,26,24,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-expo);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}

.journal-overlay.is-open { opacity: 1; pointer-events: auto; }

.journal-panel {
  background: var(--paper-light);
  width: 100%; max-width: 1000px; max-height: 90vh;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  transform: translateY(40px) scale(0.98) rotate(1deg);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease var(--ease-expo);
  display: flex; position: relative;
  /* Paper texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

.journal-overlay.is-open .journal-panel { transform: translateY(0) scale(1) rotate(0deg); }

/* Journal Spine */
.journal-panel::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 40px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.05) 60%, transparent 100%);
  pointer-events: none; z-index: 10;
}

.journal-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: transparent; color: var(--ink); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease; z-index: 20;
}

.journal-close:hover { background: var(--ink); color: var(--paper-light); }

/* TIGHTENED JOURNAL CONTENT TO FIT WITHOUT SCROLLING */
.j-page { flex: 1; padding: 40px 48px; overflow-y: auto; height: 100%; position: relative;}

.j-page::-webkit-scrollbar { width: 6px; }

.j-page::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

/* Typewriter & Archival Styles inside Journal */
.j-stamp {
  position: absolute; top: 30px; right: 30px;
  border: 3px solid var(--orange-dark); color: var(--orange-dark);
  font-family: var(--typewriter); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; padding: 6px 12px; transform: rotate(12deg);
  opacity: 0.6; letter-spacing: 2px; border-radius: 4px;
}

.j-photo-wrap {
  width: 110px; height: 130px; background: var(--paper-dark);
  padding: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 24px; position: relative; transform: rotate(-2deg);
}

.j-photo-wrap::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 20px; background: rgba(230,225,210,0.9); box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.j-photo { width: 100%; height: 100%; background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--beige); border: 1px solid rgba(0,0,0,0.05);}

.j-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) sepia(20%); }

.j-name { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }

.j-role { font-family: var(--typewriter); font-size: 0.75rem; text-transform: uppercase; color: var(--orange-dark); font-weight: 700; margin-bottom: 8px; letter-spacing: 1px;}

.j-meta { font-family: var(--typewriter); font-size: 0.7rem; color: rgba(44,26,24,0.6); margin-bottom: 20px; border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 12px;}

.j-heading {
  font-family: var(--typewriter); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--teal-dark); margin-bottom: 4px; font-weight: 700;
}

.j-text { font-size: 0.85rem; color: var(--ink); line-height: 1.6; margin-bottom: 16px; font-weight: 400;}

.j-quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.05rem; color: var(--orange-dark); line-height: 1.5; margin: 20px 0; border-left: 3px solid rgba(221,111,62,0.3); padding-left: 16px;}

.j-table { width: 100%; margin-top: 12px; border-collapse: collapse; font-family: var(--typewriter); font-size: 0.75rem; }

.j-table th, .j-table td { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05); text-align: left; vertical-align: top;}

.j-table th { color: rgba(44,26,24,0.5); font-weight: 400; width: 40%; text-transform: uppercase; letter-spacing: 1px;}

.j-table td { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .journal-panel { flex-direction: column; overflow-y: auto; max-height: 85vh; }

  .journal-panel::after { display: none; }

  .j-page { padding: 30px 24px; height: auto; overflow: visible;}

  .j-page:first-child { border-bottom: 1px dashed rgba(0,0,0,0.1); }

  .j-stamp { top: 20px; right: 20px; font-size: 0.65rem; }

  .j-table th, .j-table td { display: block; width: 100%; padding: 4px 0; border: none;}

  .j-table th { margin-top: 12px; }

  .j-table td { border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 12px; }
}

/* ─── VALUES, CTA, FOOTER ─── */
.values { background: var(--brown); padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 120px); text-align: center; }

.values-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.value-icon { width: 48px; height: 48px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0,168,150,0.12); color: var(--teal); font-size: 18px; }

.value-item h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--sand); margin-bottom: 10px; }

.value-item p { font-size: 0.85rem; line-height: 1.85; color: rgba(243,233,210,0.6); }

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

.cta { padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 120px); text-align: center; background: var(--sand-200); }

.cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--brown); margin-bottom: 16px; }

.cta p { max-width: 480px; margin: 0 auto 36px; font-size: 0.95rem; color: rgba(61,35,33,0.65); line-height: 1.85; }

.btn-cta { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--brown); color: var(--brown); padding: 14px 38px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease; }

.btn-cta:hover { background: var(--brown); color: var(--sand); }

footer { background: var(--brown); color: white; padding: 60px 0 0; text-align: center; }

.compact-footer {
            display: grid;
            grid-template-columns: 1fr;
            width: 100%;
            font-size: 0.9rem;
        }

@media (min-width: 900px) {
  .compact-footer {
                grid-template-columns: 4fr 6fr;
            }
}

.footer-sand-pane {
            background-color: var(--color-sand);
            color: var(--text-dark);
            padding: 3.5rem 10% 2rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

.footer-brand img {
            max-height: 65px;
            width: auto;
            margin-bottom: 1.5rem;
            display: block;
        }

.copyright {
            font-size: 0.75rem;
            opacity: 0.6;
            margin-top: auto;
            padding-top: 2rem;
            line-height: 1.6;
        }

.ddx-attr {
            display: block;
            margin-top: 0.5rem;
        }

.ddx-attr a {
            color: inherit;
            text-decoration: none;
            font-weight: 700;
            border-bottom: 1px dotted var(--text-dark);
            transition: color 0.3s ease, border-color 0.3s ease;
        }

.ddx-attr a:hover {
            color: var(--color-copper-dark);
            border-bottom-color: transparent;
        }

.footer-copper-pane {
            background-color: var(--color-copper);
            color: var(--text-light);
            padding: 3.5rem 10% 2rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

.copper-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
        }

@media (min-width: 600px) {
  .copper-grid {
                grid-template-columns: 1fr 1fr;
                gap: 4rem;
            }
}

.newsletter-form {
            display: flex;
            border-bottom: 1px solid rgba(253, 252, 251, 0.3);
            transition: border-color 0.3s ease;
        }

.newsletter-form:focus-within {
            border-bottom-color: var(--color-sand);
        }

.newsletter-form input {
            background: transparent;
            border: none;
            color: var(--text-light);
            padding: 0.6rem 0;
            font-size: 0.9rem;
            font-family: var(--font-main);
            flex: 1;
            outline: none;
        }

.newsletter-form input::placeholder {
            color: rgba(253, 252, 251, 0.6);
        }

.newsletter-form button {
            background: transparent;
            border: none;
            color: var(--color-sand);
            font-weight: 700;
            cursor: pointer;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.05em;
            padding: 0 0 0 1rem;
            transition: opacity 0.2s ease;
        }

.newsletter-form button:hover {
            opacity: 0.7;
        }

:root {
    --lj-earth: #3D2321;
    --lj-paper: #F2EFE9;
    --lj-accent: #C5A059;
    --lj-ink-light: rgba(61, 35, 33, 0.6);
    --font-footer: 'Lato', sans-serif;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a, .ddx-attr a {
    color: var(--lj-earth);
    text-decoration: none;
    font-weight: 700;
}

.legal-links a:hover, .ddx-attr a:hover {
    text-decoration: underline;
}

.giraffe {
    display: inline-block;
    transition: transform 0.3s ease;
}

.ddx-attr:hover .giraffe {
    transform: translateY(-3px) scale(1.1);
}

.stub-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: var(--lj-accent);
}

.stub-heading {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.stub-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stub-form input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(61, 35, 33, 0.2);
    padding: 0.5rem 0;
    font-family: var(--font-footer);
    font-size: 0.95rem;
    color: var(--lj-earth);
    outline: none;
    transition: border-color 0.3s ease;
}

.stub-form input:focus {
    border-color: var(--lj-earth);
}

.stub-form input::placeholder {
    color: var(--lj-ink-light);
    font-style: italic;
}

.stub-form button {
    background-color: transparent;
    color: var(--lj-earth);
    border: 2px solid var(--lj-earth);
    padding: 0.6rem;
    border-radius: 6px;
    font-family: var(--font-footer);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
}

.stub-form button:hover {
    background-color: var(--lj-earth);
    color: var(--lj-paper);
}

.barcode {
    margin-top: 2rem;
    height: 30px;
    width: 100%;
    background:
        linear-gradient(90deg,
            var(--lj-earth) 0%, var(--lj-earth) 5%,
            transparent 5%, transparent 8%,
            var(--lj-earth) 8%, var(--lj-earth) 10%,
            transparent 10%, transparent 15%,
            var(--lj-earth) 15%, var(--lj-earth) 22%,
            transparent 22%, transparent 24%,
            var(--lj-earth) 24%, var(--lj-earth) 26%,
            transparent 26%, transparent 30%,
            var(--lj-earth) 30%, var(--lj-earth) 32%,
            transparent 32%, transparent 35%,
            var(--lj-earth) 35%, var(--lj-earth) 45%,
            transparent 45%, transparent 48%,
            var(--lj-earth) 48%, var(--lj-earth) 50%,
            transparent 50%, transparent 55%,
            var(--lj-earth) 55%, var(--lj-earth) 60%,
            transparent 60%, transparent 62%,
            var(--lj-earth) 62%, var(--lj-earth) 70%,
            transparent 70%, transparent 75%,
            var(--lj-earth) 75%, var(--lj-earth) 77%,
            transparent 77%, transparent 80%,
            var(--lj-earth) 80%, var(--lj-earth) 85%,
            transparent 85%, transparent 88%,
            var(--lj-earth) 88%, var(--lj-earth) 95%,
            transparent 95%, transparent 97%,
            var(--lj-earth) 97%, var(--lj-earth) 100%
        );
    opacity: 0.3;
}

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

.team-section--tight { padding-top: 0; }
