/* ============================================================
   manoskantilas.com — design system
   White #FFFFFF · Ink #333333 · Taupe #C3B29A (accent) · Mist #CBD3D7
   Headings: Montserrat Semibold · Body/UI: Poppins
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --paper-alt: #F2F4F5;     /* faint cool tint of Mist for section rhythm */
  --ink: #333333;
  --ink-soft: #6F6E6C;
  --char: #333333;          /* dark sections: hero, footer */
  --char-raised: #3F3F3F;
  --mist: #CBD3D7;          /* cool light grey — supporting tone */
  --gold: #DEC08A;          /* warm gold accent (decorative, on dark) */
  --gold-deep: #A8843A;     /* deeper gold for small accent text on white (contrast) */
  --line: rgba(51, 51, 51, .14);
  --line-cool: #CBD3D7;
  --line-light: rgba(255, 255, 255, .18);
  --paper-dim: rgba(255, 255, 255, .74);

  /* --serif = display/headings (now Montserrat), --sans = body/UI (Poppins) */
  --serif: "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --sans: "Poppins", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --space: clamp(4.5rem, 10vw, 8.5rem);   /* vertical rhythm between sections */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Brand font (Physiokatsarou wordmark) ---------- */
@font-face {
  font-family: "PF Bague Sans Pro";
  src: url("../fonts/PFBagueSansPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PF Bague Sans Pro";
  src: url("../fonts/PFBagueSansPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

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

.container {
  width: min(1140px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type helpers ---------- */
.kicker {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}
.kicker--light { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin-top: 1.1rem;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 1.05rem 2.2rem;
  border: 1px solid var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn--hero {
  color: var(--paper);
  border-color: rgba(222, 192, 138, .6);
}
.btn--hero:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--char);
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-top: clamp(1.4rem, 3.5vw, 2.4rem);
}
.site-header__inner {
  width: min(1140px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.brand__mark { width: 50px; height: auto; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--paper);
}

.site-nav {
  display: flex;
  gap: clamp(1.6rem, 3vw, 2.8rem);
}
.site-nav a {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding-block: .35rem;
  position: relative;
  transition: color .25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--paper); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Burger — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 10px 4px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 12;
}
.nav-toggle__line {
  width: 26px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--char);
  color: var(--paper);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  filter: brightness(1.32) contrast(1.05);
}

/* Fallback background if the hero image fails to load */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #2b2825 0%, #232120 45%, #1c1a19 100%);
}

/* Scrim: darken the left (behind the text) while letting the sculpted M read on the right */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(24, 22, 21, .62) 0%, rgba(24, 22, 21, .34) 30%, rgba(24, 22, 21, .04) 54%, rgba(24, 22, 21, 0) 74%, rgba(24, 22, 21, 0) 100%),
    linear-gradient(to top, rgba(24, 22, 21, .3) 0%, transparent 26%);
}

/* Printed-page hairline frame */
.hero__frame {
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(178, 144, 96, .28);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 9rem 6rem;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin-top: 1.6rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero__tagline {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--paper-dim);
}

.hero__actions { margin-top: 2.8rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0 1rem;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(.55); transform-origin: top; opacity: .5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ---------- About ---------- */
.about { padding-block: var(--space); }

.about__inner {
  display: grid;
  gap: 1.5rem;
}
.about__lead,
.about__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 26em;
}
/* same voice as the opening line, just set a little further down */
.about__body { margin-top: 1rem; }

/* ---------- Services ---------- */
.services { padding-block: 0 var(--space); }

.services__list {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.service__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-deep);
  padding-top: .4rem;
}

.service__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.service__desc {
  margin-top: .9rem;
  max-width: 58ch;
  color: var(--ink-soft);
}

.service--primary .service__title { font-size: clamp(1.8rem, 3vw, 2.2rem); }
.service--primary .service__desc { font-size: 1.05rem; }

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin-top: 1.4rem;
}
.service__tags li {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.service__tags li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

.service--minor .service__title { font-size: 1.2rem; }
.service--minor .service__desc { font-size: .92rem; max-width: 52ch; }
.service--minor { padding-block: clamp(1.5rem, 3vw, 2.2rem); }

/* ---------- Work ---------- */
.work { padding-block: 0 var(--space); }

.project { display: block; }

/* Browser mockup frame — full screenshot, no cropping */
.project__media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--char-raised);
}
.project__media img {
  width: 100%;
  height: auto;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1), opacity .8s ease;
}
.project:hover .project__media img { transform: scale(1.02); }

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  padding: .55rem 1rem;
  background: var(--char-raised);
  border-bottom: 1px solid rgba(178, 144, 96, .3);
}
.browser-bar__dots {
  display: inline-flex;
  gap: 6px;
}
.browser-bar__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244, 243, 241, .2);
}
.browser-bar__dots i:first-child { background: var(--gold); }
.browser-bar__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
}

