/* ============================================================
   Mohamed Sahbi / WebCraftDev Portfolio — styles
   Cinematic dark/gold, oversized type, generous space
   ============================================================ */

:root {
  --bg-dark: #0A0A0A;
  --bg-dark-2: #111111;
  --bg-light: #FAFAF8;
  --bg-light-2: #F5F2EB;
  --fg-on-dark: #F5F2EB;
  --fg-on-light: #1A1A1A;
  --charcoal: #2A2A2A;
  --muted-on-dark: #8A8076;
  --muted-on-light: #6B6B66;
  --gold-h: 44;
  --gold-s: 60%;
  --gold-l: 54%;
  --gold: hsl(var(--gold-h) var(--gold-s) var(--gold-l));
  --gold-dim: hsl(var(--gold-h) calc(var(--gold-s) - 20%) calc(var(--gold-l) - 14%));
  --gold-soft: hsl(var(--gold-h) var(--gold-s) calc(var(--gold-l) + 6%) / 0.18);
  --gold-line: hsl(var(--gold-h) var(--gold-s) var(--gold-l) / 0.32);
  --success: #6FBF73;
  --rule-dark: rgba(245, 242, 235, 0.12);
  --rule-light: rgba(0, 0, 0, 0.10);
  --display: 'Space Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--fg-on-dark);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

deck-stage {
  --bg: #000;
}

deck-stage section {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  font-family: var(--body);
}

/* base tones */
.tone-dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.tone-dark-2 { background: var(--bg-dark-2); color: var(--fg-on-dark); }
.tone-light { background: var(--bg-light); color: var(--fg-on-light); }
.tone-light-2 { background: var(--bg-light-2); color: var(--fg-on-light); }
.tone-gold { background: var(--gold); color: #0A0A0A; }

/* ============================================================
   Typography
   ============================================================ */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.display-black {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.86;
}
.kicker {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker-on-light {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.body-lg {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
}
.body-md {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
}
.body-sm {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}
.mono {
  font-family: var(--mono);
}

/* ============================================================
   Page chrome (frame, page number, logo)
   ============================================================ */
.frame {
  position: absolute;
  inset: 0;
  padding: 72px 96px;
}
.frame-tight {
  position: absolute;
  inset: 0;
  padding: 56px 80px;
}
.page-chrome-top {
  position: absolute;
  top: 56px;
  left: 96px;
  right: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 4;
}
.page-chrome-bottom {
  position: absolute;
  bottom: 56px;
  left: 96px;
  right: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 4;
}
.page-num {
  color: var(--muted-on-dark);
}
.tone-light .page-num,
.tone-light-2 .page-num { color: var(--muted-on-light); }
.muted {
  color: var(--muted-on-dark);
}
.tone-light .muted,
.tone-light-2 .muted { color: var(--muted-on-light); }

/* logo */
.wcd-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.wcd-logo:hover { opacity: 0.85; }
.wcd-logo:visited { color: inherit; }
.wcd-mark-img {
  height: 32px;
  width: auto;
  display: block;
}
.wcd-text {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 16px;
  color: var(--fg-on-dark);
}
.tone-light .wcd-text,
.tone-light-2 .wcd-text { color: var(--fg-on-light); }

/* clickable chrome text (e.g. webcraftdev.com in PageBottom, hero contact bar) */
.chrome-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.chrome-link:visited { color: inherit; }
.chrome-link:hover {
  color: var(--gold);
  opacity: 1;
}

/* ============================================================
   Reusable components
   ============================================================ */
.gold-rule {
  height: 1px;
  background: var(--gold);
  width: 64px;
}
.gold-rule-long {
  height: 1px;
  background: var(--gold-line);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.tone-light .tag,
.tone-light-2 .tag {
  border-color: rgba(138, 115, 64, 0.4);
  color: var(--gold-dim);
}
.tag-mono {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: rgba(245, 242, 235, 0.06);
  border: 1px solid rgba(245, 242, 235, 0.10);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-on-dark);
  white-space: nowrap;
}
.tone-light .tag-mono,
.tone-light-2 .tag-mono {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--charcoal);
}

/* placeholder image frame */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(201, 168, 76, 0.05) 0 2px,
      transparent 2px 14px
    ),
    rgba(245, 242, 235, 0.03);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  overflow: hidden;
}
.placeholder::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  width: 18px; height: 18px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}
.placeholder::after {
  content: "";
  position: absolute;
  bottom: 12px; right: 12px;
  width: 18px; height: 18px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}
