/* =========================================================
   Orestis — Portfolio
   Palette: Greek island house (whitewash + Aegean blue)
   Accent: Cyprus copper
   ========================================================= */

:root {
  --wash: #F8F6F1;
  --white: #FFFFFF;
  --blue: #0B4F9C;
  --navy: #0A1F3C;
  --sky: #DCE8F5;
  --copper: #C8702A;
  --muted: rgba(10, 31, 60, .62);
  --line: rgba(10, 31, 60, .12);

  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --pad: clamp(20px, 4vw, 56px);
  --photo-w: clamp(170px, 23vw, 360px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--wash);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 2px; }

.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  transition: transform 1s var(--ease-io);
}
body.is-loaded .loader { transform: translateY(-100%); }
.loader.is-quick > * { display: none; }

.loader__island { width: min(240px, 55vw); overflow: visible; }
.loader__island path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 1.5px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease-io) forwards, fillIn .6s ease 1.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--copper); stroke: var(--copper); } }

.loader__greeting {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  opacity: 0;
  animation: fadeUp .9s var(--ease) .5s forwards;
}
.loader__count {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* ---- Loader: sailing boat ---- */
.loader__sea {
  position: relative;
  width: min(520px, 80vw);
  height: 150px;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .1s forwards;
}
.loader__boat-wrap {
  position: absolute;
  bottom: 14px;
  left: calc(var(--t, 0) * (100% - 96px));   /* JS moves the boat with the counter */
  width: 96px;
  z-index: 1;
}
.loader__boat {
  width: 100%;
  overflow: visible;
  transform-origin: 50% 85%;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-5px) rotate(3deg); }
}
.loader__boat path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 1.6px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.loader__boat .b-hull { animation: draw 1s var(--ease-io) .2s forwards, fillWhite .5s ease 1.1s forwards; }
.loader__boat .b-mast { animation: draw .6s var(--ease-io) .5s forwards; }
.loader__boat .b-main { animation: draw 1s var(--ease-io) .7s forwards, fillSail .5s ease 1.6s forwards; }
.loader__boat .b-jib  { animation: draw 1s var(--ease-io) .8s forwards, fillSail .5s ease 1.7s forwards; }
.loader__boat .b-flag { stroke: none; stroke-dasharray: none; fill: var(--copper); opacity: 0; animation: fadeIn .4s ease 1.5s forwards; }
@keyframes fillWhite { to { fill: #fff; } }
@keyframes fillSail  { to { fill: rgba(255, 255, 255, .9); } }
@keyframes fadeIn    { to { opacity: 1; } }

.loader__waves {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 34px;
}
.loader__waves .w-back  { fill: rgba(255, 255, 255, .18); animation: waves 4s linear infinite; }
.loader__waves .w-front { fill: rgba(255, 255, 255, .35); animation: waves 2.6s linear infinite; }
@keyframes waves { to { transform: translateX(-600px); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  opacity: 0;
  transform: translateY(-100%);
  transition: background .4s, box-shadow .4s, padding .4s, color .4s,
              transform .9s var(--ease), opacity .9s var(--ease);
}
body.is-loaded .nav {
  opacity: 1;
  transform: none;
  transition-delay: 0s, 0s, 0s, 0s, 1.5s, 1.5s;
}
.nav.is-scrolled {
  background: rgba(248, 246, 241, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 14px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.island { width: 38px; fill: var(--copper); transition: transform .6s var(--ease); }
.nav__logo:hover .island { transform: rotate(-10deg) scale(1.1); }

.nav__links { display: flex; gap: 36px; }
.nav__links a,
.footer a,
.link-arrow { position: relative; }
.nav__links a { font-weight: 500; font-size: .95rem; }
.nav__links a::after,
.footer li a::after,
.footer__bottom a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after,
.footer li a:hover::after,
.footer__bottom a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
body.menu-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
body.menu-open .nav { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--blue);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--pad) 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .8s var(--ease-io), visibility 0s .8s;
}
body.menu-open .menu {
  transform: none;
  visibility: visible;
  transition: transform .8s var(--ease-io);
}
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 13vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu nav a[aria-current="page"] { color: var(--sky); }
body.menu-open .menu nav a { opacity: 1; transform: none; }
body.menu-open .menu nav a:nth-child(1) { transition-delay: .3s; }
body.menu-open .menu nav a:nth-child(2) { transition-delay: .38s; }
body.menu-open .menu nav a:nth-child(3) { transition-delay: .46s; }
body.menu-open .menu nav a:nth-child(4) { transition-delay: .54s; }
.menu__meta { margin-top: auto; font-size: .85rem; opacity: .7; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 110px var(--pad) 32px;
  overflow: hidden;
}
.hero__stage {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
}

.hero__name {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: calc(var(--photo-w) * .86);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 16rem);
  line-height: .82;
  letter-spacing: -.045em;
  color: var(--blue);
}
.hero__part {
  display: inline-flex;
  overflow: hidden;
  padding: .06em .03em;
}
/* The two halves drift apart as you scroll (JS sets --p from 0 to 1) */
.hero__part--left  { translate: calc(var(--p, 0) * -14vw) 0; }
.hero__part--right { translate: calc(var(--p, 0) *  14vw) 0; }

.char {
  display: inline-block;
  translate: 0 110%;
  transition: translate 1.2s var(--ease);
  transition-delay: calc(1.05s + var(--i) * 70ms);
}
body.is-loaded .char { translate: 0 0; }

/* Photo: arched like a Cycladic window, revealed from the bottom */
.hero__photo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: var(--photo-w);
  aspect-ratio: 3 / 4;
  translate: -50% -50%;
  scale: calc(1 + var(--p, 0) * .12);
  clip-path: inset(100% 0 0 0 round 999px 999px 16px 16px);
  transition: clip-path 1.3s var(--ease-io) .6s;
}
body.is-loaded .hero__photo { clip-path: inset(0 0 0 0 round 16px 16px 16px 16px); }

.hero__photo-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky) 0%, #B9D0EA 100%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  scale: 1.5;
  transition: scale 1.8s var(--ease) .6s;
}
body.is-loaded .hero__photo img { scale: 1; }

