/* rickyandrade.com — one stylesheet for every page.
   Monochrome UI: true black, off-white, three greys. Light by default (data-theme="light"
   on <html>); dark only when data-theme="dark" or the attribute is missing under a dark
   prefers-color-scheme. Colour lives only in the photos, the four project brand dots
   (--brand), the brand logos / badges in the project and certification boxes (images/logos/)
   and the form's error text. Display face Space Grotesk, body Inter. Brand marks
   (signature + RA monogram) are SVG masks from /brand/. docs/REDESIGN.md. */

:root {
    color-scheme: dark;
    --bg: #0a0a0a;          /* page */
    --bg-2: #111111;        /* cards, header */
    --bg-3: #181818;        /* inputs, chips */
    --line: #262626;        /* 1px rules */
    --line-2: #3d3d3d;      /* hover rules */
    --fg: #f5f5f3;          /* headings, primary text */
    --fg-2: #a3a3a0;        /* body copy */
    --fg-3: #8a8a87;        /* labels, meta (5.3:1 on --bg) */
    --inverse: #f5f5f3;     /* primary button */
    --on-inverse: #0a0a0a;
    --ring: #f5f5f3;
    --error: #ff8a80;
    --dot: rgba(255,255,255,0.08);
    --tile: #f5f5f3;        /* white tile behind colour logos (faint white in dark) */
    --shadow: 0 24px 60px -30px rgba(0,0,0,0.9);
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --header-h: 76px;
    --wide: 1160px;
    --narrow: 760px;
    --gutter: 1rem;
    --t: 0.2s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #f7f7f5;
        --bg-2: #ffffff;
        --bg-3: #efefec;
        --line: #e1e1dc;
        --line-2: #bdbdb7;
        --fg: #0a0a0a;
        --fg-2: #4d4d4a;
        --fg-3: #6f6f6c;
        --inverse: #0a0a0a;
        --on-inverse: #f5f5f3;
        --ring: #0a0a0a;
        --error: #b42318;
        --dot: rgba(0,0,0,0.07);
        --tile: #ffffff;
        --shadow: 0 24px 60px -30px rgba(0,0,0,0.25);
    }
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f7f5; --bg-2: #ffffff; --bg-3: #efefec; --line: #e1e1dc; --line-2: #bdbdb7;
    --fg: #0a0a0a; --fg-2: #4d4d4a; --fg-3: #6f6f6c; --inverse: #0a0a0a; --on-inverse: #f5f5f3;
    --ring: #0a0a0a; --error: #b42318; --dot: rgba(0,0,0,0.07); --shadow: 0 24px 60px -30px rgba(0,0,0,0.25);
    --tile: #ffffff;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 2px; }
.container { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 200; background: var(--inverse); color: var(--on-inverse); padding: 0.5rem 0.9rem; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 0.75rem; }

/* ---- Type scale ---- */
.display, h1, h2, h3, .section-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1.display { font-size: clamp(2.75rem, 9vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; }
.section-title { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--fg-2); line-height: 1.55; }
.lead strong { color: var(--fg); font-weight: 600; }
.label, .section-label, .eyebrow {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3);
    margin-bottom: 1rem;
}
.label::before, .section-label::before, .eyebrow::before { content: ''; width: 1.25rem; height: 1px; background: var(--fg-3); flex: none; }
.num { font-variant-numeric: tabular-nums; }
.prose p, .muted { color: var(--fg-2); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8125rem; }

/* ---- Links ---- */
.u, .prose a, .link {
    color: var(--fg);
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
    padding-bottom: 1px;
    transition: background-size var(--t) var(--ease), color var(--t);
}
.u:hover, .prose a:hover, .link:hover { background-size: 0 1px; background-position: 100% 100%; }
.reveal-u { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; padding-bottom: 2px; transition: background-size var(--t) var(--ease), color var(--t); }
.reveal-u:hover, .reveal-u[aria-current="page"] { background-size: 100% 1px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0.7rem 1.25rem;
    font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
    border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t) var(--ease);
}
.btn .arrow { display: inline-block; transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.btn-primary:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--fg); background: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--fg-2); border-color: transparent; }
.btn-ghost:hover { color: var(--fg); background: var(--bg-3); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; min-height: 50px; }
.btn-sm { min-height: 38px; padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow, .u, .reveal-u { transition: none; } }

