:root {
  --bg: #03050a;
  --text: #f3f4f8;
  --muted: #929aab;
  --gold: #d8a94e;
  --gold-bright: #f0cd7a;
  --line: rgba(255, 255, 255, 0.1);
  --portfolio-progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 12%, rgba(77, 71, 183, 0.12), transparent 28rem),
    var(--bg);
  font-family: "Inter", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.portfolio-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  background:
    radial-gradient(circle at 16% 23%, rgba(240, 205, 122, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 77% 33%, rgba(119, 134, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 62% 78%, rgba(240, 205, 122, 0.35) 0 1px, transparent 1.6px);
  background-size: 220px 220px, 310px 310px, 410px 410px;
}

.portfolio-header {
  position: fixed;
  left: 28px;
  right: 28px;
  top: 22px;
  z-index: 70;
  min-height: 60px;
  padding: 8px 10px 8px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(230, 190, 102, 0.17);
  border-radius: 18px;
  background: rgba(5, 8, 15, 0.66);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(1.2);
}

.portfolio-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.portfolio-brand img { width: 33px; height: 33px; object-fit: contain; }
.portfolio-brand b { margin-left: 4px; color: var(--gold-bright); font-weight: 500; }

.portfolio-header-center {
  color: rgba(195, 201, 219, 0.48);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.portfolio-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}
.portfolio-actions > a {
  padding: 10px 14px;
  border: 1px solid rgba(225, 182, 88, 0.23);
  border-radius: 11px;
  color: #edeff6;
  font-size: 10px;
}
.portfolio-language { display: flex; align-items: center; gap: 6px; }
.portfolio-language i { width: 1px; height: 11px; background: rgba(255, 255, 255, 0.13); }
.portfolio-language button {
  padding: 5px 2px;
  border: 0;
  color: rgba(204, 210, 224, 0.43);
  background: transparent;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}
.portfolio-language button[aria-pressed="true"] { color: var(--gold-bright); }

.archive-intro {
  min-height: 100svh;
  padding: 170px max(30px, calc((100vw - 1280px) / 2)) 70px;
  display: grid;
  align-content: center;
  position: relative;
}
.archive-intro::before {
  content: "";
  position: absolute;
  right: 5vw;
  top: 16%;
  width: min(56vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(107, 123, 217, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(91, 82, 218, 0.05), 0 0 120px rgba(188, 134, 45, 0.04);
  transform: translate3d(calc(var(--pointer-x) * 16px), calc(var(--pointer-y) * 12px), 0) rotateX(67deg);
}
.archive-intro > p {
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.archive-intro h1 {
  max-width: 1020px;
  margin: 0;
  font-size: clamp(56px, 7.8vw, 118px);
  font-weight: 400;
  letter-spacing: -0.068em;
  line-height: 0.93;
}
.archive-intro > div {
  max-width: 1020px;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.archive-intro > div span { color: rgba(222, 185, 103, 0.72); font-size: 10px; letter-spacing: 0.14em; }
.archive-intro > div p { max-width: 540px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.archive-intro small { position: absolute; left: max(30px, calc((100vw - 1280px) / 2)); bottom: 38px; color: rgba(184, 191, 211, 0.38); font-size: 8px; letter-spacing: 0.17em; }

.archive-project {
  position: relative;
  min-height: 100svh;
  padding: 120px max(30px, calc((100vw - 1280px) / 2)) 70px;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  perspective: 1500px;
}
.archive-project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 71% 49%, rgba(74, 80, 200, 0.12), transparent 34%),
    radial-gradient(circle at 22% 65%, rgba(203, 150, 52, 0.045), transparent 26%);
  opacity: 0.35;
  transition: opacity 1s ease;
}
.archive-project.is-active::after { opacity: 1; }
.archive-project-number {
  position: absolute;
  left: max(30px, calc((100vw - 1280px) / 2));
  top: 120px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(195, 202, 218, 0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.archive-project-number i { width: 42px; height: 1px; background: rgba(229, 188, 98, 0.35); }
.archive-project-copy { z-index: 5; max-width: 520px; transform: translateY(26px); opacity: 0.3; transition: opacity 0.9s ease, transform 1s cubic-bezier(.16,1,.3,1); }
.archive-project.is-active .archive-project-copy { opacity: 1; transform: translateY(0); }
.archive-project-copy > p { margin: 0 0 13px; color: var(--gold-bright); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; }
.archive-project-copy h2 { margin: 0; font-size: clamp(52px, 6.5vw, 96px); font-weight: 400; letter-spacing: -0.065em; line-height: 0.95; }
.archive-project-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; color: rgba(195, 202, 220, 0.44); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-project-tags span::before { content: "•"; margin-right: 7px; color: var(--gold); }
.archive-project-summary { max-width: 500px; margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.archive-project-copy a { margin-top: 28px; display: inline-flex; gap: 15px; padding-bottom: 7px; border-bottom: 1px solid rgba(229, 188, 98, 0.24); font-size: 11px; }
.archive-project-copy a span { color: var(--gold-bright); }

.archive-project-art {
  position: absolute;
  right: 1vw;
  top: 50%;
  width: min(61vw, 860px);
  height: 75vh;
  transform-style: preserve-3d;
  transform: translate3d(9%, -50%, -120px) rotateY(-14deg) scale(0.88);
  opacity: 0.24;
  transition: opacity 1s ease, transform 1.2s cubic-bezier(.16,1,.3,1);
}
.archive-project.is-active .archive-project-art { opacity: 1; transform: translate3d(0, -50%, 60px) rotateY(-5deg) scale(1); }
.archive-project-art img,
.project-hero-art img {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 72%;
  height: 66%;
  object-fit: contain;
  filter: drop-shadow(0 42px 75px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 55px rgba(107, 101, 230, 0.11));
  transform: translate3d(-50%, -50%, 70px);
  mask-image: radial-gradient(ellipse, black 52%, transparent 77%);
}

.artifact-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(113, 132, 231, 0.13);
  border-radius: 50%;
}
.artifact-orbit::after { content: ""; position: absolute; left: 9%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 15px var(--gold-bright); }
.artifact-orbit-a { width: 88%; height: 36%; transform: translate(-50%, -50%) rotate(-15deg); }
.artifact-orbit-b { width: 66%; height: 62%; transform: translate(-50%, -50%) rotate(29deg); }
.artifact-orbit-c { width: 43%; height: 84%; transform: translate(-50%, -50%) rotate(64deg); }

.portfolio-progress { position: fixed; right: 14px; top: 50%; z-index: 60; width: 1px; height: 140px; background: rgba(255,255,255,.1); transform: translateY(-50%); }
.portfolio-progress i { display: block; width: 100%; height: 100%; background: linear-gradient(var(--gold-bright), #7568e8); transform: scaleY(var(--portfolio-progress)); transform-origin: top; }
.portfolio-footer { min-height: 180px; padding: 70px max(30px, calc((100vw - 1280px) / 2)); display: flex; justify-content: space-between; align-items: center; color: rgba(194,201,218,.46); border-top: 1px solid var(--line); font-size: 10px; }
.portfolio-footer a { color: var(--gold-bright); }

/* Project case study */
.project-hero {
  min-height: 100svh;
  position: relative;
  padding: 150px max(30px, calc((100vw - 1280px) / 2)) 70px;
  overflow: hidden;
}
.project-hero-index { color: rgba(204, 211, 228, 0.42); font-size: 9px; letter-spacing: .16em; }
.project-hero-copy { position: relative; z-index: 8; margin-top: 8vh; }
.project-hero-copy > p { margin: 0 0 18px; color: var(--gold-bright); font-size: 9px; letter-spacing: .17em; text-transform: uppercase; }
.project-hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(66px, 10vw, 154px); font-weight: 400; letter-spacing: -.075em; line-height: .88; }
.project-hero-tags { margin-top: 30px; display: flex; gap: 18px; flex-wrap: wrap; color: rgba(199,205,221,.48); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.project-hero-tags span::before { content: "•"; margin-right: 8px; color: var(--gold); }
.project-hero-art { position: absolute; right: -2vw; top: 48%; width: min(62vw, 880px); height: 78vh; transform: translate3d(0,-50%,0); }
.project-hero-summary { position: absolute; left: max(30px, calc((100vw - 1280px) / 2)); bottom: 70px; z-index: 8; max-width: 600px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.project-scroll { position: absolute; right: max(30px, calc((100vw - 1280px) / 2)); bottom: 70px; color: rgba(190,197,215,.35); font-size: 8px; letter-spacing: .15em; }

.project-narrative { padding: 80px max(30px, calc((100vw - 1280px) / 2)) 130px; }
.narrative-row { min-height: 330px; padding: 65px 0; display: grid; grid-template-columns: 80px 1fr 1.25fr; gap: 40px; align-items: start; border-top: 1px solid var(--line); }
.narrative-row > span { color: var(--gold); font-size: 9px; letter-spacing: .13em; }
.narrative-row h2 { margin: 0; font-size: clamp(34px,4vw,60px); font-weight: 400; letter-spacing: -.055em; line-height: 1; text-transform: capitalize; }
.narrative-row p { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.project-links { padding: 40px max(30px, calc((100vw - 1280px) / 2)) 110px; display: flex; gap: 18px; }
.project-links a { min-width: 230px; padding: 22px 24px; display: flex; justify-content: space-between; border: 1px solid rgba(225,183,90,.2); border-radius: 15px; background: rgba(10,13,23,.5); font-size: 12px; }
.project-links a span { color: var(--gold-bright); }
.next-project { min-height: 55vh; padding: 90px max(30px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: 1fr auto; align-content: center; border-top: 1px solid var(--line); background: radial-gradient(circle at 70% 50%, rgba(79,72,192,.12),transparent 35%); }
.next-project > span { grid-column: 1/-1; margin-bottom: 18px; color: var(--gold-bright); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.next-project strong { font-size: clamp(54px,8vw,120px); font-weight: 400; letter-spacing: -.07em; line-height: .9; }
.next-project i { align-self: center; color: var(--gold-bright); font-size: 42px; font-style: normal; }
.project-not-found { min-height: 100svh; display: grid; place-content: center; gap: 30px; text-align: center; }

@media (max-width: 760px) {
  .portfolio-header { left: 12px; right: 12px; top: 12px; min-height: 57px; grid-template-columns: 1fr auto; padding: 7px 8px 7px 12px; }
  .portfolio-header-center { display: none; }
  .portfolio-brand { font-size: 9px; }
  .portfolio-brand img { width: 30px; height: 30px; }
  .portfolio-actions { gap: 10px; }
  .portfolio-actions > a { display: none; }
  .archive-intro { padding: 120px 22px 70px; align-content: center; }
  .archive-intro h1 { font-size: clamp(50px, 14vw, 72px); line-height: .94; }
  .archive-intro > div { margin-top: 40px; grid-template-columns: 1fr; gap: 20px; }
  .archive-intro > div span { font-size: 8px; }
  .archive-intro > div p { font-size: 13px; line-height: 1.6; }
  .archive-intro small { left: 22px; bottom: 26px; }

  .archive-project { padding: 100px 22px 55px; display: block; }
  .archive-project-number { left: 22px; top: 95px; }
  .archive-project-copy { position: absolute; left: 22px; right: 22px; bottom: 62px; max-width: none; }
  .archive-project-copy h2 { font-size: clamp(47px, 14vw, 70px); }
  .archive-project-summary { max-width: 94%; margin-top: 16px; font-size: 12px; line-height: 1.5; }
  .archive-project-tags { margin-top: 14px; gap: 9px; font-size: 7px; }
  .archive-project-copy a { margin-top: 17px; }
  .archive-project-art { right: -28vw; top: 43%; width: 125vw; height: 54vh; }
  .archive-project-art img { width: 65%; height: 62%; }
  .portfolio-progress { display: none; }
  .portfolio-footer { min-height: 140px; padding: 50px 22px; }

  .project-hero { padding: 110px 22px 55px; }
  .project-hero-copy { margin-top: 6vh; }
  .project-hero-copy h1 { font-size: clamp(58px, 18vw, 86px); }
  .project-hero-art { right: -35vw; top: 48%; width: 140vw; height: 52vh; }
  .project-hero-art img { width: 62%; height: 62%; }
  .project-hero-summary { left: 22px; right: 22px; bottom: 58px; max-width: none; font-size: 12px; line-height: 1.55; }
  .project-scroll { display: none; }
  .project-narrative { padding: 40px 22px 80px; }
  .narrative-row { min-height: 0; padding: 48px 0; grid-template-columns: 35px 1fr; gap: 20px; }
  .narrative-row h2 { font-size: 34px; }
  .narrative-row p { grid-column: 2; font-size: 14px; line-height: 1.65; }
  .project-links { padding: 20px 22px 75px; display: grid; }
  .project-links a { min-width: 0; }
  .next-project { min-height: 44vh; padding: 65px 22px; }
  .next-project strong { font-size: 54px; }
  .next-project i { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .archive-project-copy,
  .archive-project-art { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  html[lang="el"] .archive-intro h1 {
    font-size: clamp(42px, 11.8vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  html[lang="el"] .archive-project-copy h2 { font-size: clamp(42px, 12vw, 60px); }
  html[lang="el"] .archive-project-summary { font-size: 11.5px; }
  html[lang="el"] .narrative-row h2 { font-size: 29px; line-height: 1.04; }
  html[lang="el"] .narrative-row p { font-size: 13px; }
}
