/* ============================================================
   Telion Solutions — landing page
   Aesthetic: refined dark luxury · editorial serif + grotesk
   ============================================================ */

:root {
    --ink:        #0b0b0d;
    --ink-2:      #111114;
    --ink-3:      #16161b;
    --paper:      #f4f0e7;
    --paper-dim:  #cfc9bd;
    --muted:      #8d8a82;
    --line:       rgba(244, 240, 231, 0.10);
    --line-soft:  rgba(244, 240, 231, 0.055);
    --gold:       #d6a85b;
    --gold-bright:#e9c074;
    --gold-soft:  rgba(214, 168, 91, 0.14);
    --gold-text:  #d6a85b;
    --indigo:     #2a2f55;
    --teal:       #14403f;

    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body:    "Hanken Grotesk", system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, monospace;

    --maxw: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* atmospheric gradient mesh + film grain, fixed behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 50% at 18% 8%, rgba(42, 47, 85, 0.55), transparent 70%),
        radial-gradient(55% 45% at 92% 4%, rgba(214, 168, 91, 0.10), transparent 65%),
        radial-gradient(70% 60% at 80% 95%, rgba(20, 64, 63, 0.40), transparent 72%),
        var(--ink);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

/* ---------- shared layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 32px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 64px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 380;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 18px 0 0;
    max-width: 16ch;
}

.section-head p {
    color: var(--muted);
    max-width: 34ch;
    margin: 0;
    font-size: 1rem;
}

section { padding-block: clamp(80px, 11vw, 150px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    backdrop-filter: blur(14px) saturate(140%);
    background: linear-gradient(to bottom, rgba(11,11,13,0.72), rgba(11,11,13,0.35));
    border-bottom: 1px solid var(--line-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.28rem;
    letter-spacing: -0.01em;
}

.brand .brand-mark { width: 34px; height: 34px; color: var(--gold); flex: none; }
.brand b { font-weight: 460; }
.brand em {
    font-style: normal;
    color: var(--muted);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.74em;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
    font-size: 0.92rem;
}
.nav-links .mobile-cta { display: none; } /* only shown inside the mobile menu */

.nav-links a {
    color: var(--paper-dim);
    transition: color 0.3s var(--ease);
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: var(--paper); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
    border: 1px solid var(--line);
    padding: 9px 20px;
    border-radius: 100px;
    color: var(--paper) !important;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #15140f !important;
}

/* ---------- nav actions: theme toggle · language · cta ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: transparent;
    color: var(--paper-dim);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.icon-btn:hover { color: var(--paper); border-color: var(--paper); }
.icon-btn svg { width: 17px; height: 17px; flex: none; }
.theme-toggle { width: 40px; padding: 0; }

/* show the right glyph per theme */
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun  { display: block; }
[data-theme="light"] .theme-toggle .i-sun  { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* language dropdown (native <details>) */
.lang { position: relative; }
.lang > summary {
    list-style: none;
    user-select: none;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang .chev { transition: transform 0.3s var(--ease); width: 12px; height: 12px; }
.lang[open] .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 172px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    z-index: 120;
    animation: rise 0.28s var(--ease) both;
}
.lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.92rem;
    color: var(--paper-dim);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-menu a:hover { background: var(--gold-soft); color: var(--paper); }
.lang-menu a.active { color: var(--paper); }
.lang-menu a.active::after { content: "✓"; color: var(--gold-text); font-size: 0.8rem; }
.lang-menu a .tag {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* mobile hamburger (hidden on desktop) */
.nav-toggle-cb { display: none; }
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
}
.hamburger span {
    position: absolute;
    left: 11px;
    width: 16px;
    height: 1.5px;
    background: var(--paper);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 25px; }
.nav-toggle-cb:checked ~ .nav-actions .hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle-cb:checked ~ .nav-actions .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle-cb:checked ~ .nav-actions .hamburger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding-top: clamp(90px, 13vw, 170px);
    padding-bottom: clamp(70px, 10vw, 130px);
    overflow: hidden;
}

.hero .wrap { position: relative; z-index: 2; }

