/* =========================================================
   Home page — hero, about, marquee, timeline, projects,
   blog preview, CTA. Works with base.css tokens.
   ========================================================= */

/* ========================================================= */
/* HERO                                                       */
/* ========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--status-h) + 140px) 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: calc(var(--status-h) + 60px) var(--gutter) 40px;
    pointer-events: none;
    z-index: 0;
}

.hero-crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--gold-400);
    opacity: 0.7;
}

.hero-crosshair::before,
.hero-crosshair::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.hero-crosshair.tl { top: 0; left: 0; }
.hero-crosshair.tr { top: 0; right: 0; }
.hero-crosshair.bl { bottom: 0; left: 0; }
.hero-crosshair.br { bottom: 0; right: 0; }

.hero-crosshair.tl::before, .hero-crosshair.tr::before,
.hero-crosshair.bl::before, .hero-crosshair.br::before {
    top: 0; height: 1px; width: 20px;
}
.hero-crosshair.tr::before { right: 0; }
.hero-crosshair.bl::before { top: auto; bottom: 0; }
.hero-crosshair.br::before { top: auto; bottom: 0; right: 0; }

.hero-crosshair.tl::after, .hero-crosshair.tr::after,
.hero-crosshair.bl::after, .hero-crosshair.br::after {
    left: 0; width: 1px; height: 20px;
}
.hero-crosshair.tr::after { left: auto; right: 0; }
.hero-crosshair.bl::after { top: auto; bottom: 0; }
.hero-crosshair.br::after { top: auto; bottom: 0; left: auto; right: 0; }

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Volume/issue label at the top of the hero */
.hero-index {
    display: flex;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68em;
    letter-spacing: 0.3em;
    color: var(--bone-400);
    text-transform: uppercase;
    margin-bottom: clamp(36px, 6vw, 64px);
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out) 0.15s forwards;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: flex-end;
}

.hero-main { min-width: 0; }

.hero-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out) 0.3s forwards;
}

.hero-city {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72em;
    letter-spacing: 0.16em;
    color: var(--bone-400);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-city::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 10px var(--gold-glow);
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    /* Sized to fit the 1.5fr hero column at every width — the longest word
       ("Muhammad") must not overflow. Was clamp(4em,14vw,11em), which blew
       past the column past ~1100px and got clipped by .hero overflow:hidden. */
    font-size: clamp(3.2em, 8vw, 7em);
    line-height: 0.9;
    letter-spacing: -0.045em;
    color: var(--bone-50);
    overflow-wrap: break-word;
    font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-400);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    position: relative;
}

.hero-lede {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1.1em, 2vw, 1.5em);
    line-height: 1.4;
    color: var(--bone-200);
    max-width: 540px;
    margin-top: 32px;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out) 0.7s forwards;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-left: clamp(20px, 3vw, 40px);
    border-left: 1px solid var(--line);
}

.hero-now {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(232, 195, 145, 0.03);
    position: relative;
    overflow: hidden;
}

.hero-now::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: var(--gold-400);
}

.hero-now-label {
    display: block;
    font-size: 0.65em;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 10px;
}

.hero-now p {
    font-size: 0.94em;
    line-height: 1.55;
    color: var(--bone-100);
    margin: 0;
}

.hero-now strong {
    color: var(--bone-50);
    font-weight: 500;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.hstat {
    padding: 18px 0;
    text-align: left;
    position: relative;
}

.hstat + .hstat {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.hstat-n {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2em, 4vw, 3.2em);
    line-height: 1;
    color: var(--bone-50);
    letter-spacing: -0.03em;
    font-variation-settings: "opsz" 144, "SOFT" 60;
}

.hstat:first-child .hstat-n,
.hstat:nth-child(2) .hstat-n {
    color: var(--gold-400);
}

.hstat-l {
    display: block;
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone-400);
    line-height: 1.3;
}

.hero-socials {
    display: flex;
    gap: 10px;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--bone-200);
    transition: color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
}

.hero-socials a:hover {
    color: var(--ink-900);
    border-color: var(--gold-400);
    background: var(--gold-400);
    transform: translateY(-3px);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-ctas .btn { flex: 1 1 auto; justify-content: center; }

/* scroll hint — a soft nudge in the corner */
.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62em;
    letter-spacing: 0.4em;
    color: var(--bone-400);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out) 1.3s forwards;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--gold-400), transparent);
    animation: scrollNudge 2.2s var(--ease) infinite;
}

