/* ============================================================
   MAIN.CSS — Axel Charel Portfolio
   Shared across all pages
============================================================ */

/* ---- FONTS (self-hosted) ---- */

/* Cormorant Garamond — italic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond — normal */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond/normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

/* ---- TOKENS ---- */
:root {
  --bg:          #080808;
  --fg:          #f0ece3;
  --fg-dim:      rgba(240, 236, 227, 0.38);
  --fg-body:     rgba(240, 236, 227, 0.72);
  --line:        rgba(240, 236, 227, 0.09);
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Space Grotesk', system-ui, sans-serif;
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back:   cubic-bezier(0.34, 1.56, 0.64, 1);
  /* project accent — overridden per-page */
  --accent:      #f0ece3;
  --accent-glow: rgba(240, 236, 227, 0.12);
}

html { font-size: 16px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(240, 236, 227, 0.15); }

/* ============================================================
   GRAIN
============================================================ */
.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9000;
  animation: grain 7s steps(8) infinite;
}

@keyframes grain {
  0%,100% { transform: translate(0, 0) }
  12%     { transform: translate(-3%, -8%) }
  25%     { transform: translate(-12%, 5%) }
  37%     { transform: translate(6%, -20%) }
  50%     { transform: translate(-4%, 20%) }
  62%     { transform: translate(-12%, 8%) }
  75%     { transform: translate(12%, -2%) }
  87%     { transform: translate(1%, 14%) }
}

/* ============================================================
   CURSOR
============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--fg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(240, 236, 227, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-expo), height .35s var(--ease-expo), opacity .3s;
}
body.cur-hover .cursor-ring { width: 54px; height: 54px; }
body.cur-hide  .cursor-ring { opacity: 0; }

/* ============================================================
   PAGE TRANSITION
============================================================ */
#page-trans {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9500;
  transform: translateY(0);
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(240, 236, 227, 0.06);
}
.nav-logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  opacity: .5;
  transition: opacity .3s;
}
.nav-links a:hover { opacity: 1; }
.nav-status {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--fg-dim);
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-dim);
  transition: color .3s;
}
.footer-links a:hover { color: var(--fg); }

/* ============================================================
   SHARED UTILITIES
============================================================ */
.section-label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 36px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 44px;
  border: 1px solid rgba(240, 236, 227, 0.25);
  border-radius: 100px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: color .4s ease;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-expo);
}
.btn-cta:hover::before { transform: scaleX(1); }
.btn-cta:hover { color: var(--bg); }
.btn-cta span, .btn-cta svg { position: relative; z-index: 1; }
.btn-cta svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease-expo);
}
.btn-cta:hover svg { transform: rotate(45deg); }

/* ============================================================
   MARQUEE
============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marq 22s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 36px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.marquee-sep {
  width: 5px; height: 5px;
  background: var(--fg-dim);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   HOMEPAGE — LOADER
============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
}
.loader-num {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
}
.loader-track {
  width: min(400px, 60vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--fg);
  width: 0%;
}
.loader-label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================================
   HOMEPAGE — HERO
============================================================ */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px 48px 56px;
  position: relative;
  overflow: hidden;
}
.hero-center {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-eyebrow { overflow: hidden; margin-bottom: 20px; }
.hero-eyebrow span {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transform: translateY(110%);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 13.5vw, 15rem);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -0.04em;
}
.hero-title .tline { overflow: hidden; display: block; }
.hero-title .tword { display: inline-block; transform: translateY(115%); }
.hero-title em { font-style: italic; font-weight: 300; }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.hero-desc p {
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--fg-body);
  max-width: 300px;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}
