/* ============================================================
   Arvin Mana-ay — Portfolio
   Dark, modern, geometric (Montserrat / Gotham-style)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --bg:        #0b0c0f;
    --bg-2:      #101216;
    --panel:     #14171d;
    --panel-2:   #191d24;
    --line:      rgba(255,255,255,0.08);
    --line-2:    rgba(255,255,255,0.14);

    --text:      #f2f3f5;
    --muted:     #9aa0aa;
    --faint:     #6a707a;

    --accent:    #e8c15a;   /* warm gold */
    --accent-2:  #f4d67e;
    --accent-ink:#0b0c0f;

    --nav-bg:    rgba(11,12,15,0.72);
    --vignette:  rgba(0,0,0,0.20);

    --radius:    2px;
    --radius-sm: 2px;
    --maxw:      1180px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);

    --font:      'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono:      'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
}

/* ---------- Light theme ---------- */
[data-theme="light"] {
    --bg:        #f5f5f2;
    --bg-2:      #ffffff;
    --panel:     #ffffff;
    --panel-2:   #f0f0ec;
    --line:      rgba(20,22,26,0.10);
    --line-2:    rgba(20,22,26,0.18);

    --text:      #16181d;
    --muted:     #55606e;
    --faint:     #8b93a0;

    --accent:    #a97b16;
    --accent-2:  #c08f24;
    --accent-ink:#ffffff;

    --nav-bg:    rgba(255,255,255,0.82);
    --vignette:  rgba(0,0,0,0.06);
}

html { transition: background 0.4s ease; }
body { transition: background 0.4s ease, color 0.4s ease; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Headings use Work Sans; body stays Montserrat */
.hero__title, .section__title, .card__title, .service__title,
.xp__company, .edu__school, .pstep__title, .footer__mail,
.stat__num, .nav__name {
    font-family: var(--font-head);
}

/* All headings in caps */
.section__title, .card__title, .service__title, .xp__company,
.edu__school, .pstep__title, .subsection__title, .skillset__title,
.modal__title {
    text-transform: uppercase;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: clamp(72px, 12vw, 150px); position: relative; }

.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

.section__tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.section__title {
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

/* ---------- Atmospheric overlays ---------- */
.grain {
    position: fixed; top: -25%; left: -25%; width: 150%; height: 150%;
    z-index: 3; pointer-events: none; opacity: 0.16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: grainShift 0.6s steps(4) infinite;
    transform: translateZ(0);
}
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-7%, 5%); }
    40%  { transform: translate(6%, -8%); }
    60%  { transform: translate(-5%, 7%); }
    80%  { transform: translate(8%, 3%); }
    100% { transform: translate(0, 0); }
}
.vignette {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(135% 100% at 50% 0%, transparent 80%, var(--vignette) 100%);
}
[data-theme="light"] .grain { opacity: 0.12; }
[data-theme="light"] .hero__glow { background: radial-gradient(circle, rgba(169,123,22,0.12), transparent 60%); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 60; transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 17px 32px; border-radius: 0;
    transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
    will-change: transform;
}
.btn--sm { padding: 11px 20px; font-size: 0.7rem; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-3px); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding-block: 18px;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    padding-block: 12px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.nav__logo {
    flex: none; display: inline-block; width: 34px; height: 20px;
    background-color: var(--accent);
    -webkit-mask: url(../img/logo.svg) center / contain no-repeat;
    mask: url(../img/logo.svg) center / contain no-repeat;
    transition: transform 0.35s var(--ease);
}
.nav__brand:hover .nav__logo { transform: translateY(-2px); }
.nav__name {
    font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em;
    text-transform: uppercase; transition: color 0.25s;
}
.nav__brand:hover .nav__name { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__link {
    font-size: 0.92rem; font-weight: 500; color: var(--muted);
    position: relative; transition: color 0.25s;
}
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--accent); transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 18px; }

/* Theme toggle */
.theme-toggle {
    width: 40px; height: 40px; border-radius: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line-2); color: var(--text);
    transition: color 0.25s, border-color 0.25s, transform 0.25s, background 0.25s;
    flex: none;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.theme-toggle .ic { display: none; }
.theme-toggle .ic--sun { display: block; }                       /* dark theme → offer sun */
[data-theme="light"] .theme-toggle .ic--sun { display: none; }
[data-theme="light"] .theme-toggle .ic--moon { display: block; } /* light theme → offer moon */

.nav__toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav__toggle span {
    position: absolute; left: 0; height: 2px; width: 100%; background: var(--text);
    transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav__toggle span:nth-child(1) { top: 0; }
.nav__toggle span:nth-child(2) { top: 10px; }
.nav__toggle span:nth-child(3) { top: 20px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: stretch;
    padding-top: 70px; padding-bottom: 72px; overflow: hidden;
}
.hero__glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 900px; max-width: 120vw; z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(232,193,90,0.16), transparent 60%);
    filter: blur(20px); transition: transform 0.6s var(--ease);
}
.hero__logomark {
    display: none;
    position: absolute; z-index: 0; top: 26%; left: 64%;
    width: min(82vw, 1040px); height: auto; margin-left: calc(min(82vw, 1040px) / -2);
    pointer-events: none;
    animation: logoGlow 5.5s ease-in-out infinite;
}
.hero__logomark polygon {
    fill: none; stroke: var(--accent); stroke-width: 1;
    vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: logoTrace 7s ease-in-out infinite;
}
.hero__logomark polygon:nth-child(2) { animation-delay: 0.55s; }
.hero__logomark polygon:nth-child(3) { animation-delay: 1.1s; }
@keyframes logoGlow {
    0%, 100% { opacity: 0.16; filter: drop-shadow(0 0 8px rgba(232, 193, 90, 0.35)); }
    50%      { opacity: 0.30; filter: drop-shadow(0 0 22px rgba(232, 193, 90, 0.65)); }
}
@keyframes logoTrace {
    0%   { stroke-dashoffset: 1; }
    40%  { stroke-dashoffset: 0; }
    70%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1; }
}
.hero__inner {
    position: relative; z-index: 1; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 5vw, 56px); align-items: stretch;
}
.hero__content { position: relative; z-index: 2; align-self: center; }

/* Portrait */
.hero__portrait {
    position: relative; height: 100%; min-height: 360px; justify-self: stretch;
}
.hero__portrait-ring {
    position: absolute; z-index: 0; top: 20px; bottom: auto; left: 50%; transform: translateX(-50%);
    width: min(120%, 540px); aspect-ratio: 1 / 1; border-radius: 50%;
    background: radial-gradient(circle at 50% 45%,
        rgba(232,193,90,0.24), rgba(232,193,90,0.06) 52%, transparent 70%);
    filter: blur(4px);
}
.hero__photo {
    position: absolute; z-index: 1; top: 0; bottom: auto; left: 50%; transform: translateX(-50%);
    width: clamp(320px, 46vw, 820px); height: auto; max-width: none; max-height: calc(100vh - 90px);
    object-fit: contain; object-position: top center;
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--line); padding: 8px 15px; border-radius: 0;
    margin-bottom: 30px;
}
.hero__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 0 rgba(232,193,90,0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(232,193,90,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(232,193,90,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,193,90,0); }
}

