:root{
  --bg:#f6f1e8;
  --surface:#fffaf3;
  --soft:#efe4d6;
  --ink:#1b1916;
  --muted:rgba(27,25,22,.70);
  --line:rgba(27,25,22,.10);
  --accent:#c56a4a;
  --accent2:#2e5b57;
  --radius:18px;
  --shadow:0 14px 40px rgba(27,25,22,.10);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{ overflow-x:hidden; }
section, main{ scroll-margin-top:100px; }

body{
  font-family:"Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(197,106,74,.10), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(46,91,87,.10), transparent 60%),
    var(--bg);
  color:var(--ink);
  line-height:1.6;
}

img{ max-width:100%; display:block; }

.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

.section{ padding:96px 0; }

.section-soft{
  background:linear-gradient(180deg, var(--soft), rgba(242,241,238,.35));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section-head{ max-width:760px; margin-bottom:34px; }

.section-head h2,
.split h2{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:clamp(28px, 3vw, 40px);
  letter-spacing:.2px;
}

.about-copy h2{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:20px;
  letter-spacing:.2px;
  color:var(--ink);
}

.section-head p{ margin-top:10px; color:var(--muted); }

/* HEADER */
.site-header{
  position:fixed;
  top:0;
  width:100%;
  z-index:1000;
  border-bottom:1px solid var(--line);
  background:rgba(246,241,232,.78);
  backdrop-filter:blur(10px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 32px 14px 16px;
}

.brand{
  text-decoration:none;
  color:var(--ink);
  display:flex;
  white-space:nowrap;
  flex-direction:column;
  gap:2px;
}

.brand-name{
  font-family:"Playfair Display", serif;
  font-size:17px;
  font-weight:600;
  letter-spacing:.01em;
}

.brand-sub{
  font-size:11px;
  color:var(--muted);
  letter-spacing:.02em;
  margin-top:1px;
}

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

.nav a{
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  letter-spacing:.2px;
  padding:10px 12px;
  border-radius:14px;
  transition:.2s ease;
  white-space:nowrap;
}

.nav a:hover{
  color:var(--ink);
  background:rgba(0,0,0,.04);
}

.nav a.active{
  color:var(--ink);
  background:rgba(199,146,91,.18);
}

.lang-switcher{
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
}

.lang-btn{
  background:none;
  border:none;
  cursor:pointer;
  font-family:"Manrope", sans-serif;
  font-weight:700;
  font-size:12px;
  color:var(--muted);
  padding:4px 6px;
  border-radius:6px;
  letter-spacing:.05em;
  transition:color .2s, background .2s;
}

.lang-btn:hover{ color:var(--ink); background:rgba(0,0,0,.05); }
.lang-btn.lang-active{ color:var(--accent2); }
.lang-sep{ color:var(--line); font-size:12px; }

.nav-cta{
  color:var(--accent2) !important;
  background:rgba(46,91,87,.13);
  border:1px solid rgba(46,91,87,.30);
}

.nav-cta:hover{ background:rgba(46,91,87,.22) !important; }

.menu-btn{
  display:none;
  background:transparent;
  border:0;
  padding:8px;
  border-radius:12px;
}

.menu-btn span{
  display:block;
  width:22px;
  height:2px;
  background:var(--ink);
  margin:5px 0;
  border-radius:2px;
}

/* HERO */
.hero{
  position:relative;
  padding-top:92px;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  background:#000;
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  animation:heroSlide 36s infinite;
  will-change:opacity;
}

.hero-slide:nth-child(1){ animation-delay:0s; }
.hero-slide:nth-child(2){ animation-delay:9s; }
.hero-slide:nth-child(3){ animation-delay:18s; }
.hero-slide:nth-child(4){ animation-delay:27s; }

.hero-slide-blur{
  position:absolute;
  inset:-30px;
  width:calc(100% + 60px);
  height:calc(100% + 60px);
  object-fit:cover;
  filter:blur(22px) brightness(.45) saturate(1.2);
}

.hero-slide-sharp{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  filter:saturate(1.1) contrast(1.04);
}

@keyframes heroSlide{
  0%{ opacity:0; }
  3%{ opacity:1; }
  22%{ opacity:1; }
  28%{ opacity:0; }
  100%{ opacity:0; }
}

.hero::before{ display:none; }

.hero-inner{
  position:relative;
  z-index:2;
  padding:52px 0;
}

/* NEW split layout */
.hero-split{
  position:absolute;
  inset:0;
  top:92px;
  pointer-events:none;
}

.hero-title-wrap{
  position:absolute;
  top:60px;
  left:clamp(60px, 9vw, 160px);
  pointer-events:auto;
}

.hero-box-wrap{
  position:absolute;
  bottom:60px;
  right:clamp(24px, 5vw, 80px);
  width:min(480px, 44vw);
  pointer-events:auto;
}

.hero h1{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:clamp(36px, 5vw, 64px);
  text-decoration:underline;
  text-underline-offset:8px;
  text-decoration-thickness:2px;
  line-height:1.08;
  letter-spacing:.2px;
  margin-bottom:24px;
  color:#ffffff;
  -webkit-font-smoothing:antialiased;
}

.hero-text-slider{
  display:grid;
  background:rgba(0,0,0,0.42);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  padding:28px 36px;
}

.hero-text-item{
  grid-area:1/1;
  opacity:0;
  animation:heroSlide 36s infinite;
  min-width:0;
}

.hero-text-item:nth-child(1){ animation-delay:0s; }
.hero-text-item:nth-child(2){ animation-delay:9s; }
.hero-text-item:nth-child(3){ animation-delay:18s; }
.hero-text-item:nth-child(4){ animation-delay:27s; }

.hero-text-item h3{
  font-family:"Playfair Display", serif;
  font-size:clamp(21px, 2.4vw, 31px);
  line-height:1.25;
  margin-bottom:10px;
  color:#ffffff;
  -webkit-font-smoothing:antialiased;
}

.hero-text-item p{
  color:rgba(255,255,255,.85);
  margin-top:10px;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}

.hero-text-item strong{
  display:block;
  margin-top:14px;
  color:#ffffff;
  -webkit-font-smoothing:antialiased;
}

/* heroTextFade removed – merged into heroSlide */
@keyframes heroTextFade{
  0%{ opacity:0; }
  6%{ opacity:1; }
  22%{ opacity:1; }
  25%{ opacity:0; }
  100%{ opacity:0; }
}

/* COMMON */
.grid{ display:grid; gap:18px; }
.cards{ grid-template-columns:repeat(3, 1fr); }
.cards-4{ grid-template-columns:repeat(4, 1fr); }

@media (max-width:980px){ .cards-4{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:560px){ .cards-4{ grid-template-columns:1fr; } }

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  opacity:0;
  transform:translateX(-40px);
  transition:opacity 0.85s ease, transform 0.85s ease;
}

.card.slide-in{
  opacity:1;
  transform:translateX(0);
}

.card h3{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:20px;
}

.card p{ margin-top:10px; color:var(--muted); }

/* Card font variants */
.card--psychosom h3,
.card--emotion h3,
.card--trauma h3,
.card--body h3{ font-family:"IM Fell English",serif; font-size:20px; font-style:italic; font-weight:700; letter-spacing:normal; }

/* App badges (Viber, WhatsApp, FaceTime) */
.services-subtitle-apps{ color:var(--muted); }

.app-badges-row{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.app-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:50px;
  padding:5px 14px 5px 7px;
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
}

.app-logo{
  width:22px;
  height:22px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}

.card-list{
  margin-top:14px;
  padding-left:18px;
  color:var(--muted);
  display:grid;
  gap:6px;
}

.split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:start;
}

.lead-sm{
  margin-top:10px;
  color:var(--muted);
  font-size:16px;
}

.pill-row{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  background:rgba(197,106,74,.14);
  border:1px solid rgba(197,106,74,.26);
  color:rgba(27,25,22,.85);
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
}

.note{
  background:rgba(255,255,255,.78);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.note h3{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:20px;
}

.note p{ margin-top:10px; color:var(--muted); }

.note-row{
  margin-top:14px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.note-row .k{ display:block; font-size:12px; color:var(--muted); font-weight:700; }
.note-row .v{ display:block; font-size:13px; font-weight:900; }

/* APPROACH */
.approach-title{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:clamp(28px, 3vw, 40px);
  letter-spacing:.2px;
  text-align:left;
  margin-bottom:16px;
}

.approach-quote{
  text-align:right;
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
}

.approach-quote h3{
  font-family:"Playfair Display", serif;
  font-size:clamp(18px, 2vw, 24px);
  font-weight:600;
  color:var(--ink);
}

.approach-quote p{
  margin-top:4px;
  color:var(--muted);
  font-size:15px;
}

.approach-quote span{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.approach-text{
  max-width:820px;
}

/* SUPERVISION */
.supervision-title{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:clamp(28px, 3vw, 40px);
  letter-spacing:.2px;
  margin-bottom:24px;
}

.supervision-subtitle{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:20px;
  color:var(--ink);
  margin-bottom:16px;
  max-width:820px;
}

.seminar-subtitle{
  font-family:"Playfair Display", serif;
  font-size:17px;
  font-weight:500;
  color:var(--muted);
  margin-top:6px;
  max-width:680px;
  line-height:1.5;
}

.seminar-title{
  font-family:"Playfair Display", serif;
  font-weight:700;
  font-size:28px;
  color:var(--ink);
  margin-bottom:0;
  max-width:820px;
  line-height:1.3;
}

.supervision-text{
  max-width:100%;
}

.supervision-with-img{
  display:grid;
  grid-template-columns:1fr auto;
  gap:40px;
  align-items:start;
}

.approach-with-img{
  display:grid;
  grid-template-columns:1fr auto;
  gap:40px;
  align-items:start;
}

.approach-img{
  width:280px;
  height:400px;
  object-fit:cover;
  object-position:center 38%;
  border-radius:var(--radius);
  flex-shrink:0;
}

/* Diploma / parchment effect */
.diploma-paper{
  position:relative;
  background-color:#fdf6e3;
  background-image:
    radial-gradient(ellipse at top left, #f5e6c0 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, #f0dba8 0%, transparent 55%);
  border:2px solid #b8976a;
  outline:1px solid #d4b483;
  outline-offset:6px;
  padding:40px 44px;
  border-radius:3px;
  box-shadow:
    0 4px 12px rgba(0,0,0,.15),
    inset 0 0 40px rgba(180,140,80,.08);
  font-family:"Playfair Display", serif;
}

.diploma-paper::before,
.diploma-paper::after{
  content:"✦";
  position:absolute;
  color:#b8976a;
  font-size:18px;
  line-height:1;
}
.diploma-paper::before{ top:10px; left:14px; }
.diploma-paper::after{  bottom:10px; right:14px; }

.diploma-paper p{
  color:#3a2e1e;
  line-height:1.85;
  margin-bottom:14px;
}

/* Notebook paper effect */
.notebook-paper{
  position:relative;
  background-color:#fef9c3;
  background-image:
    linear-gradient(rgba(180,180,220,.25) 1px, transparent 1px);
  background-size:100% 30px;
  background-position:0 28px;
  border-left:3px solid #f87171;
  padding:28px 28px 28px 44px;
  border-radius:2px;
  box-shadow:
    2px 3px 8px rgba(0,0,0,.13),
    4px 6px 18px rgba(0,0,0,.07);
  transform:rotate(-0.4deg);
  line-height:30px;
}

.notebook-paper p{
  line-height:30px;
  margin-top:0;
  margin-bottom:0;
  padding:4px 0;
  color:#3a3a3a;
}

.supervision-img{
  width:360px;
  height:420px;
  object-fit:cover;
  object-position:center 38%;
  border-radius:var(--radius);
  flex-shrink:0;
}

@media(max-width:768px){
  .approach-with-img{
    grid-template-columns:1fr;
  }
  /* height was 220px, short enough that a tall/portrait photo (object-fit:cover, default center
     crop) lost people's faces off the top or bottom -- taller box + the object-position:center 20%
     set above (biases the crop toward the upper part of the photo) keeps faces in frame. */
  .approach-img{
    width:100%;
    height:300px;
    order:2;
  }
  .supervision-with-img{
    grid-template-columns:1fr;
  }
  .supervision-img{
    width:100%;
    height:300px;
  }
}

.supervision-divider{
  height:1px;
  background:var(--line);
  margin:40px 0;
}

/* ABOUT */
.about-row{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:32px;
  align-items:start;
}

.about-divider{ height:28px; }

.about-media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
  min-height:320px;
}

.about-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.about-media-stack{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-self:stretch;
}

.about-photo{
  width:100%;
  object-fit:cover;
  object-position:center;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:block;
}

.about-photo:first-child{
  height:320px;
  flex-shrink:0;
  object-position:top;
}

.about-photo:last-child{
  flex:1;
  min-height:0;
  height:0;
  object-view-box:inset(27.5% 0 27.5% 0);
  object-position:center;
}

.about-subtitle{
  font-size:14px;
  font-weight:700;
  color:var(--muted);
  margin-top:8px;
  letter-spacing:.2px;
}

.about-text{
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  display:grid;
  gap:16px;
  margin-top:14px;
}

.about-row--pubs{
  grid-template-columns:1.1fr .9fr;
  align-items:center;
}

.pubs-conferences{
  margin-top:40px;
}

.pubs-conferences-intro{
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  margin-bottom:24px;
}

.pub-title{
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:20px;
  margin-bottom:10px;
  padding-top:20px;
}

.pub-text{
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  margin-top:14px;
}

.pub-text p{
  margin-bottom:22px;
}

.pub-text p:last-child{
  margin-bottom:0;
}

.pub-media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
}

.pub-media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  aspect-ratio:4/3;
}

.toggle-bio{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:18px;
  background:none;
  border:1px solid var(--line);
  border-radius:20px;
  padding:7px 16px;
  font-family:"Manrope", sans-serif;
  font-weight:600;
  cursor:pointer;
  color:var(--ink);
  font-size:13px;
  transition:background .2s, border-color .2s;
}

.toggle-bio:hover{
  background:var(--surface);
  border-color:var(--accent2);
  color:var(--accent2);
}

.toggle-bio::after{ content:"▾"; font-size:11px; }

.extra-bio{
  margin-top:14px;
  display:none;
  animation:fadeIn .35s ease;
}

@keyframes fadeIn{
  from{ opacity:0; transform:translateY(-6px); }
  to{ opacity:1; transform:translateY(0); }
}

/* TALKS */
.talks{ grid-template-columns:repeat(3, 1fr); }

.talk{
  background:rgba(255,255,255,.78);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
}

.tag{
  display:inline-block;
  font-size:11px;
  font-weight:900;
  letter-spacing:.25px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(47,74,82,.10);
  border:1px solid rgba(47,74,82,.18);
  color:var(--accent2);
}

.talk h3{
  margin-top:10px;
  font-family:"Playfair Display", serif;
  font-weight:600;
  font-size:18px;
}

.talk p{
  margin-top:10px;
  color:var(--muted);
}

.mini-link{
  display:inline-block;
  margin-top:12px;
  border:none;
  background:transparent;
  text-decoration:none;
  font:inherit;
  font-weight:900;
  color:var(--accent2);
  cursor:pointer;
}

.mini-link:hover{ text-decoration:underline; }

/* OFFICE */
.office-gallery{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

.office-gallery img{
  width:100%;
  height:340px;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.12);
  transition:.4s ease;
  cursor:pointer;
}

.office-gallery img:hover{
  transform:scale(1.02);
  box-shadow:0 20px 60px rgba(0,0,0,.18);
}

@media(max-width:600px){
  .office-gallery{
    grid-template-columns:1fr;
  }
}

/* CONTACT */
.contact-solo{
  display:flex;
  justify-content:center;
}

.contact-card-wide{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px 36px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:36px;
  align-items:start;
  width:100%;
  max-width:860px;
}

.contact-info-col{
  display:flex;
  flex-direction:column;
  gap:4px;
}

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

.contact-line{ margin-top:10px; color:var(--muted); }
.contact-line a{ color:var(--accent2); text-decoration:none; font-weight:900; }
.contact-line a:hover{ text-decoration:underline; }

.map-wrap{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  height:260px;
}

.map-wrap iframe{
  width:100%;
  height:100%;
  border:0;
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

label{
  display:grid;
  gap:8px;
  font-weight:800;
  font-size:12px;
  color:var(--muted);
}

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  font:inherit;
  color:var(--ink);
  outline:none;
}

input:focus, textarea:focus{
  border-color:rgba(199,146,91,.55);
  box-shadow:0 0 0 4px rgba(199,146,91,.18);
}

.consent{
  margin-top:10px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-weight:700;
  color:var(--muted);
}

.consent input{ width:18px; height:18px; margin-top:2px; }

.small-note{
  margin-top:10px;
  color:rgba(21,21,21,.55);
  font-size:12px;
}

/* BACK TO TOP */
.back-to-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(219,131,29,.85);
  backdrop-filter:blur(8px);
  box-shadow:0 12px 30px rgba(0,0,0,.10);
  color:var(--ink);
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
  z-index:2000;
}

.back-to-top:hover{ transform:translateY(-2px); }
.back-to-top.show{ display:flex; }

/* TABS */
.tabs{ margin-top:18px; }

.tabs-bar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.55);
  box-shadow:0 10px 26px rgba(0,0,0,.05);
}