/* ---- Header ---- */
.site-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
@supports not (color: color-mix(in srgb, red, blue)) { .site-header { background: var(--bg); } }
.site-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* Wordmark: the signature (brand/signature.svg) as a mask painted in the text colour, so it
   follows light/dark, on every screen size (the RA monogram is only used for the favicon / app icons). */
.wordmark { display: inline-flex; align-items: center; color: var(--fg); transition: opacity var(--t); }
.wordmark:hover { opacity: 0.7; }
.wordmark .sig { display: block; flex: none; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: left center; mask-position: left center; -webkit-mask-size: contain; mask-size: contain; }
/* header uses its own cut (signature-header.svg): bold pen, bigger icky/ndrade, shorter A, smaller R, so the name reads at 53-64px; footer + og keep the light one. Width = height x 3.62 (its viewBox ratio) */
.wordmark .sig { width: 232px; height: 64px; -webkit-mask-image: url(/brand/signature-header.svg); mask-image: url(/brand/signature-header.svg); }
@media (max-width: 640px) { :root { --header-h: 68px; } .wordmark .sig { width: 192px; height: 53px; } }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--fg-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav .btn { color: var(--on-inverse); margin-left: 0.25rem; }
.nav .btn:hover { color: var(--fg); }
.header-mobile { display: none; align-items: center; gap: 0.5rem; }
.menu-btn {
    display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform var(--t) var(--ease), opacity var(--t); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 860px) {
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem;
    }
    .nav.open a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav.open .btn { margin: 1rem 0 0; border-bottom: 0; padding: 0.9rem 1.25rem; }
    .menu-btn, .header-mobile { display: flex; }
}

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.hero h1 { margin: 0 0 1.25rem; }
.hero .lead { max-width: 38rem; margin-bottom: 1rem; }
.hero-meta { font-size: 0.9375rem; color: var(--fg-3); margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; margin-top: 1.75rem; font-size: 0.8125rem; color: var(--fg-3); }
.trust a { color: var(--fg-2); }
.trust a:hover { color: var(--fg); }
.trust strong { font-weight: 600; }
.portrait { position: relative; width: min(100%, 360px); margin-inline: auto; }
@media (min-width: 900px) { .portrait { margin-inline: 0 0; justify-self: end; } }
/* The portrait stays in full colour: a large soft rounded mask and a faint shadow, no frame line. */
.portrait-frame { aspect-ratio: 880 / 1076; border-radius: clamp(24px, 6vw, 36px); overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.portrait-chip {
    position: absolute; left: 0.9rem; bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.75rem; border: 1px solid var(--line-2); border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg);
}
.portrait-chip-top { left: auto; bottom: auto; right: 0.9rem; top: 0.9rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); position: relative; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--fg); opacity: 0.5; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; opacity: 0.35; } }

.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 3rem); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 1.25rem 1rem 1.25rem 0; border-right: 1px solid var(--line); }
.fact:nth-child(2n) { padding-left: 1rem; border-right: 0; }
@media (min-width: 720px) {
    .fact { padding: 1.5rem 1.25rem; }
    .fact:nth-child(2n) { border-right: 1px solid var(--line); }
    .fact:first-child { padding-left: 0; }
    .fact:last-child { border-right: 0; }
}
.fact strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { display: block; font-size: 0.8125rem; color: var(--fg-3); margin-top: 0.25rem; }

/* ---- Sections ---- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section, .section-rule { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.5rem 3rem; margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; align-items: end; } .section-head .section-intro { margin-bottom: 0.35rem; } }
.section-intro { color: var(--fg-2); max-width: 44rem; font-size: 1.0625rem; margin-bottom: 0; }
.section-title { margin-bottom: 0; }

/* ---- Cards ---- */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--t), transform var(--t) var(--ease); }
.card:hover { border-color: var(--line-2); }

