/* =========================================================
   Giacenzo — UX/UI Portfolio
   Dark, flat, solid colors — near-black / grey / orange
   ========================================================= */

/* Self-hosted fonts (no external requests) */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Base surface — fixed palette, dark mode */
  --bg: #252526;
  --bg-elevated: rgba(227, 227, 227, 0.06);
  --bg-card: rgba(227, 227, 227, 0.06);
  --border: rgba(227, 227, 227, 0.14);
  --border-strong: rgba(227, 227, 227, 0.28);

  /* Text */
  --text-primary: #e3e3e3;
  --text-secondary: rgba(227, 227, 227, 0.7);
  --text-tertiary: rgba(227, 227, 227, 0.48);

  /* Accent — single flat color, no gradients */
  --accent-orange: #e08b31;
  --accent-orange-dark: #b36f27;
  --on-accent: #252526;
  --on-accent-dark: #e3e3e3;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
p { margin: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------- Ambient shapes (flat solid, no gradients) ---------- */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
  animation: float 22s ease-in-out infinite;
  background: var(--accent-orange);
}
.blob--purple { width: 520px; height: 520px; top: -160px; left: -120px; }
.blob--blue   { width: 420px; height: 420px; top: 60px; right: -140px; animation-duration: 26s; animation-delay: -6s; background: var(--text-primary); opacity: 0.06; }
.blob--green  { width: 360px; height: 360px; bottom: -140px; left: 30%; animation-duration: 30s; animation-delay: -12s; opacity: 0.12; }
.blob--orange { width: 300px; height: 300px; bottom: 10%; right: 8%; animation-duration: 24s; animation-delay: -3s; opacity: 0.14; }

/* The hero's own glow shouldn't get a hard clipped edge where it meets
   the next section, and shouldn't reach far enough to overlap with that
   section's own glow either: fade it out well before the boundary
   instead of relying on overflow to cut it off, and keep the bottom blob
   pulled inward so it isn't sitting right at the edge to begin with. */
