/* ═══════════════════════════════════════════════════════════
   THE INSIDESTORY — Redesign · Warm editorial with depth
   ═══════════════════════════════════════════════════════════ */

:root {
    --paper: #F4EEE6;
    --paper-2: #ECE3D7;
    --sand: #D9C7B0;
    --ink: #2A231F;
    --ink-soft: #463B34;
    --muted: #6E6158;
    --terra: #A85F43;
    --sage: #87957F;
    --line: rgba(42, 35, 31, 0.2);
    --line-strong: rgba(42, 35, 31, 0.42);

    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

    --gutter: clamp(20px, 4.5vw, 72px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 30px 60px -30px rgba(60, 40, 25, 0.35), 0 12px 24px -16px rgba(60, 40, 25, 0.25);
    --shadow-deep: 0 50px 90px -40px rgba(60, 40, 25, 0.55), 0 20px 40px -20px rgba(60, 40, 25, 0.3);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Paper grain */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.07;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.22  0 0 0 0 0.15  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

em {
    font-style: italic;
}

::selection {
    background: var(--terra);
    color: var(--paper);
}

/* ── Shared type ─────────────────────────────────────────── */
.eyebrow {
    font-family: var(--sans);
    font-size: 0.806rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section-title em {
    color: var(--terra);
}

.section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 18px 40px;
    padding: 0 var(--gutter);
    margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head .eyebrow {
    grid-column: 1 / -1;
}

.section-count {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.344rem;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-strong);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 0.829rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.btn--solid {
    background: var(--ink);
    color: var(--paper);
}

.btn--solid:hover {
    background: var(--terra);
    transform: translateY(-2px);
}

.btn--line {
    border: 1px solid var(--line-strong);
}

.btn--line:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   SPLASH
   ═══════════════════════════════════════════════════════════ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--paper);
    display: grid;
    place-items: center;
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.1s var(--ease);
}

.splash.is-done {
    clip-path: inset(0 0 100% 0);
}

.splash.is-gone {
    display: none;
}

.splash__inner {
    text-align: center;
}

.splash__greet {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    line-height: 1.1;
    min-height: 1.2em;
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.splash__greet.is-out {
    opacity: 0;
    transform: translateY(-14px);
}

.splash__greet.is-in {
    opacity: 0;
    transform: translateY(14px);
}

.splash__rule {
    display: block;
    width: 120px;
    height: 1px;
    margin: 22px auto 16px;
    background: var(--line);
    overflow: hidden;
}

.splash__rule i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--terra);
    transform-origin: left;
    animation: splashRule 2.6s var(--ease) forwards;
}

@keyframes splashRule {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.splash__brand {
    font-size: 0.784rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--gutter);
    transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.6s var(--ease);
}

.nav.is-scrolled {
    padding-top: 14px;
    padding-bottom: 14px;
    background: rgba(244, 238, 230, 0.82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 var(--line);
}

.nav.is-hidden {
    transform: translateY(-100%);
}

.nav__logo {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.nav__logo-the {
    font-style: italic;
    color: var(--terra);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav__link {
    position: relative;
    font-size: 0.829rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 6px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
}

.nav__link:hover::after,
.nav__drop:hover>.nav__link::after,
.nav__drop:focus-within>.nav__link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__drop {
    position: relative;
}

.nav__menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -24px;
    min-width: 230px;
    padding: 14px 0;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: perspective(600px) rotateX(-12deg) translateY(-6px);
    transform-origin: top center;
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}

.nav__menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav__menu a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 24px;
    font-family: var(--serif);
    font-size: 1.25rem;
    transition: color 0.3s, padding 0.4s var(--ease);
}

.nav__menu a em {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.nav__menu a:hover {
    color: var(--terra);
    padding-left: 30px;
}

.nav__cta {
    font-size: 0.806rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 11px 22px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.nav__cta:hover {
    background: var(--ink);
    color: var(--paper);
}

.nav__burger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 2;
}

.nav__burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.nav__burger span:nth-child(1) {
    top: 18px;
}

.nav__burger span:nth-child(2) {
    top: 26px;
}

.nav__burger.is-open span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.nav__burger.is-open span:nth-child(2) {
    top: 22px;
    transform: rotate(-45deg);
}

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 450;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px var(--gutter) 40px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--ease);
}

.drawer.is-open {
    clip-path: inset(0 0 0 0);
}

.drawer__links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    font-weight: 400;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}

.drawer__links a em {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.784rem;
    letter-spacing: 0.18em;
    color: var(--terra);
}

.drawer.is-open .drawer__links a {
    opacity: 1;
    transform: none;
}

.drawer.is-open .drawer__links a:nth-child(2) { transition-delay: 0.05s; }
.drawer.is-open .drawer__links a:nth-child(3) { transition-delay: 0.1s; }
.drawer.is-open .drawer__links a:nth-child(4) { transition-delay: 0.15s; }
.drawer.is-open .drawer__links a:nth-child(5) { transition-delay: 0.2s; }
.drawer.is-open .drawer__links a:nth-child(6) { transition-delay: 0.25s; }

