/* ==========================================================================
   P&S Bau
   1. Fonts and tokens   2. Base   3. Header   4. Footer   5. Sections
   6. Components         7. Pages  8. Motion
   ========================================================================== */

/* 1. Fonts and tokens ---------------------------------------------------- */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../fonts/archivo-latin.woff2") format("woff2");
    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;
}

/* Turkish and other extended Latin letters (İ, Ş, Ğ ...), only downloaded when a page uses them. */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Arial tuned to Archivo's metrics so text does not move when the web font arrives.
   Archivo is used at three widths, Arial has only one, so each width gets its own fallback. */
@font-face {
    font-family: "Archivo Fallback";
    src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
    size-adjust: 99%; ascent-override: 88.7%; descent-override: 21.2%; line-gap-override: 0%;
}
@font-face {
    font-family: "Archivo Wide Fallback";
    src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
    size-adjust: 118%; ascent-override: 74.4%; descent-override: 17.8%; line-gap-override: 0%;
}
/* uppercase labels with letter spacing: navigation, buttons, filters */
@font-face {
    font-family: "Archivo UI Fallback";
    src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
    size-adjust: 113%; ascent-override: 77.7%; descent-override: 18.6%; line-gap-override: 0%;
}
@font-face {
    font-family: "Archivo Expanded Fallback";
    src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
    size-adjust: 131%; ascent-override: 67%; descent-override: 16%; line-gap-override: 0%;
}

:root {
    /* colours that stay the same in both themes */
    --orange: #ee6c1f;
    --orange-deep: #d0570f;
    --night: #0d0e0f;
    --on-dark: #f3f0ea;
    --on-dark-soft: #cdc9c1;
    --on-dark-muted: #8f9396;
    --line-on-dark: rgba(255, 255, 255, .13);

    /* light theme */
    --bg: #f4f2ee;
    --bg-alt: #ebe8e2;
    --surface: #ffffff;
    --text: #111315;
    --text-soft: #3d4145;
    --muted: #6a6e72;
    --line: rgba(17, 19, 21, .12);
    --dark: #17191c;
    --dark-raised: #23262a;
    --glass: rgba(255, 255, 255, .74);
    --glass-line: rgba(17, 19, 21, .08);
    --shadow: 0 1px 2px rgba(17, 19, 21, .04), 0 18px 40px -20px rgba(17, 19, 21, .22);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111315' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    --font: "Archivo", "Archivo Fallback", system-ui, sans-serif;
    --font-wide: "Archivo", "Archivo Wide Fallback", system-ui, sans-serif;
    --font-ui: "Archivo", "Archivo UI Fallback", system-ui, sans-serif;
    --font-expanded: "Archivo", "Archivo Expanded Fallback", system-ui, sans-serif;

    --header: 72px;
    --header-space: var(--header);
    --wrap: 1320px;
    --pad: clamp(20px, 4.5vw, 56px);
    --space: clamp(80px, 10vw, 150px);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 24px;

    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);

    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0e1012;
    --bg-alt: #14171a;
    --surface: #1a1d21;
    --text: #ece9e3;
    --text-soft: #bdb9b1;
    --muted: #8d9195;
    --line: rgba(255, 255, 255, .11);
    --dark: #1a1d21;
    --dark-raised: #25292e;
    --glass: rgba(22, 24, 27, .72);
    --glass-line: rgba(255, 255, 255, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece9e3' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    color-scheme: dark;
}

@media (max-width: 1023px) {
    :root { --header: 64px; }
    .site-header .brand__logo { height: 52px; }
}

/* 2. Base ---------------------------------------------------------------- */

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

html {
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-space) + 16px);
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
img, svg, picture, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }

h1, h2, h3 {
    font-family: var(--font-wide);
    font-weight: 800;
    font-stretch: 112%;
    line-height: .95;
    letter-spacing: -.02em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2.3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.1; letter-spacing: -.01em; }
p { text-wrap: pretty; }

::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.icon { width: 20px; height: 20px; flex: none; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 300;
    padding: 12px 18px; border-radius: var(--radius-sm); background: var(--orange); color: #fff; font-weight: 600;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    font-family: var(--font-expanded); font-size: 12px; font-weight: 600; font-stretch: 125%;
    letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }

.lead { font-size: clamp(1.06rem, 1.35vw, 1.25rem); line-height: 1.6; max-width: 32em; color: var(--text-soft); }
.text-orange { color: var(--orange); }

/* 3. Header -------------------------------------------------------------- */
/* Full width, attached to the top, fixed height: it never moves or changes size, only its colours follow the theme. */

/* At the top of the page the header is transparent over the dark hero; once the page scrolls it turns into the glass bar. */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header);
    color: var(--on-dark);
    background: transparent;
    border-bottom: 1px solid transparent;
    view-transition-name: site-header;
    transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(rgba(13, 14, 15, .45), rgba(13, 14, 15, 0));
    transition: opacity .35s var(--ease-out);
}
.site-header.is-scrolled,
.menu-open .site-header {
    color: var(--text);
    background: var(--glass);
    border-bottom-color: var(--glass-line);
    box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .5);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.site-header.is-scrolled::before,
.menu-open .site-header::before { opacity: 0; }