/* faint oversized wordmark behind the hero */
.hero-ghost {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(10rem, 30vw, 34rem);
    line-height: 0.8;
    color: var(--paper);
    opacity: 0.028;
    letter-spacing: -0.04em;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.hero-eyebrow { opacity: 0; animation: rise 0.9s var(--ease) 0.05s forwards; }

.hero h1 {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(2.7rem, 7.6vw, 6.4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: 28px 0 0;
    max-width: 16ch;
}

/* padding-bottom gives descenders (g, p, ρ…) room inside the overflow clip;
   the matching negative margin keeps the line spacing unchanged */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
.hero h1 .ln > span {
    display: block;
    transform: translateY(110%);
    animation: lineUp 1.05s var(--ease) forwards;
}
.hero h1 .ln:nth-child(1) > span { animation-delay: 0.15s; }
.hero h1 .ln:nth-child(2) > span { animation-delay: 0.27s; }
.hero h1 .ln:nth-child(3) > span { animation-delay: 0.39s; }

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    margin: 34px 0 0;
    max-width: 52ch;
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    color: var(--paper-dim);
    font-weight: 300;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.6s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.74s forwards;
}

.btn {
    font-family: var(--font-body);
    font-size: 0.96rem;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 100px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease),
                color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--gold);
    color: #15140f; /* fixed dark — always sits on gold */
}
.btn-primary:hover { background: var(--gold-bright); }
.btn-primary .arrow { transition: transform 0.35s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(244,240,231,0.04); }

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 5vw, 72px);
    margin-top: 72px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.9s forwards;
}
.hero-meta .stat .n {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 380;
    color: var(--paper);
    line-height: 1;
}
.hero-meta .stat .l {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    padding-block: 26px;
    border-block: 1px solid var(--line-soft);
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: inline-flex;
    gap: 0;
    animation: scroll-x 32s linear infinite;
}
.marquee-track span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 360;
    color: var(--paper-dim);
    padding-inline: 34px;
    display: inline-flex;
    align-items: center;
    gap: 34px;
}
.marquee-track span::after {
    content: "✦";
    color: var(--gold);
    font-style: normal;
    font-size: 0.8rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.service {
    background: var(--ink);
    padding: 46px 40px 52px;
    position: relative;
    transition: background 0.4s var(--ease);
}
.service:hover { background: var(--ink-2); }
.service .idx {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}
.service h3 {
    font-family: var(--font-display);
    font-weight: 380;
    font-size: 1.7rem;
    letter-spacing: -0.01em;
    margin: 22px 0 14px;
}
.service p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.service .tags {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.service .tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--paper-dim);
    border: 1px solid var(--line);
    padding: 5px 11px;
    border-radius: 100px;
}

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.project {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ink-2);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.project::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.9;
    transition: transform 0.7s var(--ease), opacity 0.5s var(--ease);
}
.project:nth-child(1)::before { background: radial-gradient(120% 120% at 80% 10%, #3a3f73, #14151c 70%); }
.project:nth-child(2)::before { background: radial-gradient(120% 120% at 10% 0%, #2f5b56, #14151c 70%); }
.project:nth-child(3)::before { background: radial-gradient(120% 120% at 90% 90%, #6b4e23, #14151c 68%); }
.project:nth-child(4)::before { background: radial-gradient(120% 120% at 20% 90%, #4a2c4f, #14151c 70%); }
.project:nth-child(5)::before { background: radial-gradient(120% 120% at 75% 15%, #1f4d6b, #14151c 70%); }
.project:nth-child(6)::before { background: radial-gradient(120% 120% at 25% 85%, #5a2e2a, #14151c 70%); }
.project:hover { transform: translateY(-6px); border-color: rgba(214,168,91,0.4); }
.project:hover::before { transform: scale(1.08); opacity: 1; }

.project > * { position: relative; z-index: 1; }
.project .cat {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e9c074; /* fixed — tiles are always dark */
}
.project h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: -0.015em;
    margin: 12px 0 6px;
}
.project p { color: rgba(244, 240, 231, 0.82); margin: 0; max-width: 40ch; font-size: 0.96rem; }
.project h3 { color: #f4f0e7; }
.project .go {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #f4f0e7;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.project:hover .go { opacity: 1; transform: translateY(0); }

/* ============================================================
   STUDIO / ABOUT
   ============================================================ */
.studio { border-top: 1px solid var(--line); }
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
}
.studio-statement {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}
.studio-statement em { font-style: italic; color: var(--gold); }
.studio-copy p { color: var(--muted); margin: 0 0 22px; }
.studio-list {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.studio-list li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.studio-list .k {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    min-width: 38px;
}
.studio-list .v { color: var(--paper-dim); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}
.contact h2 {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 18px 0 0;
    max-width: 14ch;
}
.contact h2 em { font-style: italic; color: var(--gold); }
.contact p { color: var(--muted); max-width: 42ch; margin: 24px 0 0; }
.contact-direct { margin-top: 36px; display: grid; gap: 7px; }
.contact-direct .k {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.contact-direct a {
    font-size: 1.15rem;
    color: var(--paper);
    transition: color 0.3s var(--ease);
    width: fit-content;
}
.contact-direct a:hover { color: var(--gold-text); }

/* ---- contact form ---- */
.contact-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--ink-2);
    padding: clamp(22px, 3vw, 38px);
}
.cform { display: grid; gap: 18px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cfield { display: grid; gap: 8px; }
.cfield label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.cinput {
    width: 100%;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 15px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cinput::placeholder { color: var(--muted); }
.cinput:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}
.cselect { appearance: none; cursor: pointer; }
.ctextarea { min-height: 132px; resize: vertical; line-height: 1.5; }

/* neutralise the template's default valid/invalid outlines */
.cform .valid.modified:not([type=checkbox]) { outline: none; }
.cform .invalid { outline: none; border-color: #e0795f; }
.cform .validation-message,
.cform-error {
    color: #e0795f;
    font-size: 0.82rem;
    font-family: var(--font-body);
}
.cform .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.cform .btn-primary:disabled { opacity: 0.55; cursor: default; transform: none; }

.cform-success { text-align: center; padding: 26px 8px; }
.cform-success .ok {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold-text);
    display: grid;
    place-items: center;
}
.cform-success h3 {
    font-family: var(--font-display);
    font-weight: 380;
    font-size: 1.7rem;
    margin: 0 0 10px;
}
.cform-success p { color: var(--muted); margin: 0 auto; max-width: 36ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 40px;
}
.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
}
.footer .brand { font-size: 1.1rem; }
.footer .cols {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(40px, 6vw, 80px);
}
.footer h4 {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 16px;
    font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--paper-dim); font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer ul a:hover { color: var(--gold); }
.footer-base {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

/* ============================================================
   STATUS PAGES (404 / error)
   ============================================================ */
.status {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 24px;
    position: relative;
}
.status-mark {
    width: 44px; height: 44px;
    color: var(--gold);
    margin-bottom: 26px;
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.05s forwards;
}
.status-code {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(6.5rem, 25vw, 17rem);
    line-height: 0.82;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--paper) 8%, rgba(244, 240, 231, 0.18) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.12s forwards;
}
.status .eyebrow {
    justify-content: center;
    margin-top: 18px;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.22s forwards;
}
.status .eyebrow::before { display: none; }
.status h1 {
    font-family: var(--font-display);
    font-weight: 360;
    font-size: clamp(1.7rem, 5vw, 2.9rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 18px 0 0;
    max-width: 18ch;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.3s forwards;
}
.status > p {
    color: var(--muted);
    max-width: 46ch;
    margin: 18px auto 0;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.4s forwards;
}
.status .hero-actions {
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.5s forwards;
}
.status-detail {
    margin-top: 44px;
    width: 100%;
    max-width: 560px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 24px;
    background: var(--ink-2);
    opacity: 0;
    animation: rise 0.9s var(--ease) 0.6s forwards;
}
.status-detail h2 {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 10px;
    font-weight: 500;
}
.status-detail code {
    font-family: var(--font-mono);
    color: var(--gold-bright);
    font-size: 0.85rem;
    word-break: break-all;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lineUp {
    to { transform: translateY(0); }
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* scroll-driven reveals (progressive enhancement) */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        animation: reveal-up linear both;
        animation-timeline: view();
        animation-range: entry 5% cover 28%;
    }
    @keyframes reveal-up {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero h1 .ln > span { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .hamburger { display: block; }
    .nav-cta { display: none; } /* lives inside the mobile menu instead */

    /* nav links collapse into a drop panel toggled by the hamburger */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 22px 22px;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.4s var(--ease);
    }
    .nav-toggle-cb:checked ~ .nav-links {
        max-height: 380px;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a { font-size: 1.15rem; padding: 13px 4px; }
    .nav-links .mobile-cta {
        display: block;
        margin-top: 12px;
        text-align: center;
        background: var(--gold);
        color: #15140f;
        border-radius: 100px;
        font-size: 1rem;
        padding: 14px;
    }

    .service-grid,
    .work-grid,
    .studio-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .cform-row { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .wrap { padding-inline: 22px; }
}

@media (max-width: 560px) {
    .wrap { padding-inline: 20px; }
    .nav { padding-inline: 20px; }

    .hero-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    /* full-width, tap-friendly primary actions on phones */
    .hero-actions { width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .project { min-height: 300px; padding: 28px; }
    .service { padding: 38px 28px 42px; }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
    --ink:        #f1ece1;
    --ink-2:      #f8f4ec;
    --ink-3:      #ffffff;
    --paper:      #1a1812;
    --paper-dim:  #4a463d;
    --muted:      #777268;
    --line:       rgba(26, 24, 18, 0.14);
    --line-soft:  rgba(26, 24, 18, 0.07);
    --gold:       #c2902f;
    --gold-bright:#d6a356;
    --gold-soft:  rgba(194, 144, 47, 0.14);
    --gold-text:  #8c6212;
    color-scheme: light;
}

/* gold used as TEXT needs more contrast on the cream canvas */
[data-theme="light"] .eyebrow,
[data-theme="light"] .service .idx,
[data-theme="light"] .hero h1 em,
[data-theme="light"] .studio-statement em,
[data-theme="light"] .studio-list .k,
[data-theme="light"] .contact h2 em,
[data-theme="light"] .status-detail h2,
[data-theme="light"] .brand .brand-mark,
[data-theme="light"] .status-mark { color: var(--gold-text); }
[data-theme="light"] .eyebrow::before { background: var(--gold-text); }
[data-theme="light"] .marquee-track span::after { color: var(--gold-text); }
[data-theme="light"] .nav-links a:not(.nav-cta)::after { background: var(--gold-text); }
[data-theme="light"] .footer ul a:hover { color: var(--gold-text); }
[data-theme="light"] .lang-menu a.active::after { color: var(--gold-text); }

/* surfaces that were hardcoded dark */
[data-theme="light"] .nav {
    background: linear-gradient(to bottom, rgba(241, 236, 225, 0.85), rgba(241, 236, 225, 0.45));
}
[data-theme="light"] .btn-ghost:hover {
    background: rgba(26, 24, 18, 0.05);
    border-color: var(--paper);
}

/* warm, restrained gradient mesh for light mode */
[data-theme="light"] body::before {
    background:
        radial-gradient(60% 50% at 18% 8%, rgba(194, 144, 47, 0.12), transparent 70%),
        radial-gradient(55% 45% at 92% 4%, rgba(42, 47, 85, 0.06), transparent 65%),
        radial-gradient(70% 60% at 80% 95%, rgba(20, 64, 63, 0.07), transparent 72%),
        var(--ink);
}
[data-theme="light"] body::after { opacity: 0.025; }

/* the project tiles stay dark in both themes, so keep their hover border warm */
[data-theme="light"] .project { background: #14151c; }

/* smooth the flip */
html { transition: background 0.4s var(--ease); }
body { transition: background 0.4s var(--ease), color 0.4s var(--ease); }

/* ============================================================
   CASE STUDY
   ============================================================ */
/* gradient utilities reused by home cards, banner & gallery */
.grad-1 { background: radial-gradient(120% 120% at 80% 10%, #3a3f73, #14151c 70%); }
.grad-2 { background: radial-gradient(120% 120% at 10% 0%, #2f5b56, #14151c 70%); }
.grad-3 { background: radial-gradient(120% 120% at 90% 90%, #6b4e23, #14151c 68%); }
.grad-4 { background: radial-gradient(120% 120% at 20% 90%, #4a2c4f, #14151c 70%); }
.grad-5 { background: radial-gradient(120% 120% at 75% 15%, #1f4d6b, #14151c 70%); }
.grad-6 { background: radial-gradient(120% 120% at 25% 85%, #5a2e2a, #14151c 70%); }

.cs-hero {
    padding-top: clamp(46px, 7vw, 92px);
    padding-bottom: clamp(34px, 4vw, 52px);
}
.cs-back {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.3s var(--ease);
    display: inline-block;
    margin-bottom: 34px;
}
.cs-back:hover { color: var(--gold-text); }
.cs-title {
    font-family: var(--font-display);
    font-weight: 360;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 16px 0 0;
}
.cs-lead {
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
    color: var(--paper-dim);
    font-weight: 300;
    max-width: 46ch;
    margin: 26px 0 0;
}
.cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 56px;
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.cs-meta .k {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin-bottom: 8px;
}
.cs-meta .v { color: var(--paper); font-size: 0.98rem; }
.cs-live { transition: color 0.3s var(--ease); }
.cs-live:hover { color: var(--gold-text); }

/* banner with a faux-browser screenshot placeholder */
.cs-banner {
    border-radius: 22px;
    padding: clamp(20px, 4vw, 46px);
    margin-top: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.cs-browser {
    border-radius: 12px;
    background: rgba(8, 9, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
    box-shadow: 0 40px 90px -34px rgba(0, 0, 0, 0.65);
}
.cs-browser-bar {
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cs-browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.cs-browser-body {
    height: clamp(220px, 34vw, 430px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-watermark {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 6vw, 4.6rem);
    color: rgba(244, 240, 231, 0.16);
    letter-spacing: -0.02em;
}
.cs-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.cs-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
}
.cs-locked svg { width: 38px; height: 38px; color: var(--gold); opacity: 0.85; }
.cs-locked-label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 240, 231, 0.6);
}
.cs-locked-name {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 350;
    letter-spacing: -0.02em;
    color: rgba(244, 240, 231, 0.22);
    margin-top: 4px;
}

/* editorial narrative blocks: sticky label + copy */
.cs-body { padding-block: clamp(36px, 5vw, 72px); }
.cs-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.cs-block:first-child { border-top: none; }
.cs-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-text);
    position: sticky;
    top: 96px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cs-label .num { color: var(--muted); }
.cs-block p {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    line-height: 1.55;
    color: var(--paper-dim);
    margin: 0;
    max-width: 60ch;
    font-weight: 300;
}
.cs-tech { display: flex; flex-wrap: wrap; gap: 9px; }
.cs-tech span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--paper-dim);
    border: 1px solid var(--line);
    padding: 8px 15px;
    border-radius: 100px;
}

/* results metrics */
.cs-metrics-wrap {
    border-block: 1px solid var(--line);
    padding-block: clamp(54px, 7vw, 92px);
}
.cs-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.cs-metric .n {
    font-family: var(--font-display);
    font-weight: 360;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--gold-text);
}
.cs-metric .l {
    font-family: var(--font-mono);
    font-size: 0.69rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 14px;
}

/* pull quote */
.cs-quote {
    margin: clamp(56px, 8vw, 100px) auto;
    max-width: 26ch;
    text-align: center;
}
.cs-quote p {
    font-family: var(--font-display);
    font-weight: 350;
    font-style: italic;
    font-size: clamp(1.7rem, 3.6vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0;
}
.cs-quote cite {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 28px;
}

/* gallery */
.cs-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.cs-shot {
    border-radius: 16px;
    border: 1px solid var(--line);
    height: clamp(200px, 26vw, 320px);
}
.cs-note {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 18px;
}

/* next project */
.cs-next-wrap { padding-block: clamp(56px, 7vw, 100px); }
.cs-next {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 36px;
    transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.cs-next:hover { transform: translateY(-6px); border-color: rgba(214, 168, 91, 0.45); }
.cs-next-k {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e9c074;
}
.cs-next-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #f4f0e7;
    margin-top: 8px;
}

@media (max-width: 860px) {
    .cs-block { grid-template-columns: 1fr; gap: 16px; }
    .cs-label { position: static; }
    .cs-metrics { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .cs-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES (privacy / impressum)
   ============================================================ */
.legal {
    padding-top: clamp(44px, 7vw, 92px);
    padding-bottom: clamp(64px, 9vw, 120px);
}
.legal-wrap { max-width: 780px; }
.legal h1 {
    font-family: var(--font-display);
    font-weight: 360;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 18px 0 0;
}
.legal-updated {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 16px 0 0;
}
.legal h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    letter-spacing: -0.01em;
    margin: 48px 0 12px;
}
.legal p {
    color: var(--paper-dim);
    line-height: 1.75;
    margin: 0 0 14px;
    font-weight: 300;
}
.legal .legal-block { color: var(--paper); font-weight: 400; }
.legal a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-bright); }