.drawer__foot {
    margin-top: auto;
    font-size: 0.874rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 40px;
    padding: 120px var(--gutter) 90px;
    overflow: hidden;
}

.hero__grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0 var(--gutter);
    pointer-events: none;
}

.hero__grid i {
    border-left: 1px solid rgba(42, 35, 31, 0.06);
}

.hero__grid i:last-child {
    border-right: 1px solid rgba(42, 35, 31, 0.06);
}

.hero__copy {
    position: relative;
    z-index: 3;
}

.hero__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.2rem, 7vw, 7.4rem);
    line-height: 0.94;
    letter-spacing: -0.02em;
    margin: 26px 0 30px;
}

.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.hero__title .line>span {
    display: block;
    transform: translateY(110%);
    transition: transform 1.3s var(--ease);
}

.hero__title em {
    color: var(--terra);
}

.hero__lede {
    max-width: 30em;
    font-size: 1.142rem;
    color: var(--ink-soft);
    margin-bottom: 38px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.is-ready .hero__title .line>span {
    transform: none;
}

.is-ready .hero__title .line:nth-child(2)>span {
    transition-delay: 0.12s;
}

.is-ready .reveal-up {
    opacity: 1;
    transform: none;
}

.is-ready .hero__lede {
    transition-delay: 0.35s;
}

.is-ready .hero__actions {
    transition-delay: 0.5s;
}

/* Stage */
.hero__stage {
    position: relative;
    height: min(78vh, 760px);
    perspective: 1400px;
    transform-style: preserve-3d;
}

.layer {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
    pointer-events: none;
}

.layer>* {
    pointer-events: auto;
}

.frame {
    position: absolute;
    overflow: hidden;
    background: var(--sand);
    box-shadow: var(--shadow-deep);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1.8s var(--ease);
}

.frame--arch {
    border-radius: 999px 999px 4px 4px;
}

.hero__main {
    right: 16%;
    top: 0;
    width: 56%;
    height: 92%;
    clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px);
    transition: clip-path 1.6s var(--ease) 0.15s;
}

.hero__outline {
    position: absolute;
    right: 12%;
    top: 4%;
    width: 56%;
    height: 92%;
    border: 1px solid var(--line-strong);
    border-radius: 999px 999px 4px 4px;
    opacity: 0;
    transition: opacity 1.4s ease 0.9s;
}

.hero__inset {
    left: 4%;
    bottom: 4%;
    width: 36%;
    height: 50%;
    border: 8px solid var(--paper);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s var(--ease) 0.55s;
}

.is-ready .hero__main {
    clip-path: inset(0 0 0 0 round 999px 999px 4px 4px);
}

.is-ready .hero__inset {
    clip-path: inset(0 0 0 0);
}

.is-ready .hero__outline {
    opacity: 1;
}

.is-ready .frame img {
    transform: scale(1.02);
}

/* Floating material chips */
.chip {
    position: absolute;
    width: clamp(64px, 7vw, 104px);
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 4px solid var(--paper);
    opacity: 0;
    transition: opacity 1s ease, transform 1.4s var(--ease);
}

.chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chip--a {
    left: 22%;
    top: 8%;
    transform: translateY(30px) rotate(-8deg);
}

.chip--b {
    left: 36%;
    bottom: 2%;
    transform: translateY(30px) rotate(6deg);
    width: clamp(54px, 5.6vw, 84px);
}

.chip--c {
    right: 6%;
    bottom: 10%;
    transform: translateY(30px) rotate(-4deg);
}

.is-ready .chip {
    opacity: 1;
}

.is-ready .chip--a { transform: rotate(-8deg); transition-delay: 1s; }
.is-ready .chip--b { transform: rotate(6deg); transition-delay: 1.15s; }
.is-ready .chip--c { transform: rotate(-4deg); transition-delay: 1.3s; }

/* Annotations */
.anno {
    position: absolute;
    left: var(--x);
    top: var(--y);
    display: flex;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 2;
}

.anno__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--ink);
    flex: none;
    box-shadow: 0 0 0 4px rgba(244, 238, 230, 0.4);
}

.anno__line {
    display: block;
    height: 1px;
    width: var(--len);
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease);
}

.anno__txt {
    padding: 0 10px;
    background: transparent;
}

.anno__txt b {
    font-weight: 500;
    color: var(--terra);
    margin-right: 8px;
}

.anno--l {
    flex-direction: row-reverse;
    transform: translateX(-100%);
}

.anno--l .anno__line {
    transform-origin: right;
}

.anno--r {
    transform: translateX(-4px);
}

.is-ready .anno {
    opacity: 1;
    transition-delay: 1.4s;
}