.hero-scroll span {
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transform: translateY(110%);
}
.hero-scroll-bar {
  width: 36px; height: 1px;
  background: var(--fg-dim);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-index {
  position: absolute;
  right: 48px;
  top: 50%;
  writing-mode: vertical-rl;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================================
   HOMEPAGE — ABOUT / STATEMENT
============================================================ */
.statement {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 80px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.statement-quote {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.statement-quote em { font-style: italic; color: var(--accent); }
.statement-aside { padding-top: 56px; }
.stat-item { padding: 28px 0; border-top: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* ============================================================
   HOMEPAGE — PROJECTS LIST
============================================================ */
.projects { padding: 0 48px 80px; }
.projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.projects-head .section-label { margin-bottom: 0; }
.projects-total {
  font-family: var(--font-serif);
  font-size: .875rem;
  font-style: italic;
  color: var(--fg-dim);
}
.proj {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 0 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  position: relative;
  transition: padding-left .5s var(--ease-expo);
  overflow: hidden;
}
.proj::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease-expo);
}
.proj::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240, 236, 227, 0.025);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-expo);
}
.proj:hover { padding-left: 16px; }
.proj:hover::before { transform: scaleY(1); }
.proj:hover::after  { transform: scaleX(1); }
.proj[data-p="1"]::before { background: #8b5cf6; }
.proj[data-p="2"]::before { background: #d97706; }
.proj[data-p="3"]::before { background: #e5e5e5; }
.proj[data-p="4"]::before { background: #b45309; }

.proj-num {
  font-family: var(--font-serif);
  font-size: .8rem;
  font-style: italic;
  color: var(--fg-dim);
  position: relative;
  z-index: 1;
}
.proj-body { position: relative; z-index: 1; }
.proj-name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -0.03em;
}
.proj-cat {
  margin-top: 6px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.proj-end {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.proj-year {
  font-family: var(--font-serif);
  font-size: .8rem;
  font-style: italic;
  color: var(--fg-dim);
}
.proj-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease-expo), border-color .3s;
  flex-shrink: 0;
}
.proj:hover .proj-arrow {
  transform: rotate(45deg);
  border-color: rgba(240, 236, 227, 0.5);
}
.proj-arrow svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- floating preview card --- */
#proj-preview {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 400px;
  pointer-events: none;
  z-index: 150;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transform: scale(.88) rotate(-2deg);
  transition: opacity .28s ease, transform .4s var(--ease-expo);
  will-change: transform;
}
#proj-preview.show { opacity: 1; transform: scale(1) rotate(0deg); }
.pv {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.pv[data-p="1"] { background: #0f061e; }
.pv[data-p="1"]::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(139,92,246,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(109,40,217,.25) 0%, transparent 50%);
}
.pv[data-p="2"] { background: #1c0c04; }
.pv[data-p="2"]::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(217,119,6,.3) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(180,83,9,.2) 0%, transparent 50%);
}
.pv[data-p="3"] {
  background: #0a0a0a;
  border: 1px solid rgba(240, 236, 227, .1);
}
.pv[data-p="4"] { background: #0d0602; }
.pv[data-p="4"]::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 65% 25%, rgba(180,83,9,.3) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 80%, rgba(120,53,15,.2) 0%, transparent 50%);
}
.pv-symbol {
  position: relative; z-index: 1;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(240, 236, 227, .12);
  margin-bottom: auto;
  padding-top: 24px;
}
.pv-tag {
  position: relative; z-index: 1;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(240, 236, 227, .4);
  border: 1px solid rgba(240, 236, 227, .15);
  border-radius: 100px;
  padding: 5px 12px;
}
.pv-name {
  position: relative; z-index: 1;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 10px;
  color: rgba(240, 236, 227, .9);
}
.bb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,236,227,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,236,227,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bb-type {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(240,236,227,.05);
  letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
}

/* ============================================================
   HOMEPAGE — SERVICES
============================================================ */
.services {
  padding: 100px 48px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}
.services-label-col { padding-top: 4px; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.svc { padding: 36px 0; border-top: 1px solid var(--line); }
.svc:nth-child(1), .svc:nth-child(2) { padding-top: 0; border-top: none; }
.svc-num {
  font-family: var(--font-serif);
  font-size: .75rem;
  font-style: italic;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.svc-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.svc-desc { font-size: .8rem; line-height: 1.65; color: var(--fg-body); }

/* ============================================================
   HOMEPAGE — CONTACT
============================================================ */
.contact { padding: 120px 48px 100px; text-align: center; }
.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 10.5rem);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -0.04em;
  margin-bottom: 60px;
}
.contact-title em { font-style: italic; }

/* ============================================================
   PROJECT PAGES — HERO
============================================================ */
.ppage-hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 120px 48px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* accent gradient blob — colored by --accent */
.ppage-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 80vh;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ppage-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.ppage-num {
  font-family: var(--font-serif);
  font-size: .8rem;
  font-style: italic;
  color: var(--fg-dim);
}
.ppage-back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-dim);
  transition: color .3s;
}
.ppage-back:hover { color: var(--fg); }
.ppage-back svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ppage-hero-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.ppage-title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 16rem);
  font-weight: 300;
  line-height: .85;
  letter-spacing: -0.04em;
  overflow: hidden;
}
.ppage-title span {
  display: block;
  transform: translateY(110%);
}
.ppage-sub {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
  overflow: hidden;
  max-width: 600px;
}
.ppage-sub span { display: block; transform: translateY(110%); }

