/* =========================================================
   ANKIT MATHUR — Hotel General Manager
   Editorial luxury system: ivory · ink · warm gold
   ---------------------------------------------------------
   01 Tokens        06 Hero              11 Projects
   02 Base          07 Ribbon / About    12 Manifesto
   03 Typography    08 Journey           13 Recognition
   04 Components    09 Expertise         14 Testimonials
   05 Navigation    10 Services          15 Gallery
                                         16 Contact / Footer
                                         17 Overlays (cursor, lightbox)
                                         18 Responsive / Motion prefs
   ========================================================= */

/* ---------- 01 TOKENS ---------- */
:root {
    --ivory: #F6F1E9;
    --paper: #FBF8F3;
    --sand: #ECE3D4;
    --ink: #16130F;
    --ink-2: #211D18;
    --black: #111111;

    --text: #1E1A15;
    --text-2: #5B5349;
    --text-3: #736A5E;

    --gold: #B48F55;          /* decorative lines, icons */
    --gold-deep: #7E6030;     /* small gold text on light (AA) */
    --gold-head: #9A7743;     /* large gold display text on light */
    --gold-light: #C9A86A;    /* gold on dark */

    --line: rgba(30, 26, 21, 0.12);
    --line-strong: rgba(30, 26, 21, 0.2);
    --error: #9B3B2E;

    --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --max: 1320px;
    --gutter: clamp(20px, 4.2vw, 64px);
    --sec: clamp(96px, 12vw, 176px);
    --nav-h: 84px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-dark {
    --text: #F2ECE2;
    --text-2: rgba(242, 236, 226, 0.72);
    --text-3: rgba(242, 236, 226, 0.56);
    --line: rgba(242, 236, 226, 0.12);
    --line-strong: rgba(242, 236, 226, 0.2);
    --gold-deep: var(--gold-light);
    --gold-head: var(--gold-light);
    background: var(--ink);
    color: var(--text);
}

/* ---------- 02 BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: var(--sans);
    font-size: clamp(15px, 1.02vw, 17px);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--sec); }

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--ivory);
    font-size: 0.85rem;
    text-decoration: none;
    transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- 03 TYPOGRAPHY ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.eyebrow::before {
    content: '';
    width: 36px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}
.eyebrow__num {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
}
.eyebrow__num::after { content: '/'; margin-left: 12px; opacity: 0.45; font-style: normal; }
.eyebrow--light { color: var(--gold-light); }

.h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.4vw, 4.9rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.015em;
}
.h2 em, .hero__title em, .contact__title em, .footer__word em {
    font-style: italic;
    color: var(--gold-head);
}
.h2 em { white-space: nowrap; }

.section-head { max-width: 780px; margin-bottom: clamp(56px, 7vw, 100px); }
.section-head__intro {
    max-width: 42ch;
    margin: 24px 0 0;
    font-size: 1.02rem;
    color: var(--text-2);
}
.section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
    max-width: none;
}
.section-head--split .section-head__intro { margin: 0; justify-self: end; }

/* Word-split headings (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.04em 0.1em; margin: 0 -0.04em -0.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- 04 COMPONENTS ---------- */
.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.5s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .icon { transition: transform 0.5s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }

.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark::before { background: var(--gold); }
.btn--dark:hover { color: var(--ink); }

.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--ivory); border-color: var(--ink); }

.btn--gold { background: var(--gold-light); color: var(--ink); }
.btn--gold::before { background: var(--ivory); }

.round-btn {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.theme-dark .round-btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }

/* Gold underline link */
.ulink {
    text-decoration: none;
    background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat;
    transition: background-size 0.5s var(--ease), color 0.3s;
}
.ulink:hover, .ulink:focus-visible { background-size: 100% 1px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}

/* Parallax wrapper: oversize the media so it can travel */
.parallax { height: 116%; margin-top: -8%; }
.parallax--strong { height: 130%; margin-top: -15%; }
.parallax picture, .parallax img { width: 100%; height: 100%; object-fit: cover; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 2px; pointer-events: none; }
.scroll-progress span {
    display: block;
    height: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
}

