/* Katerina Viva — motion.css
   Extra motion + video hero, loaded ONLY on the test page /index-2.html.
   Uses the same design tokens as main.css. Everything respects "reduce motion". */

/* ---------- Scroll progress bar ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--electric), #E2C4A5); pointer-events: none; }

/* ---------- Video hero ---------- */
.vhero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); padding: calc(var(--header-h) + 64px) 0 clamp(72px, 10vh, 120px); }
.vhero__media { position: absolute; inset: 0; z-index: -2; }   /* video shown exactly as filmed: no zoom, no parallax, no colour filter */
.vhero__video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transition: opacity 1s var(--ease); }
.vhero__video.is-ready { opacity: 1; }
.vhero__scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(42,28,19,.6) 0%, rgba(42,28,19,0) 22%),
    linear-gradient(90deg, rgba(42,28,19,.88) 0%, rgba(42,28,19,.62) 38%, rgba(42,28,19,.18) 70%, rgba(42,28,19,.08) 100%),
    linear-gradient(0deg, rgba(42,28,19,.75) 0%, rgba(42,28,19,0) 45%),
    radial-gradient(circle at 75% 40%, rgba(192,138,91,.35), transparent 60%);
  opacity: calc(1 + var(--sp, 0) * .4); }
@media (max-width: 760px) {
  .vhero__scrim { background: linear-gradient(180deg, rgba(42,28,19,.65) 0%, rgba(42,28,19,0) 20%), linear-gradient(0deg, rgba(42,28,19,.92) 0%, rgba(42,28,19,.7) 45%, rgba(42,28,19,.25) 100%); }
  .vhero__video { object-position: 58% 50%; }
}
.vhero__inner { position: relative; }
.vhero .eyebrow { color: #EAD7C3; }

/* Mixed-letter headline: modern sans + single italic serif letters */
.vhero__title { font-family: var(--f-head); font-weight: 400; color: #fff; font-size: clamp(42px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -0.045em; max-width: 15ch; margin: 0; text-wrap: balance; }
.vhero__title em.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -0.01em; line-height: 0; }
.vhero__sub { margin-top: 28px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 21px); color: rgba(234,240,255,.9); }
.vhero .hero__ctas { margin-top: 36px; }
.vhero .hero__loc { margin-top: 28px; color: rgba(228,236,255,.8); }

/* word-by-word reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; transform: translateY(105%) rotate(4deg); filter: blur(8px); opacity: 0; transition: transform 1.1s var(--ease), filter 1.1s var(--ease), opacity .8s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--base, .25s)); }
.split.is-in .wi { transform: none; filter: none; opacity: 1; }
.split .wi em.serif { display: inline-block; transition: color .6s, transform .6s var(--ease); }
.vhero__title.is-in .wi em.serif { animation: glint 1.4s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 1.1s); }
@keyframes glint { 0% { color: #fff; transform: translateY(0); } 40% { color: #E2C4A5; transform: translateY(-.06em); } 100% { color: #fff; transform: none; } }

/* scroll cue + video toggle */
.vhero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.75); text-decoration: none; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.vhero__scroll i { width: 1px; height: 44px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.vhero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { to { top: 100%; } }
.vhero__toggle { position: absolute; right: var(--gutter); bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(42,28,19,.35); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s, border-color .25s; }
.vhero__toggle:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.vhero__toggle .i-play { display: none; }
.vhero__toggle.is-paused .i-play { display: block; }
.vhero__toggle.is-paused .i-pause { display: none; }
@media (max-width: 760px) { .vhero__scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; border-top: 1px solid var(--line-dark); padding-block: 22px; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; flex: none; }
.marquee li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-head); font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.02em; white-space: nowrap; }
.marquee li:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); color: #EAD7C3; }
.marquee li span { color: var(--electric); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section headings reveal word by word ---------- */
.js .h-2.split-scroll .wi { transition-delay: calc(var(--i) * 45ms); }

/* ---------- Spotlight cards (glow follows the pointer) ---------- */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(192,138,91,.14), transparent 45%); }
.spot:hover::after { opacity: 1; }
.pkg--featured.spot::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.16), transparent 45%); }

/* ---------- Magnetic buttons ---------- */
.btn--magnetic { transition: transform .4s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s, border-color .3s; }

/* ---------- Image parallax ---------- */
.about__img img { will-change: transform; }


/* ---------- Reduced motion: everything static and readable ---------- */
@media (prefers-reduced-motion: reduce) {
  .split .wi { transform: none; filter: none; opacity: 1; }
  .vhero__media { transform: none; }
  .vhero__video { opacity: 1; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; }
  .vhero__scroll i::after { animation: none; }
  .progress { display: none; }
}

/* ==========================================================================
   Brown hero variant: warm brown background, video on the right half,
   so the photo never sits behind the text.
   ========================================================================== */
.vhero { --brown-950: #1E140E; --brown-900: #2A1C13; --brown-800: #3B281C; --brown-600: #6E4A33; --sand: #E9D5C0;
  background: radial-gradient(circle at 20% 80%, var(--brown-800) 0%, var(--brown-900) 45%, var(--brown-950) 100%); }
.vhero__media { left: auto; right: 0; width: 66%;
  --fade: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.03) 6%, rgba(0,0,0,.1) 12%, rgba(0,0,0,.22) 18%, rgba(0,0,0,.38) 24%,
          rgba(0,0,0,.55) 30%, rgba(0,0,0,.72) 36%, rgba(0,0,0,.86) 42%, rgba(0,0,0,.95) 48%, #000 55%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.vhero__video { object-position: 26% 50%; }   /* no filter: original video colours */
