/* =============================================================
   Profile page (index.html)
   Hero geometry, the photo straddling hero/white and the fold
   behaviour of the bridge band are tuned values from review
   rounds; change them only together.
   ============================================================= */

/* ---------- side menu: sliding tabs from the right (original WP) ---------- */
.side-menu {
  position: fixed; top: 50%; right: -125px; z-index: 50;
  transform: translateY(-50%);
}
.side-menu ul { list-style: none; }
.side-menu a {
  display: flex; align-items: center;
  padding: 15px 25px 15px 15px;
  background: var(--blue-bright);
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform 300ms ease, border-radius 300ms ease, background 300ms ease;
}
.side-menu .sm-icon { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; flex: none; }
.side-menu .sm-icon svg { width: 22px; height: 22px; fill: #FFFFFF; }
.side-menu .sm-label { padding-left: 20px; }
.side-menu li:first-child a { border-radius: 5px 0 0 0; }
.side-menu li:last-child a { border-radius: 0 0 0 5px; }
.side-menu a:hover, .side-menu a.is-active { transform: translateX(-100px); border-radius: 5px 0 0 5px; color: #FFFFFF; }
.side-menu a.is-active { background: var(--blue-deep); }
@media (max-width: 1100px) { .side-menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  padding: 50px 30px 220px;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/images/hero-dna3d.jpg') center / cover no-repeat;
  background-image: image-set(url('/images/hero-dna3d.webp') type('image/webp'), url('/images/hero-dna3d.jpg') type('image/jpeg'));
}
@media (max-width: 767px) {
  .hero-bg { background-image: image-set(url('/images/hero-dna3d-m.webp') type('image/webp'), url('/images/hero-dna3d-m.jpg') type('image/jpeg')); }
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 23, 45, .30) 0%, rgba(21, 72, 123, .62) 60%, rgba(21, 72, 123, .70) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; width: 100%; }
.hero-eyebrow {
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  letter-spacing: .03em; text-transform: uppercase; line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-role {
  margin-top: 16px;
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: clamp(15px, 1.7vw, 21px); letter-spacing: .06em; text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero-actions { position: absolute; top: 28px; left: 30px; z-index: 3; display: flex; gap: 10px; }
.hero-actions .btn { padding: 11px 20px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0, 23, 45, .28); }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .75); color: #FFFFFF; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hero-actions .btn-ghost:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--blue); }
@media (max-width: 1100px) { .hero-actions { display: none; } }
@media (max-width: 1024px) {
  .hero { min-height: 500px; padding: 45px 28px 190px; }
}
@media (max-width: 767px) {
  .hero { min-height: 430px; padding: 36px 20px 150px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .22em; margin-bottom: 12px; }
  .hero-eyebrow .sep { display: block; height: 0; overflow: hidden; }
  .hero-role { margin-top: 12px; }
}
@media (max-width: 380px) { .hero h1 { font-size: 32px; } }

/* ---------- bridge band: photo straddles the hero edge, nav sits at the fold ---------- */
.bridge-band {
  position: relative; z-index: 5;
  min-height: calc(100vh - 540px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 220px 30px 36px;
  text-align: center;
  background: var(--paper);
}
.profile-photo {
  position: absolute; top: -190px; left: 50%; z-index: 6;
  width: 380px; height: 380px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 7px solid var(--blue);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .9), 0 22px 60px rgba(0, 23, 45, .25);
  overflow: hidden;
  background: #FFFFFF;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.inpage-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; }
.inpage-nav a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 2px;
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.inpage-nav a:hover { color: var(--blue-deep); border-bottom-color: var(--blue); }
.inpage-nav svg { width: 22px; height: 22px; fill: var(--blue-deep); }
@media (max-width: 1024px) {
  .bridge-band { padding: 190px 30px 32px; min-height: calc(100vh - 500px); }
  .profile-photo { width: 320px; height: 320px; top: -160px; border-width: 6px; }
  .inpage-nav { gap: 28px; }
  .inpage-nav a { font-size: 14px; }
}
@media (max-width: 900px) {
  .bridge-band { padding: 170px 24px 28px; min-height: 0; }
  .profile-photo { width: 280px; height: 280px; top: -140px; border-width: 5px; }
  .inpage-nav { gap: 8px 22px; }
  .inpage-nav a { font-size: 13px; letter-spacing: .05em; gap: 8px; }
  .inpage-nav svg { width: 17px; height: 17px; }
}
@media (max-width: 767px) {
  .bridge-band { padding: 140px 20px 8px; }
  .profile-photo { width: 240px; height: 240px; top: -120px; border-width: 5px; box-shadow: 0 0 0 7px rgba(255, 255, 255, .9), 0 16px 40px rgba(0, 23, 45, .22); }
  .inpage-nav { display: none; }
}

/* ---------- about + personal details ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.two-col h2 { margin-bottom: 20px; }
.about-text p { color: var(--ink-2); }
.about-text p:first-of-type { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.about-text .btn-row { margin-top: 26px; }
.details-list { list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.details-list li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.details-list li:last-child { border-bottom: 0; }
.details-list strong { color: var(--blue); font-family: 'Roboto', sans-serif; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.details-list a { overflow-wrap: anywhere; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 48px; max-width: 720px; } }
@media (max-width: 480px) {
  .details-list li { grid-template-columns: 1fr; gap: 0; padding: 12px 18px; }
}

/* ---------- experience timeline ---------- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding-left: 56px; }
.timeline-row {
  position: relative;
  display: grid; grid-template-columns: 230px 1fr; column-gap: 40px;
  padding: 18px 0 34px;
}
.timeline-row::before {               /* dot, centred on the date line */
  content: ''; position: absolute; top: 32px; left: -52px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%;
  background: #FFFFFF; border: 4px solid var(--blue-bright);
}
.timeline-row::after {                /* rail: this dot centre to the next dot centre */
  content: ''; position: absolute; top: 43px; bottom: -43px; left: -42px; z-index: 0;
  width: 2px; background: var(--blue-bright);
}
.timeline-row:last-child::after { display: none; }
.timeline-row .when { padding-top: 14px; }
.timeline-row .year {
  display: block; margin-bottom: 8px;
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-deep);
}
.timeline-row .where { display: flex; align-items: center; gap: 12px; }
.timeline-row .where img {
  width: 44px; height: 44px; flex: none;
  padding: 6px; object-fit: contain;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px;
}
.timeline-row .where img.logo-fill { padding: 2px; }   /* own icon: fill the tile (Manuela, note #81) */
.timeline-row .where span { font-weight: 600; color: var(--blue); font-size: 15.5px; line-height: 1.35; }
.timeline-row .what {
  padding: 14px 0 0;
}
.timeline-row .what h3 { font-size: 19px; margin-bottom: 10px; }
.timeline-row .what ul { list-style: none; }
.timeline-row .what li { position: relative; padding-left: 20px; margin-bottom: 7px; color: var(--ink-2); font-size: 14.5px; }
.timeline-row .what li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 7px; height: 2px; background: var(--blue); }
@media (max-width: 860px) {
  .timeline { padding-left: 36px; }
  .timeline-row { grid-template-columns: 1fr; row-gap: 6px; padding: 12px 0 26px; }
  .timeline-row::before { top: 14px; left: -34px; width: 18px; height: 18px; border-width: 3px; }
  .timeline-row::after { top: 23px; bottom: -23px; left: -26px; }
  .timeline-row .when { padding-top: 0; }
  .timeline-row .what { padding-top: 6px; }
}

/* ---------- abilities ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.tabs button {
  padding: 10px 26px;
  font-family: 'Roboto', sans-serif; font-weight: 500;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: #FFFFFF; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 5px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tabs button:hover, .tabs button[aria-selected="true"] { background: var(--blue); color: #FFFFFF; }
.tabs button[aria-selected="true"]:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.tab-panel[hidden] { display: none; }

.ability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: 0 auto; }
.ability-card {
  padding: 22px 22px 20px;
  background: #FFFFFF;
  border: 1px solid var(--blue);
  border-radius: 5px;
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
}
.ability-card:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 73, 141, .18); }
.ability-card .tag {
  display: block; margin-bottom: 8px;
  font-family: 'Roboto', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.ability-card h3 { font-size: 15.5px; line-height: 1.35; margin-bottom: 6px; }
.ability-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.ability-card .meta { font-size: 13px; color: var(--mute); }
.ability-card h3, .ability-card p, .ability-card .tag, .ability-card .meta { transition: color .2s; }
.ability-card:hover h3, .ability-card:hover p { color: #FFFFFF; }
.ability-card:hover .tag, .ability-card:hover .meta { color: rgba(255, 255, 255, .78); }
.lang-level { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 14px; }
.lang-level i { height: 5px; border-radius: 1px; background: var(--line); transition: background .2s; }
.lang-level i.on { background: var(--blue); }
.lang-level i.half { background: linear-gradient(90deg, var(--blue) 50%, var(--line) 50%); }
.ability-card:hover .lang-level i { background: rgba(255, 255, 255, .3); }
.ability-card:hover .lang-level i.on { background: #FFFFFF; }
.ability-card:hover .lang-level i.half { background: linear-gradient(90deg, #FFFFFF 50%, rgba(255, 255, 255, .3) 50%); }
.lang-scale { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 5px; font-size: 10px; letter-spacing: .06em; color: var(--mute); text-align: center; transition: color .2s; }
.ability-card:hover .lang-scale { color: rgba(255, 255, 255, .7); }
@media (max-width: 1024px) { .ability-grid { gap: 14px; } .ability-card { padding: 20px 18px 18px; } }
@media (max-width: 700px) { .ability-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .tabs button { padding: 9px 16px; font-size: 12px; } }

/* ---------- education: blue / white / blue rows ---------- */
.edu-grid { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.edu-row {
  display: grid; grid-template-columns: 170px 220px 1fr; gap: 24px;
  align-items: start;
  padding: 26px 32px;
  background: var(--paper);
}
.edu-row .year { font-family: 'Roboto', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); padding-top: 2px; }
.edu-row .place { font-weight: 600; font-size: 16px; color: var(--blue); line-height: 1.4; }
.edu-row .what strong { display: block; font-weight: 600; color: var(--ink); }
.edu-row .what span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.edu-row.tinted { background: var(--blue); }
.edu-row.tinted .year { color: rgba(255, 255, 255, .85); }
.edu-row.tinted .place, .edu-row.tinted .what strong { color: #FFFFFF; }
.edu-row.tinted .what span { color: rgba(255, 255, 255, .88); }
@media (max-width: 860px) { .edu-row { grid-template-columns: 1fr; gap: 4px; padding: 22px 24px; } }

/* ---------- contact ---------- */
.contact-block { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-block .quote { margin: 0 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-block p { color: var(--ink-2); }
.contact-block .btn-row { margin-top: 26px; }