/* ---------- 05 NAVIGATION ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
                height 0.5s var(--ease), transform 0.6s var(--ease), color 0.4s;
}
.nav.is-scrolled {
    height: 72px;
    background: rgba(246, 241, 233, 0.84);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: rgba(30, 26, 21, 0.1);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.menu-open { background: transparent; border-bottom-color: transparent; color: #F2ECE2; transform: none; }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__mono {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--gold-deep);
    transition: background-color 0.4s, color 0.4s;
}
.nav__logo:hover .nav__mono { background: var(--gold); color: var(--ivory); }
.nav.menu-open .nav__mono { color: var(--gold-light); }
.nav__name { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }

.nav__menu ul { display: flex; gap: clamp(18px, 2vw, 34px); margin: 0; padding: 0; list-style: none; }
.nav__link {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-2);
    transition: color 0.3s;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.nav__resume .icon { width: 15px; height: 15px; }
.nav__resume:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.nav.menu-open .nav__resume { border-color: rgba(242, 236, 226, 0.25); }

.nav__toggle {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.nav__toggle span {
    position: absolute;
    left: 15px;
    right: 15px;
    height: 1px;
    background: currentColor;
    transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 27px; }
.nav.menu-open .nav__toggle { border-color: rgba(242, 236, 226, 0.25); }
.nav.menu-open .nav__toggle span:first-child { top: 23px; transform: rotate(45deg); }
.nav.menu-open .nav__toggle span:last-child { top: 23px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--ink);
    color: #F2ECE2;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.8s var(--ease-io), visibility 0s linear 0.8s;
}
.mmenu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease-io); }
.mmenu__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 40px;
    overflow-y: auto;
}
.mmenu__list { margin: 0; padding: 0; list-style: none; }
.mmenu__list li {
    border-bottom: 1px solid rgba(242, 236, 226, 0.1);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.mmenu.is-open .mmenu__list li { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i, 0) * 0.05s); }
.mmenu__list a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 12px 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 300;
    line-height: 1.1;
    text-decoration: none;
    transition: color 0.3s, padding 0.5s var(--ease);
}
.mmenu__list a:hover { color: var(--gold-light); padding-left: 8px; }
.mmenu__list span { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold-light); }
.mmenu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.mmenu__tag { margin: 0; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(242, 236, 226, 0.6); }

/* ---------- 06 HERO ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + clamp(32px, 5vw, 64px)) 0 clamp(96px, 9vw, 128px);
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 65% at 80% 42%, #EADFCB 0%, rgba(234, 223, 203, 0) 70%),
        linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
}
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}
.hero__eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }
.hero__title {
    margin: 0 0 0 -0.05em;
    font-family: var(--serif);
    font-size: clamp(4.2rem, 11.2vw, 10.5rem);
    font-weight: 300;
    line-height: 0.86;
    letter-spacing: -0.035em;
}
.hero__line { display: block; overflow: hidden; padding: 0 0.05em 0.08em; }
.hero__line:last-child { padding-left: 0.9em; }
.hero__word { display: inline-block; }
.hero__rule {
    display: block;
    width: clamp(80px, 12vw, 160px);
    height: 1px;
    margin: clamp(28px, 3.5vw, 44px) 0;
    background: var(--gold);
    transform-origin: left;
}
.hero__lead {
    max-width: 34ch;
    margin: 0 0 40px;
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    line-height: 1.6;
    color: var(--text-2);
}
.hero__lead em { font-family: var(--serif); font-size: 1.18em; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__brand {
    margin: 48px 0 0;
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-3);
}
.hero__brand i { margin: 0 8px; font-style: normal; color: var(--gold); }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 480px; }
.hero__frame { position: relative; margin: 0; }
.hero__border {
    position: absolute;
    inset: -18px 18px 18px -18px;
    border: 1px solid var(--gold);
    opacity: 0.55;
    pointer-events: none;
}
.hero__frame { cursor: zoom-in; }
.hero__img {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5.4;
    overflow: hidden;
    background: var(--sand);
}
.hero__img picture, .hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
    position: absolute;
    top: 0;
    right: -36px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-3);
}
.hero__caption-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero__card {
    position: absolute;
    left: clamp(-72px, -5vw, -24px);
    bottom: clamp(28px, 4vw, 56px);
    width: min(240px, 62%);
    padding: 24px 26px 22px;
    background: var(--paper);
    border-top: 2px solid var(--gold);
    box-shadow: 0 30px 60px -24px rgba(30, 26, 21, 0.3);
    z-index: 2;
}
.hero__card-num {
    margin: 0;
    font-family: var(--serif);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1;
}
.hero__card-num sup { font-size: 0.45em; color: var(--gold-deep); }
.hero__card-label {
    margin: 6px 0 16px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-2);
}
.hero__card-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 14px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--text-2);
}
.hero__card-list li::before { content: '—'; margin-right: 10px; color: var(--gold); }

.hero__scroll {
    position: absolute;
    left: max(var(--gutter), calc((100vw - var(--max)) / 2));
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-3);
}
.hero__scroll-line { position: relative; width: 1px; height: 44px; overflow: hidden; background: var(--line-strong); }
.hero__scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--gold);
    animation: scrollCue 2.6s var(--ease-io) infinite;
}
@keyframes scrollCue { to { top: 100%; } }

/* Hero pre-hide (removed by the intro timeline or the inline failsafe) */
.intro-pending .hero [data-hero],
.intro-pending .hero__word,
.intro-pending .hero__rule,
.intro-pending .hero__visual,
.intro-pending .hero__scroll { opacity: 0; }

