/* ==========================================================================
   Hasifofficial: brand black + yellow, system font (SF on Apple devices)
   ========================================================================== */

/* ---------- Color tokens ----------
   Every color on the site comes from these variables: change the brand here. */
:root {
    --bg: #ffffff;            /* page background */
    --surface: #ffffff;       /* cards */
    --tint: #f7f5ef;          /* alternate section background, chips */
    --line: #e7e5df;
    --text: #0d0d0d;
    --text-2: #3b3b3b;
    --muted: #6b6b6b;
    --header-bg: rgba(255, 255, 255, .85);

    --accent: #ffd21f;        /* decorative accent: bars, dots, backdrops */
    --accent-strong: #ffd21f; /* accent used behind text (buttons, CTA band) */
    --accent-hover: #f2bf00;
    --on-accent: #0d0d0d;     /* text on --accent-strong */
    --accent-soft: #fff6cc;   /* light wash behind screenshots */
    --accent-2: #ffd21f;      /* secondary decorative accent */

    --dark: #0d0d0d;          /* dark sections and footer */
    --dark-text: #eaeaea;
    --dark-muted: #bdbdbd;
    --dark-line: #262626;
    --accent-on-dark: #ffd21f;

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .14);
    --container: 1160px;
    --gutter: clamp(16px, 4vw, 32px);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 100;
    background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons & small bits ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    font: 600 15px/1 var(--font);
    padding: 12px 20px; border-radius: 999px;
    text-decoration: none; border: 1.5px solid transparent;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--primary { background: var(--accent-strong); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--ghost { border-color: var(--text); color: var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--bg); }

.eyebrow {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-2); margin-bottom: 14px;
}
.eyebrow::before {
    content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px;
    background: var(--accent); vertical-align: middle; margin-right: 10px; transform: translateY(-2px);
}
.eyebrow--plain { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.eyebrow--on-dark { color: var(--dark-muted); }
.eyebrow--on-dark::before { background: var(--accent-on-dark); }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--text); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
    background: var(--tint); border: 1px solid var(--line); color: var(--text-2);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 25px; width: auto; }
@media (max-width: 380px) { .brand img { height: 21px; } }


.recognition { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.recognition li { display: flex; gap: 12px; align-items: flex-start; color: var(--dark-text); }
.recognition li::before {
    content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--accent-on-dark);
}
.recognition a { color: var(--accent-on-dark); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav ul a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
        display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); box-shadow: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 72px); overflow: hidden; position: relative; isolation: isolate; }
