/* Fonts are served from this site (no requests to Google) – latin + latin-ext subsets */
/* Instrument Serif, latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-latin-ext-4bed00.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;
}
/* Instrument Serif, latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-latin-99cc6e.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;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-ext-749a30.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;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter-latin-1ab1ad.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;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin-ext-749a30.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;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-latin-1ab1ad.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;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext-749a30.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;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-latin-1ab1ad.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;
}
/* Inter Tight, latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-tight-latin-ext-8a39ba.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;
}
/* Inter Tight, latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter-tight-latin-6c70c7.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;
}
/* Inter Tight, latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-tight-latin-ext-8a39ba.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;
}
/* Inter Tight, latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter-tight-latin-6c70c7.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;
}

:root {
  --paper: #F7F5EE;
  --paper-2: #EEEBE1;
  --ink: #171717;
  --ink-2: #45433E;
  --muted: #6B6862;
  --line: #DAD6C9;
  --lime: #C7FF2F;
  --night-text: #B8B5AC;
  --night-line: #33332F;
  --error: #B42318;
  --field: #BDB8AA; /* form field and chip borders */
  --on-lime: #171717; /* text and arrows on lime: black in both themes */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 6px;
  /* Motion: one curve, three speeds */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t-fast: 0.3s;
  --t-med: 0.6s;
  --t-slow: 0.9s;
  --display: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .menu :focus-visible, .footer :focus-visible { outline-color: var(--lime); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(96px, 12vw, 176px) var(--gutter); }
.dark { background: var(--ink); color: var(--paper); }