/* ---------- 07 RIBBON + ABOUT ---------- */
.ribbon {
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid var(--line);
    background: var(--ivory);
}
.ribbon__track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    white-space: nowrap;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text-2);
}
.ribbon__track i { font-size: 0.45em; font-style: normal; color: var(--gold); }

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(48px, 7vw, 120px);
}
.about__media { position: relative; padding: 0 12% 80px 0; }
.about__main, .about__inset, .journey__figure, .services__figure, .recognition__figure { cursor: zoom-in; }
.about__main { margin: 0; aspect-ratio: 4 / 5.2; overflow: hidden; background: var(--sand); }
.about__inset {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    border: 10px solid var(--ivory);
    background: var(--sand);
    box-shadow: 0 30px 60px -30px rgba(30, 26, 21, 0.35);
}
.about__inset picture, .about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__vertical {
    position: absolute;
    top: 0;
    left: -44px;
    margin: 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-3);
}
.about__copy { padding-top: clamp(0px, 3vw, 48px); }
.about__lead {
    margin: 36px 0 28px;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.3;
}
.about__lead em { color: var(--gold-head); }
.about__text p { margin: 0 0 18px; color: var(--text-2); }
.about__text mark {
    padding: 0 2px;
    background: linear-gradient(transparent 62%, rgba(201, 168, 106, 0.35) 0);
    color: var(--text);
}
.about__sign {
    margin: 36px 0 48px;
    padding-left: 20px;
    border-left: 1px solid var(--gold);
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.35;
    color: var(--gold-deep);
}
.about__sign span { display: block; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    border-top: 1px solid var(--line-strong);
}
.stats__item { display: flex; flex-direction: column-reverse; gap: 8px; padding: 24px 12px 0 0; }
.stats dd {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
    font-weight: 300;
    line-height: 1;
}
.stats sup { font-size: 0.5em; color: var(--gold-deep); }
.stats dt { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }

/* ---------- 08 JOURNEY ---------- */
.journey { background: var(--paper); overflow-x: clip; }
.journey__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
    gap: clamp(48px, 7vw, 120px);
}
.journey__aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.journey__figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.journey__figure picture, .journey__figure img { width: 100%; height: 100%; object-fit: cover; }
.journey__quote { margin: 24px 0 0; font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--text-2); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; --rail: 158px; }
.timeline__rail { position: absolute; top: 10px; bottom: 0; left: var(--rail); width: 1px; background: var(--line-strong); }
.timeline__fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; }
.js .timeline__fill { transform: scaleY(0); }

