/* Macovel — group holding site.
   Family system shared with Re:atom: two inks, hairlines, square corners,
   uppercase Space Grotesk display, JetBrains Mono for anything that labels. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
    font-family: 'Space Grotesk Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url('../fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
    --black: #000;
    --white: #fff;
    --font-display: 'Space Grotesk Variable', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
    --gutter: 20px;
    --container: 1600px;
    --section: 96px;
    --row: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 768px) {
    :root {
        --gutter: 40px;
        --section: 144px;
        --row: 56px;
    }
}

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

html {
    background: var(--black);
    color-scheme: dark;
    scroll-behavior: smooth;
    scrollbar-color: rgba(255, 255, 255, 0.28) #000;
    scrollbar-width: thin;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    line-height: 1.625;
    caret-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

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

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

svg {
    display: block;
}

::selection {
    background: #fff;
    color: #000;
}

.band--light ::selection {
    background: #000;
    color: #fff;
}

:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border: 3px solid #000;
    border-radius: 999px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: #fff;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: translateY(-200%);
    transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

/* Film grain over the whole page */
.noise {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

.band {
    position: relative;
    padding-block: var(--section);
    overflow: clip;
}

.band--dark {
    --ink: #fff;
    --ground: #000;
    --hair: rgba(255, 255, 255, 0.1);
    --copy: rgba(255, 255, 255, 0.7);
    --dim: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    background:
        radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, 0.045), transparent 55%),
        #000;
}

.band--light {
    --ink: #000;
    --ground: #fff;
    --hair: rgba(0, 0, 0, 0.1);
    --copy: rgba(0, 0, 0, 0.64);
    --dim: rgba(0, 0, 0, 0.58);
    color: var(--ink);
    background: #fff;
}

/* Hairline that brightens toward the middle, in the band's ink */
.rule-top::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor 35%, currentColor 65%, transparent);
    opacity: 0.22;
    pointer-events: none;
}

/* ---------- Type roles ---------- */
.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.375;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.micro {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.375;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.display,
.headline {
    font-weight: 700;
    text-transform: uppercase;
}

.display {
    font-size: 12.4vw;
    line-height: 0.92;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .display {
        font-size: 9.4vw;
    }
}

@media (min-width: 1024px) {
    .display {
        font-size: min(7.2vw, 7rem);
    }
}

.headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
}

/* Lines that wipe up from their own baseline */
.line {
    display: block;
    overflow: hidden;
    padding-top: 0.14em;
    margin-top: -0.14em;
}

.line > span {
    display: inline-block;
    will-change: transform;
}

