/* ==========================================================================
   HalisAnteo — shared stylesheet
   1 Tokens  2 Base  3 Type  4 Layout  5 Header/menu  6 Buttons/links
   7 Hero  8 Sections  9 Work rows  10 Page heads  11 Forms  12 Footer
   13 Responsive  14 Reduced motion
   ========================================================================== */

/* 1 ─ TOKENS */
:root {
    --paper: #ecebe7;
    --paper-2: #e1dfda;
    --ink: #150e0d;
    --ink-soft: rgba(21,14,13,.78);
    --ink-mute: rgba(21,14,13,.64);
    --night: #1a1110;
    --night-2: #241716;
    --bone: #f0ece6;
    --bone-dim: rgba(240,236,230,.78);
    --bone-mute: rgba(240,236,230,.6);
    --signal: #ec3b2c;      /* big fills, ink text sits on it */
    --red: #bf1d17;         /* fills with white text */
    --red-text: #b0150f;    /* red text on paper */
    --signal-text: #ff7467; /* red text on night */
    --line: rgba(21,14,13,.16);
    --line-strong: rgba(21,14,13,.42);
    --line-night: rgba(240,236,230,.18);

    --display: 'Anybody', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
    --ease: cubic-bezier(.2,.7,.2,1);
    --gutter: clamp(20px, 4vw, 48px);
    --max: 1240px;
    --header: 68px;
    --ease2: cubic-bezier(.16, 1, .3, 1);
    --wipe: cubic-bezier(.76, 0, .24, 1);
}