.project__caption {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.project__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold-deep);
}

.project__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  position: relative;
}
.project__name::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.project:hover .project__name::after { transform: scaleX(1); }

.project__meta {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: auto;
  text-align: right;
}

.project__arrow {
  color: var(--gold-deep);
  font-size: 1rem;
  transition: transform .3s ease;
}
.project:hover .project__arrow { transform: translate(3px, -3px); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.work__grid .project__name { font-size: 1.1rem; }
.work__grid .project__meta { font-size: .7rem; }

/* Secondary projects — quiet list */
.work__more { margin-top: clamp(3rem, 6vw, 5rem); }

.work__more-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}

.work__more-list { border-top: 1px solid var(--line); }
.work__more-list a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.work__more-list .project__name { font-size: 1rem; font-weight: 400; }
.work__more-list .project__meta { font-size: .7rem; }

/* ---------- Contact CTA ---------- */
.cta {
  padding-block: 0 var(--space);
}
.cta__inner {
  border-top: 1px solid var(--line);
  padding-top: var(--space);
  text-align: center;
  display: grid;
  justify-items: center;
}
.cta .kicker::before { display: none; }
.cta .kicker::after,
.cta .kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  display: block;
}

.cta__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-top: 1.3rem;
}
.cta__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
}

.cta__text {
  margin-top: 1.1rem;
  color: var(--ink-soft);
}

.cta__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem 2.4rem;
}
.cta__phone {
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: .15rem;
  transition: color .25s ease;
}
.cta__phone:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--char);
  color: var(--paper-dim);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}

.site-footer .brand__name { color: var(--paper); }

.site-footer__contact {
  display: grid;
  gap: .3rem;
  font-size: .92rem;
  font-weight: 300;
}
.site-footer__contact a { transition: color .25s ease; }
.site-footer__contact a:hover { color: var(--gold); }

.site-footer__social {
  display: flex;
  gap: 1.4rem;
}
.site-footer__social a {
  color: var(--paper-dim);
  padding: .3rem;
  transition: color .25s ease, transform .25s ease;
}
.site-footer__social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.8rem;
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  font-weight: 300;
  padding: .55rem 1.1rem;
  border: 1px solid var(--line-light);
  border-radius: 99px;
}
.site-footer__badge strong { font-weight: 500; color: var(--paper); }

.site-footer__copy {
  font-size: .78rem;
  font-weight: 300;
  letter-spacing: .03em;
}

/* ---------- Reveal on scroll (ενεργό μόνο με JS — html.js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll-line { animation: none; }
  .shimmer__main, .shimmer__sub { animation: none; -webkit-text-fill-color: #2B2A29; color: #2B2A29; }
  .slider__slide { transition: none; transform: none; }
  .slider__dot.is-active .slider__fill { animation: none; width: 100%; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(28, 26, 25, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }
  .site-nav a {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: none;
    color: var(--paper);
  }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle__line:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  body.nav-open .nav-toggle__line:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

  /* Hero */
  .hero__inner { padding-block: 8rem 5rem; }
  .hero__img { object-position: 72% center; }

  /* Services */
  .service { grid-template-columns: 1fr; gap: .4rem; }
  .service__no { padding-top: 0; }

  /* Work */
  .work__grid { grid-template-columns: 1fr; }
  .browser-bar__url { position: static; transform: none; margin-left: auto; }
  .project__caption { flex-wrap: wrap; gap: .4rem .9rem; }
  .project__meta { margin-left: 0; width: 100%; order: 4; text-align: left; }

  /* Footer */
  .site-footer__top { flex-direction: column; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PROJECT / CASE-STUDY PAGE
   ============================================================ */

/* ---------- Project hero ---------- */
.phero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  background: var(--char);
  color: var(--paper);
  overflow: hidden;
}
/* Deep charcoal stage with a soft gold halo behind the mockup */
.phero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 58% at 76% 46%, rgba(222, 192, 138, .17), transparent 62%),
    radial-gradient(ellipse 85% 65% at 12% 12%, rgba(255, 255, 255, .05), transparent 58%),
    linear-gradient(160deg, #2F2E2C 0%, #262524 46%, #1B1A19 100%);
}
.phero__frame {
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(197, 165, 118, .3);
  pointer-events: none;
}
.phero__grid {
  position: relative;
  z-index: 2;
  width: min(1140px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  padding-block: clamp(6rem, 10vw, 7.5rem) clamp(3rem, 6vw, 4rem);
}

/* Right column: browser mockup, slightly angled and bleeding off the edge */
.phero__stage {
  perspective: 1600px;
  margin-right: calc(-1 * clamp(0px, 6vw, 110px));
}
.mockup {
  border-radius: 12px;
  overflow: hidden;
  background: var(--char-raised);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    0 50px 90px -34px rgba(0, 0, 0, .85),
    0 0 90px -34px rgba(222, 192, 138, .3);
  transform: rotateY(-8deg) rotateX(2.5deg);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}
.mockup:hover { transform: rotateY(-3deg) rotateX(1deg); }

/* Mobile-only hero shot — desktop keeps the angled video mockup instead */
.phero__mobile-img { display: none; }
.mockup__screen {
  /* matches the recording's true display ratio (non-square pixels) so nothing is cropped */
  aspect-ratio: 1721 / 997;
  background: #121110;
}
.mockup__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-top: 1.1rem;
}
.phero__title em { font-style: italic; font-weight: 500; color: var(--gold); }
.phero__sub {
  margin-top: 1.3rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--paper-dim);
}
.phero__actions { margin-top: 2.2rem; }

