/* FAM Studio — one soft, light look on purpose: porcelain ground, blush and rose surfaces,
   mauve as the single accent, plum for ink. Arches echo the "A" of the monogram. */
:root {
  --porcelain: #FBF4F0;
  --blush: #F3DCD6;
  --rose: #D9A5A0;
  --mauve: #9E5F6E;
  --mauve-deep: #7A4555;
  --plum: #3A2430;
  --plum-soft: #6B5560;
  --white: #FFFFFF;
  --line: #E9CFC9;
  --field: #B48A93;
  --ok: #3F6B4F;
  --ok-bg: #E4F0E7;
  --err: #A33A3A;
  --err-bg: #F8E3E1;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 28px;
  --arch: 999px 999px 28px 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--plum);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mauve-deep); }
a:hover { color: var(--plum); }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--mauve); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--blush { background: var(--blush); }
.section--white { background: var(--white); }
.section--plum { background: var(--plum); color: var(--porcelain); }
.section--plum h2 em { color: var(--blush); }

.eyebrow { font-size: 14px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mauve-deep); font-weight: 500; }
.section--plum .eyebrow { color: var(--rose); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
.lead { font-weight: 300; font-size: 19px; color: var(--plum-soft); max-width: 60ch; }
.section--plum .lead { color: #E8CFCB; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font: inherit; font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--mauve); color: var(--white); }
.btn--primary:hover { background: var(--mauve-deep); color: var(--white); }
.btn--dark { background: var(--plum); color: var(--porcelain); }
.btn--dark:hover { background: #241620; color: var(--porcelain); }
.btn--outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn--outline:hover { background: var(--plum); color: var(--porcelain); }
.btn--light { background: var(--porcelain); color: var(--plum); }
.btn--light:hover { background: var(--white); color: var(--plum); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(251, 244, 240, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--plum); text-decoration: none; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; padding-block: 10px; }
.nav a:not(.btn):hover { color: var(--mauve); }
.nav .btn { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--plum); border-radius: 999px; min-height: 44px; padding: 8px 18px; font: inherit; color: var(--plum); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--porcelain); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 72px); padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--plum-soft); list-style: none; padding: 0; margin: 0; }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); margin-right: 10px; vertical-align: middle; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.arch-card { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; border-radius: var(--arch); background: var(--blush); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 32px; }
.arch-card img { width: 70%; }
.arch-card .rule { width: 64px; height: 1px; background: var(--mauve); }
.arch-card p { font-family: var(--serif); font-style: italic; font-size: 22px; }

/* Meaning band */
.meaning { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 980px; margin: 0 auto; }
.meaning p { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; }
.meaning em { color: var(--blush); }

/* Services */
.grid-auto { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.service { background: var(--white); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.service svg { width: 30px; height: 30px; stroke: var(--mauve); }
.service h3 { font-size: 24px; font-weight: 500; }
.service p { color: var(--plum-soft); font-weight: 300; }

/* Work */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--plum); background: transparent; color: var(--plum); font: inherit; font-size: 15px; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--plum); color: var(--porcelain); }