.hero__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  place-items: end center;
  color: var(--blue);
  font-size: .7rem;
  letter-spacing: .05em;
}
.hero__placeholder svg { width: 80%; fill: var(--blue); opacity: .3; }
.hero__placeholder span { position: absolute; bottom: 14px; opacity: .8; }
.is-missing img { display: none; }
.is-missing .hero__placeholder { display: grid; }

/* Hero bottom row */
.hero__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  font-size: .9rem;
  color: var(--muted);
}
.hero__meta > * {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .9s var(--ease), translate .9s var(--ease);
  transition-delay: 1.8s;
}
body.is-loaded .hero__meta > * { opacity: 1; translate: 0 0; }
.hero__role { color: var(--navy); font-weight: 500; }
.hero__role span { color: var(--muted); font-weight: 400; }
.hero__now { justify-self: end; display: flex; align-items: center; gap: 10px; text-align: right; }
.hero__now strong { color: var(--navy); font-weight: 600; }

.dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 112, 42, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 112, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 112, 42, 0); }
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  animation: scrollLine 2s var(--ease-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ============ SECTIONS ============ */
.section { padding: clamp(90px, 14vw, 180px) var(--pad); }

/* About / what I do */
.intro__statement {
  margin-top: 28px;
  max-width: 1200px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.4vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.intro__statement em { font-style: normal; }
.word { color: rgba(11, 79, 156, .16); transition: color .5s var(--ease); }
.word.is-on { color: var(--navy); }
.word--accent.is-on { color: var(--blue); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  margin: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
}
.service {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.service::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service__num { font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--copper); }
.service h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin: 14px 0 10px;
  transition: color .4s;
}
.service:hover h3 { color: var(--blue); }
.service p { color: var(--muted); max-width: 34ch; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--blue);
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.arrow { display: inline-block; transition: transform .5s var(--ease), color .4s; }
.link-arrow:hover .arrow { transform: translateX(6px); }

/* Work */
/* Stop home-page card styles leaking onto the projects page */
.projects-page .work,
.projects-page .work__link,
.projects-page .work__info {
  background: transparent;
  box-shadow: none;
  border: 0;
}

.work { background: var(--white); }
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.work__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--blue);
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
}
.project:first-child { grid-column: 1 / -1; }

.project__media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
}
.project:first-child .project__media { aspect-ratio: 16 / 7; }
.project__media-inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: scale 1.1s var(--ease);
}
.project__media-inner img { width: 100%; height: 100%; object-fit: cover; }
.project:hover .project__media-inner { scale: 1.05; }