.is-ready .anno__line {
    transform: scaleX(1);
    transition-delay: 1.5s;
}

.hero__meta {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__scroll {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__scroll i {
    width: 40px;
    height: 1px;
    background: var(--line-strong);
    position: relative;
    overflow: hidden;
}

.hero__scroll i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--terra);
    animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════════ */
.philosophy {
    padding: clamp(110px, 16vw, 220px) var(--gutter);
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.philosophy__text {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.1vw, 3.9rem);
    line-height: 1.16;
    letter-spacing: -0.005em;
    margin: 34px 0 40px;
}

.philosophy__text .w {
    opacity: 0.16;
    transition: opacity 0.4s ease;
}

.philosophy__text .w.on {
    opacity: 1;
}

.philosophy__sign {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.288rem;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   WORK — 3D tilt cards
   ═══════════════════════════════════════════════════════════ */
.work {
    padding-bottom: clamp(100px, 14vw, 200px);
}

.work__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
    padding: 0 var(--gutter);
    perspective: 1600px;
}

.card {
    display: block;
    transform-style: preserve-3d;
}

.card:nth-child(2) {
    margin-top: clamp(40px, 8vw, 120px);
}

.card__frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand);
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.card--arch .card__frame {
    border-radius: 999px 999px 4px 4px;
}

.card:hover .card__frame {
    box-shadow: var(--shadow-deep);
}

.card__frame.is-tilting {
    transition: transform 0.12s linear, box-shadow 0.7s var(--ease);
}

.card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.14) translate(calc(var(--ry, 0deg) * -0.6px), calc(var(--rx, 0deg) * 0.6px));
    transition: transform 1.2s var(--ease);
}

.card:hover .card__frame img {
    transform: scale(1.2) translate(calc(var(--ry, 0deg) * -0.8px), calc(var(--rx, 0deg) * 0.8px));
}

.card__glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 245, 230, 0.35), transparent 55%);
    opacity: 0;
    transition: opacity 0.6s ease;
    mix-blend-mode: soft-light;
}

.card:hover .card__glare {
    opacity: 1;
}

.card__num {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--paper);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.card--arch .card__num {
    top: auto;
    bottom: 18px;
}

.card__cap {
    padding: 26px 4px 0;
}

.card__cap h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 2.4vw, 2.3rem);
    line-height: 1.1;
    margin-bottom: 8px;
}

.card__cap p {
    color: var(--ink-soft);
    font-size: 1.064rem;
    max-width: 26em;
    margin-bottom: 16px;
}

.card__more {
    display: inline-flex;
    gap: 10px;
    font-size: 0.784rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.4s, gap 0.5s var(--ease), color 0.4s;
}

.card:hover .card__more {
    gap: 18px;
    color: var(--terra);
    border-color: var(--terra);
}

/* ═══════════════════════════════════════════════════════════
   RING GALLERY
   ═══════════════════════════════════════════════════════════ */
.ring-wrap {
    position: relative;
    height: 320vh;
    background: var(--paper-2);
}

.ring-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ring-head {
    position: absolute;
    top: clamp(90px, 12vh, 130px);
    left: var(--gutter);
    z-index: 3;
}

.ring-head .eyebrow {
    margin-bottom: 18px;
}

.ring-stage {
    position: relative;
    height: 100%;
    perspective: 1800px;
    perspective-origin: 50% 40%;
    display: grid;
    place-items: center;
}

.ring {
    --w: clamp(170px, 19vw, 300px);
    position: relative;
    width: var(--w);
    height: calc(var(--w) * 1.36);
    transform-style: preserve-3d;
    margin-top: 12vh;
}

.ring figure {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 3px;
    background: var(--sand);
    box-shadow: var(--shadow-soft);
    backface-visibility: hidden;
}

.ring figure:nth-child(3n+2) {
    border-radius: 999px 999px 3px 3px;
}

.ring figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ring-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════
   JOURNEY — 3D room
   ═══════════════════════════════════════════════════════════ */
.journey {
    position: relative;
    height: 420vh;
}

.journey__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    overflow: hidden;
}

.journey__text {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px clamp(28px, 4vw, 64px) 60px var(--gutter);
    z-index: 2;
}

.journey__text header {
    margin-bottom: 44px;
}

.journey__text header .eyebrow {
    margin-bottom: 18px;
}

.journey__track {
    position: absolute;
    left: calc(var(--gutter) - 22px);
    top: 50%;
    height: 34%;
    width: 1px;
    background: var(--line);
    transform: translateY(-6%);
    display: none;
}

.journey__track i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--terra);
    transform-origin: top;
    transform: scaleY(0);
}

.steps {
    list-style: none;
    border-top: 1px solid var(--line);
}

.step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 6px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0.38;
    transition: opacity 0.6s var(--ease);
}

.step.is-active {
    opacity: 1;
}

.step__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--terra);
    line-height: 1.2;
}

