/* =========================================================
   Ioanna Chantzou — Website-CV
   Dark cinematic · champagne gold accent
   ========================================================= */

:root {
  --bg:        #0b0b0d;
  --bg-2:      #101013;
  --surface:   #15151a;
  --text:      #f3efe7;
  --muted:     #9b978d;
  --faint:     #6a675f;
  --line:      rgba(243, 239, 231, 0.10);
  --line-soft: rgba(243, 239, 231, 0.06);
  --accent:    #c9a86a;
  --accent-2:  #e3cd9b;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #11100c; }

.wrap { width: min(var(--wrap), 88vw); margin: 0 auto; }

.section { position: relative; padding: clamp(90px, 14vh, 170px) 0; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: var(--line-soft);
}
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 64px);
  mix-blend-mode: difference;
}
.brand {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500; letter-spacing: 0.04em;
  color: #fff;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; opacity: 0.85; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: #fff; transition: width 0.4s var(--ease);
}
.nav a:hover::after { width: 100%; }
.lang { display: flex; align-items: center; gap: 8px; color: #fff; }
.lang button {
  background: none; border: none; color: #fff; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.12em;
  opacity: 0.5; transition: opacity 0.3s;
}
.lang button.is-active { opacity: 1; }
.lang span { opacity: 0.4; }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 15%, rgba(201,168,106,0.10), transparent 55%),
    radial-gradient(90% 80% at 15% 90%, rgba(255,255,255,0.04), transparent 60%),
    var(--bg);
}

/* huge faded surname in the background */
.hero__bgname {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 1;
}
.hero__bgname span {
  font-family: var(--serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(90px, 23vw, 360px);
  line-height: 1; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243,239,231,0.07);
  letter-spacing: -0.02em;
  transform: translateY(0);
}

.hero__inner {
  position: relative; z-index: 3;
  width: min(var(--wrap), 90vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 20px;
}

.hero__text { position: relative; z-index: 4; }
.hero__eyebrow {
  font-size: 12.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 26px;
}
.hero__name {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(54px, 9.2vw, 132px);
  line-height: 0.92; letter-spacing: -0.02em;
}
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line:last-child { font-style: italic; color: var(--accent-2); }
.hero__role {
  margin-top: 28px; font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted); letter-spacing: 0.02em;
}

/* photo (cut-out) — sits in front of the name */
.hero__photo {
  position: relative; z-index: 2;
  justify-self: center; align-self: end;
  height: 100svh; display: flex; align-items: flex-end;
}
.hero__photo img {
  height: 96vh; width: auto; max-width: none;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55));
}

.hero__printphoto { display: none; }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i {
  width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent);
  animation: drop 2.2s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 860px) {
  .hero { align-items: flex-start; }
  .hero__inner {
    grid-template-columns: 1fr; text-align: center;
    padding-top: 120px; gap: 0;
  }
  .hero__text { order: 1; }
  .hero__photo { order: 2; height: auto; margin-top: 24px; }
  .hero__photo img { height: auto; width: min(78vw, 380px); }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__role { margin-top: 18px; }
  .hero__bgname span { font-size: 38vw; }
}

/* ============================================================
   Shared section bits
   ============================================================ */