.project__media-inner--taim  { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.project__media-inner--brand { background: linear-gradient(135deg, var(--sky), #9FBFE3); }
.project__media-inner--next  { background: var(--wash); border: 1px dashed rgba(11, 79, 156, .3); border-radius: 14px; }

.project__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  text-align: center;
  color: #fff;
}
.project__media-inner--brand .project__mark,
.project__media-inner--next .project__mark { color: var(--blue); }
.project__media-inner--next .project__mark { opacity: .25; }

.project__info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
}
.project h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 4px;
  transition: color .4s;
}
.project:hover h3 { color: var(--blue); }
.project p { color: var(--muted); }
.project__year { color: var(--muted); font-size: .9rem; white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: .75rem;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: border-color .4s, color .4s;
}
.project:hover .tag { border-color: var(--blue); color: var(--blue); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  padding: clamp(80px, 12vw, 150px) var(--pad) 32px;
}
.footer__bg {
  position: absolute;
  right: -8vw;
  bottom: -4vw;
  width: 70vw;
  fill: none;
  stroke: #fff;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  opacity: .1;
  pointer-events: none;
}
.footer__bg path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.footer__label { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.footer__cta {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.045em;
  transition: color .5s;
}
.footer__cta:hover { color: var(--sky); }
.footer__cta:hover .arrow { transform: translateX(.15em); color: var(--copper); }

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: clamp(60px, 9vw, 120px);
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.footer h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer li a { display: inline-block; }
.footer__island { width: 90px; fill: var(--copper); margin-bottom: 10px; }
.footer__coords { opacity: .6; font-size: .85rem; }
.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  font-size: .85rem;
  opacity: .7;
}

/* ============ SERVICES & WORK (combined) ============ */
.work__title--sm { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.sw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.sw__services { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .5s var(--ease);
}
.svc::before {                         /* copper marker slides in on the active service */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--copper);
  scale: 0;
  transition: scale .4s var(--ease);
}
.svc.is-active { padding-left: 26px; }
.svc.is-active::before { scale: 1; }
.svc__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  color: rgba(10, 31, 60, .35);
  transition: color .4s;
}
.svc:hover .svc__name, .svc.is-active .svc__name { color: var(--blue); }
.svc__desc, .svc__tools {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .6s var(--ease), opacity .4s, margin .5s var(--ease);
}
.svc__desc  { color: var(--muted); max-width: 44ch; }
.svc__tools { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.svc.is-active .svc__desc  { max-height: 6em; opacity: 1; }
.svc.is-active .svc__tools { max-height: 3em; opacity: 1; margin-top: 4px; }

.sw__hint { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.sw__hint-svc { color: var(--blue); font-weight: 600; }
.sw__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.mini { display: none; }
.mini.is-shown { display: block; animation: miniIn .7s var(--ease) both; }
.mini.is-shown:nth-child(2), .mini.is-shown:nth-child(3) { animation-delay: .08s; }
@keyframes miniIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

.mini__media {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.mini__media span, .mini__media img {
  transition: scale .9s var(--ease);
}
.mini__media img { width: 100%; height: 100%; object-fit: cover; }
.mini:hover .mini__media span, .mini:hover .mini__media img { scale: 1.07; }
.mini__media span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: .95;
  letter-spacing: -.04em;
  text-align: center;
}
.mini__media--taim  { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; }
.mini__media--brand { background: linear-gradient(135deg, var(--sky), #9FBFE3); color: var(--blue); }
.mini__media--self  { background: var(--wash); color: var(--blue); border: 1px dashed rgba(11, 79, 156, .3); }
.mini__info { padding-top: 14px; }
.mini h3 { font-family: var(--font-display); font-size: 1.2rem; transition: color .4s; }
.mini:hover h3 { color: var(--blue); }
.mini p { font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .sw { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sw__grid { gap: 12px; }
  .mini__media span { font-size: 1.3rem; }
  .mini h3 { font-size: 1rem; }
  .mini p { font-size: .78rem; }
}
.intro__more { margin-top: clamp(40px, 5vw, 64px); }

/* ============ OFF THE SCREEN ============ */
.life { background: var(--wash); overflow: hidden; }
.life__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

/* Two overlapping photos: "then" behind, "now" in front */
.life__photos { position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; }
.life__photo {
  position: absolute;
  width: 60%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 31, 60, .45);
  transition: rotate .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease);
}
.life__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.life__photo--back {
  left: 0; top: 0;
  rotate: -6deg;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--sky), #9FBFE3);
}
.life__photo--front {
  right: 0; bottom: 0;
  rotate: 4deg;
  border-radius: 16px;   /* Cycladic arch, like the hero */
  background: linear-gradient(160deg, var(--blue), var(--navy));
}
.life__photos:hover .life__photo--back  { rotate: -10deg; translate: -12px -8px; }
.life__photos:hover .life__photo--front { rotate: 0deg; scale: 1.03; }
.life__photo:hover img { scale: 1.06; }

.life__photo figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.life__photo--back figcaption { top: 14px; bottom: auto; }  /* keeps it clear of the front photo */

/* Text side */
.life__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--blue);
}
.life__lead { margin-top: 26px; max-width: 52ch; font-size: 1.08rem; color: var(--muted); }
.life__list { list-style: none; margin-top: 34px; border-top: 1px solid var(--line); }
.life__list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .5s var(--ease);
}
.life__list li:hover { padding-left: 12px; background: var(--sky); }
.life__list span { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.life__list strong { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 700; }

/* Slow scrolling word strip */
.life__marquee {
  margin: clamp(70px, 10vw, 130px) calc(var(--pad) * -1) 0;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
}
.life__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.life__marquee:hover .life__track { animation-play-state: paused; }
.life__track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  transition: color .4s;
}
.life__track span:hover { color: var(--blue); }
.life__track i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