.site-header:not(.is-scrolled) .nav__link:hover,
.site-header:not(.is-scrolled) .has-menu:hover > .nav__link,
.site-header:not(.is-scrolled) .has-menu:focus-within > .nav__link,
.site-header:not(.is-scrolled) .lang__toggle:hover,
.site-header:not(.is-scrolled) .lang__toggle[aria-expanded="true"],
.site-header:not(.is-scrolled) .theme-toggle:hover { background: rgba(255, 255, 255, .14); }
.site-header:not(.is-scrolled) .nav__link[aria-current="page"],
.site-header:not(.is-scrolled) .nav__link.is-current { background: #fff; color: var(--night); }
.menu-open .site-header .menu-toggle,
.site-header:not(.is-scrolled) .menu-toggle { background: #fff; color: var(--night); }
.menu-open .site-header .menu-toggle { background: var(--text); color: var(--bg); }

.site-header__bar {
    height: 100%;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
}
@media (min-width: 1100px) {
    .site-header__bar { grid-template-columns: 1fr auto 1fr; }
}

/* The logo exists twice: the original for light surfaces, a light version for the dark theme and the transparent header over the hero. */
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand__logo { width: auto; height: 60px; }
.brand__logo--inverse,
:root[data-theme="dark"] .brand__logo:not(.brand__logo--inverse),
:root:not(.menu-open) .site-header:not(.is-scrolled) .brand__logo:not(.brand__logo--inverse) { display: none; }
:root[data-theme="dark"] .brand__logo--inverse,
:root:not(.menu-open) .site-header:not(.is-scrolled) .brand__logo--inverse { display: block; }
.site-footer .brand__logo { height: 72px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.has-menu { position: relative; }
.nav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 16px; border-radius: 999px;
    font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; font-stretch: 110%;
    letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
    transition: background .25s, color .25s;
}
.nav__link:hover,
.has-menu:hover > .nav__link,
.has-menu:focus-within > .nav__link { background: var(--line); }
.nav__link[aria-current="page"],
.nav__link.is-current { background: var(--text); color: var(--bg); }
.nav__link .icon,
.lang__toggle .icon { width: 10px; height: 10px; transition: transform .35s var(--ease-out); }
.has-menu:hover > button .icon,
[data-dropdown][aria-expanded="true"] .icon { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; } /* keeps hover while moving the mouse down */
.dropdown--end { left: auto; right: 0; min-width: 180px; }
.has-menu:hover > .dropdown,
.has-menu:focus-within > .dropdown,
.dropdown.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s;
}
.dropdown a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
    font-size: 15px; font-weight: 500; transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--bg-alt); }
.dropdown a[aria-current="page"],
.dropdown a[aria-current="true"] { background: var(--bg-alt); color: var(--orange); }

.flag { width: 21px; height: 14px; flex: none; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.lang__toggle,
.theme-toggle,
.menu-toggle {
    height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; transition: background .25s;
}
.lang__toggle { padding: 0 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; font-stretch: 112%; letter-spacing: .06em; }
.theme-toggle,
.menu-toggle { width: 42px; }
.lang__toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover,
.lang__toggle[aria-expanded="true"] { background: var(--line); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .icon--sun,
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
.menu-toggle { background: var(--text); color: var(--bg); }
.menu-toggle:hover { background: var(--orange); color: #fff; }

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .4s var(--ease-out), background .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-5px); }
.menu-toggle__bars::after { transform: translateY(5px); }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: rotate(-45deg); }

@media (min-width: 1100px) {
    .nav { display: block; }
    .menu-toggle { display: none; }
}

/* mobile menu: a sheet sliding in from the right over a blurred backdrop */
.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(13, 14, 15, .4);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out), visibility 0s; }
.menu-open { overflow: hidden; }

.mobile-menu__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(420px, 100%);
    display: flex; flex-direction: column; gap: 22px;
    padding: calc(var(--header) + 20px) 20px 24px;
    background: var(--bg); color: var(--text);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .45);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
}
.menu-open .mobile-menu__panel { transform: none; }

.mobile-menu__label {
    margin: 0 0 8px 4px; font-family: var(--font-expanded);
    font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.mobile-menu__list { display: grid; gap: 4px; }
.mobile-menu__list a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 0 16px; border-radius: 14px;
    font-size: 17px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line);
    opacity: 0; transform: translateX(24px);
    transition: opacity .45s var(--ease-out), transform .5s var(--ease-out), background .2s, border-color .2s, color .2s;
}
.mobile-menu__list a .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease-out), color .2s; }
.mobile-menu__list a:active .icon,
.mobile-menu__list a:hover .icon { transform: translateX(3px); color: var(--orange); }
.mobile-menu__list a[aria-current="page"] { border-color: var(--orange); color: var(--orange); }
.mobile-menu__list a[aria-current="page"] .icon { color: var(--orange); }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i, 0) * .04s); }

.mobile-menu__reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease-out), transform .5s var(--ease-out); }
.menu-open .mobile-menu__reveal { opacity: 1; transform: none; transition-delay: .4s; }

.mobile-menu__cta { width: 100%; }