.step h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.2;
}

.step p {
    font-size: 1.03rem;
    color: var(--ink-soft);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s var(--ease), opacity 0.6s ease, margin 0.6s var(--ease);
}

.step.is-active p {
    max-height: 8em;
    opacity: 1;
    margin-top: 8px;
}

.journey__model {
    position: relative;
    margin: 90px var(--gutter) 40px 0;
    border-radius: 999px 999px 6px 6px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 20%, #FBF7F1 0%, var(--paper-2) 70%);
    box-shadow: inset 0 0 0 1px var(--line);
}

#modelCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.model-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    transition: opacity 0.8s ease;
}

.model-loader.is-done {
    opacity: 0;
    pointer-events: none;
}

.model-loader__bar {
    width: 140px;
    height: 1px;
    background: var(--line);
    overflow: hidden;
}

.model-loader__bar i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--terra);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.model-tag {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.12rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES — 3D swatches
   ═══════════════════════════════════════════════════════════ */
.services {
    padding: clamp(110px, 14vw, 200px) 0;
    background: var(--paper);
}

.swatches {
    display: flex;
    gap: 12px;
    height: clamp(440px, 62vh, 620px);
    padding: 0 var(--gutter);
    perspective: 1800px;
}

.swatch {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: var(--img) center / cover no-repeat, var(--sand);
    box-shadow: var(--shadow-soft);
    text-align: left;
    transform: rotateY(-14deg) translateZ(-40px);
    transform-origin: center;
    transition: flex-grow 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}

.swatch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 22, 17, 0.78) 0%, rgba(30, 22, 17, 0.25) 45%, rgba(30, 22, 17, 0.1) 100%);
    transition: opacity 0.9s ease;
}

.swatch.is-active {
    flex-grow: 4.2;
    transform: none;
    box-shadow: var(--shadow-deep);
}

.swatch:not(.is-active):hover {
    transform: rotateY(-6deg) translateZ(-10px);
}

.swatch__tab {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform-origin: left bottom;
    transform: rotate(-90deg) translateY(50%);
    white-space: nowrap;
    color: var(--paper);
    font-size: 0.806rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: opacity 0.5s ease;
}

.swatch__tab b {
    font-weight: 500;
    margin-right: 12px;
    color: #E9C9B6;
}

.swatch.is-active .swatch__tab {
    opacity: 0;
}

.swatch__body {
    position: absolute;
    left: clamp(22px, 3vw, 44px);
    right: clamp(22px, 3vw, 44px);
    bottom: clamp(22px, 3vw, 40px);
    color: var(--paper);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.8s var(--ease);
}

.swatch.is-active .swatch__body {
    opacity: 1;
    transform: none;
    transition-delay: 0.35s;
}

.swatch__title {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.05;
    margin-bottom: 12px;
}

.swatch__desc {
    display: block;
    max-width: 28em;
    font-size: 1.098rem;
    color: rgba(244, 238, 230, 0.86);
}

/* ═══════════════════════════════════════════════════════════
   INVITATION
   ═══════════════════════════════════════════════════════════ */
.invite {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(40px, 6vw, 100px);
    padding: clamp(80px, 10vw, 160px) var(--gutter) clamp(110px, 14vw, 200px);
    background: var(--paper-2);
    overflow: hidden;
}

.invite__arch {
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 4px 4px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.invite__arch img {
    width: 100%;
    height: 118%;
    object-fit: cover;
}

.invite__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.4vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.015em;
    margin: 24px 0 44px;
}

.invite__title em {
    color: var(--terra);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(70px, 9vw, 120px) var(--gutter) 30px;
    overflow: hidden;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(244, 238, 230, 0.14);
}

.footer h4 {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #C9A48E;
    margin-bottom: 14px;
}

.footer p {
    font-size: 1.064rem;
    color: rgba(244, 238, 230, 0.78);
    overflow-wrap: anywhere;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: #E9C9B6;
}

.footer .footer__mark {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.4rem, 13.5vw, 15rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-align: center;
    padding: 40px 0 44px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244, 238, 230, 0.32);
}

.footer__base {
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.784rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 238, 230, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
    .nav__links {
        gap: 26px;
    }

    .anno {
        --len: 14px !important;
        letter-spacing: 0.1em;
    }

    .anno__txt b {
        margin-right: 5px;
    }
}