@media (max-width: 900px) {
  .life__grid { grid-template-columns: 1fr; }
  .life__photos { max-width: 440px; margin-inline: auto; }
}

/* ============ SCROLL REVEAL ============ */
[data-reveal] {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 1s var(--ease), translate 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ============ CUSTOM CURSOR ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--copper);
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease),
              background .4s, opacity .3s;
}
.cursor span { font-size: .75rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .3s; }
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(200, 112, 42, .3); }
.cursor.is-view { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--blue); }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project:first-child .project__media { aspect-ratio: 4 / 3; }
  .work__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  :root { --photo-w: 52vw; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .hero__name {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    row-gap: calc(var(--photo-w) * 1.08);
    font-size: 29vw;
  }
  .hero__part--left  { align-self: flex-start; }
  .hero__part--right { align-self: flex-end; }
  .hero__meta { grid-template-columns: 1fr; gap: 10px; }
  .hero__now { justify-self: start; text-align: left; }
  .hero__scroll { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:last-child { grid-column: 1 / -1; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .loader { display: none; }
}
/* =========================================================
   PROJECTS PAGE
   Delete the old "PROJECTS PAGE" block at the bottom of
   style.css and paste this in its place.
   Scroll reveals use the [data-reveal] styles you already
   have for the home page.
   ========================================================= */

.projects-page {
  --proj-blue:   var(--blue, #0d5eaf);    /* Greek-island blue */
  --proj-deep:   var(--navy, #0a2540);    /* dark blue text */
  --proj-sky:    #5b9bd5;
  --proj-copper: var(--copper, #d57800);  /* Cyprus copper */
  --proj-white:  var(--white, #ffffff);
  --proj-muted:  rgba(10, 37, 64, .65);
  --proj-line:   rgba(10, 37, 64, .15);
  --proj-ease:   cubic-bezier(.2, .7, .2, 1);
}
.projects-page [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.ph {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(8rem, 14vw, 11rem) 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.ph__text { max-width: 36rem; }
.ph__eyebrow {
  margin: 0 0 1rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--proj-muted);
}
.ph__eyebrow span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--proj-copper);
}
.ph__title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--proj-deep);
}
.ph__intro {
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--proj-muted);
}

/* Filter pills */
.ph__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pf {
  font: inherit;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--proj-line);
  border-radius: 999px;
  background: transparent;
  color: var(--proj-deep);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--proj-ease);
}
.pf:hover { border-color: var(--proj-blue); transform: translateY(-2px); }
.pf.is-active {
  background: var(--proj-blue);
  border-color: var(--proj-blue);
  color: var(--proj-white);
}
.pf:focus-visible { outline: 2px solid var(--proj-copper); outline-offset: 3px; }

/* ---------- Main projects ---------- */
.works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
}
.work__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.work__link:focus-visible {
  outline: 2px solid var(--proj-copper);
  outline-offset: 8px;
  border-radius: 20px;
}

.work__media {
  position: relative;
  aspect-ratio: 16 / 8;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--proj-blue), var(--proj-deep));
}
.work:nth-child(2) .work__media { background: linear-gradient(135deg, var(--proj-sky), var(--proj-blue)); }
.work:nth-child(3) .work__media { background: linear-gradient(135deg, var(--proj-deep), var(--proj-blue) 70%, var(--proj-copper)); }
.work:nth-child(4) .work__media { background: linear-gradient(135deg, var(--proj-blue), var(--proj-sky)); }