.placeholder .ph-label {
  padding: 10px 16px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--gold-line);
}
.tone-light .placeholder,
.tone-light-2 .placeholder {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(138, 115, 64, 0.07) 0 2px,
      transparent 2px 14px
    ),
    rgba(0, 0, 0, 0.02);
  border-color: rgba(138, 115, 64, 0.4);
  color: var(--gold-dim);
}
.tone-light .placeholder .ph-label,
.tone-light-2 .placeholder .ph-label {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(138, 115, 64, 0.3);
}

/* ============================================================
   Animated reveals (per-slide)
   ============================================================ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

deck-stage section[data-active="true"] .reveal {
  animation: riseIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
deck-stage section[data-active="true"] .reveal-1 { animation-delay: 0.05s; }
deck-stage section[data-active="true"] .reveal-2 { animation-delay: 0.18s; }
deck-stage section[data-active="true"] .reveal-3 { animation-delay: 0.32s; }
deck-stage section[data-active="true"] .reveal-4 { animation-delay: 0.46s; }
deck-stage section[data-active="true"] .reveal-5 { animation-delay: 0.60s; }
deck-stage section[data-active="true"] .reveal-6 { animation-delay: 0.74s; }
deck-stage section[data-active="true"] .reveal-7 { animation-delay: 0.88s; }

deck-stage section[data-active="true"] .draw-line {
  transform-origin: left center;
  animation: drawLine 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
deck-stage section[data-active="true"] .scale-in {
  animation: scaleIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}
deck-stage section[data-active="true"] .fade-in {
  animation: fadeIn 1.2s ease 0.2s both;
}

/* ============================================================
   Cover-specific
   ============================================================ */
.cover-wordmark {
  font-size: 360px;
  letter-spacing: -0.05em;
  line-height: 0.82;
}
.cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 242, 235, 0.025) 1px, transparent 1px);
  background-size: 96px 100%;
  pointer-events: none;
}
.cover-glow {
  position: absolute;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--gold-h) var(--gold-s) var(--gold-l) / 0.18) 0%, transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

/* ============================================================
   Service / pillar cards
   ============================================================ */
.pillar {
  position: relative;
  padding: 36px 36px 40px;
  border: 1px solid var(--rule-dark);
  background: rgba(245, 242, 235, 0.015);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 360px;
}
.pillar .pillar-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.18em;
}
.pillar .pillar-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.pillar .pillar-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted-on-dark);
}
.pillar .pillar-corner {
  position: absolute;
  top: 0; right: 0;
  width: 32px; height: 32px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  opacity: 0.6;
}

/* ============================================================
   Process / steps
   ============================================================ */
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule-dark);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.step .step-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
}
.step .step-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step .step-body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted-on-dark);
  max-width: 700px;
}

/* ============================================================
   Stats row
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--rule-dark);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }
.stat .stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.stat .stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 14px;
}

/* ============================================================
   Case study hero
   ============================================================ */
.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  height: 100%;
  align-items: center;
}
.case-hero-grid > * { min-width: 0; }
.case-hero-shot {
  position: relative;
  height: 100%;
  max-height: 720px;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  background: #050505;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(201, 168, 76, 0.08);
}
.case-hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #050505;
  transition: transform 0.4s ease;
}
.case-hero-shot img:hover { transform: scale(1.015); }
.case-hero-shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
  pointer-events: none;
}

.metric-inline {
  font-family: var(--display);
  font-weight: 800;
  font-size: 84px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
}
.metric-inline-sm {
  font-size: 64px;
}

.metric-mega {
  font-family: var(--display);
  font-weight: 700;
  font-size: 240px;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}
.metric-mega-sm {
  font-size: 200px;
}

/* portrait frame for Who slide */
.portrait-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  background: #050505;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(201, 168, 76, 0.08);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  display: block;
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.portrait-cap {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
}

/* case detail layout — columns + gallery */
.case-detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  margin-top: 36px;
  align-items: start;
  flex: 1;
  min-height: 0;
  max-height: 720px;
  overflow: hidden;
}
.case-detail-layout > * { min-width: 0; min-height: 0; max-height: 100%; }
.case-gallery {
  max-height: 100%;
  overflow: hidden;
}
.case-cols-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.case-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.case-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.case-col p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.case-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.case-col li {
  font-size: 15px;
  line-height: 1.5;
  padding: 9px 0;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.case-col li::before {
  content: "→";
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
}
.tone-light .case-col li,
.tone-light-2 .case-col li { border-color: var(--rule-light); }

/* Case detail gallery */
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.5fr 1fr;
  gap: 12px;
  height: 100%;
}
.case-gallery figure:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
}
.case-gallery figure {
  margin: 0;
  position: relative;
  min-height: 0;
}
.case-gallery .shot-frame {
  position: relative;
  aspect-ratio: auto;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  background: #060606;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.case-gallery figure:not(:first-child) .shot-frame {
  aspect-ratio: auto;
}
.case-gallery .shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #060606;
  transition: transform 0.4s ease;
}
.case-gallery .shot-frame img:hover { transform: scale(1.015); }