.hero__title {
    font-size: clamp(1.9rem, 3.9vw, 4.8rem);
    font-weight: 800; line-height: 1.03; letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero__title { position: relative; }
.hero__title-ghost { visibility: hidden; }
.hero__type-layer { position: absolute; top: 0; left: 0; right: 0; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__caret {
    display: inline-block; width: 0.06em; height: 0.9em; margin-left: 0.05em;
    background: var(--accent); vertical-align: -0.06em;
    animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero__lead {
    max-width: 40vw; min-width: 280px; font-size: clamp(0.85rem, 1.05vw, 1.15rem);
    color: var(--muted); margin-bottom: 38px;
}
.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats {
    display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 64px);
    padding-top: 34px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat__num {
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
    line-height: 1;
}
.stat__plus { color: var(--accent); }
.stat__label { font-size: 0.82rem; color: var(--faint); margin-top: 8px; letter-spacing: 0.02em; }

.hero__scroll {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--faint); z-index: 1;
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--faint), transparent); }

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding-block: 26px; overflow: hidden; background: var(--bg-2);
}
.marquee__track {
    display: inline-flex; align-items: center; gap: 30px; white-space: nowrap;
    animation: marquee 26s linear infinite;
}
.marquee__track span {
    font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em;
    text-transform: uppercase; color: var(--faint);
}
.marquee__star { color: var(--accent) !important; font-size: 1rem !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid {
    display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

/* About media (photo + socials) */
.about__media { display: flex; flex-direction: column; gap: 14px; }
.about__photo {
    position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.about__photo img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
    display: block; transition: transform 0.6s var(--ease);
}
.about__photo:hover img { transform: scale(1.04); }
.about__photo::before {
    content: ''; position: absolute; left: 0; top: 0; width: 40px; height: 40px; z-index: 1;
    border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.about__socials { display: flex; flex-direction: column; gap: 10px; }
.about__social {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border: 1px solid var(--line); padding: 13px 16px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text); background: var(--panel);
    transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}
.about__social:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.about__social-in { display: flex; align-items: center; gap: 11px; }
.about__social .ico { width: 18px; height: 18px; flex: none; }
.about__social-arrow { font-size: 1rem; }

.about__body { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.about__text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--text); font-weight: 600; }

.about__services { display: flex; flex-direction: column; gap: 4px; }
.service {
    display: flex; gap: 22px; padding: 22px; border-radius: var(--radius-sm);
    border: 1px solid transparent; transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.service:hover { background: var(--panel); border-color: var(--line); transform: translateX(6px); }
.service__no { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 4px; }
.service__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.service__desc { color: var(--muted); font-size: 0.95rem; }

/* ---------- Work ---------- */
/* Projects carousel (full-bleed, edge to edge) */
.carousel {
    position: relative; left: 50%; right: 50%; width: 100vw;
    margin-left: -50vw; margin-right: -50vw;
}
.work__grid {
    display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: none;
    padding: 4px 0 22px; scrollbar-width: none;
}
.work__grid::-webkit-scrollbar { height: 0; display: none; }
.work__grid > .card { flex: 0 0 clamp(290px, 44vw, 470px); scroll-snap-align: start; }
.carousel__btn {
    position: absolute; top: 34%; transform: translateY(-50%); z-index: 6;
    width: 46px; height: 46px; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font-size: 1.15rem; font-weight: 700;
    border: none; cursor: pointer; box-shadow: 0 12px 26px rgba(0,0,0,0.4);
    transition: background 0.3s, transform 0.35s var(--ease), opacity 0.3s;
}
.carousel__btn:hover { background: var(--accent-2); transform: translateY(-50%) scale(1.07); }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__btn:disabled { opacity: 0.28; cursor: default; transform: translateY(-50%); }
.card {
    position: relative; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px;
    display: flex; flex-direction: column; min-height: 260px;
    transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
    overflow: hidden;
}
.card::before {
    content: ''; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(120% 120% at 0% 0%, rgba(232,193,90,0.08), transparent 55%);
    transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card__link { position: absolute; inset: 0; z-index: 2; }

.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.card__type { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.card__year { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }

.card__title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.card__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; flex: 1; }

.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags li {
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--line); padding: 5px 10px; border-radius: 0;
}
.card__arrow {
    position: absolute; right: 28px; bottom: 28px; font-size: 1.3rem; color: var(--accent);
    opacity: 0; transform: translate(-8px, 8px); transition: all 0.4s var(--ease);
}
.card:hover .card__arrow { opacity: 1; transform: translate(0,0); }
.card--nolink .card__arrow { display: none; }
.card--nolink .card__link { cursor: default; }

/* Project device showcase (browser + phone) */
.showcase { position: relative; margin-bottom: 34px; }
.browser {
    position: relative; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
    background: var(--panel-2); box-shadow: 0 20px 42px rgba(0,0,0,0.4);
    transition: transform 0.45s var(--ease);
}
.browser__bar {
    display: flex; align-items: center; gap: 11px; height: 30px; padding: 0 12px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.browser__dots { display: inline-flex; gap: 6px; flex: none; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.browser__dots i:first-child { background: rgba(232,193,90,0.6); }
.browser__url {
    flex: 1; height: 17px; display: flex; align-items: center; padding: 0 10px;
    background: var(--bg); border-radius: 4px; font-family: var(--mono);
    font-size: 0.62rem; color: var(--faint); letter-spacing: 0.02em;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser__shot {
    display: block; width: 100%; aspect-ratio: 16 / 10;
    object-fit: cover; object-position: top center;
}
.phone {
    position: absolute; right: 16px; bottom: -28px; width: 23%; max-width: 92px;
    border: 3px solid var(--panel-2); border-radius: 15px; overflow: hidden;
    background: var(--bg-2); box-shadow: 0 16px 32px rgba(0,0,0,0.5);
    transition: transform 0.45s var(--ease);
}
.phone::before {
    content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 34%; height: 4px; border-radius: 3px; background: var(--line-2); z-index: 2;
}
.phone__shot {
    display: block; width: 100%; aspect-ratio: 9 / 19;
    object-fit: cover; object-position: top center;
}
.card:hover .browser { transform: translateY(-3px); }
.card:hover .phone { transform: translateY(-6px); }

/* ---------- Skills ---------- */
.skills__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.skillset {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; transition: border-color 0.35s, transform 0.35s;
}
.skillset:hover { border-color: var(--line-2); transform: translateY(-4px); }
.skillset__title {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); font-family: var(--mono); margin-bottom: 18px;
    padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.skillset__list { display: flex; flex-wrap: wrap; gap: 9px; }
.skillset__list li {
    font-size: 0.86rem; font-weight: 500; color: var(--text);
    background: var(--bg-2); border: 1px solid var(--line);
    padding: 8px 14px; border-radius: 0; transition: all 0.25s;
}
.skillset__list li:hover { color: var(--accent); border-color: var(--accent); }

/* Full-bleed scrolling logo carousel */
.logostrip { overflow: hidden; padding-block: clamp(26px, 4vw, 46px); }
.logostrip__track {
    display: inline-flex; align-items: center; gap: clamp(46px, 5vw, 74px);
    white-space: nowrap; animation: logoscroll 40s linear infinite; will-change: transform;
}
.logostrip:hover .logostrip__track { animation-play-state: paused; }
.logostrip__item {
    flex: none; width: 54px; height: 46px; display: inline-block; opacity: 0.75; cursor: default;
    background-color: var(--text);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
@keyframes logoscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sub-sections (inside About) ---------- */
.subsection { margin-top: clamp(56px, 8vw, 96px); }
.subsection--first { margin-top: 0; }
.subsection__title {
    display: flex; align-items: center; gap: 22px;
    font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: clamp(28px, 4vw, 44px);
}
.subsection__title span { flex: none; }
.subsection__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Process ---------- */
.process__flow {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px;
    margin-bottom: clamp(38px, 5vw, 58px);
}
.pstep {
    position: relative; padding: 26px 22px; background: var(--panel); border: 1px solid var(--line);
    transition: border-color 0.35s, transform 0.35s, background 0.35s;
}
.pstep:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--panel-2); }
.pstep__no {
    display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 500;
    color: var(--accent); line-height: 1; margin-bottom: 16px;
}
.pstep__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pstep__desc { color: var(--muted); font-size: 0.9rem; }

.ploop {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line);
    border-left: 3px solid var(--accent); background: var(--panel);
}
.ploop__icon {
    flex: none; width: 52px; height: 52px; display: grid; place-items: center;
    color: var(--accent); border: 1px solid var(--line); border-radius: 50%;
}
.ploop__icon svg { transition: transform 0.6s var(--ease); }
.ploop:hover .ploop__icon svg { transform: rotate(-270deg); }
.ploop__text { flex: 1; min-width: 240px; color: var(--muted); font-size: 0.98rem; max-width: 72ch; }
.ploop__text strong { color: var(--text); font-weight: 700; }

/* ---------- Experience (timeline) ---------- */
.xp { position: relative; }
.xp::before {
    content: ''; position: absolute; left: 2px; top: 3px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--accent), var(--line) 85%);
}
.xp__item {
    position: relative; padding: 0 0 clamp(30px, 4vw, 54px) 30px;
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(16px, 3vw, 52px);
}
.xp__item:last-child { padding-bottom: 0; }
.xp__item::before {
    content: ''; position: absolute; left: -4px; top: 0; width: 13px; height: 13px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); z-index: 2;
    transition: background 0.3s, box-shadow 0.3s;
}
.xp__item:hover::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(232,193,90,0.15); }
.xp__period {
    font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent);
}
.xp__company { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 12px 0 5px; }
.xp__role { color: var(--muted); font-size: 0.95rem; }
.xp__points { display: flex; flex-direction: column; gap: 13px; }
.xp__points li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.98rem; }
.xp__points li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- Education ---------- */
.edu { display: flex; flex-direction: column; gap: 18px; }
.edu__item {
    display: grid; grid-template-columns: 120px 1fr; gap: 30px; align-items: start;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 34px; transition: border-color 0.35s, transform 0.35s, background 0.35s;
}
.edu__item:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--panel-2); }
.edu__year {
    font-family: var(--mono); font-size: 1.05rem; font-weight: 500; color: var(--accent);
    padding-top: 4px;
}
.edu__school { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.edu__degree { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.edu__honors { display: flex; flex-direction: column; gap: 8px; }
.edu__honors li {
    position: relative; padding-left: 20px; color: var(--text); font-size: 0.92rem;
}
.edu__honors li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- Resume + Modal ---------- */
.resume__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }

.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.62);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.modal__box {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(92vw, 440px); max-height: 92vh; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--line-2);
    padding: clamp(28px, 5vw, 42px); box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: modalIn 0.35s var(--ease);
}
.modal__box--wide { width: min(95vw, 860px); }
.modal__box .form { margin-top: 22px; }
@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}
.modal__close {
    position: absolute; top: 8px; right: 14px; font-size: 1.8rem; line-height: 1;
    color: var(--muted); transition: color 0.25s;
}
.modal__close:hover { color: var(--accent); }
.modal__title {
    font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.7rem);
    font-weight: 800; margin: 12px 0 10px;
}
.modal__text { color: var(--muted); font-size: 0.98rem; margin-bottom: 26px; }