.mobile-menu__languages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-alt); }
.mobile-menu__languages a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: var(--text-soft); transition: background .2s, color .2s;
}
.mobile-menu__languages a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.mobile-menu__contact { display: grid; gap: 8px; margin-top: auto; }
.mobile-menu__contact a {
    display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px;
    padding: 10px 14px 10px 10px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere;
}
.mobile-menu__contact a strong { grid-column: 2; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mobile-menu__contact .icon { grid-row: span 2; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(238, 108, 31, .12); color: var(--orange); }

@media (max-width: 479px) {
    .lang__toggle span { display: none; }
}
@media (max-width: 379px) {
    :root { --pad: 14px; }
    .site-header__bar { gap: 6px; }
    .site-header__actions { gap: 2px; }
    .site-header .brand__logo { height: 46px; }
    .lang__toggle { padding: 0 9px; }
    .lang__toggle .icon { display: none; }
    .theme-toggle, .menu-toggle { width: 38px; }
    .lang__toggle, .theme-toggle, .menu-toggle { height: 38px; }
}
@media (min-width: 1100px) {
    .mobile-menu { display: none; }
}

/* 4. Footer -------------------------------------------------------------- */

.site-footer { background: var(--bg-alt); color: var(--text); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer a { transition: color .2s; }

/* slim contact strip */
.site-footer__contact-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
    padding-block: 28px;
    /* divider aligned with the content, not with the padded wrapper */
    background: linear-gradient(var(--line), var(--line)) bottom center / calc(100% - var(--pad) * 2) 1px no-repeat;
}
.site-footer__contact-strip p { font-family: var(--font-wide); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; }
.site-footer__contact-strip p span { color: var(--orange); }
.site-footer__quick { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__chip {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
    border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    font-weight: 600; transition: border-color .25s, color .25s;
}
.site-footer__chip .icon { width: 17px; height: 17px; color: var(--orange); }
.site-footer__chip:hover { border-color: var(--orange); color: var(--orange); }

.site-footer__grid { display: grid; gap: 32px; padding-block: 40px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }

.site-footer__about p { margin-top: 16px; max-width: 20em; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.site-footer__title {
    margin-bottom: 14px; font-family: var(--font-expanded);
    font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted);
}
.site-footer__links { display: grid; gap: 8px; }
.site-footer__links a,
.site-footer__contact a { color: var(--text-soft); }
.site-footer__links a:hover,
.site-footer__contact a:hover { color: var(--orange); }
.site-footer__contact { display: grid; gap: 10px; color: var(--text-soft); }
.site-footer__contact li { display: flex; gap: 10px; }
.site-footer__contact .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--orange); }

.site-footer__bottom { border-top: 1px solid var(--line); }
.site-footer__bottom .wrap {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
    padding-block: 18px; font-size: 13.5px; color: var(--muted);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal a, .site-footer__legal button { color: var(--muted); font-size: inherit; }
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--orange); }

/* 5. Sections ------------------------------------------------------------ */

.section { position: relative; padding-block: var(--space); }
.section--light { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }

.section--dark {
    background: var(--dark); color: var(--on-dark);
    --line: var(--line-on-dark); --muted: var(--on-dark-muted); --text-soft: var(--on-dark-soft);
}
:root[data-theme="dark"] .section--dark { border-block: 1px solid var(--line-on-dark); }

.section-head { display: grid; gap: 28px 80px; align-items: end; margin-bottom: clamp(44px, 6vw, 88px); }
@media (min-width: 960px) { .section-head { grid-template-columns: 1.3fr 1fr; } }
.section-head--center { text-align: center; justify-items: center; grid-template-columns: 1fr !important; }

.split { display: grid; gap: clamp(48px, 7vw, 112px); align-items: center; }
@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--wide-left { grid-template-columns: 1.15fr .85fr; }
}

/* 6. Components ---------------------------------------------------------- */

/* buttons */
.btn {
    --btn-bg: var(--orange); --btn-fg: #fff; --btn-fill: var(--night); --btn-fill-fg: #fff;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 54px; padding: 0 26px; border-radius: 999px;
    background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
    font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; font-stretch: 112%;
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
    transition: color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--btn-fill);
    transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn:hover::before { transform: none; }
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 12.5px; }
.btn--outline { --btn-bg: transparent; --btn-fg: currentColor; --btn-fill: #fff; --btn-fill-fg: var(--night); border-color: currentColor; }
.btn--contrast { --btn-bg: var(--text); --btn-fg: var(--bg); --btn-fill: var(--orange); --btn-fill-fg: #fff; }
.section--light .btn--outline,
.section--alt .btn--outline,
.section--surface .btn--outline { --btn-fill: var(--text); --btn-fill-fg: var(--bg); }

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

.link {
    display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px;
    font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; font-stretch: 112%;
    letter-spacing: .06em; text-transform: uppercase;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size .45s var(--ease-out), color .2s;
}
.link .icon { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.link:hover { color: var(--orange); background-size: 0 1px; background-position: 100% 100%; }
.link:hover .icon { transform: translateX(4px); }

/* heroes: full width from the very top of the page, the fixed header sits on top */
.hero,
.page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end;
    background: var(--night); color: var(--on-dark);
}
.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header) + 40px) 0 clamp(32px, 5vw, 64px);
}
@media (max-height: 560px) { .hero { min-height: 560px; } }
.page-hero {
    min-height: clamp(420px, 66svh, 640px);
    padding: calc(var(--header) + 48px) 0 clamp(40px, 5vw, 72px);
}
.page-hero--compact { min-height: clamp(320px, 44svh, 440px); }

.hero__media,
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img,
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { object-position: 72% 30%; }
.hero::after,
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(13, 14, 15, .86) 0%, rgba(13, 14, 15, .5) 50%, rgba(13, 14, 15, .12) 100%),
        linear-gradient(0deg, rgba(13, 14, 15, .82) 0%, rgba(13, 14, 15, 0) 45%);
}
.page-hero--plain { background: var(--dark); }
.page-hero--plain::after {
    background:
        radial-gradient(circle at 85% 20%, rgba(238, 108, 31, .28), transparent 45%),
        linear-gradient(var(--line-on-dark) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px) 0 0 / 56px 56px;
    opacity: .9;
}
.hero .eyebrow, .page-hero .eyebrow { color: var(--on-dark-soft); }

