/* ─────────────────────────────────────────
   DAVID GUERREIRO RODRIGUES — Portfolio
   Directeur Artistique Junior · Freelance
   ───────────────────────────────────────── */

/* ── Fonts ── */
@font-face {
  font-family: 'Cakra';
  src: url('fonts/Cakra-Normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'FlorDeRuina';
  src: url('fonts/FlorDeRuina-Flor.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'FlorDeRuina Semilla';
  src: url('fonts/FlorDeRuina-Semilla.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:        #0F1F5E;
  --blue:        #4561D4;
  --orange:      #E7A23C;
  --white:       #F8F7F2;
  --grid-line:   rgba(217,217,217,0.35);

  --font-display: 'Cakra', serif;
  --font-deco:    'FlorDeRuina', cursive;
  --font-italic:  'FlorDeRuina Semilla', cursive;
  --font-mono:    'Source Code Pro', monospace;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.64, 0, 0.78, 0);

  --z-canvas:    0;
  --z-base:      1;
  --z-overlay:   2;
  --z-nav:       40;
  --z-modal:     100;
  --z-cursor:    1000;

  --gutter: clamp(20px, 4vw, 64px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; }
body {
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
button { cursor: none; font-family: var(--font-mono); }
img { display: block; max-width: 100%; }
ul { list-style: none; }


/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease-out), height .2s var(--ease-out), background .2s;
  z-index: var(--z-cursor);
  left: -100px; top: -100px;
}
#cursor.is-hover {
  width: 24px; height: 24px;
  background: var(--blue);
  opacity: .7;
}

/* ── Grid Canvas ── */
#grid-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  pointer-events: none;
}

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ──────────────────────────
   NAV
────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grid-line);
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--navy);
  transition: color .25s var(--ease-out);
}
.nav-logo svg {
  height: 32px;
  width: auto;
  fill: currentColor;
  display: block;
  transition: fill .25s var(--ease-out);
}
.nav-logo:hover { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-weight: 200;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .65;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--navy); }
.nav-links a.active { opacity: .3; pointer-events: none; }

/* ──────────────────────────
   HERO
────────────────────────── */
.hero {
  position: relative;
  z-index: var(--z-base);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--gutter) clamp(60px, 8vh, 100px);
}

/* Ligne des deux colonnes */
.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 100px);
}

/* Colonne gauche */
.hero-content {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

/* Colonne droite — 3D */
.hero-3d {
  flex: 0 0 clamp(280px, 38vw, 560px);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: none;
}
.hero-3d-label {
  margin-bottom: 12px;
  animation-delay: .5s;
  flex-shrink: 0;
}
/* Fond transparent sur tous les model-viewer */
model-viewer {
  background-color: transparent !important;
  --mv-background-color: transparent !important;
}
.card-viewer {
  background-color: transparent !important;
  --mv-background-color: transparent !important;
  --poster-color: transparent !important;
  --progress-bar-height: 0px;
  --progress-bar-color: transparent;
}
.card-viewer::part(default-progress-bar),
.card-viewer::part(default-progress-mask) { display: none; }

.hero-3d model-viewer {
  flex: 1;
  min-height: clamp(300px, 46vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-3d model-viewer {
  width: 100%;
  opacity: 1;
  transition: opacity .5s ease;
  --progress-bar-height: 0px;
  --progress-bar-color: transparent;
}
.hero-3d model-viewer.fading { opacity: 0; }
.hero-3d model-viewer::part(default-progress-bar),
.hero-3d model-viewer::part(default-progress-mask) { display: none; }

.hero-label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
  width: fit-content;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .4s both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.05;
  color: var(--navy);
  max-width: 11ch;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) .6s both;
}
.hero h1 em {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--orange);
}
.hero-sub {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 300;
  max-width: 48ch;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .9s both;
}
.hero-cta {
  margin-top: 48px;
  justify-content: space-between;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background .25s, gap .25s;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) 1.1s both;
}
.hero-cta:hover { background: var(--orange); gap: 20px; color: var(--white); }
.hero-cta svg { transition: transform .25s var(--ease-out); }
.hero-cta:hover svg { transform: translateY(3px); }

.hero-scroll-line {
  position: absolute;
  bottom: clamp(32px, 5vh, 56px);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .35;
  writing-mode: vertical-rl;
}
.hero-scroll-line::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--navy);
  animation: scrollLine 2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────
   ABOUT SECTION
────────────────────────── */
.about {
  position: relative;
  z-index: var(--z-base);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.section-tag {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: 48px;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  grid-column: 1 / -1;
}
.about-title em {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--orange);
}
.about-bio {
  background: #F8F7F2;
  border: 1px solid var(--grid-line);
  border-left: 3px solid var(--blue);
  padding: 28px 28px 28px 24px;
  border-radius: var(--radius-md);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.about-bio:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,31,94,.07); }