/* 2 ─ BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; background: var(--paper); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
svg.i { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: square; flex-shrink: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.night :focus-visible, .cta :focus-visible { outline-color: var(--signal); }
.cta :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 3000; padding: 10px 16px; background: var(--ink); color: var(--paper); transition: top .2s; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3 ─ TYPE */
.display { font-family: var(--display); font-variation-settings: 'wdth' 125; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
h1.display { font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: 1.02; }
h2.display { font-size: clamp(1.9rem, 3.8vw, 3.3rem); font-variation-settings: 'wdth' 118; font-weight: 780; line-height: 1.05; }
h3.display { font-size: clamp(1.3rem, 2vw, 1.7rem); font-variation-settings: 'wdth' 112; font-weight: 750; line-height: 1.15; letter-spacing: -.012em; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.5; max-width: 38ch; color: var(--ink); }
.prose p { max-width: 62ch; margin-bottom: 1.3em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose a, .link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { color: var(--red-text); }
.night .prose p { color: var(--bone-dim); }
.night .link:hover, .night .prose a:hover { color: var(--signal-text); }
strong { font-weight: 650; color: var(--ink); }
.night strong { color: var(--bone); }
.mute { color: var(--ink-mute); }
.night .mute { color: var(--bone-mute); }

/* 4 ─ LAYOUT */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.block { padding: clamp(72px, 10vw, 140px) 0; }
.night { background: var(--night); color: var(--bone-dim); }
.night h2, .night h3 { color: var(--bone); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > .sticky { position: sticky; top: calc(var(--header) + 32px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

/* 5 ─ HEADER / MENU */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(236,235,231,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-variation-settings: 'wdth' 125; font-weight: 800; font-size: 1.1rem; letter-spacing: -.015em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; padding: 8px 14px; font-size: .98rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--red-text); }
.nav .nav-cta { margin-left: 10px; padding: 10px 20px; background-color: var(--ink); color: var(--paper); }
.nav .nav-cta:hover { background-color: var(--red); color: #fff; }
.nav .nav-cta[aria-current="page"] { background-color: var(--red); color: #fff; }
.menu-btn { display: none; padding: 10px 0 10px 16px; font-weight: 600; }
.menu { position: fixed; inset: var(--header) 0 0 0; z-index: 99; background: var(--paper); padding: 24px var(--gutter) 40px; display: none; flex-direction: column; overflow-y: auto; }
.menu.open { display: flex; }
.menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-variation-settings: 'wdth' 120; font-weight: 780; font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -.02em; text-decoration: none; }
.menu a[aria-current="page"] { color: var(--red-text); }

/* 6 ─ BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--ink); transition: background .2s, color .2s, border-color .2s, transform .45s var(--ease2); }
.btn-solid { background-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background-color: var(--red); border-color: var(--red); color: #fff; }
.btn-line:hover { background-color: var(--ink); color: var(--paper); }
.btn-paper { background-color: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-paper:hover { background-color: var(--ink); border-color: var(--ink); color: var(--paper); }
.night .btn { border-color: var(--bone); color: var(--bone); }
.night .btn:hover { background-color: var(--bone); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 7 ─ HERO (home) */
.hero { background: var(--signal); color: var(--ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(48px, 7vw, 88px); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); padding: 6px 14px 6px 12px; background: var(--ink); color: var(--bone); font-size: .92rem; font-weight: 500; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #69e08f; animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 5rem); margin-bottom: clamp(24px, 3vw, 36px); color: var(--ink); }
.hero .lede { margin-bottom: 32px; }
.hero strong { color: var(--ink); }
.hero .btn-line { border-color: var(--ink); }
.w { position: relative; display: inline-block; }
.w::after { content: ''; position: absolute; inset: .1em -.05em .02em -.05em; background: var(--ink); transform: scaleX(0); transform-origin: right; }
.portrait { position: relative; margin: 0 12px 12px 0; }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); }
.portrait figcaption { position: relative; margin-top: 26px; font-size: .9rem; font-weight: 500; }

.facts { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.facts p { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 700; font-size: clamp(1.15rem, 2.3vw, 1.9rem); line-height: 1.3; letter-spacing: -.01em; max-width: 36ch; }
.facts p b { color: var(--red-text); font-weight: 800; }
.facts-row { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.facts-row span { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: -.01em; }
.facts-row b { color: var(--red-text); font-weight: 850; }

/* 8 ─ SECTIONS */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.pair-item { padding: 28px 0 36px; border-top: 2px solid var(--ink); }
.pair-item h3 { margin-bottom: 12px; }
.pair-item p { max-width: 44ch; color: var(--ink-soft); }
.pair-item .link { display: inline-block; margin-top: 14px; font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { counter-increment: s; padding-top: 22px; border-top: 2px solid var(--bone); }
.steps li::before { content: counter(s); display: block; margin-bottom: 18px; font-family: var(--display); font-variation-settings: 'wdth' 125; font-weight: 850; font-size: 2.6rem; line-height: 1; color: var(--signal-text); }
.steps h3 { margin-bottom: 10px; font-size: 1.25rem; }
.steps p { font-size: 1rem; color: var(--bone-dim); }

.about-snip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-snip .portrait img { border-color: var(--bone); box-shadow: 14px 14px 0 var(--signal); }
.about-snip h2 { margin-bottom: 24px; }
.about-snip .btn { margin-top: 28px; }

.cta { background: var(--signal); color: var(--ink); padding: clamp(64px, 9vw, 120px) 0; }
.cta h2 { font-size: clamp(2.2rem, 5.4vw, 4.8rem); max-width: 16ch; margin-bottom: 28px; }
.cta p { max-width: 46ch; margin-bottom: 32px; font-size: 1.15rem; }
.cta .btn-solid:hover { background-color: var(--paper); border-color: var(--paper); color: var(--ink); }

/* 9 ─ WORK ROWS / PROJECT BLOCKS */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 1.1fr) 2rem; gap: 8px 28px; align-items: baseline; padding: 28px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line-strong); text-decoration: none; transition: background .25s, color .25s; }
.row .y { font-size: .95rem; font-weight: 600; color: var(--ink-mute); }
.row .n { font-family: var(--display); font-variation-settings: 'wdth' 118; font-weight: 780; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.row .d { color: var(--ink-soft); max-width: 52ch; }
.row .go { justify-self: end; align-self: center; }
.row:hover, .row:focus-visible { background: var(--ink); color: var(--paper); }
.row:hover .y, .row:hover .d { color: var(--bone-dim); }

.project { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
.night.project { border-top: 0; }
.project h2 { margin-bottom: 24px; }
.meta { display: grid; gap: 0; margin-top: 8px; }
.meta div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-strong); font-size: .98rem; }
.meta div:last-child { border-bottom: 1px solid var(--line-strong); }
.meta dt { color: var(--ink-mute); font-weight: 500; }
.meta dd { font-weight: 600; color: var(--ink); }
.night .meta div { border-color: var(--line-night); }
.night .meta dt { color: var(--bone-mute); }
.night .meta dd { color: var(--bone); }
.project .tag { display: inline-block; margin-bottom: 18px; padding: 4px 12px; background: var(--signal); color: var(--ink); font-size: .88rem; font-weight: 650; }

/* 10 ─ PAGE HEADS / ABOUT / SERVICES */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 14ch; margin-bottom: 28px; }
.page-head .lede { max-width: 40ch; }

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.level { padding-top: 20px; border-top: 2px solid var(--ink); }
.level h3 { margin-bottom: 6px; }
.level > p { margin-bottom: 18px; font-size: .98rem; color: var(--ink-mute); }
.level li { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 550; }

.care { display: grid; gap: 0; }
.care > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--line-strong); }
.care > div:last-child { border-bottom: 1px solid var(--line-strong); }
.care p { max-width: 56ch; color: var(--ink-soft); }

.night .care > div { border-color: var(--line-night); }
.night .care p { color: var(--bone-dim); }
.night.project { padding: 0; }
.tl { border-top: 2px solid var(--ink); }
.tl li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line-strong); }
.tl .y { font-family: var(--display); font-variation-settings: 'wdth' 118; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.tl h3 { margin-bottom: 6px; font-size: 1.2rem; }
.tl p { max-width: 58ch; color: var(--ink-soft); }
.tl li.now .y { color: var(--red-text); }

.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); padding: clamp(36px, 5vw, 56px) 0; border-top: 2px solid var(--ink); }
.svc p { max-width: 54ch; color: var(--ink-soft); margin-bottom: 20px; }
.svc ul { max-width: 54ch; }
.svc li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; font-weight: 550; }
.svc li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 9px; height: 3px; background: var(--signal); }
.svc .label { margin-bottom: 8px; font-size: .92rem; font-weight: 600; color: var(--ink-mute); }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.35rem); letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--body); font-weight: 400; font-size: 1.8rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-text); }
.faq details p { max-width: 62ch; padding: 0 0 24px; color: var(--ink-soft); }