/* One outlined line per headline: the counter-form becomes the figure */
@supports (-webkit-text-stroke: 1px #fff) {
    .outline {
        color: transparent;
        -webkit-text-stroke: 1.5px var(--ink, #fff);
    }
}

.lead {
    font-size: clamp(1.375rem, 2.1vw, 2rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.copy {
    color: var(--copy);
    max-width: 44ch;
    text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    line-height: 1.375;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease),
        transform 0.6s var(--ease-spring);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease);
}

.btn:hover svg {
    transform: translate(2px, -2px);
}

.btn--down:hover svg {
    transform: translate(2px, 2px);
}

.btn--solid {
    background: var(--ink, #fff);
    color: var(--ground, #000);
}

.btn--ghost {
    border-color: color-mix(in srgb, var(--ink, #fff) 30%, transparent);
    color: var(--ink, #fff);
}

.btn--ghost:hover {
    border-color: var(--ink, #fff);
}

.btn--outline {
    padding: 10px 20px;
    border-color: currentColor;
}

.btn--outline:hover {
    background: #fff;
    color: #000;
}

.btn.is-pulled {
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease),
        transform 0.4s var(--ease);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    color: #fff;
    mix-blend-mode: difference;
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 20px;
}

.brand {
    display: block;
    width: 150px;
    flex: none;
}

.brand svg {
    width: 100%;
    height: auto;
    fill: currentColor;
}

@media (min-width: 768px) {
    .brand {
        width: 176px;
    }
}

.main-nav {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    transition: opacity 0.3s var(--ease);
}

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

.nav-link:hover::after,
.nav-link[aria-current='true']::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav:has(.nav-link[aria-current='true']) .nav-link:not([aria-current='true']) {
    opacity: 0.6;
}

.main-nav .nav-link:hover {
    opacity: 1 !important;
}

.site-header .btn--outline {
    display: none;
}

.menu-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
}

.menu-btn svg {
    width: 28px;
    height: 28px;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        margin-left: auto;
    }

    .site-header .btn--outline {
        display: inline-flex;
    }

    .menu-btn {
        display: none;
    }
}

/* Below 1024px a headline would run straight through the logo under
   difference blending, so past the hero the bar takes the ink of the band
   under it and the page fades out beneath it (data-over is set in site.js). */
@media (max-width: 1023px) {
    .site-header[data-over='dark'],
    .site-header[data-over='light'] {
        mix-blend-mode: normal;
    }

    .site-header[data-over='dark'] {
        color: #fff;
        background: linear-gradient(#000 62%, transparent);
    }

    .site-header[data-over='light'] {
        color: #000;
        background: linear-gradient(#fff 62%, transparent);
    }

    .site-header[data-over='dark'] .site-header__bar,
    .site-header[data-over='light'] .site-header__bar {
        padding-bottom: 32px;
    }
}

/* ---------- Mobile menu ---------- */
.menu {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #000;
    color: #fff;
}

.menu::backdrop {
    background: #000;
}

.menu[open] {
    display: flex;
    flex-direction: column;
    animation: menu-in 0.45s var(--ease);
}

@keyframes menu-in {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.menu__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--gutter);
}

.menu__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-inline: var(--gutter);
}

.menu__list a {
    display: block;
    padding-block: 6px;
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.menu__foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px var(--gutter);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Hero: pinned stage with a scroll runway ---------- */
.hero {
    position: relative;
    --ink: #fff;
    --ground: #000;
    background: #000;
}

.hero-stage {
    height: 260vh;
    height: calc(100lvh + 160vh);
}

.hero-view {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Without WebGL the flat name hangs above and to the right of the copy */
.hero-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: start end;
    padding: 17vh var(--gutter) 0;
}

.hero-fallback svg {
    width: min(100%, 40vw + 120px);
    height: auto;
    fill: #fff;
    opacity: 0.92;
    filter: drop-shadow(0 0 36px rgba(255, 255, 255, 0.22));
}

html:not(.js) .hero-fallback,
html.no-webgl .hero-fallback {
    display: grid;
}

html.no-webgl #hero-canvas {
    display: none;
}

/* Protects the copy from the scene: floor to black below, dark at the left on wide screens */
.hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, #000 4%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0) 66%);
}

@media (min-width: 1024px) {
    .hero-shade {
        background:
            linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0) 60%),
            linear-gradient(to top, #000 2%, rgba(0, 0, 0, 0.6) 24%, rgba(0, 0, 0, 0) 52%);
    }
}

.hero-copy {
    position: absolute;
    inset: 0 0 auto 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 96px;
    padding-bottom: 28px;
}

.hero-sub {
    margin-top: 28px;
    max-width: 40ch;
    color: rgba(255, 255, 255, 0.74);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

.hero-meta span:nth-child(2) {
    display: none;
}

.hero-meta .scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-meta .scroll-cue svg {
    width: 12px;
    height: 12px;
    animation: scroll-cue 2.4s var(--ease) infinite;
}

@keyframes scroll-cue {
    0%,
    100% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(5px);
    }
}

@media (min-width: 768px) {
    .hero-copy {
        padding-bottom: 36px;
    }

    .hero-sub {
        margin-top: 36px;
    }

    .hero-meta span:nth-child(2) {
        display: inline;
    }
}

/* The line under the finished name, once the letters have arrived */
.hero-caption {
    position: absolute;
    inset: calc(50% + 9vw + 36px) 0 auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    pointer-events: none;
    padding-inline: var(--gutter);
    text-wrap: balance;
}

/* Wide screens: the name ends frontal and centred, the caption sits just under it */
@media (min-width: 768px) {
    .hero-caption {
        inset: calc(50% + 5.4vw + 44px) 0 auto 0;
    }
}

/* Entrance: lines wipe up, the rest settles after them */
@media (prefers-reduced-motion: no-preference) {
    .hero-title .line > span {
        animation: line-up 1.1s var(--ease) both;
    }

    .hero-title .line:nth-child(2) > span {
        animation-delay: 0.09s;
    }

    .hero-title .line:nth-child(3) > span {
        animation-delay: 0.18s;
    }

    .hero-sub,
    .hero-actions,
    .hero-meta {
        animation: settle 1s var(--ease) 0.45s both;
    }

    .hero-actions {
        animation-delay: 0.55s;
    }

    .hero-meta {
        animation-delay: 0.7s;
    }
}

@keyframes line-up {
    from {
        transform: translateY(108%);
    }
}

@keyframes settle {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

/* Short phones: the second button yields to the scroll cue */
@media (max-width: 767px) and (max-height: 719px) {
    .hero-actions .btn--ghost {
        display: none;
    }
}

/* Landscape phones: no pin, the hero simply flows */
@media (max-width: 1023px) and (max-height: 519px) {
    .hero-stage {
        height: auto;
    }

    .hero-view {
        position: relative;
        height: auto;
    }

    .hero-copy {
        position: relative;
        height: auto;
        min-height: 100svh;
    }

    .hero-caption {
        display: none;
    }
}

/* Asset mode (?render): the scene alone, for brand screenshots */
.is-render .site-header,
.is-render .noise,
.is-render .skip-link,
.is-render .hero-copy,
.is-render .hero-shade,
.is-render .hero-caption,
.is-render main > :not(.hero),
.is-render footer {
    display: none !important;
}

.is-render .hero-stage,
.is-render .hero-view {
    height: 100vh;
    position: relative;
}

/* ---------- Section watermark: one glyph of the name per chapter ---------- */
.glyph-mark {
    position: absolute;
    top: 50%;
    right: -4vw;
    height: min(74%, 68vh);
    translate: 0 -50%;
    pointer-events: none;
    opacity: 0.1;
}

.glyph-mark svg {
    height: 100%;
    width: auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.glyph-mark svg path {
    vector-effect: non-scaling-stroke;
}

.glyph-mark--fill {
    opacity: 0.045;
}

.glyph-mark--fill svg {
    fill: currentColor;
    stroke: none;
}

/* Each mark sits where its band has room, clear of the copy */
#group .glyph-mark {
    top: auto;
    right: auto;
    bottom: calc(var(--section) + var(--row) * 2 + 150px);
    left: var(--gutter);
    height: min(34%, 300px);
    translate: none;
}

#approach .glyph-mark {
    top: auto;
    right: auto;
    bottom: var(--section);
    left: var(--gutter);
    height: min(40%, 300px);
    translate: none;
}

/* Below 1024px copy runs the full width, so a mark would sit behind text */
@media (max-width: 1023px) {
    .glyph-mark {
        display: none;
    }
}

/* ---------- Group ---------- */
.group {
    position: relative;
    display: grid;
    gap: 56px;
}

.group__body {
    display: grid;
    gap: 28px;
    max-width: 46rem;
}

.facts {
    margin-top: 28px;
    border-top: 1px solid var(--hair);
}

.facts > div {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: baseline;
    padding-block: 18px;
    border-bottom: 1px solid var(--hair);
}

.facts dt {
    color: var(--dim);
}

.facts dd {
    font-weight: 500;
}

@media (min-width: 1024px) {
    .group {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 80px;
        align-items: start;
    }
}

/* ---------- Sister company: one ledger row that is a link ---------- */
.companies {
    position: relative;
    margin-top: 72px;
}

.company {
    --row-inset: var(--gutter);
    position: relative;
    display: grid;
    gap: 20px;
    align-items: center;
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--row) var(--gutter);
    border-block: 1px solid var(--hair);
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

.company__tag {
    color: var(--dim);
    transition: color 0.3s var(--ease);
}

.company__mark svg {
    width: min(100%, 300px);
    height: auto;
    fill: currentColor;
    transition: transform 0.45s var(--ease);
}

.company__text {
    max-width: 38ch;
    color: var(--copy);
    transition: color 0.3s var(--ease);
}

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

.company__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.45s var(--ease);
}

.company:focus-visible {
    outline-offset: -6px;
}

@media (min-width: 1024px) {
    .companies {
        margin-top: 112px;
    }

    .company {
        grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 5fr) auto;
        gap: 40px;
    }

    .company__mark svg {
        width: min(100%, 340px);
    }
}