/* Background texture: faint dot grid that fades out, plus a soft yellow glow behind the photo */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 24%, transparent) 1.3px, transparent 1.8px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 60% 35%, #000 25%, transparent 75%);
            mask-image: radial-gradient(ellipse 85% 70% at 60% 35%, #000 25%, transparent 75%);
}
.hero::after {
    content: ""; position: absolute; z-index: -2; pointer-events: none;
    width: min(900px, 90vw); aspect-ratio: 1; right: -12%; top: -18%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 62%);
    filter: blur(10px);
    /* Drifts toward the cursor; values set by app.js */
    transform: translate(var(--glow-x, 0px), var(--glow-y, 0px));
}
/* Interactive dot field (app.js). The CSS dot grid above stays as the no-JS fallback. */
.hero__field {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at 55% 40%, #000 35%, transparent 85%);
            mask-image: radial-gradient(ellipse 95% 85% at 55% 40%, #000 35%, transparent 85%);
}
.hero.has-field::before { display: none; }
@media (max-width: 860px) {
    .hero::after { right: -40%; top: 30%; }
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero__lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__actions--center { justify-content: center; margin-top: 24px; }

.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero__photo { margin: 0; position: relative; }
.hero__photo::before {
    content: ""; position: absolute; inset: 8% -8% -6% 10%;
    background: var(--accent-2); border-radius: 32px; z-index: -1; transform: rotate(3deg);
}
/* Hero slider: slides are stacked and crossfade */
.slider__track {
    position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
    box-shadow: var(--shadow); background: var(--tint); touch-action: pan-y;
}
.slider__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.slider__slide.is-active { opacity: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__slide figcaption {
    position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
    background: rgba(13, 13, 13, .78); color: #fff; font-size: 13px; font-weight: 500;
    padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
@media (max-width: 420px) {
    .slider__slide figcaption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 12px; padding: 5px 10px; }
}
.slider__dots {
    position: absolute; right: 16px; top: 16px; display: flex; gap: 6px;
    padding: 6px 8px; border-radius: 999px; background: rgba(13, 13, 13, .55); backdrop-filter: blur(6px);
}
.slider__dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .55); transition: width .3s ease, background-color .3s ease;
}
.slider__dot[aria-current="true"] { width: 22px; background: var(--accent); }
/* Bigger touch target without changing the look */
.slider__dot { position: relative; }
.slider__dot::after { content: ""; position: absolute; inset: -10px -4px; }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    margin: clamp(48px, 6vw, 80px) 0 0; border-top: 1px solid var(--line);
}
.stats > div { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.stats dd { order: -1; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__photo { max-width: 440px; margin-right: 8%; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Press strip */
.press {
    display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.press__label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.press__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.press__list li {
    font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 19px); font-weight: 800;
    letter-spacing: -0.01em; color: var(--text-2); opacity: .8;
}
.press__list a { text-decoration: none; }
.press__list a:hover { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); }
.press__list li.press__more { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); }
@media (max-width: 600px) {
    .press { flex-direction: column; align-items: flex-start; }
    .press__list { gap: 8px 20px; }
}

/* ---------- Social ---------- */

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); color: var(--text); transition: background-color .15s ease, color .15s ease;
}
.social a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.social--light a { border-color: var(--dark-line); color: #fff; }
.social--light a:hover { background: var(--accent-on-dark); color: var(--dark); border-color: var(--accent-on-dark); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark .section__title { color: #fff; }
.section__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-bottom: 24px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head .section__title { margin-bottom: 0; }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__media { position: sticky; top: 104px; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 4; object-fit: cover; object-position: 51% center; width: 100%; }
.about__copy > p { color: var(--text-2); }
.skills { display: grid; gap: 20px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.skills h3 { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-bottom: 10px; }

@media (max-width: 860px) {
    .about { grid-template-columns: 1fr; }
    .about__media { position: static; max-width: 420px; }
}

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card__media {
    height: 300px; overflow: hidden; display: flex; justify-content: center; padding-top: 32px;
    background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft) 0%, var(--tint) 60%);
}
.project-card__media img { width: 62%; height: auto; align-self: flex-start; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .18)); transition: transform .3s ease; }
.project-card:hover .project-card__media img { transform: translateY(-8px); }
.project-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card__meta { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.project-card__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.project-card__summary { color: var(--text-2); font-size: 15px; flex: 1; }
.project-card__more { font-size: 14px; font-weight: 600; }

@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

/* Experience timeline */
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 28px 28px; }
.timeline__item::before {
    content: ""; position: absolute; left: -7px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text);
}
.timeline__item:first-child::before { background: var(--accent); border-color: var(--accent); }
.timeline__period { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.timeline__title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.timeline__org { color: var(--text-2); font-size: 15px; margin: 0; }
.timeline__notes { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.timeline__roles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.timeline__roles li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.timeline__roles li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.timeline__role-period { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }

@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Community */
.community__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.community__copy p { color: var(--dark-muted); font-size: 18px; }
.community__copy a:not(.btn) { color: var(--accent-on-dark); }
.community__copy .btn { margin-top: 8px; }
.community__photo { position: relative; }
.slider--landscape .slider__track { aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: none; background: var(--dark-line); }
@media (max-width: 860px) { .community__inner { grid-template-columns: 1fr; } }

/* WWDC26 gallery */
.wwdc { margin-top: clamp(56px, 8vw, 96px); }
.wwdc__head { max-width: 40em; margin-bottom: 28px; }
.wwdc__title { color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; }
.wwdc__grid {
    display: grid; gap: 16px;
    grid-template-columns: .75fr 1.25fr;
    grid-template-areas: "feature feature" "portrait top" "portrait bottom";
}
.wwdc__item--feature { grid-area: feature; aspect-ratio: 2 / 1; }
.wwdc__item--feature img { object-position: center 75%; }
.wwdc__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2, #1a1a1a); }
.wwdc__item img { width: 100%; height: 100%; object-fit: cover; }
.wwdc__item--portrait { grid-area: portrait; }
.wwdc__item--top { grid-area: top; aspect-ratio: 16 / 9; }
.wwdc__item--bottom { grid-area: bottom; aspect-ratio: 16 / 9; }
.wwdc__item--bottom img { object-position: center 72%; }
.wwdc__item figcaption {
    position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content;
    background: rgba(13, 13, 13, .78); color: #fff; font-size: 13px; font-weight: 500;
    padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}
@media (max-width: 760px) {
    .wwdc__grid { grid-template-columns: 1fr; grid-template-areas: "feature" "portrait" "top" "bottom"; }
    .wwdc__item--feature { aspect-ratio: auto; }
    .wwdc__item--feature img { aspect-ratio: 3 / 2; }
    .wwdc__item { overflow: visible; background: none; border-radius: 0; }
    .wwdc__item img { border-radius: var(--radius); height: auto; }
    .wwdc__item--portrait img { aspect-ratio: 4 / 5; }
    .wwdc__item--top, .wwdc__item--bottom { aspect-ratio: auto; }
    .wwdc__item--top img, .wwdc__item--bottom img { aspect-ratio: 16 / 9; }
    .wwdc__item figcaption {
        position: static; width: auto; background: none; backdrop-filter: none;
        color: var(--dark-muted); padding: 10px 2px 0; border-radius: 0;
    }
}

/* Page heads (inner pages) */
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(16px, 3vw, 32px); }
.page-head--center { text-align: center; padding-bottom: clamp(64px, 9vw, 120px); }
.page-head__title { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 16px; }
.page-head__lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 36em; }
.page-head--center .page-head__lead { margin-left: auto; margin-right: auto; }
.back-link { display: block; width: fit-content; margin-bottom: 24px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--text); }

