/* Hyperfix Labs portfolio — "darkroom" system.
   Black studio, a triangles-and-light backdrop on the home hero, project cards as the only colour.
   Lime is the spark: primary button, status dot, hover. Never body text. */
:root {
  --bg: #050506;
  --panel: #0B0C0D;
  --panel-2: #121416;
  --text: #F3F4F1;
  --muted: #9CA19B;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .2);
  --lime: #C8E820;
  --lime-glow: rgba(200, 232, 32, .22);
  --sans: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gut: clamp(18px, 4vw, 56px);
  --r: 24px;
  --ease: cubic-bezier(.2, .8, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* studio backdrop: a faint grid that fades out, and a wash of light from the top right */
body::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1100px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 22%, rgba(200, 232, 32, .10), transparent 70%),
    radial-gradient(50% 40% at 15% 0%, rgba(120, 150, 255, .07), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(90% 75% at 60% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(90% 75% at 60% 20%, #000 0%, transparent 78%); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--lime); color: #000; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
/* no lonely last words: the browser avoids them where it can, studio.js glues the last two words everywhere else */
p, li { text-wrap: pretty; }
.step h3 { text-wrap: balance; }
.site-wrap { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding-inline: var(--gut); }
.skip { position: fixed; top: 10px; left: 10px; z-index: 30; padding: 14px 18px; border-radius: 10px; background: var(--text); color: #000; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ── top bar: sticks, frosted ── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; margin-inline: calc(50% - 50vw); padding: 16px calc(50vw - 50%); background: rgba(5, 5, 6, .62); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.03em; white-space: nowrap; }
.brand::before { content: ''; width: 11px; height: 11px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 18px var(--lime-glow); transform: rotate(45deg); }
.topbar nav { margin-left: auto; display: flex; gap: clamp(4px, 1vw, 10px); font-size: 15px; }
.topbar nav a { padding: 7px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-contact { font-size: 15px; font-weight: 500; padding: 8px 18px; border-radius: 999px; background: var(--text); color: #000; transition: background .2s; }
.nav-contact:hover { background: var(--lime); }

/* ── hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(8px, 2vw, 32px); padding-block: clamp(36px, 6vw, 96px) clamp(56px, 8vw, 120px); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px var(--lime-glow); }
h1 { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(50px, 7.6vw, 112px); line-height: .98; letter-spacing: -.055em; padding-bottom: .08em; background: linear-gradient(180deg, #fff 35%, #a7ada6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { margin-top: clamp(18px, 2.2vw, 30px); max-width: 33em; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); }
.hero-actions { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 16px; transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.button-primary { background: var(--lime); color: #000; box-shadow: 0 10px 40px -10px var(--lime-glow); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(200, 232, 32, .45); }
.button-ghost { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); overflow-wrap: anywhere; }
.button-ghost:hover { background: rgba(255, 255, 255, .06); }
/* proof strip: three true numbers under the buttons */
.hero-proof { list-style: none; max-width: 35em; margin: clamp(26px, 3vw, 40px) 0 0; padding: clamp(16px, 1.8vw, 22px) 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px clamp(20px, 2.6vw, 40px); font-size: 15px; color: var(--muted); }
.hero-proof li { white-space: nowrap; }
.hero-proof b { margin-right: 8px; font-size: 1.6em; font-weight: 600; letter-spacing: -.04em; color: var(--text); }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .21s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* home backdrop: the triangles + light canvas (assets/triangles.js) fills the first screen and fades into the page */
.home::before { display: none; }
.tri-bg { position: absolute; inset: 0 0 auto 0; height: max(100svh, 720px); z-index: 0; overflow: hidden; background: #151618; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.tri-bg canvas { width: 100%; height: 100%; }
/* the home hero owns the whole first screen, so Work never peeks over the fold.
   73px is the top bar's height above the phone breakpoint; the phone rule uses its own. */
.home .hero { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: calc(100svh - 73px);
  padding-top: clamp(24px, calc(22vh - 130px), 96px); }
.home h1 { font-size: clamp(50px, min(7.6vw, 12.5vh), 112px); }
.home .hero-lede { max-width: 41em; color: #C9CDC7; }

/* ── section heads ── */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 14px clamp(20px, 4vw, 64px); padding-bottom: clamp(24px, 3vw, 44px); }
h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.02; }
.section-head p { max-width: 32em; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); }

/* ── project cards ── */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 24px); }
.project { min-width: 0; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s; isolation: isolate; }
.project:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -50px var(--lime-glow); }
.project-wide { grid-column: 1 / -1; }
.project-visual { height: clamp(330px, 31vw, 470px); position: relative; overflow: hidden; background: #15171a; margin: 8px 8px 0; border-radius: calc(var(--r) - 8px); }
.showcase-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .showcase-background { transform: scale(1.03); }
.showcase-app-icon { position: absolute; left: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 14px; object-fit: contain; z-index: 2; filter: drop-shadow(0 6px 14px #0009); }

.project-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text arrow" "tags arrow"; align-items: center; gap: 14px 18px; padding: clamp(18px, 1.7vw, 26px) clamp(20px, 1.9vw, 30px) clamp(20px, 1.9vw, 28px); }
.project-text { grid-area: text; }
.project-info h3 { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.05; }
.project-info p { margin-top: 8px; max-width: 34em; color: var(--muted); font-size: 16px; line-height: 1.5; }
.project-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span { font-size: 13px; padding: 3px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.open-arrow { grid-area: arrow; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s, color .3s, transform .45s var(--ease), box-shadow .3s; }
.project:hover .open-arrow, .note-card:hover .open-arrow { background: var(--lime); color: #000; box-shadow: none; transform: rotate(45deg); }

/* HUD+ */
.meal-background { object-position: 36% center; filter: brightness(.8); }
.phone { position: absolute; width: 185px; height: auto; border: 5px solid #111; border-radius: 22px; transition: transform .7s var(--ease); box-shadow: 14px 20px 30px #0006; }
.phone-back { left: 34%; top: 116px; transform: rotate(-15deg); }
.phone-front { left: 57%; top: 72px; transform: rotate(12deg); }
.project:hover .phone-back { transform: rotate(-9deg) translateY(-8px); }
.project:hover .phone-front { transform: rotate(7deg) translateY(-8px); }

/* GainLock */
.gain-visual { background: #101719; }
.pushup-background { object-position: 36% center; filter: brightness(2.4) saturate(.7); }
.project-word { position: absolute; left: 24px; top: 28px; font-weight: 600; letter-spacing: -.05em; color: #fff; text-shadow: 0 2px 18px #000a; font-size: clamp(32px, 3.7vw, 58px); line-height: 1; }
.gain-phone { position: absolute; width: 175px; right: 7%; top: 49px; height: auto; border: 5px solid #111; border-radius: 23px; transform: rotate(8deg); transition: transform .7s var(--ease); box-shadow: 10px 20px 24px #0005; }
.project:hover .gain-phone { transform: rotate(3deg) translateY(-8px); }

/* HyperNote: a desk drawn in CSS — two notes and the edge dock */
.note-visual { background: radial-gradient(120% 90% at 20% 10%, #3a4356 0%, #232833 45%, #17191f 100%); }
.note-window { position: absolute; width: min(66%, 440px); border-radius: 12px; box-shadow: 0 24px 40px -12px #000a; transition: transform .7s var(--ease); }
.note-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: clamp(12px, 1vw, 14px); font-weight: 600; }
.note-bar i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .55; }
.note-bar b { margin-left: auto; font-weight: 400; font-size: 16px; line-height: 1; opacity: .6; }
.note-window p { padding: 4px 16px 22px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.7; }
.note-visual .note-window { width: min(50%, 340px); }
.note-dark { left: 6%; top: 10%; background: #1d2028; color: #e8eaf0; transform: rotate(-5deg); box-shadow: 0 0 0 1px #ffffff1c, 0 24px 40px -12px #000a; }
.note-yellow { left: 15%; top: 56%; background: #ffd95a; color: #2a2203; transform: rotate(3deg); }
.note-shot { display: block; width: calc(100% - 28px); height: clamp(84px, 9.5vw, 140px); margin: 0 14px 14px; border-radius: 7px; object-fit: cover; object-position: 50% 24%; }
.note-phone { position: absolute; left: 60%; top: 9%; width: min(27%, 190px); height: auto; border-radius: clamp(18px, 2vw, 28px); border: 6px solid #0b0c10; box-shadow: 0 0 0 1px #ffffff24, 0 30px 50px -16px #000c; transform: rotate(4deg); transition: transform .7s var(--ease); }
.project:hover .note-phone { transform: rotate(2deg) translateY(-8px); }
.showcase-app-icons { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: flex; filter: drop-shadow(0 6px 14px #0009); }
.showcase-app-icons img { width: 56px; height: 56px; border-radius: 22.5%; }
.showcase-app-icons img + img { margin-left: -14px; box-shadow: -4px 0 0 #17191f; }
.project:hover .note-dark { transform: rotate(-7deg) translate(-6px, -6px); }
.project:hover .note-yellow { transform: rotate(1deg) translateY(-8px); }
.note-dock { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 10px; border-radius: 16px 0 0 16px; background: #0d0f13; box-shadow: 0 0 0 1px #ffffff1c; }
.note-dock b { color: #e8eaf0; font-weight: 400; font-size: 20px; line-height: 1; }
.note-dock i { width: 22px; height: 22px; border-radius: 7px; }
.chip-dark { background: #2b303b; box-shadow: inset 0 0 0 2px #e8eaf0; }
.chip-yellow { background: #ffd95a; }
.chip-pink { background: #ff9ecb; }

/* Postmaxx: the live site inside a browser frame, bleeding off the corner */
.post-visual { background: radial-gradient(90% 80% at 85% 100%, #ffd60a4d 0%, #0000 60%), #141414; }
.browser { position: absolute; left: 9%; top: 13%; width: 105%; max-width: 760px; border-radius: 12px; overflow: hidden; background: #0b0b0b; box-shadow: 0 0 0 1px #ffffff24, 0 30px 50px -14px #000c; transform: rotate(-3deg); transform-origin: left top; transition: transform .7s var(--ease); }
.project:hover .browser { transform: rotate(-1.5deg) translateY(-8px); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1c1c1c; color: #9a9a9a; font-size: 12px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.browser-bar span { margin-left: 10px; padding: 3px 14px; border-radius: 999px; background: #0b0b0b; }
.browser img { width: 100%; height: auto; }

/* Last Light: full-width and cinematic */
.game-visual { height: clamp(330px, 40vw, 600px); background: #070a0e; }
.game-visual .showcase-background { object-position: center 42%; }
.game-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #000a 0%, transparent 38%); }
.play-chip { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 500; font-size: 15px; }
.play-chip::before { content: ''; border-left: 10px solid #000; border-block: 6px solid transparent; }

/* ── process: three steps, the first one leads ── */
.process { padding-top: clamp(90px, 11vw, 170px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 1.7vw, 24px); }
.step { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 36px); border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); }
.step-lead { background: radial-gradient(80% 90% at 0% 0%, rgba(200, 232, 32, .12), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line-2); }
.step-num { margin-bottom: clamp(44px, 6vw, 104px); font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.step h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.08; }
.step p { margin-top: 10px; max-width: 30em; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ── about + stack ── */
.about { padding-top: clamp(90px, 11vw, 170px); }
.stack { margin-top: clamp(10px, 1.6vw, 22px); padding: clamp(20px, 2.6vw, 38px); border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); }
.stack h3 { font-size: clamp(22px, 1.9vw, 27px); }
.stack-group { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 12px 24px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.stack-group h4 { padding-top: 12px; font-size: 15px; font-weight: 500; color: var(--muted); }
.stack-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(182px, 1fr)); gap: 10px; }
.stack-list li { display: flex; align-items: center; gap: 12px; white-space: nowrap; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; transition: box-shadow .25s, background .25s, transform .35s var(--ease); }
.stack-list li:hover { background: rgba(200, 232, 32, .07); box-shadow: inset 0 0 0 1px rgba(200, 232, 32, .55); transform: translateY(-2px); }
.stack-list svg { flex: none; width: 24px; height: 24px; fill: #e9ebe6; transition: fill .25s; }
.stack-list li:hover svg { fill: var(--lime); }

/* ── contact ── */
.contact { margin-block: clamp(80px, 10vw, 150px) 40px; }
.contact-link { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(28px, 4.4vw, 72px); border-radius: var(--r); background: radial-gradient(70% 120% at 100% 100%, rgba(200, 232, 32, .2), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .4s; }
.contact-link:hover { box-shadow: inset 0 0 0 1px rgba(200, 232, 32, .6), 0 40px 120px -50px rgba(200, 232, 32, .45); }
.contact h2 { font-size: clamp(36px, 6vw, 96px); }
.contact-note { margin-top: 16px; max-width: 26em; font-size: clamp(16px, 1.5vw, 21px); color: var(--muted); }
.contact-email { display: inline-block; margin-top: 8px; font-size: clamp(16px, 1.5vw, 21px); color: var(--text); overflow-wrap: anywhere; }
.contact-arrow { flex: none; width: clamp(64px, 9vw, 130px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #000; font-size: clamp(30px, 4.4vw, 64px); line-height: 1; transition: transform .5s var(--ease); }
.contact-link:hover .contact-arrow { transform: rotate(45deg); }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 26px 44px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-brand { color: var(--text); font-weight: 600; letter-spacing: -.03em; }
footer div { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer div a { padding-block: 10px; margin-block: -10px; transition: color .2s; }
footer div a:hover { color: var(--text); }

/* ── Notes page (/blog) ── */
.notes-hero { padding-block: clamp(40px, 6vw, 96px) clamp(30px, 4vw, 56px); }
.notes-hero h1 { margin-top: 0; font-size: clamp(42px, 6.4vw, 96px); max-width: 12em; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 1.7vw, 24px); padding-bottom: clamp(70px, 9vw, 130px); }
.note-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.note-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -50px var(--lime-glow); }
.note-card img { width: 56px; height: 56px; border-radius: 14px; }
.note-card h2 { font-size: clamp(26px, 2.3vw, 34px); }
.note-card p { color: var(--muted); max-width: 36em; }
.note-card .open-arrow { position: absolute; right: clamp(22px, 2.6vw, 36px); top: clamp(22px, 2.6vw, 36px); }

/* ── big screens ── */
@media (min-width: 1600px) { .phone { width: 225px; } .gain-phone { width: 220px; } }

/* ── tablets ── */
@media (max-width: 1100px) {
  .phone { width: 155px; }
  .gain-phone { width: 150px; right: 5%; }
  .phone-front { left: 56%; top: 62px; }
  .phone-back { left: 32%; top: 95px; }
  .stack-group { grid-template-columns: 1fr; }
  .stack-group h4 { padding-top: 0; }
}

/* ── phones: one column ── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  body::before { height: 760px; background-size: auto, auto, 44px 44px, 44px 44px; }
  .topbar { gap: 10px; padding-block: 12px; }
  .brand { font-size: 17px; }
  .topbar nav { gap: 0; font-size: 14.5px; }
  .topbar nav a { padding: 7px 10px; }
  .nav-contact { display: none; }
  .home .hero, .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 36px 56px; }
  h1, .home h1 { font-size: clamp(36px, 11.2vw, 84px); }
  .button { padding: 13px 22px; }
  .hero-proof { gap: 6px 22px; font-size: 14.5px; }
  /* the home hero owns the whole first screen, like desktop: proof strip sits at the fold, Work starts below it */
  .home .hero { align-items: stretch; min-height: calc(100svh - 58px); padding-block: clamp(28px, 6svh, 56px) 26px; }
  .home .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .home .hero-proof { align-self: stretch; margin-top: auto; }
  .home .hero-actions { margin-bottom: 28px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-num { margin-bottom: 28px; }
  .project-visual, .game-visual { height: clamp(300px, 84vw, 400px); }
  .phone { width: 40%; max-width: 165px; }
  .phone-back { left: 22%; top: 24%; }
  .phone-front { left: 54%; top: 14%; }
  .gain-phone { width: 40%; max-width: 165px; right: 6%; top: 12%; }
  .project-word { font-size: clamp(30px, 9vw, 44px); left: 18px; top: 22px; }
  .note-visual .note-window { width: 50%; }
  .note-dark { left: 5%; top: 9%; }
  .note-yellow { left: 11%; top: 50%; }
  .note-window p { font-size: 13.5px; padding: 2px 14px 16px; line-height: 1.5; }
  .note-shot { height: 22vw; max-height: 110px; }
  .note-phone { left: 57%; top: 8%; width: 29%; border-width: 5px; }
  .note-dock { gap: 9px; padding: 12px 7px; border-radius: 12px 0 0 12px; }
  .note-dock i { width: 17px; height: 17px; border-radius: 5px; }
  .showcase-app-icons img { width: 46px; height: 46px; }
  .browser { left: 6%; top: 12%; width: 125%; }
  .game-visual .showcase-background { object-position: 58% 42%; }
  .open-arrow { width: 46px; height: 46px; font-size: 20px; }
  .stack-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .stack-list li { padding: 10px 14px 10px 12px; gap: 10px; font-size: 14.5px; white-space: nowrap; }
  .contact-link { align-items: flex-end; gap: 14px; }
  .contact h2 { font-size: min(36px, 7.4vw); white-space: nowrap; }
  .contact-arrow { width: 48px; font-size: 24px; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > * { animation: none; }
  * { transition-duration: .01ms !important; }
}