.tl {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0 56px;
    padding-bottom: clamp(48px, 6vw, 72px);
}
.tl:last-child { padding-bottom: 0; }
.tl__node {
    position: absolute;
    top: 9px;
    left: calc(var(--rail) - 5px);
    width: 11px;
    height: 11px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--paper);
    transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.tl.is-in .tl__node, html:not(.js) .tl__node { background: var(--gold); box-shadow: 0 0 0 6px rgba(180, 143, 85, 0.16); }
.tl__year {
    margin: 0;
    padding-top: 2px;
    text-align: right;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.3;
    color: var(--gold-deep);
}
.tl__kicker { margin: 0 0 6px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.tl__role {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 400;
    line-height: 1.15;
}
.tl__org { margin: 0 0 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }
.tl__desc { max-width: 52ch; margin: 0 0 16px; color: var(--text-2); }
.tl__impact {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 2px solid var(--gold);
    background: var(--ivory);
    font-size: 0.94rem;
}
.tl__impact span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

/* ---------- 09 EXPERTISE ---------- */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    perspective: 1200px;
}
.comp {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 40px 32px 44px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    transition: background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
    transform-style: preserve-3d;
}
.comp:hover { z-index: 2; background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.comp__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 52px;
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.7s var(--ease);
}
.comp:hover .comp__icon { transform: translateY(-4px) scale(1.08); }
.comp__title { margin: 0 0 12px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.15; }
.comp__desc { margin: 0; font-size: 0.93rem; color: var(--text-2); }
.comp__more {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.8;
    text-transform: uppercase;
    color: var(--gold-light);
    transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.6s var(--ease);
}
.comp:hover .comp__more, .comp:focus-within .comp__more { max-height: 80px; margin-top: 18px; opacity: 1; }
.comp__line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease);
}
.comp:hover .comp__line { transform: scaleX(1); }

/* ---------- 10 SERVICES ---------- */
.services { background: var(--sand); }
.services__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(48px, 7vw, 120px);
}
.services__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.services__figure { max-width: 400px; margin: 44px 0 0; aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--ivory); }

.offer-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.offer {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 24px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--line-strong);
    transition: padding 0.6s var(--ease);
}
.offer::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--gold-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease);
}
.offer:hover { padding-left: 14px; }
.offer:hover::after { transform: scaleX(1); }
.offer__num { padding-top: 8px; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--gold-deep); }
.offer__title { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 400; line-height: 1.1; }
.offer__desc { max-width: 50ch; margin: 0; color: var(--text-2); }
.offer__arrow { width: 26px; height: 26px; margin-top: 10px; color: var(--gold-deep); transition: transform 0.6s var(--ease); }
.offer:hover .offer__arrow { transform: rotate(45deg); }

/* ---------- 11 PROJECTS ---------- */
.projects { position: relative; padding-block: var(--sec); background: var(--ivory); overflow: hidden; }
.projects__head { margin-bottom: clamp(40px, 5vw, 72px); }
.projects__meta { justify-self: end; }
.projects__progress { position: relative; display: none; width: min(260px, 100%); height: 1px; margin-top: 24px; background: var(--line-strong); }
.projects__progress span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.projects__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    list-style: none;
}
.pcard { position: relative; }
.pcard--feature { grid-column: 1 / -1; }

