/* Joshua Daniel Interiors: public site
   Palette from the brand book: Lala Palm (olive), Bushveld Night (deep green), Snow White. */

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/LibreFranklin.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 300; font-display: swap; src: url(/fonts/LibreFranklin-Italic.woff2) format("woff2"); }
@font-face { font-family: "Lexend Zetta"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/LexendZetta.woff2) format("woff2"); }

:root {
    --palm: #5D6349;
    --palm-deep: #4D5039;
    --night: #233539;
    --snow: #F2F0EB;
    --paper: #FBFAF7;
    --ink: #161814;
    --ink-soft: #3E413A;
    --muted: #7A7C72;
    --line: rgba(22, 24, 20, .14);
    --line-light: rgba(242, 240, 235, .22);

    --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    --font-wide: "Lexend Zetta", "Libre Franklin", sans-serif;

    --gutter: clamp(16px, 4vw, 56px);
    --max: 1360px;
    --radius: 22px;
    --radius-sm: 12px;
    --header-h: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--palm); color: var(--snow); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--snow); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--palm); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 980px; }

/* ---------- Type ---------- */
.eyebrow {
    font-family: var(--font-wide);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 18px;
}
.band--olive .eyebrow, .band--night .eyebrow, .band--olive-deep .eyebrow { color: rgba(242, 240, 235, .7); }

.section-title, .page-title {
    font-size: clamp(34px, 5.2vw, 68px);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1.04;
}
.page-title { font-size: clamp(40px, 7vw, 92px); }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; font-weight: 300; color: var(--ink-soft); }
.band--olive .lead, .band--night .lead { color: var(--snow); }
.prose p { color: var(--ink-soft); max-width: 68ch; }
.prose__heading { font-family: var(--font-wide); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin: 40px 0 16px; font-weight: 400; }
.card-title { font-family: var(--font-wide); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin-bottom: 18px; }

.name-title {
    font-weight: 700;
    font-size: clamp(56px, 9vw, 128px);
    line-height: .9;
    letter-spacing: -.045em;
    background: linear-gradient(100deg, #6E6B66 0%, #A19E99 60%, #8C8A85 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.name-title span { display: block; padding-left: .5em; }

/* Logo wordmark (exact vector outlines from the brand artwork), coloured via currentColor */
.wordmark {
    display: block;
    aspect-ratio: 460 / 84;
    background: currentColor;
    -webkit-mask: url(/img/wordmark.svg) no-repeat center / contain;
    mask: url(/img/wordmark.svg) no-repeat center / contain;
}

/* ---------- Buttons & links ---------- */
.button {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 16px 26px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--snow);
    font-family: var(--font-wide);
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { background: var(--palm); border-color: var(--palm); }
.button--light { background: transparent; border-color: var(--snow); color: var(--snow); }
.button--light:hover { background: var(--snow); color: var(--ink); border-color: var(--snow); }
.button .icon { transition: transform .3s var(--ease); }
.button:hover .icon { transform: translateX(4px); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-wide); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
}
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--header-h);
    color: var(--ink);
    transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.site-header[data-mode="solid"], .site-header.is-scrolled {
    background: rgba(251, 250, 247, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.page-home .site-header:not(.is-scrolled) .brand__name { opacity: 0; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { width: 50px; height: auto; stroke-width: 10; }
.brand__name {
    font-family: var(--font-wide); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; line-height: 1.5;
    transition: opacity .4s var(--ease);
}
.brand__name span { display: block; font-size: 8px; letter-spacing: .34em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.nav > a {
    font-family: var(--font-wide); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
    text-decoration: none; position: relative; padding: 6px 0;
}
.nav > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav > a:hover::after, .nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__social { display: flex; gap: 14px; padding-left: clamp(8px, 2vw, 24px); border-left: 1px solid var(--line); }
.nav__social a { display: grid; place-items: center; opacity: .8; transition: opacity .2s; }
.nav__social a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }

/* light header text over dark project heroes */
body:has(.project-hero) .site-header:not(.is-scrolled) { color: var(--snow); }
body:has(.project-hero) .site-header:not(.is-scrolled) .brand__name span { color: rgba(242, 240, 235, .7); }
body:has(.project-hero) .site-header:not(.is-scrolled) .nav__social { border-color: var(--line-light); }

@media (max-width: 860px) {
    :root { --header-h: 64px; }
    .nav-toggle { display: block; position: relative; z-index: 2; }
    .nav {
        position: fixed; inset: 0; z-index: 1;
        flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
        padding: 0 var(--gutter);
        background: var(--palm-deep); color: var(--snow);
        opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    }
    .nav > a { font-family: var(--font-body); font-size: 40px; letter-spacing: -.01em; text-transform: none; font-weight: 300; }
    .nav__social { border: 0; padding: 24px 0 0; gap: 22px; }
    .nav__social .icon { width: 26px; height: 26px; }
    body.nav-open { overflow: hidden; }
    body.nav-open .nav { opacity: 1; visibility: visible; }
    body.nav-open .site-header { color: var(--snow); background: transparent; box-shadow: none; backdrop-filter: none; }
    body.nav-open .brand__name { opacity: 1 !important; }
    body.nav-open .nav-toggle .icon--open { display: none; }
    body.nav-open .nav-toggle .icon--close { display: block; }
    .brand { position: relative; z-index: 2; }
    .brand__name { display: none; }
}

/* ---------- Bands ---------- */
.band--olive { background: var(--palm); color: var(--snow); }
.band--olive-deep { background: var(--palm-deep); color: var(--snow); }
.band--night { background: var(--night); color: var(--snow); }
.band--snow { background: var(--snow); }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section--tight { padding-top: clamp(40px, 5vw, 72px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: clamp(40px, 6vw, 80px); max-width: 980px; }
.section-head__intro { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.band--night .section-head__intro, .band--olive .section-head__intro { color: rgba(242, 240, 235, .75); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: calc(var(--header-h) + 8px) var(--gutter) var(--gutter); display: flex; background: var(--paper); }
.hero__frame {
    position: relative; flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background:
        radial-gradient(120% 90% at 50% 40%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%),
        var(--snow);
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 48px 24px 96px;
}
.hero__logo { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); margin: 0; font-size: inherit; }
.hero__mark { width: clamp(180px, 26vw, 330px); height: auto; color: var(--ink); stroke-width: 8; }
.hero__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) .3s forwards; }
.hero__mark path:first-child { animation-delay: 1.6s; animation-duration: 1.2s; }
.hero__wordmark { width: clamp(260px, 44vw, 600px); color: var(--ink); opacity: 0; animation: rise 1.2s var(--ease) 2s forwards; }
.hero__slogan {
    margin: clamp(28px, 4vw, 48px) 0 0;
    font-family: var(--font-wide); font-size: clamp(10px, 1.1vw, 13px); letter-spacing: .32em; text-transform: uppercase;
    color: var(--palm);
    opacity: 0; animation: rise 1.2s var(--ease) 2.5s forwards;
    text-align: center;
}
.hero__scroll { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 56px; transform: translateX(-50%); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--ink); animation: scrollcue 2.4s var(--ease) 3s infinite; transform: translateY(-100%); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Intro band ---------- */
.intro { padding: clamp(80px, 10vw, 140px) 0; }
.intro__grid { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro__words { list-style: none; padding-right: clamp(24px, 4vw, 56px); border-right: 1px solid var(--line-light); }
.intro__words li { font-family: var(--font-wide); font-size: 13px; letter-spacing: .32em; text-transform: uppercase; line-height: 3; }
.intro__text p:not(.lead):not(.eyebrow) { color: rgba(242, 240, 235, .78); }
.intro__text .lead { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.35; margin-bottom: 28px; }
.intro__portrait { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.intro__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
@media (max-width: 960px) {
    .intro__grid { grid-template-columns: minmax(0, 1fr); }
    .intro__words { display: flex; flex-wrap: wrap; gap: 4px 24px; border-right: 0; border-bottom: 1px solid var(--line-light); padding: 0 0 24px; }
    .intro__words li { line-height: 2; }
    .intro__portrait { max-width: 420px; }
}

/* ---------- Project strips (contents-page layout) ---------- */
/* The space between strips is padding inside each strip (not a flex gap), so there is no dead
   zone between them: whatever is under the pointer is always a strip. site.js marks the strip
   under the pointer .is-active and keeps it active until the pointer enters another strip. */
.strips {
    --strip-gap: clamp(10px, 1.2vw, 18px);
    --half-gap: calc(var(--strip-gap) / 2);
    display: flex; height: clamp(460px, 62vh, 680px); margin: 0 calc(var(--half-gap) * -1) 64px;
}
.strip {
    position: relative; flex: 1 1 0; min-width: 0;
    display: block; text-decoration: none; color: var(--snow);
    transition: flex-grow .7s var(--ease);
}
/* The strip is also a .reveal element, whose transition would otherwise replace flex-grow's. */
.js .strip.reveal {
    transition: opacity 1s var(--ease) calc(var(--i, 0) * 80ms), transform 1s var(--ease) calc(var(--i, 0) * 80ms), flex-grow .7s var(--ease) 0s;
}
.strip__media, .strip__shade { position: absolute; inset: 0 var(--half-gap); border-radius: var(--radius-sm); overflow: hidden; }
.strip__media img {
    width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50%) 50%;
    filter: grayscale(.35) contrast(.98);
    transform: scale(1.04);
    transition: filter .7s var(--ease), transform 1.2s var(--ease);
}
.strip__shade { background: linear-gradient(180deg, rgba(22,24,20,0) 35%, rgba(22,24,20,.72) 100%); opacity: .7; transition: opacity .6s var(--ease); }
.strip__num {
    position: absolute; left: calc(var(--half-gap) + 14px); bottom: 6px;
    font-weight: 600; font-size: clamp(72px, 9vw, 140px); line-height: 1; letter-spacing: -.05em;
    color: var(--snow); mix-blend-mode: normal;
    transition: transform .6s var(--ease), opacity .4s;
    text-shadow: 0 2px 30px rgba(0,0,0,.15);
}
.strip__info {
    position: absolute; left: calc(var(--half-gap) + 24px); right: calc(var(--half-gap) + 24px); bottom: 28px;
    display: flex; flex-direction: column; gap: 10px;
    opacity: 0; transform: translateY(16px);
    transition: opacity .45s var(--ease), transform .6s var(--ease);
    pointer-events: none;
}
.strip__sector { font-family: var(--font-wide); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.strip__title { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.01em; }
.strip__summary { font-size: 15px; line-height: 1.5; opacity: .85; max-width: 38ch; }
.strip__cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 6px; font-family: var(--font-wide); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.strip__caption {
    position: absolute; left: var(--half-gap); right: var(--half-gap); top: calc(100% + 16px);
    font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
    color: var(--ink); text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: opacity .4s;
}
.band--night .strip__caption, .band--olive .strip__caption { color: rgba(242, 240, 235, .85); }

@media (hover: hover) and (min-width: 761px) {
    .strips.has-active .strip { flex-grow: .75; }
    .strips .strip.is-active { flex-grow: 3.2; }
    .strip.is-active .strip__media img { filter: none; transform: scale(1); }
    .strip.is-active .strip__shade { opacity: 1; }
    .strip.is-active .strip__info { opacity: 1; transform: none; transition-delay: .2s; }
    .strip.is-active .strip__num { opacity: 0; transform: translateY(20px); }
    .strip.is-active .strip__caption { opacity: 0; }
    .strips.has-active .strip:not(.is-active) .strip__caption { opacity: .45; }
}
@media (max-width: 1100px) and (min-width: 761px) {
    .strips { height: 540px; }
    .strip__num { font-size: 72px; }
}
@media (max-width: 760px), (hover: none) {
    .strips { --half-gap: 0px; flex-direction: column; height: auto; gap: 18px; margin: 0; }
    .strip { aspect-ratio: 4 / 3; flex: none; }
    .strip__media img { filter: none; transform: none; }
    .strip__shade { opacity: 1; }
    .strip__num { font-size: 64px; left: auto; right: 16px; bottom: auto; top: 6px; }
    .strip__info { opacity: 1; transform: none; left: 18px; right: 18px; bottom: 18px; }
    .strip__summary { display: none; }
    .strip__caption { display: none; }
}
@media (hover: none) and (min-width: 761px) {
    .strips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Testimonials ---------- */
.testimonials { text-align: center; }
.quotes { position: relative; }
.quotes__mark { display: block; font-size: 120px; line-height: .6; height: 50px; color: var(--palm); font-weight: 300; }
.quotes__track { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease), visibility .8s; }
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { margin: 0 0 32px; font-size: clamp(22px, 3vw, 36px); line-height: 1.35; letter-spacing: -.01em; font-weight: 300; }
.quote figcaption { display: flex; flex-direction: column; gap: 6px; }
.quote figcaption strong { font-family: var(--font-wide); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; }
.quote figcaption span { font-size: 14px; color: var(--muted); }
.quotes__dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.quotes__dots button { width: 34px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.quotes__dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); transition: background .3s, height .3s; }
.quotes__dots button.is-active::after { background: var(--ink); height: 2px; }

/* ---------- Contact band ---------- */
.contact-band { padding: clamp(72px, 9vw, 120px) 0; }
.contact-band__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.contact-band__title { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -.02em; max-width: 14ch; }
.contact-band__title em { font-style: italic; }
.contact-band__links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-band__links > a:not(.button) { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: 18px; }
.contact-band__links > a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-band__links .button { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--snow); padding: 80px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.site-footer__brand { display: flex; flex-direction: column; gap: 22px; }
.site-footer__mark { width: 110px; stroke-width: 8; }
.site-footer__brand .wordmark { width: min(300px, 100%); }
.site-footer__brand .eyebrow { color: rgba(242, 240, 235, .55); margin: 0; }
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; gap: 14px; }
.site-footer__nav a { text-decoration: none; font-family: var(--font-wide); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; opacity: .85; overflow-wrap: anywhere; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.site-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(242, 240, 235, .55); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(40px, 6vw, 80px); }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(48px, 6vw, 80px); }
.subnav a {
    font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
    padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px;
    transition: background .3s, color .3s, border-color .3s;
}
.subnav a:hover { background: var(--ink); color: var(--snow); border-color: var(--ink); }
.subnav a span { margin-left: 8px; color: var(--muted); }
.subnav a:hover span { color: rgba(242, 240, 235, .6); }
.subnav--inline { margin-top: 40px; }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-hero__portrait { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--snow); }
.about-hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__role { font-family: var(--font-wide); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin: 22px 0 36px; color: var(--palm); }
@media (max-width: 860px) { .about-hero { grid-template-columns: minmax(0, 1fr); } .about-hero__portrait { max-width: 440px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); }
.split__head .section-title { font-size: clamp(30px, 3.6vw, 48px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.approach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.approach__image { margin: 0; border-radius: var(--radius); overflow: hidden; }
.approach__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.approach .section-title { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 32px; }
@media (max-width: 860px) { .approach { grid-template-columns: minmax(0, 1fr); } .approach__image img { aspect-ratio: 16 / 10; } }

.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.brand-card { padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.brand-card p { color: var(--ink-soft); margin: 0; }
.dash-list { list-style: none; }
.dash-list li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--ink-soft); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 14px; height: 1px; background: currentColor; opacity: .6; }
.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.values > div { padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--ink); color: var(--snow); }
.values > div:last-child { background: var(--snow); color: var(--ink); }
.values__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.values__list li { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.01em; }
.values__list li:not(:last-child)::after { content: "/"; margin: 0 14px; opacity: .35; }
@media (max-width: 960px) {
    .brand-grid, .values { grid-template-columns: minmax(0, 1fr); }
}

.services { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.service { padding: 32px 28px 40px 0; border-bottom: 1px solid var(--line-light); }
.service:not(:nth-child(4n)) { border-right: 1px solid var(--line-light); }
.service:not(:nth-child(4n + 1)) { padding-left: 28px; }
.service__num { display: block; font-family: var(--font-wide); font-size: 11px; letter-spacing: .2em; opacity: .6; margin-bottom: 40px; }
.service h3 { font-size: 22px; margin-bottom: 14px; letter-spacing: -.01em; }
.service p { font-size: 15px; line-height: 1.6; color: rgba(242, 240, 235, .78); margin: 0; }
@media (max-width: 1100px) {
    .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service { padding: 28px 24px 32px !important; border-right: 0 !important; }
    .service:nth-child(odd) { border-right: 1px solid var(--line-light) !important; padding-left: 0 !important; }
}
@media (max-width: 600px) {
    .services { grid-template-columns: minmax(0, 1fr); }
    .service { padding: 28px 0 !important; border-right: 0 !important; }
}

.cv { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.cv__heading { font-family: var(--font-wide); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: var(--palm); margin: 0 0 22px; }
.cv__main .cv__heading:not(:first-child) { margin-top: 64px; }
.cv__side .cv__heading { margin-top: 48px; }
.cv__side > .cv__heading:first-child { margin-top: 0; }
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline__item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline__period { font-size: 14px; color: var(--muted); margin: 3px 0 0; }
.timeline__item h4 { font-size: 22px; letter-spacing: -.01em; }
.timeline__org { margin: 4px 0 14px; font-weight: 500; color: var(--palm); }
.timeline .dash-list li { font-size: 15px; }
@media (max-width: 640px) { .timeline__item { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.awards { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.awards li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.awards__year { grid-row: span 2; font-size: 13px; color: var(--muted); padding-top: 2px; }
.awards strong { font-weight: 500; }
.awards li > span:last-child:not(.awards__year) { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; }
.cv__small { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv__small ul { list-style: none; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 960px) { .cv { grid-template-columns: minmax(0, 1fr); } }

.journey { columns: 2 320px; column-gap: clamp(32px, 5vw, 72px); }
.journey p { break-inside: avoid; }
.journey p:first-child::first-letter { float: left; font-size: 84px; line-height: .8; padding: 8px 12px 0 0; color: var(--palm); font-weight: 300; }

/* ---------- Project detail ---------- */
.project-hero { position: relative; height: min(88svh, 900px); min-height: 520px; display: flex; align-items: flex-end; color: var(--snow); overflow: hidden; background: var(--night); }
.project-hero__media, .project-hero__shade { position: absolute; inset: 0; }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.4s var(--ease) both; }
.project-hero__shade { background: linear-gradient(180deg, rgba(22,24,20,.45) 0%, rgba(22,24,20,0) 30%, rgba(22,24,20,0) 50%, rgba(22,24,20,.6) 100%); }
.project-hero__content { position: relative; padding-bottom: clamp(32px, 5vw, 64px); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.project-tab { display: inline-flex; align-items: stretch; background: var(--palm); border-radius: var(--radius-sm); overflow: hidden; max-width: 100%; animation: rise 1s var(--ease) .3s both; }
.project-tab__num { display: grid; place-items: center; padding: 0 clamp(18px, 2.4vw, 28px); font-size: clamp(56px, 7vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -.05em; background: var(--palm-deep); }
.project-tab > div { padding: clamp(18px, 2.2vw, 28px) clamp(20px, 3vw, 40px); align-self: center; }
.project-tab__title { font-family: var(--font-wide); font-size: clamp(16px, 2.2vw, 28px); letter-spacing: .14em; text-transform: uppercase; font-weight: 300; line-height: 1.3; }
.project-tab__sub { margin: 8px 0 0; font-family: var(--font-wide); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.draft-flag { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; background: #b4572e; font-size: 13px; }

.project-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.project-meta > div { flex: 1 1 200px; padding: 28px 24px 28px 0; }
.project-meta > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.project-meta dt { font-family: var(--font-wide); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.project-meta dd { margin: 0; font-size: 16px; }
@media (max-width: 760px) { .project-meta > div + div { border-left: 0; padding-left: 0; } .project-meta > div { flex-basis: 50%; padding: 18px 0; } }
.project-about { padding: clamp(56px, 8vw, 120px) 0; }
.project-about__summary { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; letter-spacing: -.01em; }

.gallery-section { padding: clamp(40px, 6vw, 80px) 0; }
.gallery-section.band--snow { padding: clamp(56px, 7vw, 100px) 0; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
.gallery-head .eyebrow { margin: 0; color: var(--ink); }
.gallery-head__count { font-family: var(--font-wide); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.gallery { display: grid; gap: clamp(12px, 1.6vw, 22px); }
.gallery__item { margin: 0; }
.gallery__item a { display: block; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; background: var(--snow); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .3s; }
.gallery__item a:hover img { transform: scale(1.035); }
.gallery__item figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.gallery--images { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; }
.gallery--images .gallery__item { grid-column: span 6; }
.gallery--images .gallery__item a { aspect-ratio: 3 / 2; }
.gallery--images .gallery__item:nth-child(5n + 1) { grid-column: span 12; }
.gallery--images .gallery__item:nth-child(5n + 1) a { aspect-ratio: 16 / 8; }
.gallery--images .gallery__item.is-portrait { grid-column: span 4; grid-row: span 2; }
.gallery--images .gallery__item.is-portrait a { aspect-ratio: auto; height: calc(100% - 32px); }
.gallery--drawings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--drawings .gallery__item a { background: #fff; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.gallery--drawings .gallery__item img { object-fit: contain; padding: 14px; }
.gallery--drawings .gallery__item a:hover img { transform: scale(1.02); }
.gallery--materials { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery--materials .gallery__item a { aspect-ratio: 3 / 4; border: 1px solid var(--line); }
.gallery--materials figcaption strong { display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 760px) {
    .gallery--images { grid-template-columns: minmax(0, 1fr); }
    .gallery--images .gallery__item, .gallery--images .gallery__item.is-portrait { grid-column: auto !important; grid-row: auto; }
    .gallery--images .gallery__item a, .gallery--images .gallery__item.is-portrait a { aspect-ratio: 4 / 3 !important; height: auto; }
    .gallery--images .gallery__item.is-portrait a { aspect-ratio: 4 / 5 !important; }
    .gallery--drawings { grid-template-columns: minmax(0, 1fr); }
}

.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.project-nav__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.project-nav__link .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.project-nav__link--next { text-align: right; align-items: flex-end; }
.project-nav__title { font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -.01em; transition: color .3s; }
.project-nav__link:hover .project-nav__title { color: var(--palm); }
.project-nav__all { font-family: var(--font-wide); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; }
.project-nav__all:hover { background: var(--ink); color: var(--snow); }
@media (max-width: 640px) { .project-nav { grid-template-columns: 1fr 1fr; } .project-nav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16, 18, 15, .96); color: var(--snow); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 0 24px; min-width: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; transition: opacity .25s; }
.lightbox__stage img.is-loading { opacity: .2; }
.lightbox__stage figcaption { display: flex; gap: 24px; justify-content: space-between; width: 100%; max-width: 900px; padding-top: 16px; font-size: 14px; }
.lightbox__count { font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; opacity: .6; white-space: nowrap; }
.lightbox button { background: none; border: 0; cursor: pointer; display: grid; place-items: center; width: 56px; height: 56px; justify-self: center; border-radius: 50%; transition: background .2s; }
.lightbox button:hover { background: rgba(242, 240, 235, .1); }
.lightbox button .icon { width: 26px; height: 26px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
@media (max-width: 640px) {
    .lightbox { grid-template-columns: minmax(0, 1fr); }
    .lightbox__prev, .lightbox__next { position: absolute; bottom: 16px; }
    .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
    .lightbox__stage { padding: 64px 12px 96px; }
    .lightbox__stage figcaption { flex-direction: column; gap: 4px; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact .page-title { font-size: clamp(40px, 5.6vw, 76px); margin-bottom: 28px; }
.contact-list { list-style: none; margin-top: 48px; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list__static { display: flex; gap: 20px; align-items: center; padding: 20px 0; text-decoration: none; overflow-wrap: anywhere; }
.contact-list .icon { width: 24px; height: 24px; color: var(--palm); }
.contact-list small { display: block; font-family: var(--font-wide); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-list a span { font-size: 18px; transition: color .3s; }
.contact-list a:hover span { color: var(--palm); }
.contact__form { background: var(--snow); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); }
.form__title { font-size: 28px; margin-bottom: 28px; letter-spacing: -.01em; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.field label small { text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink);
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--palm); box-shadow: 0 0 0 3px rgba(93, 99, 73, .18); }
.field .input-validation-error { border-color: #a4442a; }
.field__error { color: #a4442a; font-size: 13px; }
.form__errors ul { list-style: none; color: #a4442a; margin-bottom: 16px; }
.form__errors.validation-summary-valid { display: none; }
.form__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 40px 0; }
.form-success__mark { width: 140px; margin: 0 auto 28px; color: var(--palm); stroke-width: 8; }
.form-success__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s var(--ease) .2s forwards; }
.form-success h2 { font-size: 40px; margin-bottom: 12px; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* ---------- Error ---------- */
.error-page { text-align: center; min-height: 80svh; display: flex; align-items: center; }
.error-page__mark { width: 160px; margin: 0 auto 32px; color: var(--palm); stroke-width: 8; }
.error-page .lead { margin: 24px auto 40px; max-width: 40ch; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .hero__mark path { stroke-dashoffset: 0; }
    .js .reveal { opacity: 1; transform: none; }
}