/* Project detail */
.project-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.project-detail__copy { position: sticky; top: 104px; }
.project-detail__copy > p { color: var(--text-2); font-size: 18px; }
.project-detail__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 12px; }
.project-detail__links { display: flex; flex-wrap: wrap; gap: 8px; }
.screens {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px);
    background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft) 0%, var(--tint) 65%);
    padding: clamp(24px, 4vw, 48px); border-radius: var(--radius);
}
.screens img { filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .16)); }
.screens img:nth-child(2) { transform: translateY(24px); }

@media (max-width: 860px) {
    .project-detail { grid-template-columns: 1fr; }
    .project-detail__copy { position: static; }
}
@media (max-width: 520px) {
    .screens { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 40px; }
    .screens img { scroll-snap-align: center; }
}

.pager { display: flex; justify-content: space-between; gap: 16px; padding-bottom: clamp(48px, 7vw, 96px); }
.pager__link {
    display: flex; flex-direction: column; gap: 2px; text-decoration: none;
    font-weight: 700; font-size: 19px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    min-width: 0; flex: 0 1 320px;
}
.pager__link span { font-size: 13px; font-weight: 600; color: var(--muted); }
.pager__link--next { text-align: right; margin-left: auto; }
.pager__link:hover { border-color: var(--text); }

/* Mini cards (web & video) */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mini-card h3 { font-size: 20px; margin-bottom: 8px; }
.mini-card p { color: var(--text-2); font-size: 15px; }
.mini-card__type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 8px; }
.mini-card__stack { font-size: 13px !important; color: var(--muted) !important; }
/* A card with screenshots takes 2 columns x 2 rows; the other cards stack beside it */
.mini-grid { grid-auto-flow: dense; }
.mini-card--shots { grid-column: span 2; grid-row: span 2; order: -1; }

/* Browser-style frame around project screenshots */
.browser { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; background: var(--tint); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar span:nth-child(1) { background: #ff5f57; }
.browser__bar span:nth-child(2) { background: #febc2e; }
.browser__bar span:nth-child(3) { background: #28c840; }
.slider--browser { position: relative; }
.slider--browser .slider__track { aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; }
.slider--browser .slider__dots { top: auto; bottom: 12px; right: 50%; transform: translateX(50%); }

@media (max-width: 860px) {
    .mini-grid { grid-template-columns: 1fr; }
    .mini-card--shots { grid-column: auto; grid-row: auto; }
}

/* ---------- CTA & footer ---------- */

.cta { background: var(--accent-strong); color: var(--on-accent); position: relative; overflow: hidden; isolation: isolate; }
.cta__inner { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); text-align: center; position: relative; }

/* Blurred photo slideshow under a yellow tint. Each photo shows for 6s and crossfades (CSS only).
   The cta-fade percentages are tuned for 4 photos (25% each); adjust them if the count in config changes. */
.cta__backdrop { position: absolute; inset: 0; z-index: -1; }
.cta__backdrop img {
    position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
    object-fit: cover; filter: blur(3px) grayscale(.35); opacity: 0;
    animation: cta-fade calc(var(--cta-slides) * 6s) linear infinite;
    animation-delay: calc(var(--i) * 6s);
}
.cta__backdrop img:first-child { opacity: 1; }
.cta__backdrop::after {
    content: ""; position: absolute; inset: 0;
    background: var(--accent-strong); opacity: .78;
}
@keyframes cta-fade {
    0%   { opacity: 0; transform: scale(1); }
    5%   { opacity: 1; }
    25%  { opacity: 1; }
    30%  { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cta__backdrop img { animation: none !important; opacity: 0; }
    .cta__backdrop img:first-child { opacity: 1; }
}
.cta .eyebrow { color: var(--on-accent); }
.cta .eyebrow::before { background: var(--on-accent); }
.cta__title { font-size: clamp(36px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 16px; }
.cta__text { font-size: 19px; margin-bottom: 32px; }
.cta .btn--primary { background: var(--on-accent); color: var(--accent-strong); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cta .btn--primary:hover { background: var(--on-accent); opacity: .9; }

.site-footer { background: var(--dark); color: var(--dark-muted); padding: 48px 0 32px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--dark-line); }
.site-footer__logo { height: 25px; width: auto; margin-bottom: 14px; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 18px; margin: 0; }
.site-footer__meta { margin: 0; font-size: 15px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 14px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--accent-on-dark); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