/* Type */
.h1, .h2, .h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.045em; }
.h1 { font-size: clamp(52px, 8vw, 128px); line-height: 0.92; }
.h2 { font-size: clamp(44px, 7vw, 112px); line-height: 0.95; }
.h3 { font-size: clamp(40px, 5.4vw, 84px); line-height: 0.95; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hl { background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 82% no-repeat; color: var(--on-lime); padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lime { color: var(--lime); }
/* Accent word in headings on paper sits on a lime block (dark sections use lime text, the lime band needs neither) */
.h2 .serif:not(.lime) { background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 86% no-repeat; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; color: var(--on-lime); }
.contact .h2 .serif { background: none; padding: 0; }
/* words in the lime band heading light up white under the mouse */
.contact .hw { transition: color var(--t-fast) var(--ease); }
@media (hover: hover) { .contact .hw:hover { color: #FFFFFF; } }
/* Second half of the hero headline: ink on a lime block, line by line */
.hl2 { color: var(--on-lime); background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 86% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.num { font-family: var(--display); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 20px 0 22px; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition-property: background-color, color, border-color, transform; transition-duration: var(--t-fast); transition-timing-function: var(--ease); }
.btn svg { flex: none; transition: transform var(--t-fast) var(--ease); }
.btn-sm { min-height: 44px; padding: 0 14px 0 16px; font-size: 15px; gap: 10px; }
.btn-lime { background: var(--lime); color: var(--on-lime); }
/* Every arrow sits in a round badge: lime with an ink arrow, ink with a lime arrow wherever the background is lime */
.btn svg, .link-btn svg, .cta-links svg, .channel svg { box-sizing: content-box; padding: 7px; border-radius: 50%; background: var(--lime); color: var(--on-lime); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.next-link svg { box-sizing: content-box; padding: 16px; border-radius: 50%; background: var(--lime); color: var(--on-lime); }
.btn-lime svg, .cta-links svg, .contact .channel svg { background: var(--on-lime); color: var(--lime); }
@media (hover: hover) { .btn:hover svg { background: var(--on-lime); color: var(--lime); } }
.btn:focus-visible svg { background: var(--on-lime); color: var(--lime); }
.btn:has(svg) { padding-right: 8px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { border-color: currentColor; color: inherit; }
/* Hover and keyboard focus share one state: every button turns lime, the arrow nudges out */
@media (hover: hover) { .btn:hover { background: var(--lime); color: var(--on-lime); border-color: var(--lime); } .btn-lime:hover { background: #B8F21A; border-color: #B8F21A; } }
.btn:focus-visible { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    /* arrows turn from ↗ to → on hover */
    .btn:hover svg, .channel:hover svg, .link-btn:hover svg, .next-link:hover svg, .cta-links a:hover svg, .menu-links a:hover .tile svg { transform: rotate(45deg); }
    .back:hover svg { transform: translateX(-3px); }
  }
  .btn:focus-visible svg, .channel:focus-visible svg, .link-btn:focus-visible svg, .next-link:focus-visible svg, .cta-links a:focus-visible svg, .menu-links a:focus-visible .tile svg { transform: rotate(45deg); }
  .btn:active { transform: scale(0.98); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); }
.brand { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: 28px; }
.nav a { position: relative; font-size: 15px; text-decoration: none; padding: 12px 0; }
/* Hover: an ink rule draws in. Current section (set by script.js): a lime marker behind the word */
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current] { background: linear-gradient(var(--lime), var(--lime)) 0 72% / 100% 40% no-repeat; }
.header { transition: transform var(--t-med) var(--ease); }
.header.away:not(:focus-within) { transform: translateY(-100%); }
.lang { display: flex; font-size: 14px; font-weight: 500; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--ink); }
.talk .short { display: none; }
.menu-btn { display: inline-flex; min-width: 44px; justify-content: center; min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; gap: 10px; align-items: center; }
.menu-btn span[aria-hidden] { display: block; width: 26px; height: 1.5px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); }

@media (max-width: 960px) {
  .header .nav, .header .lang { display: none; }
}
/* Phones and tablets: short label next to a round lime arrow */
@media (max-width: 960px) {
  .header .wrap { gap: 16px; }
  .header .talk { min-height: 44px; padding: 0; gap: 10px; background: none; border: 0; color: var(--ink); }
  .talk .long { display: none; }
  .talk .short { display: inline; }
  .header .talk svg { padding: 12px; background: var(--lime); color: var(--on-lime); }
  @media (hover: hover) { .header .talk:hover svg { background: var(--on-lime); color: var(--lime); } }
  @media (hover: hover) { .header .talk:hover { background: none; } }
  .header .talk:focus-visible { background: none; }
}

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; padding: 0 var(--gutter) 40px; background: var(--ink); color: var(--paper); overflow-y: auto; }
.menu[hidden] { display: none; }
/* wide screens: menu content keeps the page's width instead of stretching edge to edge */
.menu > * { width: 100%; max-width: var(--max); margin-inline: auto; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.menu-top .brand { color: var(--paper); }
.menu-close { min-height: 44px; padding: 0 4px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 500; color: var(--paper); cursor: pointer; }
.menu-links { display: flex; flex-direction: column; margin-block: 32px 40px; border-top: 1px solid var(--night-line); }
.menu-links a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--night-line); font-family: var(--display); font-size: clamp(40px, 11vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; text-decoration: none; }
.menu-links a .num { color: var(--lime); }
.menu-links .tile svg, .cta-links svg { transition: transform var(--t-fast) var(--ease); }
.menu-links .tile { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; align-self: center; border-radius: 50%; background: var(--lime); color: var(--on-lime); }
.menu-mail { margin-bottom: 32px; font-size: 18px; text-decoration: none; color: var(--paper); }
.menu-mail:hover { color: var(--lime); }
.menu-links a:hover { color: var(--lime); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; }
.menu .lang a { color: var(--night-text); }
.menu .lang a:hover { color: var(--paper); }

/* Image slots: a labelled box shows while the file is missing */
.slot { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.slot > img { width: 100%; height: 100%; object-fit: cover; }
.slot.missing > img { display: none; }
.slot .label { display: none; position: absolute; inset: 0; align-items: flex-end; padding: 20px; font-size: 13px; color: var(--muted); }
.slot.missing .label { display: flex; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 120px) var(--gutter) 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: end; }
.hero .h1 { grid-column: 1 / -1; position: relative; z-index: 1; }
.hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: clamp(56px, 7vw, 96px) auto 0; padding: 20px 0 28px; border-top: 1px solid var(--ink); }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.hero-facts span { color: var(--muted); font-size: 13px; }
@media (min-width: 961px) {
  .hero .h1 { grid-column: 1 / span 10; grid-row: 1; }
  .hero-copy { grid-column: 1 / span 5; grid-row: 2; }
}
@media (max-width: 960px) { .hero-copy { grid-column: 1 / -1; } }
/* original illustration (images/retro-pc.svg), sits beside the copy and floats gently */
.hero-grid { position: relative; }
.hero-art { position: absolute; right: 0; bottom: clamp(-60px, -3vw, -20px); width: min(35vw, 520px); height: auto; pointer-events: none; z-index: 0; } /* behind the headline (h1 is z-index 1), so text always reads on top */
:lang(en) .hero-art { bottom: clamp(-120px, -7vw, -40px); width: min(32vw, 500px); }
/* EN headline sits on two lines up to ~1500px – keep the monitor clear of "launch." there */
@media (min-width: 961px) and (max-width: 1500px) { :lang(en) .hero-art { width: 27vw; } }
/* wide screens: more room beside the headline – pull it in and up */
@media (min-width: 1600px) { :lang(en) .hero-art { right: clamp(24px, 5vw, 96px); bottom: clamp(-70px, -4vw, -10px); } }
/* tablet + phone: small, right of the buttons */
@media (max-width: 960px) { .hero-art, :lang(en) .hero-art { right: 0; bottom: -12px; width: 26vw; } }
@media (max-width: 640px) { .hero-art, :lang(en) .hero-art { width: 36vw; } }
@media (prefers-reduced-motion: no-preference) { html:not(.still) .hero-art { animation: floaty 6s ease-in-out infinite; } }
@keyframes floaty { 50% { translate: 0 -10px; } }
@media (max-width: 640px) { .hero-facts { grid-template-columns: 1fr; gap: 14px; } }

/* Section head */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(56px, 8vw, 112px); }
.section-head p { margin: 0; max-width: 36ch; color: var(--ink-2); }
.dark .section-head p { color: var(--night-text); }

/* Projects */
.projects { display: flex; flex-direction: column; gap: clamp(96px, 12vw, 176px); }
.project { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; }
.cover { grid-column: 1 / span 7; aspect-ratio: 4 / 3; }
@media (min-width: 961px) { .project:nth-child(odd) .cover { width: 105%; } }
.project-info { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.project:nth-child(even) .cover { grid-column: 6 / -1; grid-row: 1; }
.project:nth-child(even) .project-info { grid-column: 1 / span 4; grid-row: 1; }
.project-info p { margin: 0; color: var(--ink-2); }
.project-info .num, .step .num { align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: var(--lime); color: var(--on-lime); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.details { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--ink-2); }
.details[hidden] { display: none; }
.link-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
@media (max-width: 960px) {
  .cover, .project-info, .project:nth-child(even) .cover, .project:nth-child(even) .project-info { grid-column: 1 / -1; grid-row: auto; }
}

/* Case study pages */
.case-hero { padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(40px, 5vw, 72px); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: clamp(24px, 4vw, 48px); font-size: 15px; color: var(--muted); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.back:hover { color: var(--ink); }
.back svg { transition: transform var(--t-fast) var(--ease); }
.case-head { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.case-head .num { align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: var(--lime); color: var(--on-lime); }
.tagline { margin: -8px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.03em; line-height: 1.1; }
.built h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; transform: translateY(1px); }
.similar { margin-top: 48px; }
.case-hero .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 24px; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--ink); }
.case-hero .facts div { grid-template-columns: 1fr; align-content: start; gap: 4px; border-bottom: 0; padding: 16px 0 0; }
.case-cover-sec { padding: 0 var(--gutter); }
.case-cover { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .case-cover { aspect-ratio: 4 / 3; } }
.case-body .case-rows { border-top: 1px solid var(--ink); }
.case-rows { margin: 0; counter-reset: row; }
/* each title gets a lime number block, like the project numbers */
.case-rows dt::before { counter-increment: row; content: counter(row, decimal-leading-zero); display: inline-block; margin-right: 12px; padding: 3px 8px; border-radius: 4px; background: var(--lime); color: var(--on-lime); font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; vertical-align: 0.2em; font-variant-numeric: tabular-nums; }
.case-rows > div { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.case-rows dt { grid-column: 1 / span 4; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.timeline { border-top: 1px solid var(--ink); }
.timeline dt::before { content: none; }
.timeline .year { display: block; margin-bottom: 6px; font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.about-text > p:not(.lead) { margin: 0; max-width: 60ch; color: var(--ink-2); }
.case-rows dd { grid-column: 6 / -1; margin: 0; max-width: 62ch; color: var(--ink-2); }
.case-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.case-shots img { width: 100%; height: auto; border-radius: var(--radius); outline: 1px solid rgba(23, 23, 23, 0.08); outline-offset: -1px; }
@media (max-width: 760px) { .case-rows dt, .case-rows dd { grid-column: 1 / -1; } .case-shots { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line); }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
.step h3 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.step p { margin: 0; font-size: 16px; color: var(--night-text); }
.stack { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: clamp(56px, 7vw, 96px) 0 0; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: 15px; }
.stack span { min-width: 112px; color: var(--night-text); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; }
.faq-grid .h2 { grid-column: 1 / span 5; }
.faq-list { grid-column: 7 / -1; border-top: 1px solid var(--ink); }
@media (max-width: 960px) { .faq-grid .h2, .faq-list { grid-column: 1 / -1; } }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 18px 0; list-style: none; cursor: pointer; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform var(--t-fast) var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 0 24px; max-width: 56ch; color: var(--ink-2); }

/* Services */
.service-list { border-top: 1px solid var(--night-line); }
.service { display: grid; grid-template-columns: 1fr 5fr 5fr; gap: 16px 24px; padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--night-line); }
.service .num { color: var(--lime); padding-top: 0.6em; }
.service .h3 { font-size: clamp(36px, 4.4vw, 64px); }
.service p { margin: 0; padding-top: 0.5em; color: var(--night-text); max-width: 44ch; }
.svc-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 15px; }
.svc-items li { padding: 10px 0; border-top: 1px solid var(--night-line); }
@media (max-width: 520px) { .svc-items { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } .service .num { padding-top: 0; } }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: end; }
.about .slot { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.about-text { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 32px; }
.about .h2 { font-size: clamp(40px, 5.2vw, 80px); }
@media (max-width: 960px) { .about .slot, .about-text { grid-column: 1 / -1; } .about .slot { max-width: 520px; } }

/* Contact */
.contact { background: var(--lime); }
.contact .h2 { max-width: 13ch; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.channel > span { display: flex; flex-direction: column; gap: 2px; }
.channel small { font-size: 14px; }
.channel strong { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; word-break: break-all; }
.channel svg { flex: none; transition: transform var(--t-fast) var(--ease); }

.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 4vw, 48px); background: var(--paper); border-radius: var(--radius); }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend, .form label { font-size: 14px; font-weight: 500; }
.form legend { padding-bottom: 12px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid var(--field); border-radius: var(--radius); font: inherit; font-size: 15px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; font-weight: 400; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--field); border-radius: 0; background: transparent; color: var(--ink); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--ink); }
.form textarea { padding: 14px 2px; resize: vertical; }
.consent { margin: 0; font-size: 14px; color: var(--muted); }
.consent a { color: inherit; }
.form [aria-invalid="true"] { border-color: var(--error); }
.err { margin: -12px 0 0; font-size: 14px; color: var(--error); }
.err[hidden], .status[hidden] { display: none; }
.status { margin: 0; font-size: 15px; color: var(--ink-2); }
.form .btn { align-self: stretch; justify-content: space-between; min-height: 56px; }
/* Contact: channels left; the form waits behind one button */
.contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact-side > p { margin: 0; max-width: 34ch; font-size: clamp(18px, 1.5vw, 21px); }
.contact-side .form { width: 100%; }

