/* ===========================================================
   Julius Bieliauskas — CV & portfolio · Malta edition
   Palette: Maltese limestone, Globigerina honey, Mediterranean
   blue and a touch of Maltese red. Typography: Cormorant Garamond
   (display) and Inter (text). Edit the tokens in :root to re-colour.
   =========================================================== */
:root {
  --limestone: #f4ecdb;
  --limestone-2: #ebdfc6;
  --limestone-3: #dccba9;
  --honey: #d7a548;
  --honey-soft: #efd9a6;
  --honey-deep: #98691a;
  --sea: #0d5c8f;
  --sea-mid: #1a7aae;
  --sea-deep: #0a3a5c;
  --sea-ink: #072a43;
  --sea-soft: #a9d5ea;
  --red: #b5242b;
  --ink: #1b2630;
  --muted: #5f6a72;
  --line: rgba(27, 38, 48, .12);
  --white: #ffffff;
  --cream-text: #fbf5e6;

  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(10, 58, 92, .45);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--limestone);
  background-image: radial-gradient(900px 500px at 12% -10%, rgba(255, 252, 244, .85), transparent 60%),
                    radial-gradient(700px 500px at 100% 40%, rgba(215, 165, 72, .10), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 2 * clamp(20px, 5vw, 48px)); margin-inline: auto; }