@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: block;
    }

    .nav.is-scrolled {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Hero: stage on top, copy below */
    .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 96px;
        padding-bottom: 80px;
        align-content: start;
    }

    .hero__stage {
        order: -1;
        height: 56svh;
        min-height: 380px;
        max-height: 560px;
    }

    .hero__main {
        width: 64%;
        right: 6%;
    }

    .hero__outline {
        width: 64%;
        right: 2%;
    }

    .chip--a {
        left: 26%;
    }

    .chip--c {
        right: 0;
        bottom: 16%;
    }

    .hero__inset {
        width: 42%;
        height: 46%;
        left: 0;
        border-width: 6px;
    }

    .anno--r .anno__txt,
    .anno--l .anno__txt {
        display: none;
    }

    .anno {
        --len: 26px !important;
    }

    .hero__title {
        margin: 18px 0 20px;
    }

    .hero__meta span:first-child,
    .hero__meta span:last-child {
        display: none;
    }

    .hero__meta {
        justify-content: center;
    }

    .section-head {
        grid-template-columns: 1fr;
    }

    .section-count {
        justify-self: start;
    }

    /* Work cards: horizontal swipe with depth */
    .work__cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        scrollbar-width: none;
    }

    .work__cards::-webkit-scrollbar {
        display: none;
    }

    .card {
        scroll-snap-align: center;
    }

    .card:nth-child(2) {
        margin-top: 0;
    }

    /* Ring */
    .ring {
        --w: 46vw;
        margin-top: 16vh;
    }

    .ring-wrap {
        height: 260vh;
    }

    /* Journey: model on top, active step below */
    .journey {
        height: 360vh;
    }

    .journey__sticky {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .journey__text {
        display: contents;
    }

    .journey__text header {
        grid-row: 1;
        padding: 84px var(--gutter) 0;
        margin-bottom: 18px;
    }

    .journey__text header .section-title {
        font-size: 2.2rem;
    }

    .journey__model {
        grid-row: 2;
        margin: 0 var(--gutter);
        border-radius: 999px 999px 6px 6px;
    }

    .steps {
        grid-row: 3;
        position: relative;
        margin: 0 var(--gutter);
        padding: 16px 0 30px;
        border-top: 0;
        min-height: 150px;
    }

    .step {
        position: absolute;
        inset: 16px 0 auto 0;
        border: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s ease, transform 0.6s var(--ease);
    }

    .step.is-active {
        opacity: 1;
        transform: none;
    }

    .step p {
        max-height: none;
        opacity: 1;
        margin-top: 6px;
    }

    .model-tag {
        display: none;
    }

    /* Services: vertical accordion */
    .swatches {
        flex-direction: column;
        height: auto;
        perspective: 1200px;
    }

    .swatch {
        flex: none;
        height: 74px;
        transform: rotateX(8deg);
        transition: height 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
    }

    .swatch.is-active {
        height: 340px;
        transform: none;
    }

    .swatch:not(.is-active):hover {
        transform: rotateX(4deg);
    }

    .swatch__tab {
        left: 22px;
        bottom: 50%;
        transform: translateY(50%);
    }

    /* Invitation */
    .invite {
        grid-template-columns: 1fr;
    }

    .invite__arch {
        width: 78%;
        margin: 0 auto;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .hero__title {
        font-size: clamp(2.7rem, 12.5vw, 3.6rem);
    }

    .hero__lede {
        font-size: 1.075rem;
        margin-bottom: 28px;
    }

    .btn {
        padding: 14px 22px;
        font-size: 0.78rem;
    }

    .chip--c {
        display: none;
    }

    .footer__cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__base {
        flex-direction: column;
    }
}

/* Short desktop screens */
@media (min-width: 901px) and (max-height: 760px) {
    .step p {
        font-size: 0.963rem;
    }

    .journey__text header {
        margin-bottom: 26px;
    }

    .step {
        padding: 14px 0;
    }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   INNER PAGES — shared
   ═══════════════════════════════════════════════════════════ */
.js .rv {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}

.js .rv.in {
    opacity: 1;
    transform: none;
}

.js .rv[data-d="1"] { transition-delay: 0.1s; }
.js .rv[data-d="2"] { transition-delay: 0.2s; }
.js .rv[data-d="3"] { transition-delay: 0.3s; }

.nav__menu a[aria-current="page"],
.drawer__links a[aria-current="page"] {
    color: var(--terra);
}

.nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Inner hero — reuses the home hero stage */
.hero--inner .hero__title {
    font-size: clamp(3rem, 5.6vw, 6rem);
}

.hero--inner .hero__lede {
    max-width: 34em;
}

.hero__title .hero__tag {
    font-size: 0.56em;
    line-height: 1.05;
    margin-top: 0.12em;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    margin-top: 6px;
    max-width: 520px;
}

.hero__facts div {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.hero__facts div:nth-child(odd) {
    padding-right: 20px;
}

.hero__facts dt {
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.hero__facts dd {
    font-family: var(--serif);
    font-size: 1.344rem;
}

.crumbs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.crumbs a {
    transition: color 0.3s;
}

.crumbs a:hover {
    color: var(--terra);
}

/* ── Story (project narrative) ───────────────────────────── */
.story {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 110px);
    padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(60px, 8vw, 120px);
}

.story__aside {
    position: sticky;
    top: 120px;
    align-self: start;
}

.story__aside .section-title {
    margin-top: 18px;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

.story__body {
    max-width: 760px;
}

.story__body p {
    font-size: 1.165rem;
    color: var(--ink-soft);
    margin-bottom: 1.6em;
}

.story__body p.story__lead {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 1.2em;
}

.story__figure {
    position: relative;
    margin: clamp(40px, 6vw, 90px) 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-deep);
}

.story__figure img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.story__figure figcaption {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.12rem;
    color: var(--paper);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* ── Depth gallery ───────────────────────────────────────── */
.gallery {
    padding: clamp(60px, 8vw, 120px) 0 clamp(110px, 14vw, 200px);
    background: var(--paper-2);
    overflow: hidden;
}

.dg {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
    padding: 0 var(--gutter);
    perspective: 1600px;
}

.dg-col {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 28px);
    will-change: transform;
}

.dg-col:nth-child(2) {
    margin-top: clamp(40px, 7vw, 120px);
}

.dg-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 3px;
    background: var(--sand);
    box-shadow: var(--shadow-soft);
    cursor: zoom-in;
    transform-origin: 50% 100%;
    transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}

.dg-item img {
    width: 100%;
    height: auto;
    transition: transform 1.2s var(--ease), filter 0.6s ease;
}

.dg-item::after {
    content: 'View';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    margin: -37px 0 0 -37px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(244, 238, 230, 0.9);
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.dg-item:hover {
    box-shadow: var(--shadow-deep);
}

.dg-item:hover img {
    transform: scale(1.05);
}

.dg-item:hover::after,
.dg-item:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}

.dg-item:nth-child(4n+2) {
    border-radius: 999px 999px 3px 3px;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lb {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: rgba(244, 238, 230, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.lb.is-open {
    opacity: 1;
    visibility: visible;
}

.lb__top,
.lb__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px var(--gutter);
    font-size: 0.784rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.lb__stage {
    position: relative;
    display: grid;
    place-items: center;
    perspective: 1600px;
    padding: 0 var(--gutter);
    min-height: 0;
}

.lb__img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    object-fit: contain;
    box-shadow: var(--shadow-deep);
    transition: transform 0.7s var(--ease), opacity 0.4s ease;
}

.lb__img.is-swap {
    opacity: 0;
    transform: rotateY(var(--dir, 10deg)) scale(0.96);
}

.lb button {
    font-size: 0.784rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 10px 4px;
    color: var(--ink);
    transition: color 0.3s;
}

.lb button:hover {
    color: var(--terra);
}

.lb__count {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.232rem;
    letter-spacing: 0;
    text-transform: none;
}

/* ── Next collection ─────────────────────────────────────── */
.next {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    align-items: center;
    gap: clamp(30px, 6vw, 100px);
    padding: clamp(100px, 12vw, 180px) var(--gutter);
}

.next__title {
    display: block;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 20px 0 30px;
    transition: color 0.5s var(--ease);
}

.next__title i {
    display: inline-block;
    font-style: normal;
    color: var(--terra);
    transition: transform 0.7s var(--ease);
}

.next:hover .next__title i {
    transform: translateX(18px);
}

.next__img {
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 4px 4px;
}

.next__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Projects index: 3D stacking cards ───────────────────── */
.stack {
    padding: 0 var(--gutter) clamp(80px, 10vw, 140px);
}

.stack__card {
    position: sticky;
    top: calc(96px + var(--i, 0) * 22px);
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    height: min(76vh, 700px);
    margin-bottom: 8vh;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
    transform-origin: 50% 0;
    will-change: transform;
}

.stack__img {
    position: relative;
    overflow: hidden;
}

.stack__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease);
}

.stack__card:hover .stack__img img {
    transform: scale(1.05);
}

.stack__text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 60px);
}

