/* ---------- Self-hosted Inter (GDPR-safe, no Google Fonts) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter/Inter-Bold.woff2') format('woff2');
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #000000;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --accent: #c9a86a;
  --border: #262626;
  --maxw: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  font-size: 1.1rem;
  transition: color 0.2s;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.logo:hover { color: var(--accent); }
.logo:hover .logo-tagline { color: var(--accent); }
.logo-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
  text-align: left;
  transition: color 0.2s;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-size: 0.9rem; color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); }

.lang-switch { display: flex; gap: 0.5rem; font-size: 0.8rem; }
.lang-switch a {
  color: var(--muted); padding: 0.25rem 0.5rem; border: 1px solid transparent;
}
.lang-switch a.active { color: var(--accent); border-color: var(--border); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  font-size: 1.5rem; cursor: pointer;
}

/* ---------- Hero (split: text left, portrait right) ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--bg);
  margin-top: -4rem;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 0.5rem clamp(1.5rem, 5vw, 5rem) 2rem;
  max-width: 640px;
  margin-left: auto;
}
.hero-text .eyebrow {
  text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.75rem; color: var(--accent); margin-bottom: 1.25rem;
}
.hero-text h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.hero-text h1 .gradient,
.gradient {
  color: var(--accent);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-text h1 .gradient,
  .gradient {
    background-color: transparent;
    background-image: linear-gradient(90deg, #d4b06a 0%, #f3d27a 50%, #b8924a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ---------- 404 page ---------- */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.error-content { max-width: 38rem; }