.hero__content { display: grid; gap: 36px; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 7.4rem); max-width: 8.5em; }
.hero .lead { color: var(--on-dark-soft); }
.hero__bottom { display: grid; gap: 28px; align-items: end; padding-top: 28px; border-top: 1px solid var(--line-on-dark); }
@media (min-width: 960px) { .hero__bottom { grid-template-columns: 1fr auto; } }
.hero__facts { display: flex; gap: 12px; }
.hero__facts > div {
    padding: 16px 20px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .08); border: 1px solid var(--line-on-dark);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__facts strong { display: block; font-family: var(--font-wide); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 800; font-stretch: 112%; line-height: 1; }
.hero__facts span { font-size: 13px; color: var(--on-dark-soft); }

.reveal-lines .line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal-lines .line > span { display: block; animation: line-up .9s var(--ease-out) both; animation-delay: calc(.08s + var(--i, 0) * .08s); }
.reveal-lines--stacked .line { display: block; }
.fade-up { animation: fade-up .8s var(--ease-out) both; animation-delay: var(--delay, .3s); }

.page-hero h1 { max-width: 11em; }
.page-hero .lead { margin-top: 24px; color: var(--on-dark-soft); }

.breadcrumbs {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px;
    font-family: var(--font-expanded); font-size: 12px; font-weight: 500; font-stretch: 120%;
    letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft);
}
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: ""; width: 14px; height: 1px; background: var(--orange); }
.breadcrumbs a:hover, .breadcrumbs [aria-current] { color: #fff; }

/* marquee */
.marquee {
    display: flex; overflow: hidden; height: 72px; align-items: center;
    background: var(--orange); color: var(--night); user-select: none;
}
.marquee__track { display: flex; flex: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
    display: flex; align-items: center; gap: 34px; padding-right: 34px;
    font-family: var(--font-wide); font-size: clamp(1.05rem, 1.9vw, 1.5rem); font-weight: 800; font-stretch: 118%;
    text-transform: uppercase; white-space: nowrap;
}
.marquee__item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--night); }

/* statement and stats */
.statement { font-size: clamp(1.5rem, 3.2vw, 2.7rem); font-weight: 500; font-stretch: 104%; line-height: 1.22; letter-spacing: -.015em; }
.statement em { font-style: normal; color: var(--orange); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(56px, 8vw, 104px); }
.stats--flush { margin-top: 0; }
.stat {
    padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
}
.stat__value {
    display: flex; align-items: flex-start;
    font-family: var(--font-wide); font-size: clamp(2.6rem, 5.4vw, 4.8rem); font-weight: 800; font-stretch: 112%;
    line-height: .9; font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: .38em; margin: .15em 0 0 .1em; color: var(--orange); font-weight: 700; }
.stat__label { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* services showcase */
.services-showcase { display: grid; gap: 64px; }
@media (min-width: 1100px) { .services-showcase { grid-template-columns: 1fr 440px; align-items: start; gap: 80px; } }
.service-list { border-top: 1px solid var(--line); }
.service-row {
    position: relative; display: grid; grid-template-columns: 1fr 32px; gap: 8px 20px; align-items: center;
    padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service-row::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.service-row:hover::after, .service-row:focus-visible::after, .service-row.is-active::after { transform: scaleX(1); }
.service-row h3 { font-size: clamp(1.25rem, 2.8vw, 2.3rem); line-height: 1; transition: transform .5s var(--ease-out), color .3s; }
.service-row:hover h3, .service-row.is-active h3 { transform: translateX(10px); color: var(--orange); }
.service-row p { grid-column: 1 / 2; font-size: 15px; color: var(--on-dark-soft); max-width: 29em; }
.service-row > .icon { width: 26px; height: 26px; grid-row: 1; grid-column: 2; transition: transform .5s var(--ease-out); }
.service-row:hover > .icon { transform: translate(4px, -4px) rotate(-45deg); color: var(--orange); }

.service-preview { display: none; position: sticky; top: calc(var(--header-space) + 24px); aspect-ratio: 872 / 620; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark-raised); }
.service-preview img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08); transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.service-preview img.is-active { opacity: 1; transform: none; }
@media (min-width: 1100px) { .service-preview { display: block; } }

/* Services page: photo cards with the text on the image. Five cards form two rows (2 large + 3 small). */
.service-grid { display: grid; gap: 20px; }
@media (min-width: 700px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .service-grid { grid-template-columns: repeat(6, 1fr); }
    .service-grid > * { grid-column: span 2; }
    .service-grid > :nth-child(-n + 2) { grid-column: span 3; }
}

.service-card {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 400px; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: #fff;
    transition: box-shadow .5s var(--ease-out);
}
@media (min-width: 1100px) { .service-grid > :nth-child(-n + 2).service-card { min-height: 460px; } }
.service-card:hover,
.service-card:focus-visible { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.service-card__image {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}
.service-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(13, 14, 15, .05) 20%, rgba(13, 14, 15, .55) 55%, rgba(13, 14, 15, .92) 100%);
    transition: background .5s var(--ease-out);
}
.service-card::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.service-card:hover .service-card__image { transform: scale(1.07); }
.service-card:hover::after,
.service-card:focus-visible::after { transform: scaleX(1); }
.service-card__arrow {
    position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(13, 14, 15, .38); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: background .3s, transform .5s var(--ease-out);
}
.service-card:hover .service-card__arrow { background: var(--orange); transform: rotate(-45deg); }
.service-card__body { display: grid; gap: 12px; padding: 28px 28px 30px; }
.service-card__body h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.05; }
.service-card__body p { max-width: 30em; font-size: 15px; color: rgba(255, 255, 255, .78); }
.service-card__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.service-card__tags li {
    padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
}

