/* A shared paper surface, actual project screens and a quieter introduction. */
body { background-image: url('assets/paper-grain.svg?v=g2'); }
.site-header { justify-content: flex-end; }
.site-nav { justify-content: flex-end; }
.hero { grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 8%; padding-block: 46px 72px; min-height: min(760px,calc(100svh - 88px)); overflow: visible; }
.hero-art { width: 100%; height: auto; aspect-ratio: 600/630; max-width: 590px; }
.editorial-art { width: 100%; height: 100%; display: block; }
.reference-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { display: block; }
.hero-role { font-size: 16px; margin-bottom: 28px; padding: 0; }
.hero-role::before { content: none; }
.hero-name { font-size: clamp(86px,9.8vw,140px); line-height: 1.04; white-space: nowrap; letter-spacing: -.075em; }
.hero-name-en { font-size: clamp(25px,2.9vw,40px); margin-top: 19px; letter-spacing: -.035em; }
.hero-cta { margin-top: 50px; }
.motion-media { position: relative; width: 100%; min-width: 0; }
.motion-media img { display: block; width: 100%; height: auto; border: 0; }
.motion-toggle { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border: 1px solid #f1efe680; border-radius: 30px; color: #f1efe6; background: #252b24e8; font-size: 11px; line-height: 1.3; z-index: 2; }
.motion-toggle[hidden] { display: none; }
.hero-motion .motion-toggle { right: 8px; bottom: 6px; background: #f1efe6e8; color: var(--ink); border-color: #252b2440; }
.motion-static-note { position: absolute; right: 12px; bottom: 12px; font-size: 11px; background: var(--paper); padding: 5px 8px; }
.intro-section { padding-block: 124px 140px; border-top: 1px solid var(--line); }
.intro-inner { max-width: 720px; margin-inline: auto; }
.intro-portrait { width: 232px; aspect-ratio: 320/435; border-radius: 26px; overflow: hidden; margin-bottom: 40px; background: #fff; box-shadow: 0 1px 2px rgba(37,43,36,.06), 0 18px 40px -24px rgba(37,43,36,.35); }
.intro-portrait img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.intro-lead { font-size: 32px; font-weight: 500; line-height: 1.42; letter-spacing: -.035em; color: var(--ink); max-width: 700px; margin-bottom: 24px; }
.intro-body { font-size: 18px; line-height: 1.85; color: #858a80; max-width: 660px; margin-bottom: 38px; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.intro-links .pill-link { gap: 0; padding: 17px 28px; font-size: 16px; font-weight: 500; }
.pill-link.soft { background: rgba(37,43,36,.06); border-color: transparent; color: #6f746a; }
.pill-link.soft:hover { background: rgba(37,43,36,.11); color: var(--ink); }
.pill-link { display: inline-flex; gap: 30px; align-items: center; border: 1px solid var(--ink); border-radius: 40px; background: var(--ink); color: var(--paper); font-size: 14px; padding: 16px 23px; transition: background .2s; }
.pill-link:hover { background: #46513e; }
.work-visual,.project-cover,.app-gallery { background-image: url('assets/paper-grain.svg?v=g2'); background-blend-mode: multiply; }
.work-visual { padding: 49px 29px 66px; }
.work-visual::before,.work-visual::after { content: none; }
.browser-frame { min-width: 0; width: 100%; background: #30352e; border: 5px solid #30352e; border-top-width: 0; border-radius: 11px; overflow: hidden; box-shadow: 0 18px 29px -15px #252b2470,0 1px 2px #252b2440; }
.browser-chrome { height: 22px; display: flex; align-items: center; gap: 4px; padding-inline: 7px; }
.browser-chrome i { width: 4px; height: 4px; border-radius: 50%; background: #a2a79c; }
.browser-frame>img { display: block; width: 100%; height: auto; border: 0; }
.work-visual .browser-frame { transition: transform .55s var(--ease); }
.work-feature:hover .browser-frame { transform: translateY(-3px); }
.visual-label { font-size: 11px; color: #30382b; right: 29px; display: flex; justify-content: space-between; gap: 12px; line-height: 1.6; }
.visual-label:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-cover .browser-frame { max-width: 1000px; }
.large-figure .browser-frame img { border: 0; }
.flyasia-photo { margin: 28px 0 35px; max-width: 440px; }
.flyasia-photo>img { width: 100%; height: auto; border-radius: 8px; }
.app-gallery { background-color: #dcd5e3; padding: 40px 28px 25px; align-items: flex-start; gap: 44px; }
.app-gallery>div { width: 42%; max-width: 245px; }
.phone-frame { width: 100%; aspect-ratio: 594/1248; padding: 2.86%; border-radius: 12.5% / 5.95%; overflow: hidden; background: #171c1d; box-shadow: 0 17px 26px -15px #252b2480,0 1px 2px #252b2445; }
.phone-frame img { width: 100%; height: 100%; object-fit: contain; border: 0; background: #fff; }
.phone-frame img { border-radius: 10.5% / 4.8%; }
.phone-baked img { background: transparent; }
.app-gallery .image-caption { font-size: 12px; text-align: center; margin-top: 17px; }
.skills { padding-block: 20px 100px; }
.skills-hint { color: var(--muted); font-size: 13px; margin: 0; }
.skills-inner { max-width: 920px; margin-inline: auto; }
.skill-panel { padding: 38px 40px 34px; border-bottom: 1px solid var(--line); }
.is-enhanced .skill-panel { min-height: 342px; padding-bottom: 25px; }
.skill-panel[hidden] { display: none; }
.skill-panel.is-entering { animation: panel-in .18s ease-out; }
.skill-index { font-size: 11px; color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.skill-panel h3 { font-size: 43px; font-weight: 400; letter-spacing: -.045em; margin-bottom: 15px; }
.skill-lead { font-size: 18px; line-height: 1.65; margin-bottom: 16px; }
.skill-panel ul { font-size: 14px; line-height: 1.85; color: var(--muted); padding-left: 18px; margin: 0 0 20px; }
.skill-projects { display: flex; gap: 26px; flex-wrap: wrap; }
.skill-projects .text-link { font-size: 12px; padding-bottom: 3px; }
.skill-dock { display: none; }
.is-enhanced .skill-dock { display: block; padding-top: 30px; }
.skill-track { position: relative; height: 140px; overflow: hidden; touch-action: pan-y; cursor: grab; }
.skill-track:active { cursor: grabbing; }
.skill-tab { position: absolute; left: 0; top: 6px; width: 88px; height: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 12px 7px; border: 1px solid transparent; border-radius: 16px; background: #e7e7db; transform-origin: 50% 50%; user-select: none; }
.skill-tab img { width: 48px; height: 48px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.skill-tab span { font-size: 11px; white-space: nowrap; pointer-events: none; }
.skill-tab[aria-selected=true] { background: #d5dec9; border-color: #788d67; }
.skill-tab:hover { background: #dce4d3; }
.skill-tab:focus-visible { outline-offset: -3px; }
.skill-track.is-manual { display: flex; align-items: center; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-padding: 12px; padding-inline: 12px; scrollbar-width: thin; scrollbar-color: #89957c transparent; }
.skill-track.is-manual .skill-tab { position: relative; left: auto; top: auto; flex: 0 0 88px; transform: none!important; }
.skill-dock-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 15px; font-size: 11px; color: var(--muted); }
.skills-motion { font-size: 11px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 30px; white-space: nowrap; }
.skills-motion:hover { border-color: var(--muted); }
.about-hero { max-width: 900px; grid-template-columns: 1fr; gap: 30px; padding-block: 90px; }
.about-hero>div { order: 2; }
.about-hero h1 { font-size: 48px; margin-bottom: 28px; }
.about-portrait { justify-self: start; order: 1; width: 176px; max-width: none; padding: 0; border: 0; transform: none; box-shadow: none; margin: 0; }
.about-hero .about-lead { font-size: 28px!important; line-height: 1.55; margin-bottom: 23px; }
.about-hero p { max-width: 700px; }
@keyframes panel-in { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width:1050px) {
  .hero { gap: 5%; min-height: 600px; padding-block: 48px 65px; }
  .hero-name { font-size: clamp(78px,10vw,110px); }
  .hero-name-en { font-size: 30px; }
  .work-visual { padding-inline: 22px; }
}
@media (max-width:760px) {
  html:not(.portfolio-ready) .menu-toggle { display: none; }
  html:not(.portfolio-ready) .site-header { height: auto; min-height: 72px; flex-wrap: wrap; gap: 15px; padding-block: 20px; }
  html:not(.portfolio-ready) .site-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; width: 100%; padding: 0; border: 0; box-shadow: none; font-size: 14px; gap: 24px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: auto; gap: 25px; padding-block: 45px 50px; }
  .hero-copy { order: 0; display: block; }
  .hero-art { order: 1; width: min(430px,100%); margin: 0 auto; height: auto; }
  .hero-name { font-size: clamp(75px,21vw,110px); line-height: 1.03; }
  .hero-name-en { font-size: 28px; margin-top: 13px; }
  .hero-role { font-size: 14px; margin-bottom: 20px; max-width: none; }
  .hero-copy>.hero-cta { margin-top: 29px; font-size: 13px; }
  .hero-motion .motion-toggle { right: 2px; bottom: 2px; }
  .intro-section { padding-block: 77px 83px; }
  .intro-portrait { width: 176px; border-radius: 22px; margin-bottom: 32px; }
  .intro-lead { font-size: 24px; line-height: 1.45; margin-bottom: 20px; }
  .intro-body { font-size: 16px; line-height: 1.9; margin-bottom: 29px; }
  .intro-links { gap: 10px; }
  .intro-links .pill-link { padding: 14px 22px; font-size: 14px; }
  .pill-link { font-size: 13px; padding: 14px 19px; gap: 20px; }
  .work-visual { aspect-ratio: 1.18; min-height: 0; padding: 35px 20px 55px; }
  .browser-frame { border-width: 4px; border-top-width: 0; border-radius: 8px; }
  .browser-chrome { height: 18px; gap: 3px; padding-inline: 5px; }
  .browser-chrome i { width: 3px; height: 3px; }
  .visual-label { left: 20px; right: 20px; bottom: 17px; font-size: 10px; }
  .motion-toggle { right: 7px; bottom: 7px; padding: 6px 9px; font-size: 10px; }
  .project-cover { min-height: 0; padding: 27px 20px; }
  .flyasia-photo { max-width: 400px; margin-block: 25px 30px; }
  .app-gallery { gap: 24px; padding: 30px 23px 20px; }
  .app-gallery>div { width: 44%; }
  .skills { padding-block: 15px 65px; }
  .skills .section-heading { flex-direction: column; align-items: flex-start; gap: 15px; }
  .skills-hint { font-size: 12px; }
  .skill-panel { padding: 25px 0 29px; }
  .is-enhanced .skill-panel { min-height: 350px; }
  .skill-panel h3 { font-size: 36px; }
  .skill-lead { font-size: 17px; }
  .skill-panel ul { font-size: 13px; }
  .skill-dock-footer { gap: 12px; align-items: flex-start; line-height: 1.7; }
  .skill-dock-footer>span { max-width: 145px; }
  .skills-motion { padding: 7px 10px; }
  .about-hero { padding-block: 50px 60px; gap: 28px; }
  .about-portrait { display: block; width: 144px; margin: 0; justify-self: start; }
  .about-hero h1 { font-size: 40px; }
  .about-hero .about-lead { font-size: 24px!important; }
}
@media (max-width:480px) {
  .app-gallery { flex-direction: column; align-items: center; gap: 35px; }
  .app-gallery>div { width: min(230px,100%); max-width: 230px; }
}
@media (prefers-reduced-motion:reduce) {
  .skill-panel.is-entering { animation: none; }
  .work-feature:hover .browser-frame { transform: none; }
}

/* Full-bleed hero: the artwork fills the left half edge to edge, as in the reference clip. */
.hero { width: 100%; max-width: none; padding: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; align-items: stretch; min-height: min(max(620px, calc(100svh - 88px)), 960px); }
.hero-art { max-width: none; height: auto; aspect-ratio: auto; align-self: stretch; overflow: hidden; }
.hero-art .editorial-art { position: absolute; inset: 0; }
.reference-ink { object-fit: cover; }
.hero-copy { align-self: center; padding: 60px var(--gutter) 60px clamp(40px,7vw,120px); }
@media (max-width:1050px) {
  .hero { padding: 0; gap: 0; min-height: min(max(560px, calc(100svh - 88px)), 860px); }
  .hero-copy { padding-left: 44px; }
}
@media (max-width:760px) {
  .hero { padding: 38px var(--gutter) 0; min-height: auto; gap: 30px; }
  .hero-copy { padding: 0; align-self: stretch; }
  .hero-art { width: auto; max-width: none; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 600/630; }
}

/* Thinner header on every page; on the home page it sits over the full-height hero. */
.site-header { height: 64px; }
.home .site-header { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; }
.home .hero { min-height: min(max(640px, 100svh), 1000px); }
.home .hero-copy { padding-top: 84px; }
#intro { scroll-margin-top: -38px; }

/* Secondary intro button stays clearly clickable. */
.pill-link.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.pill-link.outline:hover { background: var(--ink); color: var(--paper); }

/* Larger skill section. */
.skills-hint { font-size: 15px; }
.skills-inner { max-width: 1060px; }
.skill-panel { padding: 46px 48px 38px; }
.is-enhanced .skill-panel { min-height: 390px; }
.skill-index { font-size: 13px; margin-bottom: 16px; }
.skill-panel h3 { font-size: 54px; margin-bottom: 18px; }
.skill-lead { font-size: 21px; margin-bottom: 18px; }
.skill-panel ul { font-size: 16.5px; margin-bottom: 24px; }
.skill-projects .text-link { font-size: 14px; }
.skill-track { height: 180px; }
.skill-tab { top: 10px; width: 116px; height: 146px; gap: 14px; border-radius: 20px; }
.skill-tab img { width: 62px; height: 62px; }
.skill-tab span { font-size: 13.5px; }
.skill-track.is-manual { scrollbar-width: none; }
.skill-track.is-manual::-webkit-scrollbar { display: none; }
.skill-track.is-manual .skill-tab { flex-basis: 116px; }
.skill-dock-footer { font-size: 13px; }
@media (max-width:760px) {
  .site-header { height: 58px; }
  .home .hero { min-height: auto; }
  .home .hero-copy { padding-top: 44px; }
  .skill-panel { padding: 30px 0 30px; }
  .is-enhanced .skill-panel { min-height: 370px; }
  .skill-panel h3 { font-size: 42px; }
  .skill-lead { font-size: 18px; }
  .skill-panel ul { font-size: 15px; }
  .skill-track { height: 150px; }
  .skill-tab { top: 8px; width: 96px; height: 124px; gap: 11px; }
  .skill-tab img { width: 50px; height: 50px; }
  .skill-tab span { font-size: 12px; }
  .skill-track.is-manual .skill-tab { flex-basis: 96px; }
}

/* Intro fills one screen so the photo, text and both buttons are visible after "소개 보기". */
.intro-section { min-height: 100svh; display: flex; align-items: center; padding-block: 56px; }
.intro-inner { max-width: 820px; width: 100%; }
.intro-portrait { width: clamp(176px, 27svh, 264px); border-radius: 28px; margin-bottom: clamp(24px, 4svh, 40px); }
.intro-lead { font-size: 36px; max-width: 800px; margin-bottom: 22px; }
.intro-body { font-size: 19px; line-height: 1.8; max-width: 780px; margin-bottom: 14px; }
.intro-body + .intro-links { margin-top: 30px; }
.intro-links .pill-link { padding: 18px 32px; font-size: 17px; }
.about-hero .about-lead { font-size: 34px!important; }
.about-hero p { font-size: 19px; line-height: 1.85; max-width: 780px; }
.about-hero { max-width: 980px; }
.about-ways p { font-size: 17px; line-height: 1.9; color: var(--muted); margin-bottom: 16px; }
@media (max-width:760px) {
  .intro-section { min-height: auto; padding-block: 64px 72px; }
  .intro-portrait { width: 176px; border-radius: 22px; }
  .intro-lead { font-size: 26px; }
  .intro-body { font-size: 16.5px; }
  .intro-links .pill-link { padding: 15px 24px; font-size: 15px; }
  .about-hero .about-lead { font-size: 25px!important; }
  .about-hero p { font-size: 16.5px; }
  .about-ways p { font-size: 15.5px; }
}
.intro-section { padding-block: clamp(28px, 5svh, 56px); }
.intro-portrait { width: clamp(160px, 25svh, 264px); }
@media (min-width:761px) and (max-height:800px) {
  .intro-lead { font-size: 32px; margin-bottom: 16px; }
  .intro-body { font-size: 17.5px; line-height: 1.75; margin-bottom: 10px; }
  .intro-body + .intro-links { margin-top: 22px; }
}
@media (max-width:760px) {
  .intro-section { padding-block: 44px 64px; }
  .intro-portrait { width: 148px; margin-bottom: 22px; }
  .intro-lead { margin-bottom: 16px; }
  .intro-body { line-height: 1.75; margin-bottom: 10px; }
  .intro-body + .intro-links { margin-top: 22px; }
}


/* Hero photo stack: one rounded card at a time, neighbours peeking above and below. */
.hero-photos { position: relative; overflow: hidden; }
.hero-track { position: absolute; left: 14px; right: 14px; top: 0; will-change: transform; }
.hero-card { position: relative; height: var(--card-h, 80vh); margin: 0 0 10px; border-radius: 22px; overflow: hidden; background: #d9d8cc; }
.hero-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 22px; color: #fff; font-size: 15px; letter-spacing: -.01em; background: linear-gradient(180deg, transparent, rgba(16,19,15,.58)); }

/* Project visuals: rounded photo card with a soft shadow; title blurs in on hover. */
.work-visual { padding: 0; min-height: 0; aspect-ratio: 16/10; border-radius: 22px; overflow: hidden; background: #2b302a; box-shadow: 0 1px 2px rgba(37,43,36,.1), 0 30px 60px -32px rgba(37,43,36,.6); align-self: center; }
.work-visual::before { display: none; }
.work-visual .browser-frame { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.work-visual .browser-chrome { display: none; }
.work-visual .browser-frame > img, .work-visual .motion-media, .work-visual .motion-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.work-visual .browser-frame img { transition: transform .8s var(--ease); }
.work-visual:hover .browser-frame img { transform: scale(1.025); }
.visual-link { position: absolute; inset: 0; z-index: 3; }
.visual-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,19,15,.66) 0%, rgba(16,19,15,.2) 36%, transparent 58%); opacity: 0; transition: opacity .4s var(--ease); }
.visual-hover { position: absolute; top: 24px; left: 26px; right: 84px; display: flex; flex-direction: column; gap: 5px; color: #fff; opacity: 0; filter: blur(8px); transform: translateY(4px); transition: opacity .4s var(--ease), filter .4s var(--ease), transform .4s var(--ease); }
.visual-hover strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.visual-hover span { font-size: 14px; opacity: .86; }
.work-visual:hover .visual-link::before, .visual-link:focus-visible::before { opacity: 1; }
.work-visual:hover .visual-hover, .visual-link:focus-visible .visual-hover { opacity: 1; filter: blur(0); transform: none; }
.work-visual::after { z-index: 4; pointer-events: none; top: 20px; right: 20px; border: 0; background: rgba(255,255,255,.88); color: var(--ink); }
.work-feature:hover .work-visual::after { background: #fff; color: var(--ink); }

.contact-links .phone-link { flex-basis: 100%; width: fit-content; font-size: clamp(20px,2.4vw,30px); letter-spacing: -.02em; color: inherit; border-bottom: 1px solid #f1efe66b; padding-bottom: 4px; }
@media (max-width:760px) {
  .hero-photos { aspect-ratio: 4/5; }
  .hero-track { left: 10px; right: 10px; }
  .hero-card { border-radius: 18px; }
  .hero-card figcaption { font-size: 13px; padding: 50px 18px 16px; }
  .work-visual { border-radius: 16px; aspect-ratio: 16/10; padding: 0; }
  .visual-hover { display: none; }
}
.work-feature.bbiyong .work-visual { aspect-ratio: 860/484; }
.work-feature.gabolle .work-visual { aspect-ratio: 2360/1640; }
.work-visual .browser-frame > img, .work-visual .motion-media img { object-position: center; }

/* Detail pages: the team demo sits after the overview as a captioned rounded card. */
.project-hero { padding-bottom: 24px; }
.project-demo { padding-block: 10px 90px; }
.demo-label { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.demo-card { margin: 0; max-width: 980px; border-radius: 22px; overflow: hidden; background: #2b302a; box-shadow: 0 1px 2px rgba(37,43,36,.1), 0 30px 60px -32px rgba(37,43,36,.55); }
.demo-card img, .demo-card .motion-media, .demo-card .motion-media img { display: block; width: 100%; height: auto; }
.demo-caption { font-size: 14px; color: var(--muted); margin: 16px 0 0; max-width: 980px; }
@media (max-width:760px) {
  .project-demo { padding-block: 0 56px; }
  .demo-card { border-radius: 16px; }
}

/* App screens: two identical device frames on the paper, staggered, no colour block behind. */
.app-gallery { background: none; padding: 36px 0 70px; gap: clamp(28px, 6vw, 72px); justify-content: center; align-items: flex-start; }
.app-gallery > div { width: 40%; max-width: 270px; }
.app-gallery > div:nth-child(2) { margin-top: 56px; }
.phone-frame { aspect-ratio: 560/1214; padding: 9px; border-radius: 42px; background: #181b1c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 2px 4px rgba(37,43,36,.12), 0 40px 70px -34px rgba(37,43,36,.55); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: #f5f5f7; }
.app-gallery .image-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 20px; }
@media (max-width:760px) {
  .app-gallery { flex-direction: row; gap: 18px; padding: 24px 0 50px; }
  .app-gallery > div { width: 46%; }
  .app-gallery > div:nth-child(2) { margin-top: 36px; }
  .phone-frame { padding: 6px; border-radius: 28px; }
  .phone-frame img { border-radius: 22px; }
}

/* Screens (GIFs and captures) share one browser frame; real photos stay plain rounded cards. */
.work-visual, .work-feature.bbiyong .work-visual, .work-feature.gabolle .work-visual { aspect-ratio: auto; background: transparent; border-radius: 16px; }
.work-visual .browser-frame { position: relative; inset: auto; border: 6px solid #2f342d; border-top-width: 0; border-radius: 16px; background: #2f342d; box-shadow: none; }
.browser-frame { border: 6px solid #2f342d; border-top-width: 0; border-radius: 16px; background: #2f342d; }
.browser-chrome, .work-visual .browser-chrome, .demo-card .browser-chrome { display: flex; height: 30px; gap: 6px; padding-inline: 10px; }
.browser-chrome i { width: 7px; height: 7px; }
.work-visual .browser-frame > img, .work-visual .motion-media, .work-visual .motion-media img { height: auto; object-fit: initial; border-radius: 0 0 10px 10px; }
.visual-hover { top: 52px; }
.work-visual::after { top: 44px; }
.demo-card { border: 6px solid #2f342d; border-top-width: 0; border-radius: 16px; background: #2f342d; }
.demo-card img, .demo-card .motion-media img { border-radius: 0 0 10px 10px; }
.flyasia-photo img { border-radius: 18px; box-shadow: 0 30px 60px -34px rgba(37,43,36,.55); }
@media (max-width:760px) {
  .browser-frame, .work-visual .browser-frame, .demo-card { border-width: 4px; border-top-width: 0; border-radius: 12px; }
  .browser-chrome, .work-visual .browser-chrome, .demo-card .browser-chrome { height: 20px; gap: 4px; padding-inline: 7px; }
  .browser-chrome i { width: 5px; height: 5px; }
  .work-visual::after { top: 30px; }
}

/* Photo guide dots, vertically centred beside the stack. */
.hero-photos .hero-track { right: 46px; }
.hero-dots { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(37,43,36,.25); cursor: pointer; transition: height .45s var(--ease), background .3s; }
.hero-dots button:hover { background: rgba(37,43,36,.5); }
.hero-dots button[aria-current] { height: 28px; background: var(--ink); }
.hero-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width:760px) {
  .hero-photos .hero-track { right: 32px; }
  .hero-dots { right: 10px; gap: 8px; }
  .hero-dots button { width: 7px; height: 7px; }
  .hero-dots button[aria-current] { height: 22px; }
}
.hero-card { border-radius: 10px; }
.flyasia-photo img { border-radius: 10px; }
@media (max-width:760px) { .hero-card { border-radius: 8px; } }

/* Tighter corners across photos and screen cards. */
.hero-card { border-radius: 6px; }
.flyasia-photo img { border-radius: 6px; }
.intro-portrait { border-radius: 12px; }
.browser-frame, .work-visual, .work-visual .browser-frame, .demo-card, .work-feature.bbiyong .work-visual, .work-feature.gabolle .work-visual { border-radius: 8px; }
.work-visual .browser-frame > img, .work-visual .motion-media img, .demo-card img, .demo-card .motion-media img { border-radius: 0 0 4px 4px; }
@media (max-width:760px) {
  .hero-card { border-radius: 5px; }
  .intro-portrait { border-radius: 10px; }
  .browser-frame, .work-visual .browser-frame, .demo-card { border-radius: 6px; }
}

/* Scroll rendering replaces the whole-section fade. */
.rv-ready .reveal, .rv-ready .motion-ready .reveal { opacity: 1 !important; transform: none !important; }
.motion-ready .work-feature.reveal.is-visible .browser-frame { animation: none; }
.rv-item { opacity: 0; translate: 0 18px; transition: opacity .42s cubic-bezier(.2,.7,.2,1), translate .55s cubic-bezier(.2,.7,.2,1); }
.rv-item.is-in { opacity: 1; translate: 0 0; }

/* Hero photos read as cut off by the top edge. */
.hero-card { border-radius: 0 0 6px 6px; }
.skill-track.is-manual { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
@media (max-width:760px) {
  .hero-card { border-radius: 0 0 5px 5px; }
  /* Phone hero mirrors the desktop: photo column on the left, name on the right. */
  .home .hero { display: grid; grid-template-columns: 44% minmax(0,1fr); gap: 0; padding: 0; min-height: 0; height: min(74svh, 600px); align-items: stretch; }
  .home .hero-art { order: 0; grid-column: 1; grid-row: 1; width: auto; height: 100%; margin: 0; aspect-ratio: auto; }
  .home .hero-photos .hero-track { left: 0; right: 18px; }
  .home .hero-dots { right: 5px; gap: 6px; }
  .home .hero-dots button { width: 5px; height: 5px; }
  .home .hero-dots button[aria-current] { height: 16px; }
  .home .hero-copy { display: block; order: 1; grid-column: 2; grid-row: 1; align-self: center; padding: 58px var(--gutter) 0 16px; }
  .home .hero-role { font-size: 13px; margin-bottom: 14px; }
  .home .hero-name { font-size: clamp(40px, 13vw, 58px); line-height: 1.05; white-space: nowrap; }
  .home .hero-name-en { font-size: clamp(15px, 4.6vw, 20px); margin-top: 8px; display: block; }
  .home .hero-cta { margin-top: 22px; font-size: 12px; }
  .hero-card figcaption { font-size: 11px; padding: 36px 10px 10px; }
  .rv-item { translate: 0 26px; transition-duration: .6s, .7s; }
}
.app-gallery > div:nth-child(2) { margin-top: 0; }
@media (max-width:760px) { .app-gallery > div:nth-child(2) { margin-top: 0; } }
.hero-card { border-radius: 6px; transition: border-radius .25s ease; }
.hero-card.is-front { border-radius: 0 0 6px 6px; }
@media (max-width:760px) { .hero-card { border-radius: 5px; } .hero-card.is-front { border-radius: 0 0 5px 5px; } }

/* Lighter photo stack (no permanent compositing layer) and a shorter phone hero. */
.hero-track { will-change: auto; }
.hero-card img { object-position: center 30%; }
@media (max-width:760px) {
  .home .hero { height: min(58svh, 470px); }
  .home .hero-art { margin-top: 0; }
  .home .hero-photos .hero-track { right: 16px; }
  .home .hero-name { font-size: clamp(38px, 12vw, 54px); }
}

/* Phone hero: name across the top, a wide photo row below that slides right to left. */
@media (max-width:760px) {
  .home .hero { display: flex; flex-direction: column; height: auto; padding: 0; gap: 0; }
  .home .hero-copy { order: 0; grid-column: auto; grid-row: auto; padding: 84px var(--gutter) 26px; align-self: stretch; }
  .home .hero-name { font-size: clamp(56px, 17vw, 76px); }
  .home .hero-name-en { font-size: clamp(20px, 6vw, 26px); margin-top: 10px; }
  .home .hero-art { order: 1; grid-column: auto; grid-row: auto; width: 100%; height: auto; aspect-ratio: 4/3; margin: 0; padding-bottom: 22px; }
  .home .hero-photos .hero-track { display: flex; top: 0; bottom: 22px; left: 0; right: auto; }
  .home .hero-card { flex: 0 0 var(--card-w, 84vw); height: 100%; margin: 0 10px 0 0; border-radius: 6px; }
  .home .hero-card.is-front { border-radius: 0 6px 6px 0; }
  .home .hero-dots { top: auto; bottom: 4px; right: auto; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 7px; }
  .home .hero-dots button { width: 6px; height: 6px; transition: width .45s var(--ease), background .3s; }
  .home .hero-dots button[aria-current] { width: 20px; height: 6px; }
  .hero-card figcaption { font-size: 12px; padding: 44px 14px 12px; }
}
@media (max-width:760px) {
  .home .hero-photos { padding-inline: var(--gutter); }
  .home .hero-photos .hero-track { left: 0; }
  .home .hero-card { margin: 0 var(--card-gap, var(--gutter)) 0 0; }
  .home .hero-card, .home .hero-card.is-front { border-radius: 6px; }
}

/* AI section on the home page and its detail list. */
.ai-section { padding-block: 40px 70px; }
.ai-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.ai-points article { padding: 30px 0 8px; }
.ai-num { display: block; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.ai-points h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.ai-points p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0; }
.ai-test-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; padding: 0; margin: 22px 0 34px; list-style: none; }
.ai-test-list li { font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.35); }
@media (max-width:760px) {
  .ai-points { grid-template-columns: 1fr; }
  .ai-points article { padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
  .ai-points h3 { font-size: 19px; }
  .ai-test-list { grid-template-columns: 1fr; }
}

/* Soft colour field behind the whole page, measured from the reference: a sage glow upper left,
   a warm cream glow upper right, settling to the plain paper lower down. Static, like the reference. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 12%, rgba(184,205,160,.55), transparent 70%),
    radial-gradient(45% 55% at 92% 8%, rgba(236,226,190,.6), transparent 70%),
    radial-gradient(60% 50% at 70% 95%, rgba(196,183,212,.22), transparent 70%); }
body { isolation: isolate; }
.ai-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px, 46%); align-items: center; gap: 24px; }
.ai-object { display: block; width: 100%; aspect-ratio: 1/1; max-height: 520px; }
@media (max-width:760px) {
  .ai-hero-grid { grid-template-columns: 1fr; gap: 6px; }
  .ai-object { max-width: 360px; margin: 0 auto; }
}

/* The AI object may run behind the title text. */
.ai-hero-grid { position: relative; display: block; }
.ai-hero-grid > div { position: relative; z-index: 1; }
.ai-object { position: absolute; top: -140px; right: -6%; width: min(760px, 62vw); height: min(760px, 62vw); max-height: none; aspect-ratio: auto; z-index: 0; pointer-events: none; }
.project-hero:has(.ai-object) { min-height: min(560px, 62vw); }
@media (max-width:760px) {
  .ai-object { position: relative; top: auto; right: auto; width: 100%; height: 380px; margin: -40px auto -30px; }
  .project-hero:has(.ai-object) { min-height: 0; }
}

/* Photo stack can be dragged. */
.hero-photos { cursor: grab; touch-action: pan-x; user-select: none; -webkit-user-select: none; }
.hero-photos.is-dragging { cursor: grabbing; }
.hero-card img { -webkit-user-drag: none; pointer-events: none; }
@media (max-width:760px) { .hero-photos { touch-action: pan-y; } }
.ai-object { mix-blend-mode: multiply; }

/* Looping skill rail: horizontal drags are handled in script, vertical swipes still scroll the page. */
.skill-track, .skill-track.is-manual { touch-action: pan-y; overflow: hidden; }

/* Out-of-focus petal field: right half of the home hero and the top of the about page. */
.hero, .about-hero { position: relative; }
.petal-field { position: absolute; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(80% 90% at 75% 100%, #c6d2b6, #f1efe6 70%);
  -webkit-mask-image: radial-gradient(120% 95% at 70% 40%, #000 45%, transparent 100%); mask-image: radial-gradient(120% 95% at 70% 40%, #000 45%, transparent 100%); }
.petal-field canvas { display: block; width: 100%; height: 100%; }
.home .hero .petal-field { top: 0; bottom: 0; left: 50%; right: 0; }
.about-hero .petal-field { top: -64px; left: calc(50% - 50vw); right: calc(50% - 50vw); height: calc(100% + 120px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.home .hero-copy, .about-hero > :not(.petal-field) { position: relative; z-index: 1; }
@media (max-width:760px) {
  .home .hero .petal-field { left: 0; bottom: auto; height: 340px; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
}

/* The petal field runs under the whole home hero; the photo stack sits on top of it. */
.home .hero .petal-field { left: 0; right: 0; top: 0; bottom: 0; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.home .hero-photos { background: transparent; }
@media (max-width:760px) {
  .home .hero .petal-field { height: auto; bottom: 0; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
}
/* Photos float on the field: the stack is inset so the petals show around it. */
.home .hero-photos .hero-track { left: clamp(28px, 4vw, 64px); right: 74px; }
.home .hero-photos .hero-dots { right: 40px; }
.home .hero-card { box-shadow: 0 2px 4px rgba(37,43,36,.08), 0 30px 60px -30px rgba(37,43,36,.45); }
@media (max-width:760px) {
  .home .hero-photos .hero-track { left: 0; right: auto; }
  .home .hero-photos .hero-dots { right: auto; }
  .home .hero .petal-field { -webkit-mask-image: none; mask-image: none; }
  .home .hero-art { padding-bottom: 26px; }
}