.about-bio h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--navy);
}
.about-bio p { font-size: 14px; line-height: 1.75; }
.highlight-name {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--orange);
}
.skills-box {
  background: #F8F7F2;
  border: 1px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.skills-box:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(69,97,212,.09); }
.skills-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--navy);
}
.skill-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--grid-line);
}
.skill-item:last-child { border-bottom: none; }
.skill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 6px;
}
.skill-name { font-weight: 500; font-size: 13px; display: block; }
.skill-desc { font-size: 12px; opacity: .6; }

/* ──────────────────────────
   PROJECTS SECTION
────────────────────────── */
.projects {
  position: relative;
  z-index: var(--z-base);
  padding: clamp(60px, 10vh, 120px) var(--gutter);
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
}
.projects-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
}
.projects-title em {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--orange);
}
.projects-count {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .4;
  white-space: nowrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project Card */
.project-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grid-line);
  cursor: none;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  animation: float 6s ease-in-out infinite;
}
.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: -.8s; }
.project-card:nth-child(3) { animation-delay: -1.6s; }
.project-card:nth-child(4) { animation-delay: -2.4s; }
.project-card:nth-child(5) { animation-delay: -3.2s; }
.project-card:nth-child(6) { animation-delay: -4s; }

.project-card:hover {
  border-color: var(--orange);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.card-viewer {
  width: 100%;
  height: 260px;
  background: #e8e9ef;
  display: block;
  z-index: 1;
  position: relative;
}
/* card-info sits below overlay visually but still readable */
.card-info {
  position: relative;
  z-index: 1;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,31,94,.72);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  cursor: none;
}
.card-arrow {
  transform: translate(-8px, 8px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s;
}
.card-arrow svg { color: var(--white); }

.card-info {
  padding: 20px 22px 22px;
  text-align: left;
}
.card-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(69,97,212,.08);
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.card-sub {
  font-size: 12px;
  opacity: .55;
  font-style: italic;
  font-family: var(--font-italic);
}
/* WIP — identique au nouveau site */
.project-card:has(.card-wip) { cursor: default; }
.project-card:has(.card-wip):hover { border-color: var(--grid-line); }

.card-wip {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(248,247,242,.85);
  cursor: default;
}
.wip-emoji { font-size: 32px; }
.wip-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: .08em;
  text-align: center;
}
.wip-dot { opacity: 0; }
.wip-dot:nth-child(1) { animation: wipD1 2s step-end infinite; }
.wip-dot:nth-child(2) { animation: wipD2 2s step-end infinite; }
.wip-dot:nth-child(3) { animation: wipD3 2s step-end infinite; }
@keyframes wipD1 {
  0%, 24.9% { opacity: 0; }
  25%        { opacity: 1; }
  100%       { opacity: 0; }
}
@keyframes wipD2 {
  0%, 49.9% { opacity: 0; }
  50%        { opacity: 1; }
  100%       { opacity: 0; }
}
@keyframes wipD3 {
  0%, 74.9% { opacity: 0; }
  75%        { opacity: 1; }
  100%       { opacity: 0; }
}

/* ──────────────────────────
   CV SECTION (index teaser)
────────────────────────── */
.cv-teaser {
  position: relative;
  z-index: var(--z-base);
  padding: clamp(60px, 10vh, 120px) var(--gutter);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.cv-teaser::before {
  content: '';
  position: absolute;
  right: -2vw;
  bottom: -2vh;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  background-image: url('favicon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  filter: brightness(0) invert(1);
  opacity: .04;
  pointer-events: none;
  user-select: none;
}
.cv-teaser .section-tag { color: var(--orange); }
.cv-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 48px;
  align-items: center;
}
.cv-teaser-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
}
.cv-teaser-title em {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--orange);
}
.cv-teaser-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cv-teaser-stat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  transition: border-color .3s, background .3s;
}
.cv-teaser-stat:hover {
  border-color: var(--orange);
  background: rgba(231,162,60,.05);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--orange);
  min-width: 56px;
}
.stat-label { font-size: 13px; opacity: .7; margin-top: 4px; }
.cv-cta-row {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .25s, transform .25s var(--ease-out);
}
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color .25s, transform .25s var(--ease-out);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