@media (hover: hover) {
    .company:hover {
        background: var(--ink);
        color: var(--ground);
    }

    .company:hover .company__tag,
    .company:hover .company__text {
        color: color-mix(in srgb, var(--ground) 72%, transparent);
    }

    .company:hover .company__mark svg {
        transform: translateX(12px);
    }

    .company:hover .company__link svg {
        transform: translate(3px, -3px);
    }
}

/* ---------- Sectors: a ledger, not cards ---------- */
.section-head {
    position: relative;
    display: grid;
    gap: 24px;
    margin-bottom: 64px;
}

.section-head .copy {
    max-width: 36ch;
}

@media (min-width: 768px) {
    .section-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        margin-bottom: 96px;
    }
}

.ledger {
    position: relative;
    border-top: 1px solid var(--hair);
}

.sector {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    align-items: center;
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--row) var(--gutter);
    border-bottom: 1px solid var(--hair);
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease);
}

.sector h3 {
    font-size: clamp(1.875rem, 4vw, 3.75rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    transition: transform 0.45s var(--ease);
}

.sector p {
    grid-column: 1 / -1;
    max-width: 38ch;
    color: var(--copy);
    transition: color 0.3s var(--ease);
}

.sector svg {
    grid-area: 1 / 2;
    width: 40px;
    height: 40px;
    stroke-width: 1.25;
    transition: transform 0.45s var(--ease);
}

@media (min-width: 768px) {
    .sector {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto;
        gap: 40px;
    }

    .sector p {
        grid-column: auto;
    }

    .sector svg {
        grid-area: auto;
        width: 56px;
        height: 56px;
    }
}

@media (hover: hover) {
    .sector:hover {
        background: var(--ink);
        color: var(--ground);
    }

    .sector:hover p {
        color: color-mix(in srgb, var(--ground) 74%, transparent);
    }

    .sector:hover h3 {
        transform: translateX(12px);
    }

    .sector:hover svg {
        transform: rotate(-12deg);
    }
}

/* ---------- Approach ---------- */
.approach {
    position: relative;
    display: grid;
    gap: 56px;
}

.approach__list {
    border-top: 1px solid var(--hair);
}

.principle {
    display: grid;
    gap: 12px;
    padding-block: var(--row);
    border-bottom: 1px solid var(--hair);
}

.principle h3 {
    font-size: clamp(1.875rem, 3.4vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.principle p {
    color: var(--copy);
    max-width: 40ch;
}

@media (min-width: 768px) {
    .principle {
        grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
        gap: 40px;
        align-items: baseline;
    }
}

@media (min-width: 1024px) {
    .approach {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        gap: 80px;
        align-items: start;
    }

    .approach .headline {
        position: sticky;
        top: 128px;
    }
}

/* ---------- Company details: the record ---------- */
.details-list {
    position: relative;
    border-top: 1px solid var(--hair);
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: center;
    padding-block: 28px;
    border-bottom: 1px solid var(--hair);
}

.detail dt {
    grid-column: 1 / -1;
    color: var(--dim);
}

.detail dd {
    font-size: clamp(1.375rem, 3.1vw, 2.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    transition: transform 0.45s var(--ease);
}

.detail dd a {
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
    transition: background-size 0.45s var(--ease);
}

.detail dd a:hover {
    background-size: 100% 1.5px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
    color: var(--ink);
    transition:
        background-color 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

.copy-btn .icon-check {
    display: none;
}

.copy-btn:hover {
    border-color: var(--ink);
}

.copy-btn.is-copied {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ground);
}

.copy-btn.is-copied .icon-copy {
    display: none;
}

.copy-btn.is-copied .icon-check {
    display: block;
}

@media (max-width: 767px) {
    .copy-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .copy-btn {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .detail {
        grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) auto;
        gap: 40px;
        padding-block: 36px;
    }

    .detail dt {
        grid-column: auto;
    }
}

@media (hover: hover) and (min-width: 768px) {
    .detail:hover dd {
        transform: translateX(12px);
    }
}

.details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
}

/* ---------- Footer: the name closes the page ---------- */
.site-footer {
    position: relative;
    --ink: #fff;
    --ground: #000;
    background: #000;
    color: #fff;
    padding-top: var(--section);
    padding-bottom: 40px;
    overflow: clip;
}

.footer-mark svg {
    width: 100%;
    height: auto;
    fill: currentColor;
    overflow: visible;
}

.footer-meta {
    display: grid;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-meta a {
    color: #fff;
    justify-self: start;
}

@media (min-width: 768px) {
    .footer-meta {
        grid-template-columns: 1fr auto auto;
        gap: 40px;
        align-items: baseline;
    }

    .footer-meta a {
        justify-self: auto;
    }
}

/* ---------- Scroll reveals ----------
   Hidden states exist only with JavaScript and without a reduced-motion
   request; everything is visible by default. */
@media (prefers-reduced-motion: no-preference) {
    html.js [data-reveal='lines'] .line > span {
        transform: translateY(108%);
        transition: transform 1.1s var(--ease);
        transition-delay: calc(var(--i, 0) * 90ms);
    }

    html.js [data-reveal='lines'].is-in .line > span {
        transform: none;
    }

    html.js [data-reveal='rise'] {
        opacity: 0;
        transform: translateY(22px);
        transition:
            opacity 0.9s var(--ease),
            transform 0.9s var(--ease);
        transition-delay: calc(var(--i, 0) * 80ms + 120ms);
    }

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

    /* Ledger rows: the rule draws from the left, then the row settles */
    html.js [data-reveal='row'] {
        border-bottom-color: transparent;
    }

    html.js [data-reveal='row']::after {
        content: '';
        position: absolute;
        inset: auto var(--row-inset, 0) -1px var(--row-inset, 0);
        height: 1px;
        background: var(--hair);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1.2s var(--ease);
        transition-delay: calc(var(--i, 0) * 90ms);
    }

    html.js [data-reveal='row'] > * {
        opacity: 0;
        translate: 0 18px;
        transition:
            opacity 0.8s var(--ease),
            translate 0.8s var(--ease),
            transform 0.45s var(--ease),
            color 0.3s var(--ease);
        transition-delay: calc(var(--i, 0) * 90ms + 100ms), calc(var(--i, 0) * 90ms + 100ms), 0s, 0s;
    }

    html.js [data-reveal='row'].is-in::after {
        transform: scaleX(1);
    }

    html.js [data-reveal='row'].is-in > * {
        opacity: 1;
        translate: 0 0;
    }

    /* Footer name: each letter steps up into line */
    html.js [data-reveal='glyphs'] path {
        opacity: 0;
        transform: translateY(46%);
        transition:
            opacity 0.7s var(--ease),
            transform 1.2s var(--ease);
        transition-delay: calc(var(--i, 0) * 70ms);
    }

    html.js [data-reveal='glyphs'].is-in path {
        opacity: 1;
        transform: none;
    }
}

.detail,
.principle,
.facts > div {
    position: relative;
}

.sector {
    --row-inset: var(--gutter);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    /* nothing to scrub through: drop the runway */
    .hero-stage {
        height: auto;
    }

    .hero-view {
        position: relative;
        height: 100svh;
    }

    .hero-caption {
        display: none;
    }
}
