@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-300-latin.woff2") format("woff2"); font-style: normal; font-weight: 300; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-400-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-500-latin.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-600-latin.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-700-latin.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-800-latin.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("assets/fonts/kanit-900-latin.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }

:root {
  --black: #0c0c0c;
  --soft: #d7e2ea;
  --muted: #9ba4aa;
  --line: rgba(215, 226, 234, .26);
  --paper: #fff;
  --ink: #0c0c0c;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--black); color: var(--soft); font-family: "Kanit", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; width: 100%; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.hero { position: relative; min-height: 100dvh; overflow: clip; background: var(--black); isolation: isolate; }
.nav { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding-top: 28px; }
.nav a, .nav-contact { border: 0; background: transparent; color: var(--soft); font-size: clamp(.72rem, 1.4vw, 1.38rem); font-weight: 500; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; transition: opacity .2s ease, color .2s ease; }
.nav a:nth-child(2), .nav a:nth-child(3), .nav-contact { text-align: center; }
.nav-contact { justify-self: stretch; text-align: right; }
.nav a:hover, .nav a:focus-visible, .nav-contact:hover, .nav-contact:focus-visible { color: #fff; opacity: .7; }
.hero-title-wrap { position: absolute; z-index: 1; top: 12.5vh; left: 0; width: 100%; overflow: hidden; pointer-events: none; transform: translate3d(0, var(--hero-title-y, 0px), 0); will-change: transform; }
.hero-heading { background: linear-gradient(180deg, #646973 0%, #bbccd7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { width: 100%; margin: 0; padding-left: 1.9vw; font-size: clamp(5rem, 16.7vw, 16.8rem); font-weight: 900; letter-spacing: 0; line-height: .8; text-align: center; white-space: nowrap; }
.hero-portrait { position: absolute; z-index: 2; bottom: 0; left: 50%; width: clamp(285px, 39vw, 520px); aspect-ratio: .82; margin: 0; overflow: hidden; transform: translate3d(calc(-50% + var(--hero-pointer-x, 0px)), calc(var(--hero-scroll-y, 0px) + var(--hero-pointer-y, 0px)), 0) rotate(var(--hero-pointer-rotate, 0deg)) scale(var(--hero-pointer-scale, 1)); transform-origin: center bottom; will-change: transform; transition: transform .58s cubic-bezier(.16, 1, .3, 1); }
.hero-portrait::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 65%, var(--black) 100%); pointer-events: none; }
.hero-portrait img { height: 100%; object-fit: cover; filter: grayscale(.65) contrast(1.15) brightness(.9); transform: scale(1.035); transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.hero-avatar { z-index: 3; width: clamp(440px, 48vw, 660px); bottom: -28px; }
.hero-avatar::after { background: linear-gradient(180deg, transparent 76%, var(--black) 100%); }
.hero-avatar img { object-fit: contain; object-position: center bottom; filter: none; transform: none; }
.hero-avatar-shoulders { width: clamp(520px, 56vw, 820px); aspect-ratio: 1.095; bottom: -12px; overflow: visible; }
.hero-avatar-shoulders::after { display: none; }
.hero-avatar-shoulders img { object-fit: contain; object-position: center bottom; }
.hero.is-pointer-active .hero-portrait { transition-duration: .18s; }
.hero.is-scrolling .hero-portrait { transition-duration: .01s; }
.hero.is-pointer-active .hero-portrait img { transform: scale(1.08); }
.hero.is-pointer-active .hero-avatar img { transform: scale(1.035); }
.hero-portrait figcaption { position: absolute; z-index: 1; right: 16px; bottom: 17px; color: rgba(255,255,255,.76); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.hero-bottom { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; display: flex; align-items: end; justify-content: space-between; padding-bottom: 34px; }
.hero-bottom p { margin: 0; color: var(--soft); font-size: clamp(.72rem, 1.35vw, 1.42rem); font-weight: 300; letter-spacing: .06em; line-height: 1.23; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 49px; padding: 0 28px; border: 2px solid #fff; border-radius: 999px; outline: 2px solid #fff; outline-offset: -5px; background: linear-gradient(123deg, #18011f 7%, #b600a8 37%, #7621b0 72%, #be4c00 100%); box-shadow: 4px 4px 12px #7721b1 inset, 0 4px 4px rgba(181,1,167,.25); color: #fff; font-size: clamp(.7rem, 1.1vw, 1rem); font-weight: 500; letter-spacing: .11em; transition: transform .18s ease, filter .18s ease; }
.contact-button:hover, .contact-button:focus-visible { filter: brightness(1.15); transform: translateY(-2px); }
.contact-button:active { transform: translateY(0) scale(.98); }
.contact-button:focus-visible, .live-button:focus-visible, .dialog-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.reel { min-height: 73vh; padding: 110px 0 64px; overflow: hidden; background: var(--black); }
.reel-row { display: flex; width: max-content; gap: 12px; margin-bottom: 12px; will-change: transform; }
.reel-row figure { width: clamp(250px, 30vw, 420px); height: clamp(160px, 19vw, 270px); margin: 0; overflow: hidden; border-radius: 18px; background: #181818; }
.reel-row img { height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.06); }
.reel-row-forward { transform: translate3d(-24%, 0, 0); }
.reel-row-backward { transform: translate3d(-47%, 0, 0); }

.about { position: relative; display: grid; min-height: 100dvh; place-items: center; overflow: hidden; padding-top: 100px; padding-bottom: 100px; }
.about-core { position: relative; z-index: 2; display: flex; max-width: 640px; flex-direction: column; align-items: center; text-align: center; }
.about-title { margin: 0; font-size: clamp(3.6rem, 11vw, 10.3rem); font-weight: 900; line-height: .88; }
.about-copy { max-width: 545px; margin: clamp(42px, 6vw, 75px) 0; color: var(--soft); font-size: clamp(1rem, 1.7vw, 1.38rem); font-weight: 500; line-height: 1.5; }
.about-copy span { color: rgba(215,226,234,.2); transition: color .25s ease; }
.about-copy span.is-lit { color: var(--soft); }
.decor { position: absolute; z-index: 1; width: clamp(104px, 14vw, 214px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: saturate(1.25) contrast(1.15); opacity: .84; mix-blend-mode: screen; will-change: transform; animation: decor-drift 8s ease-in-out infinite alternate; }
.decor-moon { top: 5%; left: 3%; object-position: 68% 50%; }
.decor-cube { top: 5%; right: 3%; object-position: 70% 46%; animation-delay: -2.3s; }
.decor-smile { bottom: 7%; left: 8%; object-position: 50% 50%; animation-delay: -4.7s; }
.decor-cursor { right: 8%; bottom: 7%; object-position: 70% 48%; animation-delay: -6.1s; }
@keyframes decor-drift { from { transform: translate3d(0, 0, 0) rotate(-3deg); } to { transform: translate3d(0, -18px, 0) rotate(4deg); } }

.services { position: relative; z-index: 3; margin-top: -48px; border-radius: 48px 48px 0 0; background: var(--paper); color: var(--ink); }
.services-shell { padding: clamp(82px, 11vw, 158px) 0 clamp(88px, 11vw, 160px); }
.services h2 { margin: 0 0 clamp(64px, 10vw, 135px); font-size: clamp(4.3rem, 12vw, 11rem); font-weight: 900; line-height: .78; text-align: center; }
.service-list { max-width: 1160px; margin-inline: auto; }
.service-item { display: grid; grid-template-columns: clamp(90px, 15vw, 170px) minmax(0, 1fr); gap: 22px; padding: clamp(22px, 3.2vw, 48px) 0; border-top: 1px solid rgba(12,12,12,.14); transition: padding .35s cubic-bezier(.16, 1, .3, 1), background-color .35s ease; }
.service-item:last-child { border-bottom: 1px solid rgba(12,12,12,.14); }
.service-item > span { font-size: clamp(3.8rem, 8.6vw, 8.8rem); font-weight: 900; line-height: .72; }
.service-item h3 { margin: 0; font-size: clamp(1rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: .02em; }
.service-item p { max-width: 720px; margin: 10px 0 0; color: rgba(12,12,12,.58); font-size: clamp(.9rem, 1.45vw, 1.22rem); font-weight: 300; line-height: 1.5; }
.service-item h3, .service-item > span, .service-item p { transition: transform .35s cubic-bezier(.16, 1, .3, 1), color .25s ease; }
@media (hover: hover) { .service-item:hover { padding-inline: 18px; background: #f0f4f7; } .service-item:hover > span, .service-item:hover h3 { transform: translateX(10px); } .service-item:hover p { transform: translateX(16px); color: rgba(12,12,12,.76); } }

.projects { position: relative; z-index: 4; margin-top: -48px; padding: clamp(86px, 11vw, 158px) 0 0; border-radius: 48px 48px 0 0; background: var(--black); }
.projects-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: clamp(58px, 8vw, 116px); }
.projects-intro h2 { margin: 0; font-size: clamp(4.3rem, 12vw, 11rem); font-weight: 900; line-height: .78; }
.projects-intro p { max-width: 340px; margin: 0; color: var(--soft); font-size: clamp(.9rem, 1.4vw, 1.15rem); font-weight: 300; line-height: 1.5; }
.project-stack { position: relative; }
.project-stack::after { position: relative; z-index: 5; left: 50%; display: block; width: 100vw; height: clamp(190px, 24vw, 360px); content: ""; background: var(--black); transform: translateX(-50%); }
.project-stage { position: sticky; z-index: var(--layer); top: calc(64px + var(--offset)); padding-bottom: clamp(22px, 4vw, 52px); }
.project-stage.is-retired { visibility: hidden; pointer-events: none; }
.project-card { position: relative; padding: clamp(15px, 2.5vw, 36px); border: 2px solid var(--soft); border-radius: clamp(28px, 4vw, 60px); background: var(--black); transform: scale(var(--card-scale, 1)); transform-origin: center top; box-shadow: 0 -8px 26px rgba(0,0,0,.2); opacity: var(--card-opacity, 1); will-change: transform, opacity; transition: box-shadow .3s ease; }
.project-card.is-covered { box-shadow: 0 -18px 36px rgba(0,0,0,.5); }
.project-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2vw, 28px); margin-bottom: 24px; }
.project-card header strong { font-size: clamp(4.1rem, 9vw, 10rem); font-weight: 900; line-height: .72; }
.project-card header small { display: block; margin-bottom: 7px; color: var(--soft); font-size: clamp(.72rem, 1vw, 1rem); font-weight: 600; letter-spacing: .08em; }
.project-card header h3 { margin: 0; color: var(--soft); font-size: clamp(1rem, 1.8vw, 1.7rem); font-weight: 400; }
.live-button { min-height: 42px; padding: 0 18px; border: 2px solid var(--soft); border-radius: 999px; background: transparent; color: var(--soft); font-size: clamp(.67rem, .9vw, .9rem); font-weight: 500; letter-spacing: .08em; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.live-button:hover, .live-button:focus-visible { background: var(--soft); color: var(--black); transform: translateY(-2px); }
.project-images { display: grid; grid-template-columns: .7fr 1.3fr; gap: 14px; height: clamp(320px, 43vw, 580px); }
.project-images > div { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; min-height: 0; }
.project-images img { min-width: 0; min-height: 0; height: 100%; border-radius: clamp(22px, 3vw, 46px); object-fit: cover; filter: saturate(.93) contrast(1.05); }
.project-images-1980 > img { object-position: center 44%; }

.projects-outro { position: relative; z-index: 6; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(circle at 78% 28%, rgba(182, 0, 168, .12), transparent 31%), var(--black); }
.projects-outro::before { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; content: ""; background: linear-gradient(180deg, rgba(215,226,234,.22), transparent 72%); opacity: .48; }
.projects-outro > .shell { position: relative; z-index: 1; padding: 28px 0 clamp(86px, 10vw, 150px); }
.projects-outro-rail { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .12em; }
.projects-outro-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; padding: clamp(70px, 9vw, 132px) 0 clamp(62px, 7vw, 102px); }
.projects-outro-kicker { margin: 0 0 21px; color: #d559cf; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; }
.projects-outro h2 { margin: 0; color: var(--soft); font-size: clamp(3.6rem, 8.6vw, 8.7rem); font-weight: 800; letter-spacing: -.035em; line-height: .78; }
.projects-outro-cta { margin-bottom: 8px; }
.project-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-index button { position: relative; display: grid; min-width: 0; gap: 18px; padding: 24px 20px 26px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--soft); text-align: left; transition: background-color .25s ease, color .25s ease; }
.project-index button:last-child { border-right: 0; }
.project-index button::after { position: absolute; right: 18px; bottom: 22px; content: "↗"; color: #d559cf; font-size: 14px; transition: transform .25s ease; }
.project-index span, .project-index small { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 400; letter-spacing: .08em; }
.project-index strong { padding-right: 24px; font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 500; }
@media (hover: hover) { .project-index button:hover { background: var(--soft); color: var(--black); } .project-index button:hover::after { transform: translate(3px, -3px); } .project-index button:hover span, .project-index button:hover small { color: rgba(12,12,12,.62); } }

.footer { position: relative; z-index: 8; padding: 0 0 30px; }
.footer::before { position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; height: 100%; content: ""; background: linear-gradient(180deg, #080808 0%, var(--black) 100%); transform: translateX(-50%); }
.footer p { margin: 0; }
.footer-rail { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .11em; }
.footer-rail a { color: inherit; text-decoration: none; transition: color .18s ease; }
.footer-rail a:hover, .footer-rail a:focus-visible { color: #fff; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) auto; align-items: end; gap: 26px clamp(28px, 5vw, 72px); padding: clamp(48px, 6vw, 82px) 0; }
.footer-name { color: var(--soft); font-size: clamp(1.1rem, 1.8vw, 1.65rem); font-weight: 500; letter-spacing: .05em; }
.footer-name span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: .58em; font-weight: 400; letter-spacing: .08em; }
.footer-note { margin-top: 9px !important; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.footer-contact-block { display: grid; gap: 10px; }
.footer-label { color: #d559cf; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .12em; }
.footer-contact-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .05em; }
.footer-contact-links a { color: inherit; text-decoration: none; transition: color .18s ease; }
.footer-contact-links a:hover, .footer-contact-links a:focus-visible { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; }

.dialog { width: min(calc(100% - 32px), 620px); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid rgba(215,226,234,.5); border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: #141414; color: var(--soft); box-shadow: 0 25px 70px rgba(0,0,0,.55); }
.dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(215,226,234,.12); color: var(--soft); font-size: 28px; line-height: 1; }
.dialog-kicker { margin: 0 0 13px; color: #d559cf; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; }
.dialog h2 { max-width: 12ch; margin: 0; font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 800; line-height: .94; }
.dialog > p:not(.dialog-kicker) { margin: 25px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.dialog dl { display: grid; gap: 16px; margin: 31px 0 0; }
.dialog dl div { padding-top: 13px; border-top: 1px solid var(--line); }
.dialog dt { color: #fff; font-size: 13px; font-weight: 500; }
.dialog dd { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.contact-list { display: grid; gap: 12px; margin-top: 30px; }
.contact-list > * { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--soft); text-decoration: none; }
.contact-list span { color: #d559cf; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; }
.contact-list strong { font-size: clamp(.92rem, 2vw, 1.1rem); font-weight: 500; text-align: right; }
.contact-list a { transition: color .18s ease, transform .18s ease; }
.contact-list a:hover, .contact-list a:focus-visible { color: #fff; transform: translateX(-3px); }
.case-preview { margin: 28px 0 0; }
.case-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.case-preview-heading span { color: #d559cf; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.case-preview-heading p { margin: 0; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .05em; line-height: 1.4; text-align: right; }
.case-preview video { display: block; width: 100%; max-height: min(56dvh, 560px); border-radius: 16px; background: #000; object-fit: contain; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; }
.case-gallery figure { min-width: 0; margin: 0; }
.case-gallery figure:first-child { grid-column: 1 / -1; }
.case-gallery img { aspect-ratio: 16 / 9; border-radius: 14px; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.case-gallery figure:first-child img { aspect-ratio: 16 / 10; object-position: center 43%; }
.case-gallery figcaption { margin-top: 7px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .07em; line-height: 1.45; }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .nav { grid-template-columns: repeat(2, 1fr); gap: 13px 10px; padding-top: 18px; }
  .nav a:nth-child(2), .nav a:nth-child(3), .nav-contact { text-align: left; }
  .nav-contact { justify-self: auto; }
  .hero-title-wrap { top: 12.5vh; }
  .hero h1 { padding-left: 0; font-size: clamp(4.4rem, 18.4vw, 8rem); line-height: .84; }
  .hero-portrait { width: min(76vw, 380px); height: 53vh; bottom: 105px; }
  .hero-avatar { width: min(120vw, 600px); height: auto; aspect-ratio: 1.095; bottom: -12px; }
  .hero-bottom { align-items: start; padding-bottom: 24px; }
  .hero-bottom p { max-width: 155px; font-size: 11px; }
  .contact-button { min-height: 43px; padding: 0 18px; font-size: 10px; }
  .reel { min-height: 63vh; padding: 84px 0 42px; }
  .reel-row { gap: 8px; margin-bottom: 8px; }
  .reel-row figure { width: 224px; height: 145px; border-radius: 11px; }
  .about { min-height: 88dvh; padding-top: 110px; padding-bottom: 110px; }
  .about-core { max-width: 315px; }
  .about-copy { margin: 34px 0 45px; font-size: 15px; }
  .decor { width: 92px; }
  .decor-moon { left: -17px; }
  .decor-cube { right: -17px; }
  .decor-smile { left: 1px; }
  .decor-cursor { right: 1px; }
  .services, .projects { margin-top: -30px; border-radius: 30px 30px 0 0; }
  .services-shell { padding-top: 76px; }
  .services h2 { font-size: clamp(3.7rem, 17vw, 6.6rem); }
  .service-item { grid-template-columns: 72px 1fr; gap: 14px; }
  .service-item > span { font-size: 4.5rem; }
  .projects { padding-top: 76px; }
  .projects-intro { display: block; margin-bottom: 50px; }
  .projects-intro h2 { font-size: clamp(3.7rem, 17vw, 6.6rem); }
  .projects-intro p { margin-top: 27px; }
  .project-stack::after { height: 72px; }
  .project-stage { position: relative; top: auto; padding-bottom: 22px; }
  .project-card { padding: 16px; border-width: 1px; transition: box-shadow .3s ease, transform .55s cubic-bezier(.16,1,.3,1), opacity .55s ease; }
  .project-card header { grid-template-columns: auto 1fr; margin-bottom: 17px; }
  .project-card header strong { font-size: 4.5rem; }
  .live-button { grid-column: 1 / -1; width: 100%; }
  .project-images { height: 335px; gap: 8px; }
  .project-images > div { gap: 8px; }
  .project-images img { border-radius: 16px; }
  .case-gallery { gap: 8px; }
  .case-gallery img { border-radius: 11px; }
  .case-preview-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .case-preview-heading p { text-align: left; }
  .case-preview video { max-height: 54dvh; border-radius: 13px; }
  .projects-outro::before { display: none; }
  .projects-outro > .shell { padding-top: 20px; padding-bottom: 72px; }
  .projects-outro-main { grid-template-columns: 1fr; align-items: start; padding: 58px 0 54px; }
  .projects-outro h2 { font-size: clamp(3.35rem, 16vw, 5.4rem); }
  .projects-outro-cta { justify-self: start; margin: 0; }
  .project-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-index button { min-height: 132px; border-bottom: 1px solid var(--line); }
  .project-index button:nth-child(2) { border-right: 0; }
  .project-index button:nth-last-child(-n + 2) { border-bottom: 0; }
  .footer { padding-bottom: 24px; }
  .footer-main { grid-template-columns: 1fr; align-items: flex-start; gap: 27px; padding: 48px 0; }
  .footer-rail { align-items: flex-start; }
  .footer-contact-links { justify-content: flex-start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .contact-list > * { align-items: flex-start; flex-direction: column; gap: 5px; }
  .contact-list strong { text-align: left; }
}