.hero .blob-field {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 96%);
}
.hero .blob--green { bottom: 40px; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

/* ---------- Custom cursor (desktop only, added via JS) ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-orange);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
}
.cursor-dot.is-active { opacity: 0.9; }
.cursor-dot.is-hover { width: 44px; height: 44px; opacity: 0.16; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(37, 37, 38, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.navbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}
.nav-logo-mark {
  width: 29px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
.nav-logo-mark .dot {
  display: block;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-orange);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(227,227,227,0.06); }
.nav-links a.is-active { color: var(--text-primary); background: rgba(227,227,227,0.08); }
.nav-links a.nav-cta {
  background: var(--accent-orange);
  color: var(--on-accent);
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--accent-orange-dark); color: var(--on-accent-dark); }

.lang-switch { display: flex; align-items: center; }
.lang-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(227,227,227,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.lang-seg button {
  padding: 7px 12px;
  border: none;
  border-radius: var(--radius-pill);
  background: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-seg button:hover { color: var(--text-primary); }
.lang-seg button.is-active {
  background: rgba(227,227,227,0.08);
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-orange);
  color: var(--on-accent);
  border: 1px solid var(--accent-orange);
}
.btn-primary:hover { background: var(--accent-orange-dark); border-color: var(--accent-orange-dark); color: var(--on-accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-primary); background: rgba(227,227,227,0.04); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.hero .eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 0 rgba(224, 139, 49, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 139, 49, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(224, 139, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 139, 49, 0); }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  max-width: 24ch;
}
.hero h1 .grad {
  color: var(--accent-orange);
}
.hero-title-warp .word {
  display: inline-block;
  white-space: nowrap;
}
.hero-title-warp .glyph {
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero .lede {
  margin-top: 26px;
  max-width: 58ch;
  font-size: 1.15rem;
  color: var(--text-secondary);
}
.hero .actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero .stats {
  margin-top: 74px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
}
.hero .stats .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
}
.hero .stats .label {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: 4px;
}
.hero .stats .stat-flags {
  margin-top: 10px;
  font-size: 1.5rem;
  letter-spacing: 4px;
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-head p { color: var(--text-secondary); max-width: 46ch; }

/* ---------- Intro / photo section ---------- */
.intro-person { padding: 48px 0 110px; }
.intro-person__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}
.intro-person__photo {
  position: relative;
  aspect-ratio: 1 / 1;
}
.intro-person__photo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  aspect-ratio: 1 / 1;
  background: var(--accent-orange);
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.3;
  z-index: 0;
  will-change: transform;
  animation: floatGlow 9s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  33% { transform: translate(calc(-50% + 22px), calc(-50% - 28px)) scale(1.12); }
  66% { transform: translate(calc(-50% - 26px), calc(-50% + 20px)) scale(0.92); }
}
.intro-person__photo-mask {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 44% 20% 26% 46% / 24% 44% 32% 30%;
  transform-origin: center;
  animation: blobMorph 9s ease-in-out infinite;
}
.intro-person__photo-mask img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: blobCounterRotate 9s ease-in-out infinite;
}
@keyframes blobMorph {
  0%   { border-radius: 44% 20% 26% 46% / 24% 44% 32% 30%; transform: rotate(-9deg); }
  25%  { border-radius: 22% 42% 44% 24% / 42% 22% 38% 28%; transform: rotate(4deg); }
  50%  { border-radius: 40% 26% 20% 44% / 28% 38% 44% 22%; transform: rotate(10deg); }
  75%  { border-radius: 24% 44% 42% 22% / 40% 24% 26% 42%; transform: rotate(-3deg); }
  100% { border-radius: 44% 20% 26% 46% / 24% 44% 32% 30%; transform: rotate(-9deg); }
}
@keyframes blobCounterRotate {
  0%   { transform: scale(1.1) rotate(9deg); }
  25%  { transform: scale(1.1) rotate(-4deg); }
  50%  { transform: scale(1.1) rotate(-10deg); }
  75%  { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1.1) rotate(9deg); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-person__photo::before,
  .intro-person__photo-mask,
  .intro-person__photo-mask img { animation: none; }
  .hero-title-warp .glyph { transition: none; }
}
.intro-person__quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  color: var(--text-primary);
  max-width: 46ch;
}
.intro-person__byline {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.intro-person__byline strong { color: var(--accent-orange); }

/* ---------- Project list (UXUI) ---------- */
.projects {
  padding: 60px 0 120px;
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.project-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 1.4fr auto;
  align-items: center;
  gap: 32px;
  padding: 34px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
  position: relative;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.project-row:hover { background: rgba(227,227,227,0.03); }
.project-row .idx {
  font-family: var(--font-display);
  color: var(--text-tertiary);
  font-size: 0.95rem;
}
.project-row .title-block h3 {
  font-size: 1.5rem;
  transition: transform 0.3s var(--ease);
}
.project-row:hover .title-block h3 { transform: translateX(6px); color: var(--accent-orange); }
.project-row .tags {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.tag {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.project-row .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transform: scale(0.97);
  transition: transform 0.4s var(--ease);
}
.project-row:hover .thumb { transform: scale(1); }
.project-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-row .arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  flex-shrink: 0;
}
.project-row:hover .arrow {
  transform: rotate(45deg);
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--on-accent);
}

/* ---------- Extra grid ---------- */
.extra-hero { position: relative; overflow: hidden; padding: 190px 0 80px; }
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 130px;
}
.extra-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.extra-card:hover { transform: translateY(-6px); border-color: var(--text-primary); }
.extra-card .media { aspect-ratio: 4/5; overflow: hidden; cursor: pointer; }
.extra-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.extra-card:hover .media img { transform: scale(1.06); }
.extra-card .meta {
  padding: 18px 20px 22px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.extra-card .cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  font-weight: 700;
}
.extra-card h4 {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  font-family: var(--font-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.extra-card.span-2 { grid-column: span 2; }
.extra-card.is-square .media { aspect-ratio: 1/1; }
.extra-card.is-landscape .media { aspect-ratio: 16/9; }

/* ---------- Extra grid: fullscreen lightbox ---------- */
.extra-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.extra-lightbox[hidden] { display: none; }
.extra-lightbox.is-open { opacity: 1; pointer-events: auto; }
.extra-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(88vw, 1100px);
  max-height: 90vh;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.extra-lightbox.is-open .extra-lightbox__stage { transform: scale(1); opacity: 1; }
.extra-lightbox__img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.extra-lightbox__caption { margin-top: 22px; text-align: center; max-width: 60ch; }
.extra-lightbox__cat {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  font-weight: 700;
}
.extra-lightbox__title { margin-top: 8px; font-size: 1.1rem; font-weight: 500; font-family: var(--font-body); color: var(--text-primary); }
.extra-lightbox__close,
.extra-lightbox__nav {
  position: fixed;
  z-index: 2;
  border: none;
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.extra-lightbox__close { top: 20px; right: 20px; width: 42px; height: 42px; font-size: 1rem; }
.extra-lightbox__close:hover { background: var(--accent-orange); color: var(--on-accent); transform: rotate(90deg); }
.extra-lightbox__nav { top: 50%; width: 52px; height: 52px; font-size: 1.6rem; line-height: 1; transform: translateY(-50%); }
.extra-lightbox__nav:hover { background: var(--accent-orange); color: var(--on-accent); }
.extra-lightbox__nav--prev { left: 20px; }
.extra-lightbox__nav--next { right: 20px; }
@media (max-width: 640px) {
  .extra-lightbox__nav { width: 42px; height: 42px; font-size: 1.3rem; }
  .extra-lightbox__nav--prev { left: 8px; }
  .extra-lightbox__nav--next { right: 8px; }
  .extra-lightbox__close { top: 12px; right: 12px; }
}

/* ---------- Case study (project detail) ---------- */
.cs-hero {
  padding: 170px 0 60px;
}
.cs-hero .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
  transition: color 0.25s var(--ease);
}
.cs-hero .back-link:hover { color: var(--accent-orange); }
.cs-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 20ch; }
.cs-hero .lede { margin-top: 20px; color: var(--text-secondary); font-size: 1.1rem; max-width: 60ch; }

.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 50px 0 60px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-meta .label { color: var(--text-tertiary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.cs-meta .value { font-family: var(--font-display); font-size: 1rem; }

.cs-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 90px;
}
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }

.cs-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  padding-bottom: 90px;
}
.cs-block .cs-num {
  font-family: var(--font-display);
  color: var(--accent-orange);
  font-size: 0.95rem;
  font-weight: 700;
}
.cs-block h2 { font-size: 1.7rem; margin-top: 10px; }
.cs-block .cs-body { color: var(--text-secondary); font-size: 1.05rem; }
.cs-block .cs-body p + p { margin-top: 18px; }
.cs-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.cs-gallery img, .cs-gallery .ph {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.cs-gallery img:nth-child(3), .cs-gallery .ph:nth-child(3) {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.cs-gallery img { cursor: pointer; transition: opacity 0.3s var(--ease); }
.cs-gallery img:hover { opacity: 0.82; }
.cs-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-orange);
  padding-left: 26px;
  margin-top: 10px;
}