/* ---------- Theme picker (first visit) ---------- */
.theme-modal { z-index: 240; }
.theme-modal__box { width: min(94vw, 540px); text-align: center; }
.theme-modal__box .section__tag,
.theme-modal__box .modal__title,
.theme-modal__box .modal__text { text-align: center; }
.theme-modal__box .modal__text { margin-bottom: 6px; }
.theme-picker { display: flex; gap: 18px; margin-top: 0; }
.theme-opt {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
    padding: 46px 18px; cursor: pointer;
    border: 1px solid var(--line-2);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.theme-opt__ic { width: 60px; height: 60px; display: grid; place-items: center; }
.theme-opt__ic svg { width: 52px; height: 52px; }
.theme-opt__label {
    font-family: var(--mono); text-transform: uppercase;
    letter-spacing: 0.14em; font-size: 0.82rem;
}
.theme-opt--dark { background: #14171D; color: #f4f4f5; }
.theme-opt--light { background: #f2efe8; color: #14171D; }
.theme-opt:hover {
    border-color: var(--accent); transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.4);
}
.theme-opt:hover .theme-opt__ic { color: var(--accent); }
@media (max-width: 460px) {
    .theme-picker { flex-direction: column; }
    .theme-opt { padding: 34px 18px; flex-direction: row; gap: 14px; }
    .theme-opt__ic { width: 40px; height: 40px; } .theme-opt__ic svg { width: 34px; height: 34px; }
}

/* ---------- Closing CTA band ---------- */
/* Zero the last section's bottom padding and match the CTA's top gap to the
   footer's top padding so the band sits with equal space above and below. */
.about { padding-bottom: 0; }
.cta-band { padding-top: clamp(56px, 8vw, 90px); padding-bottom: clamp(56px, 8vw, 90px); }
.cta-band__inner {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 18px; text-align: center;
    padding-top: 0;
}
.cta-band__title {
    font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
    letter-spacing: -0.01em; font-size: clamp(1.25rem, 2.6vw, 1.9rem);
}
.cta-band__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 560px) {
    .cta-band__actions { width: 100%; }
    .cta-band__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact .section__head { margin-bottom: 0; }
.contact__sub { color: var(--muted); font-size: 1.02rem; margin-top: 18px; max-width: 340px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-family: var(--mono); }
.field input, .field textarea {
    font-family: inherit; font-size: 0.98rem; color: var(--text);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 15px 16px; transition: border-color 0.3s, background 0.3s;
    resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { font-size: 0.9rem; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #ff6b6b; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 90px) 0 clamp(130px, 18vw, 220px); background: var(--bg-2); }
.footer__inner { display: flex; flex-direction: column; gap: clamp(32px, 5vw, 48px); }
.footer__logo {
    display: block; width: 50px; height: 29px; margin-bottom: 24px;
    background-color: var(--accent);
    -webkit-mask: url(../img/logo.svg) center / contain no-repeat;
    mask: url(../img/logo.svg) center / contain no-repeat;
}
.footer__eyebrow { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.footer__mail {
    display: inline-block; font-size: clamp(1.35rem, 4.5vw, 2.4rem); font-weight: 800;
    letter-spacing: -0.02em; color: var(--text); transition: color 0.3s; overflow-wrap: anywhere;
}
.footer__mail:hover { color: var(--accent); }
.footer__meta {
    display: flex; justify-content: space-between; align-items: center; gap: 18px 32px;
    flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line);
}
.footer__social { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__social-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); transition: color 0.25s; }
.footer__social-link:hover { color: var(--accent); }
.footer__social-link .ico { width: 16px; height: 16px; }
.footer__copy { font-size: 0.82rem; color: var(--faint); }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 40;
    width: 46px; height: 46px; border-radius: 0;
    display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; font-weight: 700;
    opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none;
    transition: all 0.4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--accent-2); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about__grid, .contact__inner { grid-template-columns: 1fr; }
    .about__media { max-width: 440px; }
    .about__socials { flex-direction: row; flex-wrap: wrap; }
    .about__social { flex: 1 1 auto; }
    .xp__item { grid-template-columns: 1fr; gap: 14px; }
    .work__grid, .skills__grid { grid-template-columns: 1fr 1fr; }
    .footer__inner, .footer__meta { text-align: left; }
    .footer__social { justify-content: flex-start; }

    /* Hero stacks: eyebrow, title, image, then paragraph / actions / stats */
    .hero { min-height: auto; padding-bottom: 40px; }
    .hero__inner { grid-template-columns: 1fr; display: flex; flex-direction: column; position: relative; z-index: 2; }
    .hero__content { display: contents; }
    .hero__eyebrow { order: 1; }
    .hero__title { order: 2; margin-bottom: 22px; }
    .hero__portrait { order: 3; height: auto; min-height: 0; display: flex; justify-content: center; margin-bottom: 26px; }
    .hero__lead { order: 4; max-width: 100%; min-width: 0; }
    .hero__actions { order: 5; }
    .hero__stats { order: 6; }
    .hero__photo { position: static; transform: none; height: auto; width: min(88%, 460px); max-height: none; }
    .hero__portrait-ring { width: min(86%, 340px); top: 8%; bottom: auto; }
    .hero__scroll { display: none; }
    .hero__showcase { order: 3; width: 100%; height: clamp(280px, 82vw, 420px); margin: 4px auto 30px; }
    .dv--imac { width: min(96%, 520px); }
    /* Devices are small when stacked — trim the oversized corner radii */
    .hero__showcase .dv-imac__screen { border-radius: 12px 12px 0 0; }
    .hero__showcase .dv-imac__chin   { border-radius: 0 0 11px 11px; }
    .hero__showcase .dv-mac__screen  { border-radius: 8px 8px 0 0; }
    .hero__showcase .dv-phone__screen { border-radius: 14px; border-width: 4px; }
    .hero__showcase .dv-phone__notch { height: 10px; }
}

@media (max-width: 720px) {
    .nav__toggle { display: block; }
    /* A filtered ancestor becomes the containing block for fixed children,
       which breaks the off-canvas menu on scroll — use a solid bar instead of blur. */
    .nav.is-scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav__links {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
        flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
        background: var(--bg-2); border-left: 1px solid var(--line);
        padding: 40px; transform: translateX(100%);
        transition: transform 0.45s var(--ease);
    }
    .nav__links.is-open { transform: translateX(0); }
    .nav__link { font-size: 1.2rem; }
    .nav__cta { margin-top: 10px; }

    .skills__grid, .form__row { grid-template-columns: 1fr; }
    .carousel__btn { display: none; }
    .edu__item { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
    .edu__year { padding-top: 0; }

    /* Hero: centered, tuned to sit in a single screen */
    .hero {
        min-height: 100svh; padding-top: 82px; padding-bottom: 22px;
        justify-content: center; text-align: center;
    }
    .hero__inner { align-items: center; }
    .hero__eyebrow { margin: 0 auto 12px; }
    .hero__title { margin-bottom: 12px; font-size: clamp(2.3rem, 9vw, 3.2rem); }
    .hero__portrait { margin-bottom: 14px; }
    .hero__photo { width: auto; height: auto; max-height: 33vh; margin: 0 auto; }
    .hero__portrait-ring { width: min(70%, 300px); top: 0; }
    .hero__lead { margin: 0 auto 18px; font-size: 0.84rem; }
    .hero__actions { justify-content: center; margin-bottom: 18px; flex-wrap: nowrap; }
    .hero__actions .btn { flex: 1; }
    .hero__stats { justify-content: center; gap: 40px; padding-top: 18px; }
    .hero__logomark {
        opacity: 0.06; width: 150vw; left: 50%; margin-left: -75vw;
        top: 40%; bottom: auto;
    }
}

@media (max-width: 380px) {
    .hero__photo { max-height: 29vh; }
    .hero__title { margin-bottom: 10px; }
    .hero__portrait { margin-bottom: 10px; }
}

/* ---------- Custom scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-2); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Loading screen ---------- */
.loader {
    position: fixed; inset: 0; z-index: 200; background: var(--bg);
    display: grid; place-items: center;
    transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: 50vw; height: auto; overflow: visible; }
.loader__logo polygon {
    fill: none;
    stroke: var(--accent); stroke-width: 0.18; stroke-linejoin: round;
    stroke-dasharray: 720; stroke-dashoffset: 720;
    animation: logoDraw 1.4s var(--ease) forwards;
}
.loader__logo polygon:nth-child(1) { animation-delay: 0s; }
.loader__logo polygon:nth-child(2) { animation-delay: 0.18s; }
.loader__logo polygon:nth-child(3) { animation-delay: 0.36s; }
@keyframes logoDraw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    /* keep the logo carousel looping */
    .logostrip__track { animation-duration: 40s !important; }
    .work__grid { animation: none !important; transform: none !important; }
    .hero__logomark { opacity: 0.16 !important; animation: none !important; }
    .hero__logomark polygon { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* =====================================================================
   FREELANCE PAGE
   ===================================================================== */

/* ---------- How fast ---------- */
.howfast__inner {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px);
    align-items: center; background: var(--panel); border: 1px solid var(--line);
    padding: clamp(30px, 5vw, 60px);
}
.howfast__big { display: flex; flex-direction: column; align-items: center; line-height: 0.85; }
.howfast__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(5rem, 13vw, 10rem); color: var(--accent); }
.howfast__unit { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.howfast__note { display: block; margin-top: 12px; max-width: 140px; color: var(--muted); font-size: 0.72rem; line-height: 1.4; text-align: center; }
.howfast__title { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.4rem); margin: 12px 0; }
.howfast__text p { color: var(--muted); max-width: 560px; margin-bottom: 24px; }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Launch-offer banner */
.pricing__promo {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 26px; padding: 13px 18px;
    background: rgba(232, 193, 90, 0.10); border: 1px solid var(--accent);
}
.pricing__promo-tag {
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem;
    font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 5px 10px;
}
.pricing__promo-text { color: var(--text); font-weight: 600; font-size: 0.95rem; }

/* Discounted price presentation */
.price-card__pricing { display: flex; flex-direction: column; margin-top: 16px; }
.price-card__was { color: var(--muted); text-decoration: line-through; text-decoration-color: #e5484d; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.price-card__pricing .price-card__price { margin-top: 2px; }
.price-card__save {
    align-self: flex-start; margin-top: 12px; padding: 4px 10px;
    background: rgba(229, 72, 77, 0.14); color: #e5484d;
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.74rem; font-weight: 700;
}
.price-card__size { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; letter-spacing: -0.01em; }
.price-card__pages { display: block; margin: 2px 0 10px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.price-quote__pages { display: block; margin: 2px 0; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }

/* 10+ pages "request a quote" bar */
.price-quote {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 22px; padding: clamp(22px, 3vw, 34px);
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.price-quote__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.price-quote__blurb { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.price-quote__action { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price-quote__label { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.1rem; }

/* Highlighted note + standalone add-ons */
.pricing__note--highlight {
    display: block; margin-top: 26px; padding: 16px 20px;
    background: rgba(232, 193, 90, 0.10); border: 1px solid var(--accent);
    color: var(--text); font-weight: 600; font-size: 0.98rem;
}
.pricing__addons--standalone { margin-top: 22px; }
.pricing__caption { color: var(--faint); font-size: 0.85rem; margin-top: 16px; }

/* Centered pricing layout */
.pricing--center .section__head { text-align: center; }
/* Freelance page: center every section title like the pricing section */
.freelance .section__head { text-align: center; }

/* Freelance page: uppercase all headings */
.freelance h1,
.freelance h2,
.freelance h3,
.freelance h4,
.freelance h5,
.freelance h6 { text-transform: uppercase; }

/* Client logo strip (grayscale text logos) */
.clients { padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.clients__label { text-align: center; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; color: var(--faint); margin-bottom: 24px; }
.clients__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: inline-flex; align-items: center; gap: clamp(38px, 5vw, 72px); white-space: nowrap; animation: clientsScroll 42s linear infinite; }
.clients__marquee:hover .clients__track { animation-play-state: paused; }
.clients__logo { display: inline-flex; align-items: center; }
.clients__img {
    display: block;
    height: clamp(26px, 3.4vw, 34px);   /* uniform height — the key metric */
    width: auto; max-width: none;        /* width follows aspect ratio */
    object-fit: contain;
    opacity: 0.6;                        /* logos are pre-grayscaled PNGs */
    transition: opacity 0.3s var(--ease);
}
.clients__logo:hover .clients__img { opacity: 1; }
/* Logos are baked dark; invert them to light so they read on the dark theme */
[data-theme="dark"] .clients__img { filter: invert(1); }
@keyframes clientsScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients__track { animation: none; flex-wrap: wrap; justify-content: center; white-space: normal; } }

/* Between-section CTA (pre-pricing -> #pricing, post-pricing -> contact form) */
.sec-cta { text-align: center; padding: clamp(30px, 5vw, 58px) 0; }
.sec-cta__text {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(1.25rem, 2.6vw, 1.9rem); letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--text); margin: 0 0 18px;
}

/* Hide the reCAPTCHA badge (allowed when the attribution below is shown) */
.grecaptcha-badge { visibility: hidden; }
.form__recaptcha {
    margin: 12px 0 0; font-size: 0.72rem; line-height: 1.5; color: var(--faint);
}
.form__recaptcha a { color: var(--muted); text-decoration: underline; }
.form__recaptcha a:hover { color: var(--text); }

/* Workflow: vertical icon timeline */
.timeline { max-width: 660px; margin: 0 auto; position: relative; text-align: left; }
.tstep { position: relative; display: flex; gap: 20px; padding-bottom: 30px; }
.tstep:last-child { padding-bottom: 0; }
.tstep:not(:last-child)::before {
    content: ''; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: var(--line);
}
.tstep__node {
    position: relative; z-index: 1; flex: none;
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--line-2); color: var(--accent);
}
.tstep__body { padding-top: 3px; }
.tstep__no { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--accent); }
.tstep__title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin: 4px 0 7px; }
.tstep__desc { color: var(--muted); }

.section.process .howfast__inner { margin: clamp(44px, 6vw, 72px) auto 0; max-width: 900px; }
.pricing--center .section__sub { color: var(--muted); max-width: 620px; margin: 14px auto 0; font-size: 1rem; }
.pricing--center .pricing__included { border-top: none; padding-top: 0; margin: 0 auto 36px; max-width: 960px; text-align: center; }
.pricing--center .pricing__features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.pricing--center .pricing__promo { justify-content: center; text-align: center; }
.pricing--center .pricing__addons--standalone { max-width: 620px; margin-inline: auto; text-align: center; }
.pricing--center .pricing__notes { max-width: 760px; margin: 30px auto 0; text-align: center; }
.pricing--center .pricing__notes .pricing__note { margin: 0 0 12px; }
.pricing--center .pricing__note--highlight { display: inline-block; margin-top: 4px; }
.price-quote__size { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--accent); margin-bottom: 4px; }
.pricing--center .price-card { text-align: center; align-items: center; }
.pricing--center .price-card__pricing { align-items: center; }
.pricing--center .price-card__save { align-self: center; }
.pricing--center .price-card__badge { left: 50%; transform: translateX(-50%); }
.pricing--center .price-card__cta { align-self: stretch; }