.project-grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid--featured > :first-child { grid-column: 1 / -1; }
    .project-grid--featured > :first-child .project-card__media { aspect-ratio: 21 / 9; }
}
@media (min-width: 1100px) { .project-grid--three { grid-template-columns: repeat(3, 1fr); } }

.project-card {
    position: relative; display: block; overflow: hidden; isolation: isolate;
    border-radius: var(--radius-lg); color: var(--on-dark); background: var(--night);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }
.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .94; transition: transform 1.2s var(--ease-out), opacity .6s; }
.project-card:hover .project-card__media img { transform: scale(1.06); opacity: .72; }
.project-card__body {
    position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
    padding: clamp(20px, 3vw, 30px); background: linear-gradient(0deg, rgba(13, 14, 15, .9), rgba(13, 14, 15, 0));
}
.project-card__meta {
    display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-expanded); font-size: 11px; font-weight: 600; font-stretch: 120%; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.project-card h3 { font-size: clamp(1.25rem, 2.3vw, 1.9rem); }
.project-card__arrow { width: 50px; height: 50px; display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--orange); transform: scale(.6); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s; }
.project-card__arrow .icon { width: 20px; height: 20px; transform: rotate(-45deg); }
.project-card:hover .project-card__arrow, .project-card:focus-visible .project-card__arrow { transform: none; opacity: 1; }
@media (hover: none) { .project-card__arrow { transform: none; opacity: 1; } }
.project-card.is-entering { animation: card-in .55s var(--ease-out) both; }

.project-card__location { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; color: var(--on-dark-soft); }
.project-card__location .icon { width: 15px; height: 15px; color: var(--orange); }

.project-card__status {
    position: absolute; top: 14px; left: 14px; z-index: 1;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(13, 14, 15, .55); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
}

/* projects without a photo: a blueprint-style card with the project's initials */
.project-card--plan { background: var(--dark); }
.project-card--plan .project-card__media {
    position: relative; display: grid; place-items: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(238, 108, 31, .35), transparent 50%),
        linear-gradient(var(--line-on-dark) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px) 0 0 / 32px 32px,
        var(--dark);
    transition: background-size .8s var(--ease-out);
}
.project-card--plan:hover .project-card__media { background-size: auto, 36px 36px, 36px 36px, auto; }
.project-card__plan {
    margin-bottom: 18%;
    font-family: var(--font-wide); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; font-stretch: 125%; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35);
    transition: -webkit-text-stroke-color .4s;
}
.project-card--plan:hover .project-card__plan { -webkit-text-stroke-color: var(--orange); }

.photo-credit { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--orange); }
.photo-credit strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; }

