/* Home page: the original portfolio layout, redrawn. */

html.motion:not(.motion-ready) .hero-inner, html.motion:not(.motion-ready) .hero-gallery { visibility: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(136px, 17vh, 190px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: 4; pointer-events: none; background: linear-gradient(to bottom, rgba(244, 243, 239, 0), var(--paper) 78%); }
.hero-inner { display: grid; justify-items: center; text-align: center; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 5; }
.hero-kicker { margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero-title { display: flex; align-items: flex-end; justify-content: center; font-weight: 580; font-size: clamp(66px, 13vw, 196px); line-height: .84; letter-spacing: -.064em; padding-bottom: .05em; white-space: nowrap; }
.hero-name { display: inline-block; }
.hero-title .line-mask { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .char { display: inline-block; will-change: transform; }
.hero-dot { flex: none; width: .135em; height: .135em; margin: 0 0 .08em .035em; border-radius: 50%; background: var(--dot); }
.hero-intro { max-width: 31em; margin-top: clamp(22px, 2.6vw, 34px); color: var(--ink-2); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; letter-spacing: -.018em; }
.hero-intro em { font-size: 1.1em; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: clamp(26px, 3vw, 38px); }

.hero-gallery { position: relative; z-index: 3; max-width: 1240px; height: clamp(250px, 37vw, 540px); margin: clamp(46px, 6vw, 84px) auto 0; padding: 0 var(--gutter); }
.hero-print { position: absolute; display: block; width: 37%; color: var(--ink); text-decoration: none; }
.hero-print-left { left: 3%; top: 18%; z-index: 1; --rot: -7deg; }
.hero-print-center { left: 31%; width: 38%; top: 0; z-index: 3; --rot: 1.4deg; }
.hero-print-right { right: 3%; top: 21%; z-index: 2; --rot: 6.5deg; }
.hero-print:hover, .hero-print:focus-visible { z-index: 6; }
.hero-print, .print-float { will-change: transform; }
.print-float { display: block; }
.print-card {
  display: block; padding: 9px 9px 0; border-radius: 16px; background: #fff; transform: rotate(var(--rot));
  box-shadow: 0 0 0 1px rgba(20, 20, 19, .05), 0 44px 80px -40px rgba(28, 28, 26, .5), 0 18px 32px -24px rgba(28, 28, 26, .32);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.hero-print:hover .print-card, .hero-print:focus-visible .print-card {
  transform: rotate(0deg) translateY(-16px) scale(1.03);
  box-shadow: 0 0 0 1px rgba(20, 20, 19, .05), 0 60px 100px -40px rgba(28, 28, 26, .55), 0 24px 40px -26px rgba(28, 28, 26, .35);
}
.print-image { display: block; aspect-ratio: 16 / 10.2; overflow: hidden; border-radius: 9px; background: var(--paper-2); }
.print-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.print-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 5px 15px; font-size: clamp(12px, 1.1vw, 15.5px); font-weight: 560; letter-spacing: -.02em; white-space: nowrap; }
.print-caption small { font: 500 clamp(8px, .7vw, 10.5px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-bottom { position: relative; z-index: 5; display: flex; justify-content: space-between; gap: 16px; margin-top: -54px; padding-bottom: 26px; }
.hero-bottom b { font-weight: 500; display: inline-block; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 760px) {
  .hero-gallery { height: 72vw; padding: 0; margin-top: 44px; }
  .hero-print { width: 58%; }
  .hero-print-left { left: -18%; top: 22%; }
  .hero-print-center { left: 21%; width: 58%; top: 2%; }
  .hero-print-right { right: -18%; left: auto; top: 25%; }
  .print-caption small { display: none; }
  .hero-bottom > :last-child { display: none; }
}

/* ---------- Through line ---------- */
.statement-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
.statement-layout > .eyebrow { padding-top: 14px; }
.statement-text { font-size: clamp(36px, 5.1vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -.048em; }
.statement-text em { font-size: 1.1em; letter-spacing: -.02em; }
.w-mono { font: 400 .84em var(--mono); letter-spacing: -.07em; }
.statement-detail { max-width: 39em; margin-top: clamp(32px, 4vw, 60px); padding-left: 26px; border-left: 1px solid var(--line); color: var(--ink-2); font-size: 18px; line-height: 1.68; }
@media (max-width: 860px) { .statement-layout { grid-template-columns: 1fr; } }

/* ---------- Selected work ---------- */
.work-section { padding: clamp(32px, 5vw, 72px) 0 clamp(110px, 13vw, 190px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); align-items: end; gap: 28px 48px; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.section-head h2 { margin-top: 18px; font-size: clamp(58px, 9.2vw, 144px); font-weight: 560; line-height: .88; letter-spacing: -.062em; }
.section-head h2 em { font-size: 1.07em; letter-spacing: -.03em; }
.section-head p { color: var(--ink-2); padding-bottom: 8px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

.projects { display: grid; gap: clamp(88px, 11vw, 170px); margin-top: clamp(72px, 9vw, 130px); }
.project-tile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 6vw, 104px); }
.project-tile-reverse .project-art { order: 2; }
.project-art { position: relative; border-radius: 26px; }
.project-art-link { display: block; border-radius: 26px; }
.project-preview img, .project-preview .rovanta-board, .project-preview .lens { transition: scale 1.1s var(--ease); }
.project-art:hover .project-preview img, .project-art:hover .rovanta-board { scale: 1.025; }
.project-art:hover .phone-back { translate: -6px -8px; }
.project-art:hover .phone-front { translate: 6px -12px; }
.phone { transition: translate 1s var(--ease); }
.art-corner-arrow {
  position: absolute; right: clamp(12px, 1.6vw, 22px); bottom: clamp(12px, 1.6vw, 22px); z-index: 4; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--card); color: var(--ink); text-decoration: none; font-size: 20px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(20, 20, 19, .06), 0 12px 26px -12px rgba(0, 0, 0, .35); transition: transform .6s var(--ease);
}
a.art-corner-arrow { pointer-events: auto; }
.art-corner-arrow span { transition: transform .6s var(--ease); }
.project-art:hover .art-corner-arrow { transform: scale(1.08); }
.project-art:hover .art-corner-arrow span { transform: rotate(45deg); }
.project-meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-copy h3 { margin-top: clamp(22px, 2.6vw, 34px); font-size: clamp(46px, 5.6vw, 88px); font-weight: 560; line-height: .92; letter-spacing: -.058em; }
.project-copy h3 a { text-decoration: none; }
.project-heading { margin-top: 18px; font-size: clamp(19px, 1.65vw, 24px); font-weight: 500; line-height: 1.25; letter-spacing: -.028em; }
.project-summary { max-width: 30em; margin-top: 14px; color: var(--muted); }
.project-copy .text-link { margin-top: 26px; }
.project-meta span:first-child { white-space: nowrap; }
@media (max-width: 520px) { .project-meta { font-size: 10px; letter-spacing: .08em; } }
@media (max-width: 900px) {
  .project-tile { grid-template-columns: 1fr; }
  .project-tile-reverse .project-art { order: 0; }
  .project-preview { aspect-ratio: 1.2; border-radius: 20px; }
}

/* ---------- Other initiatives ---------- */
.ventures-section { background: var(--paper-2); }
.ventures-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
.ventures-head > .eyebrow { padding-top: 14px; }
.ventures-head h2 { font-size: clamp(44px, 6.4vw, 100px); font-weight: 560; line-height: .94; letter-spacing: -.058em; }
.ventures-head h2 em { color: var(--muted); font-size: 1.07em; letter-spacing: -.025em; }
.ventures-head p { margin-top: 26px; max-width: 30em; color: var(--ink-2); }
.venture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(48px, 6vw, 84px); }
.venture-card {
  display: grid; align-content: start; gap: 14px; padding: 16px 16px 30px; border-radius: 26px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line); transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.venture-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -40px rgba(0, 0, 0, .3); }
.venture-index { padding: 6px 6px 0; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.venture-symbol { display: grid; place-items: center; aspect-ratio: 16 / 6.6; overflow: hidden; border-radius: 18px; }
.venture-symbol img { transition: transform 1.2s var(--ease); }
.venture-card:hover .venture-symbol img { transform: scale(1.06) rotate(-4deg); }
.venture-symbol-burning { background: radial-gradient(circle at 50% 50%, #2a2111, #0b0b0a 60%); }
.venture-symbol-burning img { width: 30%; }
.venture-symbol-akyv { background: #e7e7e9; }
.venture-symbol-akyv img { height: 100%; width: auto; clip-path: inset(4%); }
.venture-title { padding: 10px 6px 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 560; letter-spacing: -.04em; }
.venture-desc { padding: 0 6px; max-width: 30em; color: var(--muted); }
.venture-note { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; margin-top: 30px; color: var(--ink-2); }
@media (max-width: 760px) { .ventures-head, .venture-grid { grid-template-columns: 1fr; } }

/* ---------- Skills ---------- */
.skills-section { padding: clamp(110px, 13vw, 180px) 0; overflow: clip; }
.skills-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; gap: 28px 48px; }
.skills-header h2 { margin-top: 18px; font-size: clamp(46px, 6.2vw, 98px); font-weight: 560; line-height: .92; letter-spacing: -.058em; }
.skills-header h2 em { font-size: 1.07em; letter-spacing: -.025em; }
.skills-header-aside p { color: var(--ink-2); }
.skills-header-aside .eyebrow { margin-top: 18px; }
.skills-rail { margin-top: clamp(40px, 5vw, 64px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 34px; }
.skills-rail::-webkit-scrollbar { display: none; }
.skills-track { display: flex; gap: 18px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.skill-card {
  flex: none; display: flex; flex-direction: column; width: clamp(292px, 29vw, 400px); min-height: 480px; padding: 26px; border-radius: 26px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(0, 0, 0, .3); scroll-snap-align: start; scroll-margin-left: var(--gutter);
}
.skill-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.skill-card-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font: 400 16px/1 var(--sans); letter-spacing: 0; color: var(--ink); }
.skill-card h3 { margin-top: 46px; font-size: clamp(28px, 2.5vw, 36px); font-weight: 560; line-height: 1.02; letter-spacing: -.042em; }
.skill-card p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.skill-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.1; }
.skill-logo { width: 15px; height: 15px; flex: none; }
.skill-logo-codex, .skill-logo-claude { width: auto; height: auto; font-size: 13px; line-height: 1; }
.skill-logo-claude { color: #d97757; }
.skill-logo-ts, .skill-logo-stripe { display: grid; place-items: center; border-radius: 4px; color: #fff; font: 700 8px/1 var(--sans); letter-spacing: 0; }
.skill-logo-ts { background: #3178c6; }
.skill-logo-stripe { background: #635bff; font-size: 9.5px; }
.skill-card-proof { display: grid; gap: 6px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.skill-card-proof span { font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.skill-card-proof strong { font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.skill-tags + .skill-card-proof { margin-top: auto; }
.skill-card-dark { background: var(--night); color: var(--fog); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); }
.skill-card-dark .skill-card-top, .skill-card-dark .skill-card-proof span { color: var(--fog-muted); }
.skill-card-dark .skill-card-symbol { color: var(--fog); box-shadow: inset 0 0 0 1px var(--night-line); }
.skill-card-dark p { color: var(--fog-2); }
.skill-card-dark .skill-tag { color: var(--fog-2); box-shadow: inset 0 0 0 1px var(--night-line); }
.skill-card-dark .skill-card-proof { border-color: var(--night-line); }
.skills-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 4px; }
.skills-bottom b { font-weight: 500; }
.skills-meter { display: flex; align-items: center; gap: 14px; }
.skills-count { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.skills-bar { position: relative; width: clamp(90px, 14vw, 180px); height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.skills-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, .143)); }
.skills-section.is-pinned { padding: 0; }
.skills-section.is-pinned .skills-stage { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(76px, 10vh, 104px) 0 clamp(12px, 3vh, 32px); }
.skills-section.is-pinned .skill-card { min-height: clamp(380px, 52vh, 480px); }
.skills-section.is-pinned .skill-card h3 { margin-top: clamp(24px, 4vh, 46px); }
.skills-section.is-pinned .skills-header h2 { font-size: clamp(44px, min(6.2vw, 8.4vh), 98px); }
.skills-section.is-pinned .skills-rail { overflow: visible; scroll-snap-type: none; }
@media (max-width: 860px) { .skills-header { grid-template-columns: 1fr; } }

/* ---------- How I work ---------- */
.approach-section {
  position: relative; color: var(--fog); border-radius: clamp(24px, 3vw, 40px);
  background: radial-gradient(55% 60% at 8% 100%, rgba(201, 169, 156, .13), transparent 70%), radial-gradient(40% 50% at 100% 0%, rgba(140, 150, 175, .08), transparent 70%), var(--night);
}
.approach-section .eyebrow { color: var(--fog-muted); }
.approach-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(44px, 7vw, 120px); }
.approach-intro { position: sticky; top: 140px; }
.approach-intro h2 { margin-top: 20px; font-size: clamp(48px, 5.4vw, 92px); font-weight: 560; line-height: .9; letter-spacing: -.062em; }
.approach-intro h2 em { font-size: 1.07em; letter-spacing: -.025em; }
.approach-intro p { max-width: 25em; margin-top: 30px; color: var(--fog-2); }
.approach-steps { border-top: 1px solid var(--night-line); }
.approach-step { display: grid; grid-template-columns: 58px minmax(0, 1fr) 32px; gap: 12px; padding: clamp(30px, 3.6vw, 48px) 0; border-bottom: 1px solid var(--night-line); }
.approach-n { padding-top: 12px; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--fog-muted); transition: color .5s; }
.approach-step h3 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 520; line-height: 1; letter-spacing: -.045em; transition: transform .7s var(--ease); }
.approach-step p { max-width: 33em; margin-top: 16px; color: var(--fog-2); }
.approach-step b { padding-top: 6px; font-weight: 400; font-size: 22px; color: var(--fog-muted); transition: transform .6s var(--ease), color .4s; }
.approach-step:hover .approach-n, .approach-step:hover b { color: var(--dot); }
.approach-step:hover b { transform: rotate(45deg); }
.approach-step:hover h3 { transform: translateX(10px); }
@media (max-width: 900px) { .approach-layout { grid-template-columns: 1fr; } .approach-intro { position: static; } }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(44px, 7vw, 120px); }
.about-art {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 30px; box-shadow: 0 0 0 1px var(--line);
  background: radial-gradient(circle at 18% 14%, #f7e2d8, transparent 46%), radial-gradient(circle at 86% 88%, #dde5f1, transparent 46%), var(--paper-2);
}
.about-orbit { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 1px solid rgba(20, 20, 19, .16); border-radius: 50%; }
.about-orbit i { position: absolute; border-radius: 50%; }
.about-orbit-one { width: 66%; height: 66%; animation: orbit 28s linear infinite; }
.about-orbit-one i { left: -6px; top: calc(50% - 6px); width: 12px; height: 12px; background: var(--ink); }
.about-orbit-two { width: 88%; height: 52%; rotate: -20deg; animation: orbit 46s linear infinite reverse; border-color: rgba(20, 20, 19, .1); }
.about-orbit-two i { right: 18%; bottom: -6px; width: 12px; height: 12px; background: var(--dot); }
@keyframes orbit { to { transform: rotate(360deg); } }
.about-art-center {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: baseline; justify-content: center; padding-top: .28em;
  width: clamp(140px, 15vw, 216px); height: clamp(140px, 15vw, 216px);
  border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -36px rgba(0, 0, 0, .35);
  font: 600 clamp(64px, 7vw, 104px)/1 var(--sans); letter-spacing: -.07em;
}
.about-art-center span { width: .15em; height: .15em; margin-left: .03em; border-radius: 50%; background: var(--dot); color: transparent; overflow: hidden; }
.about-art-caption { position: absolute; left: 7%; bottom: 7%; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about-copy h2 { margin-top: 20px; font-size: clamp(48px, 6.2vw, 98px); font-weight: 560; line-height: .92; letter-spacing: -.06em; }
.about-copy h2 em { font-size: 1.07em; letter-spacing: -.025em; }
.about-copy p { max-width: 34em; margin-top: 22px; color: var(--ink-2); }
.about-copy h2 + p { margin-top: 36px; }
.about-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.about-pills span { padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } .about-art { max-width: 520px; } }

/* ---------- Contact ---------- */
.contact-section {
  color: var(--fog); text-align: center; border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0; margin-top: clamp(40px, 5vw, 80px);
  padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 11vw, 150px);
  background: radial-gradient(50% 60% at 50% 120%, rgba(201, 169, 156, .16), transparent 70%), var(--night);
}
.contact-section .eyebrow { color: var(--fog-muted); }
.contact-inner { display: grid; justify-items: center; }
.contact-inner h2 { margin-top: 24px; font-size: clamp(52px, 8.6vw, 150px); font-weight: 560; line-height: .9; letter-spacing: -.064em; }
.contact-inner h2 em { font-size: 1.06em; letter-spacing: -.025em; }
.contact-inner p { max-width: 36em; margin-top: 34px; color: var(--fog-2); }
.contact-email {
  display: inline-flex; align-items: center; gap: 18px; margin-top: clamp(46px, 5.5vw, 76px); padding-bottom: 12px; text-decoration: none;
  font-size: clamp(26px, 3.6vw, 54px); font-weight: 480; letter-spacing: -.045em;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; transition: background-size .7s var(--ease);
}
.contact-email span { font-size: .8em; transition: transform .6s var(--ease); }
.contact-email:hover { background-size: 0% 1px; background-position: 100% 100%; }
.contact-email:hover span { transform: rotate(45deg); }