/* Stacked website preview: browser windows stacked by page count + overlapping phone */
.site-preview {
    --n: 3; --pv: var(--accent); position: relative; width: 100%; text-align: left;
    margin-bottom: 42px;
    padding-top: 54px;   /* fixed so every thumbnail is the same height */
    padding-right: 44px;
}
.site-stack { position: relative; }
.site-win {
    background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
}
.site-win--ghost {
    position: absolute; inset: 0; z-index: 0; background: var(--bg);
    transform: translate(calc(var(--i) * 4px), calc(var(--i) * -5px));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.site-win--ghost::before { content: ''; display: block; height: 12px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.site-win--front { position: relative; z-index: 3; }

.site-win__bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.site-win__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.site-win__url { flex: 1; height: 8px; margin-left: 6px; border-radius: 4px; background: var(--line-2); }
.site-win__nav { display: flex; align-items: center; gap: 5px 8px; flex-wrap: nowrap; overflow: hidden; padding: 8px 10px; border-bottom: 1px solid var(--line-2); background: var(--panel); }
.site-win__logo { flex: none; width: 18px; height: 8px; background: var(--pv, var(--accent)); border-radius: 2px; }
.site-win__tab { font-family: var(--mono); font-size: 0.55rem; color: var(--muted); white-space: nowrap; }
/* Hero band inside the preview */
.site-win__hero {
    display: flex; flex-direction: row; align-items: center; gap: 13px;
    padding: 15px 12px 17px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pv, var(--accent)) 22%, transparent), transparent 72%);
    border-bottom: 1px solid var(--line);
}
.site-win__coffee { flex: none; color: var(--pv, var(--accent)); line-height: 0; }
.site-win__coffee svg { width: 44px; height: auto; display: block; }
.site-win__hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-win__h { width: 82%; height: 11px; border-radius: 4px; background: var(--muted); opacity: 0.6; }
.site-win__h--2 { width: 58%; }
.site-win__t { width: 94%; height: 6px; border-radius: 3px; background: var(--line-2); margin-top: 2px; }
.site-win__btn { width: 50px; height: 15px; border-radius: 4px; background: var(--pv, var(--accent)); margin-top: 7px; }
.site-win__cards { display: flex; gap: 7px; padding: 0 11px 13px; }
.site-win__cards span { flex: 1; height: 26px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line-2); }

.site-phone {
    position: absolute; right: -8px; bottom: -18px; z-index: 6; width: 58px; padding: 6px;
    background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}
.site-phone__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.site-phone__logo { width: 12px; height: 5px; background: var(--pv, var(--accent)); border-radius: 2px; }
.site-phone__burger { width: 9px; height: 1.5px; background: var(--muted); box-shadow: 0 3px 0 var(--muted), 0 -3px 0 var(--muted); }
.site-phone__hero { height: 30px; border-radius: 5px; margin-bottom: 6px; background: linear-gradient(135deg, var(--pv, var(--accent)), var(--panel-2)); opacity: 0.9; }
.site-phone__line { height: 5px; border-radius: 3px; background: var(--line-2); margin-bottom: 4px; }
.site-phone__line--short { width: 60%; }
.site-phone__btn { height: 10px; border-radius: 3px; background: var(--pv, var(--accent)); margin-top: 6px; }

/* Per-card feature checklist */
.price-card__feats { align-self: stretch; text-align: left; margin: 20px 0 10px; }
.price-card__feat-head {
    display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.68rem; color: var(--muted); margin: 0 0 11px;
}
.price-card__feat-head--free { color: var(--accent-2); margin-top: 18px; }
.price-card__features {
    list-style: none; text-align: left;
    display: flex; flex-direction: column; gap: 9px; margin: 0;
}
.price-card__features .feat { position: relative; padding-left: 26px; color: var(--text); font-size: 0.9rem; line-height: 1.4; text-align: left; }
.price-card__features .feat::before {
    content: '\2713'; position: absolute; left: 0; top: 1px;
    width: 16px; height: 16px; line-height: 16px; text-align: center;
    font-size: 0.7rem; font-weight: 800;
    color: var(--accent-ink); background: var(--accent); border-radius: 3px;
}
.price-card__features .feat--lead { font-weight: 700; }
.price-card__features .feat--free { color: var(--accent-2); }
.price-card__features .feat--free strong { color: var(--accent); }

/* Offer countdown */
.pricing__promo-count { display: inline-flex; align-items: center; gap: 8px; }
.pricing__promo-countlabel { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; color: var(--muted); }
#offerCountdown {
    font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: var(--accent-2);
    background: rgba(232, 193, 90, 0.16); padding: 4px 9px; border-radius: 4px;
    min-width: 132px; text-align: center; display: inline-block;
}

/* Add-on with icon + description */
.pricing__addons li { align-items: flex-start; text-align: left; }
.pricing__addon-main { display: flex; align-items: flex-start; gap: 12px; }
.pricing__addon-ico { flex: none; color: var(--accent); line-height: 0; margin-top: 1px; }
.pricing__addon-name { display: flex; flex-direction: column; gap: 3px; }
.pricing__addon-desc { color: var(--muted); font-size: 0.82rem; font-weight: 400; max-width: 400px; }

/* Trenta dashboard preview */
.price-quote__preview { flex: 0 0 auto; width: 210px; position: relative; text-align: left; }
.price-quote__info { flex: 1 1 240px; min-width: 0; }
.dash-win { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }
.dash-win__bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; background: var(--panel-2); border-bottom: 1px solid var(--line-2); }
.dash-win__bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.dash-win__url { flex: 1; height: 7px; margin-left: 6px; border-radius: 4px; background: var(--line-2); }
.dash-win__body { display: flex; min-height: 96px; }
.dash-win__side { flex: 0 0 36px; background: var(--panel); border-right: 1px solid var(--line-2); padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.dash-win__side span { height: 6px; border-radius: 3px; background: var(--line-2); }
.dash-win__side span:first-child { background: var(--accent); }
.dash-win__main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.dash-win__stats { display: flex; gap: 7px; }
.dash-win__stats span { flex: 1; height: 22px; border-radius: 5px; background: var(--panel); border: 1px solid var(--line-2); }
.dash-win__chart { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.dash-win__chart i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--accent), var(--panel-2)); }
.dash-win__chart i:nth-child(1) { height: 45%; }
.dash-win__chart i:nth-child(2) { height: 70%; }
.dash-win__chart i:nth-child(3) { height: 55%; }
.dash-win__chart i:nth-child(4) { height: 90%; }
.dash-win__chart i:nth-child(5) { height: 65%; }
.dash-win__chart i:nth-child(6) { height: 80%; }