/* project gallery and lightbox */
.gallery { margin-top: clamp(56px, 8vw, 112px); }
.gallery__title { margin-bottom: 28px; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.gallery__grid { display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gallery__item .frame { display: block; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery__item .frame img { transition: transform .8s var(--ease-out); }
.gallery__item .frame:hover img,
.gallery__item .frame:focus-visible img { transform: scale(1.04); }

html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 72px clamp(16px, 4vw, 88px);
    border: 0; background: rgba(10, 11, 13, .95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .3s var(--ease-out); }
.lightbox::backdrop { background: rgba(10, 11, 13, .9); }
.lightbox figure { display: grid; gap: 14px; justify-items: center; max-width: 100%; margin: 0; }
.lightbox img {
    width: auto; max-width: min(100%, 1600px); max-height: calc(100svh - 190px);
    object-fit: contain; border-radius: var(--radius-sm);
}
.lightbox__caption { max-width: 40em; font-size: 13px; text-align: center; color: rgba(255, 255, 255, .72); }
.lightbox__caption strong { display: block; margin-bottom: 2px; color: #fff; }
.lightbox__caption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lightbox__button {
    position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s;
}
.lightbox__button:hover,
.lightbox__button:focus-visible { background: var(--orange); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { top: 50%; translate: 0 -50%; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev .icon { rotate: 180deg; }
@media (max-width: 759px) {
    .lightbox__prev,
    .lightbox__next { top: auto; bottom: 16px; translate: none; }
}
@keyframes lightbox-in { from { opacity: 0; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
    min-height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px;
    font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
    transition: background .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* values, process, timeline */
.value-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--dark-raised); transition: background .4s, transform .5s var(--ease-out); }
.value:hover { transform: translateY(-4px); background: #2c3035; }
.value__index { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 48px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; }
.value p { margin-top: 12px; color: var(--on-dark-soft); font-size: 15.5px; }

.process { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step { position: relative; overflow: hidden; padding: 30px 28px 32px; border-radius: var(--radius-lg); background: var(--bg); counter-increment: step; }
.process__step::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange);
    transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) calc(var(--i, 0) * .15s);
}
.process__step.is-visible::after { transform: scaleX(1); }
.process__number {
    display: block; margin-bottom: 22px;
    font-family: var(--font-wide); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 900; font-stretch: 125%; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.5px var(--text);
}
.process__number::before { content: counter(step, decimal-leading-zero); }
.process__step p { margin-top: 12px; color: var(--text-soft); font-size: 15.5px; }

.timeline { position: relative; display: grid; gap: 40px; padding-left: 36px; }
.timeline::before,
.timeline__progress { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline__progress { background: var(--orange); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.timeline__item { position: relative; }
.timeline__item::before {
    content: ""; position: absolute; left: -36px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--orange); transition: background .4s;
}
.timeline__item.is-visible::before { background: var(--orange); }
.timeline__year { display: block; font-family: var(--font-wide); font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--orange); }
.timeline__item h3 { margin-top: 14px; }
.timeline__item p { margin-top: 10px; max-width: 25em; color: var(--text-soft); }
@media (min-width: 900px) {
    .timeline { padding-left: 0; gap: 24px; }
    .timeline::before, .timeline__progress { left: 50%; margin-left: -1px; }
    .timeline__item { width: 50%; padding-right: 72px; text-align: right; }
    .timeline__item:nth-child(odd of .timeline__item) { margin-left: 50%; padding: 0 0 0 72px; text-align: left; }
    .timeline__item::before { left: auto; right: -7px; }
    .timeline__item:nth-child(odd of .timeline__item)::before { left: -7px; right: auto; }
    .timeline__item p { margin-left: auto; }
    .timeline__item:nth-child(odd of .timeline__item) p { margin-left: 0; }
}

/* client reviews: compact cards */
.section--compact { padding-block: clamp(56px, 7vw, 96px); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 32px; }
.reviews__head h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.reviews__head p { max-width: 23em; color: var(--text-soft); font-size: 15.5px; }
/* bento layout: one featured review, two compact ones */
.reviews { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 1.25fr 1fr; } }
.reviews__side { display: grid; gap: 16px; }

.review {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 20px;
    padding: 24px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__mark { width: 30px; height: 30px; color: var(--orange); }
.review blockquote { font-size: 15.5px; line-height: 1.6; color: var(--text-soft); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
    width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px;
    background: rgba(238, 108, 31, .14); color: var(--orange); font-size: 15px; font-weight: 800;
}
.review figcaption strong { display: block; font-size: 15px; }
.review figcaption div span { display: block; font-size: 13px; color: var(--muted); }

.review--featured {
    justify-content: space-between; gap: 32px; padding: clamp(28px, 3.5vw, 44px);
    border: 0; color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
        linear-gradient(135deg, #f07a2e 0%, var(--orange) 45%, #c2500c 100%);
}
.review--featured::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; z-index: -1; width: 220px; height: 220px;
    border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08);
}
.review--featured .review__mark { width: 44px; height: 44px; color: #fff; opacity: .9; }
.review--featured blockquote { font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.45; font-weight: 500; color: #fff; letter-spacing: -.01em; }
.review--featured .review__avatar { background: #fff; color: var(--orange); }
.review--featured figcaption div span { color: rgba(255, 255, 255, .8); }

/* cookie consent card */
.consent-card {
    position: fixed; left: 16px; bottom: 16px; z-index: 120;
    width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow-y: auto;
    padding: 24px; border-radius: var(--radius-lg);
    background: var(--surface); color: var(--text); border: 1px solid var(--line);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35);
    animation: consent-in .5s var(--ease-out) both;
}
.consent-card[hidden] { display: none; }
.consent-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; line-height: 1.2; letter-spacing: 0; }
.consent-card h2 .icon { width: 22px; height: 22px; color: var(--orange); }
.consent-card > p { margin-top: 10px; font-size: 14.5px; color: var(--text-soft); }
.consent-card > p a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.consent-options { display: grid; gap: 8px; margin-top: 16px; }
.consent-options[hidden] { display: none; }
.consent-option {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 14px 16px; border-radius: var(--radius); background: var(--bg-alt); cursor: pointer;
}
.consent-option strong { display: block; font-size: 14.5px; }
.consent-option small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.switch { position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .25s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease-out); }
.switch input:checked + i { background: var(--orange); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .6; }
.switch input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.consent-actions .btn { flex: 1 1 0; min-height: 44px; padding: 0 14px; font-size: 12px; }
.consent-actions .btn:first-child { flex-basis: 100%; }
@media (max-width: 479px) {
    .consent-card { left: 8px; bottom: 8px; width: calc(100vw - 16px); padding: 20px; }
    .consent-card > p { font-size: 13.5px; }
}
.consent-actions .btn::before { display: none; }
.consent-actions .btn--outline { --btn-fg: var(--text); border-color: var(--line); }
.consent-actions .btn--outline:hover { border-color: var(--text); color: var(--text); }
.consent-actions .btn:not(.btn--outline):hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } }

/* call to action */
.cta {
    position: relative; isolation: isolate; overflow: hidden;
    padding-block: clamp(80px, 11vw, 150px);
    background: var(--night); color: var(--on-dark); text-align: center;
}
.cta__media { position: absolute; inset: -10% 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 14, 15, .55); }
.cta .eyebrow { justify-content: center; color: var(--on-dark-soft); }
.cta h2 { max-width: 11em; margin-inline: auto; font-size: clamp(2.1rem, 6vw, 5.2rem); }
.cta .actions { justify-content: center; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--on-dark-soft); font-size: 17px; }
.cta__phone:hover { color: #fff; }
.cta__phone .icon { width: 18px; height: 18px; color: var(--orange); }

/* images and lists */
.frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-alt); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--landscape { aspect-ratio: 3 / 2; }
.frame-stack { position: relative; padding: 0 12% 18% 0; }
.frame-stack > .frame:last-child { position: absolute; right: 0; bottom: 0; width: 52%; border: 8px solid var(--bg); border-radius: calc(var(--radius-lg) + 8px); }