/* ---- Projects ---- */
.project-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .project-grid { grid-template-columns: 1fr 1fr; } }
.project { display: flex; flex-direction: column; background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; transition: background var(--t); }
.project:hover { background: var(--bg-2); }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.project-id { display: flex; align-items: center; gap: 0.85rem; }
.mark { flex: none; width: 44px; height: 44px; border: 1px solid var(--fg); border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: -0.02em; color: var(--fg); transition: background var(--t), color var(--t); }
.project:hover .mark:not(.logo) { background: var(--fg); color: var(--bg); }
/* Real brand marks and badges (images/logos/): the same small rounded square, the logo inside with
   a little padding and object-fit: contain, in colour. In dark mode the box is a faint white tile
   so dark marks (Cadova's green tile, the gold lion) still read. */
.logo { padding: 5px; background: var(--tile); border-color: var(--line-2); }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project:hover .logo { border-color: var(--fg); }
.project h3 { font-size: 1.375rem; }
.tag { font-size: 0.8125rem; color: var(--fg-3); margin-top: 0.15rem; }
.index { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.8125rem; color: var(--fg-3); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
/* The only colour in the UI: one 10px brand dot per project, next to its number. */
.index::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand, var(--fg-3)); flex: none; }
.p-trademesh { --brand: #2563eb; }   /* TradeMesh blue */
.p-cadova { --brand: #22c55e; }      /* Cadova green */
.p-mma { --brand: #d4af37; }         /* Market Masters gold */
.p-motivpack { --brand: #f5a623; }   /* MotivPack warm */
.project .tagline { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; color: var(--fg); margin-bottom: 0.5rem; }
.project p { font-size: 0.9375rem; color: var(--fg-2); margin-bottom: 1.1rem; }
.project ul { list-style: none; display: grid; gap: 0.45rem; margin-bottom: 1.5rem; }
.project li { font-size: 0.875rem; color: var(--fg-2); padding-left: 1.1rem; position: relative; }
.project li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; background: var(--fg); border-radius: 1px; }
.project-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.project-foot .who { font-size: 0.8125rem; color: var(--fg-3); }
.project-foot .links { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---- Experience ---- */
.exp-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .exp-grid { grid-template-columns: 1.45fr 1fr; gap: 4rem; } }
.timeline { list-style: none; }
.tl-item { position: relative; padding: 0 0 2.25rem 1.75rem; border-left: 1px solid var(--line); }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before { content: ''; position: absolute; left: -4px; top: 0.55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 4px var(--bg); }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.tl-role { font-size: 1.125rem; }
.tl-range { font-size: 0.8125rem; font-weight: 500; color: var(--fg-3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.tl-org { font-size: 0.9375rem; color: var(--fg-2); margin: 0.3rem 0 0.75rem; }
.tl-org a { color: var(--fg); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; }
.tl-org a:hover { background-size: 0 1px; }
.tl-item ul { list-style: none; display: grid; gap: 0.45rem; }
.tl-item li { font-size: 0.9375rem; color: var(--fg-2); padding-left: 1rem; position: relative; }
.tl-item li::before { content: '–'; position: absolute; left: 0; color: var(--fg-3); }
.tl-item li strong { color: var(--fg); font-weight: 600; }
.side-card { padding: 1.5rem; }
.side-card + .side-card { margin-top: 1rem; }
.side-card h3 { font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
.results strong { display: block; font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.results span { display: block; font-size: 0.8125rem; color: var(--fg-3); line-height: 1.4; margin-top: 0.2rem; }
.skill-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { font-size: 0.8125rem; font-weight: 500; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-3); color: var(--fg-2); }
.aside-note { font-size: 0.875rem; color: var(--fg-3); margin-top: 1.25rem; line-height: 1.55; }

/* ---- Credentials ---- */
.cred-featured { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
@media (min-width: 820px) { .cred-featured { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 3rem; } }
.cred-head { display: flex; gap: 1rem; align-items: flex-start; }
.issuer { flex: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; color: var(--fg); background: var(--bg-3); }
.issuer.logo { background: var(--tile); border-radius: 12px; }
.cred-title { font-size: 1.0625rem; margin-bottom: 0.2rem; }
.cred-meta { font-size: 0.8125rem; color: var(--fg-3); }
.cred-featured .cred-title { font-size: 1.375rem; }
.cred-featured p { font-size: 0.9375rem; color: var(--fg-2); margin-top: 0.75rem; }
.courses-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 0.75rem; }
.courses { list-style: none; display: grid; gap: 0.45rem; }
@media (min-width: 520px) { .courses { grid-template-columns: 1fr 1fr; } }
.courses a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--fg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.8rem; transition: border-color var(--t), color var(--t); }
.courses a:hover { color: var(--fg); border-color: var(--fg); }
.courses a::after { content: '↗'; color: var(--fg-3); font-size: 0.8rem; }
.cred-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cred-grid { grid-template-columns: repeat(3, 1fr); } }
.cred { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
.cred .cred-title { font-size: 1rem; }
.verify { margin-top: auto; font-size: 0.8125rem; font-weight: 600; }
.verify a { color: var(--fg); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; }
.verify a:hover { background-size: 0 1px; }
.verify-none { margin-top: auto; font-size: 0.8125rem; color: var(--fg-3); }

/* ---- Mentorship ---- */
.mentor { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .mentor { grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: start; } }
.mentor-intro { font-size: 1.0625rem; color: var(--fg-2); margin: 1rem 0 2rem; }
.mentor h3 { font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 0.9rem; }
.focus-list { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.focus-list li { font-size: 0.9375rem; color: var(--fg-2); padding-left: 1.6rem; position: relative; }
.focus-list li strong { color: var(--fg); font-weight: 600; }
.focus-list li::before { content: ''; position: absolute; left: 0; top: 0.4em; width: 0.8rem; height: 0.8rem; border: 1px solid var(--fg); border-radius: 3px; background: linear-gradient(135deg, transparent 45%, var(--fg) 45%, var(--fg) 55%, transparent 55%); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 0.85rem; margin-bottom: 1.5rem; }
.steps li { counter-increment: step; display: flex; gap: 0.9rem; font-size: 0.9375rem; color: var(--fg-2); align-items: baseline; }
.steps li::before { content: counter(step, decimal-leading-zero); flex: none; font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--fg); border-bottom: 1px solid var(--fg); line-height: 1.4; }
.steps strong { color: var(--fg); font-weight: 600; }
.mentor-note { font-size: 0.8125rem; color: var(--fg-3); line-height: 1.55; }

.apply-card { padding: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.apply-card h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--fg); margin-bottom: 0.25rem; }
.apply-card .hint { font-size: 0.875rem; color: var(--fg-3); margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.4rem; }
.field .opt { font-weight: 400; color: var(--fg-3); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 0.9375rem; color: var(--fg);
    background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    padding: 0.7rem 0.85rem; min-height: 44px;
    transition: border-color var(--t), box-shadow var(--t);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.field textarea { min-height: 110px; resize: vertical; }
.field ::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 18%, transparent); }
.hp { position: absolute; left: -9999px; }
.apply-card .btn { width: 100%; }
.step { border: 0; min-width: 0; }
.form-steps { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-steps span { height: 2px; flex: 1; background: var(--line); transition: background var(--t); }
.form-steps span.on { background: var(--fg); }
.form-actions { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; }
.form-actions .btn { width: auto; }
.form-status { font-size: 0.875rem; margin-top: 0.85rem; min-height: 1.3em; color: var(--fg-2); }
.form-status.error { color: var(--error); }

/* ---- Connect ---- */
.connect .section-head { grid-template-columns: 1fr; }
.connect-paths { margin-top: 1.5rem; font-size: 0.875rem; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.connect-paths a { color: var(--fg-2); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; }
.connect-paths a:hover { color: var(--fg); background-size: 0 1px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 0.875rem; color: var(--fg-3); position: relative; overflow: hidden; }
.footer-sig { width: min(300px, 72%); aspect-ratio: 12721 / 4988; background: var(--fg); -webkit-mask: url(/brand/signature.svg) no-repeat left center / contain; mask: url(/brand/signature.svg) no-repeat left center / contain; margin: 0 0 1.75rem; }
.footer-projects { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; padding-bottom: 1.5rem; font-weight: 500; }
.footer-projects a, .footer-inner nav a { color: var(--fg-2); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%; padding-bottom: 2px; transition: background-size var(--t) var(--ease), color var(--t); }
.footer-projects a:hover, .footer-inner nav a:hover { color: var(--fg); background-size: 100% 1px; }
.footer-legal { max-width: 80ch; padding: 1.5rem 0; font-size: 0.75rem; line-height: 1.6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding-top: 1.5rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* ---- Simple pages (schedule, booked, privacy, 404) ---- */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.page .sub, .page .lead { color: var(--fg-2); }
.progress { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.8125rem; color: var(--fg-3); margin-bottom: 2rem; }
.progress span { display: inline-flex; align-items: center; gap: 0.5rem; }
.progress b { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--line-2); font-size: 0.6875rem; font-weight: 600; color: var(--fg-2); }
.progress .done b { background: var(--bg-3); border-color: var(--line-2); }
.progress .now { color: var(--fg); font-weight: 600; }
.progress .now b { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.head { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .head { flex-direction: row; gap: 1.25rem; align-items: center; } }
.head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 12%; flex: none; box-shadow: var(--shadow); }
.booking { overflow: hidden; }
.booking iframe { width: 100%; border: none; min-height: 720px; display: block; background: #fff; }
.note { font-size: 0.875rem; color: var(--fg-3); margin-top: 1.25rem; }
.note a { color: var(--fg-2); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; }
.note a:hover { color: var(--fg); }
.check { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--fg); color: var(--fg); display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.list { list-style: none; counter-reset: s; display: grid; gap: 0.85rem; }
.list li { counter-increment: s; display: flex; gap: 0.9rem; color: var(--fg-2); font-size: 0.9375rem; align-items: baseline; }
.list li::before { content: counter(s, decimal-leading-zero); flex: none; font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; color: var(--fg); border-bottom: 1px solid var(--fg); line-height: 1.4; }
.list strong { color: var(--fg); font-weight: 600; }
.cards { display: grid; gap: 1rem; }
.tiles { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tiles a { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 0.9rem 1rem; color: var(--fg); font-weight: 600; font-size: 0.9375rem; transition: border-color var(--t), background var(--t); }
.tiles a span { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--fg-3); margin-top: 0.1rem; }
.tiles a:hover { border-color: var(--fg); background: var(--bg-3); }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 0.6rem; }
.legal p { color: var(--fg-2); margin-bottom: 1rem; }
.legal a { color: var(--fg); background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%; }
.legal a:hover { background-size: 0 1px; }
.center { text-align: center; }
.center .hero-actions { justify-content: center; }

/* ---- Reveal on scroll (only when JS is there and motion is allowed) ---- */
@media (prefers-reduced-motion: no-preference) {
    html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
    html.js .reveal.in { opacity: 1; transform: none; }
    html.js .reveal:nth-child(2) { transition-delay: 0.06s; }
    html.js .reveal:nth-child(3) { transition-delay: 0.12s; }
    html.js .reveal:nth-child(4) { transition-delay: 0.18s; }
}

/* social follower counts (Connect) */
.social-row { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; }
.social-row a { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--fg); text-decoration: none; transition: border-color var(--t); }
.social-row a:hover { border-color: var(--fg); }
.social-row strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.social-name, .social-handle { font-size: 0.8rem; color: var(--fg-3); }