.pcard__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--sand);
    cursor: pointer;
}
.pcard__media picture, .pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media img { transition: transform 1.4s var(--ease); }
.pcard__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 19, 15, 0.7), rgba(22, 19, 15, 0.1) 60%);
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}
.pcard__media:hover img, .pcard__media:focus-visible img { transform: scale(1.05); }
.pcard__media:hover::after, .pcard__media:focus-visible::after { opacity: 1; }
.pcard__explore {
    position: absolute;
    left: 28px;
    bottom: 24px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F2ECE2;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.pcard__explore .icon { transition: transform 0.6s var(--ease); }
.pcard__media:hover .pcard__explore, .pcard__media:focus-visible .pcard__explore { opacity: 1; transform: none; }
.pcard__media:hover .pcard__explore .icon { transform: translateX(6px); }

.pcard__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 40px;
    padding-top: 28px;
}
.pcard__info .pcard__cat { grid-column: 1 / -1; }
.pcard__cat { margin: 0 0 8px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.pcard__name { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 300; line-height: 1.05; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; align-self: end; }
.pcard__meta dt { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.pcard__meta dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.15rem; }
.pcard__desc { margin: 12px 0 0; color: var(--text-2); }

/* Typographic project cards (imagery pending) */
.pcard--text {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 36px 32px;
    overflow: hidden;
    background: var(--ink);
    color: #F2ECE2;
    transition: background-color 0.6s var(--ease);
}
.pcard--text::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--gold-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s var(--ease);
}
.pcard--text:hover { background: var(--ink-2); }
.pcard--text:hover::before { transform: scaleX(1); }
.pcard--text .pcard__cat { margin-bottom: auto; color: var(--gold-light); }
.pcard--text .pcard__name { margin: 72px 0 14px; font-size: clamp(1.8rem, 2.5vw, 2.5rem); }
.pcard--text .pcard__desc { max-width: 32ch; margin: 0; color: rgba(242, 236, 226, 0.72); }
.pcard__no { position: absolute; top: 30px; right: 32px; font-family: var(--serif); font-style: italic; color: var(--gold-light); }
.pcard__mono {
    position: absolute;
    right: -12px;
    bottom: -56px;
    font-family: var(--serif);
    font-size: 13rem;
    line-height: 1;
    color: rgba(201, 168, 106, 0.07);
    pointer-events: none;
    transition: transform 1.2s var(--ease);
}
.pcard--text:hover .pcard__mono { transform: translateY(-12px); }
/* Rhythm: every third text card in sand */
.pcard--text:nth-child(3n + 1) { background: var(--sand); color: var(--text); }
.pcard--text:nth-child(3n + 1) .pcard__cat,
.pcard--text:nth-child(3n + 1) .pcard__no { color: var(--gold-deep); }
.pcard--text:nth-child(3n + 1) .pcard__desc { color: var(--text-2); }
.pcard--text:nth-child(3n + 1) .pcard__mono { color: rgba(126, 96, 48, 0.08); }
.pcard--text:nth-child(3n + 1)::before { background: var(--gold-deep); }
.pcard--text:nth-child(3n + 1):hover { background: #E6DBC9; }

/* Horizontal mode — enabled by JS on wide screens */
.projects.is-horizontal { padding-block: 0; }
.is-horizontal .projects__pin {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: calc(var(--nav-h) + 16px) 0 44px;
}
.is-horizontal .projects__head { margin-bottom: clamp(24px, 3vw, 40px); }
.is-horizontal .projects__progress { display: block; }
.is-horizontal .projects__viewport { flex: 1; min-height: 0; }
.is-horizontal .projects__track {
    display: flex;
    gap: 24px;
    width: max-content;
    max-width: none;
    height: 100%;
    margin: 0;
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.is-horizontal .pcard { flex: none; height: 100%; }
.is-horizontal .pcard--feature {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(62vw, 980px);
}
.is-horizontal .pcard__media { height: 100%; aspect-ratio: auto; }
.is-horizontal .pcard__info { padding-top: 20px; }
.is-horizontal .pcard__info .pcard__name { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.is-horizontal .pcard__info .pcard__desc { display: none; }
.is-horizontal .pcard--text { width: clamp(300px, 25vw, 380px); min-height: 0; }

/* ---------- 12 MANIFESTO ---------- */
.manifesto { position: relative; padding: clamp(120px, 16vw, 240px) 0; overflow: hidden; }
.manifesto__media { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.manifesto__media picture, .manifesto__media img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__media img { opacity: 0.42; filter: grayscale(1) contrast(1.05); }
.manifesto__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ink) 18%, rgba(22, 19, 15, 0.55) 60%, rgba(22, 19, 15, 0.2));
}
.manifesto__inner { position: relative; z-index: 1; }
.manifesto__quote { margin: 0; }
.manifesto__quote p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6.2vw, 5.8rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 15ch;
}
.manifesto__quote em { font-style: italic; color: var(--gold-light); }
.manifesto__by { margin: 40px 0 0; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-2); }
.manifesto__by span { margin: 0 10px; color: var(--gold-light); }