.stack__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--terra);
}

.stack__text h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.98;
    margin: 18px 0 18px;
}

.stack__text p {
    color: var(--ink-soft);
    max-width: 28em;
}

.stack__foot {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.stack__foot .card__more {
    color: var(--ink);
}

.stack__card:hover .card__more {
    gap: 18px;
    color: var(--terra);
    border-color: var(--terra);
}

/* ── About: chapters & principles ────────────────────────── */
.chapter {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(40px, 7vw, 120px);
    padding: clamp(80px, 10vw, 150px) var(--gutter);
}

.chapter--flip .chapter__media {
    order: 2;
}

.chapter--tint {
    background: var(--paper-2);
}

.chapter__media {
    position: relative;
    perspective: 1400px;
}

.chapter__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 999px 999px 4px 4px;
    box-shadow: var(--shadow-deep);
}

.chapter--square .chapter__frame {
    border-radius: 4px;
}

.chapter__frame img {
    width: 100%;
    height: 118%;
    object-fit: cover;
}

.chapter__media::before {
    content: '';
    position: absolute;
    inset: 4% -4% -4% 4%;
    border: 1px solid var(--line-strong);
    border-radius: inherit;
    pointer-events: none;
}

.chapter:not(.chapter--square) .chapter__media::before {
    border-radius: 999px 999px 4px 4px;
}

