/* ==========================================================================
   Sameer Soni — Graphical site styles
   Ported from the Claude Design file "Sameer Soni.dc.html" and its
   "Modernist" design system. Tokens first, then DS components, then page layout.
   ========================================================================== */

/* --- Fonts --- */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 400 800;
    font-stretch: 100%;
    font-display: swap;
    src: url('assets/fonts/Archivo-latin-wght.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design Tokens (Modernist design system) --- */
:root {
    --color-bg: #f3f2f2;
    --color-surface: #eae9e9;
    --color-text: #201e1d;
    --color-on-accent: #fff;
    /* Design value #ec3013 darkened slightly for WCAG AA: white on accent 5.1:1, accent on bg 4.6:1. */
    --color-accent: #d4290e;
    --color-divider: color-mix(in srgb, var(--color-text) 40%, transparent);

    --color-neutral-300: #d7d3d3;
    --color-neutral-600: #7d7979;
    --color-neutral-700: #605d5d;
    --color-neutral-800: #444141;

    --color-accent-100: #fff2ef;
    --color-accent-600: #dd2b0f;
    --color-accent-700: #ae1800;
    --color-accent-800: #7c1405;

    --font-heading: "Archivo", system-ui, sans-serif;
    --font-heading-weight: 600;
    --font-body: "Archivo", system-ui, sans-serif;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;

    --radius-md: 0;
    /* The app icon's rounded corners; the white tile and its accent tint (quick 261019-gnb). */
    --radius-icon: 22%;
    --color-tile: #fff;
    --color-icon-tint: color-mix(in srgb, var(--color-accent) 12%, var(--color-tile));
    --rule: 2px solid var(--color-divider);
    --rule-light: 1px solid var(--color-neutral-300);
    --max-width: 73.75rem;
    --gutter: 1.5rem;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.55;
}
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    margin: 0;
}
p { margin: 0; }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
[hidden] { display: none !important; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed;
    top: max(var(--space-4), env(safe-area-inset-top));
    left: max(var(--space-4), env(safe-area-inset-left));
    width: auto; height: auto; margin: 0; padding: var(--space-2) var(--space-4);
    overflow: visible; clip: auto; white-space: normal; z-index: 30;
    background: var(--color-text); color: var(--color-bg); font-weight: 600;
}