@keyframes scrollNudge {
    0%   { transform: translateY(-8px); opacity: 0.35; }
    50%  { transform: translateY(0);    opacity: 1; }
    100% { transform: translateY(8px);  opacity: 0.35; }
}

/* ========================================================= */
/* ABOUT                                                      */
/* ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: stretch;
}

.portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 420px;
}

.portrait-frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background:
        radial-gradient(ellipse at 30% 30%, rgba(232, 195, 145, 0.18), transparent 60%),
        linear-gradient(180deg, var(--ink-800), var(--ink-900));
    overflow: hidden;
}

/* Uploaded profile photo — fills the frame; sits under the ring/tag overlays. */
.portrait .portrait-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.12) contrast(1.02);
    z-index: 1;
}

.portrait .initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(6em, 18vw, 14em);
    color: var(--bone-50);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.portrait .initials em {
    font-style: italic;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 60%, var(--gold-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portrait-ring {
    position: absolute;
    inset: 32px;
    border: 1px dashed rgba(232, 195, 145, 0.28);
    border-radius: 50%;
    animation: portraitRingSpin 60s linear infinite;
}

.portrait-ring::before,
.portrait-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 12px var(--gold-glow);
}

.portrait-ring::before {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.portrait-ring::after {
    bottom: -4px;
    right: 30%;
    width: 5px;
    height: 5px;
}

@keyframes portraitRingSpin {
    to { transform: rotate(360deg); }
}

.portrait-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 10px 14px;
    background: rgba(10, 11, 15, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68em;
    letter-spacing: 0.1em;
    color: var(--bone-300);
}

.portrait-tag span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--live-400);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: livePulse 1.8s var(--ease) infinite;
    box-shadow: 0 0 8px var(--live-400);
}

.bio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.bio p {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(1.05em, 1.6vw, 1.3em);
    line-height: 1.55;
    color: var(--bone-100);
    font-variation-settings: "opsz" 24, "SOFT" 60;
}

.bio p strong {
    color: var(--bone-50);
    font-weight: 500;
}

.bio p em {
    color: var(--gold-400);
    font-style: italic;
    font-variation-settings: "opsz" 24, "SOFT" 100, "WONK" 1;
}

.bio-meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bio-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: baseline;
}

.bio-k {
    font-size: 0.68em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bone-400);
}

.bio-v {
    font-size: 0.98em;
    color: var(--bone-100);
}

.bio-v em {
    color: var(--gold-400);
    font-style: italic;
}

/* ========================================================= */
/* WORK TIMELINE                                              */
/* ========================================================= */

.experience {
    position: relative;
}

.timeline {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 48px 32px 1fr;
    gap: clamp(16px, 2vw, 28px);
    padding: 24px 0 48px;
    border-top: 1px solid var(--line);
    position: relative;
}

.timeline-item:first-child { border-top: none; padding-top: 0; }

.t-num {
    font-size: 0.7em;
    letter-spacing: 0.22em;
    color: var(--bone-400);
    padding-top: 6px;
}

.t-spine {
    position: relative;
    display: flex;
    justify-content: center;
}

.t-spine::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(to bottom, var(--line-strong) 0%, var(--gold-500) 50%, transparent 100%);
}

.timeline-item:last-child .t-spine::before { bottom: 0; }

.t-dot {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ink-900);
    border: 1px solid var(--gold-500);
    margin-top: 10px;
    z-index: 1;
}

.t-dot::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 12px var(--gold-glow);
}

.t-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    opacity: 0;
    animation: dotPulse 2.4s var(--ease) infinite;
}

.timeline-item:first-child .t-dot::after { animation-delay: 0.1s; }
.timeline-item:nth-child(2) .t-dot::after { animation-delay: 0.6s; }
.timeline-item:nth-child(3) .t-dot::after { animation-delay: 1.1s; }
.timeline-item:nth-child(4) .t-dot::after { animation-delay: 1.6s; }

@keyframes dotPulse {
    0%   { transform: scale(0.85); opacity: 0.7; }
    100% { transform: scale(2.2);  opacity: 0; }
}

.t-card {
    padding: 0 0 8px 0;
    transition: transform var(--dur-fast) var(--ease);
}

.t-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.t-card .period {
    font-size: 0.68em;
    letter-spacing: 0.22em;
    color: var(--gold-400);
    text-transform: uppercase;
}

.t-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64em;
    letter-spacing: 0.14em;
    padding: 2px 10px;
    border: 1px solid var(--line-strong);
    color: var(--bone-300);
    text-transform: uppercase;
    border-radius: 40px;
}