/* Two-image gallery (e.g. Tanit, Feima) — desktop screenshots stacked
   vertically so each takes the full column width and stays readable. */
.case-gallery--two {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.case-gallery--two figure:first-child {
  grid-column: auto;
  grid-row: auto;
}
.case-gallery--two figure { height: 100%; min-height: 0; }
.case-gallery--two .shot-frame { aspect-ratio: auto; height: 100%; }
.case-gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  pointer-events: none;
}
.case-gallery figure { position: relative; }

.quote-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: start;
}
.tone-light .quote-bar,
.tone-light-2 .quote-bar { border-color: var(--rule-light); }
.quote-bar .qmark {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--gold);
}
.quote-bar .qbody {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  font-style: italic;
}
.quote-bar .qattr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 12px;
}
.tone-light .quote-bar .qattr,
.tone-light-2 .quote-bar .qattr { color: var(--muted-on-light); }

.stack-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   More projects grid
   ============================================================ */
.more-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 24px;
  align-content: start;
}
.more-grid .more-card { grid-column: span 2; }
.more-grid .more-card:nth-child(4) { grid-column: 2 / span 2; }
.more-grid .more-card:nth-child(5) { grid-column: 4 / span 2; }
.more-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--rule-dark);
  background: rgba(245, 242, 235, 0.015);
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.more-card:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--gold-line);
}
.more-card .mc-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #050505;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-dark);
}
.more-card .mc-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.more-card .mc-shot-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--muted-on-dark);
  text-align: center;
  padding: 16px;
}
.more-card .mc-num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.18em;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--gold-line);
  padding: 4px 8px;
  z-index: 2;
}
.more-card .mc-text {
  padding: 22px 22px 14px;
}
.more-card .mc-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.more-card .mc-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-on-dark);
  margin-top: 10px;
}
.more-card .mc-stack {
  padding: 0 22px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: auto;
}

/* ============================================================
   Stack page
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.stack-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-line);
}
.stack-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-col li {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  position: relative;
}
.timeline-item {
  display: contents;
}
.timeline {
  grid-template-columns: 160px 1fr !important;
  gap: 36px !important;
  row-gap: 4px !important;
}
.timeline .tl-year {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: -0.02em;
  padding: 14px 0;
}
.timeline .tl-body {
  padding: 14px 0;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  align-items: baseline;
  gap: 32px;
}
.timeline .tl-title {
  font-size: 22px !important;
  margin-bottom: 0 !important;
}
.timeline .tl-desc {
  font-size: 18px !important;
  line-height: 1.5 !important;
  max-width: 820px;
  color: var(--muted-on-dark);
}
.tone-light .timeline .tl-body,
.tone-light-2 .timeline .tl-body { border-color: var(--rule-light); }
.timeline .tl-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.timeline .tl-desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-on-dark);
  max-width: 760px;
}
.tone-light .timeline .tl-desc,
.tone-light-2 .timeline .tl-desc { color: var(--muted-on-light); }

/* ============================================================
   Testimonial cards
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.testi {
  padding: 40px 36px;
  border: 1px solid var(--rule-dark);
  background: rgba(245, 242, 235, 0.018);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
}
.testi .tq {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  font-style: italic;
}
.testi .tq::before {
  content: "“";
  display: block;
  font-family: var(--display);
  font-size: 88px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 14px;
}
.testi .ta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
}
.tone-light .testi .ta,
.tone-light-2 .testi .ta {
  color: var(--muted-on-light);
  border-color: var(--rule-light);
}

/* ============================================================
   Why-me blocks
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  min-height: 620px;
}
.why-block {
  grid-column: span 2;
  padding: 56px 36px;
  border-right: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
}
.why-block:nth-child(3) { border-right: none; padding-right: 0; }
.why-block:nth-child(4) {
  grid-column: 2 / span 2;
  border-top: 1px solid var(--rule-dark);
}
.why-block:nth-child(5) {
  grid-column: 4 / span 2;
  border-top: 1px solid var(--rule-dark);
  border-right: none;
  padding-right: 0;
}
.why-block:first-child { padding-left: 0; }
/* enlarge for the 3+2 layout to fill the slide and read clearly at 1080p */
.why-grid .why-block .wb-num {
  font-size: 13px;
  margin-bottom: 32px;
}
.why-grid .why-block .wb-title {
  font-size: 32px;
  min-height: auto;
  margin-bottom: 22px;
  line-height: 1.15;
}
.why-grid .why-block .wb-body {
  font-size: 19px;
  line-height: 1.55;
}
.why-block .wb-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 20px;
}
.why-block .wb-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  min-height: 80px;
}
.why-block .wb-body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-on-dark);
}