/* --- DS Components: buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; text-decoration: none;
    font-family: var(--font-heading); font-weight: 800;
    font-size: 0.875rem; line-height: 1.2; color: var(--color-text);
    background: transparent; border: 1px solid transparent;
    padding: var(--space-2) calc(var(--space-3) * 1.2);
    border-radius: var(--radius-md);
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-700); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-inverse { background: var(--color-bg); color: var(--color-text); }
.btn-inverse:hover { background: var(--color-surface); color: var(--color-text); }

/* --- DS Components: tags --- */
.tag {
    display: inline-flex; align-items: center; font-size: 0.6875rem;
    letter-spacing: 0.02em; padding: 3px 10px; white-space: nowrap;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- DS Components: table --- */
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
    text-align: left; vertical-align: top; font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: color-mix(in srgb, var(--color-text) 60%, transparent);
    padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
    width: 34%;
}
.table td { padding: var(--space-2); border-bottom: 1px solid var(--color-divider); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* --- DS Components: form fields --- */
.field > label { display: block; font-size: 0.75rem; margin-bottom: 5px; }
.input {
    width: 100%; min-height: 2.25rem; padding: 6px 10px; font: inherit;
    font-size: 0.875rem; color: var(--color-text); caret-color: var(--color-accent);
    background: var(--color-surface);
    border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:focus-visible { border-color: var(--color-text); outline: 2px solid var(--color-on-accent); outline-offset: 0; }
textarea.input { min-height: 6rem; resize: vertical; }

/* --- Layout primitives --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.band { border-top: var(--rule); }
.band-surface { background: var(--color-surface); }
.pad-lg { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pad-md { padding-top: 3rem; padding-bottom: 3rem; }

.eyebrow {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-accent-700); margin-bottom: 1.75rem;
}
.lede { font-size: 1.0625rem; line-height: 1.6; max-width: 64ch; text-wrap: pretty; }
.muted { color: var(--color-neutral-800); }
.meta { font-size: 0.875rem; color: var(--color-neutral-700); }

/* --- Header & Navigation --- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--color-bg);
    border-bottom: var(--rule);
    padding-top: env(safe-area-inset-top);
}
.site-header .container {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between;
    padding-top: 0.875rem; padding-bottom: 0.875rem;
}
.brand {
    font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem;
    letter-spacing: -0.01em; color: var(--color-text);
}
.brand:hover { color: var(--color-text); text-decoration: none; }
.brand span { color: var(--color-accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
    padding: 6px 12px 4px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.06em;
    color: var(--color-text); border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--color-accent); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }

/* --- Page headings --- */
.page-head { padding-top: 4rem; padding-bottom: 2.5rem; }
.page-title {
    font-size: clamp(1.875rem, 4.2vw, 3rem); line-height: 1.06; letter-spacing: -0.025em;
    margin: 0 0 1.25rem; text-wrap: balance; overflow-wrap: anywhere;
}
.page-head .eyebrow { margin-bottom: 1.125rem; }

/* --- Intro: hero --- */
.hero {
    display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: end;
    padding-top: 4.5rem; padding-bottom: 3rem;
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero-byline { display: flex; align-items: center; gap: var(--space-4); margin-bottom: 1.25rem; }
.hero-byline .eyebrow { margin-bottom: 0; min-width: 0; }
.hero-title { font-size: clamp(2.125rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.hero-side { padding-bottom: 0.5rem; }
.hero-side .lede { margin-bottom: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.actions-spaced { margin-top: 1.5rem; }

/* --- Intro: stats --- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.75rem 1.5rem; border-right: var(--rule); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat-value { font-family: var(--font-heading); font-weight: 600; font-size: 2.125rem; line-height: 1; letter-spacing: -0.02em; }
.stat-label {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-neutral-700); margin-top: 0.5rem;
}

/* --- Ruled column grids (What I do) --- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16.25rem, 100%), 1fr)); border-top: var(--rule); }
.cols-plain { border-top: 0; }
.col { padding: 1.75rem; border-right: var(--rule); }
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; border-right: 0; }
.col h3 { font-size: 1.25rem; letter-spacing: -0.012em; margin-bottom: 0.75rem; }
.cols-compact .col h3 { font-size: 1.0625rem; }
.col p { font-size: 0.9375rem; line-height: 1.6; color: var(--color-neutral-800); }
.col .eyebrow { margin-bottom: 0.875rem; }

/* --- Split rows (label column + content) --- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; }
.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
.split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.split .lede + .lede { margin-top: 1rem; }
.split .eyebrow { margin-bottom: 0; }

/* --- Track record / list rows --- */
.section-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.section-bar .eyebrow { margin-bottom: 0; }
.rows { border-top: var(--rule); }
.row {
    display: grid; gap: 1.5rem; padding: 1.25rem 0; align-items: baseline;
    border-bottom: var(--rule-light);
}
.row:last-child { border-bottom: var(--rule); }
.row-track { grid-template-columns: 11.25rem minmax(0, 1fr) 9.375rem; }
.row-nav { grid-template-columns: 11.25rem minmax(0, 1fr); }
.row-year { grid-template-columns: 5.5rem minmax(0, 1fr); padding: 1.5rem 0; }
.row-skill { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 2.5rem; padding: 1.5rem 0; }
.row-award { grid-template-columns: 5.625rem minmax(0, 1.2fr) minmax(0, 1.4fr); }
.row-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; }
.row-desc { font-size: 0.9375rem; line-height: 1.5; color: var(--color-neutral-800); }
.row-date { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--color-neutral-700); }
.row-year-label { font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; color: var(--color-accent-700); }
.row-title { font-size: 1.125rem; line-height: 1.45; }
.row-award-title { font-size: 1rem; font-weight: 500; }
.pub > * + * { margin-top: var(--space-2); }
.pub .row-desc { max-width: 64ch; }
.pub .meta, .pub a { overflow-wrap: anywhere; }

/* --- Skills --- */
.skill-items {
    list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 0.5rem 1.5rem;
    font-size: 0.9375rem; line-height: 1.5; overflow-wrap: anywhere;
}
.used-at { margin-top: 1rem; font-size: 0.875rem; color: var(--color-neutral-700); overflow-wrap: anywhere; }
.used-at-label { font-weight: 600; color: var(--color-neutral-800); }
.used-at a, .meta a { text-decoration: underline; text-underline-offset: 3px; }
.row-skill:target .row-name {
    text-decoration: underline; text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* --- Experience entries --- */
.job h2 { font-size: 1.5625rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.job-role { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.job .tags { margin-top: 1rem; }
.job:target h2 {
    text-decoration: underline; text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1.125rem; }
.bullets li { font-size: 1rem; line-height: 1.6; padding-left: 1.375rem; border-left: 2px solid var(--color-neutral-300); }
.bullets li:first-child { border-left-color: var(--color-accent); }

/* --- Products --- */
.product .tags { margin-bottom: 1.125rem; gap: 8px; }
.product h2 { font-size: clamp(1.625rem, 3.2vw, 2.375rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.product .lede { max-width: 60ch; margin-bottom: 0.25rem; }
/* The app's name row: the rounded icon beside the heading. The heading may drop below the icon (never break its word). */
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) 1.25rem; margin-bottom: 0.75rem; }
.app-title .app-icon { width: 4.5rem; height: 4.5rem; flex: none; }
.app-title h2 { flex: 1 1 0; min-width: min-content; margin: 0; }
.product .app-cta { margin-top: 0; }
/* With the app video the text (tags, name row, lede, badge, trademark line, App page line) sits left and the video right,
   top-aligned with the tags. The last text row (1fr) takes the video's extra height, so the gaps between the text rows do not grow.
   Phones stack (see Responsive). */
.product-body:has(> .app-video) {
    display: grid; grid-template-columns: minmax(0, 1fr) min(30rem, 42%); column-gap: 2.5rem; grid-template-rows: repeat(5, auto) 1fr; align-items: start;
}
.product-body:has(> .app-video) > * { grid-column: 1 / -1; }
.product-body:has(> .app-video) > .tags { grid-column: 1; grid-row: 1; }
.product-body:has(> .app-video) > .app-title { grid-column: 1; grid-row: 2; }
.product-body:has(> .app-video) > .lede { grid-column: 1; grid-row: 3; }
.product-body:has(> .app-video) > .app-cta { grid-column: 1; grid-row: 4; }
.product-body:has(> .app-video) > .badge-note { grid-column: 1; grid-row: 5; }
.product-body:has(> .app-video) > .meta { grid-column: 1; grid-row: 6; }
.product-body:has(> .app-video) > .app-video { grid-column: 2; grid-row: 1 / span 6; }

/* --- Feature tiles --- */
/* The six app features as white tiles (the icon in a tinted square, a short title, one sentence), no divider lines: 3 columns,
   2 on tablets, one on phones with the icon left of the text. */
.feature-tiles { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); background: var(--color-tile); border-radius: var(--radius-md); padding: var(--space-6); }
.feature-icon { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: var(--color-icon-tint); color: var(--color-accent); }
.feature-icon .icon { width: 1.375rem; height: 1.375rem; }
.feature-tile h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; margin: 0; color: var(--color-text); }
.feature-tile p { font-size: 0.9375rem; line-height: 1.55; color: var(--color-neutral-800); }

/* --- App stats --- */
/* The numbers strip: three big accent numbers, each with a label and one short line. Three columns, rows on phones. */
.app-stats { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--color-text); border-bottom: var(--rule-light); }
.app-stat { display: flex; flex-direction: column; gap: 0.375rem; padding: var(--space-6); border-left: var(--rule-light); }
.app-stat:first-child { padding-left: 0; border-left: 0; }
.app-stat-value { display: block; font-family: var(--font-heading); font-weight: 800; line-height: 1; color: var(--color-accent); font-size: clamp(2.5rem, 5vw, 3.5rem); }
.app-stat-label { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--color-text); overflow-wrap: anywhere; hyphens: auto; }
.app-stat-text { display: block; overflow-wrap: anywhere; font-size: 0.875rem; line-height: 1.5; color: var(--color-neutral-700); }

/* --- App video --- */
/* A landscape click-to-play facade: the self-hosted poster and a play button; the player replaces it after a click. */
.app-video { margin: 0 0 1.75rem; max-width: 48rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border: var(--rule); background: var(--color-surface); }
.video-facade, .video-frame iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.video-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: clamp(3rem, 12%, 4.5rem); aspect-ratio: 1; border-radius: 50%;
    background: var(--color-accent);
}
.video-play::before {
    content: ''; position: absolute; inset: 28% 22% 28% 36%; background: var(--color-on-accent);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { background: var(--color-accent-700); }
.video-facade:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
/* One short line under the video; the full notice and the description sit in a native details disclosure (no JavaScript). */
.video-source { margin-top: var(--space-3); font-size: 0.8125rem; line-height: 1.5; color: var(--color-neutral-700); }
.video-source a { text-decoration: underline; text-underline-offset: 3px; }
.video-details { margin-top: var(--space-2); font-size: 0.8125rem; line-height: 1.5; }
.video-details summary { cursor: pointer; font-weight: 600; color: var(--color-text); }
.video-details summary::marker { color: var(--color-accent-700); }
.video-note { margin-top: var(--space-3); max-width: 64ch; font-size: 0.8125rem; line-height: 1.5; color: var(--color-neutral-700); }
.video-note a { text-decoration: underline; }
.next-product h3 { font-size: 1.375rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }

/* --- About --- */
.about-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; }
.about-head .lede + .lede { margin-top: 1rem; }

/* --- Profile photo --- */
.profile-photo {
    display: block; aspect-ratio: 1; height: auto; max-width: 100%; object-fit: cover; border-radius: 50%;
    background: var(--color-surface);
    outline: 2px solid var(--color-accent); outline-offset: 0.375rem;
}
.profile-photo-hero { width: 5.5rem; flex-shrink: 0; margin: 0.375rem; outline-offset: 0.25rem; }
.profile-photo-about { width: min(14rem, 100%); justify-self: end; align-self: start; margin: 0.5rem 0.5rem 0 0; }

/* --- Contact banner --- */
.contact {
    background: var(--color-accent); color: var(--color-on-accent); border-top: var(--rule);
}
.contact .container { padding-top: 4rem; padding-bottom: 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.contact h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 18ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: baseline; }
.contact a { color: var(--color-on-accent); font-size: 1.0625rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.contact a:hover { color: var(--color-on-accent); text-decoration-thickness: 2px; }
.contact-form { display: grid; gap: 0.75rem; }
.contact-form .field > label { color: var(--color-on-accent); }
.contact-form .btn { justify-self: start; }
/* Honeypot: present for bots, invisible and unfocusable for people; no off-screen offsets. */
.field-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-note { margin: 0; font-size: 0.875rem; line-height: 1.5; max-width: 52ch; color: var(--color-on-accent); }
.contact-note a { font-size: inherit; }
.contact-status { min-height: 1.5em; font-size: 0.875rem; font-weight: 500; }
.contact-status[data-state="error"] { font-weight: 800; }
.contact-status[data-state="error"]::before { content: "⚠ "; }
.input[aria-invalid="true"] { border: 2px solid var(--color-on-accent); }
.contact :focus-visible { outline-color: var(--color-on-accent); }

/* --- Legal --- */
.legal h2 { font-size: 1.0625rem; font-weight: 600; margin-top: var(--space-6); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: var(--space-3); }
.legal p, .legal li { max-width: 70ch; }
.legal ul { padding-left: 1.25rem; }
.legal a { text-decoration: underline; overflow-wrap: anywhere; }
.legal-en { margin-top: 3rem; padding-top: var(--space-6); border-top: var(--rule-light); }
.legal-en h2 { margin-top: 0; }

/* --- App page --- */
/* The language link sits in the page head's top padding, so the disclaimer stays above the fold. */
.lang-switch { font-size: 0.875rem; line-height: 1.5; margin-top: -2.5rem; margin-bottom: var(--space-4); }
.lang-switch a { text-decoration: underline; text-underline-offset: 3px; }
.app-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.app-icon { width: 6rem; height: 6rem; border-radius: var(--radius-icon); }
/* The video beside the hero text from 56.0625rem up. The icon moves above the text so the app name keeps a wide column
   (its word must not break); the figure drops its bottom margin because the hero's padding ends the section. */
.app-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) min(30rem, 42%); column-gap: 2.5rem; align-items: start; }
.app-hero-split .app-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.app-hero-split .app-video { margin: 0; }
.app-disclaimer {
    margin-top: var(--space-4); max-width: 64ch; padding: var(--space-2) var(--space-4);
    border-left: 2px solid var(--color-accent-700); font-size: 0.9375rem; line-height: 1.5;
}
.app-disclaimer a { text-decoration: underline; text-underline-offset: 3px; } /* not colour alone (WCAG 1.4.1) */
/* The badge with the free line beside it: one wrapping row. The free line sits outside the badge's clear space. */
.app-cta { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-4); margin-top: var(--space-4); }
.app-free { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--color-accent-700); }
.app-free .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--color-accent); }
/* Clear space: the margin is a quarter of the badge height; rem so the badge grows with the text. */
.play-badge { display: inline-block; margin: 0.875rem 0; }
.play-badge img { display: block; height: 3.5rem; width: auto; }
.badge-note { font-size: 0.75rem; color: var(--color-neutral-700); }
.faq h3 { font-size: 1.0625rem; font-weight: 600; }
.faq p { max-width: 64ch; margin-top: var(--space-2); }
.faq p + h3 { margin-top: var(--space-6); }
@media (max-width: 36rem) { .app-head { grid-template-columns: minmax(0, 1fr); } }