.vhero__scrim { display: none; }
.vhero__benefits { margin-top: 30px; }
.vhero__benefits svg { color: var(--accent-light, #E2C4A5); }
.vhero__inner > * { max-width: min(620px, 46vw); }
.vhero .eyebrow { color: var(--sand); }
.vhero__title { max-width: 12ch; }
.vhero__title.is-in .wi em.serif { animation-name: glint-warm; }
@keyframes glint-warm { 0% { color: #fff; } 40% { color: var(--sand); transform: translateY(-.06em); } 100% { color: #fff; transform: none; } }
.vhero__sub { color: rgba(245,236,226,.9); }
.vhero .hero__loc { color: rgba(240,228,214,.8); }
.vhero__toggle { background: rgba(30,20,14,.4); }
.vhero .btn--light { --fg: var(--brown-900); }
.marquee { background: var(--brown-950, #1E140E); border-top-color: rgba(233,213,192,.14); }
.marquee li:nth-child(even) { color: #E9D5C0; }
.marquee li span { color: #B98A62; }

/* Tablet & phone: video on top, text below on brown — no overlap */
@media (max-width: 900px) {
  .vhero { display: block; padding-top: 0; min-height: 0; }
  .vhero__media { position: relative; width: 100%; height: 56svh; min-height: 340px; inset: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .vhero__video { object-position: 58% 40%; }
  .vhero__inner { margin-top: -48px; padding-bottom: 8px; }
  .vhero__inner > * { max-width: none; }
  .vhero__toggle { top: calc(56svh - 120px); bottom: auto; }
}

/* scroll progress + spotlight in caramel (homepage motion) */
.progress { background: linear-gradient(90deg, #8A5A3B, #E2C4A5); }
.spot::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(192,138,91,.16), transparent 45%); }

/* Header text over the untouched video: soft shadow for readability (the video itself stays unfiltered) */
.site-header:not(.is-scrolled) .nav a, .site-header:not(.is-scrolled) .logo span { text-shadow: 0 1px 14px rgba(30,20,14,.55), 0 0 2px rgba(30,20,14,.35); }
.site-header:not(.is-scrolled) .lang, .site-header:not(.is-scrolled) .menu-btn { background: rgba(30,20,14,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 900px) {
  .site-header:not(.is-scrolled) { background: rgba(42,28,19,.6); }
  .site-header:not(.is-scrolled) .lang, .site-header:not(.is-scrolled) .menu-btn { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   FOLDER SECTION — "Meine Leistungen auf einen Blick"
   Stacked file folders; clicking a tab lifts that folder and reveals its content.
   Sizes are controlled by the variables below (desktop / mobile).
   ========================================================================== */
.folders-sec { --paper: #F6F1EA; padding-block: clamp(72px, 9vw, 128px) 0; overflow: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.folders { --step: 58px; --tab: 46px; --content: 330px; --cover: 230px; --lift: calc(var(--tab) + var(--content) - var(--step) + 10px);
  --dark-1: #8A5A3B; --dark-2: #6E4630; --cream-1: #F1E6D7; --cream-2: #E6D6C2; position: relative; }
.folders__intro { height: calc(var(--lift) + 24px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: opacity .5s var(--ease), transform .6s var(--ease); }
.folders__intro .eyebrow { margin-bottom: 18px; }
.folders__intro .h-2 { color: var(--navy); }
.folders__lead { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: 17px; }
.folders__pin { margin-top: 26px; color: var(--royal); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.folders__hint { margin-top: 10px; color: var(--muted); font-size: 15px; }
.folders.has-open .folders__intro { opacity: 0; transform: translateY(-16px); pointer-events: none; }

.folders__stack { position: relative; height: calc(var(--n) * var(--step) + var(--cover)); }
.folder { position: absolute; left: 0; right: 0; top: calc(var(--i) * var(--step)); z-index: calc(var(--i) + 1);
  height: calc(var(--tab) + var(--content) + 200px);
  transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .6s var(--ease); }
.folder:nth-child(odd) { left: 1.2%; right: 0; }
.folder:nth-child(even) { left: 0; right: 1.2%; }
.folder__tabwrap { position: absolute; top: 0; left: var(--tab-x); width: var(--tab-w, 30%); height: calc(var(--tab) + 2px); margin: 0; font: inherit; z-index: 2; }
.folder__tab { position: relative; width: 100%; height: 100%; border: 0; border-radius: 16px 22px 0 0; padding: 0 28px; text-align: left;
  font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; cursor: pointer; transition: filter .25s; }
.folder__tab span { position: relative; z-index: 1; }
.folder__tab:hover { filter: brightness(1.06); }
.folder__tab:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }
/* concave shoulders where the tab meets the folder body */
.folder__tab::before, .folder__tab::after { content: ""; position: absolute; bottom: 0; width: 22px; height: 22px; }
.folder__tab::before { left: -22px; background: radial-gradient(circle at 0 0, transparent 21.5px, var(--tab-bg) 22px); }
.folder__tab::after { right: -22px; background: radial-gradient(circle at 100% 0, transparent 21.5px, var(--tab-bg) 22px); }
.folder__body { position: absolute; left: 0; right: 0; top: var(--tab); bottom: 0; border-radius: 18px 18px 0 0; overflow: hidden;
  box-shadow: 0 -1px 0 rgba(255,255,255,.35) inset, 0 -6px 16px -8px rgba(42,28,19,.35); }
.folder--dark { --tab-bg: var(--dark-1); color: #F6EDE3; }
.folder--dark .folder__tab, .folder--dark .folder__body { background: linear-gradient(180deg, var(--dark-1), var(--dark-2)); color: #F6EDE3; }
.folder--dark .folder__tab { background: var(--dark-1); }
.folder--cream { --tab-bg: var(--cream-1); color: #4A3022; }
.folder--cream .folder__tab, .folder--cream .folder__body { background: linear-gradient(180deg, var(--cream-1), var(--cream-2)); color: #8A5A3B; }
.folder--cream .folder__tab { background: var(--cream-1); }
/* subtle paper grain on folders */
.folder__body::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.folder__content { position: relative; z-index: 1; height: var(--content); display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
  padding: 28px clamp(28px, 4vw, 64px); opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.folder__art { width: 100%; max-width: 320px; height: auto; justify-self: center; opacity: .9; }
.folder--cream .folder__art { color: #5C3A26; }
.folder__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.folder__title { margin-top: 8px; font-family: var(--f-head); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 500; }
.folder--cream .folder__title { color: #3B281C; }
.folder__desc { margin-top: 14px; font-size: 16px; line-height: 1.6; max-width: 42ch; opacity: .92; }
.folder--cream .folder__desc { color: #4A3022; }
.folder__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.folder__links a { color: inherit; font-family: var(--f-head); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.folder--cream .folder__links a { color: #8A5A3B; }

/* open state */
.folder.is-open { transform: translateY(calc(-1 * var(--lift))); }
.folder.is-open .folder__content { opacity: 1; transform: none; transition-delay: .25s; }
.folder.is-open .folder__tab { filter: brightness(1.08); }

/* front pocket with the tagline */
.folders__cover { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--n) * var(--step) + 6px); z-index: calc(var(--n) + 5);
  border-radius: 20px 20px 0 0; background: linear-gradient(180deg, #7E5136, #5E3C29); color: #F6EDE3; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 -10px 24px -12px rgba(42,28,19,.5); }
.folders__cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.folders__cover-t { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.folders__cover-s { font-size: 14px; opacity: .7; }

/* entrance: folders slide up one after another when the section scrolls into view */
.js .folders:not(.is-in) .folder { transform: translateY(70px); opacity: 0; }
.folders.is-in .folder { transition-delay: calc(var(--i) * 90ms); }
.folders.is-in.has-open .folder { transition-delay: 0s; }

@media (max-width: 760px) {
  .folders { --step: 50px; --tab: 42px; --content: 380px; --cover: 170px; }
  .folder__tabwrap { --tab-w: 58%; left: var(--tab-x-m, 0%); }
  .folder:nth-child(odd) .folder__tabwrap { --tab-x-m: 34%; }
  .folder:nth-child(even) .folder__tabwrap { --tab-x-m: 8%; }
  .folder__tab { padding: 0 18px; font-size: 14px; }
  .folder__content { grid-template-columns: 1fr; gap: 14px; align-content: start; padding: 22px 22px; }
  .folder__art { max-width: 150px; justify-self: start; }
  .folders__cover-t { font-size: 12px; letter-spacing: .16em; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .folder, .folder__content, .folders__intro { transition: none !important; }
  .js .folders:not(.is-in) .folder { transform: none; opacity: 1; }
  .folders__pin { animation: none; }
}

/* ==========================================================================
   3D CARD STACK — "Ausgewählte Arbeiten" (scroll to flip through projects)
   The section is tall; the stage sticks to the screen while you scroll and
   the scroll position decides which card is in front.
   ========================================================================== */
.deck-sec { position: relative; padding-top: clamp(72px, 9vw, 128px); background: var(--gray); }
.deck-head .sec-head { margin-bottom: 0; }
.deck-track { position: relative; height: calc(var(--n) * 62vh + 100vh); }
.deck-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: calc(var(--header-h) + 20px) var(--gutter) 28px; }
.deck__caption { text-align: center; min-height: 64px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.deck__caption.is-swap { opacity: 0; transform: translateY(6px); }
.deck__label { font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.deck__title { margin-top: 6px; font-family: var(--f-head); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; color: var(--navy); }

.deck { --w: min(560px, 82vw); --h: calc(var(--w) * .62); position: relative; width: var(--w); height: 100%; perspective: 1100px; perspective-origin: 50% 78%; align-self: stretch; }
.deck__card { position: absolute; left: 0; right: 0; bottom: 22%; height: var(--h); display: block; border-radius: 22px; transform-origin: 50% 100%;
  transform: translate3d(0, var(--ty, 0px), var(--tz, 0px)) rotateX(var(--rx, 0deg)) scale(var(--s, 1)); opacity: var(--o, 1); z-index: var(--z, 1);
  transition: filter .3s, box-shadow .3s; will-change: transform, opacity; text-decoration: none; }
.deck__face { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 40px -18px rgba(42,28,19,.55), 0 2px 6px rgba(42,28,19,.12); }
.deck__face .mock { position: absolute; inset: 0; }
.deck__card.is-back { cursor: pointer; }
.deck__card.is-back:hover, .deck__card.is-back:focus-visible { --lift: -16px; }
.deck__card:focus-visible { outline: 2px solid var(--royal); outline-offset: 5px; }
.deck__floor { position: absolute; left: -10%; right: -10%; bottom: 8%; height: 18%; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(42,28,19,.22), rgba(42,28,19,0) 70%); filter: blur(6px); }
.deck__dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 10px; }
.deck__dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; transition: background-color .3s, transform .3s, border-color .3s; }
.deck__dots button[aria-current="true"] { background: var(--royal); border-color: var(--royal); transform: scale(1.35); }
.deck__dots button:hover { border-color: var(--royal); }
.deck__dots li { display: grid; place-items: center; width: 24px; height: 24px; }
.deck__hint { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.deck__hint span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }
.deck-sec .pf-note { margin: 0 0 clamp(48px, 6vw, 80px); }

@media (max-width: 760px) {
  .deck { --w: 84vw; perspective: 800px; }
  .deck__card { bottom: 26%; border-radius: 16px; }
  .deck__dots { display: none; }
  .deck-track { height: calc(var(--n) * 55vh + 100vh); }
}
/* No JavaScript or reduced motion: simple grid of project cards instead of the 3D stack */
html:not(.js) .deck-track, .deck-sec.is-static .deck-track { height: auto; }
html:not(.js) .deck-sticky, .deck-sec.is-static .deck-sticky { position: static; height: auto; display: block; padding-top: 40px; }
html:not(.js) .deck, .deck-sec.is-static .deck { width: 100%; max-width: var(--wrap); height: auto; perspective: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
html:not(.js) .deck__card, .deck-sec.is-static .deck__card { position: relative; bottom: auto; transform: none; opacity: 1; aspect-ratio: 16/10; height: auto; }
html:not(.js) .deck__dots, html:not(.js) .deck__floor, html:not(.js) .deck__hint, html:not(.js) .deck__caption,
.deck-sec.is-static .deck__dots, .deck-sec.is-static .deck__floor, .deck-sec.is-static .deck__hint, .deck-sec.is-static .deck__caption { display: none; }
/* show each design's colour on the stacked edges (hide the mock browser bar inside the deck) */
.deck__face .mock__bar { display: none; }
.deck { --w: min(640px, 82vw); }
@media (max-width: 760px) { .deck { --w: 84vw; } }

/* ==========================================================================
   ENVELOPE — brown faux-fur envelope opens and a letter with the email slides out
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

.env-sec { position: relative; overflow: hidden; background-color: #F4EEE6; color: #5A3A28;
  padding: clamp(110px, 12vw, 170px) var(--gutter) clamp(90px, 10vw, 140px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* thin frame with dot ornaments (like the reference) */
.env-frame { position: absolute; inset: clamp(14px, 2.4vw, 32px); border: 1px solid rgba(90,58,40,.35); pointer-events: none; }
.env-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #5A3A28; }
.env-dot--tl { left: -4px; top: -4px; } .env-dot--tr { right: -4px; top: -4px; } .env-dot--bl { left: -4px; bottom: -4px; } .env-dot--br { right: -4px; bottom: -4px; }
.env-dot--tc { left: 50%; top: -4px; transform: translateX(-50%); box-shadow: -10px 0 0 #5A3A28, 10px 0 0 #5A3A28; }
.env-top { position: absolute; top: clamp(24px, 3.2vw, 44px); font-size: 13px; letter-spacing: .04em; color: #7A5A44; }
.env-top--a { left: 32%; } .env-top--b { left: 60%; }
.env-words { position: absolute; inset: 0; pointer-events: none; }
.env-word { position: absolute; font-size: clamp(12px, 1vw, 14px); color: #6B4A36; opacity: 0; transform: translateY(10px); white-space: nowrap;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(1.6s + var(--d)); }
.env-sec.is-in .env-word { opacity: var(--o); transform: none; animation: drift 9s ease-in-out infinite alternate; animation-delay: calc(2.4s + var(--d)); }
@keyframes drift { 0% { translate: 0 0; } 50% { translate: 6px -8px; } 100% { translate: -5px 6px; } }

.env-stage { position: relative; display: grid; place-items: center; padding-top: clamp(170px, 20vw, 280px); }
.env { position: relative; width: min(660px, 90vw); aspect-ratio: 1096 / 736; perspective: 1400px; }
.env img { position: absolute; left: 0; width: 100%; height: auto; user-select: none; pointer-events: none; }
.env__back { top: 0; z-index: 1; }
.env__front { top: 0; z-index: 3; filter: drop-shadow(0 30px 40px rgba(60,36,22,.28)); }
/* flap: closed = pointing down over the letter; open = flipped up behind the letter */
.env__flap { top: 0; z-index: 4; transform-origin: 50% 10.1%; transform: rotateX(0deg);
  /* closing: wait for the letter to slide in, then fold the flap down */
  transition: transform 1s cubic-bezier(.6,.05,.25,1) .75s, z-index 0s linear 1.25s; }
.env-sec.is-open .env__flap { transform: rotateX(180deg); z-index: 1; transition-delay: .15s, .65s; }

.env__letter { position: absolute; left: 11%; right: 11%; z-index: 2; top: 10%; height: 84%;
  background: #F5EEE4; border-radius: 4px; padding: clamp(14px, 2.4vw, 26px) clamp(16px, 3vw, 34px);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 30px -14px rgba(60,36,22,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: translateY(0); transition: transform .85s cubic-bezier(.55,0,.3,1) 0s; }
.env-sec.is-open .env__letter { transform: translateY(-74%); transition: transform 1.2s cubic-bezier(.2,.8,.2,1) 1s; }
.env-sec.is-open .env__letter:hover { transform: translateY(-77%); transition-delay: 0s; transition-duration: .5s; }
.env__row { display: flex; align-items: center; gap: 12px; width: 100%; }
.env__label { font-family: "Instrument Serif", var(--f-serif); font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .08em; text-transform: uppercase; color: #B49A84; white-space: nowrap; }
.env__line { flex: 1; height: 1px; background: rgba(90,58,40,.25); position: relative; }
.env__line::after { content: ""; position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #8A6A54; }
.env__stamp { width: clamp(26px, 3.4vw, 38px); color: #8A5A3B; flex: none; }
.env__title { margin: clamp(10px, 1.8vw, 22px) 0 0; font-family: "Instrument Serif", var(--f-serif); font-weight: 400; font-style: normal;
  font-size: clamp(20px, 3.4vw, 44px); line-height: 1; white-space: nowrap; letter-spacing: -0.01em; text-transform: uppercase; color: #3B2618; }
.env__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.env__title a:hover { background-size: 100% 1px; }
.env__sub { margin-top: clamp(8px, 1.4vw, 16px); font-size: clamp(12.5px, 1.15vw, 15px); line-height: 1.45; color: #5A3A28; max-width: 34ch; }
.env__actions { margin-top: clamp(10px, 1.6vw, 18px); display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.env__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-family: var(--f-head); font-weight: 600; font-size: 13.5px;
  background: #6E4630; color: #F6EDE3; border: 1px solid #6E4630; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.env__btn:hover { background: #4A2E1F; transform: translateY(-2px); }
.env__btn--ghost { background: transparent; color: #6E4630; }
.env__btn--ghost:hover { background: #6E4630; color: #F6EDE3; }

@media (max-width: 760px) {
  .env-word--desk { display: none; }
  .env-top { display: none; }
  .env-stage { padding-top: 50vw; }
  .env__letter { left: 7%; right: 7%; height: 92%; }
  .env-sec.is-open .env__letter { transform: translateY(-58%); }
  .env__toggle { top: 52%; }
  .env-sec:not(.is-open) .env__toggle { top: 0; }
  .env__actions { display: none; }   /* on phones the email itself is the tap target */
}
@media (prefers-reduced-motion: reduce) {
  .env__flap, .env__letter, .env-sec.is-open .env__flap, .env-sec.is-open .env__letter { transition: none; }
  .env-word { opacity: var(--o); transform: none; transition: none; animation: none !important; }
}

/* click target on the envelope: closes / opens it */
.env__toggle { position: absolute; left: 0; right: 0; bottom: 0; top: 36%; z-index: 5; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 24px; }
.env-sec:not(.is-open) .env__toggle { top: 0; }
.env__toggle:focus-visible { outline: 2px solid #8A5A3B; outline-offset: 6px; }
.env__hint { margin-top: 22px; font-size: 13px; letter-spacing: .04em; color: #7A5A44; text-align: center; }
.env-sec .env { transition: transform .4s var(--ease); }
.env-sec .env:has(.env__toggle:hover) { transform: translateY(-4px) rotate(-.4deg); }

/* flap casts a soft shadow so the closed envelope shows its triangle */
.env__flap { filter: drop-shadow(0 10px 10px rgba(40,24,14,.38)) drop-shadow(0 2px 2px rgba(40,24,14,.3)); }

/* nothing blurs or tints the video: solid controls, header bar sits above the video on phones */
.vhero__toggle { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(30,20,14,.55); }
.site-header:not(.is-scrolled) .lang, .site-header:not(.is-scrolled) .menu-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(30,20,14,.45); }
@media (max-width: 900px) {
  .site-header:not(.is-scrolled) { background: #2A1C13; }
  .vhero__media { margin-top: var(--header-h); }
  .site-header:not(.is-scrolled) .lang, .site-header:not(.is-scrolled) .menu-btn { background: transparent; }
}

/* ---------- Folder tabs: arrow shows that a folder can be opened (↑) and closed (↓) ---------- */
.folder__tab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.folder__act { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; opacity: .85; }
.folder__act em { font-style: normal; letter-spacing: .02em; }
.folder__act-close { display: none; }
.folder.is-open .folder__act-open { display: none; }
.folder.is-open .folder__act-close { display: inline; }
.folder__chev { width: 26px; height: 26px; padding: 6px; border-radius: 50%; border: 1px solid currentColor; box-sizing: border-box;
  transition: transform .45s var(--ease), background-color .25s, color .25s; }
.folder--dark .folder__tab:hover .folder__chev { color: #F6EDE3; background: rgba(246,237,227,.18); }
.folder--cream .folder__tab:hover .folder__chev { background: rgba(138,90,59,.15); }
.folder.is-open .folder__chev { transform: rotate(180deg); }
/* gentle nudge on the arrows until the visitor has opened a folder */
.folders:not(.was-used) .folder__chev { animation: chev-nudge 2.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms + 3s); }
@keyframes chev-nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } 90% { transform: translateY(1px); } }
.folders:not(.was-used) .folder.is-open .folder__chev { animation: none; transform: rotate(180deg); }
@media (max-width: 760px) { .folder__act em { display: none !important; } .folder__chev { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: reduce) { .folder__chev { animation: none !important; } }

/* ---------- Bigger portfolio cards on desktop (size follows the screen height so the stack always fits) ---------- */
@media (min-width: 761px) {
  .deck { --w: min(1040px, 72vw, calc(161svh - 505px)); perspective: 1600px; perspective-origin: 50% 88%; }
  .deck__card { bottom: 8%; border-radius: 26px; }
  .deck-sticky { padding-top: calc(var(--header-h) + 12px); padding-bottom: 18px; }
  .deck__floor { bottom: 0; }
}

/* ==========================================================================
   PORTFOLIO GALLERY (directly under the hero) + WEBSITE PREVIEW WINDOW
   ========================================================================== */
.sc-sec { background: var(--gray); padding: clamp(64px, 7vw, 104px) 0 clamp(72px, 8vw, 120px); }
.sc-head { margin-bottom: 28px; }
.sc-head .h-2 { max-width: 22ch; }
.sc-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.sc-chip { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; background: #ECE3D8; color: #2B231E;
  font-family: var(--f-body); font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .25s, border-color .25s, transform .2s; }
.sc-chip:hover { background: #E3D7C9; }
.sc-chip[aria-pressed="true"] { background: #FBF8F4; border-color: #2B231E; }
.sc-chip:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
@media (max-width: 760px) {
  .sc-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .sc-chips::-webkit-scrollbar { display: none; }
  .sc-chip { flex: none; font-size: 15px; min-height: 42px; padding: 0 16px; }
}
.sc-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .sc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1240px) { .sc-grid { grid-template-columns: repeat(4, 1fr); } }
.sc-card { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.sc-card.is-hiding { opacity: 0; transform: scale(.97); }
.sc-card[hidden] { display: none; }
.sc-card__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; text-align: left; }
.sc-card__btn:focus-visible { outline: 2px solid var(--royal); outline-offset: 4px; }
.sc-card__frame { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(42,28,19,.06), 0 18px 40px -26px rgba(42,28,19,.45); transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.sc-card__btn:hover .sc-card__frame { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(42,28,19,.06), 0 30px 60px -28px rgba(42,28,19,.55); }
/* long page inside the card: scrolls down slowly on hover (like browsing the website) */
.sc-page, .sc-shot { position: absolute; left: 0; top: 0; width: 100%; transition: transform 3.2s cubic-bezier(.45,.05,.3,1); }
.sc-shot { height: auto; }
.sc-card__btn:hover .sc-page, .sc-card__btn:focus-visible .sc-page { transform: translateY(-34%); }
.sc-card__btn:hover .sc-shot, .sc-card__btn:focus-visible .sc-shot { transform: translateY(calc(-100% + 100cqh)); }
.sc-card__frame { container-type: size; }
.sc-page { background: var(--pg); color: var(--fg); min-height: 150%; }
.sc-page__hero { position: relative; aspect-ratio: 16 / 12; }
.sc-page__hero .mock { position: absolute; inset: 0; }
.sc-page__hero .mock__bar { display: none; }
.sc-skel { padding: 9% 9% 12%; display: grid; gap: 22px; }
.sc-skel__row { display: grid; gap: 7px; }
.sc-skel__b { display: block; height: 6px; width: var(--w); border-radius: 4px; background: currentColor; opacity: .16; }
.sc-skel__row .sc-skel__b:first-child { height: 11px; opacity: .3; width: 70%; }
.sc-skel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-skel__grid:nth-of-type(4) { grid-template-columns: repeat(2, 1fr); }
.sc-skel__grid i { aspect-ratio: 1; border-radius: 8px; background: currentColor; opacity: .08; }
.sc-skel__wide { height: 90px; border-radius: 10px; background: currentColor; opacity: .07; }
.sc-card__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgba(30,20,14,.82); color: #F6EDE3; font-size: 12.5px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.sc-card__btn:hover .sc-card__zoom, .sc-card__btn:focus-visible .sc-card__zoom { opacity: 1; transform: none; }
@media (hover: none) { .sc-card__zoom { opacity: 1; transform: none; } }
.sc-card__cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 4px 0; }
.sc-card__title { font-family: var(--f-head); font-weight: 600; font-size: 15px; color: #2B231E; letter-spacing: -0.01em; }
.sc-card__cat { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sc-empty { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); }

/* preview window */

/* ==========================================================================
   FROSTED FILTER BAR — glass pill bar, pinned under the header while the
   portfolio scrolls behind it (cards blur through the glass)
   ========================================================================== */
.sc-sec { position: relative; isolation: isolate; overflow: clip; }
/* soft warm light behind the bar so the frost is visible even before scrolling */
.sc-sec::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 120px; height: 420px; pointer-events: none;
  background:
    radial-gradient(260px 160px at 18% 62%, rgba(192,138,91,.55), transparent 70%),
    radial-gradient(300px 170px at 46% 70%, rgba(110,70,48,.45), transparent 70%),
    radial-gradient(240px 150px at 72% 58%, rgba(226,196,165,.7), transparent 70%),
    radial-gradient(280px 160px at 92% 72%, rgba(138,90,59,.4), transparent 70%);
  filter: blur(24px); }
.sc-chips { position: sticky; top: calc(var(--header-h) + 14px); z-index: 20; width: fit-content; max-width: 100%;
  padding: 8px; gap: 8px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.14));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -1px 0 rgba(42,28,19,.06), 0 14px 36px -16px rgba(42,28,19,.45); }
.sc-chip { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5); color: #2B231E;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.sc-chip:hover { background: rgba(255,255,255,.45); }
.sc-chip[aria-pressed="true"] { background: rgba(255,255,255,.82); border: 1.5px solid #2B231E; box-shadow: 0 4px 14px -6px rgba(42,28,19,.35); }
/* fallback for browsers without frosted-glass support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sc-chips { background: rgba(245,240,234,.94); }
  .sc-chip { background: #ECE3D8; }
}
@media (max-width: 760px) {
  .sc-chips { width: auto; border-radius: 22px; margin-inline: 0; padding: 6px; top: calc(var(--header-h) + 10px); }
  .sc-sec::before { top: 160px; height: 300px; }
}
/* smoky brown frosted glass (like the reference): tinted glass, white text */
.sc-chips { background: linear-gradient(135deg, rgba(58,38,26,.52), rgba(90,60,40,.30) 55%, rgba(58,38,26,.44));
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 30px rgba(255,255,255,.06), 0 18px 40px -18px rgba(30,20,14,.6);
  -webkit-backdrop-filter: blur(26px) saturate(140%) brightness(.95); backdrop-filter: blur(26px) saturate(140%) brightness(.95); }
.sc-chip { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); color: #FBF6F0;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sc-chip:hover { background: rgba(255,255,255,.2); }
.sc-chip[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #2B231E; border: 1px solid rgba(255,255,255,.95); text-shadow: none;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); }
.sc-chip:focus-visible { outline-color: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sc-chips { background: rgba(58,38,26,.92); }
  .sc-chip { background: rgba(255,255,255,.12); }
}
.sc-chips { background: linear-gradient(135deg, rgba(42,28,19,.78), rgba(78,52,36,.62) 55%, rgba(42,28,19,.74)); }
.sc-chip { background: rgba(255,255,255,.08); }
.sc-chips { background: linear-gradient(135deg, rgba(42,28,19,.86), rgba(70,46,32,.74) 55%, rgba(42,28,19,.82)); }

/* Homepage gallery = "Design concepts" masonry from the portfolio page */
.sc-sec.section--white { background: var(--white); }
.sc-grid.masonry { display: block; }
.sc-head { margin-bottom: 36px; }
.sc-head .h-2 { max-width: none; }
.sc-grid .m-item { cursor: default; }
.sc-grid .sc-empty { column-span: all; margin-bottom: 24px; }
.sc-sec::before { top: 200px; }

/* ==========================================================================
   ELEGANT FILTER BAR (refined frosted ivory glass, espresso active pill)
   ========================================================================== */
.sc-chips { gap: 4px; padding: 6px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,252,248,.62), rgba(245,238,229,.48));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(138,90,59,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(42,28,19,.04), 0 18px 40px -22px rgba(42,28,19,.35); }
.sc-chip { position: relative; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; text-shadow: none;
  color: #5A4636; font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: color .3s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); }
.sc-chip:hover { background: rgba(138,90,59,.08); color: #2A1C13; }
.sc-chip[aria-pressed="true"] { background: #2A1C13; color: #F6EDE3; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 16px -8px rgba(42,28,19,.55); }
/* thin separators between options */
.sc-chip + .sc-chip::before { content: ""; position: absolute; left: -2px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(138,90,59,.22); transition: opacity .3s; }
.sc-chip[aria-pressed="true"]::before, .sc-chip[aria-pressed="true"] + .sc-chip::before, .sc-chip:hover::before, .sc-chip:hover + .sc-chip::before { opacity: 0; }
.sc-chip:focus-visible { outline: 2px solid #8A5A3B; outline-offset: 2px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .sc-chips { background: rgba(250,245,238,.97); } .sc-chip { background: transparent; } }
@media (max-width: 760px) { .sc-chips { border-radius: 999px; } .sc-chip { font-size: 13.5px; padding: 0 16px; min-height: 40px; } }
.sc-grid .cap { gap: 6px; }
.sc-chips { background: linear-gradient(180deg, rgba(255,252,248,.8), rgba(245,238,229,.7)); }

/* ==========================================================================
   PORTFOLIO FILTERS — editorial tabs (hairline, count, dot under the active one)
   ========================================================================== */
.sc-sec::before { display: none; }
.sc-chips { position: static; width: 100%; max-width: none; display: flex; flex-wrap: wrap; gap: 6px 34px; padding: 0 0 2px; margin-bottom: 40px;
  background: none; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sc-chip { position: relative; min-height: 0; padding: 14px 0 18px; border: 0; border-radius: 0; background: none !important; box-shadow: none !important; text-shadow: none;
  color: var(--muted); font-family: var(--f-head); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; transition: color .3s var(--ease); }
.sc-chip::before { content: none !important; }
.sc-chip:hover { color: #2A1C13; }
.sc-chip[aria-pressed="true"] { color: #2A1C13; }
.sc-chip::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2A1C13;
  transform: scale(0); transition: transform .35s var(--ease); }
.sc-chip[aria-pressed="true"]::after { transform: scale(1); }
.sc-count { margin-left: 4px; font-family: var(--f-serif); font-style: italic; font-size: .82em; font-weight: 400; color: #B08A6C; vertical-align: super; line-height: 0; }
.sc-chip[aria-pressed="true"] .sc-count { color: #8A5A3B; }
.sc-chip:focus-visible { outline: 2px solid #8A5A3B; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 760px) {
  .sc-chips { flex-wrap: nowrap; overflow-x: auto; gap: 26px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; scrollbar-width: none; }
  .sc-chip { flex: none; font-size: 15px; padding: 12px 0 16px; }
}

/* ==========================================================================
   ABOUT — independent freelancer
   ========================================================================== */
.fl { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .fl { grid-template-columns: .9fr 1.1fr; gap: clamp(56px, 7vw, 112px); } .fl__media { position: sticky; top: calc(var(--header-h) + 32px); } }
.fl__media { position: relative; }
.fl__img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #8f8d90; }
.fl__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.fl__badge { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px;
  background: rgba(251,248,244,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 14px 30px -16px rgba(42,28,19,.5); font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.fl__badge strong { display: block; font-family: var(--f-head); font-size: 15px; color: #2A1C13; }
.fl__dot { width: 9px; height: 9px; border-radius: 50%; background: #8A5A3B; box-shadow: 0 0 0 4px rgba(138,90,59,.18); flex: none; }
.fl__intro { margin-top: 28px; font-family: var(--f-head); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.35; letter-spacing: -0.02em; color: #2A1C13; }
.fl__paras { margin-top: 16px; display: grid; gap: 12px; color: var(--muted); }
.fl__label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8A5A3B; margin-bottom: 14px; }
.fl__clients { margin-top: 40px; }
.fl-countries { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.fl-country { padding: 20px 16px 18px; display: grid; gap: 4px; }
.fl-country + .fl-country { border-left: 1px solid var(--line); }
.fl-country:first-child { padding-left: 0; }
.fl-country__code { font-family: var(--f-serif); font-style: italic; font-size: clamp(40px, 4vw, 56px); line-height: .9; color: #2A1C13; }
.fl-country__name { font-size: 14px; color: var(--muted); }
.fl__facts { margin: 36px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .fl__facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.fl__facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fl__facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fl__facts dd { margin: 0; font-size: 15px; color: var(--muted); }
.fl__facts dd strong { color: #2A1C13; font-weight: 600; }
.fl__promise { margin-top: 36px; padding: 26px 28px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.fl__promise .ticks { margin: 0; }

/* ==========================================================================
   FLUID GRADIENT (reviews) — slowly moving warm blobs behind frosted cards
   ========================================================================== */
.fluid { position: relative; overflow: hidden; isolation: isolate; background: #241710; color: var(--on-dark); }
.fluid .h-2, .fluid h2 { color: #fff; }
.fluid .lead { color: var(--on-dark-muted); }
.fluid .eyebrow { color: var(--accent-light, #E2C4A5); }
.fluid__bg { position: absolute; inset: -20%; z-index: -1; filter: blur(70px) saturate(120%); }
.fluid__bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .75; mix-blend-mode: screen; will-change: transform; }
.fluid__bg i:nth-child(1) { left: 5%; top: 10%; background: radial-gradient(circle, #C08A5B, transparent 65%); animation: blob1 22s ease-in-out infinite alternate; }
.fluid__bg i:nth-child(2) { right: 0; top: 0; background: radial-gradient(circle, #8A5A3B, transparent 65%); animation: blob2 26s ease-in-out infinite alternate; }
.fluid__bg i:nth-child(3) { left: 30%; bottom: -10%; background: radial-gradient(circle, #E2C4A5, transparent 62%); opacity: .45; animation: blob3 30s ease-in-out infinite alternate; }
.fluid__bg i:nth-child(4) { right: 15%; bottom: 5%; background: radial-gradient(circle, #6E2E1F, transparent 65%); animation: blob4 24s ease-in-out infinite alternate; }
.fluid__bg i:nth-child(5) { left: -10%; bottom: 20%; background: radial-gradient(circle, #B07A4E, transparent 65%); opacity: .5; animation: blob1 34s ease-in-out infinite alternate-reverse; }
@keyframes blob1 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(18vw, 10vh) scale(1.2); } 100% { transform: translate(6vw, -8vh) scale(.9); } }
@keyframes blob2 { 0% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-20vw, 14vh) scale(.85); } 100% { transform: translate(-8vw, 4vh) scale(1.2); } }
@keyframes blob3 { 0% { transform: translate(0,0) scale(.9); } 50% { transform: translate(-12vw, -16vh) scale(1.25); } 100% { transform: translate(14vw, -4vh) scale(1); } }
@keyframes blob4 { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(10vw, -14vh) scale(1.15); } 100% { transform: translate(-14vw, 6vh) scale(.9); } }

/* video reviews: vertical frosted cards */
.vr-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }
@media (max-width: 760px) { .vr-grid { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; } .vr { scroll-snap-align: start; } }
.vr { margin: 0; }
.vr__frame { position: relative; aspect-ratio: 9 / 14; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.07) center/cover no-repeat;
  border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 30px 60px -30px rgba(0,0,0,.6); display: grid; place-items: center; }
.vr__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vr__tag { position: absolute; left: 16px; top: 16px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fff; z-index: 2; }
.vr .rv__ph { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.vr__play, .pvid__play { width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .35s var(--ease), background-color .3s; position: relative; z-index: 2; }
.vr__play::after, .pvid__play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.vr__play:hover, .pvid__play:hover { transform: scale(1.08); background: rgba(255,255,255,.3); }
.vr__soon { display: grid; justify-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 14px; text-align: center; padding: 20px; }
.vr__soon svg { width: 54px; height: 54px; padding: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); }
.vr figcaption, .tq figcaption { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 14px; color: var(--on-dark-muted); font-size: 14px; }
.vr figcaption strong, .tq figcaption strong { color: #fff; font-size: 15px; grid-column: 1; }
.vr figcaption span, .tq figcaption span { grid-column: 1; }
.vr figcaption em, .tq figcaption em { grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--f-serif); font-style: italic; font-size: 24px; color: var(--accent-light, #E2C4A5); }
/* written reviews */
.tq-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .tq-grid { grid-template-columns: repeat(3, 1fr); } }
.tq { margin: 0; padding: 28px 28px 22px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 12px; }
.tq blockquote { margin: 0; flex: 1; }
.tq blockquote p { font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.4; color: #fff; }
.tq figcaption { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.fluid .rv__stars { color: #E2C4A5; } .fluid .rv__ph { align-self: flex-start; }
.fluid .placeholder { color: #FFE2A8; background: rgba(255,194,26,.14); border-color: rgba(255,194,26,.5); }

/* ==========================================================================
   PROCESS VIDEO
   ========================================================================== */
.pvid-sec { background: var(--gray); }
.pvid__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #2A1C13 center/cover no-repeat; box-shadow: var(--shadow-2); display: grid; place-items: center; }
.pvid__frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,28,19,.15), rgba(42,28,19,.55)); }
.pvid__frame.is-playing::before { display: none; }
.pvid__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }
.pvid__play { width: 96px; height: 96px; }
.pvid__play--idle { cursor: default; }
.pvid__soon { position: absolute; left: 24px; bottom: 22px; z-index: 2; display: grid; gap: 6px; color: #fff; }
.pvid__soon small { opacity: .8; }
.pvid__points { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .pvid__points { grid-template-columns: repeat(4, 1fr); } }
.pvid__points li { padding: 18px 16px 0 0; font-family: var(--f-head); font-weight: 500; color: var(--navy); }
.pvid__points span { display: block; font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--royal); margin-bottom: 4px; }

/* ==========================================================================
   SWISS ALPS — layered mountains, drifting clouds, rising sun, scroll parallax
   ========================================================================== */
.alps { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(110px, 12vw, 180px) 0 clamp(260px, 30vw, 420px);
  background: linear-gradient(180deg, #F2DFCB 0%, #E7C3A2 34%, #C99472 62%, #8A5A3B 100%); }
.alps__sky { position: absolute; inset: 0; z-index: -2; }
.alps__sun { position: absolute; left: 62%; top: 30%; width: 240px; height: 240px; margin-left: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,247,236,.95) 0%, rgba(255,226,190,.7) 35%, rgba(255,210,170,0) 70%);
  transform: translateY(calc(var(--ap, 0) * -90px)); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { filter: brightness(1.12); } }
.alps__cloud { position: absolute; height: 46px; border-radius: 50px; background: rgba(255,250,244,.7); filter: blur(10px); }
.alps__cloud--1 { width: 360px; top: 22%; left: -380px; animation: cloud 70s linear infinite; }
.alps__cloud--2 { width: 240px; top: 38%; left: -260px; animation: cloud 95s linear infinite 18s; opacity: .7; }
.alps__cloud--3 { width: 420px; top: 14%; left: -440px; animation: cloud 120s linear infinite 40s; opacity: .55; }
@keyframes cloud { to { transform: translateX(calc(100vw + 900px)); } }
.alps__svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; z-index: -1; }
.alps__l { will-change: transform; }
.alps__l--far { transform: translateY(calc(var(--ap, 0) * 40px)); }
.alps__l--mid { transform: translateY(calc(var(--ap, 0) * 24px)); }
.alps__l--near { transform: translateY(calc(var(--ap, 0) * 8px)); }
.alps__content { position: relative; max-width: 760px; margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.alps .eyebrow { color: #6E4630; }
.alps .h-2 { color: #2A1C13; }
.alps .lead { color: #4A2E1F; margin-top: 22px; max-width: 54ch; }
.alps__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.alps__stats > div { padding: 14px 20px; border-radius: 18px; background: rgba(255,250,244,.45); border: 1px solid rgba(255,255,255,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.alps__k { font-family: var(--f-serif); font-style: italic; font-size: 26px; color: #2A1C13; line-height: 1.1; }
.alps__s { font-size: 13.5px; color: #4A2E1F; }
.alps .btn--light { --bg: #2A1C13; --fg: #F6EDE3; }

@media (prefers-reduced-motion: reduce) {
  .fluid__bg i, .alps__cloud, .alps__sun, .vr__play::after, .pvid__play::after { animation: none !important; }
  .alps__l, .alps__sun { transform: none !important; }
}
.alps { padding-bottom: clamp(300px, 34vw, 500px); }
.alps__svg { height: 58%; }
.pvid__soon .placeholder { background: #FFF3D6; color: #6B4200; border-color: #E6C27A; }
@media (max-width: 760px) { .alps { padding-bottom: 260px; } .alps__svg { height: 40%; } }
.alps__content { padding-right: var(--gutter); box-sizing: border-box; }

/* ==========================================================================
   ÜBER MICH – interactive facts
   ========================================================================== */
.flx { margin-top: 30px; }
.flx__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flx__tab { position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px 20px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--navy); cursor: pointer; font: inherit;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.flx__tab:hover { transform: translateY(-3px); border-color: var(--royal); }
.flx__tab[aria-selected="true"] { background: var(--royal); border-color: var(--royal); color: #fff; }
.flx__tab:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
.flx__big { font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.01em; }
.flx__small { font-size: 13px; line-height: 1.3; opacity: .8; }
.flx__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255,255,255,.7); }
.flx.is-auto .flx__tab[aria-selected="true"] .flx__bar { animation: flxbar 5s linear forwards; }
@keyframes flxbar { to { width: 100%; } }
.flx__panels { margin-top: 16px; min-height: 5.2em; }
.flx__panel { font-size: 17px; line-height: 1.6; color: var(--text); padding-left: 16px; border-left: 2px solid var(--royal); animation: flxin .5s var(--ease); }
@keyframes flxin { from { opacity: 0; transform: translateY(8px); } }
.flx__clients { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; color: var(--muted); }
.flx__codes { display: inline-flex; gap: 6px; }
.flx__code { font-family: var(--f-serif); font-style: italic; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: #ECE3D8; color: var(--navy); }
@media (max-width: 480px) { .flx__tab { padding: 14px 10px 16px; } .flx__small { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .flx__panel { animation: none; } }
.sc-more { margin-top: 36px; text-align: center; }
.flx__limit { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: #F6EFE7; border: 1px solid var(--line); }
.flx__limit p { font-size: 14.5px; color: var(--text); line-height: 1.5; } .flx__limit strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.flx__pulse { position: relative; flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #3BA55C; }
.flx__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3BA55C; animation: flxpulse 2s ease-out infinite; }
@keyframes flxpulse { to { transform: scale(2.6); opacity: 0; } }
.flx__tab .flx__big { white-space: nowrap; } .flx__tabs .flx__tab:nth-child(3) .flx__big { font-size: clamp(24px, 2.4vw, 34px); }
@media (prefers-reduced-motion: reduce) { .flx__pulse::after { animation: none; } }

/* Services folders: intro left-aligned */
.folders__intro { align-items: flex-start; text-align: left; }

/* About facts: deep warm gradient like the client-voices section; brown pulse */
.flx__tab { background: radial-gradient(120% 140% at 0% 0%, #6E4630 0%, #3A2518 45%, #241710 100%); border-color: rgba(255,255,255,.08); color: #F3E7DA; }
.flx__tab:hover { border-color: #C08A5B; }
.flx__tab[aria-selected="true"] { background: radial-gradient(120% 140% at 0% 0%, #C08A5B 0%, #8A5A3B 45%, #3A2518 100%); border-color: transparent; color: #fff; box-shadow: 0 18px 40px -22px rgba(42,28,19,.7); }
.flx__tab .flx__big { white-space: normal; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.05; }
.flx__tabs .flx__tab:nth-child(2) .flx__big { font-size: clamp(30px, 3.2vw, 44px); }
.flx__tabs .flx__tab:nth-child(3) .flx__big { font-size: clamp(24px, 2.3vw, 32px); }
.flx__small { opacity: .85; }
.flx__pulse, .flx__pulse::after { background: #8A5A3B; }
@media (max-width: 480px) { .flx__tab .flx__big, .flx__tabs .flx__tab:nth-child(3) .flx__big { font-size: 20px; } .flx__tabs .flx__tab:nth-child(2) .flx__big { font-size: 28px; } }

/* About facts: lighter warm gradient (Oct 26 b) */
.flx__tab { background: linear-gradient(145deg, #D9B896 0%, #B98A63 55%, #9A6B48 100%); border-color: rgba(255,255,255,.25); color: #fff; }
.flx__tab[aria-selected="true"] { background: linear-gradient(145deg, #C08A5B 0%, #8A5A3B 60%, #6E4630 100%); }
.flx__small { opacity: .92; }
/* less space between About me and the next section */
.fl-sec { padding-bottom: clamp(40px, 5vw, 72px); }
.fl-sec + .section { padding-top: clamp(56px, 6vw, 96px); }

/* Oct 26 e: review text in the normal body font; About facts like the featured package */
.tq blockquote p { font-family: var(--f-body, inherit); font-style: normal; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; }
.flx__tab, .flx__tab[aria-selected="true"] { background: var(--grad-hero); background-size: 140% 140%; border-color: transparent; color: #fff; }
.flx__tab { opacity: .82; }
.flx__tab:hover, .flx__tab[aria-selected="true"] { opacity: 1; }
.flx__tab[aria-selected="true"] { box-shadow: 0 18px 40px -20px rgba(42,28,19,.65), inset 0 0 0 2px rgba(226,196,165,.55); }

/* Written reviews: client photo + featured layout for a single review */
.tq figcaption { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; }
.tq figcaption .tq__who { grid-column: 2; display: grid; gap: 2px; min-width: 0; }
.tq figcaption .tq__who span { grid-column: auto; }
.tq figcaption em { grid-column: 3; grid-row: 1; }
.tq figcaption strong { grid-column: auto; }
.tq__img { grid-column: 1; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(226,196,165,.6); }
.tq-grid--one { grid-template-columns: minmax(0, 1fr) !important; max-width: 860px; margin-inline: auto; }
.tq-grid--one .tq { padding: clamp(28px, 4vw, 48px); }
.tq-grid--one .tq blockquote p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; }
.tq-grid--one .tq blockquote p::before { content: "“"; display: block; font-family: var(--f-serif); font-size: 72px; line-height: .6; color: #E2C4A5; margin-bottom: 14px; }
/* Two written reviews side by side */
@media (min-width: 800px) { .tq-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1100px; margin-inline: auto; } }
.tq-grid--two .tq { padding: clamp(26px, 3vw, 40px); }
.tq-grid--two .tq blockquote p::before { content: "“"; display: block; font-family: var(--f-serif); font-size: 64px; line-height: .6; color: #E2C4A5; margin-bottom: 12px; }
.tq__ini { display: grid; place-items: center; background: linear-gradient(145deg, #C08A5B, #8A5A3B); color: #fff; font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: .02em; }

/* Websites page: benefits as a 3D card stack (same motion as "Selected work") */
.bdeck-sec { background: var(--white); }
.deck.deck--info { --w: min(680px, 84vw); --h: calc(var(--w) * .56); }
@media (max-width: 760px) { .deck.deck--info { --w: 86vw; --h: calc(var(--w) * .92); } }
.bdeck .deck__face { background: #F6F0E8; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(42,28,19,.45); }
.bdeck--brown .deck__face { background: var(--grad-hero); background-size: 140% 140%; border-color: transparent; color: #fff; }
.bdeck__in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 4vw, 48px); text-align: left; }
.bdeck__art { position: absolute; top: clamp(22px, 3.4vw, 40px); left: clamp(24px, 4vw, 48px); width: clamp(56px, 7vw, 84px); height: auto; color: var(--royal); }
.bdeck--brown .bdeck__art { color: #F3E2CF; }
.bdeck__art * { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1) .15s; }
.deck__card:not(.is-back) .bdeck__art * { stroke-dashoffset: 0; }
.bdeck__n { position: absolute; top: clamp(14px, 2.4vw, 28px); right: clamp(20px, 3.4vw, 40px); font-family: var(--f-serif); font-style: italic; font-size: clamp(64px, 9vw, 120px); line-height: 1; color: var(--royal); opacity: .14; }
.bdeck--brown .bdeck__n { color: #fff; opacity: .18; }
.bdeck__t { font-family: var(--f-head); font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; color: var(--navy); }
.bdeck--brown .bdeck__t { color: #fff; }
.bdeck__p { margin-top: 10px; max-width: 46ch; font-size: clamp(14.5px, 1.2vw, 17px); line-height: 1.55; color: var(--muted); }
.bdeck--brown .bdeck__p { color: var(--on-dark-muted); }
@media (min-width: 1000px) { .deck.deck--info { --w: min(760px, 60vw); --h: calc(var(--w) * .5); perspective: 1400px; } }
.deck-sec.is-static .bdeck { aspect-ratio: auto; min-height: 260px; }
.deck-sec.is-static .bdeck__art * { stroke-dashoffset: 0; }

/* Envelope: first it flies in (closed), then it opens */
.env-sec .env { opacity: 0; transform: translate(-38vw, -60px) rotate(-14deg) scale(.9); }
.env-sec.is-in .env { opacity: 1; transform: none; transition: transform 1.25s cubic-bezier(.2, .85, .25, 1), opacity .5s ease; }
.env-sec.is-in.is-open .env { transition: transform .4s var(--ease); }
html:not(.js) .env-sec .env { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .env-sec .env, .env-sec.is-in .env { opacity: 1; transform: none; transition: none; } }
/* Benefits stack on phones: no caption above the cards (the card shows the title), compact cards */
@media (max-width: 760px) {
  .bdeck-sec .deck__caption { display: none; }
  .bdeck-sec .deck-sticky { grid-template-rows: 1fr auto; padding-top: calc(var(--header-h) + 40px); }
  .deck.deck--info { --w: 88vw; --h: calc(var(--w) * 1.05); }
  .deck--info .deck__card { bottom: 18%; }
  .bdeck__in { padding: 26px 24px; }
  .bdeck__art { top: 24px; left: 24px; width: 58px; }
  .bdeck__n { top: 16px; right: 20px; font-size: 64px; }
  .bdeck__t { font-size: 23px; }
  .bdeck__p { font-size: 15px; }
}
/* three written reviews: quote mark like the featured layout */
.tq-grid .tq blockquote p::before { content: "“"; display: block; font-family: var(--f-serif); font-size: 56px; line-height: .6; color: #E2C4A5; margin-bottom: 12px; }