.section { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.section-sea { background: linear-gradient(170deg, var(--sea-deep) 0%, var(--sea) 58%, var(--sea-mid) 100%); color: #eaf4f9; }
.section-sand { background: linear-gradient(180deg, var(--limestone-2), var(--limestone)); }
.section-deep { background: var(--sea-deep); color: #eaf4f9; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--honey); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }

/* Eyebrow with a small honey Maltese cross */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--honey-deep); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M42 3 L50 13 L58 3 L61 14 L61 39 L86 39 L97 42 L87 50 L97 58 L86 61 L61 61 L61 86 L58 97 L50 87 L42 97 L39 86 L39 61 L14 61 L3 58 L13 50 L3 42 L14 39 L39 39 L39 14 Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M42 3 L50 13 L58 3 L61 14 L61 39 L86 39 L97 42 L87 50 L97 58 L86 61 L61 61 L61 86 L58 97 L50 87 L42 97 L39 86 L39 61 L14 61 L3 58 L13 50 L3 42 L14 39 L39 39 L39 14 Z'/></svg>") center / contain no-repeat;
}
.eyebrow-light { color: var(--honey); }

.section-title { font-size: clamp(42px, 5.6vw, 70px); color: var(--ink); max-width: 17ch; font-weight: 600; }
.section-title em { color: var(--sea-mid); font-weight: 500; }
.section-title-light { color: #fff; }
.section-title-light em { color: var(--honey); }
.section-lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin-top: 10px; }
.section-sea .section-lede, .section-deep .section-lede { color: #cfe6f2; }
.section-head { margin-bottom: clamp(38px, 5vw, 58px); }
.sub-title { font-size: 34px; margin-bottom: 22px; }
.t-date { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 26px; border-radius: 999px;
  font-family: var(--text); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: linear-gradient(180deg, #e2b25a, var(--honey)); color: var(--ink); box-shadow: 0 12px 26px -14px rgba(215, 165, 72, .95); }
.btn-solid:hover { background: linear-gradient(180deg, #ecc173, #dfae52); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- Progress & header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sea-soft), var(--honey)); }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled { background: rgba(10, 58, 92, .94); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.cross-mark { width: 30px; height: 30px; fill: var(--honey); flex: none; }
.brand-mark { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: .02em; }
.brand-mark span { color: var(--honey); }
.brand-text { font-size: 11px; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-soft); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .25); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { color: #e6f2f8; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 13px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-link:hover { background: rgba(255, 255, 255, .1); }
.nav-link.active { color: var(--honey); }
.nav-cta { background: var(--honey); color: var(--ink) !important; margin-left: 8px; font-weight: 600; }
.nav-cta:hover { background: #e2b25a !important; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 27px; }
.site-header.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-header.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media {
  position: absolute; inset: -6% 0 -6%; z-index: -2;
  background: url("assets/photos/07.jpg") center 60% / cover no-repeat;
  translate: 0 0; will-change: translate;
  animation: hero-zoom 26s var(--ease) infinite alternate;
}
@keyframes hero-zoom { from { scale: 1; } to { scale: 1.08; } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 42, 67, .35) 0%, rgba(7, 42, 67, .40) 40%, rgba(7, 42, 67, .92) 100%),
    radial-gradient(120% 80% at 0% 100%, rgba(7, 42, 67, .85), transparent 60%);
}
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 150px; }
/* Large faint Maltese cross behind the title */
.hero-inner::after {
  content: ""; position: absolute; right: -4%; top: 14%; width: min(46vw, 520px); aspect-ratio: 1; z-index: -1;
  background: var(--honey); opacity: .10;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M42 3 L50 13 L58 3 L61 14 L61 39 L86 39 L97 42 L87 50 L97 58 L86 61 L61 61 L61 86 L58 97 L50 87 L42 97 L39 86 L39 61 L14 61 L3 58 L13 50 L3 42 L14 39 L39 39 L39 14 Z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M42 3 L50 13 L58 3 L61 14 L61 39 L86 39 L97 42 L87 50 L97 58 L86 61 L61 61 L61 86 L58 97 L50 87 L42 97 L39 86 L39 61 L14 61 L3 58 L13 50 L3 42 L14 39 L39 39 L39 14 Z'/></svg>") center / contain no-repeat;
  animation: spin-slow 80s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero .eyebrow {
  color: #fff; font-size: 12px; background: rgba(10, 58, 92, .55); padding: 8px 16px 8px 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
}
.hero .eyebrow::before { background: var(--honey); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 0 rgba(215, 165, 72, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 165, 72, .6); } 70% { box-shadow: 0 0 0 10px rgba(215, 165, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(215, 165, 72, 0); } }
.hero-title { font-size: clamp(64px, 10.5vw, 136px); line-height: .92; color: #fff; margin: 18px 0 20px; font-weight: 500; text-shadow: 0 2px 26px rgba(7, 42, 67, .45); }
.hero-title span { font-style: italic; color: var(--honey); font-weight: 500; }
.hero-role { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 500; margin-bottom: 18px; color: #eaf4f9; min-height: 1.3em; text-shadow: 0 2px 18px rgba(7, 42, 67, .6); }
.role-static { color: var(--sea-soft); }
.role-typed { color: #fff; font-style: italic; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--honey); margin-left: 4px; vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-lede { max-width: 56ch; font-size: 17.5px; color: #e4f0f7; margin-bottom: 32px; text-shadow: 0 2px 18px rgba(7, 42, 67, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wave { position: absolute; left: 0; width: 100%; height: 140px; display: block; pointer-events: none; overflow: hidden; }
.wave-hero { bottom: -1px; height: 150px; z-index: 2; }
.wave-hero .wave-back { fill: rgba(169, 213, 234, .30); animation: drift 14s ease-in-out infinite alternate; }
.wave-hero .wave-front { fill: var(--limestone); animation: drift 9s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
.wave-top { top: -1px; height: 90px; fill: var(--limestone); }
.wave-bottom { bottom: -1px; height: 90px; fill: var(--limestone); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--d, 0) * 1ms); }

/* ---------- Stats ---------- */
.stats { background: transparent; padding: 0 0 clamp(40px, 6vw, 72px); position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -44px; border: 1px solid var(--line); border-top: 3px solid var(--honey); overflow: hidden; }
.stat { padding: 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--display); font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--sea); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.stat-label { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.portrait { margin: 0; perspective: 1100px; }
.arch {
  position: relative; border-radius: 999px 999px 22px 22px; overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 10px var(--limestone), 0 0 0 11px var(--honey), var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d;
}
.arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -60px 80px -40px rgba(10, 58, 92, .35); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { margin-top: 26px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.about-copy .section-title { margin-bottom: 20px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.pillars li { padding: 20px 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--sea-mid); transition: transform .3s var(--ease), box-shadow .3s; }
.pillars li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillars strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pillars span { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Guest journey ---------- */
.journey { background: var(--limestone); color: var(--ink); border-radius: 26px; padding: clamp(24px, 4vw, 42px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); border: 1px solid rgba(215, 165, 72, .35); }
.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.journey-step {
  appearance: none; border: 1px solid var(--line); background: var(--white); border-radius: 14px;
  padding: 15px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px;
  transition: all .3s var(--ease);
}
.journey-step:hover { border-color: var(--honey); transform: translateY(-2px); }
.journey-step .js-num { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--honey-deep); }
.journey-step .js-label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.journey-step.is-active { background: var(--sea); border-color: var(--sea); }
.journey-step.is-active .js-num { color: var(--honey-soft); }
.journey-step.is-active .js-label { color: #fff; }
.journey-bar { height: 3px; background: var(--line); border-radius: 3px; margin: 22px 0 8px; overflow: hidden; }
.journey-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sea-mid), var(--honey)); border-radius: 3px; }
.journey-bar span.run { animation: fill-bar 6.5s linear forwards; }
@keyframes fill-bar { from { width: 0; } to { width: 100%; } }
.journey-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; min-height: 230px; padding-top: 12px; }
.journey-panel.swap .journey-text { animation: swap-in .5s var(--ease); }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.journey-text h3 { font-size: clamp(32px, 3.8vw, 44px); color: var(--sea-deep); font-weight: 600; }
.journey-text p { color: var(--muted); font-size: 17.5px; max-width: 52ch; margin: 0; }
.journey-visual { display: grid; place-items: center; }
.jv-icon {
  width: 176px; height: 176px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #ffffff, var(--limestone) 55%, var(--honey-soft));
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, .75), 0 20px 40px -20px rgba(154, 105, 26, .5);
  animation: float 6s ease-in-out infinite;
}
.jv-icon svg { width: 82px; height: 82px; fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jv-icon svg .accent { stroke: var(--honey-deep); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chips-loc { margin-top: -6px; margin-bottom: 30px; }
.chip {
  appearance: none; border: 1px solid rgba(27, 38, 48, .18); background: var(--white); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-family: var(--text); font-weight: 500; font-size: 14.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--honey); }
.chip.is-active { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.chip .count { font-size: 12px; background: rgba(27, 38, 48, .08); padding: 1px 8px; border-radius: 999px; }
.chip.is-active .count { background: rgba(215, 165, 72, .35); color: #fff; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.ph {
  appearance: none; border: 0; padding: 0; margin: 0 0 18px; width: 100%; display: block;
  break-inside: avoid; position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: var(--limestone-2); box-shadow: 0 10px 24px -18px rgba(10, 58, 92, .6);
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .4s;
}
.ph.in { opacity: 1; transform: none; }
.ph[hidden] { display: none; }
.ph img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 42, 67, .88)); opacity: 0; transition: opacity .4s; }
.ph::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(239, 217, 166, .7); border-radius: 10px; opacity: 0; transform: scale(.98); transition: all .4s var(--ease); z-index: 1; pointer-events: none; }
.ph-meta { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; text-align: left; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.ph-meta strong { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.15; }
.ph-meta small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--honey-soft); }
.ph:hover img, .ph:focus-visible img { transform: scale(1.05); }
.ph:hover::after, .ph:focus-visible::after { opacity: 1; }
.ph:hover::before, .ph:focus-visible::before { opacity: 1; transform: none; }
.ph:hover .ph-meta, .ph:focus-visible .ph-meta { opacity: 1; transform: none; }
.ph:hover { box-shadow: 0 24px 40px -20px rgba(10, 58, 92, .7); }
.gallery-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Experience ---------- */
.timeline { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.job {
  display: grid; grid-template-columns: 200px 1fr; gap: 26px; background: var(--white);
  border-radius: var(--radius); padding: 26px 30px; border: 1px solid var(--line); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.job::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: linear-gradient(var(--sea-mid), var(--sea)); transition: background .3s; }
.job:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.job:hover::before { background: linear-gradient(var(--honey), var(--honey-deep)); }
.job.is-hidden { display: none; }
.job-when span { display: block; font-weight: 600; color: var(--sea); font-size: 15px; }
.job-when small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.job h3 { font-size: 26px; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.job-role { display: block; font-family: var(--text); font-size: 15px; font-weight: 600; color: var(--honey-deep); margin-top: 2px; margin-bottom: 10px; }
.job li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; margin-bottom: 5px; line-height: 1.6; }
.job li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--honey); }
.exp-status { font-size: 14px; color: var(--muted); margin: 18px 0 0; min-height: 1.4em; }

