/* ==========================================================================
   Sections: hello, background, work, quote interlude, contact
   ========================================================================== */

/* ---------- Hello ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 104px 0 84px; }
.hero-inner { position: relative; }
/* The particles write "Hello," inside this box; its aspect follows the text. */
.hero-hello {
    position: relative; width: min(100%, 700px, calc((100svh - 480px) * var(--hello-aspect, 3)));
    min-width: min(100%, 300px); aspect-ratio: var(--hello-aspect, 3); margin: 0 0 clamp(14px, 3vh, 34px) -4px;
}
.hello-fallback { display: none; font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(80px, 13vw, 200px); line-height: 1; color: var(--accent); }
.no-webgl .hello-fallback { display: block; }
.hero-copy { max-width: 720px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); margin-bottom: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.hero-name { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(28px, 3.6vw, 56px); margin-bottom: 12px; }
.hero-name .line, .contact-title .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.contact-title .line { display: block; }
.split { display: inline-block; }
.split .ch { display: inline-block; will-change: transform; }
.hero-role { color: var(--muted); margin-bottom: 22px; }
/* Desktop: the black hole is the big element, so "Hello," moves into the kicker. */
@media (min-width: 901px) {
    .hero-hello { display: none; }
    .no-webgl .hero-hello { display: block; }
    .hero-copy { max-width: 640px; }
    .hero-name { font-size: clamp(40px, 5vw, 80px); line-height: 1; margin-bottom: 18px; }
    .hero-name .line { display: block; }
}
@media (max-width: 900px) { .kicker-hello { display: none; } }
.hero-desc { max-width: 560px; font-size: clamp(15.5px, 1.15vw, 18px); color: var(--ink-2); line-height: 1.65; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
/* Names the shape the hero is currently drawing */
.hero-caption {
    position: absolute; left: 73.5%; bottom: 13vh; transform: translateX(-50%); color: var(--muted);
    text-transform: none; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none;
}
.hero-caption.is-on { opacity: 1; }
.hero-caption span::before { content: "fig. "; color: var(--accent); }
@media (max-width: 900px) { .hero-caption { display: none; } }
.hero-hint { position: absolute; right: var(--gutter); bottom: 44px; color: var(--muted); line-height: 2; text-align: right; }
.hint-key { display: inline-block; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; margin-right: 6px; line-height: 1.7; }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Background ---------- */
.background { padding: clamp(100px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); }
.bg-facts { display: flex; flex-wrap: wrap; gap: 10px 44px; margin-bottom: clamp(30px, 4vw, 48px); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 760px; }
.bg-facts div { display: flex; flex-direction: column; gap: 2px; }
.bg-facts dt { color: var(--muted); font-size: 11px; }
.bg-facts dd { font-size: 16px; font-weight: 500; }
.bg-story { max-width: 660px; }
.bg-story p { color: var(--ink-2); font-size: 17px; line-height: 1.8; }
.bg-story p:first-child { color: var(--ink); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.7; }
.bg-story p + p { margin-top: 18px; }

/* ---------- Quote interlude ---------- */
.interlude { min-height: 90vh; display: flex; align-items: center; padding: 120px 0; text-align: center; }
.quote { max-width: 980px; margin: 0 auto; }
.quote-text { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 5vw, 76px); line-height: 1.12; letter-spacing: -0.02em; }
.quote-text::before { content: "“"; color: var(--accent); }
.quote-text::after { content: "”"; color: var(--accent); }
.quote-text .w { display: inline-block; }
.quote-by { margin-top: 26px; color: var(--muted); }
.quote-next { margin-top: 40px; display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); transition: border-color 0.3s, color 0.3s; }
.quote-next:hover { border-color: var(--accent); color: var(--ink); }
.quote-next span { display: inline-block; transition: transform 0.6s var(--ease); }
.quote-next:hover span { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(110px, 13vw, 170px) 0 30px; }
.contact-title { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); letter-spacing: -0.035em; line-height: 0.98; font-size: clamp(34px, 5.6vw, 90px); margin-bottom: 30px; max-width: 14ch; }
.contact-sub { color: var(--ink-2); max-width: 480px; font-size: 18px; margin-bottom: clamp(40px, 6vw, 70px); }
.contact-links { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.contact-link {
    position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 160px; justify-content: flex-end;
    padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
    background: var(--card); backdrop-filter: blur(10px); transition: border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.contact-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.6s var(--ease); }
.contact-link:hover { color: var(--bg); border-color: var(--ink); }
.contact-link:hover::before { transform: none; }
.cl-label { color: var(--muted); transition: color 0.5s; }
.contact-link:hover .cl-label { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.cl-value { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(17px, 1.7vw, 24px); line-height: 1.1; overflow-wrap: anywhere; }
.cl-arrow, .cl-send { position: absolute; top: 24px; right: 26px; font-size: 22px; transition: transform 0.5s var(--ease); }
.cl-send { width: 30px; height: 30px; }
.contact-link:hover .cl-arrow { transform: translate(4px, -4px); }
.contact-link:hover .cl-send { transform: translate(8px, -8px); }
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); padding-top: 80px; text-transform: none; letter-spacing: 0.01em; }
.to-top:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .topbar-meta { gap: 14px; }
    .hero { padding: 96px 0 56px; }
    .hero-hello { width: 100%; margin-bottom: 18px; }
    .hero-name { font-size: clamp(24px, 7.2vw, 42px); }
    .hero-desc { margin-bottom: 26px; font-size: 15.5px; }
    .kicker { margin-bottom: 18px; font-size: 11px; }
    .hero-hint, .scroll-cue { display: none; }
    .bg-facts { gap: 12px 28px; }
    .interlude { min-height: 70vh; }
    .contact-links { grid-template-columns: 1fr; }
    .contact-link { min-height: 120px; }
}
@media (max-width: 560px) {
    .brand-name { display: none; }
}

/* ---------- More projects: a short strip after the pinned showcase ---------- */
.more-projects { padding: clamp(70px, 10vw, 130px) 0 clamp(30px, 5vw, 60px); }
.more-head { display: flex; flex-direction: column; margin-bottom: clamp(26px, 4vw, 44px); }
.more-title { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(26px, 3vw, 44px); line-height: 1.05; letter-spacing: -0.025em; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.more-card { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 28px); border-radius: 18px; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(12px); transition: border-color 0.4s var(--ease), transform 0.5s var(--ease); }
.more-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-4px); }
.more-kind { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.more-card h3 { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; letter-spacing: -0.02em; }
.more-sub { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--ink-2); margin: 6px 0 12px; }
.more-card > p:not(.more-kind):not(.more-sub) { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.more-card .chips { margin-top: auto; padding-top: 16px; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13.5px; }
.more-links a { padding-bottom: 2px; border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.more-links a:hover { border-color: var(--accent); }
.more-all { display: inline-flex; gap: 10px; margin-top: clamp(22px, 3vw, 32px); padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 15px; transition: border-color 0.3s, gap 0.3s; }
.more-all:hover { border-color: var(--accent); gap: 16px; }
@media (max-width: 900px) {
    .more-grid { grid-template-columns: minmax(0, 1fr); }
    .more-sub { font-size: 16px; }
}