/* ---------- 13 RECOGNITION ---------- */
.impact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: clamp(72px, 9vw, 128px);
    border-block: 1px solid var(--line-strong);
}
.impact__item { padding: 40px 28px 36px; border-left: 1px solid var(--line); }
.impact__item:first-child { padding-left: 0; border-left: 0; }
.impact__num {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: clamp(3.4rem, 6vw, 5.6rem);
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.03em;
}
.impact__num small { margin-left: 4px; font-size: 0.42em; color: var(--gold-deep); }
.impact__label { margin: 0 0 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.impact__note { margin: 0; font-size: 0.9rem; color: var(--text-2); }

.recognition__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(48px, 7vw, 120px);
}
.recognition__figure { margin: 0; }
.recognition__figure picture { aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--sand); }
.recognition__figure img { width: 100%; height: 100%; object-fit: cover; }
.recognition__figure figcaption { margin-top: 16px; font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--text-2); }

.awards { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.award {
    position: relative;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 4px 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line-strong);
}
.award::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--gold-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s var(--ease);
}
.award:hover::after { transform: scaleX(1); }
.award__tag { grid-row: span 2; padding-top: 10px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.award__title { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.95rem); font-weight: 400; line-height: 1.15; }
.award__org { margin: 0; font-size: 0.92rem; color: var(--text-2); }

/* ---------- 14 TESTIMONIALS ---------- */
.testimonials { background: var(--paper); }
.testimonials__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(48px, 7vw, 120px);
}
.tslider__controls { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.tslider__count { min-width: 70px; margin: 0; text-align: center; font-family: var(--serif); font-size: 1.15rem; }
.tslider__bar { position: relative; max-width: 260px; height: 1px; margin-top: 28px; overflow: hidden; background: var(--line-strong); }
.tslider__bar span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.tslider__stage { display: grid; }
.tslide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.8s;
}
.tslide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.15s, 0.15s, 0s; }
.stars { display: flex; gap: 4px; margin-bottom: 28px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; fill: currentColor; }
.tslide__quote {
    margin: 0 0 40px;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 300;
    line-height: 1.25;
}
.tslide__author { display: flex; align-items: center; gap: 18px; }
.avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: none;
    border: 1px solid var(--gold);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--gold-deep);
}
.tslide__author strong { display: block; font-size: 0.95rem; font-weight: 600; }
.tslide__author small { display: block; font-size: 0.84rem; color: var(--text-2); }

/* ---------- 15 GALLERY ---------- */
.gallery__bands { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.band {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 20px);
    height: clamp(300px, 36vw, 580px);
}
.band--b { height: clamp(260px, 30vw, 470px); }
.band--c { height: clamp(260px, 32vw, 500px); }
.band--d { height: clamp(260px, 30vw, 470px); }
.gitem {
    position: relative;
    grid-column: span var(--span, 4);
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--ink-2);
    text-align: left;
    cursor: pointer;
}
.gitem picture, .gitem img { width: 100%; height: 100%; object-fit: cover; }
.gitem img { transition: transform 1.3s var(--ease); }
.gitem::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 6, 0.72), rgba(10, 8, 6, 0) 55%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}
.gitem__info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 1;
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.2;
    color: #F2ECE2;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gitem__info small {
    display: block;
    margin-bottom: 6px;
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.gitem:hover img, .gitem:focus-visible img { transform: scale(1.04); }
.gitem:hover::after, .gitem:focus-visible::after,
.gitem:hover .gitem__info, .gitem:focus-visible .gitem__info { opacity: 1; transform: none; }

/* ---------- 16 CONTACT + FOOTER ---------- */
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(48px, 8vw, 140px);
}
.contact__title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.6rem, 8.4vw, 7.8rem);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.03em;
}
.contact__lead { max-width: 36ch; margin: 32px 0 48px; font-size: 1.08rem; color: var(--text-2); }
.contact__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.contact__list li {
    display: grid;
    grid-template-columns: 20px 100px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-strong);
    font-size: 0.98rem;
}
.contact__list .icon { color: var(--gold-deep); }
.contact__list a { overflow-wrap: anywhere; }
.contact__k { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }

.contact__formwrap { padding-top: clamp(0px, 4vw, 64px); }
.cform { display: grid; gap: 10px; }
.field { position: relative; padding: 22px 0 24px; }
.field__input {
    display: block;
    width: 100%;
    padding: 12px 0 14px;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 1.08rem;
    color: var(--text);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.field__input--area { min-height: 128px; resize: vertical; }
.field__label {
    position: absolute;
    top: 34px;
    left: 0;
    font-size: 1.02rem;
    color: var(--text-2);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.45s var(--ease), color 0.3s;
}
.field__label small { font-size: 0.8em; color: var(--text-3); }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-28px) scale(0.74); color: var(--gold-deep); }
.field__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    height: 1px;
    background: var(--gold-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease);
}
.field__input:focus ~ .field__line { transform: scaleX(1); }
.field__input:focus-visible { outline: none; }
.field__error { position: absolute; left: 0; bottom: 2px; font-size: 0.76rem; color: var(--error); }
.field.has-error .field__input { border-bottom-color: var(--error); }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 18px; }
.cform__note { max-width: 30ch; margin: 0; font-size: 0.8rem; color: var(--text-3); }
.cform__note.is-success { color: var(--gold-deep); }

.footer { padding: clamp(80px, 9vw, 128px) 0 40px; background: var(--black); }
.footer__line {
    display: block;
    height: 1px;
    margin-bottom: clamp(56px, 7vw, 96px);
    background: linear-gradient(90deg, transparent, var(--gold-light) 50%, transparent);
}
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer__word {
    margin: 0 0 18px;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}
.footer__role { margin: 0 0 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-light); }
.footer__tag { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.footer__h { margin: 8px 0 22px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); }
.footer__col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer__col a { color: var(--text-2); overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--text); }
.footer__social { display: flex; gap: 10px; }
.footer__social .round-btn { width: 46px; height: 46px; color: var(--text); }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(64px, 8vw, 104px);
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--text-3);
}
.footer__bottom p { margin: 0; }

.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--ivory);
    box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.5s, background-color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* ---------- 17 OVERLAYS ---------- */
/* Custom cursor — only activated by JS on fine pointers */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 150;
    border-radius: 50%;
    pointer-events: none;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); transition: opacity 0.3s; }
.cursor__ring {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(180, 143, 85, 0.55);
    transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease),
                background-color 0.4s, border-color 0.4s, opacity 0.3s;
}
.cursor__label {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #F2ECE2;
    opacity: 0;
    transition: opacity 0.3s;
}
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--gold); }
.cursor.has-label .cursor__ring {
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border-color: transparent;
    background: rgba(22, 19, 15, 0.88);
}
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 72px 32px 32px;
    background: rgba(14, 12, 10, 0.95);
    color: #F2ECE2;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox .round-btn { border-color: rgba(242, 236, 226, 0.25); }
.lightbox .round-btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 100%; margin: 0; }
.lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    transform: scale(0.97);
    transition: transform 0.8s var(--ease), opacity 0.4s;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__img.is-loading { opacity: 0; }
.lightbox__cap { margin-top: 18px; text-align: center; font-family: var(--serif); font-size: 1.3rem; }
.lightbox__cap small {
    display: block;
    margin-bottom: 4px;
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ---------- 18 RESPONSIVE ---------- */
@media (max-width: 1180px) {
    .nav__menu { display: none; }
    .nav__toggle { display: block; }
}

@media (max-width: 1024px) {
    .comp-grid { grid-template-columns: repeat(2, 1fr); }
    .comp { min-height: 300px; }
    .impact { grid-template-columns: repeat(2, 1fr); }
    .impact__item:nth-child(3) { padding-left: 0; border-left: 0; }
    .impact__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .footer__top { grid-template-columns: repeat(3, 1fr); }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --nav-h: 72px; }

    .section-head--split { grid-template-columns: 1fr; gap: 0; }
    .section-head--split .section-head__intro { justify-self: start; margin-top: 24px; }
    .projects__meta { justify-self: start; }

    .hero { min-height: 0; }
    .hero__grid { grid-template-columns: 1fr; gap: 72px; }
    .hero__visual { justify-self: center; max-width: 460px; padding-left: 18px; }
    .hero__caption { position: static; margin-top: 16px; writing-mode: horizontal-tb; }
    .hero__card { left: -6px; }
    .hero__scroll { display: none; }

    .about__grid, .journey__grid, .services__grid,
    .recognition__grid, .testimonials__grid, .contact__grid { grid-template-columns: 1fr; }
    .about__media { max-width: 560px; }
    .about__vertical { display: none; }

    .journey__aside, .services__aside { position: static; }
    .journey__aside { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; }
    .journey__figure { aspect-ratio: 4 / 4.4; }
    .services__figure { display: none; }

    .recognition__figure { max-width: 560px; }
    .contact__formwrap { padding-top: 0; }
}