/* ──────────────────────────
   FOOTER
────────────────────────── */
footer {
  position: relative;
  z-index: var(--z-base);
  padding: 32px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--navy);
  color: rgba(248,247,242,.55);
  border-top: none;
  font-size: 12px;
}
footer a { color: rgba(248,247,242,.55); }
footer a:hover { opacity: 1; color: var(--orange); }
.logo-footer svg { height: 28px; width: auto; fill: currentColor; }
.logo-footer { color: rgba(248,247,242,.55); transition: color .25s; }
.logo-footer:hover { color: var(--orange); opacity: 1; }
.footer-links { display: flex; gap: 24px; }

/* ──────────────────────────
   MODAL
────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,31,94,.18);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(80vw, 900px);
  background: var(--white);
  z-index: calc(var(--z-modal) + 1);
  display: none; /* shown via JS WAAPI */
  overflow: hidden;
}

.modal-sidebar {
  width: 48px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-sidebar-title {
  writing-mode: vertical-rl;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 16px;
  color: var(--white);
  letter-spacing: .12em;
  transform: rotate(180deg);
  white-space: nowrap;
  opacity: .7;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 40px 48px 36px;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) transparent;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background .2s;
}
.modal-close:hover { background: var(--blue); }

.modal-tag {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  margin-bottom: 6px;
}
.modal-subtitle {
  font-style: italic;
  font-family: var(--font-italic);
  color: var(--orange);
  font-size: 16px;
  margin-bottom: 28px;
}
.modal-text { font-size: 14px; line-height: 1.8; margin-bottom: 16px; }
.modal-text .collab-link {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--orange);
  text-decoration: none;
}
.modal-text .collab-link:hover { opacity: .75; }
.modal-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.modal-img-wide { grid-column: 1 / -1; }
.modal-img-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-img-col img,
.modal-img-grid > img,
.modal-video-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  display: block;
}
.modal-video-wrap {
  aspect-ratio: 16/9;
  grid-column: 1 / -1;
  background: #000;
}
.modal-video-wrap iframe { width: 100%; height: 100%; border: none; }

/* ──────────────────────────
   CV PAGE
────────────────────────── */
.cv-page {
  position: relative;
  z-index: var(--z-base);
  padding-top: 120px;
  padding-bottom: 80px;
}
.cv-hero {
  padding: 0 var(--gutter) 64px;
}
.cv-hero-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.cv-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  line-height: 1;
}
.cv-hero-location {
  font-size: 13px;
  opacity: .5;
  margin-top: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cv-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 6vh, 80px) var(--gutter);
}
.cv-block {
  background: #F8F7F2;
  padding: 28px;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.cv-block:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,31,94,.07); }
.cv-block-title {
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.cv-entry {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grid-line);
}
.cv-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}
.cv-entry-title { font-weight: 600; font-size: 14px; }
.cv-entry-date {
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .5;
  white-space: nowrap;
}
.cv-entry-org {
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 6px;
}
.cv-entry-desc { font-size: 13px; opacity: .7; line-height: 1.65; }

/* ──────────────────────────
   CONTACT PAGE
────────────────────────── */
.contact-page {
  position: relative;
  z-index: var(--z-base);
  padding-top: 120px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(40px, 8vh, 80px) var(--gutter);
  align-items: start;
  width: 100%;
}
.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.contact-left p { font-size: 14px; line-height: 1.8; opacity: .7; max-width: 36ch; }
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--blue);
  transition: gap .25s var(--ease-out), color .2s;
}
.contact-email:hover { gap: 14px; color: var(--orange); }

.contact-form-wrap {
  background: #F8F7F2;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.contact-form-wrap:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(15,31,94,.08); }
.form-tag {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .55;
}
input, textarea {
  width: 100%;
  background: rgba(15,31,94,.03);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--navy);
  outline: none;
  transition: border-color .2s;
  min-height: 44px;
}
input:focus, textarea:focus { border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 11px; opacity: .45; margin-bottom: 20px; }
.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .25s, gap .25s;
  min-height: 44px;
}
.form-submit:hover { background: var(--orange); color: var(--white); gap: 16px; }

/* ──────────────────────────
   SCROLL REVEAL
────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ──────────────────────────
   RESPONSIVE
────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .cv-teaser-grid,
  .cv-content,
  .contact-grid { grid-template-columns: 1fr; }
  .about-title { grid-column: 1; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .modal-panel { width: 100vw; }
  .modal-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cv-teaser-title { font-size: clamp(28px, 5vw, 40px); }
}

@media (max-width: 600px) {
  .nav-links a { font-size: 12px; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); }
  .cv-teaser::before { display: none; }
  nav { padding: 20px var(--gutter); }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .modal-img-grid { grid-template-columns: 1fr; }
  .hero-3d { display: none; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-inner { display: block; }
  .hero-scroll-line { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
