/* ========================================
   01. LOCAL FONTS
   ======================================== */

/* SHtUdYo Lam — shared tokens, layouts and components. Mobile first. */

@font-face {
    font-family: Inter;
    src: url('assets/fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('assets/fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('assets/fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ========================================
   02. VARIABLES
   ======================================== */

:root {
    --bg: #f6f5f1;
    --surface: #eeece6;
    --ink: #181916;
    --muted: #62645d;
    --line: #d7d7ce;
    --accent: #c14b2d;
    --gutter: clamp(22px,5vw,88px);
    --space: clamp(72px,10vw,160px);
    --max: 1440px;
    color-scheme: light;
}

html[data-theme=dark] {
    --bg: #191a18;
    --surface: #242622;
    --ink: #f2f2e9;
    --muted: #b8bab0;
    --line: #41433b;
    --accent: #e68e73;
    color-scheme: dark;
}

/* ========================================
   03. RESET / BASE
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter,Arial,sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: white;
}

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

button,input,textarea {
    font: inherit;
}

button,a,input,textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
    color: inherit;
}

button:disabled {
    cursor: wait;
    opacity: .6;
}

a,button {
    touch-action: manipulation;
}

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

figure {
    margin: 0;
}

h1,h2,h3,p {
    margin: 0;
}

/* ========================================
   04. TYPOGRAPHY / SHARED COMPONENTS
   ======================================== */

h1,h2,h3 {
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.055em;
}

h1 {
    font-size: clamp(48px,7.5vw,116px);
}

h2 {
    font-size: clamp(34px,4.1vw,64px);
}

h3 {
    font-size: 24px;
    letter-spacing: -.035em;
}

p+p {
    margin-top: 1em;
}

p {
    max-width: 70ch;
}

ul {
    padding-left: 1.2em;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

a:hover.text-link {
    text-decoration: underline;
    text-underline-offset: 6px;
}

[hidden] {
    display: none !important;
}

/* ========================================
   05. LAYOUT / GRID
   ======================================== */

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

.section {
    padding-block: var(--space);
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.6;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.lead {
    font-size: clamp(18px,1.8vw,25px);
    line-height: 1.6;
    color: var(--muted);
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 9px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 52px;
    padding: 14px 24px;
    background: var(--ink);
    color: var(--bg);
    border: 1px solid var(--ink);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s,transform .2s;
}

.button:hover {
    transform: translateY(-3px);
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.text-link,.back-link {
    font-size: 13px;
}

.skip {
    position: fixed;
    top: 8px;
    left: 12px;
    padding: 12px 20px;
    background: var(--ink);
    color: var(--bg);
    z-index: 200;
    transform: translateY(-160%);
}

.skip:focus {
    transform: none;
}

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

/* ========================================
   06. NAVIGATION
   ======================================== */

.site-header {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.nav-shell {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-inline: var(--gutter);
    max-width: 1700px;
    margin: auto;
}

.brand {
    display: block;
    width: 116px;
    flex-shrink: 0;
    line-height: 0;
}

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

.main-nav {
    display: flex;
    gap: clamp(20px,3vw,48px);
    margin-left: auto;
    font-size: 13px;
}

.main-nav a {
    padding: 12px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .2s;
}

.main-nav a:hover:after,.main-nav a[aria-current]:after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    height: 44px;
    width: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    font-size: 22px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    min-height: 44px;
    font-size: 13px;
}

/* ========================================
   07. HERO
   ======================================== */

.hero {
    min-height: min(900px,calc(100svh - 96px));
    position: relative;
    padding-top: 44px;
    padding-bottom: 52px;
    overflow: hidden;
}

.hero-top,.hero-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.hero-top p:last-child {
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(86px,12.5vw,200px);
    line-height: .89;
    letter-spacing: -.075em;
    margin: 65px 0 52px;
    position: relative;
    z-index: 1;
}

.hero h1>span:not(.accent) {
    color: var(--muted);
}

.accent {
    color: var(--accent);
}

.hero-bottom {
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.hero-bottom p {
    font-size: 14px;
    color: var(--muted);
}

.orbit {
    position: absolute;
    width: clamp(220px,39vw,590px);
    aspect-ratio: 1;
    right: 1%;
    top: 22%;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.orbit:before,.orbit:after {
    content: '';
    height: 1px;
    background: var(--line);
    width: 50%;
    position: absolute;
    top: 50%;
}

.orbit:before {
    right: calc(100% + 15px);
}

.orbit:after {
    left: calc(100% + 15px);
}

.orbit i {
    position: absolute;
    top: 13%;
    right: 13%;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.section-heading>p:last-child {
    font-size: 13px;
    color: var(--muted);
}

#auswahl {
    padding-top: 55px;
    border-top: 1px solid var(--line);
}

.feature-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-block: 25px;
    border-top: 1px solid var(--line);
}

.feature-meta>p:last-child {
    font-size: 12px;
    color: var(--muted);
}

/* Featured projects: dimensions are stable; only transforms and opacity animate. */

/* ========================================
   08. FEATURED PROJECTS
   ======================================== */

.grow-track {
    position: relative;
}

.grow-sticky {
    display: grid;
    place-items: center;
    min-height: 70svh;
}

.grow-card {
    --site-reveal: 0;
    --grow-scale-x: 1;
    --grow-scale-y: 1;
    --caption-gutter: clamp(24px, 5vw, 80px);
    position: relative;
    display: block;
    width: calc(100% - var(--gutter) * 2);
    height: 70svh;
    min-height: 380px;
    overflow: hidden;
    isolation: isolate;
    background: #1b1a18;
    color: #fff;
    border-radius: 4px;
}

.grow-content {
    position: absolute;
    inset: 0;
}

.grow-content > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grow-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.75));
    opacity: calc(1 - var(--site-reveal));
    pointer-events: none;
}

.grow-open {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
}

.grow-card:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: -5px;
}

.feature-caption {
    position: absolute;
    bottom: var(--caption-gutter);
    left: var(--caption-gutter);
    right: var(--caption-gutter);
    z-index: 2;
    opacity: calc(1 - var(--site-reveal));
    pointer-events: none;
}

.feature-caption > p {
    font-size: 12px;
    margin-bottom: 12px;
}

.feature-caption h2 {
    font-size: clamp(42px, 6.5vw, 104px);
    color: #fff;
}

.feature-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #ffffff70;
    margin-top: 25px;
    padding-top: 17px;
    font-size: 12px;
}

.circle-arrow {
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 23px;
    flex-shrink: 0;
}

.grow-website {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: var(--site-reveal);
    pointer-events: none;
    background: #111;
}

.grow-website iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border: 0;
    pointer-events: none;
    background: #111;
    transform-origin: top left;
}

.grow-project-link {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    font-size: 11px;
    padding: 12px 18px;
    border: 1px solid #ffffff70;
    border-radius: 30px;
    background: #181916e6;
    color: #fff;
    opacity: var(--site-reveal);
    pointer-events: none;
}

.motion-enabled .grow-track {
    height: 265svh;
}

.motion-enabled .grow-sticky {
    height: 100svh;
    position: sticky;
    top: 0;
}

.motion-enabled .grow-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    transform: scale(var(--grow-scale-x), var(--grow-scale-y));
}