.error-code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.error-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.error-content p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-text p { font-size: 1.05rem; margin-bottom: 2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-actions .btn { min-width: 12rem; text-align: center; }

.hero-portrait {
  background-image: url('../images/hero-portrait.jpg');
  background-size: auto 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 100%;
}

.hero-actions { align-items: center; }
.hero-scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.hero-scroll:hover { opacity: 1; color: var(--accent); }
.hero-scroll-arrow {
  display: block;
  font-size: 1.92rem;
  line-height: 1;
  color: var(--accent);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow { animation: none; }
}

/* ---------- Hero entrance animation ---------- */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-scroll {
  from { opacity: 0; }
  to   { opacity: 0.85; }
}
@keyframes hero-portrait-in {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-text h1,
.hero-text > p:not(.hero-actions),
.hero-actions .btn {
  animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-text h1 { animation-delay: 0.15s; }
.hero-text > p:not(.hero-actions) { animation-delay: 0.35s; }
.hero-actions .btn:nth-of-type(1) { animation-delay: 0.55s; }
.hero-actions .btn:nth-of-type(2) { animation-delay: 0.68s; }
.hero-scroll { animation: hero-fade-scroll 0.9s ease 0.9s both; }
.hero-portrait { animation: hero-portrait-in 1.2s ease 0.05s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-text h1,
  .hero-text > p:not(.hero-actions),
  .hero-actions .btn,
  .hero-scroll,
  .hero-portrait { animation: none; }
}

/* ---------- Page entrance animation (non-hero pages) ---------- */
@keyframes page-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.container > .section-title:first-child {
  animation: page-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both;
}
.container > .section-title:first-child + * {
  animation: page-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
}
.contact-grid > .contact-left {
  animation: page-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both;
}
.contact-grid > .contact-right {
  animation: page-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}
.contact-grid > .contact-direct-full {
  animation: page-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
}
@media (prefers-reduced-motion: reduce) {
  .container > .section-title:first-child,
  .container > .section-title:first-child + *,
  .contact-grid > .contact-left,
  .contact-grid > .contact-right,
  .contact-grid > .contact-direct-full { animation: none; }
}

/* Services + Our Work: stagger each card in one-by-one instead of the whole grid */
.container > .section-title:first-child + .services-grid,
.container > .section-title:first-child + .work-grid { animation: none; }
.services-grid > .card,
.work-grid > .work-card {
  animation: page-rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.services-grid > .card:nth-child(1),
.work-grid > .work-card:nth-child(1) { animation-delay: 0.2s; }
.services-grid > .card:nth-child(2),
.work-grid > .work-card:nth-child(2) { animation-delay: 0.35s; }
.services-grid > .card:nth-child(3),
.work-grid > .work-card:nth-child(3) { animation-delay: 0.5s; }
.services-grid > .card:nth-child(4),
.work-grid > .work-card:nth-child(4) { animation-delay: 0.65s; }
@media (prefers-reduced-motion: reduce) {
  .services-grid > .card,
  .work-grid > .work-card { animation: none; }
}

#about { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 1.5rem; }
  .hero-portrait { min-height: 39vh; height: 39vh; order: -1; background-size: cover; background-position: center top; }
  .hero-text { padding: 1.5rem 1.5rem 0.5rem; margin: 0; }
  .hero-text h1 { margin-bottom: 1rem; }
  .hero-text p { margin-bottom: 1.25rem; }
  .about-section { padding-top: 0.5rem; }
}
@media (max-width: 600px) {
  .hero-actions { gap: 0.5rem; }
  .hero-actions .btn {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .hero-scroll {
    position: static;
    transform: none;
    flex-basis: 100%;
    margin-top: 0.5rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: var(--accent); color: #000000; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
section:first-of-type:not(.hero) { padding-top: 1.75rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow {
  text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.75rem; color: var(--accent); display: block; margin-bottom: 0.75rem;
}
.section-title .eyebrow a { color: var(--text); transition: color 0.2s; }
.section-title .eyebrow a:hover { color: var(--accent); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
body.slider-dragging .card:hover {
  border-color: var(--border);
  transform: none;
}
body.slider-dragging .services-grid .card:hover {
  outline-color: transparent;
  transform: none;
}
.card h3 { color: var(--text); }
.card .ba-slider { margin-bottom: 1rem; }

/* ---------- Service card modal ---------- */
.services-grid .card,
.work-grid .card { cursor: pointer; }

/* ---------- Services grid (2x2) ---------- */
.services-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.services-grid .card {
  border: none;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: outline-color 0.2s, transform 0.2s;
}
.services-grid .card:hover {
  border: none;
  outline-color: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .services-grid .card { padding: 1.25rem; }
}

/* ---------- Work cards (Our Work, 2x2 with modal) ---------- */
.work-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.work-grid .card { border: none; padding: 0; }
.work-grid .card:hover { border: none; }
.work-card { padding: 0; }
.work-card h3 { margin-bottom: 0; }
.work-card .work-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.work-card .work-cta {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.work-card:hover .work-cta { transform: translateX(4px); }
.work-card .work-preview {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  object-fit: cover;
  display: block;
}
.work-card .work-gallery { display: none; }

.work-grid .card.expanded {
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  z-index: 41;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0;
  margin: 0;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 5vw, 5rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  transform: none;
}
.work-grid .card.expanded:hover { border: 0; transform: none; }
.work-grid .card.expanded .work-preview { display: none; }
.work-grid .card.expanded .work-cta { display: none; }
.work-grid .card.expanded h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  text-align: left;
  max-width: none;
}
.work-grid .card.expanded .work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.work-grid .card.expanded > .card-close {
  display: inline-flex;
  order: -1;
  align-self: flex-start;
  margin-bottom: 0.25rem;
}

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .work-grid .card.expanded .work-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .work-grid .card.expanded .work-gallery { grid-template-columns: 1fr; }
}

body.services-modal-open { overflow: hidden; }

.services-grid .card.expanded {
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  z-index: 41;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 0;
  margin: 0;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 5vw, 5rem);
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  transform: none;
}
.services-grid .card.expanded:hover { border: 0; transform: none; }
.services-grid .card.expanded .ba-slider {
  grid-column: 2;
  grid-row: 1 / -1;
  margin: 0;
  width: 100%;
  max-width: calc((100vh - 70px - 8rem) * 4 / 3);
  align-self: center;
  justify-self: center;
}
.services-grid .card.expanded h3 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin: 0;
  text-align: left;
  max-width: none;
}
.services-grid .card.expanded p {
  grid-column: 1;
  grid-row: 3;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  max-width: none;
  margin: 0;
}

@media (max-width: 800px) {
  .services-grid .card.expanded {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .services-grid .card.expanded .ba-slider {
    width: min(100%, calc((100vh - 70px - 16rem) * 4 / 3));
    max-width: 100%;
  }
  .services-grid .card.expanded h3,
  .services-grid .card.expanded p { text-align: center; max-width: 600px; }
}

.card-close {
  padding: 0.7rem 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem; line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: none;
  align-items: center;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.card-close:hover { background: var(--accent); color: #000; }

.services-grid .card.expanded > .card-close {
  display: inline-flex;
  grid-column: 1;
  grid-row: 4;
  margin-top: 0.75rem;
  justify-self: start;
  align-self: start;
}

@media (max-width: 800px) {
  .services-grid .card.expanded > .card-close { justify-self: center; }
}

/* ---------- Services jump arrows (bottom-corner scroll cues) ---------- */
.services-section { position: relative; }
#services-row-2, #bespoke { scroll-margin-top: 90px; }
.services-jump {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0.4rem;
  cursor: pointer;
  transform: translate(50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.services-jump-arrow {
  display: block;
  font-size: 1.92rem;
  line-height: 1;
  color: var(--accent);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
  transition: color 0.2s;
}
.services-jump:hover .services-jump-arrow { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .services-jump-arrow { animation: none; }
}
@media (max-width: 800px) {
  .services-jump-1 { display: none; }
  .services-jump-2 {
    position: static;
    display: flex;
    transform: none;
    margin: 0.25rem auto 0;
    width: fit-content;
  }
}

/* ---------- Bespoke commissions block ---------- */
.bespoke { max-width: 760px; margin: 2rem auto 0; }
.bespoke .section-title { margin-bottom: 1.5rem; }
.bespoke-intro {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}
.bespoke-list { margin: 0; padding: 0; }
.bespoke-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.bespoke-list > div:first-child { border-top: 1px solid var(--border); }
.bespoke-list dt {
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}
.bespoke-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .bespoke-list > div { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- Before / After slider ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .ba-grid { grid-template-columns: 1fr; }
}
.ba-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  border: 1px solid var(--border);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ba-slider img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after {
  clip-path: inset(0 0 0 50%);
}
.ba-slider .ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 2;
  pointer-events: none;
}
.ba-slider .ba-handle::after {
  content: '◀▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  padding: 0.35rem 0.5rem;
  border-radius: 50px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.ba-label {
  position: absolute; bottom: 0.75rem;
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: #fff;
  z-index: 1; pointer-events: none;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-weight: 600;
}
.ba-label-before { left: 0.75rem; }
.ba-label-after { right: 0.75rem; }

/* ---------- Portfolio categories ---------- */
.portfolio-categories { margin-top: 2rem; }
.portfolio-cat {
  border-bottom: 1px solid var(--border);
}
.portfolio-cat summary {
  cursor: pointer;
  padding: 1.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.cat-preview {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.portfolio-cat summary::after {
  margin-left: auto;
}
.portfolio-cat summary:hover { color: var(--accent); }
.portfolio-cat summary::-webkit-details-marker { display: none; }
.portfolio-cat summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
}
.portfolio-cat[open] summary::after { content: '\2212'; }
.portfolio-cat[open] .portfolio-grid {
  padding: 1.5rem 0 2rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) {
  .portfolio-cat[open] .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Portfolio grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.portfolio-item {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a2a2a, #161616);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
  overflow: hidden; position: relative;
  cursor: pointer; transition: transform 0.3s;
}
.portfolio-item:hover { transform: scale(1.02); }
.portfolio-item::after {
  content: attr(data-label);
  position: absolute; bottom: 1rem; left: 1rem;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Experience / logo grid ---------- */
.section-title-underline::after {
  content: '';
  display: block;
  width: 40vw;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  margin: 1rem auto 0;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.logo-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .logo-grid:not(.logo-grid-4) { grid-template-columns: 1fr; row-gap: 0.25rem; }
  .logo-grid:not(.logo-grid-4) .logo-box { aspect-ratio: auto; padding: 0.25rem; }
  .logo-grid:not(.logo-grid-4) .logo-box img { max-width: 64%; max-height: 64%; }
  .logo-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
.logo-box {
  aspect-ratio: 16 / 9;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem;
  overflow: hidden;
}
.logo-box img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.testimonial {
  border-left: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  font-style: italic;
  color: var(--text);
  margin: 1.5rem 0;
}
.testimonial cite { display: block; margin-top: 0.5rem; font-style: normal; color: var(--muted); font-size: 0.85rem; }

/* ---------- About section (on home) ---------- */
.about-section { max-width: 760px; scroll-margin-top: 90px; }
.about-section .section-title { text-align: center; margin-bottom: 2rem; }
.about-copy p { font-size: 1rem; line-height: 1.75; }
.about-copy .about-lede { font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.about-copy h3 { font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent, var(--text)); margin: 2rem 0 0.5rem; }

/* ---------- About (legacy) ---------- */
.about-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr 2fr; align-items: start;
}
.about-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2a2a2a, #161616);
  border: 1px solid var(--border);
}
.skill-list { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.skill-list li { padding: 0.4rem 0; color: var(--muted); border-bottom: 1px solid var(--border); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 500; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.5rem; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 0.75rem; }

/* ---------- Contact (legacy, still used by de/fr/it) ---------- */
.contact-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.contact-wrap .btn { margin: 1.5rem 0; }
.socials {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-top: 2rem;
}
.socials a {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--muted); border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Contact (two-column) ---------- */
section.contact-grid { padding: 1.75rem 1.5rem 2.5rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-left .eyebrow,
.contact-right .eyebrow {
  text-transform: uppercase; letter-spacing: 0.3em;
  font-size: 0.75rem; color: var(--accent); display: block; margin-bottom: 0.5rem;
}
.contact-left h2,
.contact-right h2 { margin-bottom: 0.75rem; }
.contact-left .section-title,
.contact-right .section-title { text-align: left; margin-bottom: 1.25rem; }
.contact-left .section-title-underline::after,
.contact-right .section-title-underline::after {
  width: min(360px, 100%);
  margin-left: 0;
}
.contact-intro { font-size: 1rem; max-width: 32rem; margin-bottom: 1.75rem; }

.availability,
.briefing { margin-bottom: 1.5rem; }
.availability h3,
.briefing h3 {
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.availability ul,
.briefing ul { list-style: none; padding: 0; margin: 0; }
.availability li,
.briefing li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 1.5rem;
  font-size: 0.9rem; color: var(--text);
}
.availability li span,
.briefing li span {
  min-width: 140px;
  color: var(--muted);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  align-self: center;
}

.contact-direct {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.25rem 0 0;
}
.contact-direct .email {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  width: fit-content;
  transition: opacity 0.2s;
}
.contact-direct .email:hover { opacity: 0.75; }
.contact-direct .linkedin,
.contact-direct .telegram {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background-image: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  background-size: 100% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  padding-bottom: 0.2rem;
  width: fit-content;
  transition: color 0.2s;
}
.contact-direct .linkedin:hover,
.contact-direct .telegram:hover { color: var(--accent); }

.contact-direct-inline {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.contact-direct-inline .icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  width: 1.65rem;
  height: 1.65rem;
  transition: opacity 0.2s;
}
.contact-direct-inline .icon-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.contact-direct-inline .icon-link:hover { opacity: 0.75; }

.contact-direct-full {
  grid-column: 1 / -1;
  margin-top: -1.5rem;
  padding-top: 0;
}

.form-helper {
  font-size: 0.8rem; color: var(--muted);
  margin: 1rem 0 0;
  background-image: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  background-size: 2px 100%;
  background-position: left top;
  background-repeat: no-repeat;
  padding: 0.2rem 0 0.2rem 0.85rem;
  line-height: 1.5;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-form label > span {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.contact-form label > span em { color: #555; text-transform: none; letter-spacing: 0; font-style: normal; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  padding: 0.45rem 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 4rem; }
.contact-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a86a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.75rem;
  cursor: pointer;
}
.contact-form select option { background: #000; color: var(--text); }
.contact-form .btn { align-self: flex-start; margin-top: 0.25rem; padding: 0.7rem 1.5rem; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .contact-direct-inline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
  }
  .contact-direct-inline .email {
    flex-basis: 100%;
    text-align: center;
  }
  section.contact-grid { padding-bottom: 0.5rem; }
  section.contact-grid + .site-footer { margin-top: 1.5rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4rem;
}
.site-footer .lang-switch { justify-content: center; margin-top: 1rem; }

/* ---------- Portfolio category pages ---------- */
button.portfolio-item {
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.category-grid {
  display: block;
  column-count: 3;
  column-gap: 1rem;
  grid-template-columns: none;
}
.category-grid .portfolio-item {
  aspect-ratio: auto;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.category-grid .portfolio-item img {
  width: 100%;
  height: auto;
  object-fit: initial;
}
.category-grid .portfolio-item::after { content: none; }
.portfolio-shield {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 2;
  cursor: pointer;
  -webkit-user-drag: none;
}
@media (max-width: 800px) {
  .category-grid { column-count: 2; }
}
@media (max-width: 500px) {
  .category-grid { column-count: 1; }
}

/* Circular category navigation */
.category-nav {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.category-nav-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}
.category-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 900px;
}
.category-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.category-nav a::after {
  content: '→';
  margin-left: 1rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.category-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 168, 106, 0.08);
  transform: translateY(-2px);
}
.category-nav a:hover::after {
  transform: translateX(4px);
}

/* Fullscreen image modal (object-fit: contain, no zoom/scale) */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 5vw, 5rem);
}
.image-modal[hidden] { display: none; }
.image-modal-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  transform: none !important;
  touch-action: none;
}
.image-modal-close {
  position: absolute;
  top: clamp(1rem, 2.5vh, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  width: 3rem; height: 3rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, transform 0.2s;
}
.image-modal-close:hover { color: #fff; transform: scale(1.1); }

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.2s, transform 0.2s;
}
.image-modal-nav:hover { color: #fff; }
.image-modal-prev:hover { transform: translateY(-50%) translateX(-3px); }
.image-modal-next:hover { transform: translateY(-50%) translateX(3px); }
.image-modal-prev { left: clamp(1rem, 2.5vw, 2rem); }
.image-modal-next { right: clamp(1rem, 2.5vw, 2rem); }

body.image-modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .image-modal-nav { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
  .image-modal-prev { left: 0.5rem; }
  .image-modal-next { right: 0.5rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  }
  .about-grid { grid-template-columns: 1fr; }
  .skill-list { columns: 1; }
}

/* ---------- Footer policy links ---------- */
.site-footer .footer-policy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
}
.site-footer .footer-policy a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.site-footer .footer-policy a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.site-footer .footer-policy button {
  background: none;
  border: 0;
  padding: 0 0 2px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-footer .footer-policy button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
}
.legal-page .section-title { text-align: left; margin-bottom: 1.5rem; }
.legal-page .section-title-underline::after {
  width: min(360px, 100%);
  margin-left: 0;
}
.legal-page h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 0.5rem;
}
.legal-page p,
.legal-page li { font-size: 0.95rem; line-height: 1.7; }
.legal-page ul { padding-left: 1.25rem; }
.legal-page .legal-meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.legal-page .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}
.legal-page .legal-table th,
.legal-page .legal-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-page .legal-table th {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.legal-page .legal-table td { color: var(--muted); }

/* ---------- Cookie management controls ---------- */
.cookie-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  margin: 1rem 0 1.5rem;
}
.cookie-status-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cookie-status-value {
  font-size: 0.95rem;
  color: var(--text);
}
.cookie-status-value[data-status="accepted"] { color: var(--accent); }
.cookie-status-value[data-status="declined"] { color: var(--muted); }
.cookie-status-meta {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--muted);
}
.cookie-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

/* ---------- Cookie consent banner (corner box, bottom-right) ---------- */
.cookie-banner {
  position: fixed;
  z-index: 200;
  right: clamp(1rem, 2.5vw, 1.5rem);
  bottom: clamp(1rem, 2.5vh, 1.5rem);
  width: min(340px, calc(100vw - 2rem));
  background: rgba(18, 18, 18, 0.32);
  backdrop-filter: blur(3px) saturate(115%);
  -webkit-backdrop-filter: blur(3px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@supports not ((backdrop-filter: blur(3px)) or (-webkit-backdrop-filter: blur(3px))) {
  .cookie-banner { background: rgba(12, 12, 12, 0.82); }
}
.cookie-banner.cookie-banner-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}
.cookie-banner-lang-wrap { position: relative; }
.cookie-banner-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cookie-banner-lang:hover,
.cookie-banner-lang[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner-globe {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}
.cookie-banner-lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 4.5rem;
  z-index: 1;
}
.cookie-banner-lang-menu[hidden] { display: none; }
.cookie-banner-lang-menu li { margin: 0; }
.cookie-banner-lang-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.cookie-banner-lang-menu button:hover,
.cookie-banner-lang-menu button[aria-current="true"] {
  color: var(--accent);
  background: rgba(201, 168, 106, 0.08);
}
.cookie-banner-text {
  margin: 0 0 0.65rem;
  color: var(--text);
}
.cookie-banner-links {
  margin: 0 0 0.95rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.cookie-banner-link {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.cookie-banner-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.cookie-banner-sep { color: var(--border); }
.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.cookie-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(201, 168, 106, 0.7);
  color: var(--accent);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.5rem;
  cursor: pointer;
  min-height: 2.2rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-banner-btn:hover,
.cookie-banner-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  outline: none;
}
@media (max-width: 480px) {
  .cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.2s ease; transform: none; }
}