/* Project name shown until you add the real image */
.work__media::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .92);
}
.work__media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--proj-ease);
}
.work__media.is-missing img { display: none; }

.work__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 4rem;
  padding-top: 1.75rem;
}
.work__title {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  margin: 0 0 .75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--proj-deep);
  transition: color .3s;
}
.work__num {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--proj-copper);
}
.work__desc {
  max-width: 34rem;
  margin: 0;
  line-height: 1.6;
  color: var(--proj-muted);
}
.work__meta {
  display: flex;
  gap: 3rem;
  margin: 0;
  padding-top: .6rem;
}
.work__meta dt {
  margin-bottom: .35rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--proj-muted);
}
.work__meta dd {
  margin: 0;
  font-weight: 500;
  color: var(--proj-deep);
}

.work__link:hover .work__media img { transform: scale(1.04); }
.work__link:hover .work__title     { color: var(--proj-blue); }

/* ---------- Experiments ---------- */
.exps {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 9rem) 1.5rem clamp(5rem, 10vw, 8rem);
}
.exps__title {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--proj-deep);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--proj-deep);
}
.exps__list { margin: 0; padding: 0; list-style: none; }

.exp { border-bottom: 1px solid var(--proj-line); }
.exp__link {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 8rem 4rem 2rem;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem .5rem;
  color: inherit;
  text-decoration: none;
  transition: background .35s, padding .35s var(--proj-ease);
}
.exp__num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--proj-copper);
}
.exp__name {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -.02em;
  color: var(--proj-deep);
  transition: color .3s;
}
.exp__desc {
  display: block;
  margin-top: .25rem;
  font-size: .95rem;
  color: var(--proj-muted);
}
.exp__type,
.exp__year {
  font-size: .9rem;
  color: var(--proj-muted);
}
.exp__arrow {
  justify-self: end;
  font-size: 1.25rem;
  color: var(--proj-deep);
  transition: transform .35s var(--proj-ease), color .3s;
}

.exp__link:hover,
.exp__link:focus-visible {
  background: rgba(13, 94, 175, .06);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  outline: none;
}
.exp__link:hover .exp__name,
.exp__link:focus-visible .exp__name { color: var(--proj-blue); }
.exp__link:hover .exp__arrow,
.exp__link:focus-visible .exp__arrow { transform: rotate(-45deg); color: var(--proj-copper); }

/* Floating preview image (desktop only, controlled by JS) */
.exp-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(135deg, var(--proj-blue), var(--proj-deep));
  opacity: 0;
  scale: .85;
  transition: opacity .3s, scale .4s var(--proj-ease);
}
.exp-preview.is-on { opacity: 1; scale: 1; }
.exp-preview img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exp-preview.is-missing img { display: none; }
.exp-preview__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, .92);
}
.exp-preview:not(.is-missing) .exp-preview__label { display: none; }

/* Empty state */
.proj-empty {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
  font-size: 1.1rem;
  color: var(--proj-muted);
}

/* ---------- Let's work together ---------- */
.cta-band {
  padding: clamp(5rem, 11vw, 9rem) 1.5rem;
  text-align: center;
  background: var(--proj-blue);
}
.cta-band__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--proj-white);
  text-decoration: none;
}
.cta-band__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -.15em;
  width: 100%;
  height: 4px;
  background: var(--proj-copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--proj-ease);
}
.cta-band__link span { transition: transform .4s var(--proj-ease); }
.cta-band__link:hover::after { transform: scaleX(1); }
.cta-band__link:hover span   { transform: translateX(12px); }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .work__media { aspect-ratio: 4 / 3; }
  .work__info  { grid-template-columns: 1fr; }
  .work__meta  { padding-top: 0; }
}
@media (max-width: 600px) {
  .exp__link {
    grid-template-columns: 2rem minmax(0, 1fr) 1.5rem;
    padding: 1.25rem 0;
  }
  .exp__type,
  .exp__year { display: none; }
  .exp__link:hover,
  .exp__link:focus-visible { padding-left: .5rem; padding-right: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .work__media img,
  .exp__link,
  .exp__arrow,
  .exp-preview,
  .cta-band__link::after,
  .cta-band__link span { transition: none; }
}

/* =========================================================
   CONTACT PAGE — paste at the bottom of style.css
   Everything is scoped to .contact-page / .ct-*
   ========================================================= */

.contact-page {
  --ct-blue:   var(--blue, #0d5eaf);
  --ct-deep:   var(--navy, #0a2540);
  --ct-copper: var(--copper, #d57800);
  --ct-white:  var(--white, #ffffff);
  --ct-muted:  rgba(10, 37, 64, .6);
  --ct-line:   rgba(10, 37, 64, .2);
  --ct-error:  #c0392b;
  --ct-ease:   cubic-bezier(.2, .7, .2, 1);
}
.contact-page [hidden] { display: none !important; }

/* ---------- Hero ---------- */
.ct-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(8rem, 14vw, 11rem) 1.5rem clamp(3rem, 6vw, 4.5rem);
}
.ct-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ct-muted);
}
.ct-hero__eyebrow span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ct-copper);
}
.ct-hero__title {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--ct-deep);
}
.ct-dot { color: var(--ct-blue); }
.ct-hero__intro {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ct-muted);
}