.chapter__numeral {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.4rem, 6vw, 5.6rem);
    line-height: 1;
    color: var(--terra);
}

.chapter__text .section-title {
    margin: 12px 0 30px;
}

.chapter__text p {
    color: var(--ink-soft);
    font-size: 1.165rem;
    max-width: 34em;
    margin-bottom: 1.3em;
}

.chapter__text p:first-of-type {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.35;
    color: var(--ink);
}

.principles {
    padding: clamp(100px, 12vw, 180px) var(--gutter);
}

.principles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 44px);
    perspective: 1400px;
}

.principle {
    padding: 34px 30px 38px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #F8F3EC, var(--paper));
    box-shadow: var(--shadow-soft);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.principle.is-tilting {
    transition: transform 0.12s linear, box-shadow 0.7s var(--ease);
}

.principle:hover {
    box-shadow: var(--shadow-deep);
}

.principle__num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--terra);
}

.principle h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.9rem;
    line-height: 1.1;
    margin: 40px 0 14px;
}

.principle p {
    color: var(--ink-soft);
    font-size: 1.075rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
    padding: 0 var(--gutter) clamp(100px, 12vw, 170px);
}

.contact__rows {
    border-top: 1px solid var(--line-strong);
}

.contact__row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) auto;
    align-items: baseline;
    gap: 20px 40px;
    padding: clamp(24px, 3vw, 40px) 0;
    border-bottom: 1px solid var(--line);
}

.contact__row h3 {
    font-size: 0.784rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact__value {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 3.4vw, 3.2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.contact__value a {
    background: linear-gradient(var(--terra), var(--terra)) 0 100% / 0 1px no-repeat;
    transition: background-size 0.6s var(--ease), color 0.4s;
}

.contact__value a:hover {
    color: var(--terra);
    background-size: 100% 1px;
}

.contact__action {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.3s, border-color 0.3s;
}

.contact__action:hover {
    color: var(--terra);
    border-color: var(--terra);
}

/* ── Press ───────────────────────────────────────────────── */
.press {
    padding: 0 var(--gutter) clamp(100px, 12vw, 170px);
}

.press__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 44px);
}

.press__item {
    display: block;
}

.press__cover {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    background: linear-gradient(160deg, #F8F3EC 0%, var(--paper-2) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.press__cover.is-tilting {
    transition: transform 0.12s linear, box-shadow 0.7s var(--ease);
}

.press__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.press__year {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--terra);
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.232rem;
    color: var(--terra);
    position: relative;
}

.press__cover-title {
    position: relative;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    line-height: 1.05;
}

.press__item h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.5rem;
    margin-top: 18px;
}

.press__item p {
    font-size: 0.963rem;
    color: var(--muted);
}

.press__note {
    margin-top: 60px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.344rem;
    color: var(--muted);
}

.press__note a {
    color: var(--terra);
    border-bottom: 1px solid currentColor;
}

/* ── Inner pages · responsive ────────────────────────────── */
@media (max-width: 900px) {
    .story {
        grid-template-columns: 1fr;
    }

    .story__aside {
        position: static;
    }

    .dg {
        --cols: 2;
    }

    .dg-col:nth-child(2) {
        margin-top: 50px;
    }

    .next {
        grid-template-columns: 1fr;
    }

    .next__img {
        width: 70%;
    }

    .stack__card {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        height: min(82svh, 720px);
        top: calc(80px + var(--i, 0) * 14px);
    }

    .stack__text {
        padding: 24px;
    }

    .stack__text h2 {
        margin: 6px 0 10px;
    }

    .stack__text p {
        font-size: 1.03rem;
    }

    .stack__foot {
        padding-top: 16px;
        margin-top: 16px;
    }

    .chapter {
        grid-template-columns: 1fr;
    }

    .chapter--flip .chapter__media {
        order: 0;
    }

    .chapter__media {
        width: 82%;
    }

    .chapter--flip .chapter__media {
        justify-self: end;
    }

    .principles__grid,
    .press__grid {
        grid-template-columns: 1fr;
    }

    .principle h3 {
        margin-top: 22px;
    }

    .contact__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact__action {
        justify-self: start;
    }

    .hero__facts dd {
        font-size: 1.176rem;
    }
}

@media (max-width: 520px) {
    .press__grid {
        grid-template-columns: 1fr;
    }

    .stack__text h2 {
        font-size: 2.4rem;
    }
}

.card__more {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .stack__foot {
        font-size: 0.78rem;
        letter-spacing: 0.16em;
    }
}

/* ═══════════════════════════════════════════════════════════
   READABILITY + MORE DEPTH (v3)
   ═══════════════════════════════════════════════════════════ */