.checklist { display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 600px) { .checklist--two { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checklist li::before {
    content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* accordion */
.faq-layout { display: grid; gap: 56px; }
@media (min-width: 1100px) { .faq-layout { grid-template-columns: 1fr 380px; gap: 88px; align-items: start; } }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 22px; }

.accordion { display: grid; gap: 10px; }
.accordion details {
    padding: 0 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    interpolate-size: allow-keywords; transition: border-color .3s, box-shadow .3s;
}
.accordion details[open] { border-color: transparent; box-shadow: var(--shadow); }
.accordion details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.accordion details[open]::details-content { block-size: auto; }
.accordion summary {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0;
    cursor: pointer; list-style: none; font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 600; line-height: 1.35; transition: color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--orange); }
.accordion__icon { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg-alt); transition: background .35s, transform .5s var(--ease-out); }
.accordion__icon::before,
.accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; translate: -50% -50%; }
.accordion__icon::after { rotate: 90deg; transition: rotate .4s var(--ease-out); }
.accordion details[open] .accordion__icon { background: var(--orange); color: #fff; transform: rotate(180deg); }
.accordion details[open] .accordion__icon::after { rotate: 0deg; }
.accordion__answer { padding: 0 56px 24px 0; color: var(--text-soft); }

.aside-card { position: sticky; top: calc(var(--header-space) + 24px); padding: 36px; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); }
.aside-card h2, .aside-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.aside-card p { margin-top: 14px; color: var(--on-dark-soft); }
.aside-card .btn { width: 100%; margin-top: 26px; }
.aside-card__phone { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 18px; font-weight: 600; }
.aside-card__phone .icon { width: 18px; height: 18px; color: var(--orange); }

.aside-nav { display: grid; gap: 4px; margin-bottom: 16px; padding: 8px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.aside-nav a {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: var(--radius-sm); font-weight: 600; transition: background .2s, color .2s;
}
.aside-nav a .icon { width: 16px; height: 16px; opacity: .35; }
.aside-nav a:hover { background: var(--bg-alt); }
.aside-nav a[aria-current="page"] { background: var(--text); color: var(--bg); }
.aside-nav a[aria-current="page"] .icon { opacity: 1; color: var(--orange); }

/* 7. Pages --------------------------------------------------------------- */

.detail { display: grid; gap: 56px; }
@media (min-width: 1100px) { .detail { grid-template-columns: 1fr 380px; gap: 88px; align-items: start; } }
.detail--spaced { margin-top: clamp(48px, 7vw, 96px); }
.prose > * + * { margin-top: 24px; }
.prose h2 { margin-top: 60px; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); }
.prose strong { color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(5, 1fr); } }
.facts div { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-family: var(--font-expanded); font-size: 11px; font-weight: 600; font-stretch: 120%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 8px; font-size: 18px; font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.next-project {
    position: relative; isolation: isolate; display: block; overflow: hidden;
    padding-block: clamp(72px, 11vw, 150px); color: var(--on-dark); background: var(--night);
}
.next-project .eyebrow { color: var(--on-dark-soft); }
.next-project--plan {
    background:
        radial-gradient(circle at 85% 20%, rgba(238, 108, 31, .3), transparent 45%),
        linear-gradient(var(--line-on-dark) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px) 0 0 / 56px 56px,
        var(--dark);
}
.next-project__media { position: absolute; inset: 0; z-index: -2; }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: transform 1.4s var(--ease-out), opacity .6s; }
.next-project:hover .next-project__media img { transform: scale(1.05); opacity: .6; }
.next-project h2 { font-size: clamp(2rem, 7vw, 5.8rem); display: flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.next-project h2 .icon { width: .7em; height: .7em; color: var(--orange); transition: transform .6s var(--ease-out); }
.next-project:hover h2 .icon { transform: translateX(12px); }

.contact-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-item { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease-out), box-shadow .4s; }
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-item .icon { width: 44px; height: 44px; padding: 11px; margin-bottom: 14px; border-radius: 50%; background: rgba(238, 108, 31, .12); color: var(--orange); }
.contact-item dt { font-family: var(--font-expanded); font-size: 11px; font-weight: 600; font-stretch: 120%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item dd { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--orange); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 62px; padding: 26px 18px 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; appearance: none;
    transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 170px; resize: vertical; padding-top: 30px; }
.field select { background: var(--surface) var(--select-arrow) right 16px center / 18px no-repeat; padding-right: 48px; }
.field label {
    position: absolute; left: 19px; top: 20px; font-size: 16px; color: var(--muted);
    transform-origin: left top; pointer-events: none; transition: transform .3s var(--ease-out), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-11px) scale(.75); color: var(--text-soft); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(238, 108, 31, .16); }