/* Small back link that sits above the title */
.phero__back {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper-dim);
  transition: color .25s ease, gap .25s ease;
}
.phero__back:hover { color: var(--gold); gap: .9rem; }

/* ---------- Overview (lead + meta) ---------- */
.pj-overview { padding-block: var(--space); }
.pj-overview__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.pj-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  margin-top: 1.4rem;
}
.pj-lead em { font-style: italic; color: var(--gold-deep); }

.pj-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pj-meta > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.pj-meta dt {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: .2rem;
}
.pj-meta dd { font-size: .96rem; line-height: 1.55; color: var(--ink); }
.pj-meta a {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: .1rem;
  transition: color .25s ease;
}
.pj-meta a:hover { color: var(--gold-deep); }

/* ---------- Colour palette (interactive band) ---------- */
.pj-palette { padding-block: 0 var(--space); }
.palette {
  display: flex;
  /* no clipping — each card carries its own shape and shadow */
}
.chip {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  height: clamp(230px, 18vw, 250px);
  background: var(--c);
  color: rgba(255, 255, 255, .94);       /* light text — dark chips */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.25rem 1.35rem;
  cursor: default;
  /* rounded on the leading edge so each card reads as stacked on the one before */
  border-radius: 12px 0 0 12px;
  box-shadow: -10px 0 20px -13px rgba(51, 51, 51, .45);
  transition: flex-grow .55s cubic-bezier(.22, .61, .36, 1);
}
/* slight overlap + rising stack order = soft 3D layering */
.chip + .chip { margin-left: -12px; }
.chip:nth-child(1) { z-index: 1; }
.chip:nth-child(2) { z-index: 2; }
.chip:nth-child(3) { z-index: 3; }
.chip:nth-child(4) { z-index: 4; }
.chip:nth-child(5) { z-index: 5; }
.chip.is-light { color: var(--ink); }    /* dark text — light chips */
.chip:hover { flex-grow: 1.9; }

.chip__no {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  opacity: .5;
}
.chip__info {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  white-space: nowrap;
}
.chip__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(.92rem, 1.25vw, 1.1rem);
  letter-spacing: -.01em;
}
.chip__hex {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .74;
}

/* ---------- Screens gallery ---------- */
.pj-gallery { padding-block: 0 var(--space); }
.shot { margin-top: clamp(2rem, 4vw, 3.2rem); }
.shot:first-of-type { margin-top: 0; }
.shot__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--char-raised);
}
.shot__frame img { width: 100%; height: auto; display: block; }