.tab{
  appearance:none;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  letter-spacing:.25px;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:.18s ease;
}

.tab:hover{
  color:var(--ink);
  background:rgba(0,0,0,.04);
}

.tab.is-active{
  color:var(--ink);
  background:rgba(199,146,91,.18);
  border-color:rgba(199,146,91,.30);
}

.tabs-panels{
  margin-top:14px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

.tab-panel{ display:none; animation:tabFade .25s ease; }
.tab-panel.is-active{ display:block; }

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

.tab-list{
  list-style:none;
  display:grid;
  gap:12px;
}

.tab-list li{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(251,250,247,.65);
}

.tab-muted{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}

/* MODAL */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:3000;
}

.modal.show{ display:block; }

.modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(4px);
}

.modal-box{
  position:relative;
  width:min(820px, 92%);
  margin:8vh auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 20px 70px rgba(0,0,0,.25);
  padding:22px;
  animation:modalIn .25s ease;
  max-height:84vh;
  display:flex;
  flex-direction:column;
}

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

.modal-close{
  position:absolute;
  top:12px;
  right:14px;
  border:none;
  background:transparent;
  font-size:28px;
  cursor:pointer;
  color:var(--muted);
}

.modal-close:hover{ color:var(--ink); }

.modal-tag{
  display:inline-block;
  width:max-content;
  font-size:11px;
  font-weight:900;
  letter-spacing:.25px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(47,74,82,.10);
  border:1px solid rgba(47,74,82,.18);
  color:var(--accent2);
  margin-bottom:10px;
}

