/* apetav.com — personal CV page. Shared by / (en) and /el/. */

@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/commissioner-greek.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/commissioner-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("fonts/commissioner-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: #0b1519;
	--bg-2: #0f1e25;
	--card: #12252e;
	--card-2: #173039;
	--line: rgba(214, 238, 232, 0.09);
	--line-2: rgba(214, 238, 232, 0.16);
	--text: #e8f0ee;
	--muted: #9db1b0;
	--faint: #6e8587;
	--mint: #8be3c4;
	--sun: #f2a65a;
	--clay: #c26a3d;
	--radius: 22px;
	--wrap: 1160px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.65 "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
::selection { background: var(--mint); color: var(--bg); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Grain overlay keeps the dark gradients from banding. */
body::after {
	content: "";
	position: fixed; inset: 0;
	pointer-events: none; z-index: 60;
	opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.nav {
	position: fixed; inset: 0 0 auto; z-index: 50;
	transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
	border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
	background: rgba(11, 21, 25, .72);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-color: var(--line);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand__mark {
	width: 38px; height: 38px; border-radius: 12px;
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--mint), #5fb7c9 60%, var(--sun));
	color: var(--bg); font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.nav__links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
	background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; font-size: 13px; font-weight: 600; }
.lang a { padding: 4px 10px; border-radius: 99px; color: var(--muted); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
	--bx: 0px; --by: 0px;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 24px; border-radius: 99px;
	font-weight: 600; font-size: 16px; line-height: 1;
	transform: translate(var(--bx), var(--by));
	transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
	white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--primary { background: var(--mint); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(139, 227, 196, .55); }
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(139, 227, 196, .8); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .05); }
.btn--warm { background: var(--sun); color: #1d1208; box-shadow: 0 10px 30px -10px rgba(242, 166, 90, .6); }
.btn--sm { padding: 10px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh;
	display: flex; align-items: center;
	padding: 120px 0 90px;
	isolation: isolate; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 50% at 78% 30%, rgba(95, 183, 201, .18), transparent 70%),
		radial-gradient(45% 40% at 15% 85%, rgba(242, 166, 90, .10), transparent 70%),
		linear-gradient(180deg, #0b1519, #0c1a20 60%, var(--bg));
}
.hero::after {
	content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1;
	background: linear-gradient(transparent, var(--bg));
}
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 14px; font-weight: 500; color: var(--muted);
	padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 99px;
	background: rgba(11, 21, 25, .5); backdrop-filter: blur(6px);
}
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(139, 227, 196, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(139, 227, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 227, 196, 0); } }

.hero h1 {
	margin: 28px 0 22px;
	font-size: clamp(48px, 9.5vw, 128px);
	font-weight: 800; letter-spacing: -0.045em; line-height: .92;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .outline { background: linear-gradient(100deg, var(--mint) 10%, #5fb7c9 50%, var(--sun) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { transform: none; } }

.hero__lead { max-width: 640px; font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); line-height: 1.55; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.rotator { display: inline-grid; vertical-align: bottom; color: var(--mint); font-weight: 600; }
.rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(.6em); transition: opacity .5s var(--ease), transform .5s var(--ease); white-space: nowrap; }
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-.6em); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.fade-in { opacity: 0; animation: fade 1s var(--ease) forwards; }
.fade-in.d1 { animation-delay: .35s; } .fade-in.d2 { animation-delay: .5s; } .fade-in.d3 { animation-delay: .65s; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.scroll-cue {
	position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
	width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 99px;
}
.scroll-cue::after {
	content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
	border-radius: 4px; background: var(--mint); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 140px) 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
	margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(34px, 5.2vw, 60px); max-width: 15ch; }
.h2 em { font-style: normal; color: var(--mint); }
.muted { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about__text { font-size: 18px; color: var(--muted); }
.about__text p:first-child { color: var(--text); font-size: 21px; line-height: 1.5; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 18px; background: var(--bg); font-size: 15px; }
.facts li span:first-child { color: var(--faint); }
.facts li span:last-child { text-align: right; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg); padding: 40px 24px; text-align: center; }
.stat__n { font-size: clamp(42px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(120deg, var(--text), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Timeline */
.timeline { position: relative; margin-top: 64px; padding-left: 44px; }
.timeline::before, .timeline__progress {
	content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--line-2); }
.timeline__progress { background: linear-gradient(var(--mint), var(--sun)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.job { position: relative; padding-bottom: 46px; }
.job:last-child { padding-bottom: 0; }
.job::before {
	content: ""; position: absolute; left: -40px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
	background: var(--bg); border: 2px solid var(--line-2); transition: border-color .4s, background .4s, box-shadow .4s;
}
.job.in::before { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 0 6px rgba(139, 227, 196, .12); }
.job__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.job__when { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--sun); text-transform: uppercase; min-width: 118px; }
.job h3 { font-size: clamp(21px, 2.6vw, 27px); }
.job__org { width: 100%; color: var(--muted); font-size: 16px; margin-top: 4px; }
.job__org b { color: var(--text); font-weight: 600; }
.job__body { margin-top: 12px; max-width: 760px; color: var(--muted); }
.job__body ul { margin: 0; padding-left: 18px; }
.job__body li { margin-bottom: 6px; }
.job__body li::marker { color: var(--mint); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.job--compact .job__body { font-size: 15px; }

/* Work cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.card {
	--mx: 50%; --my: 0%;
	position: relative; padding: 28px; border-radius: var(--radius);
	background: var(--card); border: 1px solid var(--line);
	overflow: hidden; isolation: isolate;
	transition: transform .35s var(--ease), border-color .35s;
}
.card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
	background: radial-gradient(380px circle at var(--mx) var(--my), rgba(139, 227, 196, .14), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 227, 196, .1); color: var(--mint); margin-bottom: 22px; }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card__meta { margin-top: 18px; font-size: 13px; color: var(--faint); }
.card--wide { grid-column: span 2; background: linear-gradient(135deg, var(--card-2), var(--card)); }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--sun); background: rgba(242, 166, 90, .12); padding: 5px 10px; border-radius: 99px; margin-bottom: 16px; }

/* Toolbox */
.tool-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 56px; }
.tool-groups h3 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; transition: border-color .25s, color .25s, transform .25s var(--ease); }
.chip:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }

/* Geosmin CTA */
.studio {
	position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 72px);
	background: radial-gradient(120% 140% at 100% 0%, #24453b, #13281f 55%, #0f1f19);
	overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center;
}
.studio::before {
	content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
	background: conic-gradient(from var(--a, 0deg), transparent 0 60%, var(--sun), var(--mint), transparent 90%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	animation: spin 8s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.studio__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #f7f5f0; }
.studio__logo { width: 32px; height: 32px; border-radius: 10px; background: #f7f5f0; display: grid; place-items: center; }
.studio__logo svg { width: 20px; height: 20px; }
.studio h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 22px 0 18px; color: #f7f5f0; }
.studio p { color: #c7d6cf; font-size: 18px; max-width: 54ch; }
.studio__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.studio .btn--ghost { border-color: rgba(247, 245, 240, .25); color: #f7f5f0; }
.studio__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.studio__list li {
	display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px;
	background: rgba(247, 245, 240, .06); border: 1px solid rgba(247, 245, 240, .1); color: #e7eee9; font-size: 15.5px;
}
.studio__list svg { width: 20px; height: 20px; flex: none; color: var(--sun); }
.studio__list b { color: #fff; }

/* Beyond work */
.beyond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.beyond .card { padding: 30px; }
.beyond ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.beyond ul b { color: var(--text); font-weight: 600; display: block; }
.sail { height: 110px; margin: -6px -30px 18px; position: relative; overflow: hidden; }
.sail svg { position: absolute; left: 0; width: 200%; height: 100%; }
.sail .w1 { animation: waves 9s linear infinite; }
.sail .w2 { animation: waves 6s linear infinite reverse; opacity: .6; }
.sail .boat { position: absolute; left: 50%; bottom: 28px; width: 54px; translate: -50% 0; animation: bob 3.2s ease-in-out infinite; }
@keyframes waves { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* Contact */
.contact { text-align: center; }
.contact .h2 { margin-inline: auto; max-width: 18ch; font-size: clamp(40px, 7vw, 88px); }
.contact p { max-width: 520px; margin: 22px auto 0; color: var(--muted); font-size: 18px; }
.contact__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--faint); }
.footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--mint); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.cards, .beyond { grid-template-columns: 1fr 1fr; }
	.card--wide { grid-column: span 2; }
	.tool-groups { grid-template-columns: 1fr 1fr; }
	.studio { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.nav__links { display: none; }
	.nav__in { gap: 14px; }
	.lang { margin-left: auto; }
	.nav .btn { display: none; }
	.about { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; }
	.cards, .beyond, .tool-groups { grid-template-columns: 1fr; }
	.card--wide { grid-column: auto; }
	.timeline { padding-left: 34px; }
	.job::before { left: -30px; }
	.timeline::before, .timeline__progress { left: 6px; }
	.facts li { flex-direction: column; gap: 2px; }
	.facts li span:last-child { text-align: left; }
	.scroll-cue { display: none; }
	.kicker { font-size: 13px; line-height: 1.4; border-radius: 14px; align-items: flex-start; }
	.kicker__dot { margin-top: 5px; flex: none; }
	.brand > span:last-child { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.hero h1 .line > span, .fade-in { transform: none; opacity: 1; }
	html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