/* Carousel */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.carousel .track { display: flex; margin: 0; padding: 0; list-style: none; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel .slide a { display: block; width: 100%; height: 100%; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.project-carousel .slide img { object-fit: contain; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(251, 244, 240, 0.94); color: var(--plum); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; box-shadow: 0 2px 10px rgba(58, 36, 48, 0.18); }
.car-btn:hover { background: var(--white); }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 0 1px rgba(58, 36, 48, 0.3); }
.dot.is-on { background: var(--plum); }
.car-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 15px; color: var(--plum-soft); }
.car-caption b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { font-size: 12px; letter-spacing: 0.06em; border: 1px solid var(--mauve); color: var(--mauve-deep); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.empty-state { padding: 40px; border: 1.5px dashed var(--mauve); border-radius: var(--radius); text-align: center; color: var(--plum-soft); }

/* Process */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--mauve); }
.steps h3 { font-size: 22px; font-weight: 500; }
.steps p { color: var(--plum-soft); font-weight: 300; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
.about-text p { font-weight: 300; }
.founders { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 20px; }
.founder { flex: 1 1 160px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.founder .portrait { width: 100%; max-width: 200px; aspect-ratio: 3 / 4; border-radius: 999px 999px 20px 20px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 40px; }
.founder h3 { font-size: 22px; }
.founder p { color: var(--plum-soft); font-size: 15px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { text-align: center; font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 16px; }
.faq details { background: var(--porcelain); border-radius: 18px; padding: 18px 24px; }
.faq summary { font-weight: 500; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.faq details p { margin-top: 10px; font-weight: 300; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.contact-info h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 300; }
.contact-list b { font-weight: 500; }
.copy-btn { margin-left: 8px; background: none; border: 1px solid var(--mauve); color: var(--mauve-deep); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 13px; cursor: pointer; min-height: 28px; }
.form-card { flex: 999 1 480px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.form-card > .field { flex: none; }
.field label { font-weight: 500; }
.field .opt { font-weight: 300; color: var(--plum-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; padding: 13px 14px; min-height: 48px;
  border: 1.5px solid var(--field); border-radius: 14px; background: var(--porcelain); color: var(--plum); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--mauve); outline-offset: 1px; border-color: var(--mauve); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .error { color: var(--err); font-size: 14px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status { border-radius: 16px; padding: 16px 18px; font-weight: 400; }
.status--ok { background: var(--ok-bg); color: var(--ok); }
.status--err { background: var(--err-bg); color: var(--err); }
.status--info { background: var(--blush); color: var(--plum); }
.status .btn { margin-top: 12px; }
.form-note { font-size: 14px; color: var(--plum-soft); }
.form-note:empty { display: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--mauve-deep); text-decoration: underline; cursor: pointer; min-height: 32px; }

/* Footer */
.site-footer { background: var(--plum); color: var(--blush); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 48px; }
.footer-row img { height: 64px; width: auto; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-row a { color: var(--blush); text-decoration: none; font-size: 15px; }
.footer-row a:hover { color: var(--white); }
.footer-row small { font-size: 14px; }

/* Project page */
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--plum); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; min-height: 44px; }
.project-hero { display: flex; flex-direction: column; gap: 20px; padding-block: 32px 40px; }
.project-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; }
.project-hero .lead { font-size: 21px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; padding-block: 24px; border-block: 1px solid var(--line); margin: 8px 0 0; }
.facts dt { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mauve-deep); }
.facts dd { margin: 4px 0 0; }
.project-cover { border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.project-cover img { width: 100%; }
.story { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); padding-block: clamp(48px, 7vw, 88px); }
.story h2 { font-size: 32px; margin-bottom: 12px; }
.story p { font-weight: 300; }
.deliverables { margin: 0; padding-left: 20px; font-weight: 300; display: flex; flex-direction: column; gap: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.swatch { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.swatch span { width: 64px; height: 84px; border-radius: 999px 999px 10px 10px; border: 1px solid var(--line); }
.gallery { display: flex; flex-direction: column; gap: 32px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img { border-radius: var(--radius); width: 100%; }
.gallery figcaption { font-size: 15px; color: var(--plum-soft); }
.concept-note { font-size: 15px; color: var(--plum-soft); background: var(--blush); border-radius: 16px; padding: 14px 18px; }
.next-projects { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 48px; border-top: 1px solid var(--line); margin-top: 48px; }
.next-projects a { text-decoration: none; color: var(--plum); display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
.next-projects small { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mauve-deep); }
.next-projects span { font-family: var(--serif); font-size: 26px; }
.cta-band { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 52px); }

/* Admin space */
.admin-main { padding-block: 32px 80px; display: flex; flex-direction: column; gap: 28px; }
.admin-card { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.admin-card h1, .admin-card h2 { font-size: clamp(28px, 3.6vw, 40px); }
.admin-login { max-width: 460px; margin: 6vh auto 0; width: 100%; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--plum); background: transparent; color: var(--plum); font: inherit; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--plum); color: var(--porcelain); }
.count { display: inline-block; min-width: 22px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--mauve); color: var(--white); font-size: 13px; text-align: center; }
.req { border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--porcelain); }
.req-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.req-head h3 { font-size: 24px; font-weight: 500; }
.req-meta { font-size: 14px; color: var(--plum-soft); font-variant-numeric: tabular-nums; }
.req-msg { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--white); border-radius: 14px; padding: 14px; font-weight: 300; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--blush); }
.pill { font-size: 13px; padding: 3px 12px; border-radius: 999px; font-weight: 500; }
.pill--new { background: var(--mauve); color: var(--white); }
.pill--contacted { background: #E3E8F4; color: #2F4170; }
.pill--in-progress { background: #F6ECD4; color: #6B4D12; }
.pill--won { background: var(--ok-bg); color: var(--ok); }
.pill--lost { background: #ECE7E9; color: var(--plum-soft); }
.req-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.req-actions select, .admin-form input, .admin-form select, .admin-form textarea, .req textarea {
  font: inherit; font-weight: 300; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--white); color: var(--plum);
}
.req textarea { width: 100%; min-height: 70px; resize: vertical; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn--danger { background: var(--err); color: var(--white); }
.btn--danger:hover { background: #842d2d; color: var(--white); }
.proj-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding-block: 14px; }
.proj-row img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--blush); }
.proj-row .info { flex: 1 1 200px; min-width: 0; }
.proj-row h3 { font-size: 20px; font-weight: 500; }
.proj-row p { font-size: 14px; color: var(--plum-soft); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; min-height: 44px; }
.switch input { width: 20px; height: 20px; accent-color: var(--mauve); }
.admin-form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.admin-form .full { grid-column: 1 / -1; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.admin-form textarea { min-height: 96px; resize: vertical; }
.admin-form .hint { font-weight: 300; font-size: 14px; color: var(--plum-soft); }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumb { width: 180px; display: flex; flex-direction: column; gap: 6px; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--blush); }
.thumb input { font-size: 14px; min-height: 40px; }
.confirm { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }

/* ===================== 3D journey (home) ===================== */
body.home .site-header { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); transition: background .4s ease, border-color .4s ease; }
body.home .site-header.over-journey { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.brand .logo-light { display: none; }
body.home .site-header.on-dark .brand .logo-dark { display: none; }
body.home .site-header.on-dark .brand .logo-light { display: block; }
body.home .site-header.on-dark .nav a:not(.btn) { color: var(--porcelain); }
body.home .site-header.on-dark .nav .btn--dark { background: var(--porcelain); color: var(--plum); }
body.home .site-header.on-dark .menu-toggle { color: var(--porcelain); border-color: var(--porcelain); }
@media (max-width: 860px) {
  body.home .site-header.on-dark .nav.is-open a:not(.btn) { color: var(--plum); }
}
body.home section[id] { scroll-margin-top: 84px; }

.journey { position: relative; height: 640vh; background: var(--porcelain); }
.journey-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.journey-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; background: linear-gradient(var(--porcelain), var(--blush)); }
.no-webgl .journey-fallback { display: flex; }
.no-webgl #scene3d { display: none; }
.fallback-arch { width: min(60vw, 360px); aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; background: var(--blush); border: 1.5px solid var(--mauve); display: flex; align-items: center; justify-content: center; }
.fallback-arch img { width: 70%; }
.no-webgl.is-dark .journey-fallback { background: linear-gradient(#3a2430, #241620); }

.chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  top: 50%; margin-top: -1.2em; max-width: 640px; padding-right: var(--gutter);
  color: var(--plum); opacity: 0; visibility: hidden; will-change: opacity, transform;
  transition: color .6s ease;
}
.chapter h2 { font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.025em; }
.chapter h2 em { color: var(--mauve); }
.chapter .eyebrow { margin-bottom: 18px; }
.journey.is-dark .chapter { color: var(--porcelain); }
.journey.is-dark .chapter h2 em, .journey.is-dark .chapter h1 em { color: var(--rose); }
.journey.is-dark .chapter .eyebrow { color: var(--rose); }
.chapter--final { top: auto; bottom: clamp(32px, 7vh, 80px); margin-top: 0; max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.chapter--final.is-live { pointer-events: auto; }
.chapter--final h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.journey.is-dark .chapter--final .lead { color: #E8CFCB; }
.btn--ghost-light { border-color: var(--porcelain); color: var(--porcelain); background: transparent; }
.btn--ghost-light:hover { background: var(--porcelain); color: var(--plum); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--plum); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--plum), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.journey-progress { position: absolute; right: clamp(14px, 3vw, 36px); top: 50%; height: 140px; margin-top: -70px; width: 2px; background: rgba(158, 95, 110, 0.25); border-radius: 2px; overflow: hidden; }
.journey-progress span { position: absolute; inset: 0; background: var(--mauve); transform-origin: top; transform: scaleY(0); }
.journey.is-dark .journey-progress { background: rgba(243, 220, 214, 0.2); }
.journey.is-dark .journey-progress span { background: var(--blush); }

@media (max-width: 700px) {
  .chapter { top: auto; bottom: 18vh; margin-top: 0; }
  .chapter h2 { font-size: clamp(40px, 12vw, 64px); }
  .chapter--final { bottom: 28px; gap: 14px; }
  .chapter--final .lead { font-size: 16px; }
  .journey-progress { display: none; }
}

/* reveal on scroll */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* 3D tilt with a soft light */
.service { position: relative; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.service.is-tilting { transition: transform .08s linear, box-shadow .35s ease; box-shadow: 0 30px 60px -30px rgba(58, 36, 48, 0.45); }
.service::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
}
.is-tilting::after { opacity: 1; }
.journey-sticky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none; opacity: 0; transition: opacity .8s ease; background: linear-gradient(to top, #3A2430, rgba(44, 27, 36, 0.82) 16%, rgba(28, 16, 22, 0)); }
.journey.is-dark .journey-sticky::after { opacity: 1; }
.chapters { z-index: 1; }
.journey.is-dark .chapter { text-shadow: 0 2px 28px rgba(28, 16, 22, 0.45); }

@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }

/* ===================== Work: one project at a time ===================== */
.filters { gap: 4px 26px; margin-bottom: 30px; }
.filter { position: relative; min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--plum-soft); font-size: 15px; letter-spacing: 0.06em; transition: color .3s ease; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: var(--plum); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.filter:hover { color: var(--plum); }
.filter[aria-pressed="true"] { background: none; color: var(--plum); }
.filter[aria-pressed="true"]::after { transform: scaleX(1); }

/* The card stays still; only what is inside it changes. */
.show-stage {
  display: grid; position: relative; overflow: hidden; touch-action: pan-y;
  background: var(--porcelain); border-radius: var(--radius);
  padding: clamp(12px, 1.4vw, 18px); padding-right: clamp(12px, 4vw, 60px);
  box-shadow: 0 40px 80px -60px rgba(58, 36, 48, 0.45);
}
.show-stage > .empty-state { margin: 8px; }
.show-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 60px);
  opacity: 0; visibility: hidden; z-index: 0;
  transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .9s;
}
.show-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.show-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.show-media { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--blush); }
.show-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07) translateX(2.5%); transition: transform 1.8s cubic-bezier(.16, 1, .3, 1); }
[data-dir="prev"] > .show-slide:not(.is-active) .show-media img { transform: scale(1.07) translateX(-2.5%); }
.show-slide.is-active .show-media img, .show-slide.is-leaving .show-media img { transform: none; }
.show-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.show-info > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.show-slide.is-active .show-info > * { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform 1s cubic-bezier(.16, 1, .3, 1) .3s; }
.show-slide.is-active .show-info > :nth-child(2) { transition-delay: .4s; }
.show-slide.is-active .show-info > :nth-child(3) { transition-delay: .5s; }
.show-slide.is-active .show-info > :nth-child(4) { transition-delay: .6s; }
.show-slide.is-leaving .show-info > * { opacity: 0; transform: translateY(-10px); transition: opacity .35s ease, transform .5s ease; }
.show-kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve-deep); }
.show-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.show-title h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.show-summary { max-width: 42ch; font-weight: 300; color: var(--plum-soft); }
.show-link { margin-top: 6px; padding-bottom: 3px; border-bottom: 1.5px solid var(--rose); color: var(--plum); font-weight: 500; text-decoration: none; transition: border-color .3s ease; }
.show-link:hover { color: var(--plum); border-color: var(--plum); }
.show-link span { display: inline-block; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.show-link:hover span { transform: translateX(5px); }

.show-bar { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); margin-top: 26px; }
.show-count { font-family: var(--serif); font-size: 18px; color: var(--plum-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.show-count b { font-weight: 400; color: var(--plum); }
.show-progress { flex: 1; height: 1.5px; border-radius: 2px; overflow: hidden; background: rgba(58, 36, 48, 0.14); }
.show-progress span { display: block; height: 100%; background: var(--plum); transform-origin: left; transform: scaleX(0); }
.show-progress span.is-running { animation: show-clock 7s linear forwards; }
.showcase.is-paused .show-progress span { animation-play-state: paused; }
@keyframes show-clock { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.show-nav { display: flex; align-items: center; gap: 10px; }
.show-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--plum); background: transparent; color: var(--plum); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .3s ease, color .3s ease, transform .3s ease; }
.show-btn:hover { background: var(--plum); color: var(--porcelain); }
.show-btn:active { transform: scale(0.94); }
.show-btn--quiet { width: 44px; height: 44px; border-color: transparent; color: var(--plum-soft); }
.show-btn--quiet:hover { background: rgba(58, 36, 48, 0.08); color: var(--plum); }
.show-btn .i-play, .show-btn.is-off .i-pause { display: none; }
.show-btn.is-off .i-play { display: block; }
.is-single .show-bar { display: none; }

@media (max-width: 820px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; white-space: nowrap; }
  .show-stage { padding: 10px 10px 22px; }
  .show-slide { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .show-info { padding-inline: 10px; gap: 10px; }
  .show-title h3 { font-size: 28px; }
  .show-summary { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .show-btn { width: 46px; height: 46px; }
  .show-btn--quiet { width: 40px; height: 40px; }
}

/* ===================== Thread: one line that draws itself down the whole page ===================== */
body.home main { position: relative; }
body.home main > section:not(.journey) > .wrap, body.home .showcase { position: relative; z-index: 2; }
.thread { position: absolute; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: url(#thread-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.thread-ghost { opacity: 0.18; }
.thread-line { opacity: 0.85; }
.thread-tip { fill: url(#thread-ink); }
.thread-halo { fill: url(#thread-ink); opacity: 0.22; transform-box: fill-box; transform-origin: center; animation: thread-glow 2.6s ease-in-out infinite; }
@keyframes thread-glow { 50% { transform: scale(1.7); opacity: 0.06; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.contact-list a[href^="tel:"] { white-space: nowrap; }
/* Password fields: a button to show what is typed, and live help for new passwords */
.pass-wrap { position: relative; display: block; width: 100%; }
.pass-wrap input { width: 100%; padding-right: 52px; }
.pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--plum-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pass-eye:hover { color: var(--plum); background: rgba(58, 36, 48, 0.06); }
.pass-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pass-hint { font-size: 14px; color: var(--plum-soft); }
.pass-hint.is-ok { color: var(--ok); }