.kicker {
  font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
}
.section__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 5.2vw, 68px); line-height: 1.02;
  letter-spacing: -0.01em; margin-bottom: 52px;
}

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line-soft); }
.about__lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 3.1vw, 38px); line-height: 1.34;
  letter-spacing: -0.01em; max-width: 20ch; max-width: 900px;
  color: var(--text);
}
.about__lead { max-width: 900px; }
.about__facts {
  list-style: none; margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.about__facts li {
  padding: 26px 24px 26px 0; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.about__facts li:last-child { border-right: none; }
.about__facts .k {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
.about__facts .v { font-size: 16px; color: var(--text); }
@media (max-width: 760px) {
  .about__facts { grid-template-columns: 1fr 1fr; }
  .about__facts li { border-right: none; border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Career timeline ---------- */
.career { background: var(--bg-2); }
.timeline { list-style: none; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px;
  background: var(--line);
}
.t-item {
  position: relative; padding: 0 0 56px 48px;
}
.t-item:last-child { padding-bottom: 0; }
.t-item::before {
  content: ""; position: absolute; left: -4px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px rgba(201,168,106,0.12);
}
.t-period {
  font-size: 12.5px; letter-spacing: 0.14em; color: var(--accent);
  margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.t-role {
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400; line-height: 1.15;
}
.t-company {
  font-size: 15px; color: var(--muted); margin-top: 4px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.t-tag {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid var(--line);
  padding: 3px 10px; border-radius: 100px;
}
.t-bullets { list-style: none; margin-top: 16px; display: grid; gap: 7px; }
.t-bullets li {
  position: relative; padding-left: 20px; font-size: 15px; color: var(--muted);
}
.t-bullets li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 1px; background: var(--accent);
}

/* ---------- Education / Qualifications ---------- */
.edu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
@media (max-width: 760px) { .edu__grid { grid-template-columns: 1fr; gap: 60px; } }
.edu-card { padding: 26px 0; border-top: 1px solid var(--line); }
.edu-card:first-child { border-top: none; }
.edu-card .e-period { font-size: 12.5px; letter-spacing: 0.12em; color: var(--accent); }
.edu-card .e-title { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-top: 6px; }
.edu-card .e-place { color: var(--muted); font-size: 15px; margin-top: 3px; }
.edu-card .e-note { color: var(--faint); font-size: 14px; margin-top: 10px; }

/* ---------- Skills ---------- */
.skills { background: var(--bg-2); }
.skills__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(36px, 6vw, 80px); }
@media (max-width: 860px) { .skills__grid { grid-template-columns: 1fr; gap: 50px; } }
.skills__block h3 {
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin-bottom: 22px;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 16px; font-size: 14px; color: var(--text);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.chips li:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.langs { list-style: none; display: grid; gap: 22px; }
.langs li { display: grid; gap: 8px; }
.lang-top { display: flex; justify-content: space-between; align-items: baseline; }
.lang-top b { font-weight: 500; font-size: 16px; }
.lang-top span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; }
.lang-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.lang-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Skyline / Vision ---------- */
.vision {
  position: relative;
  z-index: 5;                 /* foreground: this section slides over the previous one */
  margin-top: -34vh;          /* overlap the section above → "slides over" effect */
  min-height: 124vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(110px, 13vh) 6vw 0;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 0%, var(--bg) 20%),                       /* top fades in over prev section */
    radial-gradient(78% 44% at 50% 100%, rgba(126,148,178,0.28), transparent 70%),   /* horizon haze behind skyline */
    radial-gradient(50% 28% at 50% 92%, rgba(201,168,106,0.16), transparent 70%),    /* warm city glow */
    radial-gradient(85% 55% at 50% 26%, rgba(201,168,106,0.08), transparent 60%),
    var(--bg);
}
.vision__inner { position: relative; z-index: 3; max-width: 820px; text-align: center; }
.vision__quote {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -0.01em;
  margin-top: 8px;
  text-shadow: 0 2px 36px rgba(8, 8, 10, 0.7), 0 1px 8px rgba(8, 8, 10, 0.5);
}
.vision__inner .kicker { margin-bottom: 22px; text-shadow: 0 2px 20px rgba(8, 8, 10, 0.7); }
.vision__skyline {
  position: absolute; bottom: 0;
  left: 50%; width: 132%; margin-left: -66%;  /* centered purely via layout (width/2) */
  transform: translate3d(0, 0, 0);            /* visible by default; JS only nudges Y */
  z-index: 2; pointer-events: none;           /* foreground layer (transparent PNG) */
  backface-visibility: hidden;
  will-change: transform;                     /* own GPU layer → smooth */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}
.vision__skyline img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .vision { min-height: 104vh; }
  .vision__skyline { width: 200%; margin-left: -100%; }
}

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 4; background: var(--bg); border-top: 1px solid var(--line-soft); }
.contact__big {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 8vw, 110px); line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 56px;
}
.contact__links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line); max-width: 760px;
}
@media (max-width: 620px) { .contact__links { grid-template-columns: 1fr; } }
.contact__link {
  padding: 26px 0; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease);
}
.contact__link:hover { padding-left: 14px; }
.contact__link .k { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.contact__link .v { font-size: clamp(18px, 2.4vw, 26px); font-family: var(--serif); }
.contact__link:hover .v { color: var(--accent-2); }

.btn-pdf {
  margin-top: 52px; cursor: pointer;
  background: transparent; color: var(--text);
  border: 1px solid var(--accent);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 34px; border-radius: 100px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-pdf:hover { background: var(--accent); color: #11100c; }

.foot {
  margin-top: clamp(70px, 12vh, 130px);
  border-top: 1px solid var(--line-soft); padding-top: 26px;
  display: flex; justify-content: space-between;
  font-size: 12.5px; letter-spacing: 0.1em; color: var(--faint);
  width: min(var(--wrap), 88vw); margin-left: auto; margin-right: auto;
}

/* ============================================================
   Reveal animations (set by JS / GSAP). Fallback if no JS.
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); }
.no-anim [data-reveal],
.is-revealed [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__scroll i { animation: none; }
}

/* ============================================================
   PRINT  →  clean white one-page-ish résumé (Save as PDF)
   ============================================================ */
@media print {
  @page { margin: 12mm; }
  :root { --text: #15161a; --muted: #44464d; --faint: #6b6e75; --accent: #8a6f37; }

  html, body,
  .section, .hero, .about, .career, .edu, .skills, .contact {
    background: #fff !important; color: #15161a !important;
  }
  body { font-size: 10.5pt; line-height: 1.4; }
  body::after, .progress, .topbar, .hero__scroll, .hero__bgname,
  .btn-pdf, .foot, .vision { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .section { padding: 0 0 12pt !important; border: none !important; }
  .wrap, .foot { width: 100% !important; }

  /* compact header */
  .hero { min-height: auto !important; display: block !important; overflow: visible !important;
          padding: 0 0 10pt !important; border-bottom: 1px solid #e3e0d8 !important; margin-bottom: 14pt; }
  .hero__inner { display: block !important; width: 100% !important; text-align: left !important; }
  .hero__photo { display: none !important; }
  .hero__printphoto {
    display: block !important; float: right;
    width: 34mm !important; height: auto !important;
    margin: 2pt 0 8pt 12pt; border-radius: 4pt;
  }
  .hero__text { order: 1; flex: 1; }
  .hero__name { font-size: 26pt !important; line-height: 0.98 !important; color: #15161a !important; }
  .hero__name .line { display: inline; }
  .hero__name .line:first-child::after { content: " "; }
  .hero__name .line:last-child { color: #8a6f37 !important; font-style: italic; }
  .hero__eyebrow { margin-bottom: 6pt !important; font-size: 8.5pt !important; }
  .hero__eyebrow, .kicker, .t-period, .e-period { color: #8a6f37 !important; }
  .hero__role { color: #44464d !important; margin-top: 5pt !important; font-size: 11pt !important; }

  .kicker { margin-bottom: 8pt !important; font-size: 8.5pt !important; }
  .about__lead { font-size: 12pt !important; line-height: 1.4 !important; color: #15161a !important;
                 max-width: 100% !important; }
  .about__facts { margin-top: 12pt !important; }
  .about__facts li { border-color: #e3e0d8 !important; padding: 5pt 10pt 5pt 0 !important; }
  .about__facts .v { font-size: 10.5pt !important; }
  .section__title { font-size: 16pt !important; margin-bottom: 10pt !important; }

  .career { background: #fff !important; }
  .timeline::before { background: #e3e0d8 !important; }
  .t-item::before { background: #c9a86a !important; box-shadow: none !important; }
  .t-item { padding: 0 0 10pt 22pt !important; }
  .t-period { font-size: 8.5pt !important; margin-bottom: 3pt !important; }
  .t-role { font-size: 12.5pt !important; }
  .t-company { font-size: 9.5pt !important; }
  .t-tag { border-color: #ccc !important; color: #8a6f37 !important; }
  .t-bullets { margin-top: 6pt !important; }
  .t-bullets li { font-size: 9.5pt !important; }
  .t-bullets li, .t-company, .edu-card .e-place { color: #44464d !important; }

  .chips li { border-color: #ccc !important; color: #15161a !important; padding: 5pt 11pt !important;
              font-size: 9.5pt !important; }
  .skills__block h3 { color: #6b6e75 !important; }
  .lang-bar { background: #e3e0d8 !important; }
  .lang-bar i { background: #8a6f37 !important; }

  .contact { border-top: 1px solid #e3e0d8 !important; padding-top: 12pt !important; }
  .contact__big { font-size: 18pt !important; color: #15161a !important; margin-bottom: 12pt !important; }
  .contact__links { border-color: #e3e0d8 !important; }
  .contact__link { padding: 8pt 0 !important; border-color: #e3e0d8 !important; }
  .contact__link .v { color: #15161a !important; font-size: 12pt !important; }

  .career, .skills, .about, .edu { page-break-inside: auto; }
  .t-item, .edu-card, .skills__block { page-break-inside: avoid; }
  .hero, .about { page-break-after: auto; }
}