/* ---------- Mega-menu slider (auto-crossfade) ---------- */
.slider { position: relative; }
.slider__stage {
  position: relative;
  aspect-ratio: 1800 / 1039;
  background: var(--char-raised);
}
.slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1s ease, transform 4s ease;
}
.slider__slide.is-active {
  opacity: 1;
  transform: scale(1);            /* slow settle while the slide is on screen */
}
/* progress dots — the active one stretches into a bar that fills with gold */
.slider__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(.7rem, 1.6vw, 1.1rem);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: 99px;
  background: rgba(18, 17, 16, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.slider__dot {
  width: 10px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
  cursor: pointer;
  transition: width .5s cubic-bezier(.22, .61, .36, 1), background .3s ease;
}
.slider__dot:hover { background: rgba(255, 255, 255, .6); }
.slider__dot.is-active { width: 34px; background: rgba(255, 255, 255, .28); }
.slider__fill { display: block; height: 100%; width: 0; background: var(--gold); }
.slider__dot.is-active .slider__fill { animation: sliderFill var(--slide-time, 3s) linear forwards; }
@keyframes sliderFill { from { width: 0; } to { width: 100%; } }
.shot__cap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.shot__cap-no { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: .95rem; }
.shot__cap-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.shot__cap-note {
  margin-left: auto;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Typography (reference specimen, dark) ---------- */
.pj-type {
  background: #262524;                 /* deep warm charcoal — a stage for the type */
  color: var(--paper-dim);
  padding-block: calc(clamp(3rem, 5vw, 4rem) + 20px);
  margin-bottom: var(--space);
  overflow: hidden;
}
.pj-type__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  min-height: 300px;                   /* modest stretch — keeps the link/feature strip from crowding the specimens */
}
.pj-type .section-title { color: var(--paper); }
.pj-type .section-title em { color: var(--gold); }

.pj-type__intro { display: flex; flex-direction: column; }
.pj-type__note {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: .95rem;
  line-height: 1.65;
  color: var(--paper-dim);
}
.pj-type__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: flex-start;
  transition: gap .25s ease;
}
.pj-type__link:hover { gap: 1rem; }

/* right panel, opened by a leading vertical rule */
.pj-type__panel {
  border-left: 1px solid var(--line-light);
  padding-left: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
}

/* font families (shared) */
[data-font="serif"] { font-family: "Noto Serif Display", Georgia, "Times New Roman", serif; }
[data-font="sans"]  { font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif; }

.type-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.type-spec__head { display: flex; align-items: center; gap: 1.1rem; }
.type-spec__aa {
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  line-height: .8;
  color: var(--paper);
}
.type-spec__aa[data-font="sans"] { font-weight: 600; letter-spacing: -.03em; }
.type-spec__meta { display: flex; flex-direction: column; gap: .3rem; }
.type-spec__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--paper);
}
.type-spec__use { font-size: .78rem; color: var(--gold); }
.type-spec__set {
  margin-top: 1rem;
  font-size: clamp(.82rem, 1vw, .98rem);
  line-height: 1.7;
  color: var(--paper-dim);
  word-spacing: .08em;
}

/* feature strip */
.type-feats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: auto;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line-light);
}
.feat {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  padding-inline: clamp(.75rem, 1.5vw, 1.2rem);
  border-left: 1px solid var(--line-light);
}
.feat:first-child { border-left: 0; padding-left: 0; }
.feat__mark {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: .3rem;
}
.feat__mark--aa small { font-size: .6em; }
.feat__icon { color: var(--gold); margin-bottom: .3rem; }
.feat__name { font-size: .82rem; font-weight: 500; color: var(--paper); }
.feat__note { font-size: .72rem; color: rgba(255, 255, 255, .45); }

/* ---------- Motion / animated identity ---------- */
.pj-motion { padding-block: 0 var(--space); }
.pj-motion__note {
  margin-top: 1.1rem;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.7;
}
.pj-motion__note strong { color: var(--ink); font-weight: 600; }

.motion-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.motion-tile { display: flex; flex-direction: column; }
.motion-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #F7F5F3;                 /* client's Warm Ivory — the logos' native ground */
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.motion-stage img { width: auto; max-width: 80%; height: auto; max-height: 84%; }

