/* Theme */
:root {
  --beige: #f5f1e9;
  --white: #ffffff;
  --black: #111111;
  --gold: #c9a227;
  --text: #222222;
  --muted: #6b6b6b;
  --border: #e6e0d5;
  --container: 1160px;
  --radius: 12px;
  --header-h: 72px;
  --duo-section-h: clamp(560px, 78vh, 720px);
}
/* Portfolio shared sizes */
.portfolio-page {
  --portfolio-wrap-w: 1120px;
  --portfolio-card-h: clamp(320px, 36vw, 480px);
  overflow-x: hidden;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* Base */
body {
  font-family: 'Poiret One', cursive;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Poiret One', cursive; color: var(--black); line-height: 1.25; }
h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3.5rem); margin: 0 0 0.5rem; }
h2 { font-size: clamp(1.5rem, 2vw + 0.8rem, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

.muted { color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-title { text-align: left; margin-bottom: 24px; }

/* Header — editorial, cohesive with page language */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  font-family: 'Poiret One', cursive;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(94, 18, 18, 0.08);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(94, 18, 18, 0.22) 18%, rgba(94, 18, 18, 0.22) 82%, transparent 100%);
  pointer-events: none;
  opacity: .7;
}
.nav-container {
  position: relative;
  height: 100%;
  max-width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #211f1c;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: opacity .2s ease;
}
.brand:hover {
  transform: none;
  box-shadow: none;
  opacity: .78;
}
.brand .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(94, 18, 18, 0.16);
}
.brand .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.brand .brand-name {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #211f1c;
  line-height: 1;
}
.brand.small .brand-mark { width: 34px; height: 34px; font-size: 0.9rem; }
.brand.small .brand-name { font-size: 0.95rem; }

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.site-nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #625d57;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .92rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .22s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: #5e1212;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
  opacity: .7;
}
.site-nav a:hover,
.site-nav a.active {
  color: #5e1212;
  background: transparent;
  border-color: transparent;
}
.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}
.site-nav a.nav-cta {
  margin-left: 10px;
  padding: 9px 16px;
  color: #5e1212;
  border: 1px solid rgba(94, 18, 18, 0.28);
  letter-spacing: .1em;
}
.site-nav a.nav-cta::after { content: none; }
.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.active {
  color: #fff;
  background: #5e1212;
  border-color: #5e1212;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px 4px;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: #5e1212;
  margin: 6px 0;
  transition: transform .22s ease, opacity .22s ease;
}

.site-header .back-link {
  text-decoration: none;
  color: #625d57;
  padding: 6px 10px;
  border-radius: 0;
  font-size: 1.2rem;
  line-height: 1;
  transition: color .2s ease;
}
.site-header .back-link:hover {
  background: transparent;
  color: #5e1212;
}

/* Portfolio back button as a floating corner control */
.portfolio-page .site-header { position: sticky; }
.portfolio-page .site-header .back-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(94, 18, 18, 0.28);
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
  color: #5e1212;
  z-index: 2;
  padding: 0;
}
.portfolio-page .site-header .back-link:hover {
  background: #5e1212;
  color: #f3eee7;
  box-shadow: none;
}
.portfolio-page .site-header .brand { margin-left: 56px; }

@media (max-width: 900px) {
  .nav-container {
    max-width: min(100% - 32px, var(--container));
    gap: 16px;
  }
  .nav-toggle { display: inline-block; }
  .brand .brand-name { font-size: .92rem; letter-spacing: .06em; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(94, 18, 18, 0.1);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .site-nav li {
    border-top: 1px solid rgba(94, 18, 18, 0.08);
  }
  .site-nav a {
    padding: 16px 22px;
    display: block;
    font-size: .9rem;
  }
  .site-nav a::after { display: none; }
  .site-nav a.nav-cta {
    margin: 12px 22px 4px;
    text-align: center;
  }
  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .portfolio-page .site-header .brand { margin-left: 52px; }
}

@media (max-width: 560px) {
  .nav-container { max-width: min(100% - 20px, var(--container)); }
  .brand .brand-name {
    max-width: 42vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Hero */
.hero { position: relative; min-height: clamp(68vh, 72vh, 86vh); display: grid; place-items: center; color: var(--black); background: var(--beige); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--beige) center/cover no-repeat; background-image: var(--hero-image); filter: saturate(90%); transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.9)); }
.hero-inner { position: relative; text-align: center; padding: 40px 0; }
.hero-title { font-size: clamp(2rem, 4vw + 1rem, 4rem); font-weight: 600; }
.hero-title span { color: var(--gold); font-family: inherit; }
.hero-tagline { color: var(--muted); margin-bottom: 24px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; }