/* ---------- Layout ---------- */
.ct-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem clamp(6rem, 12vw, 9rem);
  border-top: 1px solid var(--ct-line);
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 4rem clamp(3rem, 8vw, 7rem);
  align-items: start;
}

/* ---------- Form ---------- */
.ct-form { display: grid; gap: 2.5rem; }
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ct-field { position: relative; min-width: 0; }
.ct-field > label,
.ct-topics legend {
  display: block;
  margin-bottom: .6rem;
  padding: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ct-deep);
}
.ct-topics { margin: 0; padding: 0; border: 0; }

.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: .6rem 0;
  border: 0;
  border-bottom: 1px solid var(--ct-line);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ct-deep);
  outline: none;
  transition: border-color .3s;
}
.ct-field textarea {
  resize: none;
  overflow: hidden;
  min-height: 2.6rem;
  line-height: 1.5;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: rgba(10, 37, 64, .35); }

/* Blue line that draws in on focus */
.ct-field:not(.ct-topics)::after {
  content: '';
  position: absolute;
  left: 0;
  top: calc(100% - 1.6rem - 2px);
  width: 100%;
  height: 2px;
  background: var(--ct-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ct-ease);
  pointer-events: none;
}
.ct-field:focus-within::after { transform: scaleX(1); }

.ct-error {
  min-height: 1.6rem;
  margin: 0;
  padding-top: .35rem;
  font-size: .85rem;
  color: var(--ct-error);
}
.ct-field.has-error input,
.ct-field.has-error textarea { border-bottom-color: var(--ct-error); }
.ct-field.has-error::after { background: var(--ct-error); }

/* Topic chips */
.ct-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ct-chip span {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--ct-line);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--ct-deep);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ct-ease);
}
.ct-chip:hover span { border-color: var(--ct-blue); transform: translateY(-2px); }
.ct-chip input:checked + span {
  background: var(--ct-blue);
  border-color: var(--ct-blue);
  color: var(--ct-white);
}
.ct-chip input:focus-visible + span { outline: 2px solid var(--ct-copper); outline-offset: 3px; }

/* Spam trap */
.ct-trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Send button */
.ct-send {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--ct-blue);
  color: var(--ct-white);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s, transform .3s var(--ct-ease);
}
.ct-send__arrow { transition: transform .35s var(--ct-ease); }
.ct-send:hover { background: var(--ct-deep); transform: translateY(-2px); }
.ct-send:hover .ct-send__arrow { transform: translateX(6px); }
.ct-send:focus-visible { outline: 2px solid var(--ct-copper); outline-offset: 4px; }
.ct-send:disabled { opacity: .6; cursor: wait; transform: none; }

.ct-status {
  min-height: 1.5rem;
  margin: -1.5rem 0 0;
  font-size: .9rem;
  color: var(--ct-muted);
}
.ct-status.is-error { color: var(--ct-error); }

/* Success panel */
.ct-success { animation: ctIn .7s var(--ct-ease) both; }
.ct-success__big {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -.03em;
  color: var(--ct-blue);
}
.ct-success__text {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  color: var(--ct-muted);
}
.ct-success__again {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ct-blue);
  cursor: pointer;
}
@keyframes ctIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Aside ---------- */
.ct-aside { display: grid; gap: 2.5rem; }
.ct-label {
  margin: 0 0 .75rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ct-muted);
}
.ct-email {
  display: inline-flex;
  flex-direction: column;
  gap: .25rem;
  color: var(--ct-deep);
  text-decoration: none;
}
.ct-email__text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  word-break: break-all;
  background: linear-gradient(var(--ct-copper), var(--ct-copper)) left bottom / 0 2px no-repeat;
  transition: background-size .45s var(--ct-ease), color .3s;
}
.ct-email:hover .ct-email__text { background-size: 100% 2px; color: var(--ct-blue); }
.ct-email__hint {
  font-size: .8rem;
  color: var(--ct-muted);
  transition: color .3s;
}
.ct-email.is-copied .ct-email__hint { color: var(--ct-blue); }