#modalTitle{
  font-family:"Playfair Display", serif;
  font-size:24px;
  margin-right:34px;
}

.modal-body{
  margin-top:10px;
  color:var(--muted);
  line-height:1.85;
  overflow:auto;
  padding-right:8px;
}

.modal-body p{ margin-bottom:12px; }

.modal-body::-webkit-scrollbar{ width:10px; }
.modal-body::-webkit-scrollbar-thumb{
  background:rgba(27,25,22,.18);
  border-radius:999px;
}
.modal-body::-webkit-scrollbar-track{
  background:rgba(27,25,22,.06);
  border-radius:999px;
}

/* FOOTER */
.footer-dark{
  border-top:1px solid rgba(255,255,255,.10);
  padding:40px 0 0;
  background:#141311;
  color:rgba(255,255,255,.85);
}

.footer-dark a{
  color:rgba(255,255,255,.85);
  text-decoration:none;
  font-weight:700;
}

.footer-dark a:hover{ text-decoration:underline; }

.footer-dark-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:40px;
  align-items:start;
  padding-bottom:26px;
}

.footer-col h4{
  font-family:"Playfair Display", serif;
  font-weight:600;
  margin-bottom:10px;
  color:#fff;
}

.footer-logo{
  font-family:"Playfair Display", serif;
  font-weight:700;
  color:#fff;
  font-size:18px;
}