.motion-enabled .grow-track.is-active .grow-card {
    will-change: transform;
}

.motion-enabled .grow-content {
    transform: scale(calc(1 / var(--grow-scale-x)), calc(1 / var(--grow-scale-y)));
    transform-origin: center;
}

.motion-enabled .grow-website {
    display: block;
}

.motion-enabled .feature-caption {
    left: 0;
    bottom: 0;
    right: auto;
    width: calc(var(--grow-initial-size) - var(--caption-gutter) * 2);
    transform:
        scale(calc(1 / var(--grow-scale-x)), calc(1 / var(--grow-scale-y)))
        translate(var(--caption-gutter), calc(var(--caption-gutter) * -1));
    transform-origin: bottom left;
}

.motion-enabled .grow-project-link {
    right: 0;
    bottom: 0;
    transform:
        scale(calc(1 / var(--grow-scale-x)), calc(1 / var(--grow-scale-y)))
        translate(-24px, -24px);
    transform-origin: bottom right;
}

/* ========================================
   09. SERVICES / PROJECT CARDS
   ======================================== */

.services {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin-top: 70px;
}

.services article {
    border-top: 1px solid var(--line);
    padding: 28px 32px 0 0;
}

.services article+article {
    padding-left: 32px;
    border-left: 1px solid var(--line);
}