/* Next project + closing call to action */
.next-sec { padding: clamp(64px, 8vw, 120px) var(--gutter); }
.next-link { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--ink); text-decoration: none; }
.next-link > span { display: flex; flex-direction: column; gap: 8px; }
.next-link small { font-size: 15px; color: var(--muted); }
.next-link strong { font-family: var(--display); font-size: clamp(48px, 8vw, 128px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.next-link svg { flex: none; transition: transform var(--t-fast) var(--ease); }
.cta-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.cta .h2 { max-width: 13ch; }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; }
.cta-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* ink buttons sit on lime here, so their hover can't turn lime */
@media (hover: hover) { .cta .btn:hover { background: var(--paper); border-color: var(--ink); } }
.cta .btn:focus-visible { background: var(--paper); border-color: var(--ink); }
.dark .link-btn { color: var(--paper); }
.link-btn svg { transition: transform var(--t-fast) var(--ease); }
.link-btn.more { margin-top: 40px; }
.notfound .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-height: 60vh; justify-content: center; }
.nf-code { color: var(--on-lime); margin: 0; padding: 0 0.12em; background: var(--lime); font-family: var(--display); font-weight: 600; font-size: clamp(96px, 18vw, 240px); line-height: 0.9; letter-spacing: -0.06em; }
.legal .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.legal .h2 { hyphens: auto; overflow-wrap: break-word; }
.legal-block { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal .wrap { counter-reset: legal; }
.legal-block h2::before { counter-increment: legal; content: counter(legal, decimal-leading-zero); display: inline-block; margin-right: 12px; padding: 3px 8px; border-radius: 4px; background: var(--lime); color: var(--on-lime); font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; vertical-align: 0.15em; font-variant-numeric: tabular-nums; }
.legal .h2 { color: var(--on-lime); align-self: flex-start; width: fit-content; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 86% no-repeat; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-block h2 { margin: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.legal-block p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.legal-block a { color: var(--ink); }

/* HUD (desktop): section counter; the motion switch lives in the footer */
.hud { display: none; }
@media (min-width: 961px) {
  .hud { display: contents; }
  .progress { position: fixed; z-index: 15; bottom: 20px; left: var(--gutter); }
}
.progress { display: flex; align-items: center; min-height: 40px; gap: 14px; margin: 0; padding: 0; list-style: none; font-family: var(--display); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink); transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), visibility var(--t-fast); }
.progress.on-dark { color: var(--paper); }
.progress.gone { opacity: 0; visibility: hidden; }
.progress li { display: flex; align-items: center; gap: 10px; opacity: 0.5; transition: opacity var(--t-fast) var(--ease); }
.progress li.on { opacity: 1; }
.progress li.on::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.still-btn, .theme-btn { min-height: 44px; margin: -12px 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; transition: color var(--t-fast) var(--ease); }
.still-btn:hover, .theme-btn:hover { color: var(--paper); }
.still-btn[aria-pressed="true"], .theme-btn[aria-pressed="true"] { color: var(--lime); }
@media (prefers-reduced-motion: reduce) {
  .menu { animation: fade 0.2s ease both; }
  .menu.closing { animation: fade 0.2s ease reverse both; }
  @keyframes fade { from { opacity: 0; } } .still-btn { display: none; } }

/* Page changes: the old page lifts away, the new one rises in (browsers without view transitions just load) */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: page-out 0.3s cubic-bezier(0.65, 0, 0.35, 1) both; }
  ::view-transition-new(root) { animation: page-in 0.6s cubic-bezier(0.2, 0.7, 0.1, 1) 0.12s both; }
  @keyframes page-out { to { opacity: 0; transform: translateY(-24px); } }
  @keyframes page-in { from { opacity: 0; transform: translateY(48px); } }
}
html.still::view-transition-old(root), html.still::view-transition-new(root) { animation: none; }