.motion-cap {
  display: flex;
  flex-direction: column;
  gap: .22rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.motion-cap__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.motion-cap__note {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Shimmer wordmark — gold light sweep across dark text */
.shimmer { text-align: center; }
.shimmer__main,
.shimmer__sub {
  display: block;
  font-family: "PF Bague Sans Pro", var(--serif);
  background: linear-gradient(90deg,
    #2B2A29 0%, #2B2A29 35%, #C9A96E 45%, #F5E6C0 50%, #C9A96E 55%, #2B2A29 65%, #2B2A29 100%);
  background-size: 250% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}
.shimmer__main { font-weight: 400; font-size: clamp(1.35rem, 2.7vw, 1.95rem); letter-spacing: .02em; line-height: 1.1; }
.shimmer__sub  { font-weight: 300; font-size: clamp(.72rem, 1.2vw, .92rem); letter-spacing: .15em; margin-top: .15rem; animation-delay: .2s; }
@keyframes shimmer {
  0%   { background-position: 150% center; }
  100% { background-position: -50% center; }
}

/* ---------- Performance (Google PageSpeed) ---------- */
.pj-perf { padding-block: 0 var(--space); }
.pj-perf__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.pj-perf__note {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.7;
}

.perf-card {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #FAF9F7;                       /* faint warm ivory */
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}
.perf-body {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
}

/* score gauges — green stays (it reads instantly as a great Google score) */
.perf-scores {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-shrink: 0;
}
.score { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.score__ring {
  width: clamp(58px, 5vw, 70px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #0CCE6B;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: #0B9E52;
}
.score__label {
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-align: center;
}

/* divider between gauges and metrics */
.perf-metrics {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-left: clamp(1.75rem, 4vw, 3.25rem);
  border-left: 1px solid var(--line);
}
.metric { display: flex; flex-direction: column; gap: .35rem; }
.metric__icon { color: var(--gold-deep); margin-bottom: .3rem; }
.metric__val {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
}
.metric__unit { font-size: .6em; font-weight: 500; margin-left: .12em; color: var(--ink-soft); }
.metric__name {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: .2rem;
}
.metric__note { font-size: .72rem; color: var(--ink-soft); }

.perf-card__foot {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.6rem);
  border-top: 1px solid var(--line);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.perf-card__foot svg {
  color: var(--gold-deep);
  vertical-align: -2px;
  margin-right: .45rem;
}
.perf-card__foot a {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: .05rem;
  transition: color .25s ease;
}
.perf-card__foot a:hover { color: var(--gold-deep); }

/* ---------- Business card (print) ---------- */
.pj-card { padding-block: 0 var(--space); }
.pj-card__note {
  margin-top: 1.2rem;
  max-width: 50ch;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.7;
}
/* sits inside the container — the mockup carries its own light ground */
.pj-card__media {
  margin-top: 1.25rem;                 /* the mockup carries its own whitespace, so keep this tight */
}
.pj-card__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.pj-card__cap {
  padding-top: 1.1rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Closing note ---------- */
.pj-closing { padding-block: 0 var(--space); }
.pj-closing__inner {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* short gold rule signals the coda */
.pj-closing__inner::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.pj-closing__lead,
.pj-closing__body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: -.01em;
}
.pj-closing__body { margin-top: 1rem; }

/* ---------- Project bottom CTA ---------- */
.pj-next { padding-block: 0 var(--space); }
.pj-next__inner {
  border-top: 1px solid var(--line);
  padding-top: var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.pj-next__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.015em;
}
.pj-next__title em { font-style: italic; font-weight: 500; color: var(--gold-deep); }

@media (max-width: 860px) {
  .phero { min-height: auto; }
  .phero__grid { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 7.5rem 3.5rem; }
  .phero__stage { display: none; }        /* video mockup never plays on mobile — swapped for a static shot below */
  .phero__mobile-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
  }
  .pj-overview__grid { grid-template-columns: 1fr; }

  /* palette → full-width colour bars */
  .palette { flex-direction: column; }
  .chip {
    height: auto;
    min-height: 76px;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0 1.3rem;
    box-shadow: -10px 0 20px -14px rgba(51, 51, 51, .5);
  }
  .chip + .chip { margin-left: 0; }
  .chip:hover { flex-grow: 0; }
  .chip__info { flex: 1; flex-direction: row; align-items: baseline; gap: .8rem; }
  .chip__hex { margin-left: auto; }

  /* typography → stacked, image first */
  .pj-type__grid { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .pj-type__panel { border-left: 0; padding-left: 0; }
  .pj-type__link { margin-top: 1.4rem; padding-top: 0; }
  .type-specs { grid-template-columns: 1fr; gap: 1.75rem; }
  /* margin-top:auto only pushes content down when the panel is stretched (desktop);
     on mobile the panel hugs its content, so give the divider fixed breathing room instead */
  .type-feats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; margin-top: 2.25rem; padding-top: 1.75rem; }
  .feat { border-left: 0; padding-inline: 0; }
  .feat:nth-child(3) { grid-column: span 2; }

  /* motion row → stacked */
  .motion-row { grid-template-columns: 1fr; }
  .motion-stage { aspect-ratio: 16 / 10; }

  /* performance → stacked groups */
  .pj-perf__head { grid-template-columns: 1fr; gap: 1.2rem; }
  .perf-body { flex-direction: column; align-items: stretch; gap: 2rem; }
  .perf-scores { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .perf-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding-left: 0;
    border-left: 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
  }
  .shot__cap { flex-wrap: wrap; gap: .3rem .9rem; }
  .shot__cap-note { margin-left: 0; width: 100%; }
  .pj-card__media { margin-top: 2rem; }   /* keep the roomier mobile spacing */
  .pj-next__inner { flex-direction: column; align-items: flex-start; }
}
