/* Self-hosted fonts: Geologica (headings, with SHRP sharpness axis) and Inter (body). Subsets: latin, latin-ext, greek. */
/* greek */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/geologica-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/geologica-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(fonts/geologica-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e3e7ef;
  --accent: #1f5bd8;
  --accent-soft: #e8efff;
  --max: 720px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Geologica", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b23;
    --text: #e7eaf0;
    --muted: #98a1b2;
    --border: #252c38;
    --accent: #7aa2ff;
    --accent-soft: #1a2540;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}


a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; letter-spacing: .04em; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.lang-toggle {
  text-decoration: none;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer;
}

/* Hero */
.hero { padding: 110px 20px 70px; }
.hero h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
.headline { margin: 10px 0 0; font-size: 20px; font-weight: 600; color: var(--accent); }
.lede { margin: 22px 0 0; font-size: 20px; color: var(--muted); max-width: 34em; }

/* Sections */
.section { padding: 56px 20px; border-top: 1px solid var(--border); }
.section h2 {
  margin: 0 0 22px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.prose p { margin: 0 0 1em; }

/* Experience */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; }
.timeline .when { color: var(--muted); font-size: 15px; padding-top: 2px; }
.timeline h3 { margin: 0; font-size: 17px; }
.timeline p { margin: 4px 0 0; color: var(--muted); }

/* Projects */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  display: block; padding: 18px 20px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); color: var(--text);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Writing */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.posts li:last-child { border-bottom: 0; }
.posts time { color: var(--muted); font-size: 15px; white-space: nowrap; }
.posts .empty { color: var(--muted); }

/* Contact */
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--accent); }
.email-out { margin: 16px 0 0; font-weight: 600; }

/* Footer */
.site-footer {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
  padding: 40px 20px 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border);
}
.site-footer p { margin: 0; }

/* Blog post pages */
.post { padding: 70px 20px 40px; }
.post h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.post .meta { color: var(--muted); margin: 0 0 36px; }
.post .prose h2 { font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 36px 0 12px; }
.post .prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); }

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .hero { padding: 70px 20px 50px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* Hero extras */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 5px 12px; border-radius: 999px; font-size: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 44px 0 0; }
.stats div { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.stats dt { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0 0; }
.principle { padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.principle h3 { margin: 0 0 6px; font-size: 16px; }
.principle p { margin: 0; font-size: 15px; color: var(--muted); }

/* Timeline extras */
.timeline { border-left: 2px solid var(--border); margin-left: 4px; }
.timeline li { position: relative; padding-left: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
}
.timeline li.current::before { background: var(--accent); border-color: var(--accent); }
.timeline .role { color: var(--text); margin-top: 2px; }
.timeline .where { font-size: 14px; }

/* Education & certifications */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 44px 0 0; }
.sub { margin: 0 0 14px; font-size: 16px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: 0 0 14px; }
.plain strong { display: block; font-weight: 600; }
.plain li > span { color: var(--muted); font-size: 15px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; background: var(--surface); }

@media (max-width: 640px) {
  .principles, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stats div { padding: 12px; }
  .stats dt { font-size: 22px; }
  .stats dd { font-size: 12.5px; }
}
@media (max-width: 460px) {
  .nav a.optional { display: none; }
}

/* Company logos */
.timeline .what { display: flex; gap: 14px; align-items: flex-start; }
.logo {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; object-fit: contain; padding: 5px;
}
.logo.wide { padding: 3px; }
.logo.mono {
  display: grid; place-items: center; padding: 0;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}

/* Social icons */
.button { display: inline-flex; align-items: center; gap: 8px; }
.icon { width: 17px; height: 17px; flex: none; }

/* Portrait */
.hero-top { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.portrait-wrap { order: -1; }
.portrait {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  display: block; position: relative; z-index: 1;
  border: 4px solid var(--bg); box-shadow: 0 12px 30px rgba(20, 40, 90, .15);
}
@media (max-width: 640px) {
  .hero-top { grid-template-columns: 1fr; gap: 24px; }
  .portrait-wrap { order: -1; justify-self: start; }
  .portrait { width: 120px; height: 120px; }
}

/* Motion: subtle, and switched off for visitors who prefer reduced motion */
.portrait-wrap { position: relative; border-radius: 50%; padding: 3px; }
.portrait-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 30%, transparent 55%, var(--accent) 80%, var(--accent));
  animation: spin 8s linear infinite;
}
.portrait-wrap::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0;
  animation: halo 4s ease-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo {
  0% { transform: scale(.94); opacity: .45; }
  70%, 100% { transform: scale(1.08); opacity: 0; }
}