/* Motion switch on: everything rests */
html.still { scroll-behavior: auto; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .reveal { opacity: 1; transform: none; }
.still .cover, .still .cover > img, .still .cover .brand-panel, .still .cover .shots { transform: none; scale: none; }

/* Footer */
.footer { padding: clamp(80px, 10vw, 128px) var(--gutter) 32px; }
.footer .wrap { display: flex; flex-direction: column; gap: 64px; }
.footer-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(48px, 11.5vw, 184px); line-height: 0.85; letter-spacing: -0.055em; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 24px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--night-text); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--lime); }
.copy { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 14px; color: var(--night-text); }
.copy > span { margin-right: auto; }
.copy a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; text-decoration: none; }
.copy a:hover { color: var(--paper); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .header, .nav a::after { transition: none; } }

/* Motion. Everything below only runs when the visitor allows motion;
   CSS-only, so the page renders complete without JS. */
.hero .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero .w > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { transform: translateY(105%); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
  @keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }
  @keyframes sweep { from { background-size: 0% 82%; } }

  /* 1. Hero entrance – done within ~1.2s */
  .header { animation: fade-down var(--t-med) var(--ease) both; }
  /* Menu folds down from the header, links fold in one after another; .closing folds it back up */
  .menu { transform-origin: 50% 0; animation: fold-open 0.55s var(--ease) both; }
  .menu-links a { transform-origin: 50% 0; animation: fold-in 0.5s var(--ease) both; animation-delay: calc(0.18s + var(--i, 0) * 0.07s); }
  .menu-mail, .menu-foot { animation: fade-up var(--t-med) var(--ease) 0.45s both; }
  /* Closing plays the opening backwards: foot fades, links fold up from the bottom, then the panel */
  .menu.closing .menu-mail, .menu.closing .menu-foot { animation: fade-out 0.2s ease both; }
  .menu.closing .menu-links a { animation: fold-out 0.32s cubic-bezier(0.65, 0, 0.35, 1) both; animation-delay: calc(var(--r, 0) * 0.05s); }
  .menu.closing { animation: fold-close 0.42s cubic-bezier(0.65, 0, 0.35, 1) 0.2s both; }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes fold-out { to { transform: perspective(700px) rotateX(-90deg); opacity: 0; } }
  @keyframes fold-open { from { transform: perspective(1400px) rotateX(-80deg); opacity: 0; } }
  @keyframes fold-close { to { transform: perspective(1400px) rotateX(-80deg); opacity: 0; } }
  @keyframes fold-in { from { transform: perspective(700px) rotateX(-90deg); opacity: 0; } }
  .hero .w > span { animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(0.1s + var(--i) * 0.05s); }
  .hero .hl, .hero .hl2 { animation: sweep var(--t-med) var(--ease) 0.55s both; }
  .faq[open] p { animation: fade-up var(--t-med) var(--ease) both; }
  .hero-copy { animation: fade-up var(--t-med) var(--ease) 0.45s both; }
  .hero-facts { animation: fade-up var(--t-med) var(--ease) 0.6s both; }

  /* 2. Scroll reveals (.reveal is added by script.js) */
  .reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 0.08s); }
  .reveal.in { opacity: 1; transform: none; }

  /* 3. Project covers (--p is set on scroll by script.js; defaults to flat) */
  #projects { overflow-x: clip; }
  .cover { --q: calc(1 - var(--p, 1)); --tilt: -5deg; transform-origin: 50% 100%; transform: perspective(1600px) translateY(calc(var(--q) * 72px)) rotateX(calc(var(--q) * 16deg)) rotate(calc(var(--q) * var(--tilt))); will-change: transform; }
  .project:nth-child(even) .cover { --tilt: 5deg; }
  .cover > img, .cover .brand-panel, .cover .shots { transform: scale(calc(1 + var(--q) * 0.14)); transition: scale var(--t-med) var(--ease); }
  .cover:hover > img, .cover:hover .brand-panel, .cover:hover .shots { scale: 1.035; }
}