.footer-sub{ margin-top:8px; color:rgba(255,255,255,.75); }

.footer-links{
  list-style:none;
  display:grid;
  gap:8px;
  margin-top:10px;
}

.footer-phone{ display:block; margin-top:6px; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  padding:14px 0;
  background:#0f0e0d;
}

.footer-bottom-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.footer-bottom p{
  color:rgba(255,255,255,.65);
  font-size:12px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero-box-wrap{ width:calc(100% - 48px); right:24px; bottom:40px; }
  .hero-title-wrap{ left:24px; top:40px; }
  .hero-text-slider{ min-height:340px; }
  .split{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .talks{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .about-row{ grid-template-columns:1fr; }
  .about-divider{ height:0; }
  .about-photo:last-child{ max-height:320px; }
}

@media (max-width: 860px){
  .menu-btn{ display:block; }

  /* The subtitle ("Ψυχολόγος • Υπαρξιακός Αναλυτικός Ψυχοθεραπευτής") is long, and .brand
     inherited a nowrap meant for the short name line -- on narrow screens that forced the whole
     header wider than the viewport, pushing the ΕΛ/EN switcher off-screen and causing the page's
     layout viewport to expand past the device width (the "everything shifted left" symptom). */
  .brand{ white-space:normal; }
  .header-inner{ flex-wrap:wrap; }

  .nav{
    position:absolute;
    top:64px;
    right:4%;
    left:4%;
    background:rgba(255,255,255,.92);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:10px;
    display:none;
  }

  .nav.open{ display:block; }

  .nav ul{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  .nav a{ display:block; }

  .form-row{ grid-template-columns:1fr; }
  /* .footer-dark-inner is display:flex, not grid -- grid-template-columns here was a no-op, so
     the two footer columns never actually stacked and the contact column (email/phone) ran off
     the right edge of the screen instead. */
  .footer-dark-inner{ flex-direction:column; gap:24px; }
}

@media (max-width: 560px){
  .hero h1{ font-size:34px; }
  .hero-box-wrap{ width:calc(100% - 48px); }
  .hero-text-slider{ min-height:360px; padding:20px; }
  .tabs-bar{ border-radius:18px; padding:8px; }
  .tab{ padding:9px 12px; }
  .modal-box{ margin:10vh auto; }
}

/* BIOGRAPHY TEXT - same visual style as Publications */
.about-row--top{
  align-items:stretch;
}

.about-row--top .pub-title{
  padding-top:0;
  margin-bottom:10px;
}

.about-row--top .pub-text{
  color:var(--muted);
  font-size:15px;
  line-height:1.9;
  margin-top:14px;
}

.about-row--top .pub-text p{
  margin-bottom:22px;
}

.about-row--top .pub-text p:last-child{
  margin-bottom:0;
}