.dot { position: relative; }
.dot::after, .timeline li.current::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--accent);
  animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
.dot::after { inset: 0; }
.timeline li.current::after { left: -7px; top: 22px; width: 12px; height: 12px; }
@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.stats div, .principle, .card { transition: transform .2s, border-color .2s; }
.stats div:hover, .principle:hover { transform: translateY(-2px); border-color: var(--accent); }
.timeline .logo { transition: transform .2s; }
.timeline li:hover .logo { transform: scale(1.08); }

.hero-top, .stats { animation: rise .7s ease-out both; }
.stats { animation-delay: .15s; }
@keyframes rise { from { transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Gemini-style colour cycle for the "live" dots and the photo ring */
:root { --g1: #4285f4; --g2: #9b72cb; --g3: #d96570; }
@keyframes gemini-bg {
  0%, 100% { background-color: var(--g1); }
  33% { background-color: var(--g2); }
  66% { background-color: var(--g3); }
}
@keyframes gemini-border {
  0%, 100% { border-color: var(--g1); }
  33% { border-color: var(--g2); }
  66% { border-color: var(--g3); }
}
.dot { animation: gemini-bg 6s linear infinite; }
.dot::after, .timeline li.current::after {
  animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite, gemini-bg 6s linear infinite;
}
.timeline li.current::before { animation: gemini-bg 6s linear infinite, gemini-border 6s linear infinite; }
.portrait-wrap::before {
  background: conic-gradient(from 0deg, var(--g1), var(--g2), var(--g3), transparent 75%, var(--g1));
}
.portrait-wrap::after { animation: halo 4s ease-out infinite, gemini-border 6s linear infinite; }

/* Compact experience rows */
.roles { list-style: none; margin: 0; padding: 0; }
.roles li {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.roles li:last-child { border-bottom: 0; }
.roles .role-text { line-height: 1.4; }
.roles .sep { color: var(--muted); margin: 0 2px; }
.roles small { display: block; color: var(--muted); font-size: 14px; }
.roles .years { color: var(--muted); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.roles .logo { transition: transform .2s; }
.roles li:hover .logo { transform: scale(1.08); }
.roles .early .logo.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; animation: gemini-bg 6s linear infinite; }
.live::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite, gemini-bg 6s linear infinite;
}
@media (max-width: 560px) {
  .roles li { grid-template-columns: 40px 1fr; row-gap: 2px; }
  .roles .years { grid-column: 2; font-size: 14px; }
}

/* Logo */
:root { --logo: #005bff; }
@media (prefers-color-scheme: dark) { :root { --logo: #4d8dff; } }
.brand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; color: var(--logo); flex: none; }
.brand-name { font-size: 15px; }
@media (max-width: 640px) { .brand-name { display: none; } }

/* Typography: Geologica (sharp) for headings and display text */
h1, h2, h3, .headline, .brand-name, .stats dt, .roles strong, .plain strong, .post h1 {
  font-family: var(--font-head);
  font-variation-settings: "SHRP" 100;
}
.hero h1 { font-weight: 700; letter-spacing: -.025em; }
.headline { font-weight: 600; }
.brand-name { font-weight: 600; font-size: 16px; }
.section h2 { font-weight: 600; letter-spacing: .14em; }
.roles strong, .principle h3, .sub { font-weight: 600; }


/* Calls to action */
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.open-to { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.open-to li {
  padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
}

.community { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
.community strong { color: var(--text); margin-right: 6px; font-family: var(--font-head); font-variation-settings: "SHRP" 100; }

/* Motto: small signature next to the title */
.headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.motto {
  position: relative; padding-left: 13px;
  font-size: 15px; font-weight: 500; font-style: italic; letter-spacing: .01em;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g2), var(--g1));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 10s linear infinite;
}
.motto::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px;
  transform: translateY(-50%); background: var(--border);
}
@keyframes shimmer { to { background-position: 300% 0; } }

/* Language switch is a link to the other-language page */
.nav .lang-toggle, .nav .lang-toggle:hover { color: var(--accent); text-decoration: none; }
.nav .lang-toggle:hover { filter: brightness(1.1); }

/* Greek name is longer: keep it on one line on desktop */
html[lang="el"] .hero h1 { font-size: clamp(34px, 6vw, 46px); }