.ppage-hero-foot {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.ppage-meta {
  display: flex;
  flex: 1;
}
.ppage-meta-item {
  flex: 1;
  padding: 24px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ppage-meta-item:last-child { border-right: none; }
.ppage-meta-label {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.ppage-meta-val {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
}

/* ============================================================
   PROJECT PAGES — SECTIONS
============================================================ */
.pp-section { padding: 100px 48px; }
.pp-section + .pp-section { padding-top: 0; }

.pp-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 100px 48px;
  border-bottom: 1px solid var(--line);
}
.pp-intro-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pp-intro-lead em { font-style: italic; color: var(--accent); }
.pp-intro-body {
  padding-top: 8px;
}
.pp-intro-body p {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--fg-body);
  margin-bottom: 20px;
}
.pp-intro-body p:last-child { margin-bottom: 0; }

/* ---- showcase (image placeholder) ---- */
.pp-showcase {
  padding: 0 48px;
  margin-bottom: 80px;
}
.pp-showcase.full { padding: 0; margin-bottom: 0; }

.showcase-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
}
.showcase-wrap.tall { aspect-ratio: 4/3; }

/* Scroll-on-hover pour les screenshots pleine page */
.pp-scroll-img {
  object-fit: cover;
  object-position: top center;
  transition: object-position 5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
  display: block;
}
.showcase-wrap:hover .pp-scroll-img { object-position: bottom center; }
.showcase-bar {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.showcase-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

/* the actual placeholder visual fills the rest */
.showcase-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.showcase-inner-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Project-specific showcase backgrounds */
.sc-square   { background: linear-gradient(135deg, #0f061e 0%, #1e0a3c 100%); }
.sc-arta     { background: linear-gradient(135deg, #1c0c04 0%, #2d1a08 100%); }
.sc-bb       { background: #060606; }
.sc-nespresso{ background: linear-gradient(135deg, #0d0602 0%, #1e100a 100%); }

/* CSS "UI" content inside showcases */
.ui-feed { padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.ui-feed-row { display: flex; gap: 12px; align-items: center; }
.ui-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(139,92,246,.3);
  flex-shrink: 0;
  border: 1px solid rgba(139,92,246,.4);
}
.ui-feed-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ui-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(240,236,227,.08);
}
.ui-bar.accent { background: rgba(139,92,246,.35); }
.ui-bar.w-full { width: 100%; }
.ui-bar.w-3of4 { width: 75%; }
.ui-bar.w-half { width: 50%; }
.ui-bar.w-2of3 { width: 66%; }
.ui-feed-card {
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 8px;
  padding: 14px;
  background: rgba(139,92,246,.07);
  margin-top: 4px;
}

.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; height: 100%; }
.ui-grid-item {
  background: rgba(217,119,6,.12);
  position: relative;
  overflow: hidden;
}
.ui-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(217,119,6,.2) 0%, transparent 60%);
}
.ui-grid-item:nth-child(2) { background: rgba(217,119,6,.08); }
.ui-grid-item:nth-child(3) { background: rgba(217,119,6,.15); }
.ui-grid-item:nth-child(4) { background: rgba(217,119,6,.18); grid-column: span 2; }
.ui-grid-item:nth-child(5) { background: rgba(217,119,6,.1); }
.ui-grid-item:nth-child(6) { background: rgba(217,119,6,.13); }

.ui-type-spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  gap: 0;
}
.ui-type-huge {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: .85;
  letter-spacing: -0.04em;
  color: rgba(240,236,227,.08);
  font-weight: 300;
}
.ui-type-alphabet {
  font-family: var(--font-serif);
  font-size: clamp(.7rem, 1.2vw, 1rem);
  letter-spacing: .3em;
  color: rgba(240,236,227,.18);
  margin-top: 20px;
}

.ui-espresso {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}
.ui-capsule {
  width: 80px; height: 160px;
  border-radius: 40px 40px 50px 50px;
  background: linear-gradient(160deg, rgba(180,83,9,.6) 0%, rgba(120,53,15,.4) 100%);
  border: 1px solid rgba(180,83,9,.4);
  position: relative;
}
.ui-capsule::before {
  content: '';
  position: absolute;
  top: 16px; left: 12px; right: 12px;
  height: 40%;
  border-radius: 24px 24px 0 0;
  background: rgba(240,236,227,.06);
}
.ui-espresso-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,83,9,.25) 0%, transparent 70%);
}

