/* ==========================================================================
   Innovative Flutter AI: studio redesign
   Direction: editorial / magazine. Mood: precise, warm, confident.
   Reference: Stripe Press meets a Swiss studio portfolio.
   Palette: paper (dominant neutral) + ink (supporting) + Flutter blue (accent, <10%).
   ========================================================================== */

:root {
    --paper: #ffffff;
    --paper-2: #e6f3fc;   /* sky tint of #67C8F5 */
    --ink: #0a1726;       /* navy-black, logo tile */
    --ink-2: #1c2f45;
    --muted: #4a5b6e;      /* 6.9:1 on white */
    --muted-inv: #9fb4c9;  /* 8.6:1 on ink */
    --line: #d3e0ec;
    --line-inv: #22384f;
    --accent: #1370b0;     /* brand primary, 5.4:1 on white */
    --accent-inv: #67c8f5; /* logo light blue, for use on ink */

    --f-display: 'Sora', system-ui, -apple-system, sans-serif;
    --f-text: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --gutter: clamp(20px, 4vw, 56px);
    --max: 1360px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.65 var(--f-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-ink :focus-visible, .on-ink:focus-visible { outline-color: var(--accent-inv); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Type primitives ----------------------------------------------------- */
.eyebrow {
    font: 500 12px/1.2 var(--f-mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.on-ink .eyebrow { color: var(--muted-inv); }

.display {
    font-family: var(--f-display);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}
.display em { font-style: normal; color: var(--accent); }
.h2 { font-size: clamp(38px, 5.4vw, 80px); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 34em; }
.on-ink .lede { color: var(--muted-inv); }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Text link with animated underline */
.link {
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none; font-weight: 500;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    padding-bottom: 2px;
    transition: background-size .35s var(--ease), color .2s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.on-ink .link:hover { color: var(--accent-inv); }
.link .icon { transition: transform .25s var(--ease); }
.link:hover .icon { transform: translate(2px, -2px); }

/* Buttons: square-ish, no shadows */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border: 1px solid var(--ink); border-radius: 2px;
    background: var(--ink); color: var(--paper);
    font: 500 15px/1 var(--f-text); text-decoration: none; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 3px; }
.brand span { font: 600 16px/1 var(--f-text); letter-spacing: -0.01em; }
.brand small { font: 500 12px/1 var(--f-mono); color: var(--muted); margin-left: 4px; letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav ul { display: flex; gap: clamp(16px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
    position: relative; text-decoration: none; font-size: 15px; color: var(--muted);
    padding: 13px 0; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s;
}
.nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.menu-btn {
    display: none; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
    font: 500 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.menu-btn .bars { position: relative; width: 20px; height: 10px; }
.menu-btn .bars::before, .menu-btn .bars::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8.5px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 72px 0 0; z-index: 99;
    background: var(--paper); padding: 24px var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 14px 0; text-decoration: none; font: 600 40px/1 var(--f-display); letter-spacing: -0.02em;
}
.mobile-menu li a span { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.mobile-menu .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px;
    align-items: end;
}
.hero-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero-meta .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.hero h1 {
    grid-column: 1 / span 10;
    font-size: clamp(46px, 8.6vw, 132px);
    line-height: .95;
}
.hero h1 .indent { display: block; padding-left: 1.1em; }
.hero h1 em { color: var(--accent); }
.hero-copy { grid-column: 1 / span 6; }
.hero-copy .lede { margin: 0 0 28px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.now-shipping {
    grid-column: 9 / span 4; align-self: end;
    display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center;
    padding: 14px; border: 1px solid var(--line); text-decoration: none;
    transition: border-color .2s, background .2s;
}
.now-shipping:hover { border-color: var(--ink); background: var(--paper-2); }
.now-shipping img { width: 104px; height: 104px; object-fit: cover; object-position: top; border-radius: 2px; }
.now-shipping strong { display: block; font: 600 26px/1.05 var(--f-display); margin: 6px 0 6px; }
.now-shipping .link-text { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

.facts {
    margin-top: clamp(56px, 8vw, 104px);
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
}
.facts > div { padding: 18px 20px 22px 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 600 34px/1 var(--f-display); letter-spacing: -0.01em; margin-bottom: 8px; }
.facts span { font-size: 14px; color: var(--muted); }

/* --- Section scaffolding ---------------------------------------------- */
.section { padding: clamp(88px, 12vw, 168px) 0; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { grid-column: 1 / span 3; padding-top: 14px; }
.section-head .display { grid-column: 4 / span 9; }
.section-head .lede { grid-column: 4 / span 6; margin: 8px 0 0; }

/* --- Selected work ------------------------------------------------------- */
.feature {
    display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
    align-items: center; position: relative;
}
.feature-shot {
    grid-column: 1 / span 5; grid-row: 1;
    position: relative; z-index: 2;
    margin: 0; padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.feature-shot img {
    width: 100%; max-width: 360px; aspect-ratio: 9 / 16; object-fit: cover; object-position: top;
    border-radius: 22px; border: 6px solid var(--ink);
}
.feature-panel {
    grid-column: 3 / -1; grid-row: 1;
    background: var(--ink); color: var(--paper);
    padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px) clamp(40px, 5vw, 72px) clamp(28px, 22%, 300px);
    align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.feature-panel h3 { font-size: clamp(48px, 7vw, 108px); }
.feature-panel p { margin: 0; max-width: 36em; color: var(--muted-inv); }
.feature-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-panel li { font: 500 12px/1 var(--f-mono); padding: 8px 10px; border: 1px solid var(--line-inv); color: var(--paper); }

.work-index { margin-top: clamp(56px, 7vw, 96px); }
.work-index h3 { margin: 0 0 18px; }
.work-row {
    display: grid; grid-template-columns: 2.2fr 1fr 2fr; gap: 24px; align-items: baseline;
    padding: 22px 0; border-top: 1px solid var(--line);
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row h4 { margin: 0; font: 600 clamp(26px, 2.6vw, 34px)/1.1 var(--f-display); letter-spacing: -0.01em; }
.work-row p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.work-row .cat { font: 500 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.work-row .stack { font-size: 15px; color: var(--ink-2); }

/* --- Services: numbered index ------------------------------------------- */
.services-list { border-top: 1px solid var(--ink); }
.service {
    display: grid; grid-template-columns: 80px 1.15fr 1.4fr 32px; gap: 24px; align-items: start;
    padding: 30px 0; border-bottom: 1px solid var(--line);
    position: relative;
}
.service::before {
    content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service .num { font: 500 13px/2.6 var(--f-mono); color: var(--muted); }
.service h3 { margin: 0; font: 600 clamp(30px, 3.2vw, 44px)/1.05 var(--f-display); letter-spacing: -0.015em; transition: transform .35s var(--ease); }
.service:hover h3 { transform: translateX(6px); }
.service p { margin: 6px 0 12px; color: var(--muted); }
.service .tags { font: 500 12px/1.6 var(--f-mono); color: var(--ink-2); letter-spacing: .02em; }
.service .icon { width: 22px; height: 22px; margin-top: 12px; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.service:hover .icon { color: var(--accent); transform: rotate(45deg); }

/* --- Process: ink section ---------------------------------------------- */
.process { background: var(--ink); color: var(--paper); }
.process .section-head .display em { color: var(--accent-inv); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-inv); }
.step { padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line-inv); }
.step .n { display: block; font: 600 clamp(88px, 10vw, 152px)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--muted-inv); margin-bottom: 28px; }
.step h3 { margin: 0 0 10px; font: 500 19px/1.3 var(--f-text); }
.step p { margin: 0; font-size: 15px; color: var(--muted-inv); }
.step:nth-child(2) { margin-top: 48px; }
.step:nth-child(3) { margin-top: 96px; }
.step:nth-child(4) { margin-top: 144px; }

/* --- Open source -------------------------------------------------------- */
.oss { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.oss-intro { grid-column: 1 / span 4; position: sticky; top: 108px; align-self: start; }
.oss-intro .display { font-size: clamp(44px, 5vw, 76px); margin: 18px 0 20px; }
.oss-intro p { color: var(--muted); margin: 0 0 24px; }
.repo-list { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.repo-list a {
    display: grid; grid-template-columns: 1fr auto 20px; gap: 16px; align-items: baseline;
    padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
    transition: padding .3s var(--ease), color .2s;
}
.repo-list a:hover { padding-left: 10px; color: var(--accent); }
.repo-list strong { font-weight: 500; font-size: 18px; }
.repo-list .desc { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.repo-list .cat { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.repo-list .icon { width: 16px; height: 16px; }

/* --- Training: price list ---------------------------------------------- */
.training { background: var(--paper-2); }
.courses { border-top: 1px solid var(--ink); }
.course {
    display: grid; grid-template-columns: 1.3fr 2fr auto; gap: 32px; align-items: baseline;
    padding: 34px 0; border-bottom: 1px solid var(--line);
}
.course h3 { margin: 0; font: 600 clamp(32px, 3.6vw, 52px)/1 var(--f-display); letter-spacing: -0.015em; }
.course .dur { display: block; margin-top: 10px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.course p { margin: 0; color: var(--ink-2); }
.course .price { font: 600 clamp(40px, 4.4vw, 64px)/1 var(--f-display); letter-spacing: -0.02em; text-align: right; }
.course .price small { display: block; font: 500 12px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .04em; margin-top: 6px; }
.training-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; color: var(--muted); }

/* --- Writing ------------------------------------------------------------ */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.posts a {
    display: grid; grid-template-columns: 140px 1fr 160px; gap: 24px; align-items: baseline;
    padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.posts time, .posts .topic { font: 500 12px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.posts .topic { text-align: right; }
.posts h3 { margin: 0; font: 600 clamp(24px, 2.5vw, 34px)/1.15 var(--f-display); letter-spacing: -0.01em; transition: color .2s; }
.posts a:hover h3 { color: var(--accent); }
.writing-foot { margin-top: 28px; }

/* --- About / founder ---------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.about-grid .eyebrow { grid-column: 1 / span 3; padding-top: 16px; }
.about-quote { grid-column: 4 / -1; margin: 0; font: 600 clamp(32px, 4.2vw, 62px)/1.12 var(--f-display); letter-spacing: -0.015em; }
.about-quote em { color: var(--accent); }
.about-body { grid-column: 4 / span 5; color: var(--ink-2); }
.about-body p { margin: 0 0 16px; }
.about-card { grid-column: 10 / -1; border-top: 1px solid var(--ink); padding-top: 16px; }
.about-card strong { display: block; font-weight: 600; }
.about-card span { display: block; color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.about-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* --- FAQ with sticky side panel ---------------------------------------- */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.faq-side { grid-column: 1 / span 4; position: sticky; top: 108px; align-self: start; }
.faq-side .display { font-size: clamp(44px, 5vw, 76px); margin: 18px 0 20px; }
.faq-side p { color: var(--muted); margin: 0; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
    padding: 24px 0; font: 500 19px/1.35 var(--f-text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 20px; height: 20px; transition: transform .3s var(--ease); color: var(--muted); }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq-list summary:hover { color: var(--accent); }
.faq-list .answer { padding: 0 48px 26px 0; color: var(--muted); }
.faq-list .answer p { margin: 0; }

/* --- Contact ------------------------------------------------------------ */
.contact { border-top: 1px solid var(--ink); }
.contact h2 { font-size: clamp(60px, 10vw, 152px); line-height: .88; margin-bottom: clamp(48px, 6vw, 88px); }
.contact h2 em { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.contact-details { grid-column: 1 / span 4; display: grid; gap: 28px; align-content: start; }
.contact-details h3 { margin: 0 0 8px; }
.contact-details p { margin: 0; line-height: 1.7; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.contact-details a:hover { color: var(--accent); border-color: var(--accent); }

.form { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 26px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 0;
    background: transparent; border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0;
    font-size: 17px; transition: border-color .2s;
    -webkit-appearance: none; appearance: none;
}
.field select {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23141311' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center no-repeat;
    padding-right: 24px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-bottom-color: #b42318; }
.field .hint { font-size: 13px; color: var(--muted); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 15px; margin: 0; }
.form-status.is-ok { color: #1a6b3a; }
.form-status.is-error { color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Footer: oversized wordmark ---------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 112px) 0 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr .8fr; gap: 32px; padding-bottom: 56px; }
.footer-top h3 { margin: 0 0 16px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-top a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--paper); transition: color .2s; }
.footer-offices li + li { margin-top: 10px; }
.footer-offices a { padding: 6px 0; }
.footer-top a:hover { color: var(--accent-inv); }
.footer-offices li { display: grid; gap: 2px; }
.footer-offices b { font-weight: 600; }
.footer-offices span { color: var(--muted-inv); font-size: 14px; }
.footer-news p { color: var(--muted-inv); margin: 0 0 18px; max-width: 26em; }
.news-form { display: flex; border-bottom: 1px solid var(--muted-inv); max-width: 400px; }
.news-form input { flex: 1; min-width: 0; min-height: 48px; background: none; border: 0; color: var(--paper); font-size: 16px; }
.news-form input::placeholder { color: var(--muted-inv); }
.news-form input:focus { outline: none; }
.news-form:focus-within { border-bottom-color: var(--accent-inv); }
.news-form button { background: none; border: 0; color: var(--paper); cursor: pointer; min-height: 48px; padding: 0 0 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.news-form button:hover { color: var(--accent-inv); }
.wordmark {
    font: 700 clamp(40px, 9.8vw, 152px)/.85 var(--f-display); letter-spacing: -0.055em;
    white-space: nowrap; margin: 0 0 24px; color: var(--paper);
}
.wordmark em { color: var(--accent-inv); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
    padding-top: 20px; border-top: 1px solid var(--line-inv);
    font: 500 12px/1.6 var(--f-mono); color: var(--muted-inv); letter-spacing: .04em;
}
.footer-bottom a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; margin: 0 -8px; min-width: 44px; text-align: center; color: var(--muted-inv); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.footer-bottom ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

/* Toast (forms) */
.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 300;
    transform: translate(-50%, 20px); opacity: 0;
    background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 2px;
    font-size: 15px; max-width: calc(100vw - 32px);
    transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #b42318; }

/* --- Scroll reveal ------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
    .nav ul { display: none; }
    .menu-btn { display: inline-flex; }
    .now-shipping { grid-column: 7 / -1; }
    .hero-copy { grid-column: 1 / span 6; }
    .service { grid-template-columns: 56px 1fr 1.2fr 24px; }
}

@media (max-width: 860px) {
    body { font-size: 16px; }
    .nav .btn { display: none; }
    .hero h1 { grid-column: 1 / -1; }
    .hero h1 .indent { padding-left: .6em; }
    .hero-copy, .now-shipping { grid-column: 1 / -1; }
    .now-shipping { max-width: 420px; }
    .facts { grid-template-columns: 1fr 1fr; }
    .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }

    .section-head .eyebrow, .section-head .display, .section-head .lede { grid-column: 1 / -1; }
    .section-head .eyebrow { padding-top: 0; }

    .feature { display: block; }
    .feature-shot { padding: 0 0 0 24px; margin-bottom: -96px; }
    .feature-shot img { max-width: 220px; }
    .feature-panel { padding: 128px 24px 40px; }
    .work-row { grid-template-columns: 1fr; gap: 6px; }

    .service { grid-template-columns: 40px 1fr; row-gap: 4px; }
    .service > div:last-of-type, .service .tags-col { grid-column: 2; }
    .service .icon { display: none; }

    .steps { grid-template-columns: 1fr 1fr; }
    .step:nth-child(n) { margin-top: 0; }
    .step:nth-child(3) { padding-left: 0; border-left: 0; }
    .step:nth-child(n+3) { border-top: 1px solid var(--line-inv); }
    .step .n { margin-bottom: 16px; }

    .oss-intro, .repo-list, .faq-side, .faq-list { grid-column: 1 / -1; position: static; }
    .oss-intro, .faq-side { margin-bottom: 40px; }

    .course { grid-template-columns: 1fr; gap: 12px; }
    .course .price { text-align: left; }

    .posts a { grid-template-columns: 1fr; gap: 8px; }
    .posts .topic { text-align: left; }

    .about-grid .eyebrow, .about-quote, .about-body, .about-card { grid-column: 1 / -1; }

    .contact-details, .form { grid-column: 1 / -1; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-news { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .footer-top a { padding: 11px 0; }
    .footer-top ul { gap: 0; }
}

@media (max-width: 520px) {
    .brand small { display: none; }
    .hero-actions .btn { width: 100%; }
    .facts b { font-size: 28px; }
    .steps { grid-template-columns: 1fr; }
    .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-inv); }
    .form { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .repo-list a { grid-template-columns: 1fr 20px; }
    .repo-list .cat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* --- AI chat widget (js/chat.js), restyled for the studio palette ------ */
.ai-chat-launcher {
    position: fixed; right: 24px; bottom: 24px; z-index: 1100;
    width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer;
    color: #fff; background: var(--ink);
    box-shadow: 0 10px 30px rgba(10,23,38,.28);
    display: grid; place-items: center; transition: transform 0.2s ease;
}
.ai-chat-launcher:hover { transform: scale(1.07); }
.ai-chat-launcher:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ai-chat-panel {
    position: fixed; right: 24px; bottom: 96px; z-index: 1100;
    width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 130px);
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; color: var(--ink); border-radius: 4px;
    box-shadow: 0 24px 60px rgba(10,23,38,.25);
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.ai-chat-panel.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ai-chat-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; color: #fff; background: var(--ink);
}
.ai-chat-head strong { display: block; font-size: 1rem; }
.ai-chat-head span { font-size: 0.78rem; opacity: 0.85; }
.ai-chat-close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.ai-chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 4px; font-size: 0.92rem; line-height: 1.45; overflow-wrap: anywhere; }
.ai-chat-assistant { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.ai-chat-user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ai-chat-msg a { color: inherit; text-decoration: underline; }
.ai-chat-typing span {
    display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%;
    background: var(--muted); animation: aiChatDot 1s infinite ease-in-out;
}
.ai-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiChatDot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai-chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.ai-chat-suggest button {
    border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
    border-radius: 2px; padding: 6px 11px; font-size: 0.8rem; cursor: pointer;
}
.ai-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai-chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; font-size: 16px; }
.ai-chat-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.ai-chat-form button { border: 0; border-radius: 2px; padding: 0 14px; color: #fff; background: var(--accent); cursor: pointer; font-size: 1rem; }
.ai-chat-form button:disabled { opacity: 0.5; cursor: wait; }
.ai-chat-note { margin: 0; padding: 0 12px 10px; font-size: 0.72rem; color: var(--muted); }
.ai-chat-note a { color: var(--accent); }
@media (max-width: 600px) {
    .ai-chat-launcher { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .ai-chat-panel { right: 8px; left: 8px; bottom: 80px; width: auto; max-width: none; height: calc(100vh - 100px); max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-chat-panel, .ai-chat-launcher { transition: none; }
    .ai-chat-typing span { animation: none; opacity: 0.6; }
}
.ai-chat-launcher { border-radius: 2px; }
.ai-chat-head strong { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }

body.menu-open .ai-chat-launcher, body.menu-open .ai-chat-panel { visibility: hidden; }

/* Brand lock: emphasis is colour only, never italic */
h1 em, h2 em, h3 em, blockquote em, .wordmark em, .display em, .about-quote em { font-style: normal; }

/* ===================== Motion layer (2026 pass) ===================== */

/* Scroll progress hairline */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none;
    background: linear-gradient(90deg, var(--accent), var(--accent-inv)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
    .scroll-progress { animation: grow-x linear both; animation-timeline: scroll(root); }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* Hero: headline left, live device right */
@media (min-width: 1101px) {
    .hero h1 { grid-column: 1 / span 8; grid-row: 2; font-size: clamp(56px, 7.2vw, 116px); align-self: center; }
    .hero-copy { grid-column: 1 / span 6; grid-row: 3; }
    .now-shipping { grid-column: 1 / span 5; grid-row: 4; align-self: start; }
    .device-wrap { grid-column: 9 / -1; grid-row: 2 / span 3; align-self: start; }
}

/* Cycling word */
.cycle { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.cycle-word { display: inline-block; }
.cycle-word.is-out { animation: word-out .35s var(--ease) forwards; }
.cycle-word.is-in { animation: word-in .45s var(--ease) both; }
@keyframes word-out { to { transform: translateY(-105%); opacity: 0; } }
@keyframes word-in { from { transform: translateY(105%); opacity: 0; } }
.cycle::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; background: var(--accent-inv);
    transform-origin: 0 50%; animation: underline 2.8s var(--ease) infinite; }
@keyframes underline { 0% { transform: scaleX(0); } 30%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); transform-origin: 100% 50%; opacity: 0; } }

/* Device */
.device-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 0 0; }
.device-wrap::before { /* technical dot grid, not a glow */
    content: ''; position: absolute; inset: 0 -12px 40px; z-index: -1;
    background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent);
}
.device { width: min(290px, 78vw); aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 48px; background: var(--ink);
    box-shadow: 0 0 0 1px var(--ink-2), 0 40px 80px -30px rgba(10,23,38,.45), 24px 24px 0 -2px var(--paper-2);
    transform: rotate(-2deg); transition: transform .6s var(--ease); }
.device-wrap:hover .device { transform: rotate(0deg) translateY(-4px); }
.device-screen { height: 100%; border-radius: 38px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.device-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 6px; font: 600 13px/1 var(--f-text); color: var(--ink); }
.device-island { width: 84px; height: 24px; border-radius: 20px; background: var(--ink); }
.device-sig { display: inline-flex; gap: 2px; align-items: flex-end; }
.device-sig i { width: 3px; background: var(--ink); border-radius: 1px; }
.device-sig i:nth-child(1) { height: 5px; } .device-sig i:nth-child(2) { height: 8px; } .device-sig i:nth-child(3) { height: 11px; }
.device-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
.device-head img { border-radius: 50%; }
.device-head strong { display: block; font: 600 15px/1.2 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.device-head small { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #1a9b55; box-shadow: 0 0 0 0 rgba(26,155,85,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(26,155,85,0); } 100% { box-shadow: 0 0 0 0 rgba(26,155,85,0); } }
.device-chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; transition: opacity .35s; }
.device-chat.is-clearing { opacity: 0; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.4; animation: msg-in .35s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg-u { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-a { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.msg-img { align-self: flex-end; width: 62%; aspect-ratio: 4/3; border-radius: 14px; border-bottom-right-radius: 4px; padding: 10px;
    background: repeating-linear-gradient(0deg, #fff 0 9px, #e9eef4 9px 10px); border: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: flex-end; font: 500 10px/1.3 var(--f-mono); color: var(--muted); position: relative; overflow: hidden; }
.msg-img::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent-inv); box-shadow: 0 0 0 1px rgba(103,200,245,.3); animation: scan 1.4s var(--ease) 2; top: 0; }
@keyframes scan { to { top: 100%; } }
.msg-card { align-self: flex-start; width: 82%; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; animation: msg-in .35s var(--ease) both; }
.msg-card b { display: block; font: 600 14px/1.2 var(--f-display); color: var(--ink); }
.msg-card span { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.msg-card em { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); padding: 6px 12px; border-radius: 999px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 12px; border-radius: 16px; background: var(--paper-2); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.device-input { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 16px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); }
.device-send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.device-send .icon { width: 14px; height: 14px; }
.device-caption { margin: 22px 0 0; text-align: center; }

/* Stack ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; margin-top: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line-inv); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > div { display: flex; }
.ticker span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding: clamp(18px, 2.4vw, 30px) 0 clamp(18px, 2.4vw, 30px) clamp(20px, 3vw, 44px);
    font: 600 clamp(28px, 4.2vw, 64px)/1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--muted-inv); transition: color .3s; }
.ticker span:nth-child(3n+1) { color: var(--paper); -webkit-text-stroke: 0; }
.ticker span:hover { color: var(--accent-inv); -webkit-text-stroke: 0; }
.ticker span::after { content: ''; width: .22em; height: .22em; background: var(--accent-inv); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Work rows: blue wipe on hover */
.work-row { position: relative; isolation: isolate; transition: color .3s, padding .4s var(--ease); }
.work-row::before { content: ''; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -1; background: var(--accent);
    transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
@media (hover: hover) {
    .work-row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
    .work-row:hover, .work-row:hover p, .work-row:hover .cat, .work-row:hover .stack { color: #fff; }
    .work-row:hover { padding-left: 18px; }
}

/* Process: steps light up while scrolling */
.steps { position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent-inv); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: view()) {
    .steps::before { animation: grow-x linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    .step .n { animation: light-n linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
}
@supports not (animation-timeline: view()) { .steps::before { transform: scaleX(1); } }
@keyframes light-n { to { color: var(--accent-inv); -webkit-text-stroke-color: var(--accent-inv); } }

/* Footer wordmark: letters rise in */
.wordmark .ch { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.wordmark.is-in .ch { transform: none; }
.wordmark { overflow: hidden; padding-bottom: .04em; }

@media (max-width: 1100px) {
    .device-wrap { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track, .cycle::after, .pulse, .msg-img::after { animation: none !important; }
    .ticker-track { flex-wrap: wrap; width: auto; } .ticker-track > div + div { display: none; } .ticker-track > div { flex-wrap: wrap; }
    .device { transform: none; }
    .wordmark .ch { transform: none; transition: none; }
    .scroll-progress, .steps::before, .step .n { animation: none !important; }
}

/* ===================== Client-winning pass ===================== */
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #0f5d93; border-color: #0f5d93; }
.on-ink .btn--accent:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Navy hero */
.hero.on-ink { background: var(--ink); color: var(--paper); padding-bottom: clamp(48px, 6vw, 88px); }
.hero.on-ink .lede { color: #d2deea; }
.hero.on-ink .hero-meta .dot { background: var(--accent-inv); }
.hero.on-ink h1 em { color: var(--accent-inv); }
.hero.on-ink .link { color: #fff; }
.hero-proof { position: relative; justify-self: end; padding: 0 0 56px 0; }
.proof-shot { display: block; width: min(300px, 70vw); border-radius: 28px; overflow: hidden; transform: rotate(3deg);
    box-shadow: 0 40px 80px -24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); transition: transform .6s var(--ease); }
.proof-shot:hover { transform: rotate(0) translateY(-4px); }
.proof-shot img { display: block; width: 100%; height: auto; }
.proof-card { position: absolute; left: -64px; bottom: 0; width: 250px; padding: 18px 20px; border-radius: 16px;
    background: var(--accent-inv); color: var(--ink); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); }
.proof-card .eyebrow { color: var(--ink); opacity: .75; }
.proof-card strong { display: block; font: 700 22px/1.1 var(--f-display); letter-spacing: -0.02em; margin: 6px 0 6px; }
.proof-card > span:last-child { font-size: 14px; line-height: 1.45; }
@media (min-width: 1101px) {
    .hero.on-ink h1 { grid-column: 1 / span 8; grid-row: 2; }
    .hero.on-ink .hero-copy { grid-column: 1 / span 7; grid-row: 3; }
    .hero-proof { grid-column: 9 / -1; grid-row: 2 / span 2; align-self: center; }
}
.hero.on-ink .facts { border-color: var(--line-inv); }
.hero.on-ink .facts > div + div { border-color: var(--line-inv); }
.hero.on-ink .facts span { color: var(--muted-inv); }
.industries { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0 0; }
.industries .eyebrow { margin-right: 8px; }
.industries span:not(.eyebrow) { padding: 7px 14px; border: 1px solid var(--line-inv); border-radius: 999px; font-size: 14px; color: #d2deea; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.case { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 20px;
    background: #fff; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.case:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(10,23,38,.35); }
.case h3 { margin: 0; font: 600 clamp(26px, 2.6vw, 36px)/1.05 var(--f-display); letter-spacing: -0.03em; }
.case p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.case ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.case li { font: 500 12px/1 var(--f-mono); padding: 8px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.case-status { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent); }
.case-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cases-note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }

/* AI inside the app */
.ai-inside { background: var(--paper-2); }
.ai-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ai-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.ai-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.ai-list b { font: 600 19px/1.3 var(--f-display); letter-spacing: -0.01em; }
.ai-list span { color: var(--muted); font-size: 15px; }
.ai-inside .device-wrap { justify-self: center; }

/* Ways to start */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.way { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; }
.way h3 { margin: 0; font: 600 28px/1.1 var(--f-display); letter-spacing: -0.03em; }
.way p { margin: 0 0 8px; color: var(--muted); }
.way .btn { margin-top: auto; align-self: flex-start; }
.way--call { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.way--call p, .way--call .eyebrow { color: var(--muted-inv); }

/* Blue contact block, form on a white card */
.contact { background: var(--accent); color: #fff; border-top: 0; }
.contact .eyebrow, .contact-details h3 { color: #cfe6f7; }
.contact h2 em { color: var(--ink); }
.contact-details a { color: #fff; border-color: rgba(255,255,255,.45); }
.contact-details a:hover { color: #fff; border-color: #fff; }
.contact-details span { color: #cfe6f7 !important; }
.contact .form { background: #fff; color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: 20px; align-self: start; }
.contact .form .eyebrow, .contact .form .hint { color: var(--muted); }

@media (max-width: 1100px) {
    .hero-proof { grid-column: 1 / -1; justify-self: center; margin-top: 16px; }
    .proof-card { left: -40px; }
    .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .cases, .ways-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .proof-card { left: 50%; transform: translateX(-60%); width: 230px; }
    .hero-proof { padding-bottom: 96px; }
}
/* fixes */
.ai-inside .device-wrap { grid-column: auto; grid-row: auto; align-self: center; }
.ai-grid > div:first-child .display { max-width: 12ch; }
.hero.on-ink .hero-grid { align-items: center; }
.proof-shot { aspect-ratio: 9 / 16; height: auto; }
.proof-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track > div { flex-wrap: nowrap; }
  .ticker-track { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}


/* === Design archive (Behance work wall) ================================= */
.archive .section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 40px; }
.archive .section-head .eyebrow { flex-basis: 100%; }
.archive .section-head h2 { margin: 0; max-width: 14ch; font-size: clamp(40px, 6vw, 84px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: 700 14px/1 var(--f-text); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover, .filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Grid: bento mosaic (big, wide and small tiles), caption pill on the image */
.archive { background: radial-gradient(900px 480px at 88% 0%, rgba(103, 200, 245, .35), transparent 65%),
    var(--paper-2); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 236px); grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; display: block; border-radius: 20px; overflow: hidden; background: var(--ink); color: var(--ink); text-decoration: none;
    isolation: isolate; box-shadow: 0 18px 40px -26px rgba(10, 23, 38, .55); }
.tile.big { grid-column: span 2; grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tile .cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 700 15px/1.2 var(--f-text); color: var(--ink); }
.tile .cap small { display: block; color: #0f5e96; font: 700 12px/1 var(--f-text); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.tile.big .cap { left: 16px; bottom: 16px; padding: 14px 18px; font-size: 20px; }
.tile .icon { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: #fff; color: var(--ink);
    opacity: 0; transform: scale(.8); transition: opacity .25s, transform .3s var(--ease); }
.tile:hover .icon, .tile:focus-visible .icon { opacity: 1; transform: none; }
.work-grid.is-filtered .tile { grid-column: span 1; grid-row: span 1; }
.work-grid.is-filtered .tile.big .cap { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 15px; }
.tile.is-hidden { display: none; }
.archive-more { margin-top: 40px; display: flex; justify-content: center; }
.archive { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); }
.d-sec:has(+ .archive) { padding-bottom: clamp(40px, 4vw, 56px); }
.archive + .ai-inside { padding-top: 0; }
@media (max-width: 860px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 34vw, 240px); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .tile, .tile.big, .tile.wide { grid-column: auto; grid-row: auto; aspect-ratio: 808 / 632; } .tile .icon { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tile img, .tile .icon { transition: none; } .tile:hover img { transform: none; } }

/* === Header: collapses into a Lottie orb when scrolling down ============= */
.site-header { transition: border-color .25s, transform .45s var(--ease), opacity .3s; }
.site-header.is-dot { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.nav-orb { position: fixed; top: 14px; left: 50%; z-index: 101; width: 56px; height: 56px; margin-left: -28px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(10,23,38,.28); opacity: 0; transform: translateY(-20px) scale(.4); pointer-events: none; transition: opacity .35s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.nav-orb.is-on { opacity: 1; transform: none; pointer-events: auto; }
.nav-orb-core { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--sky, #67C8F5) 40%, var(--accent) 100%); animation: orbBreathe 2.4s ease-in-out infinite; }
.nav-orb-core.has-lottie { width: 44px; height: 44px; background: none; animation: none; }
.nav-orb-core.has-lottie svg { display: block; border-radius: 50%; }
.nav-orb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes orbBreathe { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) {
    .site-header, .nav-orb { transition: none; }
    .nav-orb-core { animation: none; }
}

/* ===================== Option D layout (final build) ===================== */
.d-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font-weight: 600; text-decoration: none;
    background: var(--accent); color: #fff; border: 1px solid var(--accent); transition: background .2s, transform .2s var(--ease); }
.d-btn:hover { background: #0f5d93; transform: translateY(-2px); }
.d-btn.g { background: #fff; color: var(--ink); border-color: #cfdbe7; }
.d-btn.g:hover { border-color: var(--ink); }
.d-btn.w { background: #fff; color: var(--ink); border-color: #fff; }

.d-hero { padding: clamp(48px, 6vw, 80px) 0; }
.d-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.d-kick { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--accent); font-weight: 600; font-size: 14px; }
.d-hero h1 { font: 700 clamp(42px, 5.2vw, 74px)/1.04 var(--f-display); letter-spacing: -.04em; margin: 18px 0; }
.d-hero h1 span { color: var(--accent); }
.d-lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0; }
.d-acts { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.d-checks { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: #3a4b5e; }
.d-checks span::before { content: "\2713  "; color: var(--accent); }

.d-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.d-mini { background: #fff; border: 1px solid #e3ebf3; border-radius: 14px; padding: 14px; }
.d-mini b { display: block; font: 700 26px/1.1 var(--f-display); letter-spacing: -.03em; color: var(--accent); }
.d-mini span { font-size: 13px; line-height: 1.35; color: var(--muted); }

.d-band { background: #f5f9fc; border-block: 1px solid #e3ebf3; padding: 22px 0; }
.d-band .wrap { display: flex; gap: 14px 40px; flex-wrap: wrap; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }

.d-sec { padding: clamp(64px, 8vw, 96px) 0; }
.d-sec h2 { font: 700 clamp(32px, 4vw, 50px)/1.1 var(--f-display); letter-spacing: -.035em; margin: 0 0 12px; text-align: center; }
.d-sub { text-align: center; color: var(--muted); margin: 0 auto 48px; max-width: 40em; }
.d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-card { border: 1px solid #e3ebf3; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.d-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px -24px rgba(19,112,176,.5); transform: translateY(-3px); }
.d-card .c { font-size: 13px; font-weight: 600; color: var(--accent); }
.d-card h3 { margin: 0; font: 600 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.d-card p { margin: 0; color: var(--muted); font-size: 15px; }
.d-card .s { margin-top: auto; padding: 10px 0; margin-bottom: -10px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.d-card a.s:hover { color: var(--accent); }
.d-card.you { background: var(--paper-2); border-color: #cfe4f5; }
.d-card.you .d-btn { margin-top: auto; align-self: flex-start; }

.d-end { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 56px; }
.d-end h2 { margin: 0; font: 700 clamp(28px, 3.6vw, 44px)/1.1 var(--f-display); letter-spacing: -.035em; }
.d-end p { color: #a9c3da; margin: 6px 0 0; }

@media (max-width: 960px) {
    .d-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .d-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .d-grid { grid-template-columns: 1fr; }
    .d-minis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .d-mini { padding: 10px; } .d-mini b { font-size: 22px; } .d-mini span { font-size: 12px; }
}

/* === Hero work wall: a tilted 3D plane of real projects behind the headline ===
   Rows drift in opposite directions, the plane leans toward the cursor, a
   spotlight shows the work in full colour, and one project lifts off the wall now and then. */
.d-hero.has-wall { position: relative; overflow: hidden; isolation: isolate; padding: clamp(72px, 9vw, 132px) 0 clamp(80px, 9vw, 128px); }
.d-hero.has-wall .d-hero-grid { position: relative; z-index: 3; grid-template-columns: 1.2fr .8fr; align-items: end; pointer-events: none; }
.d-hero.has-wall .d-hero-grid > * { pointer-events: auto; }
.d-hero.has-wall .d-hero-grid > .reveal:first-child { max-width: 680px; }

.d-stats { display: grid; gap: 12px; justify-self: end; width: min(100%, 280px); }
.d-stats .d-mini { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border-color: rgba(211,224,236,.9); box-shadow: 0 18px 40px -26px rgba(10,23,38,.45); display: flex; align-items: baseline; gap: 12px; }
.d-stats .d-mini b { font-size: 30px; min-width: 1.6ch; }
.d-wall-hint { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 4px 2px; }

.wall-stage { position: absolute; inset: 0; z-index: 1; perspective: 1600px; perspective-origin: 70% 40%;
    --mx: 70%; --my: 45%; --rx: 0deg; --ry: 0deg; }
.wall-plane { position: absolute; top: -30%; left: 18%; width: 140%; display: grid; gap: 18px;
    transform-style: preserve-3d; transform-origin: 30% 50%;
    transform: rotateX(calc(48deg + var(--rx))) rotateZ(-22deg) rotateY(var(--ry)) translateZ(-40px);
    transition: transform 1.2s var(--ease); }
.wall-row { display: flex; gap: 18px; width: max-content; transform-style: preserve-3d;
    animation: wall-left var(--dur, 70s) linear infinite; }
.wall-row[data-rev] { animation-name: wall-right; }
.wall-stage:hover .wall-row { animation-play-state: paused; }
@keyframes wall-left  { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
@keyframes wall-right { from { transform: translateX(calc(-50% - 9px)); } to { transform: translateX(0); } }

.wt { position: relative; flex: 0 0 auto; width: clamp(220px, 19vw, 300px); aspect-ratio: 808 / 632; border-radius: 16px; overflow: hidden;
    background: #dbe8f3; box-shadow: 0 2px 0 rgba(255,255,255,.6) inset, 0 22px 40px -22px rgba(10,23,38,.55);
    transform: translateZ(0); transition: transform .7s var(--ease), box-shadow .7s var(--ease), filter .7s; text-decoration: none; }
.wt img { width: 100%; height: 100%; object-fit: cover; }
.wt span { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1.2 var(--f-text);
    background: rgba(10,23,38,.82); color: #fff; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.wt:hover, .wt.lift { transform: translateZ(90px) scale(1.06); box-shadow: 0 50px 70px -30px rgba(10,23,38,.6), 0 0 0 3px var(--accent-inv); z-index: 2; }
.wt:hover span, .wt.lift span { opacity: 1; transform: none; }

/* Washes the wall out except where the cursor is, so the work glows through */
.wall-light { position: absolute; inset: 0; pointer-events: none; background: rgba(240,247,253,.72);
    -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 150px, #000 340px);
            mask-image: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 150px, #000 340px); }
/* Keeps the headline readable */
.wall-veil { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 30%, rgba(255,255,255,.55) 52%, rgba(255,255,255,0) 70%),
                linear-gradient(180deg, rgba(255,255,255,0) 75%, #fff 100%); }

@media (max-width: 960px) {
    .d-hero.has-wall .d-hero-grid { grid-template-columns: 1fr; }
    .d-stats { justify-self: start; width: 100%; grid-template-columns: repeat(3, 1fr); }
    .d-stats .d-mini { flex-direction: column; gap: 2px; }
    .d-wall-hint { display: none; }
    .wall-plane { left: -10%; top: -10%; width: 200%; }
    .wall-veil { background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.93) 30%, rgba(255,255,255,.97) 70%, #fff 100%); }
    .wall-light { -webkit-mask-image: none; mask-image: none; background: rgba(240,247,253,.35); }
    .wt { width: 170px; }
}
@media (max-width: 600px) { .d-stats .d-mini b { font-size: 22px; } .d-stats .d-mini span { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
    .wall-row { animation: none; } .wall-plane, .wt { transition: none; }
}

/* === Dark hero: work wall on navy, no stat cards ========================= */
.d-hero.has-wall { background: var(--ink); color: #fff; }
.d-hero.has-wall .d-hero-grid { grid-template-columns: 1fr; }
.d-hero.has-wall h1 { color: #fff; }
.d-hero.has-wall h1 span { color: var(--accent-inv); }
.d-hero.has-wall .d-lede { color: var(--muted-inv); }
.d-hero.has-wall .d-kick { background: rgba(103,200,245,.12); color: var(--accent-inv); border: 1px solid rgba(103,200,245,.3); }
.d-hero.has-wall .d-checks { color: #cfe0ef; }
.d-hero.has-wall .d-checks span::before { color: var(--accent-inv); }
.d-hero.has-wall .d-btn.g { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.d-hero.has-wall .d-btn.g:hover { border-color: #fff; }
.d-hero.has-wall .wt { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 50px -24px rgba(0,0,0,.8); background: var(--ink-2); }
.d-hero.has-wall .wt:hover, .d-hero.has-wall .wt.lift { box-shadow: 0 50px 80px -30px rgba(0,0,0,.9), 0 0 0 3px var(--accent-inv), 0 0 60px rgba(103,200,245,.35); }
.d-hero.has-wall .wall-light { background: rgba(10,23,38,.72); }
.d-hero.has-wall .wall-veil { background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10,23,38,.94) 32%, rgba(10,23,38,.5) 55%, rgba(10,23,38,0) 72%),
    linear-gradient(180deg, rgba(10,23,38,.6) 0%, rgba(10,23,38,0) 18%, rgba(10,23,38,0) 78%, var(--ink) 100%); }
@media (max-width: 960px) {
    .d-hero.has-wall .wall-veil { background: linear-gradient(180deg, rgba(10,23,38,.6) 0%, rgba(10,23,38,.9) 30%, rgba(10,23,38,.95) 70%, var(--ink) 100%); }
    .d-hero.has-wall .wall-light { background: rgba(10,23,38,.35); }
}

/* ===================== Cookie notice ===================== */
.cookie-notice { position: fixed; left: var(--gutter); bottom: 20px; z-index: 60; max-width: 420px; display: flex; gap: 16px; align-items: center; padding: 14px 14px 14px 18px; background: var(--ink); color: #dbe7f1; border: 1px solid var(--line-inv); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(10, 23, 38, .6); font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cookie-notice.is-in { opacity: 1; transform: none; }
.cookie-notice.is-gone { opacity: 0; transform: translateY(12px); }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--accent-inv); }
.cookie-notice .btn { flex: none; padding: 9px 16px; background: #fff; color: var(--ink); border-color: #fff; font-size: 13px; }
.cookie-notice .btn:hover { background: var(--accent-inv); border-color: var(--accent-inv); }
@media (max-width: 600px) { .cookie-notice { right: var(--gutter); bottom: 84px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-notice { transition: none; } }

/* Training: programming courses (C, C++, Flutter & Dart) linking to courses.html */
.courses-sub { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 56px 0 16px; }
.courses-sub .eyebrow { margin: 0; }
.course-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--f-display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding: 14px 0 6px; padding-bottom: 4px; white-space: nowrap; }
.course-link .icon { width: 16px; height: 16px; }
.course-link:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) { .course-link { justify-self: start; } }

/* =================== Cool pass: section bodies (header/hero/archive untouched) =================== */
/* Services: card grid with outlined numbers and a blue glow on hover */
.services-list { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.services-list .service {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; border: 1px solid var(--line);
  border-radius: 20px; background: #fff; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.services-list .service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; height: auto; transform: none; opacity: 0;
  background: radial-gradient(420px 220px at 100% 0%, rgba(103, 200, 245, .22), transparent 70%);
  transition: opacity .35s var(--ease);
}
.services-list .service:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 50px -24px rgba(19, 112, 176, .35); }
.services-list .service:hover::before { opacity: 1; }
.services-list .service .num {
  font: 400 64px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: 0;
}
.services-list .service h3 { font-size: clamp(22px, 2vw, 28px); }
.services-list .service:hover h3 { transform: none; }
.services-list .service .tags { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.services-list .service > .icon, .services-list .service > svg { position: absolute; top: 26px; right: 26px; }

/* Open source: repo cards */
.repo-list { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.repo-list li { border: 0; }
.repo-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 100%;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.repo-list a:hover { padding-left: 20px; border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(19, 112, 176, .4); }
.repo-list .cat { padding: 4px 10px; border-radius: 999px; background: var(--paper-2); white-space: nowrap; }

/* Training: pricing cards, middle one inverted */
.courses { border-top: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.courses .course {
  display: flex; flex-direction: column; gap: 16px; padding: 30px 28px; border: 1px solid var(--line);
  border-radius: 22px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.courses .course:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(10, 23, 38, .35); }
.courses .course .price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(34px, 3.4vw, 46px); display: block; width: 100%; }
.courses .course:has(.price):nth-child(2) {
  background: radial-gradient(500px 260px at 100% 0%, rgba(103, 200, 245, .28), transparent 70%), var(--ink);
  color: #fff; border-color: var(--ink); transform: translateY(-10px);
}
.courses .course:has(.price):nth-child(2):hover { transform: translateY(-14px); }
.courses .course:has(.price):nth-child(2) p, .courses .course:has(.price):nth-child(2) small, .courses .course:has(.price):nth-child(2) .dur { color: var(--muted-inv); }
.courses .course:has(.price):nth-child(2) .price { border-color: var(--line-inv); color: #fff; }

/* Writing: post rows become hover cards with a sliding arrow */
.posts { border-top: 0; display: grid; gap: 10px; }
.posts li { border: 0; }
.posts a {
  position: relative; padding: 24px 64px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.posts a::after {
  content: "\2192"; position: absolute; right: 24px; top: 50%; transform: translate(-8px, -50%); opacity: 0;
  font: 500 22px/1 var(--f-mono); color: var(--accent); transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.posts a:hover { border-color: var(--accent); background: linear-gradient(90deg, rgba(103, 200, 245, .1), #fff 60%); transform: translateX(4px); }
.posts a:hover::after { opacity: 1; transform: translate(0, -50%); }
.posts .topic { justify-self: end; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); }

/* About: gradient quote, navy founder card */
.about-quote em { background: linear-gradient(100deg, var(--accent), #67c8f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-card {
  padding: 28px; border: 0; border-radius: 22px; color: #fff;
  background: radial-gradient(420px 240px at 100% 0%, rgba(103, 200, 245, .3), transparent 70%), var(--ink);
}
.about-card span, .about-card li { color: var(--muted-inv); }
.about-card .link { color: #fff; }

/* FAQ: rounded accordions with an accent edge when open */
.faq-list { border-top: 0; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.faq-list details:hover { border-color: rgba(19, 112, 176, .45); }
.faq-list details[open] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent), 0 18px 36px -24px rgba(19, 112, 176, .45); }
.faq-list summary { padding: 20px 22px; }
.faq-list .answer { padding: 0 22px 20px; }

@media (max-width: 980px) {
  .services-list, .courses { grid-template-columns: 1fr 1fr; }
  .courses .course:has(.price):nth-child(2) { transform: none; }
}
@media (max-width: 640px) {
  .services-list, .courses, .repo-list { grid-template-columns: 1fr; }
  .posts a { padding: 20px 52px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .services-list .service, .repo-list a, .courses .course, .posts a, .posts a::after { transition: none; }
}