.ct-links { margin: 0; padding: 0; list-style: none; }
.ct-links li { border-bottom: 1px solid var(--ct-line); }
.ct-links li:first-child { border-top: 1px solid var(--ct-line); }
.ct-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  font-weight: 500;
  color: var(--ct-deep);
  text-decoration: none;
  transition: color .3s, padding .35s var(--ct-ease);
}
.ct-links a span { transition: transform .35s var(--ct-ease), color .3s; }
.ct-links a:hover { color: var(--ct-blue); padding-left: .5rem; }
.ct-links a:hover span { transform: translate(3px, -3px); color: var(--ct-copper); }

.ct-place {
  margin: 0;
  font-weight: 500;
  color: var(--ct-deep);
}
.ct-place span { color: var(--ct-copper); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .ct-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-field::after,
  .ct-chip span,
  .ct-send,
  .ct-send__arrow,
  .ct-links a,
  .ct-email__text { transition: none; }
  .ct-success { animation: none; }
}

/* ABOUT PAGE */

.ab-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.ab-section { padding-block: clamp(80px, 11vw, 150px); }
.ab-section + .ab-section { border-top: 1px solid var(--line); }

/* Section label: "02  Studies" */
.ab-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.ab-label span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--copper);
}

/* ---------- 01 Hero ---------- */
.ab-hero { padding-top: clamp(130px, 17vw, 200px); padding-bottom: clamp(70px, 9vw, 120px); }
.ab-hero__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.8rem, 13vw, 11rem);
  line-height: .86;
  letter-spacing: -.045em;
  color: var(--blue);
}
.ab-hero__line { display: inline-flex; overflow: hidden; padding: .06em .02em; }
.ab-hero__line + .ab-hero__line { margin-left: .22em; }
/* Faster than the home hero, there is no long loader here */
.about-page .char { transition-delay: calc(.35s + var(--i) * 55ms); }

.ab-hero__greet {
  margin-top: clamp(40px, 6vw, 70px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--copper);
}
.ab-statement { margin-top: 14px; max-width: 1050px; }

.ab-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: clamp(40px, 5vw, 60px);
  font-size: .92rem;
  color: var(--muted);
}
.ab-hero__meta > span { display: inline-flex; align-items: center; gap: 10px; }
.ab-hero__meta strong { color: var(--navy); font-weight: 600; }

/* ---------- 02 Studies (timeline) ---------- */
.ab-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 52px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: 48px;
  list-style: none;
}
.ab-steps::before,
.ab-steps__line {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.ab-steps__line {
  height: 2px;
  margin-top: -.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-io) .2s;
}
.ab-steps.is-visible .ab-steps__line { transform: scaleX(1); }

.ab-step { position: relative; }
.ab-step::before {                       /* stop on the line */
  content: "";
  position: absolute;
  top: -48px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--wash);
  border: 2px solid var(--blue);
  transition: background .4s, border-color .4s;
  transition-delay: calc(.4s + var(--n, 0) * .55s);
}
.ab-steps.is-visible .ab-step::before { background: var(--copper); border-color: var(--copper); }
.ab-step--now::before { animation: pulse 2s 2.4s infinite; }

.ab-step__years {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--copper);
}
.ab-step__now {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  letter-spacing: .1em;
}

.ab-step__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky), #9FBFE3);
}
.ab-step:nth-child(3) .ab-step__media { background: linear-gradient(160deg, #9FBFE3, var(--blue)); }
.ab-step:nth-child(4) .ab-step__media { background: linear-gradient(160deg, var(--blue), var(--navy)); }

.ab-step h3 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  transition: color .4s;
}
.ab-step p { margin-top: 6px; color: var(--muted); max-width: 32ch; }
.ab-step:hover h3 { color: var(--blue); }

/* Shared placeholder / photo frame */
.ab-media__img,
.ab-media__ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: scale 1.1s var(--ease);
}
.ab-media__img { z-index: 1; object-fit: cover; }   /* covers the placeholder once your photo loads */
.ab-media__ph {
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .92);
}
.ab-step:nth-child(2) .ab-media__ph { color: var(--blue); }   /* 1st step (the line is child 1) */
.ab-step:hover .ab-media__img,
.ab-step:hover .ab-media__ph,
.ab-how__photo:hover .ab-media__img,
.ab-how__photo:hover .ab-media__ph { scale: 1.06; }