.button { display: inline-block; border: 1px solid var(--black); color: var(--black); background: transparent; padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease; font-family: 'Poiret One', cursive; letter-spacing: 0.02em; }
.button:hover { background: var(--black); color: var(--beige); transform: translateY(-1px); }
.button-primary { border-color: var(--gold); background: var(--gold); color: #fff; }
.button-primary:hover { background: #b5911f; border-color: #b5911f; }
.button-dark { border-color: var(--black); background: var(--black); color: #fff; }
.button-dark:hover { background: #000; border-color: #000; color: #fff; }

/* Intro — art-directed editorial hero */
.intro-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  margin-bottom: 0;
  padding: clamp(56px, 8vh, 100px) 0;
  overflow: hidden;
  background: #f3eee7;
}
.intro-brush {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  width: 100%;
  height: clamp(88px, 12vw, 132px);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  color: #5e1212;
  opacity: 0;
  transform-origin: left center;
  animation: brushWipe 1.35s cubic-bezier(.22,.7,.28,1) .08s both;
}
.intro-brush-stroke--main {
  fill: rgba(94, 18, 18, 0.1);
}
.intro-brush-stroke--soft {
  fill: rgba(94, 18, 18, 0.055);
}
.intro-brush-stroke--hair {
  fill: none;
  stroke: rgba(94, 18, 18, 0.12);
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-brush-stars {
  fill: rgba(94, 18, 18, 0.22);
  opacity: .75;
}
@keyframes brushWipe {
  from { opacity: 0; transform: translateY(-50%) scaleX(.12); }
  to { opacity: 1; transform: translateY(-50%) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-brush { animation: none; opacity: 1; transform: translateY(-50%); }
}

.intro-frame {
  position: relative;
  z-index: 1;
  width: min(100% - 96px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 540px);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 30rem;
  color: var(--text);
  text-align: left;
}
.intro-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 28px;
  color: #5e1212;
  font-family: 'Poiret One', cursive;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.intro-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: 0 0 auto; }
.intro-eyebrow::after { content: none; }
.intro-title {
  min-height: 1.82em;
  margin: 0 0 26px;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: .94;
  text-align: left;
  text-transform: uppercase;
}
.intro-title .line { display: block; min-height: .92em; }
.intro-title .line + .line { margin-left: 0; color: #5e1212; }
.intro-subtext {
  max-width: 34ch;
  margin: 0 0 34px;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.7;
  text-align: left;
}
.intro-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.intro-text-link {
  position: relative;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
}
.intro-text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform .2s ease;
}
.intro-text-link:hover::after { transform: scaleX(.45); }

.intro-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  place-items: center;
  justify-self: end;
  min-height: 0;
}
.intro-media {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}
.intro-media picture {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  animation: fadeUp .75s ease .28s both;
}
@media (prefers-reduced-motion: reduce) {
  .intro-media picture { animation: none; }
}
.intro-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  filter: invert(1) contrast(1.85) brightness(.45);
  mix-blend-mode: multiply;
  opacity: 1;
}
.rtl-block { direction: rtl; }

/* Reveal animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: fadeUp .6s ease forwards; }
.intro-content.reveal { animation-delay: .1s; }

/* Mid laptop: keep the split without crowding */
@media (min-width: 901px) and (max-width: 1099px) {
  .intro-frame {
    width: min(100% - 64px, 1080px);
    grid-template-columns: minmax(260px, 1fr) minmax(380px, 460px);
    gap: clamp(40px, 6vw, 72px);
  }
  .intro-media { width: min(100%, 440px); }
  .intro-title { font-size: clamp(2.3rem, 3.8vw, 3.2rem); }
  .intro-content { max-width: 26rem; }
}

/* Large desktops: more air, stronger chair scale */
@media (min-width: 1200px) {
  .intro-frame {
    width: min(100% - 120px, 1280px);
    grid-template-columns: minmax(320px, 1fr) minmax(480px, 560px);
    gap: clamp(72px, 9vw, 140px);
  }
  .intro-brush {
    top: 50%;
    height: clamp(96px, 10vw, 124px);
  }
  .intro-media { width: min(100%, 560px); }
  .intro-content { max-width: 32rem; padding-right: 12px; }
}

@media (max-width: 900px) {
  .intro-section {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    box-sizing: border-box;
    padding: clamp(20px, 4vh, 36px) 0 clamp(28px, 5vh, 48px);
    align-content: center;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .intro-brush {
    top: 34%;
    height: clamp(120px, 26vw, 180px);
  }
  .intro-frame {
    width: min(100% - 24px, var(--container));
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vh, 28px);
    justify-items: center;
  }
  .intro-visual {
    order: -1;
    width: 100%;
    min-height: clamp(220px, 42svh, 360px);
    justify-self: center;
  }
  .intro-media {
    width: min(86vw, 360px);
  }
  .intro-content {
    width: min(100%, 34ch);
    max-width: 34ch;
    align-items: center;
    text-align: center;
  }
  .intro-eyebrow {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .72rem;
    line-height: 1.45;
    text-wrap: balance;
  }
  .intro-eyebrow::before,
  .intro-eyebrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .intro-title {
    min-height: auto;
    margin-bottom: 14px;
    font-size: clamp(2rem, 9.5vw, 2.7rem);
    line-height: 1.02;
    text-align: center;
    white-space: normal;
  }
  .intro-title .line { display: block; }
  .intro-title .line + .line { margin-left: 0; }
  .intro-subtext {
    max-width: 32ch;
    margin: 0 auto 18px;
    font-size: .95rem;
    line-height: 1.65;
    text-align: center;
  }
  .intro-cta {
    width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
  }
  .intro-cta .button {
    width: min(100%, 240px);
    text-align: center;
  }
  .intro-text-link {
    align-self: center;
  }
  .intro-text-link::after { transform-origin: center; }
}

/* Intro stats (counters) */
.intro-stats { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
.stat { text-align: right; min-width: 160px; }
.stat-value { font-family: 'Poiret One', cursive; font-size: clamp(1.6rem, 4vw + 0.3rem, 2.6rem); color: var(--black); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* Intro title typing */
.intro-title .line.is-typing {
  border-right: 1.5px solid currentColor;
  padding-right: 1px;
  animation: typingCaret .72s steps(1) infinite;
}
.intro-title .line.is-typing::after { content: none; }
@keyframes typingCaret {
  0%, 48% { border-right-color: currentColor; }
  49%, 100% { border-right-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-title .line.is-typing { animation: none; border-right-color: currentColor; }
}

@media (max-width: 700px) {
  .intro-stats { justify-content: center; gap: 16px; }
  .stat { min-width: 140px; }
  .cover-strip { height: 140px; margin-top: 0; }
  .cover-strip-logo { width: clamp(150px, 46vw, 240px); }
}

@media (max-width: 560px) {
  .intro-section {
    min-height: calc(100svh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    padding: 18px 0 28px;
  }
  .intro-frame { width: min(100% - 16px, var(--container)); gap: 16px; }
  .intro-brush { top: 32%; height: clamp(130px, 38vw, 170px); }
  .intro-visual { min-height: clamp(240px, 46svh, 340px); }
  .intro-media { width: min(92vw, 340px); }
  .intro-content { width: min(100%, 100%); max-width: 100%; }
  .intro-title { font-size: clamp(1.85rem, 9vw, 2.35rem); margin-bottom: 12px; }
  .intro-subtext { max-width: 30ch; font-size: .9rem; margin-bottom: 16px; }
  .intro-cta .button { width: min(100%, 220px); }
}

/* Full-screen cover section with top-left logo (below intro) */
.cover-section { position: relative; min-height: 100vh; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: url('images/background_second.jpg'); background-image: image-set(url('images/background_second.webp') type('image/webp'), url('images/background_second.jpg') type('image/jpeg')); opacity: 0; animation: fadeIn .6s ease forwards; overflow: hidden; margin-top: 200px; }
.cover-logo { position: absolute; top: clamp(16px, 4vw, 36px); left: clamp(16px, 4vw, 36px); width: clamp(88px, 14vw, 180px); height: auto; }
@media (max-width: 560px) { .cover-section { margin-top: 120px; } }

/* 200px cover strip (background cropped to section) */
.cover-strip { position: relative; height: 200px; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: url('images/background_second.jpg'); background-image: image-set(url('images/background_second.webp') type('image/webp'), url('images/background_second.jpg') type('image/jpeg')); animation: fadeIn .6s ease both; overflow: hidden; margin-top: -28px; }
@media (max-width: 1200px) {
  .cover-strip { margin-top: -18px; }
}
.cover-strip-logo { position: absolute; top: 0; right: clamp(24px, 12vw, 200px); width: clamp(180px, 22vw, 300px); height: auto; }
@media (max-width: 700px) {
  .cover-strip-logo { left: 50%; right: auto; transform: translateX(-50%); top: 0; width: clamp(180px, 52vw, 340px); }
}

/* Full-screen cover section with top-left logo */
.cover-section { position: relative; min-height: 100vh; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: url('images/background_second.jpg'); background-image: image-set(url('images/background_second.webp') type('image/webp'), url('images/background_second.jpg') type('image/jpeg')); opacity: 0; animation: coverFade .6s ease forwards; }
@keyframes coverFade { from { opacity: 0; } to { opacity: 1; } }
.cover-logo { position: absolute; top: clamp(16px, 4vw, 36px); left: clamp(16px, 4vw, 36px); width: clamp(88px, 14vw, 180px); height: auto; }
/* Hide sticky header while cover is in view */
body.hide-header .site-header { display: none; }
/* Prevent scroll unless needed on very small screens */
@media (min-height: 560px) { .cover-section { overflow: hidden; } }

/* Splash (minimal landing) */
body.splash { overflow: hidden; }
@media (max-width: 560px) { body.splash { overflow: auto; } }
body.splash .site-header { display: none !important; }
body.splash main > :not(.splash) { display: none !important; }
.splash { position: relative; min-height: 100vh; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: url('images/background_second.jpg'); background-image: image-set(url('images/background_second.webp') type('image/webp'), url('images/background_second.jpg') type('image/jpeg')); opacity: 0; animation: fadeIn .6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.splash-logo { position: absolute; top: clamp(16px, 4vw, 28px); left: clamp(16px, 4vw, 28px); width: clamp(84px, 16vw, 160px); height: auto; }

/* Projects grid with mini-carousels */
.projects { background: #fff; }
.section.projects { padding-top: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.projects-cta { display: flex; justify-content: center; margin-top: 56px; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { display: grid; grid-template-rows: auto auto; gap: 12px; height: 100%; }
.project-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px; }
.project-title { font-family: 'Poiret One', cursive; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; font-weight: 600; margin: 2px 0 0; color: var(--black); }
.project-year { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; font-size: .9rem; color: var(--muted); }
.proj-carousel { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #f7f6f4; transition: box-shadow .18s ease, transform .18s ease; height: clamp(320px, 30vw, 420px); }
.proj-carousel:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.proj-viewport { overflow: hidden; min-height: 0; height: 100%; }
.proj-track { display: flex; transition: transform .35s ease; height: 100%; }
.proj-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; height: 100%; }
.proj-slide picture { display: block; width: 100%; height: 100%; }
.proj-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; margin: 0; padding: 0; }
.proj-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.95); display: grid; place-items: center; z-index: 2; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.proj-nav:hover { background: #fff; }
.proj-nav.prev { left: 12px; }
.proj-nav.next { right: 12px; }
@media (max-width: 700px) {
  .proj-nav { width: 48px; height: 48px; }
  .proj-nav.prev { left: 8px; }
  .proj-nav.next { right: 8px; }
  /* Make project names match 'до реализации' style on mobile */
  .project-title { font-family: 'Poiret One', cursive; font-size: clamp(1rem, 2.4vw + 0.2rem, 1.6rem); font-weight: 400; letter-spacing: 0.08em; }
  /* Make carousel more vertical on mobile */
  .proj-carousel { height: min(520px, 118vw); }
}

/* About — circular portrait frame (distinct from intro brush line) */
.about {
  position: relative;
  background: #f3eee7;
  overflow: hidden;
  height: var(--duo-section-h);
  min-height: var(--duo-section-h);
  max-height: var(--duo-section-h);
  box-sizing: border-box;
}
.section.about {
  display: grid;
  align-items: center;
  padding: 0;
}

.about-frame {
  position: relative;
  z-index: 1;
  width: min(100% - 96px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(400px, 520px);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  height: 100%;
  min-height: 0;
  padding-top: clamp(48px, 6vh, 72px);
  padding-bottom: clamp(48px, 6vh, 72px);
  box-sizing: border-box;
}
.about-frame > * { min-height: 0; }

.about-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 30rem;
  text-align: left;
}
.about-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 24px;
  color: #5e1212;
  font-family: 'Poiret One', cursive;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.about-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.about-eyebrow::after { content: none; }
.about-title {
  margin: 0 0 24px;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: .94;
  text-align: left;
  text-transform: uppercase;
}
.about-title .line { display: block; }
.about-title .line + .line { color: #5e1212; }
.about-lead {
  margin: 0 0 32px;
  max-width: 36ch;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.7;
  text-align: left;
}
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
  align-items: flex-start;
  justify-content: flex-start;
}
.a-stat {
  min-width: 110px;
  text-align: left;
}
.a-stat-value {
  font-family: 'Poiret One', cursive;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  color: #5e1212;
  line-height: 1;
  letter-spacing: .02em;
}
.a-stat-label {
  margin-top: 8px;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: .88rem;
  letter-spacing: .04em;
}

.about-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  justify-self: end;
}
.about-portrait {
  position: relative;
  width: min(100%, 480px, calc(var(--duo-section-h) - 160px));
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: grid;
  place-items: center;
}
.about-circle-paint {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  z-index: 0;
  pointer-events: none;
}
.about-circle-wash {
  fill: rgba(94, 18, 18, 0.07);
}
.about-circle-rim {
  stroke: rgba(94, 18, 18, 0.28);
  stroke-width: 1.35;
  stroke-linecap: round;
}
.about-circle-rim-soft {
  stroke: rgba(94, 18, 18, 0.12);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: .7;
}
.about-circle-accent {
  stroke: rgba(94, 18, 18, 0.22);
  stroke-width: 2.25;
  stroke-linecap: round;
  opacity: .85;
}
.about-media {
  position: relative;
  z-index: 1;
  width: 86%;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
}
.about-media picture,
.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.about-media img {
  object-fit: cover;
  object-position: 42% 18%;
  box-shadow: none;
}

@media (min-width: 901px) and (max-width: 1099px) {
  .about-frame {
    width: min(100% - 64px, 1080px);
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 440px);
    gap: clamp(40px, 6vw, 72px);
  }
  .about-portrait { width: min(100%, 420px, calc(var(--duo-section-h) - 160px)); }
  .about-title { font-size: clamp(2.1rem, 3.6vw, 3rem); }
  .about-content { max-width: 26rem; }
}

@media (min-width: 1200px) {
  .about-frame {
    width: min(100% - 120px, 1280px);
    grid-template-columns: minmax(320px, 1fr) minmax(460px, 540px);
    gap: clamp(72px, 9vw, 140px);
  }
  .about-portrait { width: min(100%, 520px, calc(var(--duo-section-h) - 160px)); }
  .about-content { max-width: 32rem; padding-right: 12px; }
}

@media (max-width: 900px) {
  .section.about {
    padding: clamp(40px, 7vw, 64px) 0;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .about {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .about-frame {
    width: min(100% - 24px, var(--container));
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .about-visual {
    order: -1;
    justify-self: center;
  }
  .about-portrait { width: min(78vw, 360px); }
  .about-content {
    width: min(100%, 40rem);
    max-width: 40rem;
    align-items: center;
    text-align: center;
  }
  .about-eyebrow {
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .72rem;
  }
  .about-eyebrow::before,
  .about-eyebrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .about-title {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    text-align: center;
    margin-bottom: 16px;
  }
  .about-lead {
    max-width: 36ch;
    margin: 0 auto 22px;
    font-size: .95rem;
    text-align: center;
  }
  .about-stats {
    justify-content: center;
    gap: 18px 24px;
  }
  .a-stat { text-align: center; min-width: 100px; }
}

@media (max-width: 700px) {
  .about-stats { gap: 16px 20px; }
}

@media (max-width: 560px) {
  .about-frame { width: min(100% - 16px, var(--container)); gap: 22px; }
  .about-portrait { width: min(84vw, 300px); }
  .about-lead { max-width: 34ch; }
  .about-media img { object-position: 40% 16%; }
}
/* Story + Contact — mirrored layout with restored contact card */
.story-contact {
  position: relative;
  background: #fff;
  overflow: hidden;
  height: var(--duo-section-h);
  min-height: var(--duo-section-h);
  max-height: var(--duo-section-h);
  box-sizing: border-box;
}
.section.story-contact {
  display: grid;
  align-items: center;
  padding: 0;
}

.story-frame {
  position: relative;
  z-index: 1;
  width: min(100% - 96px, 1180px);
  margin: 0 auto;
  display: grid;
  /* Mirror of about: card left, text right */
  grid-template-columns: minmax(400px, 520px) minmax(280px, 1fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  height: 100%;
  min-height: 0;
  padding-top: clamp(48px, 6vh, 72px);
  padding-bottom: clamp(48px, 6vh, 72px);
  box-sizing: border-box;
}
.story-frame > * { min-height: 0; }

.story-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  justify-self: start;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px 24px 0;
  box-shadow: 0 22px 48px rgba(0,0,0,0.08);
  max-width: 520px;
  width: 100%;
  min-height: auto;
}
.card-title {
  font-family: 'Poiret One', cursive;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--black);
}
.card-title-lg {
  position: relative;
  display: block;
  font-size: clamp(1rem, 2.4vw + 0.2rem, 1.6rem);
  margin-bottom: 14px;
}
.card-title-lg::after {
  content: "";
  position: absolute;
  left: 52%;
  right: 34%;
  top: 1.15em;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(0,0,0,0.35) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.card-title-lg::before {
  content: "";
  position: absolute;
  left: 70%;
  right: 0;
  top: 1.15em;
  height: 1px;
  background: rgba(0,0,0,0.2);
  pointer-events: none;
}
.card-rows { display: grid; gap: 12px; margin-bottom: 0; }
.card-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 10px;
  border-radius: 14px;
  transition: background .18s ease, transform .18s ease;
}
.card-row:hover { background: rgba(0,0,0,0.035); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.06);
  color: var(--black);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.card-col { display: grid; gap: 4px; }
.card-label {
  color: var(--muted);
  font-family: 'Poiret One', cursive;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.card-value {
  color: var(--black);
  font-family: 'Poiret One', cursive;
  font-size: 1rem;
}
.card-value.big { font-size: 1rem; }
.card-footer {
  margin: 20px -24px 0;
  background: var(--card-tint, var(--beige));
  color: var(--card-accent, #C61A1D);
  text-align: center;
  padding: 16px 24px;
  border-radius: 0 0 28px 28px;
  font-family: 'Poiret One', cursive;
  font-size: clamp(1rem, 0.9vw + 0.8rem, 1.15rem);
}

.story-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 30rem;
  justify-self: end;
  text-align: left;
}
.story-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 0 24px;
  color: #5e1212;
  font-family: 'Poiret One', cursive;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.story-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.story-title {
  margin: 0 0 24px;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: .94;
  text-align: left;
  text-transform: uppercase;
}
.story-title .line { display: block; }
.story-title .line + .line { color: #5e1212; }
.story-lead {
  margin: 0 0 16px;
  max-width: 36ch;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.7;
  text-align: left;
}
.story-body {
  margin: 0;
  max-width: 36ch;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.7;
  text-align: left;
}

@media (min-width: 901px) and (max-width: 1099px) {
  .story-frame {
    width: min(100% - 64px, 1080px);
    grid-template-columns: minmax(360px, 440px) minmax(260px, 1fr);
    gap: clamp(40px, 6vw, 72px);
  }
  .story-title { font-size: clamp(2.1rem, 3.6vw, 3rem); }
  .story-content { max-width: 26rem; }
}

@media (min-width: 1200px) {
  .story-frame {
    width: min(100% - 120px, 1280px);
    grid-template-columns: minmax(460px, 540px) minmax(320px, 1fr);
    gap: clamp(72px, 9vw, 140px);
  }
  .story-content { max-width: 32rem; padding-left: 12px; }
}

@media (max-width: 900px) {
  .section.story-contact {
    padding: clamp(48px, 9vw, 80px) 0;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .story-contact {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .story-frame {
    width: min(100% - 24px, var(--container));
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .story-visual { justify-self: center; width: 100%; }
  .contact-card { max-width: min(100%, 520px); margin: 0 auto; }
  .story-content {
    width: min(100%, 40rem);
    max-width: 40rem;
    align-items: center;
    text-align: center;
    justify-self: center;
  }
  .story-eyebrow {
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .72rem;
  }
  .story-eyebrow::before,
  .story-eyebrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .story-title {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    text-align: center;
    margin-bottom: 16px;
  }
  .story-lead,
  .story-body {
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    font-size: .95rem;
    text-align: center;
  }
  .story-lead { margin-bottom: 14px; }
}

@media (max-width: 700px) {
  .section.story-contact {
    padding: clamp(56px, 10vw, 88px) 0;
    min-height: min(100svh, 920px);
    min-height: min(100dvh, 920px);
    align-content: center;
  }
  .story-contact {
    min-height: min(100svh, 920px);
    min-height: min(100dvh, 920px);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: image-set(
      url('images/backgroung contact.webp') type('image/webp'),
      url('images/backgroung contact.png') type('image/png')
    );
  }
  .story-frame {
    gap: clamp(48px, 12vw, 72px);
  }
}

@media (max-width: 560px) {
  .story-frame { width: min(100% - 16px, var(--container)); gap: clamp(52px, 14vw, 80px); }
  .story-lead,
  .story-body { max-width: 34ch; }
}

/* Services */
.services { background: var(--beige); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.service-icon { font-size: 1.5rem; margin-bottom: 6px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* Video hero section */
.video-hero { position: relative; min-height: 66vh; display: grid; place-items: center; overflow: hidden; }
.video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.25)); }
.video-inner { position: relative; text-align: center; color: #fff; display: grid; gap: 10px; padding: 40px 0; }
.video-kicker { font-family: 'Poiret One', cursive; text-transform: uppercase; letter-spacing: .12em; opacity: 0.98; color: #fff; font-size: clamp(.9rem, 1.2vw + .5rem, 1.1rem); text-shadow: 0 2px 10px rgba(0,0,0,0.28); }
.video-title { font-family: 'Poiret One', cursive; letter-spacing: .02em; color: #fff; font-size: clamp(1.6rem, 3.6vw + .6rem, 3rem); text-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.video-cta { display: inline-flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
/* Make video section buttons readable on video */
.video-cta .button { border-color: rgba(255,255,255,0.9); color: #fff; }
.video-cta .button:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: #fff; }
.video-cta .button-dark { background: #fff; color: var(--black); border-color: #fff; }
.video-cta .button-dark:hover { background: #f3f3f3; border-color: #f3f3f3; color: var(--black); }

/* Steps (process) — refined editorial execution of existing concept */
.steps {
  background: #fff;
  height: var(--duo-section-h);
  min-height: var(--duo-section-h);
  max-height: var(--duo-section-h);
  overflow: hidden;
  box-sizing: border-box;
}
.section.steps {
  padding: 0;
  display: grid;
  align-items: center;
}
.steps .container {
  height: 100%;
  width: min(100% - 40px, var(--container));
  display: grid;
  align-items: stretch;
  padding-top: clamp(48px, 6vh, 72px);
  padding-bottom: clamp(48px, 6vh, 72px);
  box-sizing: border-box;
}
.steps-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}
.steps-grid > * { min-height: 0; }

.steps-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-right: 8px;
}
.steps-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #5e1212;
  font-family: 'Poiret One', cursive;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.steps-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.steps-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: .96;
}
.steps-title .line {
  display: block;
  font-size: clamp(1.05rem, 2.2vw + .2rem, 1.55rem);
  color: #211f1c;
}
.steps-title .line:first-child {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: #5e1212;
  margin-bottom: 2px;
}
.steps-title .line:last-child {
  color: #5e1212;
}
/* Soft reflection — kept as the unique concept, toned down */
.steps-title-shadow {
  position: absolute;
  z-index: 1;
  top: 52%;
  left: 0;
  margin: 0;
  opacity: 0.14;
  filter: blur(3px);
  color: #211f1c;
  pointer-events: none;
  transform: translateY(22px);
}
.steps-title-shadow .line:first-child {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
}

.steps-list {
  position: relative;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 0;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.steps-list.scrollable {
  max-height: 100%;
  overflow-y: auto;
}
@media (max-width: 700px) {
  .steps-list {
    max-height: none;
    overflow-y: visible;
  }
}
.steps-list::-webkit-scrollbar { width: 6px; }
.steps-list::-webkit-scrollbar-thumb {
  background: rgba(94, 18, 18, 0.22);
  border-radius: 999px;
}
.steps-list::-webkit-scrollbar-track { background: transparent; }
.steps-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 18, 18, 0.22) transparent;
}

.step {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid transparent;
}
.step summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 88px;
  text-align: center;
  transition: filter .2s ease, background-color .2s ease;
}
.step summary::-webkit-details-marker { display: none; }
.step .step-title {
  font-family: 'Poiret One', cursive;
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #211f1c;
  line-height: 1.1;
}
.step .step-more {
  font-family: 'Poiret One', cursive;
  color: rgba(33, 31, 28, 0.48);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}
.step .step-bullet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: #5e1212;
  box-shadow: inset 0 0 0 1px rgba(94, 18, 18, 0.22);
  font-family: 'Poiret One', cursive;
  font-size: 1.05rem;
  letter-spacing: .04em;
  line-height: 1;
}
.steps .step:nth-child(odd) .step-bullet { left: 20px; right: auto; }
.steps .step:nth-child(even) .step-bullet { right: 20px; left: auto; }

/* Soft rose progression — same idea, more editorial */
.step:nth-child(1) summary { background: #f6ecee; }
.step:nth-child(2) summary { background: #edd6de; }
.step:nth-child(3) summary { background: #d9b0bd; }
.step:nth-child(4) summary { background: #c48a9d; }
.step:nth-child(5) summary { background: #a8667f; }
.step:nth-child(5) .step-title,
.step:nth-child(5) .step-more,
.step:nth-child(5) .step-bullet { color: #f8f4f1; }
.step:nth-child(5) .step-bullet {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #f8f4f1;
}
.step:nth-child(5) .step-more { color: rgba(248, 244, 241, 0.7); }
.step[open] summary { filter: none; }
.step[open] {
  border-color: rgba(94, 18, 18, 0.08);
}

.step-content {
  padding: 18px 22px 22px;
  border: 0;
  border-radius: 0;
  background: #faf8f6;
}
.step-content ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
}
.step-content li {
  margin: 6px 0;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: .98rem;
  letter-spacing: .02em;
  line-height: 1.55;
}
.step-lead {
  margin: 0 0 4px;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .04em;
}
.step-content p { font-family: 'Poiret One', cursive; }

@media (max-width: 900px) {
  .section.steps {
    padding: clamp(40px, 7vw, 64px) 0;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .steps {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .steps .container {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    height: auto;
    min-height: 0;
  }
  .steps-hero { align-items: center; padding-right: 0; }
  .steps-eyebrow {
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .72rem;
  }
  .steps-eyebrow::before,
  .steps-eyebrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .steps-title { text-align: center; width: 100%; }
  .steps-title .line {
    font-size: clamp(1rem, 3.5vw, 1.35rem);
  }
  .steps-title .line:first-child {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }
  .steps-title-shadow { display: none; }
  .steps-list {
    height: auto;
    max-height: none;
    overflow: visible;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .step summary { padding: 20px 72px; }
  .step .step-bullet {
    width: 38px;
    height: 38px;
    font-size: .95rem;
  }
  .steps .step:nth-child(odd) .step-bullet { left: 14px; }
  .steps .step:nth-child(even) .step-bullet { right: 14px; }
  .step .step-title { font-size: 1.1rem; }
  .step-content { padding: 16px 18px 18px; }
}

/* FAQ — refined editorial execution of existing chat-style concept */
.faq {
  position: relative;
  background-image:
    linear-gradient(rgba(243, 238, 231, 0.88), rgba(243, 238, 231, 0.92)),
    url('images/background_second.jpg');
  background-image:
    linear-gradient(rgba(243, 238, 231, 0.88), rgba(243, 238, 231, 0.92)),
    image-set(url('images/background_second.webp') type('image/webp'), url('images/background_second.jpg') type('image/jpeg'));
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  font-family: 'Poiret One', cursive;
  height: var(--duo-section-h);
  min-height: var(--duo-section-h);
  max-height: var(--duo-section-h);
  overflow: hidden;
  box-sizing: border-box;
}
.section.faq {
  padding: 0;
  display: grid;
  align-items: center;
}
.faq .container {
  height: 100%;
  width: min(100% - 40px, var(--container));
  display: grid;
  align-items: stretch;
  padding-top: clamp(48px, 6vh, 72px);
  padding-bottom: clamp(48px, 6vh, 72px);
  box-sizing: border-box;
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
  height: 100%;
  min-height: 0;
}
.faq-grid > * { min-height: 0; }

.faq-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  order: 2;
  padding-right: 8px;
}
.faq-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0 0 22px;
  color: #5e1212;
  font-family: 'Poiret One', cursive;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.faq-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.faq-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: .96;
  text-align: right;
}
.faq-title .line {
  display: block;
  font-size: clamp(1.05rem, 2.2vw + .2rem, 1.55rem);
  color: #211f1c;
}
.faq-title .line:first-child {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: #5e1212;
  margin-bottom: 2px;
}
.faq-title .line:last-child {
  color: #5e1212;
}
.faq-title-shadow {
  position: absolute;
  z-index: 1;
  top: 52%;
  right: 0;
  left: auto;
  margin: 0;
  opacity: 0.14;
  filter: blur(3px);
  color: #211f1c;
  pointer-events: none;
  text-align: right;
  transform: translateY(22px);
}
.faq-title-shadow .line:first-child {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
}

.faq-list {
  order: 1;
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px 20px 18px;
  scrollbar-gutter: stable;
  counter-reset: faq;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(94, 18, 18, 0.08);
  border-radius: 4px;
  box-shadow: none;
}
.faq-list::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(94, 18, 18, 0.14);
  pointer-events: none;
}
.faq-list::-webkit-scrollbar { width: 6px; }
.faq-list::-webkit-scrollbar-thumb {
  background: rgba(94, 18, 18, 0.22);
  border-radius: 999px;
}
.faq-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 18, 18, 0.22) transparent;
}

.faq-item {
  border: none;
  background: transparent;
  position: relative;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 88%;
  margin: 4px 8px 6px 52px;
  padding: 14px 18px;
  border-radius: 4px 18px 18px 4px;
  border: 1px solid rgba(94, 18, 18, 0.08);
  background: #f6ecee;
  color: #211f1c;
  font-family: 'Poiret One', cursive;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.35;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease;
}
.faq-item > summary:hover {
  transform: none;
  background: #edd6de;
  border-color: rgba(94, 18, 18, 0.12);
  box-shadow: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q { display: inline; }
.faq-item > summary .faq-q::after {
  content: "+";
  display: inline-block;
  margin-left: 12px;
  color: #5e1212;
  font-weight: 400;
  font-size: .95em;
  opacity: .7;
  transition: transform .2s ease, opacity .2s ease;
}
.faq-item[open] > summary .faq-q::after {
  transform: rotate(45deg);
  opacity: 1;
}
.faq-item > summary::before {
  counter-increment: faq;
  content: counter(faq);
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #5e1212;
  box-shadow: inset 0 0 0 1px rgba(94, 18, 18, 0.22);
  font-family: 'Poiret One', cursive;
  font-size: .95rem;
  letter-spacing: .04em;
  line-height: 1;
}
.faq-a {
  max-width: 88%;
  margin: 4px 8px 8px auto;
  padding: 14px 18px;
  border-radius: 18px 4px 4px 18px;
  border: 1px solid rgba(94, 18, 18, 0.08);
  background: #fff;
  color: #625d57;
  font-family: 'Poiret One', cursive;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1.6;
  box-shadow: none;
}

@media (max-width: 900px) {
  .section.faq {
    padding: clamp(40px, 7vw, 64px) 0;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .faq {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .faq .container {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    height: auto;
    min-height: 0;
  }
  .faq-hero {
    order: 1;
    align-items: center;
    padding-right: 0;
  }
  .faq-eyebrow {
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: .72rem;
  }
  .faq-eyebrow::before,
  .faq-eyebrow::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
  }
  .faq-title {
    text-align: center;
    width: 100%;
  }
  .faq-title .line {
    font-size: clamp(1rem, 3.5vw, 1.35rem);
  }
  .faq-title .line:first-child {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }
  .faq-title-shadow { display: none; }
  .faq-list {
    order: 2;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 18px 14px;
  }
  /* On mobile keep answers open and disable toggling */
  .faq-list .faq-item > summary { pointer-events: none; }
}

@media (max-width: 700px) {
  .faq-item > summary,
  .faq-a {
    max-width: 92%;
    font-size: .98rem;
  }
  .faq-item > summary {
    margin-left: 46px;
    padding: 12px 14px;
  }
  .faq-item > summary::before {
    left: -36px;
    width: 28px;
    height: 28px;
    font-size: .88rem;
  }
  .faq-list::before { left: 24px; }
}

/* Testimonials */
.testimonials { background: #fff; }
.testimonial-slider { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.testimonial-track { display: flex; gap: 16px; overflow: hidden; scroll-behavior: smooth; }
.testimonial { min-width: min(86%, 680px); background: var(--beige); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.testimonial .author { display: block; margin-top: 12px; color: var(--muted); }
.slider-btn { border: 1px solid var(--border); background: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.slider-btn:hover { background: var(--beige); }

/* Contact */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-meta p { margin: 0.25rem 0; }
.contact-form { background: var(--beige); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form-row { display: grid; gap: 6px; margin-bottom: 12px; }
.form-row input, .form-row textarea { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid rgba(201,162,39,0.25); border-color: var(--gold); }
.form-status { margin-top: 8px; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; background: #f2f1ee; position: relative; }
.site-footer { font-family: 'Poiret One', cursive; letter-spacing: .02em; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, rgba(198,26,29,0.28), rgba(198,26,29,0.12)); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.footer-nav { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; }
.footnote { color: var(--muted); margin-top: 10px; font-size: 0.9rem; grid-column: 1 / -1; text-align: center; }
.footnote a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  transition: color .2s ease, border-color .2s ease;
}
.footnote a:hover {
  color: #5e1212;
  border-bottom-color: rgba(94, 18, 18, 0.45);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; gap: 10px; text-align: center; }
  .site-footer .brand { margin: 0 auto; }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
  .footnote { margin-top: 4px; font-size: 0.85rem; }
}
/* Footer brand: use Poiret One */
.site-footer .brand-name { font-family: 'Poiret One', cursive; letter-spacing: .04em; }
.site-footer .brand { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.06); text-decoration: none; color: inherit; }
.site-footer .brand:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.site-footer .brand .brand-mark { background: transparent; }
.site-footer .brand .brand-name { font-weight: 600; }
.site-footer .footer-nav a { text-decoration: none; color: var(--text); padding: 6px 10px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.site-footer .footer-nav a:hover { background: #fff; color: var(--black); }

/* Portfolio */
.portfolio-cover { position: relative; height: calc(100vh - var(--header-h)); background-position: center; background-size: cover; background-repeat: no-repeat; background-image: image-set(url('images/Tabit_9.webp') type('image/webp'), url('images/Tabit_9.jpg') type('image/jpeg')); display: grid; place-items: center; }
.portfolio-page .site-header + .portfolio-cover { margin-top: 0; }
@supports (height: 100dvh) {
  .portfolio-cover { height: calc(100dvh - var(--header-h)); }
}
.portfolio-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25)); }
.portfolio-cover .cover-inner { position: relative; text-align: center; color: #fff; }
.portfolio-cover .cover-title { font-family: 'Poiret One', cursive; font-size: clamp(2rem, 5vw + 1rem, 4rem); letter-spacing: .04em; text-shadow: 0 6px 18px rgba(0,0,0,0.35); color: var(--beige); }
.portfolio-hero { background: #CC2A2D; padding-top: calc(32px + 0.5rem); padding-bottom: 24px; }
.portfolio-hero .section-title { color: #fff; }
.portfolio-hero .muted { color: rgba(255,255,255,0.9); }
.portfolio-duo { background: #fff; padding: 60px 0; }
.portfolio-duo .duo-wrap { max-width: var(--portfolio-wrap-w); margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; justify-items: center; align-items: center; }
.portfolio-duo .intro-card { background: #776F5B; border-radius: 22px; padding: clamp(28px, 5vw, 48px); box-shadow: 0 20px 60px rgba(0,0,0,0.10); color: #ECEBE8; text-align: center; border: 1px solid rgba(0,0,0,0.06); height: var(--portfolio-card-h); display: grid; place-items: center; width: 100%; box-sizing: border-box; }
.portfolio-duo .intro-text { font-family: 'Poiret One', cursive; font-size: clamp(1.05rem, 1.2vw + .8rem, 1.35rem); line-height: 1.7; letter-spacing: .02em; margin: 0 auto; max-width: 54ch; }
.portfolio-duo .intro-cta { margin-top: clamp(18px, 3vw, 28px); display: flex; justify-content: center; }
.portfolio-duo .button-card { display: inline-block; padding: 16px 38px; border-radius: 999px; background: #E4DCC6; color: #534A38; border: 1px solid rgba(0,0,0,0.12); text-decoration: none; font-family: 'Poiret One', cursive; letter-spacing: .03em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 10px 26px rgba(0,0,0,0.12); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.portfolio-duo .button-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 16px 34px rgba(0,0,0,0.16); background: #E9E2CF; }
.portfolio-duo .sofa-figure { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.10); border: 1px solid rgba(0,0,0,0.06); background: #fff; height: var(--portfolio-card-h); width: 100%; box-sizing: border-box; }
.portfolio-duo .sofa-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 46% 62%; }
.portfolio-duo .sofa-caption { text-align: center; margin-top: 40px; color: var(--black); font-family: 'Poiret One', cursive; letter-spacing: .02em; }
.portfolio-duo .sofa-caption span:first-child { display: block; font-size: clamp(1.2rem, 2.2vw + .6rem, 1.6rem); }
.portfolio-duo .sofa-caption span:nth-child(2) { display: block; font-size: clamp(1rem, 1.6vw + .5rem, 1.2rem); color: #534A38; opacity: 0.95; }
.portfolio-intro { background: #fff; padding: 80px 0 40px; }
.portfolio-intro .intro-wrap { max-width: var(--portfolio-wrap-w); margin: 0 auto; padding: 0 16px; }
.portfolio-intro .intro-card { background: #776F5B; border-radius: 22px; padding: clamp(28px, 5vw, 48px); box-shadow: 0 20px 60px rgba(0,0,0,0.10); color: #ECEBE8; text-align: center; border: 1px solid rgba(0,0,0,0.06); }
.portfolio-intro .intro-card { height: var(--portfolio-card-h); display: grid; place-items: center; width: 100%; box-sizing: border-box; }
.portfolio-intro .intro-text { font-family: 'Poiret One', cursive; font-size: clamp(1.05rem, 1.2vw + .8rem, 1.35rem); line-height: 1.7; letter-spacing: .02em; margin: 0 auto; max-width: 54ch; }
.portfolio-intro .intro-cta { margin-top: clamp(18px, 3vw, 28px); display: flex; justify-content: center; }
.portfolio-intro .button-card { display: inline-block; padding: 16px 38px; border-radius: 999px; background: #E4DCC6; color: #534A38; border: 1px solid rgba(0,0,0,0.12); text-decoration: none; font-family: 'Poiret One', cursive; letter-spacing: .03em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 10px 26px rgba(0,0,0,0.12); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.portfolio-intro .button-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), 0 16px 34px rgba(0,0,0,0.16); background: #E9E2CF; }

/* Portfolio: sofa image card + caption */
.portfolio-sofa { background: #fff; padding: 20px 0 80px; }
.portfolio-sofa .sofa-wrap { max-width: var(--portfolio-wrap-w); margin: 0 auto; padding: 0 16px; }
.portfolio-sofa .sofa-figure { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.10); border: 1px solid rgba(0,0,0,0.06); background: #fff; }
.portfolio-sofa .sofa-figure { height: var(--portfolio-card-h); width: 100%; box-sizing: border-box; }
.portfolio-sofa .sofa-figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.portfolio-sofa .sofa-caption { text-align: center; margin-top: 14px; color: var(--black); font-family: 'Poiret One', cursive; letter-spacing: .02em; }
.portfolio-sofa .sofa-caption span:first-child { display: block; font-size: clamp(1.2rem, 2.2vw + .6rem, 1.6rem); }
.portfolio-sofa .sofa-caption span:nth-child(2) { display: block; font-size: clamp(1rem, 1.6vw + .5rem, 1.2rem); color: #534A38; opacity: 0.95; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filter-btn { border: 1px solid var(--border); background: #fff; padding: 8px 14px; border-radius: 999px; }
.filter-btn.active, .filter-btn:hover { background: var(--black); color: var(--beige); border-color: var(--black); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #f8f8f6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .25s ease, filter .25s ease; }
.gallery-item:hover img { transform: scale(1.03); filter: saturate(105%); }
.gallery-item.hidden { display: none; }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.82); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; padding: 20px; z-index: 2000; touch-action: none; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { background: #fff; border-radius: 14px; max-width: min(92vw, 1200px); max-height: 86vh; padding: 10px; display: grid; gap: 10px; justify-items: center; overflow: auto; }
.lightbox-inner img { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
/* Prevent background scroll when modal is open */
html.modal-open, body.modal-open { overflow: hidden; height: 100%; }
body.modal-open { position: fixed; width: 100%; }
/* Avoid scroll chaining to body while swiping */
.lightbox { overscroll-behavior: contain; }
@media (max-width: 700px) {
  .lightbox { padding: 10px; }
  .lightbox-inner { max-width: 96vw; max-height: 90vh; padding: 8px; }
  .lightbox-inner img { max-width: 100%; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
  .lightbox .nav { width: 48px; height: 48px; }
  .lightbox .nav.prev { left: 8px; }
  .lightbox .nav.next { right: 8px; }
  .lightbox-close { width: 48px; height: 48px; top: 10px; right: 10px; }
}

/* Portfolio motto banner */
.portfolio-motto { position: relative; height: 400px; display: grid; place-items: center; overflow: hidden; }
.portfolio-motto::before { content: ""; position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: image-set(url('images/Tzeh_1.webp') type('image/webp'), url('images/Tzeh_1.jpg') type('image/jpeg')); filter: grayscale(75%) blur(6px) brightness(1.06); transform: scale(1.06); }
.portfolio-motto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06)); }
.portfolio-motto .motto-text { position: relative; font-family: 'Poiret One', cursive; color: #fff; text-align: center; font-size: clamp(1.4rem, 2.8vw + .6rem, 2.2rem); letter-spacing: .04em; text-shadow: 0 6px 18px rgba(0,0,0,0.35); }

/* Portfolio feature (text card + image) */
.portfolio-feature { background: #fff; padding: 32px 0 36px; margin-top: 56px; }
.portfolio-feature .feature-wrap { max-width: var(--portfolio-wrap-w); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; }
.portfolio-feature .feature-card { background: #f2f1ee; border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); }
.portfolio-feature .feature-card p { margin: 0; font-family: 'Poiret One', cursive; font-size: clamp(1rem, 1.1vw + .8rem, 1.25rem); line-height: 1.8; color: var(--text); letter-spacing: .02em; }
.portfolio-feature .feature-image { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 16px 48px rgba(0,0,0,0.06); height: var(--portfolio-card-h); position: relative; }
.portfolio-feature .feature-image picture { display: block; width: 100%; height: 100%; }
.portfolio-feature .feature-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; margin: 0; padding: 0; }
@media (max-width: 900px) {
  .portfolio-feature .feature-wrap { grid-template-columns: 1fr; }
}
.lightbox-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.95); border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,0.18); font-size: 20px; cursor: pointer; }
.lightbox-close:hover { background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.22); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 1px, 1px); white-space: nowrap; border: 0; }

/* Portfolio projects previews (cards) */
.portfolio-projects { background: #fff; padding: 24px 0 80px; }
.portfolio-projects .container { max-width: var(--portfolio-wrap-w); margin: 0 auto; padding: 0 16px; }
.proj-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.proj-card { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #f8f8f6; text-decoration: none; color: inherit; }
.proj-card-cover { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.proj-card-cover picture { display: block; width: 100%; height: 100%; }
.proj-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s ease, filter .25s ease; display: block; margin: 0; padding: 0; }
.proj-card:hover .proj-card-cover img { transform: scale(1.04); filter: saturate(105%); }
.proj-card.persona-tech .proj-card-cover { aspect-ratio: 4 / 3; }
.proj-card.persona-tech .proj-card-cover picture { display: block; width: 100%; height: 100%; }
.proj-card.persona-tech .proj-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50% !important; display: block; margin: 0; padding: 0; }
.proj-card-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55)); color: #fff; }
.proj-card-name { font-family: 'Poiret One', cursive; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }
@media (max-width: 1100px) { .proj-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) {
  .proj-cards { grid-template-columns: 1fr; }
  .proj-card-cover { aspect-ratio: 3 / 4 !important; min-height: 280px; }
}
@media (max-width: 480px) {
  .proj-cards { grid-template-columns: 1fr; }
  .proj-card-cover { aspect-ratio: 3 / 4 !important; min-height: 280px; }
}

/* Lightbox arrows for project preview */
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); background: rgba(0,0,0,0.35); color: #fff; display: grid; place-items: center; }
.lightbox .nav.prev { left: 16px; }
.lightbox .nav.next { right: 16px; }

/* Portfolio feature (alt layout: image left, text right) */
.portfolio-feature-alt { background: #fff; padding: 24px 0 36px; }
.portfolio-feature-alt .feature-wrap { max-width: var(--portfolio-wrap-w); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; }
.portfolio-feature-alt .feature-card { background: #f2f1ee; border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); }
.portfolio-feature-alt .feature-card p { margin: 0; font-family: 'Poiret One', cursive; font-size: clamp(1rem, 1.1vw + .8rem, 1.25rem); line-height: 1.8; color: var(--text); letter-spacing: .02em; text-align: center; }
.portfolio-feature-alt .feature-image { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 16px 48px rgba(0,0,0,0.06); height: var(--portfolio-card-h); position: relative; }
.portfolio-feature-alt .feature-image picture { display: block; width: 100%; height: 100%; }
.portfolio-feature-alt .feature-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; margin: 0; padding: 0; }
@media (max-width: 900px) {
  .portfolio-feature-alt .feature-wrap { grid-template-columns: 1fr; }
}