.dash-phone {
    position: absolute; right: -6px; bottom: -14px; z-index: 3; width: 52px; padding: 6px;
    background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.42);
}
.dash-phone__bar { display: block; height: 5px; border-radius: 3px; background: var(--accent); margin-bottom: 6px; }
.dash-phone__stat { display: block; height: 18px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line-2); margin-bottom: 6px; }
.dash-phone__chart { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.dash-phone__chart i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(var(--accent), var(--panel-2)); }
.dash-phone__chart i:nth-child(1) { height: 50%; }
.dash-phone__chart i:nth-child(2) { height: 80%; }
.dash-phone__chart i:nth-child(3) { height: 60%; }
.dash-phone__chart i:nth-child(4) { height: 95%; }
.price-card {
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(24px, 2.6vw, 34px);
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Per-card fine print + hover tooltip */
.price-card__fineprint { margin-top: 10px; font-size: 0.72rem; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; }
.price-card__info { position: relative; display: inline-flex; align-items: center; color: var(--muted); cursor: help; }
.price-card:hover, .price-card:focus-within { z-index: 6; }
.price-card__tip {
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    width: 220px; padding: 11px 13px; z-index: 100; text-align: left; pointer-events: none;
    background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px;
    color: var(--text); font-size: 0.74rem; line-height: 1.45; font-weight: 400;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}
.price-card__tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    border: 6px solid transparent; border-top-color: var(--line-2);
}
.price-card__info:hover .price-card__tip, .price-card__info:focus-within .price-card__tip { opacity: 1; visibility: visible; }
.price-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 22px 55px rgba(0,0,0,0.16); }
.price-card__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 6px; }
.price-card__size { text-transform: uppercase; }
.price-card__pct { text-transform: uppercase; }
.price-card__blurb { color: var(--muted); font-size: 0.9rem; min-height: 40px; }
.price-card__price { font-family: var(--font-head); font-weight: 900; color: var(--text); font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; margin-top: 16px; }
.price-card__unit { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }
.price-card__price--custom { font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--accent); }
.price-card__cta { margin-top: auto; justify-content: center; text-align: center; }
.price-card--popular { box-shadow: 0 22px 55px rgba(0,0,0,0.12); }
.price-card__badge {
    position: absolute; top: -11px; left: clamp(24px, 2.6vw, 34px);
    background: var(--accent); color: var(--accent-ink);
    font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 700; padding: 5px 10px;
}

.pricing__included { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 32px; }
.pricing__included-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--accent); margin-bottom: 18px; }
.pricing__features { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 26px; }
.pricing__features li { position: relative; padding-left: 26px; }
.pricing__features li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.pricing__extra { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.pricing__addons-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.pricing__addons ul { list-style: none; }
.pricing__addons li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pricing__addon-price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.pricing__notes p.pricing__note { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.pricing__notes p.pricing__note:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq__search-wrap { position: relative; max-width: 460px; margin: 0 0 26px; }
.faq__search-wrap svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.faq__search {
    width: 100%; font-family: var(--font); font-size: 0.98rem; color: var(--text);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 13px 16px 13px 44px; transition: border-color 0.3s;
}
.faq__search::placeholder { color: var(--faint); }
.faq__search:focus { outline: none; border-color: var(--accent); }
.faq__empty { color: var(--muted); padding: 12px 4px; }
.faq__empty a { color: var(--accent); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    text-align: left; padding: 22px 4px; cursor: pointer; color: var(--text);
    font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem);
    transition: color 0.25s;
}
.faq__q:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; background: var(--accent); transition: transform 0.3s var(--ease); }
.faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.45s var(--ease); }
.faq__item.is-open .faq__a { max-height: 820px; }
.faq__a-in { color: var(--muted); padding: 0 4px 24px; max-width: 820px; }
.faq__a-in p { margin-bottom: 12px; }
.faq__a-in p:last-child { margin-bottom: 0; }
.faq__sublist { list-style: disc; margin: 10px 0 12px 22px; display: flex; flex-direction: column; gap: 6px; }
.faq__sublist li { color: var(--muted); }
.faq__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 0.9rem; transition: gap 0.25s var(--ease), color 0.25s; }
.faq__cta:hover { color: var(--accent-2); gap: 10px; }

/* ---------- Request form ---------- */
.request__sub { color: var(--muted); margin-top: 14px; max-width: 520px; }
.request__form { margin-top: 36px; max-width: 780px; }
.field--group { display: block; border: 1px solid var(--line); padding: 20px; }
.field--group legend { padding: 0 8px; font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; margin-top: 6px; }
.opt { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text); font-size: 0.95rem; font-family: var(--font); }
/* reset native controls so the generic .field input styles don't inflate them */
.opt input {
    -webkit-appearance: auto; appearance: auto;
    width: 17px; height: 17px; min-width: 17px; flex: none;
    padding: 0; margin: 0; border: 0; border-radius: 0; background: none;
    accent-color: var(--accent); cursor: pointer;
}

/* Request form labels in Work Sans (easier to read than the mono default);
   only the direct field labels are bold — option text stays regular weight. */
.request__form .field > label { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.request__form .field__opt { font-weight: 400; color: var(--muted); }
.request__form .opt, .request__form .opt span { font-weight: 400; }

/* Select dropdown, styled to match the other fields */
.field select {
    font-family: inherit; font-size: 0.98rem; color: var(--text);
    background-color: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 42px 14px 16px; cursor: pointer; width: 100%;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa0aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
    transition: border-color 0.3s, background-color 0.3s;
}
.field select:focus { outline: none; border-color: var(--accent); background-color: var(--panel-2); }
.other-input {
    margin-top: 14px; display: none; width: 100%;
    font-family: inherit; font-size: 0.98rem; color: var(--text);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 13px 15px; transition: border-color 0.3s, background 0.3s;
}
.other-input::placeholder { color: var(--faint); }
.other-input:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }
.other-input.is-shown { display: block; }
.field__opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Solo hero (no portrait) ---------- */
.hero--solo .hero__inner { grid-template-columns: 1fr; }
.hero--solo .hero__content { max-width: 940px; }

/* ---------- Hero device showcase (iMac + MacBook + iPhone) ---------- */
.hero--showcase .hero__inner { align-items: center; }
.hero__showcase {
    position: relative; z-index: 2; align-self: center;
    width: 100%; height: clamp(360px, 40vw, 520px);
}
.hero__showcase .dv { position: absolute; }
.hero__showcase img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Glossy glass reflection on every screen */
.dv-imac__screen, .dv-mac__screen, .dv-phone__screen { position: relative; }
.dv-imac__screen::after, .dv-mac__screen::after, .dv-phone__screen::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(122deg,
        rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 14%,
        rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 76%,
        rgba(255, 255, 255, 0.05) 100%);
}