/* ---------- 03 Why UI/UX & Frontend ---------- */
.ab-why {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 110px);
  margin-top: clamp(36px, 5vw, 56px);
  align-items: start;
}
.ab-why__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.ab-why__quote em { font-style: normal; color: var(--blue); }
.ab-why__text { display: grid; gap: 18px; padding-top: 10px; font-size: 1.08rem; color: var(--muted); max-width: 52ch; }

/* ---------- 04 How I work ---------- */
.ab-how {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 110px);
  margin-top: clamp(36px, 5vw, 56px);
  align-items: center;
}
.ab-how__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  width: 100%;
  border-radius: 16px 16px 16px 16px;   /* Cycladic arch, like the hero */
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue), var(--navy));
  box-shadow: 0 30px 60px -30px rgba(10, 31, 60, .45);
}
.ab-how__photo figcaption {
  position: absolute;
  left: 50%; bottom: 16px;
  translate: -50% 0;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ab-how__lead { font-size: 1.12rem; color: var(--muted); max-width: 50ch; }

.ab-process { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); counter-reset: step; }
.ab-process li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .5s var(--ease);
}
.ab-process li:hover { padding-left: 14px; background: var(--sky); }
.ab-process li::before {
  counter-increment: step;
  content: "0" counter(step);
  grid-row: span 2;
  padding-top: 4px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--copper);
}
.ab-process strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  transition: color .4s;
}
.ab-process li:hover strong { color: var(--blue); }
.ab-process p { color: var(--muted); font-size: .95rem; }

/* ---------- 05 Skills ---------- */
.ab-skills__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--blue);
}
.ab-skills__lead { margin-top: 20px; max-width: 54ch; font-size: 1.08rem; color: var(--muted); }

/* ---------- About: 05 Off the screen (uses your existing .life styles) ---------- */
.ab-life .life__grid { margin-top: clamp(36px, 5vw, 56px); }

.ab-life__list li { grid-template-columns: 70px 1fr; align-items: start; }
.ab-life__list li > span { padding-top: 6px; }
.ab-life__list p { margin-top: 4px; font-size: .92rem; color: var(--muted); max-width: 52ch; }

.life__photo--back .ab-media__ph { color: var(--blue); }
.life__photo figcaption,
.ab-how__photo figcaption { z-index: 2; }   /* captions stay on top of the photos */
.ab-skillset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.5vw, 52px);
  margin-top: clamp(48px, 6vw, 80px);
}

.ab-skill {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.ab-skill::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.ab-skill:hover::before { transform: scaleX(1); }
.ab-skill h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  transition: color .4s;
}
.ab-skill h3 span { font-size: .8rem; letter-spacing: .1em; color: var(--copper); }
.ab-skill:hover h3 { color: var(--blue); }

.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.ab-chips li {
  font-size: .85rem;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: border-color .4s, color .4s, background .3s, translate .3s var(--ease);
}
.ab-skill:hover .ab-chips li { border-color: rgba(11, 79, 156, .4); }
.ab-chips li:hover { background: var(--blue); border-color: var(--blue); color: #fff; translate: 0 -2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ab-why, .ab-how { grid-template-columns: 1fr; }
  .ab-how__photo { max-width: 380px; }
  .ab-skillset { grid-template-columns: 1fr; }
}

/* Timeline turns vertical on phones */
@media (max-width: 700px) {
  .ab-steps {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 0;
    padding-left: 36px;
  }
  .ab-steps::before,
  .ab-steps__line {
    top: 0; bottom: 0; right: auto;
    left: 6px;
    width: 1px; height: auto;
  }
  .ab-steps__line { width: 2px; margin: 0 0 0 -.5px; transform: scaleY(0); transform-origin: top; }
  .ab-steps.is-visible .ab-steps__line { transform: scaleY(1); }
  .ab-step::before { top: 2px; left: -36px; }
  .ab-step__media { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-steps__line { transform: none !important; }
}

/* Nav: mark the page you're on (works on every page that sets aria-current) */
.nav__links a[aria-current="page"] { color: var(--blue); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }