/* ==========================================================================
   STRECHY MEDVECKÝ — 2026 identity stylesheet
   Monochrome-warm, dark canvas, geometric display type (echoes the logo).
   Self-contained: does not depend on about.css.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
    /* Surfaces */
    --ink: #08080a;
    --ink-1: #0d0d10;
    --ink-2: #15151a;
    --ink-3: #1e1e24;

    /* Paper (inverted sections) */
    --paper: #f2efe9;
    --paper-2: #e5dfd5;

    /* Ink-on-dark text */
    --text: #ece9e3;
    --muted: #918d85;
    --muted-2: #6a6762;

    /* Warm neutral derived from the logo's secondary tone (#9b8579) */
    --clay: #c3a48e;
    --clay-deep: #9b8579;

    --line: rgba(236, 233, 227, 0.13);
    --line-soft: rgba(236, 233, 227, 0.07);
    --line-dark: rgba(8, 8, 10, 0.14);

    /* Type */
    --font-display: 'Jost', 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;

    /* Rhythm */
    --gutter: clamp(20px, 5vw, 72px);
    --max: 1560px;
    --section-y: clamp(88px, 13vh, 180px);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);
    --dur: 0.7s;

    --nav-h: 78px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
    background-color: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(0.975rem, 0.9rem + 0.25vw, 1.075rem);
    line-height: 1.65;
    font-weight: 350;
    letter-spacing: 0.002em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* `clip` (not `hidden`) so body never becomes a scrollport — keeps position:sticky alive */
    overflow-x: clip;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

ul,
ol {
    list-style: none;
}

::selection {
    background-color: var(--clay);
    color: var(--ink);
}

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

/* Grain — one fixed layer over the whole document */
body::after {
    content: '';
    position: fixed;
    inset: -50%;
    z-index: 900;
    pointer-events: none;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- 3. Typography ------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 300;
    /* Slovak caps carry carons and acutes — never go below ~1.0 on multi-line headings */
    line-height: 1.04;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.display-xl {
    font-size: clamp(2.9rem, 10.5vw, 10.5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.94;
}

.display-l {
    font-size: clamp(2.1rem, 6vw, 5.4rem);
    text-transform: uppercase;
    line-height: 1.02;
}

.display-m {
    font-size: clamp(1.6rem, 3.2vw, 2.9rem);
    line-height: 1.06;
}

.outline {
    -webkit-text-stroke: 1px var(--clay);
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lead {
    font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.6rem);
    line-height: 1.5;
    font-weight: 350;
    letter-spacing: -0.008em;
    color: var(--text);
}

p {
    color: var(--muted);
    max-width: 62ch;
}

p strong {
    color: var(--text);
    font-weight: 500;
}

/* Eyebrow / label */
.label {
    display: inline-flex;
    align-items: center;
    gap: 0.65em;
    font-family: var(--font-body);
    font-size: 0.688rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--clay);
}

.label::before {
    content: '';
    width: 26px;
    height: 1px;
    background-color: currentColor;
    opacity: 0.7;
}

.label--plain::before {
    display: none;
}

/* --- 4. Layout ---------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.section--tight {
    padding-block: clamp(56px, 8vh, 104px);
}

.rule {
    height: 1px;
    background-color: var(--line);
    border: 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 92px);
}

.split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sticky-head {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    align-self: start;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1200;
    padding: 10px 18px;
    background-color: var(--paper);
    color: var(--ink);
    font-size: 0.85rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* --- 5. Buttons --------------------------------------------------------- */
.btn {
    --btn-fg: var(--ink);
    --btn-bg: var(--paper);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 1.05em 1.6em;
    border-radius: 999px;
    background-color: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s var(--ease), color 0.35s var(--ease);
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--clay);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn__arrow {
    display: grid;
    place-items: center;
    width: 1.15em;
    height: 1.15em;
    overflow: hidden;
}

.btn__arrow svg {
    width: 100%;
    transition: transform 0.45s var(--ease);
}

.btn:hover .btn__arrow svg {
    transform: translate(120%, -120%);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost:hover {
    --btn-fg: var(--ink);
}

.btn--dark {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
}

/* Text link with sweeping underline */
.link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    color: var(--text);
}

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

.link:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

/* --- 6. Progress + navigation ------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    height: 2px;
    width: 100%;
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    background-color: var(--clay);
    pointer-events: none;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.5s var(--ease), background-color 0.5s var(--ease),
        backdrop-filter 0.5s, box-shadow 0.5s;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.nav.is-stuck {
    background-color: rgba(8, 8, 10, 0.72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: 0 1px 0 var(--line-soft);
}

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

/* Logo — the one fixed element of the brand */
.brand {
    display: block;
    flex: 0 0 auto;
    transition: opacity 0.4s var(--ease);
}

.brand img {
    height: clamp(30px, 3.4vw, 40px);
    width: auto;
    /* black artwork on transparency → white on the dark canvas */
    filter: invert(1);
}

.brand:hover {
    opacity: 0.65;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 40px);
}

.nav__link {
    position: relative;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.35s var(--ease);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background-color: var(--clay);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link.is-current {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-current::after {
    transform: scaleX(1);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.7em 1.25em;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s;
}

.nav__cta:hover {
    background-color: var(--paper);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--paper);
}

.nav__cta svg {
    width: 13px;
    flex: 0 0 auto;
}

/* Burger */
.burger {
    display: none;
    position: relative;
    z-index: 1002;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line);
}

.burger i {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background-color: var(--text);
    transform: translateX(-50%);
    transition: transform 0.45s var(--ease), opacity 0.3s;
}

.burger i:nth-child(1) {
    top: 19px;
}

.burger i:nth-child(2) {
    top: 25px;
}

body.menu-open .burger i:nth-child(1) {
    transform: translateX(-50%) translateY(3px) rotate(45deg);
}

body.menu-open .burger i:nth-child(2) {
    transform: translateX(-50%) translateY(-3px) rotate(-45deg);
}

/* Fullscreen mobile menu */
.overlay-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
    background-color: var(--ink-1);
    clip-path: circle(0% at calc(100% - 46px) 40px);
    transition: clip-path 0.75s var(--ease);
    visibility: hidden;
}

body.menu-open .overlay-menu {
    clip-path: circle(150% at calc(100% - 46px) 40px);
    visibility: visible;
}

.overlay-menu a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 3.6rem);
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.3s;
}

.overlay-menu a:hover {
    color: var(--clay);
}

body.menu-open .overlay-menu a {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .overlay-menu a:nth-child(1) {
    transition-delay: 0.16s;
}

body.menu-open .overlay-menu a:nth-child(2) {
    transition-delay: 0.22s;
}

body.menu-open .overlay-menu a:nth-child(3) {
    transition-delay: 0.28s;
}

body.menu-open .overlay-menu a:nth-child(4) {
    transition-delay: 0.34s;
}

body.menu-open .overlay-menu a:nth-child(5) {
    transition-delay: 0.4s;
}

.overlay-menu__foot {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    font-size: 0.85rem;
    color: var(--muted);
}

.overlay-menu__foot a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
    transform: none;
}

/* --- 7. Hero ------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--nav-h) + 40px);
    overflow: hidden;
    isolation: isolate;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.06);
    animation: heroDrift 24s var(--ease) forwards;
    filter: grayscale(0.35) contrast(1.05);
}

@keyframes heroDrift {
    to {
        transform: scale(1);
    }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to right, rgba(8, 8, 10, 0.62), rgba(8, 8, 10, 0.18) 62%, transparent),
        linear-gradient(to top, var(--ink) 1%, rgba(8, 8, 10, 0.74) 34%, rgba(8, 8, 10, 0.5) 72%, rgba(8, 8, 10, 0.78) 100%),
        radial-gradient(120% 80% at 15% 100%, rgba(155, 133, 121, 0.18), transparent 60%);
}

.hero__body {
    padding-bottom: clamp(28px, 4vh, 52px);
}

.hero__title {
    margin-top: clamp(18px, 3vh, 34px);
}

.hero__title .row {
    display: block;
    overflow: hidden;
    /* the tight line-height would clip Í/Ý/Č diacritics inside the reveal mask */
    padding-top: 0.16em;
    margin-top: -0.16em;
}

.js .hero__title .row > span {
    display: block;
    transform: translateY(105%);
    transition: transform 1.15s var(--ease);
}

.is-loaded .hero__title .row > span {
    transform: translateY(0);
}

.is-loaded .hero__title .row:nth-child(2) > span {
    transition-delay: 0.1s;
}

.is-loaded .hero__title .row:nth-child(3) > span {
    transition-delay: 0.2s;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: clamp(30px, 5vh, 58px);
    padding-top: 26px;
    border-top: 1px solid var(--line);
    transition: opacity 0.9s var(--ease) 0.55s, transform 0.9s var(--ease) 0.55s;
}

.js .hero__meta {
    opacity: 0;
    transform: translateY(16px);
}

.is-loaded .hero__meta {
    opacity: 1;
    transform: none;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: clamp(24px, 4vw, 68px);
}

.hero__fact dt {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 7px;
}

.hero__fact dd {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.35vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text);
}

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

.hero__cue {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(120px, 22vh, 210px);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    writing-mode: vertical-rl;
}

.hero__cue::after {
    content: '';
    width: 1px;
    height: 62px;
    background: linear-gradient(to bottom, var(--clay), transparent);
    animation: cue 2.4s var(--ease-io) infinite;
}

@keyframes cue {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    45% {
        transform: scaleY(1);
        transform-origin: top;
    }

    55% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* --- 8. Marquee --------------------------------------------------------- */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 18px;
    overflow: hidden;
    background-color: var(--ink-1);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: slide 42s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.marquee__group span {
    display: inline-flex;
    align-items: center;
    gap: clamp(22px, 3vw, 44px);
    padding-inline: clamp(11px, 1.5vw, 22px);
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.5vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}

.marquee__group span::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--clay);
    flex: 0 0 auto;
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* --- 9. Manifesto / index ---------------------------------------------- */
.manifesto__lead {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 3.05rem);
    font-weight: 300;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 26ch;
}

.manifesto__lead em {
    font-style: normal;
    color: var(--clay);
}

.manifesto__copy {
    display: grid;
    gap: 22px;
    margin-top: 6px;
}

.index-list {
    margin-top: clamp(48px, 8vh, 92px);
    border-top: 1px solid var(--line);
}

.index-list__row {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(16px, 3vw, 48px);
    align-items: baseline;
    padding-block: clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
}

.index-list__num {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--clay);
    font-variant-numeric: tabular-nums;
}

.index-list__title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.index-list__row p {
    margin: 0;
    font-size: 0.95rem;
}

/* --- 10. Services ------------------------------------------------------ */
.svc {
    border-top: 1px solid var(--line);
}

.svc__row {
    position: relative;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(18px, 3vw, 56px);
    padding-block: clamp(34px, 5vw, 62px);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.6s var(--ease);
}

.svc__row::before {
    content: '';
    position: absolute;
    inset: 0 calc(var(--gutter) * -0.5);
    background: linear-gradient(to right, rgba(195, 164, 142, 0.07), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}

.svc__row:hover::before {
    opacity: 1;
}

.svc__num {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.4rem);
    font-weight: 300;
    color: var(--muted-2);
    font-variant-numeric: tabular-nums;
    transition: color 0.5s var(--ease);
}

.svc__row:hover .svc__num {
    color: var(--clay);
}

.svc__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -0.018em;
    line-height: 1.06;
}

.svc__title small {
    display: block;
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clay);
}

.svc__body p {
    max-width: 52ch;
}

.svc__points {
    display: grid;
    gap: 11px;
    margin-top: 22px;
}

.svc__points li {
    position: relative;
    padding-left: 26px;
    font-size: 0.94rem;
    color: var(--muted);
}

.svc__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 13px;
    height: 1px;
    background-color: var(--clay);
}

/* Cursor-following preview (desktop only) */
.svc__preview {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 800;
    width: 20vw;
    max-width: 300px;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.9);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.svc__preview.is-visible {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
}

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

/* --- 11. Full-bleed feature ------------------------------------------- */
.feature {
    position: relative;
    min-height: min(84vh, 720px);
    display: flex;
    align-items: flex-end;
    padding-block: clamp(56px, 10vh, 120px);
    overflow: hidden;
    isolation: isolate;
}

.feature__media {
    position: absolute;
    inset: -8% 0;
    z-index: -2;
}

.feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.04);
    will-change: transform;
}

.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to right, rgba(8, 8, 10, 0.8), rgba(8, 8, 10, 0.35) 55%, rgba(8, 8, 10, 0.05)),
        linear-gradient(to top, var(--ink) 0%, rgba(8, 8, 10, 0.55) 45%, rgba(8, 8, 10, 0.28) 100%);
}

.feature__quote {
    /* the photo has bright timber behind parts of the line */
    text-shadow: 0 2px 34px rgba(8, 8, 10, 0.6);
    max-width: 20ch;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.4vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.022em;
    text-transform: uppercase;
}

.feature__note {
    text-shadow: 0 1px 20px rgba(8, 8, 10, 0.7);
    margin-top: 24px;
    max-width: 44ch;
    color: var(--text);
    opacity: 0.85;
}

/* --- 12. Process ------------------------------------------------------- */
.process {
    background-color: var(--ink-1);
}

.steps {
    position: relative;
    margin-top: clamp(40px, 6vh, 72px);
    padding-left: clamp(0px, 4vw, 56px);
}

.steps::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background-color: var(--line);
}

.steps__fill {
    position: absolute;
    left: 0;
    top: 6px;
    width: 1px;
    background: linear-gradient(to bottom, var(--clay), var(--clay-deep));
    height: var(--fill, 0%);
    max-height: calc(100% - 12px);
    transition: height 0.4s linear;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(14px, 3vw, 48px);
    padding-block: clamp(28px, 4vw, 46px);
    border-bottom: 1px solid var(--line-soft);
    transition: opacity 0.6s var(--ease);
}

.steps.is-enhanced .step {
    opacity: 0.5;
}

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

.step::before {
    content: '';
    position: absolute;
    left: calc(clamp(0px, 4vw, 56px) * -1 - 3.5px);
    top: clamp(34px, 4.4vw, 54px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ink-1);
    box-shadow: inset 0 0 0 1px var(--muted-2);
    transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.step.is-active::before {
    background-color: var(--clay);
    box-shadow: inset 0 0 0 1px var(--clay), 0 0 0 5px rgba(195, 164, 142, 0.14);
    transform: scale(1.15);
}

.step__index {
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--clay);
    margin-bottom: 12px;
}

.step__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 2.15rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -0.015em;
}

/* --- 13. Gallery ------------------------------------------------------- */
.gallery__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 5vh, 58px);
}

.gallery__grid {
    columns: 3;
    column-gap: clamp(10px, 1.2vw, 18px);
}

.tile {
    display: block;
    position: relative;
    width: 100%;
    margin-bottom: clamp(10px, 1.2vw, 18px);
    break-inside: avoid;
    overflow: hidden;
    border-radius: 3px;
    background-color: var(--ink-2);
    cursor: zoom-in;
}

.tile img {
    width: 100%;
    height: auto;
    filter: grayscale(0.25) brightness(0.92);
    transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
}

.tile:hover img {
    transform: scale(1.045);
    filter: grayscale(0) brightness(1);
}

.tile__meta {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.82), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.tile:hover .tile__meta,
.tile:focus-visible .tile__meta {
    opacity: 1;
    transform: none;
}

.tile__meta span {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.tile__meta i {
    font-family: var(--font-display);
    font-style: normal;
    font-size: 0.72rem;
    color: var(--clay);
    font-variant-numeric: tabular-nums;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 56px);
    background-color: rgba(6, 6, 8, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
}

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

.lightbox__figure {
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: scale(0.97);
    transition: transform 0.5s var(--ease);
}

.lightbox.is-open .lightbox__figure {
    transform: scale(1);
}

.lightbox__figure img {
    max-height: 76vh;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    object-fit: contain;
    border-radius: 3px;
}

.lightbox__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.8rem;
    color: var(--muted);
}

.lightbox__caption b {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--clay);
    font-variant-numeric: tabular-nums;
}

.lightbox__btn {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--line);
    background-color: rgba(8, 8, 10, 0.5);
    transform: translateY(-50%);
    transition: background-color 0.35s, color 0.35s;
}

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

.lightbox__btn svg {
    width: 17px;
}

.lightbox__btn--prev {
    left: clamp(10px, 2vw, 28px);
}

.lightbox__btn--next {
    right: clamp(10px, 2vw, 28px);
}

.lightbox__close {
    position: absolute;
    top: clamp(14px, 2.5vw, 30px);
    right: clamp(14px, 2.5vw, 30px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s;
}

.lightbox__close:hover {
    color: var(--text);
}

/* --- 14. Quote --------------------------------------------------------- */
.quote {
    text-align: center;
}

.quote blockquote {
    max-width: 22ch;
    margin-inline: auto;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4.6vw, 3.6rem);
    font-weight: 300;
    line-height: 1.16;
    letter-spacing: -0.022em;
    text-wrap: balance;
}

.quote blockquote span {
    color: var(--clay);
}

.quote figcaption {
    margin-top: 34px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* A thin rule reads cleaner than a glyph in a circle — and has no baseline quirks */
.quote__mark {
    width: 1px;
    height: clamp(38px, 6vh, 62px);
    margin: 0 auto clamp(26px, 4vh, 42px);
    background: linear-gradient(to bottom, transparent, var(--clay));
}

/* --- 15. Contact (inverted) ------------------------------------------- */
.contact {
    background-color: var(--paper);
    color: var(--ink);
}

.contact .label {
    color: var(--clay-deep);
}

.contact p {
    color: #55524d;
}

.contact__title {
    font-size: clamp(2.1rem, 7vw, 6.2rem);
    text-transform: uppercase;
    line-height: 1.0;
    letter-spacing: -0.025em;
}

.contact__title .outline {
    -webkit-text-stroke: 1px var(--ink);
}

.contact__top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: end;
    padding-bottom: clamp(40px, 6vh, 72px);
    border-bottom: 1px solid var(--line-dark);
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    padding-top: clamp(36px, 5vh, 60px);
}

.contact__col h3 {
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clay-deep);
    margin-bottom: 20px;
}

.contact__col ul {
    display: grid;
    gap: 12px;
}

.contact__col li {
    font-size: 0.95rem;
    color: #55524d;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-dark);
}

.contact__col li:last-child {
    border-bottom: 0;
}

.contact__big {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 2.1rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.15;
}

.contact__big + .contact__big {
    margin-top: 10px;
}

.contact__addr {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.75;
    color: #55524d;
}

.contact__addr strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

/* .link defaults to the on-dark text colour — re-point it for the paper section */
.contact .link {
    color: var(--ink);
}

.contact .link:hover {
    color: var(--clay-deep);
}

.contact .link::after {
    background-color: currentColor;
}

/* --- 16. Footer -------------------------------------------------------- */
.footer {
    padding-block: clamp(56px, 8vh, 96px) 30px;
    background-color: var(--ink);
}

.footer__brand {
    display: block;
    width: fit-content;
    margin-inline: auto;
}

.footer__brand img {
    height: clamp(52px, 8vw, 84px);
    width: auto;
    filter: invert(1);
    opacity: 0.9;
    transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}

.footer__brand:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

.footer__tag {
    margin: 26px auto 0;
    max-width: 44ch;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--text);
}

.footer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    margin-top: clamp(44px, 7vh, 76px);
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.76rem;
    color: var(--muted-2);
}

.footer__bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer__bar a {
    color: var(--muted);
    transition: color 0.3s;
}

.footer__bar a:hover {
    color: var(--text);
}

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.to-top svg {
    width: 12px;
    transition: transform 0.4s var(--ease);
}

.to-top:hover svg {
    transform: translateY(-3px);
}

/* --- 17. Reveal animations -------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.js [data-reveal='mask'] {
    clip-path: inset(0 0 100% 0);
    opacity: 1;
    transform: none;
    transition: clip-path 1.1s var(--ease);
}

.js [data-reveal='mask'].is-in {
    clip-path: inset(0 0 0 0);
}

/* --- 18. Responsive --------------------------------------------------- */
@media (max-width: 1180px) {
    .gallery__grid {
        columns: 2;
    }

    .hero__cue {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --nav-h: 68px;
    }

    .nav__menu {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav__cta span.hide-sm {
        display: none;
    }

    .split,
    .split--even,
    .contact__top,
    .step {
        grid-template-columns: minmax(0, 1fr);
    }

    .sticky-head {
        position: static;
    }

    .svc__row,
    .index-list__row {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .svc__body,
    .index-list__row p {
        grid-column: 2 / -1;
    }

    .contact__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .svc__preview {
        display: none;
    }
}

@media (max-width: 720px) {
    .hero__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 24px;
    }

    .hero__meta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .gallery__grid {
        columns: 1;
    }

    .lightbox__btn {
        width: 46px;
        height: 46px;
        top: auto;
        bottom: 14px;
        transform: none;
    }

    .lightbox__btn--prev {
        left: 50%;
        margin-left: -54px;
    }

    .lightbox__btn--next {
        right: 50%;
        margin-right: -54px;
    }

    .lightbox__figure img {
        max-height: 64vh;
    }

    .footer__bar {
        justify-content: center;
        text-align: center;
    }
}

/* --- 19. Motion / print ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js [data-reveal],
    .js .hero__title .row > span,
    .js .hero__meta,
    .steps.is-enhanced .step {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    .marquee__track {
        animation: none;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .nav,
    .hero__media,
    .hero__scrim,
    .marquee,
    .lightbox,
    .svc__preview,
    .scroll-progress {
        display: none !important;
    }
}