/* ---- 2-col text section ---- */
.pp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 48px;
  border-top: 1px solid var(--line);
}
.pp-col-head {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 28px;
}
.pp-col-head em { font-style: italic; color: var(--accent); }
.pp-col-body p {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--fg-body);
  margin-bottom: 16px;
}
.pp-col-body p:last-child { margin-bottom: 0; }

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.pp-tag {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  color: var(--fg-dim);
  transition: border-color .3s, color .3s;
}
.pp-tag:hover { border-color: var(--accent); color: var(--fg); }

/* ---- gallery (2-col image grid) ---- */
.pp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 0 0 80px;
}
.pp-gallery .showcase-wrap {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--line);
}

/* ---- next project ---- */
.pp-next {
  display: block;
  padding: 60px 48px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s ease;
  position: relative;
  overflow: hidden;
}
.pp-next::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240,236,227,.02);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-expo);
}
.pp-next:hover::before { transform: scaleX(1); }
.pp-next-label {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.pp-next-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -0.03em;
}
.pp-next-arrow {
  width: 60px; height: 60px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s var(--ease-expo), border-color .3s;
  flex-shrink: 0;
}
.pp-next:hover .pp-next-arrow {
  transform: rotate(45deg);
  border-color: rgba(240,236,227,.5);
}
.pp-next-arrow svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   RESPONSIVE
============================================================ */
/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { animation: none; opacity: 0; }
  .marquee-track { animation: none; }
  .nav-status::before { animation: none; }
}

@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 40px; }
  .hero-index { display: none; }
  .hero-foot { flex-direction: column; gap: 24px; align-items: flex-start; }
  .statement { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .statement-aside { padding-top: 0; }
  .projects { padding: 0 24px 60px; }
  .proj { grid-template-columns: 48px 1fr auto; }
  .proj-year { display: none; }
  .services { grid-template-columns: 1fr; padding: 80px 24px; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc:nth-child(2) { border-top: 1px solid var(--line); padding-top: 36px; }
  .contact { padding: 80px 24px; }
  .footer { padding: 24px; flex-direction: column; gap: 16px; }
  #proj-preview { display: none; }
  /* project pages */
  .ppage-hero { padding: 100px 24px 0; }
  .ppage-title { font-size: clamp(3.5rem, 14vw, 8rem); }
  .ppage-meta { flex-direction: column; }
  .ppage-meta-item { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .pp-intro { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .pp-showcase { padding: 0 24px; }
  .pp-cols { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .pp-gallery { grid-template-columns: 1fr; }
  .pp-next { padding: 40px 24px; }
}