.eyebrow,
.nav__link,
.nav__cta,
.btn,
.card__more,
.anno,
.hero__meta,
.contact__action,
.stack__foot,
.footer h4 {
    font-weight: 500;
}

.eyebrow {
    color: var(--ink-soft);
}

.hero__title,
.section-title,
.invite__title,
.philosophy__text,
.next__title,
.stack__text h2,
.swatch__title {
    font-weight: 500;
}

.hero__title em,
.section-title em,
.invite__title em {
    font-weight: 500;
}

.philosophy__text .w {
    opacity: 0.22;
}

.card__cap h3,
.step h3,
.chapter__text p:first-of-type,
.story__body p.story__lead,
.principle h3 {
    font-weight: 500;
}

.footer p {
    color: rgba(244, 238, 230, 0.9);
}

.swatch__desc {
    color: #F4EEE6;
}

.drawer__foot a {
    display: inline-block;
    padding: 2px 0;
}

/* Section titles fold up out of the page */
.js .rv.flip {
    opacity: 0;
    transform: perspective(900px) rotateX(-75deg) translateY(24px);
    transform-origin: 50% 100%;
    transition: opacity 1s var(--ease), transform 1.4s var(--ease);
}

.js .rv.flip.in {
    opacity: 1;
    transform: none;
}

/* Generic pointer-tilt for image frames */
.tilt3d {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.8s var(--ease), box-shadow 0.6s var(--ease);
}

.tilt3d.is-tilting {
    transition: transform 0.12s linear, box-shadow 0.6s var(--ease);
}

.dg-item.tilt3d {
    transform-origin: 50% 50%;
}

/* Rotating material cube */
.cube-scene {
    width: var(--cs, 132px);
    height: var(--cs, 132px);
    margin: 0 auto 46px;
    perspective: 900px;
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(-22deg) rotateY(35deg);
    will-change: transform;
}

.cube i {
    position: absolute;
    inset: 0;
    background: var(--img) center / cover, var(--sand);
    border: 1px solid rgba(244, 238, 230, 0.7);
    box-shadow: inset 0 0 40px rgba(60, 40, 25, 0.18);
}

.cube i:nth-child(1) { transform: rotateY(0deg) translateZ(calc(var(--cs, 132px) / 2)); }
.cube i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--cs, 132px) / 2)); }
.cube i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--cs, 132px) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--cs, 132px) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--cs, 132px) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--cs, 132px) / 2)); }

.cube-shadow {
    width: calc(var(--cs, 132px) * 1.1);
    height: 18px;
    margin: -30px auto 40px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(60, 40, 25, 0.28), transparent);
    filter: blur(2px);
}

/* Extruded 3D footer wordmark */
.footer__mark-wrap {
    perspective: 1200px;
    padding: 30px 0 34px;
}

.footer .footer__mark {
    color: #E7DACB;
    -webkit-text-stroke: 0;
    font-weight: 500;
    padding: 0 0 10px;
    text-shadow:
        1px 1px 0 #B98D74, 2px 2px 0 #A87C64, 3px 3px 0 #976D56,
        4px 4px 0 #855F4A, 5px 5px 0 #73523F, 6px 6px 0 #624535,
        7px 7px 0 #523A2D, 8px 8px 0 #443026,
        14px 18px 24px rgba(0, 0, 0, 0.5);
    transform: perspective(1200px) rotateX(calc(16deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg));
    transform-origin: 50% 100%;
    transition: transform 0.9s var(--ease);
}

.footer .footer__mark.is-tilting {
    transition: transform 0.15s linear;
}

@media (max-width: 900px) {
    .footer .footer__mark {
        text-shadow:
            1px 1px 0 #B98D74, 2px 2px 0 #976D56, 3px 3px 0 #73523F,
            4px 4px 0 #523A2D, 8px 10px 14px rgba(0, 0, 0, 0.5);
    }

    .cube-scene {
        --cs: 104px;
    }
}

.anno {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.anno__txt {
    padding: 0 8px;
}

/* Brand lock-up: "The Insidestory by Shiwani Chowdary" */
.nav__logo {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
}

.nav__logo-by {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-soft);
}

.footer__by {
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem, 3.6vw, 3.6rem);
    color: #D9C2AE;
    margin-top: -6px;
}

/* Bigger "Let's begin" */
.invite .eyebrow {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    letter-spacing: 0.3em;
    font-weight: 600;
    color: var(--terra);
}

@media (max-width: 1180px) {
    .nav__logo-by {
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .nav__logo {
        flex-direction: column;
        gap: 0;
        line-height: 1.05;
    }

    .nav__logo-main {
        font-size: 1.4rem;
    }

    .nav__logo-by {
        font-size: 0.9rem;
    }
}

/* Logo: "by Shiwani Chowdary" always on its own line */
.nav__logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.05;
}

.nav__logo-by {
    font-size: 1rem;
    padding-left: 2px;
}
