:root {
  --paper:#f7f4ec; --card:#fffdf7; --ink:#283a31; --green:#315b48; --muted:#6d746b;
  --accent:#de7449; --line:#d9d9ca; --page:1180px; --nav-height:88px;
  font-family:"DM Sans","Noto Sans SC",sans-serif; color:var(--ink); background:var(--paper); font-synthesis:none;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; scroll-padding-top:110px; }
body { margin:0; background:var(--paper); color:var(--ink); overflow-x:clip; }
body.modal-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button { color:inherit; cursor:pointer; }
button,a { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
img { max-width:100%; display:block; }
figure,h1,h2,h3,h4,p { margin:0; }
h1,h2,h3,h4 { text-wrap:balance; }
p { line-height:1.8; }
.skip-link { position:fixed; top:-100px; left:20px; z-index:100; padding:12px 18px; background:var(--green); color:white; border-radius:8px; }
.skip-link:focus { top:12px; }
.site-nav,.hero,.section,.site-footer { width:min(var(--page),calc(100% - 80px)); margin-inline:auto; }
.site-nav { position:sticky; top:0; z-index:30; height:var(--nav-height); display:flex; align-items:center; justify-content:space-between; gap:25px; background:#f7f4eced; backdrop-filter:blur(18px); border-bottom:1px solid #d9d9ca80; }
.brand-mark { display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; letter-spacing:-.03em; white-space:nowrap; }
.brand-mark img { width:28px; height:28px; object-fit:cover; border-radius:50%; transition:transform .35s; }
.brand-mark:hover img { transform:rotate(-25deg) scale(1.15); }
.nav-links { position:relative; display:flex; align-items:center; justify-content:center; gap:25px; margin-left:auto; font-size:12px; }
.nav-links a { position:relative; padding:13px 0; white-space:nowrap; transition:color .2s,transform .2s; }
.nav-links a:hover { transform:translateY(-3px); color:var(--accent); }
.nav-links a.active { color:var(--accent); }
.nav-indicator { position:absolute; bottom:3px; left:0; height:2px; width:var(--nav-indicator-w,25px); background:var(--accent); transform:translateX(var(--nav-indicator-x,0px)); transition:transform .35s,width .35s; }
.language-toggle { display:flex; gap:7px; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--card); border-radius:30px; min-height:40px; min-width:77px; padding:8px 11px; font-size:11px; }
.language-toggle span { color:var(--muted); }
.language-toggle span.active { color:var(--ink); font-weight:700; }
.language-toggle i { width:9px; height:1px; background:var(--line); transform:rotate(-35deg); }
.menu-button { display:none; }

.hero { height:calc(100svh - var(--nav-height)); min-height:480px; position:relative; display:grid; grid-template-columns:1.15fr .85fr; align-items:center; gap:50px; padding:55px 0 85px; isolation:isolate; perspective:1200px; }
.hero::before { content:""; position:absolute; inset:8% -2% 10% 35%; z-index:-1; background:radial-gradient(ellipse at calc(50% + var(--mouse-x,0)*30%) calc(50% + var(--mouse-y,0)*20%),#ecdec785,transparent 68%); pointer-events:none; transform:translateY(calc(var(--scroll,0)*70px)); }
.hero-type { position:relative; z-index:2; transform:translateY(calc(var(--scroll,0)*-25px)); }
.hero-hello { font-size:16px; letter-spacing:.1em; color:var(--muted); margin-bottom:30px; }
.hero-name { font:400 min(12.8vw,18svh,164px)/.9 "DM Serif Display",Georgia,serif; letter-spacing:-.045em; margin:0 0 24px; }
.hero-profile { max-width:35rem; margin-bottom:20px; color:var(--green); font-size:15px; line-height:1.75; }
.name-line { display:block; width:max-content; white-space:nowrap; }
.name-line + .name-line { margin-top:.1em; }
.hero-name em { font-weight:400; color:var(--green); }
.letter { display:inline-block; position:relative; transform:translate3d(var(--tx,0px),var(--ty,0px),0) rotate(var(--rot,0deg)) scale(var(--scale,1)); transition:transform .28s cubic-bezier(.2,.9,.25,1.5),color .25s,text-shadow .25s; text-shadow:1px 1px #f7f4ec,2px 3px #c8cabc66; }
.letter:hover { color:var(--accent); text-shadow:1px 2px #f7f4ec,3px 5px #c45b3033; }
.hero-bottom { display:flex; align-items:center; gap:30px; font-size:13px; }
.text-link { display:inline-flex; align-items:center; gap:16px; border-bottom:1px solid currentColor; padding:7px 0; font-size:13px; font-weight:500; transition:color .2s,gap .2s; }
.text-link:hover { color:var(--accent); gap:22px; }
.hero-person { position:relative; justify-self:center; transform:translate3d(calc(var(--mouse-x,0)*22px),calc(var(--mouse-y,0)*18px + var(--scroll,0)*48px),0); transition:transform .35s ease-out; }
.hero-photo-frame { position:relative; background:#fffdf8; padding:13px 13px 50px; width:min(29vw,39svh,355px); border:1px solid #dedbd0; box-shadow:1px 2px 1px #9b988f22,12px 28px 38px #4c3b2424; transform:rotateX(calc(var(--mouse-y,0)*-10deg)) rotateY(calc(var(--mouse-x,0)*12deg)) rotate(5deg); transition:transform .35s ease-out,box-shadow .35s; transform-style:preserve-3d; }
.hero-photo-frame::before { content:""; position:absolute; inset:-1px; background:#ece7d9; border:1px solid #d4d1c5; transform:translateZ(-15px) rotate(-7deg); z-index:-1; box-shadow:1px 8px 17px #423b2512; }
.hero-photo-frame::after { content:""; position:absolute; width:94px; height:28px; left:34%; top:-12px; background:#e4d5a582; border-inline:1px dashed #b6a77870; transform:rotate(-6deg) translateZ(4px); backdrop-filter:blur(2px); }
.hero-photo-frame img { width:100%; height:auto; aspect-ratio:980 / 1200; object-fit:contain; }
.hero-photo-frame figcaption { font-size:10px; color:#8a8472; display:flex; justify-content:end; margin-top:18px; }
.hero-sticker { position:absolute; z-index:3; bottom:-20px; left:-45px; display:inline-flex; align-items:center; justify-content:center; gap:26px; min-height:60px; padding:17px 30px; background:#e67d4d; color:#fffdf6; border:1.5px solid #a35532; border-radius:8px 24px 9px 22px; box-shadow:3px 5px 0 #a54c2b33,0 10px 22px #643f2020; transform:rotate(-10deg) translateZ(35px); font-size:16px; transition:transform .3s,box-shadow .3s; }
.hero-sticker:hover { transform:rotate(-3deg) translateY(-8px); box-shadow:5px 9px 0 #a54c2b33,0 18px 28px #643f2025; }
.hero-scroll { position:absolute; left:0; bottom:24px; display:flex; align-items:center; gap:13px; font-size:9px; letter-spacing:.14em; color:var(--muted); }
.hero-scroll > span:first-child { width:33px; height:43px; border:1px solid #b5b9aa; border-radius:25px; display:grid; place-items:center; font-size:17px; animation:scroll-nudge 2.8s ease-in-out infinite; }
@keyframes scroll-nudge { 0%,100% { transform:translateY(0); } 50% { transform:translateY(6px); } }
.section { padding-top:36px; padding-bottom:75px; }
.section-intro { padding:22px 0 34px; }
.section-label { font-size:10px; font-weight:600; letter-spacing:.14em; color:var(--muted); line-height:1.5; }
.section-title-main { font-size:clamp(32px,4vw,50px); line-height:1.3; font-weight:600; letter-spacing:-.035em; margin:16px 0 12px; }
.section-body,.work-period-note { font-size:13px; color:var(--muted); line-height:1.8; }
.product-showcase { padding:38px; margin:0 0 48px; border:1px solid #cecfbd; border-radius:30px; background:#fffdf766; box-shadow:0 8px 0 #e3e2d34d,0 25px 60px #53462a07; }
.product-leader { margin-bottom:18px; }
.product-index { font-size:10px; letter-spacing:.06em; color:var(--muted); }
.product-leader h3 { font-size:38px; font-weight:600; line-height:1.3; margin:8px 0 8px; }
.product-leader h3 > span { margin-left:12px; font:400 27px "DM Serif Display",Georgia,serif; }
.product-lead { font-size:16px; line-height:1.65; color:var(--muted); }
.product-description { font-size:14px; line-height:1.75; color:var(--muted); margin-top:10px; }
.product-actions { display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; }
.product-actions small { font-size:12px; color:var(--muted); }
.product-extras { margin-top:20px; border-top:1px solid var(--line); }
.product-extras summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; color:var(--green); font-size:14px; font-weight:500; cursor:pointer; list-style:none; }
.product-extras summary::-webkit-details-marker { display:none; }
.product-extras summary::after { content:""; width:7px; height:7px; margin-right:4px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg); }
.product-extras[open] summary::after { transform:rotate(225deg); }
.product-extras summary:hover { text-decoration:underline; text-underline-offset:4px; }
.product-button { display:inline-flex; align-items:center; justify-content:center; gap:26px; background:var(--green); color:#fff; border:1px solid #1f3d2e; border-radius:9px; font-size:13px; padding:14px 20px; min-height:47px; box-shadow:0 3px 0 #233e2b22; transition:transform .25s,box-shadow .25s; }
.product-button:hover { transform:translateY(-3px); box-shadow:0 6px 0 #233e2b22; }
.qr-icon { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.qr-control { position:relative; z-index:6; }
.qr-popover { position:absolute; left:0; top:calc(100% + 12px); width:230px; padding:18px; background:#fffefa; border:1px solid #c5c7b8; border-radius:16px; box-shadow:0 18px 50px #1b301f33; text-align:center; transform-origin:30% 0; animation:popover-in .18s ease-out; }
.qr-popover::before { content:""; position:absolute; left:0; right:0; top:-15px; height:16px; }
.qr-popover strong { display:block; font-size:14px; margin-bottom:8px; }
.qr-popover img { width:100%; height:auto; border-radius:8px; }
.qr-popover > span { display:block; margin-top:10px; font-size:11px; color:var(--muted); }
@keyframes popover-in { from { opacity:0; transform:translateY(-6px) scale(.97); } to { opacity:1; transform:none; } }
.product-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:24px; }
.product-detail { position:relative; display:block; text-align:left; padding:24px; background:#eeefe5; border:1px solid #d7dbca; border-radius:18px; overflow:hidden; transition:transform .3s,box-shadow .3s; transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); }
.product-detail.is-pointed { box-shadow:0 18px 30px #273c251c; }
.product-detail::after,.work-card::after,.study-card::after { content:""; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle at var(--shine-x,50%) var(--shine-y,20%),#fff7,transparent 60%); opacity:0; transition:opacity .3s; pointer-events:none; }
.product-detail.is-pointed::after,.work-card.is-pointed::after,.study-card.is-pointed::after { opacity:.5; }
.work-card,.study-card { position:relative; }
.feature-heading { display:flex; align-items:center; gap:12px; }
.detail-number { font-size:10px; color:var(--muted); border:1px solid #bdc5af; border-radius:50%; width:28px; height:28px; display:grid; place-items:center; }
.product-detail h4 { font-size:18px; font-weight:600; }
.detail-arrow { margin-left:auto; transition:transform .2s; }
.product-detail:hover .detail-arrow { transform:translate(3px,-3px); }
.product-detail p { font-size:12px; color:var(--muted); margin:13px 0 22px; min-height:43px; }
.feature-image { display:grid; place-items:center; width:100%; aspect-ratio:1.55; background:#f7f9f2; border:1px solid #d8dfd0; border-radius:10px; overflow:hidden; }
.feature-image picture { display:contents; }
.feature-image img { width:100%; height:100%; max-height:100%; object-fit:contain; }
.product-showcase--sameframe { background:#fff9ee; border-color:#dfcfb6; }
.product-showcase--sameframe .product-button { background:#b96c42; border-color:#a45c35; }
.phone-carousel { position:relative; background:#f3eadd; border:1px solid #dfcfb6; border-radius:18px; overflow:hidden; margin-bottom:20px; }
.phone-carousel-pause { position:absolute; z-index:4; top:12px; right:12px; padding:8px 12px; background:#fffaf2; border:1px solid #dccab0; border-radius:8px; }
.phone-carousel-pause:not(:focus-visible) { clip-path:inset(50%); }
.phone-carousel-stage { --phone-width:clamp(154px,20vw,212px); --phone-step:calc(var(--phone-width) + clamp(18px,4vw,48px)); --phone-angle:3deg; display:grid; grid-template-columns:minmax(0,1fr); justify-items:center; align-items:start; padding:26px 0 19px; overflow:hidden; touch-action:pan-y pinch-zoom; background:radial-gradient(ellipse at 50% 42%,#e8d9bc,#f4ecde 72%); }
.product-phone { grid-area:1 / 1; position:relative; z-index:1; width:var(--phone-width); padding:0; border:0; background:transparent; transform:translateX(calc(var(--phone-slot,0) * var(--phone-step))) translateY(var(--phone-y,13px)) rotate(calc(var(--phone-slot,0) * var(--phone-angle))) scale(var(--phone-scale,.86)); transform-origin:center top; opacity:.88; transition:transform .45s cubic-bezier(.2,.75,.25,1),opacity .3s ease; }
.product-phone[data-phone-slot="0"] { --phone-y:0px; --phone-scale:1; z-index:2; opacity:1; }
.product-phone.is-wrapping { z-index:0; transition:none; animation:phone-arrive .4s ease-out; }
@keyframes phone-arrive { from { opacity:0; } }
.product-phone:focus-visible { z-index:3; border-radius:20px; }
.phone-hardware { display:block; filter:drop-shadow(3px 10px 10px #3b352535); }
/* https://tryhoverify.com/tools/device-frames/iphone-18-pro/ — 1332 × 2748, 63 px opening inset. */
.iphone18-frame { position:relative; aspect-ratio:1332 / 2748; }
.iphone18-frame::after { content:""; position:absolute; inset:0; background:url("assets/products/iphone-18-pro/hoverify-black.webp") center / 100% 100% no-repeat; pointer-events:none; }
.iphone18-frame > :is(.phone-screen,.lightbox-screen) { position:absolute; inset:2.2926% 4.7297%; display:block; overflow:hidden; border-radius:15.42% / 7.09%; background:#fef8ef; }
.iphone18-frame :is(picture,img) { display:block; width:100%; height:100%; max-width:none; max-height:none; border-radius:0; }
.iphone18-frame > :is(.phone-screen,.lightbox-screen)::before { content:""; position:absolute; inset:0 0 auto; height:5.72%; background:url("assets/products/iphone-18-pro/status-bar.svg") center / 100% 100% no-repeat; pointer-events:none; }
.phone-caption { display:block; text-align:center; margin-top:14px; color:#6b5b49; }
.phone-caption strong { display:block; font-size:14px; font-weight:600; }
.product-phone[data-phone-slot="0"] .phone-caption { color:var(--green); }
.product-links { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:24px; }
.product-document,.product-overview { display:grid; grid-template-columns:120px 1fr; align-items:center; gap:16px; padding:12px; border:1px solid var(--line); border-radius:12px; background:#fffdf8; text-align:left; transition:transform .25s,box-shadow .25s; }
.product-document:hover,.product-overview:hover { transform:translateY(-4px); box-shadow:0 10px 20px #3d3e2510; }
.product-document img,.product-overview img { width:120px; height:80px; object-fit:contain; border-radius:5px; }
.product-document > span,.product-overview > span { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:12px; }
.product-links b { font-weight:400; font-size:19px; }

.work-timeline { position:relative; display:grid; gap:26px; }
.work-timeline::before { content:""; position:absolute; left:167px; top:20px; bottom:30px; width:1px; background:#c4c7b5; }
.work-item { position:relative; display:grid; grid-template-columns:140px 24px minmax(0,1fr); gap:16px; align-items:center; }
.work-year { font-size:13px; color:var(--muted); line-height:1.7; }
.work-dot { width:15px; height:15px; justify-self:center; border:2px solid #537055; border-radius:50%; background:var(--paper); box-shadow:0 0 0 5px var(--paper); }
.work-card { display:grid; grid-template-columns:205px 1fr; gap:27px; align-items:center; padding:20px; border:1.5px solid #aeb49c; border-radius:22px; background:#fffdf7; box-shadow:5px 6px 0 #d1d5bf; transform:perspective(1200px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition:transform .3s,box-shadow .3s; }
.work-card.is-pointed { box-shadow:8px 13px 0 #c5ccb2; }
.work-card-image { background:#ebe5d4; border:1px solid #d0cbbb; padding:6px; border-radius:12px; transform:rotate(-2deg); }
.work-card-image img { width:100%; height:auto; aspect-ratio:4 / 3; object-fit:contain; background:#f8f2e7; border-radius:6px; }
.work-card-meta { min-width:0; }
.work-title-row { display:flex; align-items:center; gap:10px; margin-bottom:9px; }
.company-sticker { font-size:12px; font-weight:600; color:var(--green); }
.work-card h3 { font-size:22px; font-weight:600; line-height:1.45; text-wrap:initial; }
.work-card p { font-size:12px; color:var(--muted); line-height:1.8; margin-top:14px; }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.tag-row span { padding:4px 8px; border:1px solid #d5d9c6; border-radius:6px; font-size:10px; color:#58644f; background:#f1f3e8; }
.story-wall { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:38px 28px; padding:16px 4px; }
.story-card { min-width:0; }
.story-postcard { position:relative; display:block; width:100%; padding:0; border:0; border-radius:7px; background:transparent; transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) rotate(var(--rot,0deg)); transition:transform .32s,filter .32s; filter:drop-shadow(5px 7px 0 #7a715a45); }
.story-postcard.is-pointed,.story-postcard:focus-visible { transform:perspective(1100px) translateY(-10px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); filter:drop-shadow(10px 18px 9px #7a715a35); }
.story-postcard img { width:100%; height:auto; border-radius:6px; }
.story-zoom-hint { position:absolute; right:12px; bottom:12px; display:grid; place-items:center; width:32px; height:32px; background:#fffbee; border:1px solid #b8bba4; border-radius:50%; font-size:20px; opacity:0; transform:scale(.7); transition:opacity .2s,transform .2s; }
.story-postcard:hover .story-zoom-hint,.story-postcard:focus-visible .story-zoom-hint { opacity:1; transform:scale(1); }
.story-meta { display:flex; justify-content:space-between; gap:15px; align-items:baseline; margin:17px 6px 0; }
.story-meta h3 { order:-1; font-size:14px; font-weight:500; }
.story-date { font-size:10px; color:var(--muted); }
.study-highlights { display:flex; flex-wrap:wrap; gap:10px 15px; font-size:13px; margin-bottom:30px; }
.study-highlights span { padding:7px 12px; background:#e9eadc; border-radius:30px; }
.study-visual { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:start; }
.study-visual figure { margin:0; padding:10px; border:1px solid #d4d2c3; border-radius:10px; background:#fffdf8; box-shadow:4px 7px 0 #d8d4c0; transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) rotate(var(--rot,0deg)); transition:transform .3s,box-shadow .3s; }
.study-visual figure.is-pointed { box-shadow:8px 16px 0 #cbcbb4; }
.study-visual img { width:100%; height:auto; max-height:390px; object-fit:contain; border-radius:4px; }
.study-grid { margin-top:50px; }
.study-grid-head h3 { font:400 30px "DM Serif Display",Georgia,serif; margin-bottom:28px; }
.study-grid-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.study-card { text-align:left; border:1px solid #c5c9b5; border-radius:15px; overflow:hidden; padding:0; color:var(--ink); background:#fffdf7; transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition:transform .3s,box-shadow .3s; }
.study-card.is-pointed { box-shadow:0 18px 35px #283b3224; }
.paper-card-image,.project-card-image { padding:16px; height:225px; background:#eaece0; border-bottom:1px solid var(--line); }
.paper-card-image picture,.project-card-image picture { display:contents; }
.paper-card-image img,.project-card-image img { width:100%; height:100%; object-fit:contain; }
.paper-card-body,.project-card-body { padding:22px; }
.study-card h4 { font-size:13px; line-height:1.7; font-weight:500; text-wrap:initial; }
.paper-facts { display:flex; gap:7px; flex-wrap:wrap; font-size:10px; color:var(--muted); margin-top:16px; line-height:1.7; }
.paper-journal { flex-basis:100%; color:var(--green); }
.connect-card { display:flex; justify-content:space-between; align-items:end; gap:30px; border:1.5px solid #b9c2a5; border-radius:28px; background:#ecefdf; box-shadow:7px 8px 0 #d2d8bd; padding:42px; }
.connect-card .section-intro { padding:0; }
.connect-card .section-title-main { font:400 clamp(65px,7.5vw,100px) "DM Serif Display",Georgia,serif; letter-spacing:-.045em; margin:22px 0 30px; }
.connect-email { font-size:clamp(18px,2.2vw,28px); border-bottom:1px solid #a0ad91; padding-bottom:8px; overflow-wrap:anywhere; }
.contact-logo-strip { display:flex; align-items:center; flex-wrap:wrap; justify-content:end; gap:10px; max-width:370px; }
.contact-logo { display:inline-flex; align-items:center; gap:7px; border:1px solid #bdc6ad; background:#fffef6; border-radius:25px; min-height:42px; padding:9px 13px; font-size:10px; transition:transform .25s,box-shadow .25s; }
.contact-logo::after { content:attr(aria-label); }
.brand-logo { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; font-size:10px; }
.brand-logo img { width:26px; height:26px; object-fit:contain; }
.phone-icon { width:22px; height:22px; }
.phone-icon rect { fill:var(--green); }
.phone-icon path { fill:#fff; }
.site-footer { display:flex; justify-content:space-between; gap:20px; padding:22px 0 30px; border-top:1px solid var(--line); font-size:10px; color:var(--muted); }
.reveal { opacity:0; translate:0 28px; transition:opacity .6s,translate .6s; }
.reveal.visible { opacity:1; translate:0 0; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 25px; background: #172b20cc; backdrop-filter: blur(8px); }
.contact-modal, .detail-modal, .story-lightbox { position: relative; background: var(--paper); color: var(--ink); padding: 45px 32px 30px; border-radius: 15px; max-width: 100%; max-height: 92vh; overflow: auto; }
.contact-modal { width: 420px; text-align: center; }
.modal-close { position: absolute; right: 12px; top: 12px; border: 0; background: var(--green); color: #fff; padding: 9px 12px; min-height: 36px; border-radius: 5px; font-size: 11px; z-index: 1; }
.modal-kicker, .detail-kicker { font-size: 10px; color: var(--muted); letter-spacing: .08em; margin: 15px 0; }
.contact-modal h3 { font-size: 24px; margin-bottom: 22px; }
.wechat-qr img { width: 240px; height: 240px; object-fit: contain; margin: 20px auto; }
.modal-value { font-size: 19px; overflow-wrap: anywhere; }
.story-lightbox { width: auto; min-width: 260px; padding: 48px 20px 20px; }
.story-lightbox-image { width:fit-content; margin-inline:auto; }
.story-lightbox-image:not(.iphone18-frame) img { width:auto; max-width:min(1100px,90vw); height:auto; max-height:74vh; object-fit:contain; border-radius:6px; }
.story-lightbox-image.iphone18-frame { width:min(36vh, 78vw); }
.daywake-workspace { display:block; width:100%; height:805px; border:0; margin:0 0 16px; }
.story-lightbox figcaption { text-align: center; margin-top: 18px; line-height: 1.8; }
.story-lightbox figcaption time { display: block; font-size: 10px; color: var(--muted); }
.story-lightbox figcaption time:empty { display:none; }
.story-lightbox figcaption strong { display: block; font-size: 13px; font-weight: 500; }
.detail-modal { width: 760px; }
.detail-modal h3 { font-size: 23px; font-weight: 500; line-height: 1.5; padding-right: 10px; }
.detail-body { margin: 25px 0; }
.detail-body > div { display: grid; grid-template-columns: 105px 1fr; gap: 22px; border-top: 1px solid var(--line); padding: 19px 0; }
.detail-body dt { color: var(--muted); font-size: 11px; }
.detail-body dd { margin: 0; font-size: 13px; line-height: 1.8; }
.detail-link { display: inline-block; padding: 10px 0; border-bottom: 1px solid var(--ink); font-size: 12px; }

@media (max-width:1050px) {
  .site-nav,.hero,.section,.site-footer { width:calc(100% - 48px); }
  .nav-links { gap:17px; font-size:11px; }
  .brand-mark { font-size:14px; }
  .hero { gap:25px; }
  .product-showcase { padding:28px; }
  .work-item { grid-template-columns:110px 18px minmax(0,1fr); gap:12px; }
  .work-timeline::before { left:131px; }
  .work-card { grid-template-columns:170px minmax(0,1fr); gap:20px; }
  .work-card h3 { font-size:20px; }
  .product-document,.product-overview { grid-template-columns:95px 1fr; gap:10px; }
  .product-document img,.product-overview img { width:95px; height:65px; }
}
@media (max-width:760px) {
  :root { --nav-height:74px; }
  .menu-button { display:block; order:3; border:1px solid var(--line); border-radius:7px; padding:10px 13px; min-height:40px; background:var(--card); font-size:11px; }
  .language-toggle { margin-left:auto; min-width:70px; }
  .nav-links { display:none; position:absolute; top:73px; left:0; right:0; padding:15px 20px; background:var(--paper); border:1px solid var(--line); border-radius:0 0 12px 12px; box-shadow:0 15px 25px #283b3212; }
  .site-nav.open .nav-links { display:grid; grid-template-columns:repeat(3,1fr); gap:2px 12px; font-size:12px; }
  .nav-indicator { display:none; }
  .hero-hello { font-size:13px; margin-bottom:22px; }
  .hero { gap:15px; }
  .hero-name { font-size:13vw; }
  .hero-sticker { font-size:13px; min-height:48px; padding:12px 20px; left:-25px; }
  .product-leader h3 { font-size:32px; }
  .feature-image { aspect-ratio:1.35; }
  .product-detail { padding:18px; }
  .product-detail h4 { font-size:15px; }
  .product-detail p { font-size:11px; }
  .detail-number { flex-shrink:0; width:24px; height:24px; }
  .work-item { grid-template-columns:16px minmax(0,1fr); gap:10px; }
  .work-year { grid-column:2; font-size:12px; }
  .work-dot { grid-column:1; grid-row:1; width:12px; height:12px; }
  .work-card { grid-column:2; grid-template-columns:160px minmax(0,1fr); gap:18px; }
  .work-timeline::before { left:8px; top:12px; }
  .story-wall { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 20px; }
  .study-grid-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .connect-card { flex-direction:column; align-items:start; gap:28px; padding:28px; }
  .contact-logo-strip { justify-content:start; max-width:none; }
}
@media (max-width:520px) {
  :root { --nav-height:70px; }
  html { scroll-padding-top:88px; }
  .site-nav,.hero,.section,.site-footer { width:calc(100% - 36px); }
  .site-nav { gap:12px; }
  .brand-mark { font-size:12px; gap:8px; }
  .brand-mark img { width:23px; height:23px; }
  .language-toggle { min-width:65px; font-size:10px; gap:6px; padding:8px; }
  .menu-button { padding:9px 12px; font-size:10px; }
  .nav-links { top:69px; }
  .hero { height:auto; min-height:calc(100svh - var(--nav-height)); grid-template-columns:minmax(0,1fr); align-content:center; align-items:start; gap:clamp(24px,4svh,40px); padding:28px 0 80px; }
  .hero-type { transform:none; }
  .hero-name { font-size:min(23vw,12.4svh); margin-bottom:16px; line-height:.9; }
  .hero-hello { font-size:12px; margin-bottom:16px; }
  .hero-profile { max-width:29ch; margin-bottom:12px; font-size:14px; }
  .hero-person { justify-self:end; margin-right:10px; transform:none; }
  .hero::before { transform:none; }
  .hero-photo-frame { transform:rotate(5deg); }
  .hero-photo-frame { width:min(43vw,22svh); padding:7px 7px 26px; }
  .hero-photo-frame figcaption { display:none; }
  .hero-photo-frame::after { width:56px; height:19px; top:-8px; }
  .hero-sticker { font-size:12px; gap:15px; min-height:43px; padding:10px 18px; bottom:-18px; left:-30px; }
  .hero-scroll { bottom:22px; font-size:8px; }
  .hero-scroll > span:first-child { width:27px; height:35px; }
  .text-link { font-size:12px; }
  .section { padding-top:22px; padding-bottom:45px; }
  .section-intro { padding:22px 0 28px; }
  .section-title-main { font-size:32px; }
  .section-label { font-size:9px; }
  .section-body,.work-period-note { font-size:12px; }
  .product-showcase { padding:22px 16px; border-radius:22px; margin-bottom:32px; }
  .product-leader { margin-bottom:14px; }
  .product-leader h3 { font-size:30px; }
  .product-leader h3 > span { font-size:24px; }
  .product-lead { font-size:14px; }
  .product-button { padding:12px 15px; gap:20px; font-size:12px; }
  .product-gallery { grid-template-columns:1fr; gap:14px; margin-top:18px; }
  .product-detail { padding:20px; }
  .product-detail h4 { font-size:17px; }
  .product-detail p { font-size:12px; margin:12px 0 18px; min-height:0; }
  .feature-image { aspect-ratio:1.45; }
  .phone-carousel { border-radius:14px; }
  .daywake-workspace { height:860px; }
  .phone-carousel-stage { --phone-width:clamp(144px,48vw,208px); --phone-step:clamp(111px,35vw,170px); --phone-angle:0deg; padding:19px 0 15px; }
  .phone-caption strong { font-size:12px; }
  .product-links { grid-template-columns:1fr; gap:12px; margin-top:18px; }
  .product-document,.product-overview { grid-template-columns:105px 1fr; padding:10px; gap:15px; }
  .product-document img,.product-overview img { width:105px; height:70px; }
  .work-card { grid-template-columns:1fr; gap:16px; padding:18px; border-radius:18px; }
  .work-card-image { max-width:230px; }
  .work-card h3 { font-size:20px; }
  .work-card p { font-size:12px; }
  .tag-row span { font-size:10px; }
  .story-wall { gap:28px 15px; padding-inline:0; }
  .story-meta { gap:6px; margin:13px 2px 0; flex-wrap:wrap; }
  .story-meta h3 { font-size:12px; }
  .story-date { font-size:9px; }
  .story-zoom-hint { width:25px; height:25px; font-size:15px; right:7px; bottom:7px; opacity:1; transform:none; }
  .study-highlights { font-size:11px; gap:8px; }
  .study-visual { gap:16px; }
  .study-visual figure { padding:6px; border-radius:7px; }
  .study-grid { margin-top:35px; }
  .study-grid-head h3 { font-size:26px; }
  .study-grid-cards { grid-template-columns:1fr; gap:18px; }
  .study-card { display:grid; grid-template-columns:112px 1fr; }
  .paper-card-image,.project-card-image { height:100%; min-height:170px; padding:10px; border-bottom:0; border-right:1px solid var(--line); }
  .paper-card-body,.project-card-body { padding:18px 14px; }
  .study-card h4 { font-size:12px; }
  .paper-facts { font-size:9px; gap:5px; }
  .connect-card { padding:26px 20px; border-radius:22px; }
  .connect-card .section-title-main { font-size:68px; margin:20px 0 24px; }
  .connect-email { font-size:19px; }
  .contact-logo-strip { gap:8px; }
  .contact-logo { padding:9px 11px; font-size:9px; }
  .site-footer { flex-wrap:wrap; gap:12px; font-size:9px; }
  .modal-backdrop { padding:14px; }
  .contact-modal,.detail-modal { padding:45px 22px 25px; }
  .story-lightbox { padding:48px 12px 15px; }
  .story-lightbox-image:not(.iphone18-frame) img { max-width:85vw; max-height:72vh; }
  .detail-modal h3 { font-size:18px; }
  .detail-body > div { grid-template-columns:1fr; gap:10px; padding:16px 0; }
  .detail-body dd { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none !important; transition:none !important; }
  .hero-type,.hero-person { transform:none; }
  .letter { transform:none; }
  .reveal { opacity:1; translate:none; }
}

/* Papers share the same image-led card layout; projects remain a separate group. */
.publication-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; }
.publication-card { display:flex; flex-direction:column; min-width:0; background:var(--card); border:1px solid #c9cdbb; border-radius:14px; overflow:hidden; }
.publication-images { display:grid; grid-template-columns:repeat(var(--image-count,1),minmax(0,1fr)); padding:8px; height:220px; background:#fff; border-bottom:1px solid var(--line); }
.publication-image { display:grid; place-items:center; position:relative; min-width:0; min-height:0; padding:5px; border:0; background:transparent; cursor:zoom-in; overflow:hidden; }
.publication-image + .publication-image { border-inline-start:1px solid var(--line); }
.publication-image:focus-visible { outline-offset:-3px; z-index:1; }
.publication-image picture { display:contents; }
.publication-image img { width:100%; height:100%; min-height:0; object-fit:contain; transition:transform .24s ease; }
.publication-zoom { position:absolute; bottom:8px; right:8px; display:grid; place-items:center; width:26px; height:26px; border:1px solid #c9cdbb; border-radius:50%; background:var(--card); font-size:13px; }
.publication-card-body { padding:24px; display:flex; flex-direction:column; flex:1; min-width:0; }
.publication-journal { color:var(--green); font-size:12px; font-weight:500; line-height:1.7; }
.publication-card h4 { font-size:17px; line-height:1.65; font-weight:500; margin:10px 0 14px; text-wrap:initial; }
.publication-card-meta { color:var(--muted); font-size:13px; line-height:1.65; margin-bottom:12px; }
.publication-card-meta strong { color:var(--ink); font-weight:600; }
.publication-card-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 24px; margin-top:auto; padding-top:8px; }
.research-detail,.research-original { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; min-height:44px; padding:8px 0; border:0; border-bottom:1px solid #a8b3a0; border-radius:0; background:transparent; font-size:12px; white-space:nowrap; }
.research-original { color:var(--muted); }
.research-detail:hover,.research-original:hover { color:var(--green); border-color:var(--green); }
.publication-credit { color:var(--muted); font-size:11px; line-height:1.6; margin-bottom:8px; }
.publication-credit a:hover { text-decoration:underline; }
.research-subheading { font-size:18px; font-weight:500; margin:42px 0 20px; }
.research-projects { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.research-project { display:grid; grid-template-columns:135px minmax(0,1fr); border:1px solid var(--line); border-radius:12px; background:var(--card); overflow:hidden; }
.research-project-image { display:grid; place-items:center; background:#eaece0; padding:14px; }
.research-project-image img { max-height:170px; width:100%; object-fit:contain; }
.research-project-body { padding:18px 20px; }
.research-project-body .tag-row { margin-top:0; }
.research-project h4 { font-size:15px; font-weight:500; line-height:1.7; margin:12px 0; text-wrap:initial; }
.work-project-list { display:grid; gap:0; list-style:none; margin:16px 0 0; padding:0; }
.work-project-list li { display:grid; grid-template-columns:minmax(72px,.55fr) minmax(0,1.45fr); gap:8px 14px; padding:9px 0; border-top:1px solid var(--line); font-size:13px; line-height:1.65; }
.work-project-list strong { font-weight:600; color:var(--green); }
.work-project-list span { color:var(--muted); }
.publication-card,.research-project,.connect-card { transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.publication-card:focus-within,.research-project:focus-within,.connect-card:focus-within { border-color:#6d8a6d; }
.publication-zoom,.contact-logo,.connect-email,.site-footer a { transition:color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.research-detail span,.research-original span { transition:transform .18s ease; }
@media (hover:hover) and (pointer:fine) {
  .publication-card:hover,.research-project:hover { border-color:#6d8a6d; box-shadow:0 9px 20px #315b481b; }
  .connect-card:hover { border-color:#6d8a6d; box-shadow:7px 10px 0 #c4cfad; }
  .publication-image:hover .publication-zoom,.contact-logo:hover { color:#fff; background:var(--green); border-color:var(--green); }
  .connect-email:hover,.site-footer a:hover { color:var(--green); text-decoration:underline; text-underline-offset:4px; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .publication-card:hover,.research-project:hover,.connect-card:hover { transform:translateY(-3px); }
  .publication-image:hover img { transform:scale(1.03); }
  .research-detail:hover span,.research-original:hover span { transform:translate(2px,-2px); }
  .contact-logo:hover { transform:translateY(-2px); }
}
.modal-backdrop { grid-template-columns:minmax(0,1fr); }
.detail-modal { width:min(760px,100%); min-width:0; overflow-wrap:anywhere; }
.detail-body dd { min-width:0; }
@media (max-width:900px) {
  .publication-grid { gap:20px; }
  .publication-images { height:196px; }
  .publication-card-body { padding:20px; }
  .publication-card h4 { font-size:15px; }
  .research-projects { gap:18px; }
  .research-project { grid-template-columns:1fr; }
  .research-project-image { height:150px; }
  .research-project-image img { max-height:120px; }
}
@media (max-width:600px) {
  .work-project-list li { grid-template-columns:1fr; gap:3px; }
  .publication-grid { grid-template-columns:1fr; gap:22px; }
  .publication-images { height:180px; }
  .publication-card-body { padding:20px; }
  .publication-card h4 { font-size:15px; }
  .publication-journal { font-size:11px; }
  .research-projects { grid-template-columns:1fr; gap:16px; }
  .research-project { grid-template-columns:95px minmax(0,1fr); }
  .research-project-image { height:auto; padding:10px; }
  .research-project-body { padding:17px 14px; }
  .research-project h4 { font-size:14px; }
}
