/* Inner pages (projects, project details, 404, legal). Black, white and red; glass surfaces; red diagonal lines carried over from the original hero. */
:root {
    --bg: #07070a;
    --fg: #f4f2f2;
    --mut: #a8a4a4;
    --acc: #ff3b4e;
    --line-a: .55;
    --glass: rgba(255, 255, 255, .055);
    --glass2: rgba(255, 255, 255, .1);
    --edge: rgba(255, 255, 255, .16);
    --edge2: rgba(255, 255, 255, .07);
    --shadow: 0 18px 44px rgba(0, 0, 0, .45);
    --f-d: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
    --f-b: 'Manrope', system-ui, sans-serif;
    --f-m: 'Geist Mono', ui-monospace, monospace;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --p: 0;
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--f-b); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
section { scroll-margin-top: 5.5rem; }

.glass {
    background: var(--glass);
    border: 1px solid var(--edge2);
    border-top-color: var(--edge);
    border-left-color: var(--edge);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .1);
    border-radius: 22px;
}
.wrap { width: min(1260px, 100%); margin-inline: auto; padding-inline: 1rem; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: .9rem 1rem; pointer-events: none; }
.nav-in { width: min(1260px, 100%); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.nav-in > * { pointer-events: auto; }
.logo { font: 800 1.15rem var(--f-d); letter-spacing: -.03em; }
.logo em { color: var(--acc); font-style: normal; }
.pill { display: flex; align-items: center; gap: .1rem; padding: .3rem; border-radius: 99px; }
.pill a { padding: .4rem .9rem; border-radius: 99px; font-size: .88rem; color: var(--mut); transition: background .2s, color .2s; }
.pill a:hover { background: var(--glass2); color: var(--fg); }
.tb { background: none; border: 0; width: 2rem; height: 2rem; border-radius: 50%; font-size: 1rem; }
.tb:hover { background: var(--glass2); }
.menu-btn { display: none; }

/* ---------- shared bits ---------- */
.narrow { width: min(900px, 100%); margin-inline: auto; padding-inline: 1.25rem; }
.mid { width: min(1160px, 100%); margin-inline: auto; padding-inline: 1.25rem; }
.mut { color: var(--mut); }
.label { display: inline-flex; align-items: center; gap: .7rem; font: 500 .78rem var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: 1.2rem; }
.label:before { content: ""; width: 2rem; height: 1px; background: var(--acc); }
.tag { font: 500 .72rem var(--f-m); color: var(--acc); letter-spacing: .1em; text-transform: uppercase; }
.btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 99px; font-weight: 700; font-size: .92rem; border: 1px solid var(--edge2); background: var(--glass); transition: background .2s, transform .2s; }
.btn:hover { background: var(--glass2); transform: translateY(-2px); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.chips, .tech-stack { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span, .chips a, .tech-item { padding: .32rem .9rem; border-radius: 99px; font-size: .88rem; background: var(--glass); border: 1px solid var(--edge2); }
.art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.art i { position: absolute; display: block; opacity: var(--line-a); }
.art .l1 { width: 80vmax; height: 40vmax; right: -24vmax; top: -16vmax; background: repeating-linear-gradient(135deg, var(--acc) 0 2px, transparent 2px 14px); -webkit-mask-image: linear-gradient(135deg, transparent 10%, #000 75%); mask-image: linear-gradient(135deg, transparent 10%, #000 75%); animation: drift 26s ease-in-out infinite alternate; }
.art .l2 { width: 50vmax; height: 30vmax; right: -14vmax; top: 6vmax; background: repeating-linear-gradient(45deg, var(--acc) 0 2px, transparent 2px 14px); -webkit-mask-image: linear-gradient(225deg, #000 10%, transparent 80%); mask-image: linear-gradient(225deg, #000 10%, transparent 80%); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-3vmax, 2vmax); } }
.page-top { position: relative; overflow: hidden; padding: clamp(5.2rem, 8vw, 6.2rem) 0 clamp(1.8rem, 4vw, 2.6rem); }
.page-top > .wrap, .page-top > .narrow, .page-top > .mid { position: relative; z-index: 2; }
.back { display: inline-flex; align-items: center; gap: .5rem; font: 500 .85rem var(--f-m); color: var(--mut); margin-bottom: 1.2rem; transition: color .2s, transform .2s; }
.back:hover { color: var(--acc); transform: translateX(-3px); }
h1 { font: 800 clamp(2.8rem, 9vw, 6rem)/.95 var(--f-d); letter-spacing: -.05em; margin: 0 0 1.4rem; text-wrap: balance; }
h1 em { font-style: normal; color: var(--acc); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.65; color: var(--mut); max-width: 38rem; margin-bottom: 1.6rem; }
.btns { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.8rem; }
main { position: relative; z-index: 3; padding-bottom: clamp(3rem, 8vw, 6rem); }
footer { position: relative; z-index: 3; text-align: center; color: var(--mut); font-size: .85rem; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--edge2); }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- project detail ---------- */
.shot { margin: 0 auto clamp(2.5rem, 7vw, 4.5rem); padding: .7rem; }
.shot img { display: block; width: 100%; height: auto; border-radius: 16px; }
.project-details > h3 { font: 800 clamp(1.5rem, 3.4vw, 2rem)/1.1 var(--f-d); letter-spacing: -.03em; margin: clamp(2.6rem, 6vw, 4rem) 0 1rem; display: flex; align-items: center; gap: .8rem; }
.project-details h3.sub { font: 800 clamp(1.5rem, 3.4vw, 2rem)/1.1 var(--f-d); letter-spacing: -.03em; margin: clamp(2.6rem, 6vw, 4rem) 0 1rem; display: flex; align-items: center; gap: .8rem; }
.project-details h3.sub:after { content: ""; flex: 1; height: 1px; background: var(--edge2); }
.project-details > h3:first-child { margin-top: 0; }
.project-details > h3:after { content: ""; flex: 1; height: 1px; background: var(--edge2); }
.project-details p { color: var(--mut); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1rem; }
.features-list { list-style: none; display: grid; gap: .8rem; }
.features-list li { position: relative; padding: 1.05rem 1.2rem 1.05rem 2.6rem; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge2); color: var(--mut); line-height: 1.65; }
.features-list li:before { content: ""; position: absolute; left: 1.1rem; top: 1.45rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.features-list strong { color: var(--fg); font-weight: 700; }
.project-links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2.4rem; }
.project-link { display: inline-block; padding: .8rem 1.5rem; border-radius: 99px; font-weight: 700; font-size: .92rem; background: var(--acc); border: 1px solid var(--acc); color: #fff; transition: transform .2s, background .2s; }
.project-link:hover { transform: translateY(-2px); }
.project-link.secondary { background: var(--glass); border-color: var(--edge2); color: var(--fg); }
.project-link.secondary:hover { background: var(--glass2); }
.nous-highlight { padding: clamp(1.4rem, 4vw, 2.2rem); margin: 2.4rem 0; border-radius: 22px; background: var(--glass); border: 1px solid var(--edge2); border-top-color: var(--edge); }
.nous-highlight h3 { font: 800 1.5rem/1.1 var(--f-d); letter-spacing: -.03em; margin-bottom: 1rem; }
.highlight-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; align-items: center; }
.highlight-text p:last-child { margin: 0; }
.highlight-image img { width: 100%; height: auto; display: block; border-radius: 14px; }

/* ---------- projects list ---------- */
.pg { display: flex; flex-direction: column; gap: 1.4rem; }
.pj { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem 2.5rem; align-items: start; padding: clamp(1.6rem, 4vw, 2.6rem); transition: transform .4s var(--ease), background .3s; }
.pj:hover { transform: translateY(-6px); background: var(--glass2); }
.pj h2 { font: 800 clamp(1.8rem, 4vw, 2.6rem)/1 var(--f-d); letter-spacing: -.04em; margin: .6rem 0 0; }
.pj h2 a:hover { color: var(--acc); }
.pj p { color: var(--mut); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.2rem; }
.pj .chips span { font-size: .8rem; padding: .25rem .8rem; }
.pj .go { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.2rem; font: 500 .85rem var(--f-m); }
.pj .go a { color: var(--acc); }
.pj .go a.alt { color: var(--mut); }
.pj .go a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sect { font: 800 clamp(1.5rem, 3.4vw, 2rem)/1.1 var(--f-d); letter-spacing: -.03em; margin: clamp(3rem, 8vw, 5rem) 0 1.4rem; display: flex; align-items: center; gap: .8rem; }
.sect:after { content: ""; flex: 1; height: 1px; background: var(--edge2); }

/* ---------- 404 ---------- */
.lost { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 6rem 1.25rem 3rem; }
.lost .art { -webkit-mask-image: none; mask-image: none; }
.lost .box { position: relative; z-index: 2; max-width: 38rem; }
.big404 { font: 800 clamp(7rem, 30vw, 17rem)/.85 var(--f-d); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px var(--acc); margin-bottom: 1rem; }
.lost h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 1rem; }
.lost .btns { justify-content: center; }

/* ---------- legal / markdown ---------- */
.doc { padding: clamp(1.4rem, 4vw, 2.6rem); }
.md { font-size: 1.02rem; line-height: 1.8; color: var(--mut); }
.md h1, .md h2, .md h3 { font-family: var(--f-b); color: var(--fg); letter-spacing: -.02em; line-height: 1.2; margin: 2.2rem 0 .8rem; text-wrap: balance; }
.md h1 { font-size: 1.8rem; }.md h2 { font-size: 1.4rem; }.md h3 { font-size: 1.15rem; }
.md > :first-child { margin-top: 0; }
.md p, .md ul, .md ol { margin-bottom: 1rem; }
.md ul, .md ol { padding-left: 1.4rem; }.md li { margin-bottom: .4rem; }
.md strong { color: var(--fg); }
.md a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.md hr { border: 0; border-top: 1px solid var(--edge2); margin: 2rem 0; }
.md code { font-family: var(--f-m); font-size: .9em; background: var(--glass); padding: .1rem .4rem; border-radius: 6px; }
.md blockquote { border-left: 2px solid var(--acc); padding-left: 1rem; margin: 1rem 0; }
.doc-title { font: 800 clamp(1.9rem, 5vw, 3.2rem)/1.1 var(--f-b); letter-spacing: -.03em; text-wrap: balance; margin-bottom: 0; }

.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 800px) {
    .nav { padding: .7rem 1rem; }
    .pill { position: absolute; right: 1rem; top: 3.6rem; flex-direction: column; align-items: stretch; width: min(15rem, calc(100% - 2rem)); padding: .5rem; border-radius: 20px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
    .pill.open { opacity: 1; visibility: visible; transform: none; }
    .pill a { padding: .8rem 1rem; font-size: 1rem; }
    .pill .tb { align-self: flex-end; }
    .menu-btn { display: inline-flex; align-items: center; pointer-events: auto; padding: .55rem 1.1rem; border-radius: 99px; font-size: .9rem; }
    .pj { grid-template-columns: 1fr; }
    .highlight-content { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .btns .btn, .project-links .project-link { flex: 1 1 100%; text-align: center; }
    .features-list li { padding-left: 2.3rem; }
    .features-list li:before { left: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .art i { animation: none; }
    .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- project header with illustration ---------- */
.ph { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: center; }
.ph-text { min-width: 0; }
.ph-viz { min-width: 0; }
.ph-viz .viz { aspect-ratio: 4 / 3; padding: 1.6rem; gap: 1rem; border-radius: 26px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ph-viz .viz { transform: rotate(2deg); transition: transform .6s var(--ease); }
.ph-viz .viz:hover { transform: rotate(0deg) scale(1.02); }
.ph .btns { margin-top: 1.6rem; }
@media (max-width: 860px) { .ph { grid-template-columns: 1fr; } .ph-viz .viz { aspect-ratio: 16 / 10; transform: none; } }

/* overview reads as a statement, features sit in two columns */
.project-details > h3:first-child + p { font: 500 clamp(1.05rem, 1.9vw, 1.2rem)/1.75 var(--f-d); color: var(--fg); }
.features-list { grid-template-columns: 1fr 1fr; }
.features-list li { transition: background .25s, transform .3s var(--ease); }
.features-list li:hover { background: var(--glass2); transform: translateY(-3px); }
@media (max-width: 760px) { .features-list { grid-template-columns: 1fr; } }

/* next project */
.next-wrap { margin-top: clamp(3rem, 8vw, 6rem); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: clamp(1.6rem, 4vw, 2.6rem); transition: transform .4s var(--ease), background .3s; }
.next:hover { background: var(--glass2); transform: translateY(-4px); }
.js .next.rv.in:hover { transform: translateY(-4px); }
.next .nm { font: 800 clamp(1.8rem, 5vw, 3.4rem)/1 var(--f-d); letter-spacing: -.045em; }
.next .nm em { font-style: normal; color: var(--acc); display: inline-block; transition: transform .35s var(--ease); }
.next:hover .nm em { transform: translateX(8px); }

/* ---------- team: small portrait panels that open on hover ---------- */
.team-credits { display: flex; gap: .6rem; height: 14rem; width: auto; margin: 0; transform: none; padding: 0; }
.team-member { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: .8rem; border-radius: 18px; border: 1px solid var(--edge2); border-top-color: var(--edge); background: var(--glass); box-shadow: var(--shadow); color: #fff; transition: flex-grow .6s var(--ease); isolation: isolate; }
.team-credits:hover .team-member, .team-credits:focus-within .team-member { flex-grow: .85; }
.team-credits .team-member:hover, .team-credits .team-member:focus-within { flex-grow: 2.2; }
.team-member .member-photo { position: absolute; inset: 0; z-index: -2; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 45%, #1a0508), #0a0a0c); overflow: hidden; transform: none; }
.team-member .member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; border: 0; border-radius: 0; background: transparent; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.team-member:hover .member-photo img, .team-member:focus-within .member-photo img { filter: none; }
.team-member:after { content: ""; position: absolute; inset: 0; z-index: -1; display: block; background: linear-gradient(180deg, transparent 35%, rgba(8, 4, 6, .88)); pointer-events: none; }
.team-member:before { display: none; }
.team-member h4 { font: 800 .95rem/1.1 var(--f-d); letter-spacing: -.02em; color: #fff; }
.team-member p { font: 500 .56rem var(--f-m) !important; letter-spacing: .08em; text-transform: uppercase; color: #ff8a95 !important; margin: .3rem 0 0 !important; }
.social-links { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.social-link { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; padding: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); transition: background .2s, transform .2s, border-color .2s; }
.social-link span { display: none; }
.social-link:hover { background: var(--acc); border-color: var(--acc); transform: translateY(-2px); }
.social-link img { width: .8rem; height: .8rem; filter: invert(1) !important; }
@media (max-width: 640px) {
    /* two by two squares, so the photos keep most of their frame */
    .team-credits { display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: .7rem; }
    .team-member, .team-credits:hover .team-member, .team-credits .team-member:hover { flex: none; height: auto; aspect-ratio: 1 / 1.1; padding: .7rem; border-radius: 18px; }
    .team-credits .team-member:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - .35rem); justify-self: center; }
    .team-member .member-photo img { filter: none; object-position: 50% 25%; }
    .member-photo img[src$="eftihis.jpg"] { object-position: 36% 30%; }
    .member-photo img[src$="haralampos.jpeg"] { object-position: 62% 28%; }
    .member-photo img[src$="christos.png"] { object-position: 50% 24%; }
    .member-photo img[src$="Kostas.jpeg"] { object-position: 62% 28%; }
    .team-member h4 { font-size: .85rem; }
    .team-member p { font-size: .5rem !important; margin-top: .2rem !important; }
    .social-links { margin-top: .45rem; }
    .team-member:after { background: linear-gradient(180deg, transparent 40%, rgba(8, 4, 6, .9)); }
}

/* calmer header art on inner pages */
.page-top .art .l2 { display: none; }
.page-top .art i { opacity: calc(var(--line-a) * .7); }
.page-top .art .l1 { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 78% 30%, #000 20%, transparent 75%); }

.badge { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; margin: 0 0 1.2rem; padding: .55rem 1rem; border-radius: 99px; font-size: .88rem; font-weight: 700; background: var(--glass); border: 1px solid var(--edge2); transition: background .2s, transform .2s; }
.badge:hover { background: var(--glass2); transform: translateY(-2px); }
.badge em { font-style: normal; color: var(--acc); }

@media (max-width: 560px) {
    .badge { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: .2rem .7rem; width: 100%; padding: .8rem 1rem; border-radius: 16px; font-size: .86rem; line-height: 1.4; }
    .badge .tag { padding-top: .2rem; }
}
.back { display: flex; width: fit-content; }
.back + br { display: none; }

/* ---------- legal: contents list plus one card per section ---------- */
.legal { width: min(1160px, 100%); margin-inline: auto; padding-inline: 1.25rem; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.6rem; align-items: start; counter-reset: sec; }
.toc { position: sticky; top: 5.5rem; padding: 1.2rem; border-radius: 20px; }
.toc-h { display: block; font: 500 .68rem var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); margin-bottom: .8rem; }
.toc ol { list-style: none; display: grid; gap: .1rem; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: .7rem; padding: .45rem .6rem; border-radius: 10px; font-size: .88rem; line-height: 1.35; color: var(--mut); transition: background .2s, color .2s; }
.toc a:before { content: counter(t, decimal-leading-zero); font: 500 .7rem var(--f-m); color: var(--acc); padding-top: .1rem; }
.toc a:hover, .toc a.cur { background: var(--glass2); color: var(--fg); }
.legal .md { display: flex; flex-direction: column; gap: 1.2rem; }
.legal .sec { padding: clamp(1.4rem, 3.5vw, 2.4rem); border-radius: 22px; scroll-margin-top: 5.5rem; counter-increment: sec; animation: rise .7s var(--ease) both; }
.legal .sec h2 { display: flex; align-items: baseline; gap: .9rem; font: 800 clamp(1.4rem, 3vw, 1.9rem)/1.15 var(--f-b); letter-spacing: -.03em; color: var(--fg); margin: 0 0 1.2rem; text-wrap: balance; }
.legal .sec h2:before { content: counter(sec, decimal-leading-zero); font: 500 .8rem var(--f-m); letter-spacing: .08em; color: var(--acc); flex: none; }
.legal .sec h3 { font: 700 1.02rem/1.3 var(--f-b); letter-spacing: -.01em; color: var(--fg); margin: 1.8rem 0 .6rem; padding-left: .8rem; border-left: 2px solid var(--acc); }
.legal .sec p { color: var(--mut); line-height: 1.85; margin-bottom: 1rem; }
.legal .sec p:last-child { margin-bottom: 0; }
.legal .sec strong { color: var(--fg); }
.legal .sec ul, .legal .sec ol { color: var(--mut); line-height: 1.8; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal .sec li::marker { color: var(--acc); }
@media (max-width: 900px) {
    .legal { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; }
    .toc ol { display: flex; flex-wrap: wrap; gap: .4rem; }
    .toc a { padding: .35rem .8rem; border-radius: 99px; background: var(--glass); border: 1px solid var(--edge2); font-size: .8rem; }
    .toc a:before { display: none; }
}