/* --- Footer --- */
.site-footer { border-top: var(--rule); }
.site-footer .container {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    padding-top: 1.5rem; padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    font-size: 0.8125rem; color: var(--color-neutral-700);
}
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { white-space: nowrap; }

/* --- Responsive --- */
@media (max-width: 56rem) {
    html { scroll-padding-top: var(--space-4); }
    .site-header { position: static; }
    .hero, .split, .split-wide, .split-2, .about-head, .contact .container { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .hero { padding-top: 3rem; }
    .profile-photo-about { order: -1; justify-self: start; width: 6rem; margin: 0.5rem 0 0 0.5rem; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat, .stat:first-child, .stat:last-child { padding: 1.25rem 1rem 1.25rem 0; border-right: 0; border-bottom: var(--rule-light); }
    .row-track, .row-nav { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
    .row-skill { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .row-award { grid-template-columns: 4rem minmax(0, 1fr); gap: 0.25rem 1rem; }
    .row-award > :last-child { grid-column: 2; }
    .col, .col:first-child, .col:last-child { padding: 1.5rem 0; border-right: 0; border-bottom: var(--rule-light); }
    .product-body:has(> .app-video) { display: block; }
    .feature-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-hero-split { display: block; }
    .app-hero-split .app-head { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); }
    .app-hero-split .app-video { margin-top: 2rem; }
    .product-body:has(> .app-video) > .app-video { margin-top: 1.5rem; }
}

@media (max-width: 36rem) {
    :root { --gutter: 1rem; }
    .profile-photo-hero { width: 4.5rem; }
    .stats { grid-template-columns: minmax(0, 1fr); }
    .row-year { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
    .app-hero-split .app-head { grid-template-columns: minmax(0, 1fr); }
    .app-title .app-icon { width: 3.5rem; height: 3.5rem; }
    .feature-tiles { grid-template-columns: minmax(0, 1fr); }
    .feature-tile {
        display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.875rem; row-gap: var(--space-1);
        align-items: start; padding: 1.125rem;
    }
    .feature-icon { grid-row: 1 / span 2; width: 2.5rem; height: 2.5rem; }
    .feature-icon .icon { width: 1.25rem; height: 1.25rem; }
    .feature-tile h3, .feature-tile p { grid-column: 2; }
    .app-stats { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
    .app-stat {
        display: grid; grid-template-columns: minmax(4.5rem, max-content) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--space-4); row-gap: 0.125rem;
        align-items: baseline; padding: var(--space-4) 0; border-left: 0; border-bottom: var(--rule-light);
    }
    .app-stat-value { grid-row: 1 / span 2; font-size: 2.5rem; align-self: center; }
    .app-stat-label, .app-stat-text { grid-column: 2; }
}