/* Dark theme: html[data-theme="dark"], set before first paint by the inline script in each <head>.
   The page swaps ink and paper. The lime contact band keeps the light tokens; dark sections,
   menu and footer stay dark islands on a slightly lighter surface. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211;
  --paper-2: #1C1C1A;
  --ink: #F2F0E8;
  --ink-2: #C9C6BC;
  --muted: #9C988E;
  --line: #2E2E2A;
  --error: #FF8F80;
}
[data-theme="dark"] .dark, [data-theme="dark"] .menu { --ink: #1C1C1A; --paper: #F2F0E8; }
[data-theme="dark"] .contact { color-scheme: light; --paper: #F7F5EE; --paper-2: #EEEBE1; --ink: #171717; --ink-2: #45433E; --muted: #6B6862; --line: #DAD6C9; --error: #B42318; color: var(--ink); }
/* the form card inside the lime band goes dark again */
[data-theme="dark"] .contact .form { color-scheme: dark; --paper: #121211; --paper-2: #1C1C1A; --ink: #F2F0E8; --ink-2: #C9C6BC; --muted: #9C988E; --line: #2E2E2A; --field: #4A4944; --error: #FF8F80; color: var(--ink); }
[data-theme="dark"] .nav a[aria-current] { background: none; color: var(--lime); }
[data-theme="dark"] .progress.on-dark { color: var(--ink); }
.progress.on-lime { color: var(--on-lime); }
[data-theme="dark"] .slot { box-shadow: 0 0 0 1px var(--line); }

/* 3D scroll story on the start page (story.js). Without 3D it is a plain list of the five steps. */
.story { padding: clamp(80px, 10vw, 140px) 0; }
.story-canvas { display: none; }
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 24px; margin: 0 auto; padding-inline: var(--gutter); list-style: none; }
.chapter { display: flex; flex-direction: column; gap: 14px; }
.chapter .num { align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: var(--lime); color: var(--on-lime); font-size: 15px; font-variant-numeric: tabular-nums; }
.chapter .h2 { margin: 0; }
.chapter p { margin: 0; max-width: 34ch; font-size: 18px; color: var(--ink-2); }