.service-icon {
    display: block;
    height: 65px;
    font-size: 30px;
}

.services p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 18px;
    max-width: 32ch;
}

.more-work {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 8vw;
    align-items: center;
}

.card-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.card-image img {
    width: 100%;
    aspect-ratio: 1.3;
    object-fit: cover;
    transition: transform .7s;
}

.card-image:hover img {
    transform: scale(1.035);
}

.card-image .circle-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    background: #15151550;
    backdrop-filter: blur(8px);
}

.card-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
}

.card-caption h3 {
    font-size: 22px;
}

.card-caption p {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
}

.editorial-note>span {
    font-size: 40px;
    display: block;
    margin-bottom: 32px;
    color: var(--accent);
}

.editorial-note p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 24px;
    max-width: 37ch;
}

/* ========================================
   10. PROCESS / ABOUT TEASER
   ======================================== */

.process {
    background: var(--surface);
}

.process h2 {
    margin-top: 30px;
}

.process-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding: 0;
    gap: 48px;
    margin: 60px 0 0;
}

.process-grid li {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.process-grid span {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 28px;
}

.process-grid p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 16px;
}

.about-teaser,.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: center;
}

.portrait {
    background: var(--surface);
    min-height: 380px;
    aspect-ratio: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portrait:before {
    content: '';
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.portrait-mark {
    font-size: 160px;
    line-height: 1;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: -.1em;
    position: relative;
}

.portrait>span:last-child {
    font-size: 9px;
    letter-spacing: .2em;
    position: absolute;
    bottom: 24px;
}

.about-teaser h2 {
    margin-top: 24px;
}

.about-teaser p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
    margin: 24px 0 32px;
}

/* ========================================
   11. CONTACT CTA
   ======================================== */

.contact-cta {
    border-top: 1px solid var(--line);
}

.big-link {
    font-size: clamp(48px,8.2vw,132px);
    letter-spacing: -.065em;
    line-height: 1.15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
}

.big-link span {
    font-size: .7em;
    transition: transform .25s;
}

.big-link:hover span {
    transform: translate(7px,-7px);
    color: var(--accent);
}

.contact-cta>p:last-child {
    color: var(--muted);
    font-size: 14px;
}

/* ========================================
   12. FOOTER
   ======================================== */

.site-footer {
    padding: 50px var(--gutter) 24px;
    border-top: 1px solid var(--line);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 70px;
    gap: 30px;
}

.footer-top p,.footer-top>a:last-child {
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 24px;
    gap: 20px;
}

.footer-bottom>div {
    display: flex;
    gap: 24px;
}

.footer-bottom .dot {
    width: 5px;
    height: 5px;
    margin: 0 0 0 10px;
}

/* ========================================
   13. PROJECT ARCHIVE
   ======================================== */

.page-intro {
    padding-block: clamp(60px,9vw,140px);
}

.page-intro h1 {
    margin: 28px 0 32px;
}

.page-intro .lead {
    max-width: 48ch;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filters button,.device-buttons button {
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 12px 24px;
    background: none;
    font-size: 12px;
    min-height: 44px;
}

.filters button[aria-pressed=true],.device-buttons button[aria-pressed=true] {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.filters button span {
    margin-left: 10px;
    font-size: 9px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px 36px;
}

.archive {
    padding-top: 0;
}

/* ========================================
   14. CASE STUDIES / DEVICE SHOWCASE
   ======================================== */

.case-intro {
    padding-block: 50px 65px;
}

.back-link {
    display: block;
    margin-bottom: 64px;
    color: var(--muted);
}

.case-intro h1 {
    margin: 20px 0 28px;
}

.case-intro .lead {
    max-width: 52ch;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
}

.case-meta>div span {
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
}

.case-meta p {
    font-size: 12px;
    margin-top: 7px;
}

.case-meta .button {
    margin-left: auto;
}

.case-cover {
    position: relative;
}

.case-cover img {
    width: 100%;
    height: 75svh;
    min-height: 360px;
    max-height: 850px;
    object-fit: cover;
}

.case-cover figcaption {
    position: absolute;
    bottom: 15px;
    left: var(--gutter);
    font-size: 10px;
    color: white;
    background: #0009;
    padding: 6px 12px;
}

.case-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
}

.case-story article {
    margin-bottom: 42px;
}

.case-story article>p:last-child {
    margin-top: 16px;
    font-size: 16px;
    color: var(--muted);
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.tags li {
    font-size: 11px;
    border: 1px solid var(--line);
    padding: 7px 12px;
    border-radius: 30px;
}

.showcase-section {
    background: var(--surface);
}

.device-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 55px 0 35px;
}

.device-stage {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.device-frame {
    width: 100%;
    max-width: 1160px;
    border: 8px solid #222420;
    border-radius: 15px;
    background: #222420;
    box-shadow: 0 25px 55px #0002;
    overflow: hidden;
}

.browser-bar {
    height: 30px;
    background: #e5e5df;
    color: #51534a;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.browser-bar>span:first-child {
    font-size: 8px;
    letter-spacing: 4px;
}

.device-window {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: white;
    aspect-ratio: 1440/900;
}

.device-window iframe {
    border: 0;
    display: block;
    width: 1440px;
    height: 900px;
    transform-origin: top left;
    background: white;
}

.device-frame[data-device=ipad] {
    max-width: 510px;
    border-width: 12px;
    border-radius: 25px;
}

.device-frame[data-device=iphone] {
    max-width: 300px;
    border-width: 10px;
    border-radius: 38px;
}

.device-frame[data-device=iphone] .browser-bar {
    border-radius: 20px 20px 0 0;
    height: 24px;
}

.device-frame[data-device=iphone] .browser-bar>span:first-child {
    width: 65px;
    background: #222420;
    border-radius: 12px;
    color: transparent;
}

.showcase-note {
    font-size: 12px;
    color: var(--muted);
    max-width: 75ch;
    margin: 32px auto 16px;
    text-align: center;
}

.showcase>.text-link {
    display: block;
    text-align: center;
}

.detail-image {
    margin-top: 35px;
}

.detail-image img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
    aspect-ratio: 1.6;
}

.project-pagination {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding-block: 40px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

/* ========================================
   15. ABOUT / CONTACT / LEGAL
   ======================================== */

.large {
    aspect-ratio: 4/5;
    min-height: 500px;
}

.about-layout p:not(.eyebrow):not(.lead) {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
}

.about-columns h2 {
    margin-top: 20px;
}

.timeline,.skill-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.timeline li,.skill-list li {
    border-top: 1px solid var(--line);
    padding: 24px 0;
}

.timeline li span {
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
}

.timeline h3,.skill-list h3 {
    font-size: 20px;
    margin: 10px 0;
}

.timeline p,.skill-list p {
    font-size: 13px;
    color: var(--muted);
}

.brand-story {
    background: var(--surface);
}

.brand-story h2 {
    margin: 30px 0;
}

.brand-story .lead {
    max-width: 50ch;
}

.brand-line {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 60px;
}

.brand-line:before,.brand-line:after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.brand-line i {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ink);
    border-radius: 50%;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
}

.contact-layout h1 {
    font-size: clamp(45px,5.4vw,86px);
}

.contact-info {
    font-size: 12px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    gap: 12px;
}

.contact-form>label {
    font-size: 12px;
    margin-top: 12px;
}

.contact-form>input,.contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
    padding: 14px 0 18px;
    color: var(--ink);
    font-size: 15px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
    margin: 18px 0;
}

.consent input {
    margin-top: 4px;
    accent-color: var(--ink);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.consent a {
    text-decoration: underline;
}

.contact-form .button {
    margin-top: 12px;
    width: 100%;
}

.form-status {
    font-size: 13px;
    min-height: 24px;
    white-space: pre-wrap;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error-page {
    text-align: center;
    padding-block: 100px 140px;
}

.error-page p {
    margin-inline: auto;
}

.error-page .button {
    margin-top: 30px;
}

.error-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(110px,20vw,270px);
    margin-block: 35px;
}

.error-number span {
    font-size: .8em;
    font-weight: 400;
}

.error-page h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.legal {
    max-width: 850px;
}

.legal h2 {
    font-size: 26px;
    margin: 45px 0 18px;
}

.legal p {
    font-size: 14px;
    color: var(--muted);
}

.notice {
    border-left: 2px solid var(--accent);
    background: var(--surface);
    padding: 24px;
    font-size: 13px;
    margin-block: 30px;
}

/* ========================================
   16. OPTIONAL BEFORE / AFTER
   ======================================== */

.comparison {
    position: relative;
    overflow: hidden;
    --split: 50%;
}

.comparison>img {
    width: 100%;
}

.comparison .comparison-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.comparison:after {
    content: '↔';
    display: grid;
    place-items: center;
    position: absolute;
    left: var(--split);
    top: 0;
    bottom: 0;
    border-left: 2px solid #fff;
    color: white;
    background: #0003;
    transform: translateX(-50%);
    width: 32px;
    pointer-events: none;
}

.comparison input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: ew-resize;
    z-index: 2;
}

.comparison:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* ========================================
   17. RESPONSIVE DESIGN
   ======================================== */

@media (min-width:1500px) {
    .hero h1 {
        margin-top: 80px;
    }
    .hero {
        min-height: 900px;
    }
}

@media (max-width:900px) {
    .hero {
        min-height: 760px;
    }
    .hero h1 {
        font-size: clamp(100px,16vw,150px);
        margin-top: 90px;
    }
    .hero-top p:last-child {
        max-width: 150px;
        text-align: right;
    }
    .section-heading {
        flex-wrap: wrap;
    }
    .services article {
        padding-right: 20px;
    }
    .services article+article {
        padding-left: 20px;
    }
    .case-meta {
        gap: 24px;
        flex-wrap: wrap;
    }
    .case-meta .button {
        margin-left: 0;
    }
    .card-caption {
        display: block;
    }
    .card-caption p {
        text-align: left;
        margin-top: 10px;
    }
    .contact-layout {
        gap: 5vw;
    }
    .footer-bottom {
        flex-wrap: wrap;
    }
    .large {
        min-height: 350px;
    }
}

@media (max-width:640px) {
    .nav-shell {
        height: 78px;
        gap: 15px;
    }
    .brand {
        width: 100px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-actions {
        margin-left: auto;
        gap: 12px;
    }
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    .main-nav {
        margin-left: 0;
        gap: 18px;
        font-size: 12px;
    }
    .js .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 20px var(--gutter) 30px;
        flex-direction: column;
        gap: 8px;
        font-size: 22px;
    }
    .js .main-nav.is-open {
        display: flex;
    }
    .hero {
        padding-top: 30px;
        min-height: 700px;
        min-height: calc(100svh - 78px);
        padding-bottom: 35px;
    }
    .hero-top {
        gap: 12px;
    }
    .hero-top .eyebrow {
        font-size: 9px;
        letter-spacing: .09em;
    }
    .hero-top p:last-child {
        max-width: 110px;
    }
    .hero h1 {
        font-size: clamp(82px,22vw,135px);
        margin: 78px 0 60px;
        line-height: .96;
    }
    .hero-bottom {
        align-items: start;
        flex-direction: column;
        gap: 25px;
    }
    .hero-bottom p {
        font-size: 12px;
    }
    .hero-bottom .button {
        width: 100%;
        font-size: 12px;
    }
    .orbit {
        width: 220px;
        top: 26%;
        right: -95px;
        opacity: .65;
    }
    .section-heading {
        gap: 18px;
    }
    .section-heading h2 {
        font-size: 34px;
    }
    .feature-meta .eyebrow {
        font-size: 9px;
    }
    .feature-meta>p:last-child {
        font-size: 10px;
    }
    .feature-caption h2 {
        font-size: 43px;
    }
    .feature-caption>p {
        font-size: 10px;
    }
    .feature-action {
        font-size: 11px;
    }
    .motion-enabled .grow-track {
        height: 235svh;
    }
    .grow-card {
        min-height: 0;
        height: 65svh;
    }
    .services {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }
    .services article,.services article+article {
        border-left: 0;
        padding: 25px 0 30px;
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 15px;
    }
    .service-icon {
        grid-row: span 2;
        height: auto;
        font-size: 25px;
    }
    .services h3 {
        font-size: 23px;
    }
    .services p {
        max-width: 40ch;
        margin-top: 12px;
        font-size: 13px;
    }
    .more-work,.about-teaser,.about-layout,.case-story,.about-columns,.contact-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }
    .editorial-note {
        padding-top: 20px;
    }
    .editorial-note>span {
        margin-bottom: 24px;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    .process-grid li {
        position: relative;
        padding-left: 45px;
    }
    .process-grid span {
        position: absolute;
        left: 0;
        top: 22px;
    }
    .process-grid p {
        font-size: 13px;
    }
    .portrait {
        min-height: 300px;
        aspect-ratio: 1.2;
    }
    .about-teaser h2 {
        margin-top: 20px;
    }
    .footer-top {
        flex-wrap: wrap;
        padding-bottom: 35px;
        align-items: start;
    }
    .footer-top>p {
        font-size: 11px;
        max-width: 140px;
    }
    .footer-top>a:last-child {
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .footer-bottom>div {
        gap: 20px;
        flex-wrap: wrap;
    }
    .big-link {
        font-size: clamp(43px,10vw,65px);
    }
    .contact-cta>p:last-child {
        font-size: 12px;
    }
    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .card-caption {
        display: flex;
    }
    .card-caption p {
        margin-top: 0;
        font-size: 10px;
        max-width: 100px;
        text-align: right;
    }
    .card-caption h3 {
        font-size: 20px;
    }
    .page-intro h1 {
        font-size: clamp(43px,11vw,70px);
    }
    .filters button {
        padding: 10px 16px;
    }
    .case-intro {
        padding-top: 30px;
    }
    .back-link {
        margin-bottom: 40px;
    }
    .case-intro h1 {
        font-size: clamp(45px,11vw,70px);
    }
    .case-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 35px;
    }
    .case-meta .button {
        justify-self: start;
    }
    .case-cover img {
        height: 52svh;
        min-height: 320px;
    }
    .case-cover figcaption {
        font-size: 8px;
        right: 20px;
        left: 20px;
    }
    .case-story article>p:last-child {
        font-size: 14px;
    }
    .device-buttons {
        margin-top: 30px;
        gap: 6px;
    }
    .device-buttons button {
        padding: 10px 17px;
    }
    .device-frame {
        border-width: 5px;
    }
    .browser-bar {
        height: 25px;
        font-size: 8px;
    }
    .device-stage {
        min-height: 180px;
    }
    .showcase-note {
        font-size: 11px;
        text-align: left;
    }
    .project-pagination {
        font-size: 10px;
        flex-wrap: wrap;
        gap: 15px;
    }
    .project-pagination>a:nth-child(2) {
        order: 3;
        width: 100%;
        text-align: center;
    }
    .contact-layout h1 {
        font-size: 52px;
    }
    .contact-form {
        padding-top: 0;
    }
    .large {
        aspect-ratio: 1.1;
        min-height: 300px;
    }
    .about-layout .portrait {
        order: 2;
    }
    .detail-image img {
        aspect-ratio: 1;
    }
    .brand-story .lead {
        font-size: 18px;
    }
    .contact-layout .brand-line {
        display: none;
    }
    html:not(.js) .nav-shell {
        height: auto;
        min-height: 78px;
        flex-wrap: wrap;
        padding-block: 15px;
    }
    html:not(.js) .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
    html:not(.js) .menu-toggle {
        display: none;
    }
}

/* ========================================
   18. REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    *,*:before,*:after {
        animation: none !important;
        transition: none !important;
    }
    .motion-enabled .grow-track {
        height: auto;
    }
    .motion-enabled .grow-sticky {
        position: relative;
        height: auto;
        min-height: 70svh;
    }
    .motion-enabled .grow-card {
        will-change: auto;
        transform: none;
    }
    .motion-enabled .grow-content,.motion-enabled .feature-caption,.motion-enabled .grow-project-link {
        transform: none;
    }
    .grow-website, .grow-project-link {
        display: none !important;
    }
}

/* ========================================
   19. PRINT
   ======================================== */

@media print {
    .site-header,.site-footer,.grow-track,.showcase-section,.contact-cta {
        display: none;
    }
    .wrap {
        width: 100%;
    }
    .section,.page-intro {
        padding: 25px 0;
    }
    body {
        background: white;
        color: black;
    }
}