.field--error input, .field--error textarea { border-color: #d0453a; }
.field__error { margin-top: 6px; font-size: 14px; color: #d0453a; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--text-soft); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.consent a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 18px 22px; margin-bottom: 24px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--orange); font-weight: 500; animation: fade-up .6s var(--ease-out) both; }
.notice--error { border-left-color: #c8372d; }

/* toastr notifications (contact form), in the look of the site */
#toast-container.toast-top-right { top: calc(var(--header) + 16px); right: 16px; }
#toast-container > div {
    width: min(380px, calc(100vw - 32px)); padding: 16px 18px 16px 54px; border-radius: var(--radius-sm);
    font-family: var(--font-ui, inherit); font-size: 14.5px; line-height: 1.45; opacity: 1;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); background-position: 18px center;
}
#toast-container > div:hover { box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); }
#toast-container .toast-title { margin-bottom: 2px; font-size: 15px; }
#toast-container > .toast-success { background-color: #1e6b45; }
#toast-container > .toast-error { background-color: #b3352b; }
#toast-container .toast-progress { height: 3px; background: #fff; opacity: .35; }

.map { position: relative; height: 100%; min-height: 420px; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__consent {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
    padding: clamp(28px, 4vw, 48px);
    background:
        radial-gradient(circle at 80% 20%, rgba(238, 108, 31, .22), transparent 50%),
        linear-gradient(var(--line-on-dark) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px) 0 0 / 40px 40px,
        var(--dark);
}
.map__consent .eyebrow { margin: 0; color: var(--on-dark-soft); }
.map__consent p { max-width: 21em; color: var(--on-dark-soft); font-size: 15px; }
.map__consent address { font-family: var(--font-wide); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; font-stretch: 112%; text-transform: uppercase; line-height: 1.15; }

/* legal pages */
.legal { display: grid; gap: 48px; }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px 1fr; gap: 80px; align-items: start; } }
.legal__toc { display: none; }
@media (min-width: 1000px) {
    .legal__toc { display: block; position: sticky; top: calc(var(--header-space) + 24px); padding: 8px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
}
.legal__toc a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-soft); transition: background .2s, color .2s; }
.legal__toc a:hover { background: var(--bg-alt); color: var(--orange); }
.legal__body { max-width: 43em; }
.legal__body h2 { margin: 56px 0 18px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { margin: 28px 0 10px; font-family: var(--font); font-size: 1.05rem; font-stretch: 100%; text-transform: none; letter-spacing: 0; }
.legal__body p, .legal__body li { color: var(--text-soft); }
.legal__body p + p { margin-top: 14px; }
.legal__body ul { margin: 12px 0; padding-left: 20px; list-style: disc; }
.legal__body li + li { margin-top: 6px; }
.legal__body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body address { color: var(--text-soft); }
.legal__note { margin-bottom: 32px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); font-size: 15px; }
.legal__stand { margin-top: 48px; font-size: 14px; color: var(--muted); }

.error-page {
    min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--header) + 40px) 0 64px;
    background: var(--dark); color: var(--on-dark);
}
.error-page__code { display: block; font-family: var(--font-wide); font-size: clamp(7rem, 26vw, 20rem); font-weight: 900; font-stretch: 125%; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--orange); }
.error-page h1 { margin-top: 32px; font-size: clamp(1.9rem, 5vw, 4rem); }
.error-page .lead { margin-top: 20px; color: var(--on-dark-soft); }

/* 8. Motion -------------------------------------------------------------- */

/* page transitions between documents (Chrome, Edge, Safari 18+); kept short so navigation feels instant */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .18s ease-in both; }
::view-transition-new(root) { animation: page-in .32s var(--ease-out) both; }
::view-transition-group(site-header) { animation: none; }

/* theme switch: the new colours grow out of the toggle button, see app.js */
.theme-switching::view-transition-old(root),
.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-switching::view-transition-old(site-header) { display: none; }
.theme-switching::view-transition-new(site-header) { animation: none; }

@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }
@keyframes settle { from { transform: scale(1.1); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes card-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }

.page-hero__media img { animation: settle 1.6s var(--ease-out) both; }

/* scroll reveal, content stays visible without JavaScript */
.js [data-reveal] {
    opacity: 0; transform: translateY(36px);
    transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* The clip goes on the images and leaves one pixel open: a fully clipped element counts as
   invisible, which would block both the reveal and lazy loading. */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] img {
    clip-path: inset(calc(100% - 1px) 0 0 0); transform: scale(1.15);
    transition: clip-path 1.2s var(--ease-in-out), transform 1.5s var(--ease-out);
}
.js [data-reveal="clip"] .frame:last-child img { transition-delay: .25s; }
.js [data-reveal="clip"].is-visible img { clip-path: inset(0 0 0 0); transform: none; }

/* After switching the language the new page appears at once, without intro animations. */
.instant .reveal-lines .line > span,
.instant .fade-up,
.instant .page-hero__media img { animation: none; }
.instant [data-reveal],
.instant [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; transition-delay: 0s !important;
    }
    .js [data-reveal], .js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
    .marquee__track { animation: none; }
}






/* scroll to top --------------------------------------------------------- */
.to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 95;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--glass);
    color: var(--text);
    border: 0;
    box-shadow: var(--shadow);
    cursor: pointer;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);

    /* gizli hâl */
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition:
        opacity .35s var(--ease-out),
        transform .5s  var(--ease-out),
        visibility 0s linear .5s,
        background .3s,
        color .3s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
        opacity .35s var(--ease-out),
        transform .5s  var(--ease-out),
        visibility 0s,
        background .3s,
        color .3s;
}

.to-top:hover {
    background: var(--orange);
    color: #fff;
}

.to-top .icon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    transition: transform .4s var(--ease-out);
}
.to-top:hover .icon { transform: translateY(-2px); }

/* ilerleme halkası */
.to-top__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* 12 yönünden başlasın */
    pointer-events: none;
    overflow: visible;
}
.to-top__ring-track,
.to-top__ring-bar {
    fill: none;
    stroke-linecap: round;
}
.to-top__ring-track {
    stroke: var(--line);
    stroke-width: 1.5;
}
.to-top__ring-bar {
    stroke: var(--orange);
    stroke-width: 2;
    stroke-dasharray: 125.66;
    stroke-dashoffset: 125.66;  /* başlangıçta görünmez */
    transition: stroke-dashoffset .2s linear;
}
.to-top:hover .to-top__ring-bar { stroke: #fff; }

/* menü açıkken gizle */
.menu-open .to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* mobilde biraz daha küçük */
@media (max-width: 479px) {
    .to-top { width: 46px; height: 46px; }
    .to-top .icon { width: 18px; height: 18px; }
}