/* 11 ─ CONTACT / FORM */
.c-list { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.c-list li, .c-list .c-item { border-bottom: 1px solid var(--line-strong); }
.c-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0; text-align: left; text-decoration: none; }
.c-item small { display: block; font-size: .88rem; color: var(--ink-mute); line-height: 1.3; }
.c-item span { display: block; font-weight: 650; font-size: 1.1rem; overflow-wrap: anywhere; }
.c-item:hover span { color: var(--red-text); }
.helps { margin-top: 36px; }
.helps h3 { margin-bottom: 10px; font-size: 1.1rem; }
.helps li { padding: 8px 0 8px 22px; position: relative; color: var(--ink-soft); }
.helps li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 9px; height: 3px; background: var(--signal); }

.form { display: grid; gap: 30px; }
.field label { display: block; margin-bottom: 2px; font-size: .92rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-mute); margin-left: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 0 12px; background: transparent; border: 0; border-bottom: 2px solid var(--line-strong); border-radius: 0; font: inherit; font-size: 1.1rem; color: var(--ink); outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(21,14,13,.4); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); background: rgba(191,29,23,.05); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; font-weight: 600; }
.form-status.success { display: block; color: #17683a; }
.form-status.error { display: block; color: var(--red-text); }
.form .btn { width: 100%; padding: 19px 26px; font-size: 1.05rem; }
.form .btn:disabled { opacity: .55; cursor: not-allowed; }

/* 12 ─ FOOTER */
.site-footer { background: var(--night); color: var(--bone-dim); padding: clamp(56px, 7vw, 88px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-night); }
.foot-big { font-family: var(--display); font-variation-settings: 'wdth' 120; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; color: var(--bone); max-width: 14ch; }
.foot-grid h3 { margin-bottom: 14px; font-size: .92rem; font-weight: 600; color: var(--bone-mute); }
.foot-grid li + li { margin-top: 6px; }
.foot-grid a, .foot-grid button { text-decoration: none; color: var(--bone); font-weight: 500; text-align: left; }
.foot-grid a:hover, .foot-grid button:hover { color: var(--signal-text); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 24px; font-size: .9rem; color: var(--bone-mute); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 5000; padding: 12px 20px; background: var(--ink); color: var(--paper); font-size: .95rem; font-weight: 600; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { margin-bottom: 20px; }

/* 13 ─ RESPONSIVE */
@media (max-width: 960px) {
    .nav { display: none; }
    .menu-btn { display: inline-block; }
    .split { grid-template-columns: 1fr; }
    .split > .sticky { position: static; }
    .hero-grid { grid-template-columns: 1fr; }
    .portrait { max-width: 300px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
    .about-snip { grid-template-columns: 1fr; }
    .about-snip .portrait { max-width: 300px; }
    .levels { grid-template-columns: 1fr; max-width: 520px; }
    .care > div { grid-template-columns: 1fr; }
    .svc { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .pair { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr 2rem; padding: 22px 12px; margin: 0 -12px; }
    .row .y { grid-column: 1 / -1; }
    .row .d { grid-column: 1 / -1; }
    .row .go { grid-row: 2; grid-column: 2; }
    .tl li { grid-template-columns: 1fr; }
    .btn-row .btn { width: 100%; }
}
@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .meta div { grid-template-columns: 5.5rem 1fr; }
}

/* 14 ─ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}


/* ==========================================================================
   15 ─ SINGLE-PAGE LAYER: views, page transition, premium details
   ========================================================================== */
.view { display: none; }
.view.active { display: block; }
html:not(.js) .view { display: block; }
.view h1:focus { outline: none; }

/* scroll reveal: elements rise in, in order */
.js [data-r]:not(.shown) { opacity: 0; transform: translateY(36px); }
.js [data-r].shown { animation: rise .95s var(--ease2) backwards; animation-delay: var(--rd, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }

/* headline words: ink bar slides off (obfuscation → reveal) */
.js .w::after { transform: scaleX(1); }
.js main.words .w::after { transform: scaleX(0); transition: transform .85s var(--ease2) calc(var(--i) * 90ms + .32s); }
.page-head h1 .w::after, .notfound h1 .w::after { background: var(--signal); }

/* nav: one underline that glides between pages */
.nav { position: relative; }
.nav a[aria-current="page"]:not(.nav-cta) { color: var(--ink); font-weight: 600; }
.nav-ind { position: absolute; left: 0; bottom: 2px; width: 0; height: 3px; background: var(--signal); opacity: 0; pointer-events: none; transition: transform .6s var(--ease2), width .6s var(--ease2), opacity .3s; }

/* reading progress */
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; }

/* ── page transition curtain ── */
.curtain { position: fixed; inset: 0; z-index: 4000; visibility: hidden; pointer-events: none; }
.curtain.on { visibility: visible; pointer-events: all; }
.curtain .cols { position: absolute; inset: 0; display: flex; }
.curtain .cols i { position: relative; flex: 1; }
.curtain .cols b { position: absolute; inset: 0 -1px; transform: scaleY(0); transform-origin: bottom; transition: transform .52s var(--wipe); }
.curtain .cols .r { background: var(--signal); transition-delay: var(--d); }
.curtain .cols .k { background: var(--night); transition-delay: calc(var(--d) + 90ms); }
.curtain.cover .cols b { transform: scaleY(1); }
.curtain.exit .cols b { transform-origin: top; }
.curtain.exit .cols .k { transition-delay: var(--d); }
.curtain.exit .cols .r { transition-delay: calc(var(--d) + 90ms); }
.curtain.instant .cols b, .curtain.instant .cols b * { transition: none !important; }

.cur-label { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 0 20px; text-align: center; color: var(--bone); }
.cur-name { overflow: hidden; padding: .08em .06em .1em; font-size: clamp(3.4rem, 13vw, 10.5rem); line-height: 1; color: var(--bone); }
.cur-name span { display: block; transform: translateY(112%); transition: transform .7s var(--ease2); }
.cur-line { display: block; width: min(300px, 52vw); height: 3px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease2) .12s; }
.cur-sub { font-size: 1.02rem; font-weight: 500; letter-spacing: .01em; color: var(--bone-mute); opacity: 0; transform: translateY(12px); transition: opacity .5s .2s, transform .6s var(--ease2) .2s; }
.curtain.label .cur-name span { transform: none; }
.curtain.label .cur-line { transform: scaleX(1); }
.curtain.label .cur-sub { opacity: 1; transform: none; }
.curtain.label-out .cur-name span { transform: translateY(-112%); transition-duration: .5s; }
.curtain.label-out .cur-line { transform-origin: right; transform: scaleX(0); transition-duration: .4s; transition-delay: 0s; }
.curtain.label-out .cur-sub { opacity: 0; transform: translateY(-10px); transition-duration: .3s; transition-delay: 0s; }


/* ── restored sections ── */
.lang-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.lang-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 22px 20px; background: var(--paper); transition: background .3s, color .3s; }
.lang-tile b { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1; }
.lang-tile span { font-size: .92rem; color: var(--ink-mute); transition: color .3s; }
.lang-tile:hover { background: var(--signal); }
.lang-tile:hover span { color: var(--ink); }
.night .lang-grid { background: var(--line-night); border-color: var(--line-night); }
.night .lang-tile { background: var(--night); }
.night .lang-tile b { color: var(--bone); }
.night .lang-tile span { color: var(--bone-mute); }
.night .lang-tile:hover { background: var(--signal); }
.night .lang-tile:hover b, .night .lang-tile:hover span { color: var(--ink); }

.stack { display: flex; flex-wrap: wrap; gap: 8px 0; font-weight: 600; }
.stack li { padding: 0 18px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
.stack li:first-child { padding-left: 0; border-left: 0; }
.night .stack { color: var(--bone); }
.night .stack li { border-color: var(--line-night); }

.traits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.traits li { position: relative; padding: 20px 0 20px 26px; border-top: 1px solid var(--line-strong); font-weight: 600; }
.traits li::before { content: ''; position: absolute; left: 0; top: 1.75em; width: 10px; height: 3px; background: var(--signal); }
.traits li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-strong); }