.cs-nextprev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.cs-nextprev a,
.cs-nextprev button {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 46px 0;
  display: block;
}
.cs-nextprev a:first-child, .cs-nextprev button:first-child { border-right: 1px solid var(--border); padding-right: 40px; }
.cs-nextprev a:last-child, .cs-nextprev button:last-child { padding-left: 40px; text-align: right; }
.cs-nextprev .label { color: var(--text-tertiary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cs-nextprev h3 { margin-top: 10px; font-size: 1.6rem; transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.cs-nextprev a:hover h3, .cs-nextprev button:hover h3 { transform: translateX(6px); color: var(--accent-orange); }
.cs-nextprev a:last-child:hover h3, .cs-nextprev button:last-child:hover h3 { transform: translateX(-6px); }

/* placeholder media block (used until real images are dropped in) */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  width: 100%; height: 100%;
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 0 0 120px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  margin: 0;
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.testimonial-card:hover { transform: translateY(-6px); border-color: var(--text-primary); }
.testimonial-card .quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-primary);
}
.testimonial-card .quote::before { content: '\201C'; }
.testimonial-card .quote::after { content: '\201D'; }
.testimonial-card footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card .t-name { font-weight: 600; color: var(--text-primary); font-size: 0.92rem; }
.testimonial-card .t-role { color: var(--text-tertiary); font-size: 0.85rem; }

/* ---------- Contact ---------- */
.contact {
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}
.contact-logo-anim {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.contact-logo-anim__mark {
  width: 84px;
  height: auto;
  pointer-events: none;
}
.contact .section-label { display: block; margin: 0 auto 14px; }
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 18ch;
  margin: 0 auto;
}
.contact .lede {
  margin: 22px auto 0;
  max-width: 50ch;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.contact .email-row {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.contact .email-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  font-weight: 600;
  color: var(--accent-orange);
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 6px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact .email-link:hover { border-color: var(--accent-orange); color: var(--accent-orange-dark); }

.contact .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.contact .copy-btn:hover { color: var(--text-primary); border-color: var(--text-primary); background: rgba(227,227,227,0.06); }
.contact .copy-btn .icon-check { display: none; }
.contact .copy-btn.is-copied {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}
.contact .copy-btn.is-copied .icon-copy { display: none; }
.contact .copy-btn.is-copied .icon-check { display: block; }
.contact .social {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  justify-content: center;
}
.contact .social a { color: var(--text-secondary); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.contact .social a:hover { color: var(--accent-orange); }

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

/* ---------- Project modal (case study, Netflix-style) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 24px;
  background: rgba(10, 9, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.94) translateY(18px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.modal-overlay.is-open .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 9, 8, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover { background: var(--accent-orange); color: var(--on-accent); transform: rotate(90deg); }

.modal-scroll .cs-hero-modal { padding: 100px 32px 40px; }
.modal-scroll .cs-hero-modal h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }
.modal-scroll .cs-hero-modal .lede { margin-top: 18px; color: var(--text-secondary); font-size: 1.05rem; max-width: 60ch; }
.modal-scroll .cs-meta { margin: 40px 0 0; }
.modal-scroll .cs-cover { margin-bottom: 60px; }
.modal-scroll .cs-block { padding-bottom: 60px; }
/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cs-block { grid-template-columns: 1fr; gap: 16px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .extra-grid { grid-template-columns: repeat(2, 1fr); }
  .extra-card.span-2 { grid-column: span 2; }
  .project-row { grid-template-columns: 40px 1fr; grid-template-areas: "idx title" "thumb thumb" "arrow arrow"; }
  .project-row .thumb { grid-area: thumb; }
  .project-row .arrow { grid-area: arrow; justify-self: flex-start; }
  .hero .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .intro-person__inner { grid-template-columns: 200px 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(37, 37, 38, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0s linear 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .nav-links .lang-switch { width: 100%; }
  .nav-links .lang-seg { width: 100%; box-sizing: border-box; }
  .nav-links .lang-seg button { flex: 1; text-align: center; }
  .nav-toggle { display: block; }
  .wrap { padding: 0 16px; }
  .modal-scroll .cs-hero-modal { padding: 100px 16px 40px; }
  .hero .stats { grid-template-columns: 1fr; gap: 20px; }
  .cs-nextprev { grid-template-columns: 1fr; }
  .cs-nextprev a:first-child, .cs-nextprev button:first-child { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; }
  .cs-nextprev a:last-child, .cs-nextprev button:last-child { padding-left: 0; text-align: left; }
  .extra-grid { grid-template-columns: 1fr; }
  .extra-card.span-2 { grid-column: span 1; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-gallery { grid-template-columns: 1fr; }
  .intro-person__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .intro-person__photo { width: 180px; margin: 0 auto; }
  .intro-person__quote { max-width: none; }
}

/* ---------- Bold text (copy marked in bold) ---------- */
.nav-links a, .lang-seg button { font-weight: 700; }
.hero .eyebrow { font-weight: 700; }
.intro-person__byline { font-weight: 700; }
.tag { font-weight: 700; }
.cs-meta .label { font-weight: 700; }
.testimonial-card .t-name { font-weight: 700; }
.contact .email-link { font-weight: 700; }
.contact .social a { font-weight: 700; }
.footer-bar span[data-i18n="footer_location"] { font-weight: 700; }
.hero .lede strong, .section-head p strong, .intro-person__quote strong,
.contact .lede strong, .lede strong, .cs-body strong, .cs-quote strong {
  font-weight: 700;
  color: var(--text-primary);
}