/* ============================================================
   Languages
   ============================================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.lang {
  padding: 40px 32px;
  border: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.lang .l-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
}
.lang .l-level {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.lang .l-bar {
  height: 2px;
  background: var(--rule-dark);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.lang .l-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(var(--lvl, 1));
}
.lang .l-iso {
  position: absolute;
  bottom: 24px; right: 32px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 120px;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.08;
  letter-spacing: -0.05em;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  height: 100%;
  align-items: center;
}
.contact-list {
  list-style: none;
  padding: 0; margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-dark);
  align-items: baseline;
}
.contact-list li .cl-key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.contact-list li .cl-val {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* QR code stand-in */
.qr-frame {
  width: 360px;
  height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  background: rgba(245, 242, 235, 0.02);
  position: relative;
}
.qr-frame .qr-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
}
.qr-frame .qr-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.qr-frame .qr-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.qr-frame .qr-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.qr-frame .qr-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.qr-frame canvas, .qr-frame svg {
  width: 280px;
  height: 280px;
}

/* ============================================================
   Tweaks layer
   ============================================================ */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  backdrop-filter: blur(10px);
}
.lang-toggle button {
  background: transparent;
  color: var(--muted-on-dark);
  border: 0;
  padding: 9px 16px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--gold);
  color: #0A0A0A;
  font-weight: 600;
}

/* light variant overrides */
.theme-light deck-stage section.tone-dark { background: var(--bg-light); color: var(--fg-on-light); }
.theme-light deck-stage section.tone-dark-2 { background: var(--bg-light-2); color: var(--fg-on-light); }
.theme-light deck-stage section.tone-light { background: var(--bg-dark); color: var(--fg-on-dark); }
.theme-light deck-stage section.tone-light-2 { background: var(--bg-dark-2); color: var(--fg-on-dark); }

/* When inverted, the tone-aware muted/border tokens need to flip too */
.theme-light .tone-dark, .theme-light .tone-dark-2 {
  --muted-on-dark: var(--muted-on-light);
  --rule-dark: var(--rule-light);
}
.theme-light .tone-light, .theme-light .tone-light-2 {
  --muted-on-light: var(--muted-on-dark);
  --rule-light: rgba(245, 242, 235, 0.12);
}

/* utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }

/* hover-reveal layer for case detail interaction */
.peek {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 32px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0));
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.placeholder:hover .peek { opacity: 1; }

/* ============================================================
   Contact CTA buttons (slide 21)
   ============================================================ */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: var(--gold);
  color: #0A0A0A;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 32px -12px rgba(201, 168, 76, 0.5);
}
.btn-cta:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(201, 168, 76, 0.55);
}
.btn-cta-arrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.25s ease;
}
.btn-cta:hover .btn-cta-arrow { transform: translateX(4px); }

/* WhatsApp variant — outlined gold, hover to WhatsApp green for the cue */
.btn-cta-whatsapp {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: none;
}
.btn-cta-whatsapp:hover {
  background: #25D366;
  color: #0A0A0A;
  border-color: #25D366;
  box-shadow: 0 18px 40px -14px rgba(37, 211, 102, 0.55);
}
.btn-cta-whatsapp svg { display: block; }

/* Contact list values that turned into anchors should look like links
   (gold on hover) without any underline noise. */
.contact-list li .cl-val-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.contact-list li .cl-val-link:visited { color: inherit; }
.contact-list li .cl-val-link:hover { color: var(--gold); }

/* ============================================================
   Lightbox — fullscreen image viewer
   ============================================================ */
body.lb-open { overflow: hidden; }
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 2, 2, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lb-fade-in 0.2s ease;
}
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  box-shadow: 0 40px 100px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(201, 168, 76, 0.15);
  background: #050505;
}
.lb-img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-size: 36px;
  line-height: 1;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  transition: background 0.2s ease, transform 0.2s ease;
}
.lb-close:hover {
  background: var(--gold);
  color: #0A0A0A;
  transform: rotate(90deg);
}
.lb-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  pointer-events: none;
}