@media (max-width: 768px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats__item { padding-bottom: 20px; }

    .timeline { --rail: 5px; }
    .tl { grid-template-columns: 1fr; padding-left: 36px; }
    .tl__year { margin-bottom: 8px; text-align: left; }
    .tl__node { top: 7px; }

    .award { grid-template-columns: 1fr; }
    .award__tag { grid-row: auto; padding-top: 0; }

    .offer { grid-template-columns: 44px minmax(0, 1fr); }
    .offer__arrow { display: none; }

    .projects__track { grid-template-columns: 1fr; }
    .pcard__info { grid-template-columns: 1fr; }
    .pcard__meta { margin-top: 16px; }
    .pcard--text { min-height: 260px; }

    /* Gallery bands become a 2-col mosaic, wide images span both */
    .band, .band--b, .band--c, .band--d { grid-template-columns: 1fr 1fr; height: auto; }
    .gitem { grid-column: span 1; aspect-ratio: 3 / 4; }
    .gitem--wide, .band--a .gitem { grid-column: 1 / -1; aspect-ratio: 4 / 3; order: -1; }
    .band--a .gitem:nth-child(2) { aspect-ratio: 4 / 5; }

    .lightbox { grid-template-columns: 1fr; padding: 72px 16px 96px; }
    .lightbox__nav { position: absolute; bottom: 24px; }
    .lightbox__nav--prev { left: calc(50% - 64px); }
    .lightbox__nav--next { right: calc(50% - 64px); }

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

@media (max-width: 560px) {
    .nav__resume { display: none; }
    .nav__name { font-size: 0.7rem; letter-spacing: 0.24em; }
    .hero__actions .btn { width: 100%; }
    .hero__card { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 24px 0 -18px; }
    .about__media { padding-right: 0; padding-bottom: 0; }
    .about__inset { display: none; }
    .comp-grid { grid-template-columns: 1fr; }
    .comp { min-height: 0; }
    .comp__icon { margin-bottom: 32px; }
    .impact__item { padding: 28px 16px 24px; }
    .impact__item:nth-child(odd) { padding-left: 0; }
    .journey__aside { grid-template-columns: 1fr; }
    .contact__list li { grid-template-columns: 20px minmax(0, 1fr); }
    .contact__list .contact__k { display: none; }
    .cform__foot .btn { width: 100%; }
    .footer__top { grid-template-columns: 1fr; gap: 36px; }
    .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* Touch devices: reveal hover-only content */
@media (hover: none) {
    .comp__more { max-height: none; margin-top: 18px; opacity: 1; }
    .gitem::after { opacity: 0.8; }
    .gitem__info { opacity: 1; transform: none; font-size: 1.1rem; }
    .pcard__explore { opacity: 1; transform: none; }
    .pcard__media::after { opacity: 0.8; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .intro-pending .hero [data-hero],
    .intro-pending .hero__word,
    .intro-pending .hero__rule,
    .intro-pending .hero__visual,
    .intro-pending .hero__scroll { opacity: 1; }
    .js .timeline__fill { transform: none; }
}

@media print {
    .nav, .mmenu, .cursor, .scroll-progress, .to-top, .lightbox, .ribbon { display: none !important; }
    .theme-dark { background: #fff; color: #000; }
}