.skills-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 72px); }
.skill-col { padding-top: 22px; border-top: 3px solid var(--ink); }
.skill-col h3 { margin-bottom: 30px; }
.skill-row + .skill-row { margin-top: 26px; }
.skill-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.skill-name { font-weight: 600; }
.skill-pct { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 750; font-variant-numeric: tabular-nums; }
.skill-track { height: 4px; background: var(--line); }
.skill-fill { height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--w)); }
.js .skill-fill { transform: scaleX(0); }
.js .skill-col.shown .skill-fill { transform: scaleX(var(--w)); transition: transform 1.4s var(--ease2) calc(.45s + var(--k, 0) * 90ms); }

.svc-lead { position: relative; display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 4vw, 56px); background: var(--signal); color: var(--ink); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.svc-lead h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.svc-lead p { max-width: 52ch; font-size: 1.12rem; color: var(--ink); }
.svc-lead strong { box-shadow: inset 0 -3px 0 var(--ink); }
.svc-flag { display: inline-block; margin-top: 14px; padding: 3px 12px; border: 2px solid var(--ink); font-size: .85rem; font-weight: 650; }

.tl .live { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 650; color: var(--red-text); }
.tl .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 2.6s ease-in-out infinite; }

@media (max-width: 960px) {
    .skills-cols { grid-template-columns: 1fr; max-width: 560px; }
    .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .traits { grid-template-columns: 1fr; }
    .traits li:nth-last-child(2) { border-bottom: 0; }
    .lang-tile { min-height: 124px; }
}
@media (max-width: 1100px) { .nav a { padding: 8px 10px; } }

body.busy { cursor: progress; }
.noscript { padding: 14px var(--gutter); background: var(--ink); color: var(--bone); text-align: center; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
    .js .skill-fill { transform: scaleX(var(--w)) !important; }
    .js [data-r]:not(.shown) { opacity: 1; transform: none; }
    .js .w::after { transform: scaleX(0) !important; }
    .curtain { display: none; }
}


/* ── real-page transitions: the curtain is already covering the screen when a page arrives ── */
html.arriving .curtain, html.intro .curtain { visibility: visible; pointer-events: all; }
html.arriving .curtain .cols b, html.intro .curtain .cols b { transform: scaleY(1); transition: none !important; }
html.arriving .curtain .cur-name span, html.intro .curtain .cur-name span { transform: none; transition: none !important; }
html.arriving .curtain .cur-line, html.intro .curtain .cur-line { transform: scaleX(1); transition: none !important; }
html.arriving .curtain .cur-sub, html.intro .curtain .cur-sub { opacity: 1; transform: none; transition: none !important; }
.nav-ind.still { transition: none !important; }