.t-role {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.4em, 2.4vw, 1.9em);
    color: var(--bone-50);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.t-company {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.1em;
    color: var(--bone-200);
    margin-bottom: 16px;
    font-variation-settings: "opsz" 30, "SOFT" 100, "WONK" 1;
}

.t-company a {
    color: var(--gold-400);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) var(--ease);
}

.t-company a:hover {
    border-bottom-color: var(--gold-400);
}

.t-summary {
    color: var(--bone-200);
    font-size: 0.98em;
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 68ch;
}

.t-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.t-tech span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66em;
    padding: 4px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 40px;
    color: var(--bone-200);
    letter-spacing: 0.06em;
    transition: border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}

.t-tech span:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.t-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68em;
    padding: 5px 14px 5px 12px;
    border: 1px solid var(--gold-500);
    border-radius: 40px;
    color: var(--gold-400);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.t-links a::after {
    content: ' ↗';
    opacity: 0.7;
    margin-left: 4px;
}

.t-links a:hover {
    background: var(--gold-400);
    color: var(--ink-900);
    transform: translateY(-1px);
}

/* ========================================================= */
/* PROJECTS                                                   */
/* ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.project-card {
    position: relative;
    padding: 40px 36px 32px;
    background: var(--ink-850);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 320px;
    overflow: hidden;
    transition: background 0.4s var(--ease);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(232, 195, 145, 0.15), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(232, 134, 107, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::before { opacity: 1; }

.project-card > * { position: relative; z-index: 1; }

.project-card .pc-sheen {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 50%;
    height: 200%;
    background: linear-gradient(100deg, transparent, rgba(232, 195, 145, 0.05), transparent);
    transform: translateX(-100%) skewX(-20deg);
    transition: transform 1s var(--ease);
    pointer-events: none;
    z-index: 0;
}

.project-card:hover .pc-sheen {
    transform: translateX(300%) skewX(-20deg);
}

.pc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-num {
    font-size: 0.66em;
    letter-spacing: 0.24em;
    color: var(--bone-400);
    text-transform: uppercase;
}

.pc-arrow {
    font-size: 1.4em;
    color: var(--bone-300);
    transition: transform 0.4s var(--ease), color 0.3s var(--ease);
    line-height: 1;
}

.project-card:hover .pc-arrow {
    transform: translate(6px, -6px) rotate(8deg);
    color: var(--gold-400);
}

.pc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pc-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.5em, 2.4vw, 1.9em);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--bone-50);
    position: relative;
    display: inline-block;
    transition: color 0.3s var(--ease);
}

.project-card:hover .pc-title {
    color: var(--gold-400);
}

.pc-tagline {
    font-family: 'Fraunces', serif;
    font-size: 1em;
    line-height: 1.55;
    color: var(--bone-200);
    font-weight: 400;
}

.pc-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.tech-row span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64em;
    padding: 3px 10px;
    border-radius: 40px;
    color: var(--bone-300);
    letter-spacing: 0.04em;
    background: rgba(245, 241, 234, 0.04);
    border: 1px solid var(--line);
}

.pc-kind {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.64em;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-400);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pc-kind span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold-400);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ========================================================= */
/* BLOG PREVIEW                                               */
/* ========================================================= */

.section-index-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.blog-preview-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.preview-row {
    display: grid;
    grid-template-columns: 48px 1fr 56px;
    gap: clamp(16px, 2vw, 28px);
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: padding-left var(--dur) var(--ease),
                background var(--dur) var(--ease);
    position: relative;
}

.preview-row::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--gold-400);
    transition: width 0.6s var(--ease);
}

.preview-row:hover {
    padding-left: 20px;
}

.preview-row:hover::after { width: 100%; }

.pr-index {
    font-size: 0.7em;
    letter-spacing: 0.2em;
    color: var(--bone-400);
    text-transform: uppercase;
}

.pr-body { min-width: 0; }

.pr-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.66em;
    letter-spacing: 0.18em;
    color: var(--bone-400);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pr-meta .sep { color: var(--bone-500); }

.pr-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(1.3em, 2.4vw, 1.9em);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--bone-50);
    margin-bottom: 8px;
    transition: color var(--dur-fast) var(--ease);
}

.preview-row:hover .pr-title { color: var(--gold-400); }

.pr-excerpt {
    font-family: 'Fraunces', serif;
    font-size: 1em;
    line-height: 1.5;
    color: var(--bone-300);
    max-width: 70ch;
}

.pr-go {
    justify-self: end;
    font-size: 1.4em;
    color: var(--bone-300);
    transition: transform 0.4s var(--ease), color 0.3s var(--ease);
    line-height: 1;
}