/* iMac — large, centred at the back */
.dv--imac { top: 0; left: 50%; transform: translateX(-50%); width: min(100%, 560px); z-index: 1; }
.dv-imac__screen {
    aspect-ratio: 16 / 9; background: #05060a; overflow: hidden;
    border: 12px solid #e7e9ec; border-bottom: 0; border-radius: 18px 18px 0 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 34px 60px -26px rgba(0, 0, 0, 0.6);
}
.dv-imac__chin {
    position: relative; height: clamp(30px, 5vw, 50px);
    background: linear-gradient(#eceef1, #d3d7dd); border-radius: 0 0 16px 16px;
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.7), 0 3px 5px rgba(0, 0, 0, 0.14);
}
.dv-imac__chin::after {
    content: ""; position: absolute; left: 50%; bottom: 20%; width: 15px; height: 15px;
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #f4f6f8, #b3b9c0);
}
.dv-imac__stand {
    width: clamp(80px, 13vw, 130px); height: clamp(34px, 5.5vw, 58px); margin: 0 auto;
    background: linear-gradient(#d9dde2, #bcc2c9);
    clip-path: polygon(32% 0, 68% 0, 82% 100%, 18% 100%);
}
.dv-imac__foot {
    width: clamp(170px, 28vw, 260px); height: 16px; margin: -3px auto 0;
    background: linear-gradient(#cfd4da, #adb3bb);
    border-radius: 6px 6px 12px 12px / 4px 4px 18px 18px;
    box-shadow: 0 26px 42px -16px rgba(0, 0, 0, 0.55);
}

/* MacBook — front left, overlapping the iMac base */
.dv--macbook { left: 0; bottom: 0; width: min(64%, 360px); z-index: 3; }
.dv-mac__screen {
    aspect-ratio: 16 / 10; background: #05060a; overflow: hidden;
    border: 8px solid #c9ced4; border-bottom: 0; border-radius: 11px 11px 0 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55), 0 26px 44px -22px rgba(0, 0, 0, 0.6);
}
.dv-mac__base {
    position: relative; height: clamp(11px, 1.7vw, 16px); width: 108%; margin-left: -4%;
    background: linear-gradient(#e0e4e8, #b4bac1 60%, #9aa0a8); border-radius: 3px 3px 9px 9px;
    box-shadow: 0 22px 30px -14px rgba(0, 0, 0, 0.6);
}
.dv-mac__base::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 20%; height: 40%; background: rgba(0, 0, 0, 0.16); border-radius: 0 0 7px 7px;
}

/* iPhone — front right */
.dv--phone { right: 0; bottom: 0; width: min(21%, 122px); z-index: 4; }
.dv-phone__screen {
    position: relative; aspect-ratio: 9 / 19; background: #05060a; overflow: hidden;
    border: 5px solid #202227; border-radius: 24px;
    box-shadow: 0 26px 40px -14px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.dv-phone__notch {
    position: absolute; z-index: 2; top: 6px; left: 50%; transform: translateX(-50%);
    width: 38%; height: 14px; background: #202227; border-radius: 0 0 11px 11px;
}

/* ---------- About (freelance): text left, hero-style portrait right ---------- */
.about--freelance .about__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(30px, 5vw, 70px); }
.about--freelance .about__body { gap: 26px; }
.about__role {
    margin-top: 14px; text-align: center; color: var(--muted);
    font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
}
.about--freelance .about__text p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.about__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.about__portrait { display: flex; flex-direction: column; align-items: center; }
.about__portrait-media { position: relative; width: 100%; min-height: 400px; display: flex; align-items: flex-end; justify-content: center; }
.about__portrait-ring {
    position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
    width: min(100%, 400px); aspect-ratio: 1 / 1; border-radius: 50%; filter: blur(8px);
    background: radial-gradient(circle at 50% 45%, rgba(232,193,90,0.22), rgba(232,193,90,0.06) 55%, transparent 70%);
}
/* soft ground shadow under the cutout */
.about__portrait-media::after {
    content: ''; position: absolute; z-index: 0; bottom: 4%; left: 50%; transform: translateX(-50%);
    width: 62%; height: 26px; border-radius: 50%; filter: blur(9px);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.32), transparent 70%);
}
.about__portrait-img {
    position: relative; z-index: 1; width: auto; max-width: 100%; max-height: 500px;
    object-fit: contain; object-position: bottom center;
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}
.about__socials--under { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; width: 100%; }
.about__socials--under .about__social { flex: 0 0 auto; }
@media (max-width: 900px) {
    .about--freelance .about__grid { grid-template-columns: 1fr; }
    .about__portrait { order: -1; }
    .about__portrait-media { min-height: 0; }
    .about__portrait-img { max-height: 360px; }
}

/* Closing CTA on the freelance page gets full section spacing */
.freelance .cta-band { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(72px, 12vw, 150px); }

@media (max-width: 900px) {
    .pricing__grid { grid-template-columns: 1fr 1fr; }
    .pricing__extra { grid-template-columns: 1fr; gap: 18px; }
    .howfast__inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
    .howfast__big { flex-direction: column; align-items: center; gap: 0; margin-bottom: 8px; }
    .howfast__note { max-width: 260px; margin: 12px auto 0; }
    .howfast__title { margin-top: 4px; }
    .howfast__text p { margin-left: auto; margin-right: auto; }
    .howfast__text .btn { display: inline-flex; }
}
@media (max-width: 560px) {
    /* Pricing becomes a full-bleed swipeable carousel */
    .pricing__grid {
        display: flex; grid-template-columns: none;
        /* break out of the container so it runs edge to edge */
        width: 100vw; margin-inline: calc(50% - 50vw);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        /* roomy top/bottom so the "Most Popular" badge + card shadows never clip */
        padding: 24px 18px 46px;
        scroll-padding-inline: 18px;
        scrollbar-width: none;
    }
    .pricing__grid::-webkit-scrollbar { display: none; }
    .pricing__grid .price-card {
        flex: 0 0 calc(100vw - 74px); max-width: 400px;
        scroll-snap-align: center;
    }
    /* Justified text with hyphenation reads poorly in a narrow phone column */
    .about--freelance .about__text p { text-align: left; hyphens: manual; }
    /* Carousel arrows — show there is more to swipe */
    .pricing__nav {
        display: grid; place-items: center; position: absolute; top: 46%;
        transform: translateY(-50%); z-index: 20;
        width: 42px; height: 42px; border-radius: 50%; padding: 0;
        background: var(--panel-2); color: var(--text);
        border: 1px solid var(--line-2); cursor: pointer;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
        transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
    }
    .pricing__nav svg { width: 20px; height: 20px; }
    .pricing__nav--prev { left: 8px; }
    .pricing__nav--next { right: 8px; }
    .pricing__nav:disabled { opacity: 0; pointer-events: none; }

    /* Wider project cards ("A few things I've built") on phones */
    .work__grid > .card { flex: 0 0 86vw; max-width: 460px; }

    /* "Need something more?" quote block — centered */
    .price-quote { justify-content: center; text-align: center; }
    .price-quote__preview { margin: 0 auto; }
    .price-quote__info { text-align: center; width: 100%; }
    .price-quote__action { justify-content: center; width: 100%; }

    /* View resume button — centered */
    .about--freelance .about__actions { justify-content: center; }
}
/* Arrows are a mobile-only affordance */
.pricing__carousel { position: relative; }
@media (min-width: 561px) {
    .pricing__nav { display: none; }
}