/* ---------- Education (white panels for the logos) ---------- */
.edu { margin-top: clamp(60px, 8vw, 92px); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.edu-logo { height: 120px; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.edu-logo img { max-height: 100%; width: auto; object-fit: contain; }
.edu-years { font-size: 12px; font-weight: 600; color: var(--honey-deep); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.edu-card h4 { font-size: 24px; font-weight: 600; }
.edu-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skill-card { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-card h3 { font-size: 26px; color: var(--sea-deep); margin-bottom: 16px; font-weight: 600; }
.skill-card h3.mt { margin-top: 26px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-static span { background: var(--limestone); color: var(--sea-deep); border: 1px solid var(--limestone-3); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chips-static span:hover { background: var(--sea); border-color: var(--sea); color: #fff; }
.lang-list { display: grid; gap: 10px; }
.lang-list li { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-radius: 12px; background: var(--limestone); font-weight: 500; }
.lang-list strong { color: var(--honey-deep); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.contact-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(215, 165, 72, .45); border-radius: 22px; padding: clamp(26px, 4vw, 42px); backdrop-filter: blur(6px); }
.contact-mail { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); color: #fff; text-decoration: none; word-break: break-all; border-bottom: 1px solid rgba(215, 165, 72, .7); padding-bottom: 8px; transition: color .25s, border-color .25s; }
.contact-mail:hover { color: var(--honey); border-color: var(--honey); }
.contact-actions { display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; flex-wrap: wrap; }
.copy-note { font-size: 14px; color: var(--sea-soft); }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); }
.contact-links a { display: block; padding: 13px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #eaf4f9; text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s, transform .2s; }
.contact-links a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ---------- Footer & top ---------- */
.site-footer { background: var(--sea-ink); color: #9fc2d6; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--honey); text-decoration: none; }
.to-top { position: fixed; right: 20px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--honey); color: var(--ink); font-size: 20px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5); }
.to-top[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 33, 52, .97);
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 64px 1fr 64px;
  color: #fff; animation: lb-in .35s var(--ease);
}
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px clamp(14px, 3vw, 28px); flex-wrap: wrap; }
.lb-count { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--honey-soft); }
.lb-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-tool { appearance: none; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; padding: 9px 16px; border-radius: 999px; font-family: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.lb-tool:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.lb-tool[aria-pressed="true"] { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.lb-close { background: transparent; }
.lb-nav { appearance: none; border: 0; background: transparent; color: #fff; font-size: 52px; line-height: 1; cursor: pointer; align-self: center; height: 80px; border-radius: 12px; transition: background .2s, color .2s; }
.lb-nav:hover { background: rgba(255, 255, 255, .08); color: var(--honey); }
.lb-prev { grid-column: 1; grid-row: 2; }
.lb-next { grid-column: 3; grid-row: 2; }
.lb-stage { grid-column: 2; grid-row: 2; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: opacity .3s var(--ease); }
.lb-stage.is-full { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lb-stage.is-full img { max-width: none; max-height: none; }
.lb-caption { grid-column: 1 / -1; text-align: center; padding: 14px 20px 20px; color: #d6e9f3; font-size: 15px; margin: 0; min-height: 3em; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .skills-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 260px; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(330px, 86%);
    background: var(--sea-deep); flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
    padding: 90px 28px 40px; transform: translateX(105%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .4);
  }
  .site-header.menu-open .nav { transform: none; }
  .nav-link { font-size: 19px; padding: 14px 16px; font-family: var(--display); font-weight: 600; }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .brand-text { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; width: 100%; margin: 0 auto; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job::before { display: none; }
  .journey-panel { grid-template-columns: 1fr; }
  .jv-icon { width: 130px; height: 130px; }
  .jv-icon svg { width: 60px; height: 60px; }
  .journey-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-inner { padding-bottom: 130px; }
  .stats-grid { grid-template-columns: 1fr 1fr; margin-top: -28px; }
  .stat { padding: 20px 16px; }
  .stat-label { font-size: 13px; }
  .pillars { grid-template-columns: 1fr; }
  .journey-steps { gap: 6px; }
  .journey-step { padding: 10px 6px; border-radius: 12px; }
  .journey-step .js-label { font-size: 12px; line-height: 1.2; }
  .journey-step .js-num { font-size: 14px; }
  .gallery { columns: 2 150px; column-gap: 12px; }
  .ph { margin-bottom: 12px; border-radius: 12px; }
  .ph-meta { opacity: 1; transform: none; left: 10px; right: 10px; bottom: 10px; }
  .ph-meta strong { font-size: 16px; }
  .ph-meta small { display: none; }
  .ph::after { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(7, 42, 67, .8)); }
  .ph:hover img { transform: none; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .lb { grid-template-columns: 44px 1fr 44px; }
  .lb-nav { font-size: 40px; height: 60px; }
  .lb-tool { padding: 8px 12px; font-size: 13px; }
  .lb-tools { width: 100%; justify-content: flex-start; }
  .chip { padding: 9px 14px; font-size: 13.5px; }
  .job { padding: 22px 22px; }
  .section-title { font-size: clamp(38px, 10vw, 50px); }
  .hero-inner::after { width: 70vw; opacity: .07; }
}
@media (max-width: 380px) {
  .gallery { columns: 1; }
  .journey-step .js-label { font-size: 11px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .ph { opacity: 1; transform: none; }
  .caret { display: none; }
}