.story.is-3d { --bg: var(--paper); --fg: var(--ink); height: 500svh; padding: 0; background: var(--bg); color: var(--fg); transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease); }
.story.is-3d[data-c="2"], .story.is-3d[data-c="3"] { --bg: #171717; --fg: #F7F5EE; }
.story.is-3d[data-c="4"] { --bg: var(--lime); --fg: #171717; }
[data-theme="dark"] .story.is-3d[data-c="2"], [data-theme="dark"] .story.is-3d[data-c="3"] { --bg: #F2F0E8; --fg: #171717; }
.story.is-3d[data-c="4"] .h2 .serif { background: none; padding: 0; color: inherit; }
.story.is-3d[data-c="4"] .chapter .num { background: #171717; color: var(--lime); }
.is-3d .story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.is-3d .story-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.is-3d .chapters { display: block; position: relative; height: 100%; pointer-events: none; }
.is-3d .chapter { position: absolute; top: 50%; left: var(--gutter); width: min(40%, 520px); opacity: 0; transform: translateY(calc(-50% + 24px)); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.is-3d .chapter[data-side="right"] { left: auto; right: var(--gutter); }
.is-3d .chapter.on { opacity: 1; transform: translateY(-50%); }
.is-3d .chapter .h2 { font-size: clamp(48px, 7vw, 112px); }
.is-3d .chapter p { color: inherit; opacity: 0.78; }
@media (max-width: 760px) {
  .is-3d .chapter, .is-3d .chapter[data-side="right"] { top: auto; bottom: 10svh; left: var(--gutter); right: var(--gutter); width: auto; transform: translateY(24px); }
  .is-3d .chapter.on { transform: none; }
}

/* Custom cursor (script.js, mouse only): a lime block from the 3D story */
.cover.is-link { cursor: pointer; }
html.has-cursor, html.has-cursor * { cursor: none; }
html.has-cursor :is(input, textarea, select) { cursor: auto; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; display: grid; place-items: center; width: 14px; height: 14px; box-shadow: 0 0 0 1.5px var(--on-lime); translate: -100px -100px; border-radius: 2px; background: var(--lime); color: var(--on-lime); pointer-events: none; opacity: 0; transition: width var(--t-fast) var(--ease), height var(--t-fast) var(--ease), border-radius var(--t-fast) var(--ease), background-color 0.2s, color 0.2s, opacity 0.15s, scale 0.2s var(--ease); will-change: transform; }
.cursor.on { opacity: 1; }
.cursor svg, .cursor span { position: absolute; opacity: 0; transition: opacity 0.2s; }
.cursor span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.cursor[data-state="link"] { width: 44px; height: 44px; border-radius: 50%; }
.cursor[data-state="link"] svg { opacity: 1; }
.cursor[data-state="view"] { width: 104px; height: 104px; border-radius: 50%; }
.cursor[data-state="view"] span { opacity: 1; }
.cursor[data-state="hide"] { opacity: 0; }
.cursor.ink { background: #171717; color: var(--lime); }
.cursor.down { scale: 0.85; }

/* AI demo (start page): example enquiry → project plan on scroll, then a live box (ai.js + api/brief.mjs) */
.ai figure { margin: 0; }
.ai figcaption { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); }
.ai-stage { display: grid; gap: clamp(48px, 6vw, 88px); }
.ai-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.ai-head p { margin: 0; max-width: 40ch; color: var(--ink-2); }
.ai-demo { display: grid; gap: 48px; }
.ai-msg p { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; }
.ai-msg mark { padding: 0; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 100% no-repeat; color: var(--on-lime); box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-size 0.45s var(--ease), color 0.3s var(--ease); }
.ai-brief { margin: 0; }
.ai-brief div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ai-brief dt { font-size: 15px; color: var(--muted); }
.ai-brief dd { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.ai.is-live .ai-msg mark:not(.on) { background-size: 0% 100%; color: inherit; }
.ai.is-live .ai-brief div:not(.on) dd { opacity: 0; transform: translateX(-24px); }
@media (min-width: 900px) {
  .ai-demo { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 112px); align-items: start; }
  .ai.is-live { padding-top: 0; }
  .ai.is-live .ai-scroll { height: 240svh; }
  .ai.is-live .ai-stage { position: sticky; top: 0; min-height: 100svh; align-content: center; padding: 88px 0 56px; }
}

.ai-live { display: grid; gap: 32px; margin-top: clamp(96px, 10vw, 160px); padding-top: 32px; border-top: 1px solid var(--line); }
.ai-form { display: flex; flex-direction: column; gap: 14px; }
.ai-form label { font-size: 14px; font-weight: 500; }
.ai-form textarea { min-height: 140px; padding: 16px; border: 1px solid var(--field); border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; font-size: 17px; resize: vertical; }
.ai-form textarea:focus-visible { border-color: var(--ink); }
.ai-form[aria-busy="true"] textarea { opacity: 0.55; }
.ai-form .btn { align-self: flex-start; margin-top: 6px; }
.ai-form .btn:disabled { opacity: 0.5; cursor: progress; }
.ai-note { margin: 0; font-size: 14px; color: var(--muted); }
.ai-note a { color: inherit; }
.ai-status { margin: 0; min-height: 1.55em; font-size: 15px; color: var(--ink-2); }
.ai-result { display: grid; gap: 20px; padding-top: 24px; border-top: 2px solid var(--ink); }
.ai-result[hidden] { display: none; }
.ai-result > p { margin: 0; max-width: 55ch; color: var(--ink-2); }
.ai-result dl { margin: 0; }
.ai-result dl div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ai-result dt { color: var(--muted); }
.ai-result dd { margin: 0; }
.ai-result ul, .ai-result ol { margin: 0; padding-left: 1.2em; }
.ai-result .btn { justify-self: start; }
@media (min-width: 900px) {
  .ai-live { grid-template-columns: 5fr 7fr; column-gap: clamp(48px, 6vw, 112px); align-items: start; }
  .ai-result { grid-column: 2; }
}
@media (max-width: 559px) {
  .ai-brief div, .ai-result dl div { grid-template-columns: 1fr; gap: 2px; }
}
.ai-stage > *, .ai-demo > *, .ai-live > * { min-width: 0; }
.ai-msg p, .ai-brief dd, .ai-result { overflow-wrap: break-word; hyphens: auto; }

/* Logo mark: a lime brick ends the name */
.brick { display: inline-block; width: 0.14em; height: 0.14em; margin-left: 0.06em; background: var(--lime); }
/* AI box loading state: three lime bricks light up in turn (static under reduced motion / "Bewegung aus") */
.ai-loader { display: inline-flex; gap: 6px; padding: 6px 0; vertical-align: middle; }
.ai-loader i { width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 0 1.5px var(--on-lime); animation: brick 0.9s var(--ease) infinite; }
.ai-loader i:nth-child(2) { animation-delay: 0.15s; }
.ai-loader i:nth-child(3) { animation-delay: 0.3s; }
@keyframes brick { 0%, 100% { opacity: 0.4; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); } }
html.still .ai-loader i { animation: none; }
@media (prefers-reduced-motion: reduce) { .ai-loader i { animation: none; } }

/* Concepts on the Work page: design studies for fictional businesses (konzepte/) */
.concepts { border-top: 1px solid var(--line); }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.concept { display: flex; flex-direction: column; gap: 14px; }
.concept p { margin: 0; color: var(--ink-2); }
.concept-cover { display: block; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }
.concept-cover img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.concept-cover:hover img { transform: scale(1.03); }
.concept .concept-label { font-size: 13px; }
.concept .h3 { font-size: clamp(28px, 2.6vw, 38px); }
.concept .link-btn { margin-top: auto; }
@media (max-width: 899px) { .concept-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .concept-cover img { transition: none; } }

/* Service detail pages: links to the other services */
.svc-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin: clamp(48px, 6vw, 80px) 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.svc-more span { color: var(--muted); font-size: 15px; }
.service .h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--t-fast) var(--ease); }
.service .h3 a:hover { background-size: 100% 2px; }

/* Cookie notice */
.cookie-notice { position: fixed; z-index: 90; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 16px; max-width: min(560px, calc(100% - 32px)); padding: 14px 14px 14px 20px; border-radius: var(--radius); background: #1C1C1A; color: #F2F0E8; font-size: 14px; line-height: 1.45; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #F2F0E8; text-underline-offset: 3px; }
.cookie-btns { display: flex; gap: 8px; flex: none; }
.cookie-btns .btn { flex: 1; justify-content: center; }
@media (max-width: 560px) { .cookie-notice { flex-direction: column; align-items: stretch; } }

/* contact form honeypot: off-screen for people, still filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