.preview-row:hover .pr-go {
    color: var(--gold-400);
    transform: translateX(8px);
}

.see-all {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bone-200);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease);
}

.see-all:hover {
    color: var(--gold-400);
    border-bottom-color: var(--gold-400);
}

.see-all .arrow {
    transition: transform var(--dur-fast) var(--ease);
}

.see-all:hover .arrow { transform: translateX(4px); }

/* ========================================================= */
/* CTA                                                        */
/* ========================================================= */

.cta-section {
    padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
    position: relative;
}

.cta-inner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-head {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(2.5em, 7vw, 6em);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--bone-50);
    margin-bottom: 28px;
    font-variation-settings: "opsz" 144, "SOFT" 30;
}

.cta-head .line {
    display: block;
    overflow: hidden;
}

.cta-head em {
    color: var(--gold-400);
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.cta-sub {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: clamp(1em, 1.6vw, 1.2em);
    line-height: 1.55;
    color: var(--bone-200);
    margin-bottom: 40px;
    max-width: 56ch;
}

.cta-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ========================================================= */
/* EMPTY STATES                                               */
/* ========================================================= */

.empty-state {
    text-align: center;
    padding: 80px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-md);
    color: var(--bone-300);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.1em;
}

/* ========================================================= */
/* RESPONSIVE                                                 */
/* ========================================================= */

@media (max-width: 1000px) {
    .hero {
        min-height: auto;
        padding: calc(var(--status-h) + 120px) 0 80px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        align-items: flex-start;
    }
    .hero-title { font-size: clamp(3.5em, 16vw, 6em); line-height: 0.9; }
    .hero-side {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--line);
        padding-top: 32px;
        gap: 22px;
    }
    .hero-bg { display: none; }
    .scroll-hint { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .portrait { max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 4; min-height: 360px; }
    .portrait .initials { font-size: clamp(5em, 26vw, 10em); }
    .bio-row { grid-template-columns: 120px 1fr; gap: 10px; }

    .timeline-item { grid-template-columns: 30px 22px 1fr; padding-bottom: 36px; }
    .t-num { padding-top: 4px; }
    .t-role { font-size: 1.3em; }
    .t-summary { font-size: 0.92em; }

    .projects-grid { grid-template-columns: 1fr; }

    .preview-row { grid-template-columns: 30px 1fr 30px; padding: 22px 0; }
    .pr-title { font-size: 1.3em; }
    .pr-excerpt { font-size: 0.92em; }
    .preview-row:hover { padding-left: 12px; }

    .cta-ctas .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}

@media (max-width: 540px) {
    .hero { padding: calc(var(--status-h) + 100px) 0 56px; }
    .hero-index { font-size: 0.62em; letter-spacing: 0.22em; }
    .hero-meta-top { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 16px; }
    .hero-title { font-size: clamp(2.6em, 16vw, 4em); }
    .hero-lede { font-size: 1.05em; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-ctas { flex-direction: column; width: 100%; }

    .about-grid { gap: 28px; }
    .portrait { min-height: 300px; }
    .bio p { font-size: 1em; }
    .bio-meta { margin-top: 20px; padding-top: 20px; }
    .bio-row { grid-template-columns: 1fr; gap: 2px; }
    .bio-k { font-size: 0.62em; }

    .timeline-item { grid-template-columns: 24px 18px 1fr; gap: 14px; }
    .t-num { font-size: 0.64em; }

    .project-card { padding: 28px 22px 24px; min-height: auto; }

    .preview-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 22px 0;
    }
    .pr-index { display: none; }
    .pr-go { display: none; }
    .preview-row:hover { padding-left: 0; }

    .cta-head { font-size: clamp(2em, 12vw, 3.6em); }
}

/* ========================================================= */
/* HOVER-NONE DEVICES                                         */
/* ========================================================= */

@media (hover: none) {
    .project-card:hover::before { opacity: 0; }
    .project-card:hover .pc-sheen { transform: translateX(-100%) skewX(-20deg); }
    .project-card:hover .pc-title { color: var(--bone-50); }
    .project-card:hover .pc-arrow { transform: none; color: var(--bone-300); }

    .preview-row:hover { padding-left: 0; }
    .preview-row:hover .pr-title { color: var(--bone-50); }
    .preview-row:hover .pr-go { transform: none; color: var(--bone-300); }

    .hero-socials a:hover {
        transform: none;
        background: transparent;
        color: var(--bone-200);
        border-color: var(--line-strong);
    }
}
