:root{
  --bg: #23262B;
  --surface: #2B2F35;
  --surface-2: #343940;
  --line: #454B53;
  --text: #F3F1ED;
  --muted: #ACB2B9;
  --honey: #CC9145;
  --honey-dim: #8F672E;
  --blue: #6C93B8;
  --blue-dim: #4A6B8A;
  --on-honey: #23262B;
  --on-honey-sub: #3A2C14;
  --header-bg: rgba(35,38,43,0.88);
  --shadow-lg: rgba(0,0,0,0.35);
  --hero-grid-tint: rgba(204,145,69,0.06);
}

[data-theme="light"]{
  --bg: #F7F4EE;
  --surface: #FFFFFF;
  --surface-2: #F0EAE0;
  --line: #E1D9C9;
  --text: #23262B;
  --muted: #6B6F76;
  --honey: #B5762C;
  --honey-dim: #D9BD8B;
  --blue: #3D6E93;
  --blue-dim: #BFD3E1;
  --on-honey: #FFFFFF;
  --on-honey-sub: #FBEEDD;
  --header-bg: rgba(247,244,238,0.88);
  --shadow-lg: rgba(35,38,43,0.14);
  --hero-grid-tint: rgba(181,118,44,0.09);
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.eyebrow{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey);
}

h1, h2, h3{
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible{
  outline: 2px solid var(--honey);
  outline-offset: 3px;
}

/* ---------- NAV ---------- */
header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 20px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo{
  font-family:'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo span{ color: var(--honey); }
.nav-links{
  display:flex;
  gap: 36px;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.active{ color: var(--honey); }
.nav-right{ display:flex; align-items:center; gap:16px; }
.nav-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  border: 1px solid var(--honey-dim);
  color: var(--honey);
  padding: 0 20px;
  font-size: 0.88rem;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover{ background: var(--honey); color: var(--on-honey); }
.nav-toggle{ display:none; background:none; border:none; color:var(--text); font-size:1.4rem; cursor:pointer; line-height:1; }

/* ---------- THEME TOGGLE ---------- */
.theme-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:2px;
  background:none;
  color: var(--text);
  cursor:pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover{ border-color: var(--honey); color: var(--honey); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

/* ---------- LANGUAGE SELECTOR ---------- */
.lang-select{ position:relative; }
.lang-current{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  height: 40px;
  background:none;
  border:1px solid var(--line);
  color: var(--text);
  padding:0 12px;
  border-radius:2px;
  cursor:pointer;
  font-family:'Inter', sans-serif;
  font-size:0.85rem;
}
.lang-current:hover{ border-color: var(--honey); }
.flag-icon{ font-size:1.05rem; line-height:1; flex-shrink:0; display:inline-block; font-family: "Twemoji Mozilla","Noto Color Emoji","Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.lang-current .chev{ font-size:0.65rem; color: var(--muted); transition: transform 0.2s ease; }
.lang-select.open .lang-current .chev{ transform: rotate(180deg); }
.lang-dropdown{
  position:absolute;
  top: calc(100% + 8px);
  right:0;
  list-style:none;
  background: var(--surface);
  border:1px solid var(--line);
  min-width:172px;
  box-shadow: 0 16px 32px var(--shadow-lg);
  opacity:0;
  visibility:hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index:200;
}
.lang-select.open .lang-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.lang-dropdown li + li{ border-top:1px solid var(--line); }
.lang-dropdown li a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  font-size:0.88rem;
  color: var(--muted);
}
.lang-dropdown li a:hover{ background: var(--surface-2); color: var(--text); }
.lang-dropdown-up{ top:auto; bottom: calc(100% + 8px); }
.footer-lang .lang-dropdown{ right:0; }

.mobile-menu{ display:none; }
@media (max-width: 860px){
  .mobile-menu.open{
    display:flex;
    flex-direction:column;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a{
    padding: 16px 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
  }
  .mobile-menu a:hover{ color: var(--text); }
}

/* ---------- LEDGER SIGNATURE DEVICE ---------- */
.ledger{ position: relative; padding-left: 28px; }
.ledger::before{
  content:"";
  position:absolute;
  left:0; top:6px; bottom:6px;
  width:1px;
  background: linear-gradient(to bottom, var(--honey) 0%, var(--line) 100%);
}
.ledger-mark{
  position:absolute;
  left:-4px;
  width:9px; height:9px;
  background: var(--bg);
  border: 1px solid var(--honey);
  border-radius: 50%;
  top: 4px;
}

/* ---------- HERO ---------- */
.hero{ padding: 200px 0 120px; position: relative; overflow: hidden; }
.hero-grid{
  position:absolute;
  inset:0;
  background-image:
    repeating-linear-gradient(90deg, var(--hero-grid-tint) 0 1px, transparent 1px 120px);
  pointer-events:none;
}
.hero-top{
  position:relative;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items:center;
}
.hero-inner{ position:relative; }
.hero-visual{
  position:relative;
  aspect-ratio: 4/3.4;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
}
.hero-visual svg{ width:100%; height:100%; }
.hero-visual img{ width:100%; height:100%; object-fit:cover; }
.hero-visual .tag-chip{
  position:absolute;
  left:20px; bottom:20px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--text);
  background: var(--header-bg);
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.hero h1{ font-size: clamp(2.6rem, 5vw, 4.2rem); margin: 20px 0 24px; }
.hero h1 em{ font-style: italic; color: var(--honey); }
.hero p.lede{ font-size: 1.15rem; color: var(--muted); max-width: 580px; margin-bottom: 40px; }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; }
.btn{ display:inline-block; padding: 14px 28px; font-size: 0.95rem; border-radius: 2px; transition: all 0.2s ease; border: none; cursor: pointer; font-family: inherit; }
.btn-primary{ background: var(--honey); color: var(--on-honey); font-weight: 600; }
.btn-primary:hover{ background:#dba459; }
.btn-secondary{ border: 1px solid var(--line); color: var(--text); background: none; }
.btn-secondary:hover{ border-color: var(--blue); color: var(--blue); }

.stat-strip{
  margin-top: 90px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 32px;
  gap: 24px;
}
.stat-strip .stat-num{ font-family:'Fraunces', serif; font-size: 2rem; color: var(--text); }
.stat-strip .stat-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ---------- SECTION SHARED ---------- */
section{ padding: 110px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.section-head{ max-width: 640px; margin-bottom: 64px; }
.section-head-sub{ margin-top: 80px; padding-top: 64px; border-top: 1px solid var(--line); }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 14px; }
.section-head p{ color: var(--muted); margin-top: 16px; font-size: 1.02rem; }

.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible{ opacity: 1; transform: translateY(0); }

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{ background: var(--bg); padding: 40px; display:block; }
.service-card .ledger-mark{ top:44px; }
.service-card h3{ font-size: 1.3rem; margin-bottom: 12px; }
.service-card p{ color: var(--muted); font-size: 0.96rem; }
.service-card .tag{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- ABOUT ---------- */
.about-intro{
  max-width: 780px;
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 64px;
  padding: 28px 32px;
  background: var(--surface);
  border-left: 2px solid var(--honey);
}
.dept-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dept-card{ background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.dept-card .dept-name{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.dept-card h3{ font-size: 1.12rem; margin-bottom: 6px; }
.dept-card .lead-row{ display:flex; align-items:center; gap: 12px; margin-top: 16px; }
.avatar{
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--honey-dim);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif;
  color: var(--honey);
  font-size: 1.15rem;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img{
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.lead-info .lead-name{ font-size: 0.92rem; color: var(--text); }
.lead-info .lead-title{ font-size: 0.78rem; color: var(--muted); }

/* ---------- RESULTS ---------- */
.results-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.result-card{ background: var(--bg); padding: 36px; }
.result-num{ font-family:'Fraunces', serif; font-size: 2.3rem; color: var(--honey); }
.result-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 10px;
}

.satisfaction-banner{ margin-top: 64px; background: var(--honey); }
.satisfaction-inner{
  display:flex;
  align-items:center;
  gap: 32px;
  padding: 44px 32px;
  flex-wrap: wrap;
}
.satisfaction-num{
  font-family:'Fraunces', serif;
  font-size: 3rem;
  color: var(--on-honey);
  font-weight: 600;
  flex-shrink: 0;
}
.satisfaction-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-honey);
  margin-bottom: 6px;
}
.satisfaction-text p:last-child{ color: var(--on-honey-sub); font-size: 1.02rem; max-width: 640px; }

/* ---------- WORKSHOPS ---------- */
.workshop-accordion{ border-top: 1px solid var(--line); }
.workshop-item{ border-bottom: 1px solid var(--line); }
.workshop-header{
  width:100%;
  display:flex;
  align-items:center;
  gap: 20px;
  padding: 26px 4px;
  background:none;
  border:none;
  cursor:pointer;
  text-align:left;
  color: var(--text);
  font-family: inherit;
}
.workshop-status{
  flex-shrink:0;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 84px;
  text-align:center;
}
.status-upcoming{ color: var(--honey); border-color: var(--honey-dim); }
.status-running{ color: var(--blue); border-color: var(--blue-dim); }
.status-held{ color: var(--muted); }
.workshop-title-group{ flex:1; min-width:0; }
.workshop-title-group h3{ font-size: 1.15rem; margin-bottom: 4px; }
.workshop-title-group .workshop-meta{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.workshop-chevron{
  flex-shrink:0;
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 0.25s ease, color 0.25s ease;
}
.workshop-item.open .workshop-chevron{ transform: rotate(180deg); color: var(--honey); }
.workshop-panel{
  max-height:0;
  overflow:hidden;
  transition: max-height 0.35s ease;
}
.workshop-panel-inner{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items:start;
  padding: 0 4px 30px;
}
.workshop-image{
  aspect-ratio: 4/3.1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow:hidden;
}
.workshop-image svg{ width:100%; height:100%; }
.workshop-image img{ width:100%; height:100%; object-fit:cover; }
.workshop-text p{ color: var(--muted); margin-bottom: 22px; max-width: 640px; }

/* ---------- BLOG ---------- */
.blog-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:stretch;
}
.blog-visual{
  position:relative;
  aspect-ratio: 4/3.3;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
}
.blog-img{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 0.35s ease;
}
.blog-img.active{ opacity:1; }
.blog-img svg{ width:100%; height:100%; }
.blog-img img{ width:100%; height:100%; object-fit:cover; }
.blog-list{ list-style:none; display:flex; flex-direction:column; }
.blog-list li{
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  cursor:pointer;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.blog-list li:last-child{ border-bottom: 1px solid var(--line); }
.blog-list li .blog-cat{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.blog-list li h3{ font-size: 1.06rem; font-weight:500; color: var(--text); }
.blog-list li:hover, .blog-list li.active{
  background: var(--surface);
  padding-left: 28px;
  border-left: 2px solid var(--honey);
}
.blog-list li:hover h3, .blog-list li.active h3{ color: var(--honey); }

/* ---------- CONTACT ---------- */
.contact-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.field{ margin-bottom: 22px; }
.field label{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.field input, .field textarea{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  border-radius: 2px;
}
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--honey); }
.field textarea{ resize: vertical; min-height: 110px; }
.recaptcha-field{ margin-bottom: 24px; }
.btn-primary:disabled{ opacity:0.5; cursor:not-allowed; }
.btn-primary:disabled:hover{ background: var(--honey); }
.form-alert{ padding: 14px 18px; margin-bottom: 22px; border: 1px solid var(--line); font-size: 0.92rem; }
.form-alert.error{ border-color: #b5544c; color: #e2897f; }
.form-alert.success{ border-color: var(--honey-dim); color: var(--honey); }

.contact-info{ display:flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info-layer{
  background: var(--surface);
  padding: 30px 32px;
  display:flex;
  gap: 18px;
  align-items:flex-start;
}
.info-icon{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--blue-dim);
  display:flex; align-items:center; justify-content:center;
  color: var(--blue);
  flex-shrink: 0;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}
.info-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.info-value{ font-size: 1rem; color: var(--text); }
.info-value.sub{ font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

/* ---------- FOOTER ---------- */
footer{ border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner{ display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 16px; }
.footer-inner .muted{ color: var(--muted); font-size: 0.85rem; }
.footer-links{ display:flex; gap: 24px; }
.footer-links a{ color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover{ color: var(--honey); }

/* ---------- INSIGHTS PORTFOLIO ---------- */
.insights-portfolio{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight-card{
  display:flex;
  flex-direction:column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.insight-card:hover{ border-color: var(--honey); transform: translateY(-3px); }
.insight-card-link{ display:contents; color:inherit; text-decoration:none; }
.insight-image{ aspect-ratio: 4/3; background: var(--surface-2); overflow:hidden; }
.insight-image svg{ width:100%; height:100%; }
.insight-image img{ width:100%; height:100%; object-fit:cover; }
.insight-card-body{ padding: 26px; display:flex; flex-direction:column; flex:1; }
.insight-cat{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.insight-card-body h3{ font-size: 1.15rem; margin-bottom: 12px; }
.insight-excerpt{ color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; flex:1; }
.insight-read{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- INSIGHT AUTHOR BYLINE ---------- */
.author-byline{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.author-byline a{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--text);
}
.author-byline a:hover .author-byline-name{ color: var(--honey); }
.avatar-sm{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--honey-dim);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif;
  color: var(--honey);
  font-size: 0.78rem;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-sm img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.author-byline-name{ font-size: 0.85rem; transition: color 0.15s ease; }

/* ---------- WORKSHOPS LIST ---------- */
.workshop-list{ display:flex; flex-direction:column; border-top: 1px solid var(--line); }
.workshop-row{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items:center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.workshop-row-image{
  aspect-ratio: 4/3.1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow:hidden;
}
.workshop-row-image svg{ width:100%; height:100%; }
.workshop-row-image img{ width:100%; height:100%; object-fit:cover; }
.workshop-row-content h3{ font-size: 1.4rem; margin: 12px 0 10px; }
.workshop-row-content h3 a{ color: var(--text); }
.workshop-row-content h3 a:hover{ color: var(--honey); }
.workshop-row-content .workshop-meta{ display:block; margin-bottom: 18px; }
.workshop-row-content p.workshop-row-desc{ color: var(--muted); margin-bottom: 24px; max-width: 640px; }

/* ---------- DETAIL PAGES (insight / workshop / service) ---------- */
.back-link{
  display:inline-block;
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.back-link:hover{ color: var(--honey); }
.detail-header{ max-width: 760px; }
.detail-header h1{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 16px 0 20px; }
.detail-meta-row{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom: 8px; }
.detail-image{
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
  margin: 36px 0;
  max-width: 860px;
}
.detail-image svg{ width:100%; height:100%; }
.detail-image img{ width:100%; height:100%; object-fit:cover; }
.detail-body{ max-width: 720px; }
.detail-body p{ color: var(--text); margin-bottom: 22px; font-size: 1.03rem; }
.detail-body h3{ font-size: 1.15rem; margin: 32px 0 16px; }
.detail-body ul{ margin: 0 0 28px 0; padding: 0; list-style: none; }
.detail-body ul li{
  color: var(--muted);
  padding-left: 24px;
  position: relative;
  margin-bottom: 14px;
}
.detail-body ul li::before{
  content:"";
  position:absolute;
  left:0; top:9px;
  width:8px; height:1px;
  background: var(--honey);
}
.detail-attend{
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin-bottom: 32px;
  max-width: 720px;
}
.detail-attend p{ margin-bottom:0; color: var(--muted); }
.detail-attend .attend-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display:block;
  margin-bottom: 10px;
}

/* ---------- WORKSHOP INSTRUCTOR BOX ---------- */
.instructor-box{
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin: 28px 0 8px;
  max-width: 760px;
  display:flex;
  flex-direction:column;
  gap: 20px;
}
.instructor-box-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--honey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.instructor-row{
  display:flex;
  gap: 16px;
  align-items:flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.instructor-row:first-of-type{ padding-top:0; border-top:none; }
.instructor-avatar{ width: 56px; height: 56px; font-size: 1rem; }
.instructor-name{ font-size: 1rem; color: var(--text); font-weight:600; }
.instructor-title{ font-size: 0.82rem; color: var(--honey); margin-bottom: 6px; }
.instructor-description{ color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.instructor-stat{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- AUTHOR PAGE ---------- */
.author-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom: 40px;
}
.author-hero .avatar{ margin-bottom: 18px; }
.author-hero h1{ margin: 6px 0 12px; }
.author-description{
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 20px;
}
.author-stats{ display:flex; gap: 32px; margin-top: 18px; justify-content:center; }
.author-stat{ display:flex; flex-direction:column; }
.author-stat-num{ font-family:'Fraunces', serif; font-size: 1.7rem; color: var(--honey); line-height:1; }
.author-stat-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---------- CUSTOM PAGE HERO BANNER ---------- */
.page-hero-banner{
  width: 100%;
  aspect-ratio: 21/8;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
  margin-bottom: 20px;
}
.page-hero-banner img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 640px){
  .page-hero-banner{ aspect-ratio: 16/9; }
}

/* ---------- PAGE BUILDER BLOCKS ---------- */
.page-block{ padding: 56px 0; }
.page-block h2{ margin-bottom: 20px; }
.page-block-body{ color: var(--text); max-width: 760px; }
.page-block-body p{ margin-bottom: 20px; }

.two-col-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items:center;
}
.page-block-two-col.image-right .two-col-image{ order: 2; }
.two-col-image{
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
}
.two-col-image img{ width:100%; height:100%; object-fit:cover; }

.accordion-list{ max-width: 760px; }
.accordion-item{
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.accordion-item summary{
  cursor:pointer;
  font-family:'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--text);
}
.accordion-item .accordion-body{ color: var(--muted); margin-top: 14px; }

.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.portfolio-card{
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
}
.portfolio-card-link{ display:block; color:inherit; text-decoration:none; }
.portfolio-image{ aspect-ratio: 4/3; overflow:hidden; }
.portfolio-image img{ width:100%; height:100%; object-fit:cover; }
.portfolio-body{ padding: 20px; }
.portfolio-body h3{ font-size: 1.02rem; margin-bottom: 8px; }
.portfolio-body p{ color: var(--muted); font-size: 0.9rem; }

@media (max-width: 780px){
  .two-col-wrap{ grid-template-columns: 1fr; }
  .page-block-two-col.image-right .two-col-image{ order: 0; }
}

/* ---------- INSIGHT BODY SNIPPETS (inserted via Manage Insights) ---------- */
.insight-two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items:center;
  margin: 28px 0;
}
.insight-two-col-image{
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow:hidden;
}
.insight-two-col-image img{ width:100%; height:100%; object-fit:cover; }
.insight-pull-quote{
  font-family:'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--honey);
  border-left: 2px solid var(--honey);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
}
@media (max-width: 640px){
  .insight-two-col{ grid-template-columns: 1fr; }
}

/* ---------- CATEGORY FILTER (Insights / Workshops) ---------- */
.category-filter{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
  margin-bottom: 32px;
}
.category-chip{
  font-family:'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  cursor:pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.category-chip:hover{ color: var(--text); border-color: var(--honey-dim); }
.category-chip.active{
  color: var(--bg);
  background: var(--honey);
  border-color: var(--honey);
}

/* ---------- ADMIN ---------- */
.admin-shell{ padding: 150px 0 100px; min-height: 60vh; }
.admin-grid{ display:grid; grid-template-columns: 220px 1fr; gap: 48px; align-items:start; }
.admin-side{ display:flex; flex-direction:column; gap:4px; border: 1px solid var(--line); background: var(--surface); }
.admin-side a{ padding: 14px 18px; font-size: 0.9rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.admin-side a:last-child{ border-bottom:none; }
.admin-side a:hover, .admin-side a.active{ color: var(--honey); background: var(--surface-2); }
.admin-card{ background: var(--surface); border: 1px solid var(--line); padding: 28px; margin-bottom: 24px; }
.admin-table{ width:100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td{ text-align:left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th{ font-family:'IBM Plex Mono', monospace; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--muted); }
.admin-table tr.unread{ background: var(--surface-2); }
.admin-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.admin-actions form{ display:inline; }
.btn-sm{ padding: 8px 16px; font-size: 0.82rem; }
.btn-danger{ border: 1px solid #b5544c; color:#e2897f; background:none; }
.btn-danger:hover{ background:#b5544c; color:#fff; }
.login-wrap{ max-width: 420px; margin: 0 auto; padding: 180px 0 100px; }
.login-card{ background: var(--surface); border: 1px solid var(--line); padding: 40px 36px; }
.badge{ display:inline-block; font-family:'IBM Plex Mono', monospace; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; padding: 3px 8px; border:1px solid var(--honey-dim); color: var(--honey); border-radius:2px; }
.admin-img-preview{ width:220px; aspect-ratio:4/3; object-fit:cover; border:1px solid var(--line); display:block; margin-bottom:12px; background:var(--surface-2); }
.admin-thumb{ width:64px; height:48px; object-fit:cover; border:1px solid var(--line); display:block; }
.field .hint{ display:block; margin-top:6px; font-size:0.8rem; color:var(--muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
  .nav-cta{ display:none; }
  .hero-top{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; aspect-ratio: 16/9; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
  .services-grid{ grid-template-columns: 1fr; }
  .dept-grid{ grid-template-columns: 1fr; }
  .results-grid{ grid-template-columns: 1fr; }
  .satisfaction-inner{ flex-direction:column; align-items:flex-start; text-align:left; }
  .workshop-header{ flex-wrap:wrap; gap:10px 16px; padding:20px 4px; }
  .workshop-status{ order:-1; }
  .workshop-panel-inner{ grid-template-columns: 1fr; }
  .workshop-image{ aspect-ratio: 16/9; }
  .blog-grid{ grid-template-columns: 1fr; }
  .blog-visual{ aspect-ratio: 16/10; }
  .contact-wrap{ grid-template-columns: 1fr; }
  section{ padding: 72px 0; }
  .hero{ padding: 150px 0 72px; }
  .insights-portfolio{ grid-template-columns: 1fr; }
  .workshop-row{ grid-template-columns: 1fr; padding: 32px 0; gap:24px; }
  .workshop-row-image{ aspect-ratio: 16/9; }
  .admin-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ---------- RIGHT-TO-LEFT (Arabic / Persian / Hebrew / Urdu) ----------
   [dir="rtl"] is set on <html> by components/header.php based on which
   nav_languages row is marked `is_current` — an explicit, admin-confirmed
   setting (see admin/manage-languages.php), not detected from a visitor's
   cookie or browser. Most two-column
   layouts here are built with CSS grid/flexbox, which automatically
   mirror themselves once the browser's `direction` is right-to-left
   (inherited from the dir="rtl" attribute) — the header nav, hero
   text/image columns, workshop/insight image+text rows, the contact
   form + info columns, and the admin sidebar all flip position for
   free. Everything below patches the handful of spots that use
   *physical* left/right values (absolute positioning, borders,
   padding, text-align) which don't mirror on their own. */

[dir="rtl"] body{ text-align: right; }

[dir="rtl"] .lang-dropdown{ right: auto; left: 0; }
[dir="rtl"] .footer-lang .lang-dropdown{ right: auto; left: 0; }

[dir="rtl"] .ledger{ padding-left: 0; padding-right: 28px; }
[dir="rtl"] .ledger::before{ left: auto; right: 0; }
[dir="rtl"] .ledger-mark{ left: auto; right: -4px; }

[dir="rtl"] .hero-visual .tag-chip{ left: auto; right: 20px; }

[dir="rtl"] .about-intro{ border-left: none; border-right: 2px solid var(--honey); }

[dir="rtl"] .workshop-header{ text-align: right; }

[dir="rtl"] .blog-list li{ transition: background 0.2s ease, padding-right 0.2s ease; }
[dir="rtl"] .blog-list li:hover, [dir="rtl"] .blog-list li.active{
  padding-left: 20px;
  padding-right: 28px;
  border-left: none;
  border-right: 2px solid var(--honey);
}

[dir="rtl"] .detail-body ul li{ padding-left: 0; padding-right: 24px; }
[dir="rtl"] .detail-body ul li::before{ left: auto; right: 0; }

[dir="rtl"] .insight-pull-quote{ border-left: none; border-right: 2px solid var(--honey); padding: 4px 24px 4px 0; }

[dir="rtl"] .admin-table th, [dir="rtl"] .admin-table td{ text-align: right; }

@media (max-width: 860px){
  [dir="rtl"] .satisfaction-inner{ align-items: flex-end; text-align: right; }
}
