:root {
  --ink:#24222b; --muted:#5b5864; --rule:#dbd8d0; --paper:#f5f4ef; --violet:#4735d4;
}
.frame { width: min(1320px, calc(100% - 112px)); margin-inline: auto }
.port-head { border-bottom: 1px solid var(--rule) }
.port-bar,.foot-flex { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:78px }
.identity { display:inline-flex; align-items:center; gap:12px; font-weight:750; line-height:1.12; letter-spacing:-.02em; white-space:nowrap }
.identity small { display:block; margin-top:5px; letter-spacing:.11em; font-size:9px; font-weight:750; color:var(--muted); text-transform:uppercase }
.monogram { width:40px; height:40px; border-radius:11px; background:var(--violet); color:white; display:grid; place-content:center; grid-auto-flow:column; font-size:15px; letter-spacing:-.06em }
.monogram span { color:#ffcf7a }
.nav-link { display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.875rem; white-space:nowrap }
.nav-link span { color:var(--violet); font-size:.68rem; font-variant-numeric:tabular-nums; padding:3px 5px; border:1px solid #c8c0f2; border-radius:5px }
.portfolio-hero,.case-hero { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,1fr); gap:clamp(24px,5vw,92px); align-items:center }
.portfolio-hero { padding-block:clamp(48px,6vw,98px) clamp(60px,7vw,100px) }
.hero-copy h1 { font-size:clamp(2.85rem,5.5vw,6.2rem); letter-spacing:-.082em; line-height:.99; font-weight:790; margin:20px 0 24px; overflow-wrap:anywhere; hyphens:auto }
.hero-copy h1 span { color:var(--violet) }
.hero-copy > p:not(.meta) { font-size:clamp(1rem,1.45vw,1.2rem); color:var(--muted); line-height:1.65; max-width:47ch; margin-bottom:27px }
.meta { font: 760 .72rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing:.07em; color:var(--muted); display:flex; align-items:center; gap:8px }
.meta span:not(.signal) { color:var(--violet) }
.signal { display:inline-block; width:8px; height:8px; border-radius:50%; background:#7b68f2; flex:none }
.btn { display:inline-flex; gap:12px; align-items:center; justify-content:center; border-radius:8px; padding:12px 16px; min-height:46px; font-weight:750; font-size:.9rem; text-align:center }
.primary { background:var(--violet); color:white }
.primary:hover { background:#3624bb }
.main-btn { background:var(--ink); color:white }
.main-btn:hover { background:var(--violet) }
.hero-showcase { display:block; min-width:0; background:#28243e; border-radius:18px; overflow:hidden; box-shadow:0 22px 55px #25203c20 }
.hero-showcase .device-pair { border-radius:0; aspect-ratio:1.42; background:radial-gradient(ellipse at 25% 100%,#7a315a,transparent 72%),linear-gradient(145deg,#2d294a,#31254f 65%,#41326b); --plate-ink:#f3edff }
.hero-credit { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 20px; background:#26213c; color:#dfd7fd; font:700 .65rem ui-monospace,monospace; letter-spacing:.08em }
.hero-credit strong { color:white; font:700 .86rem Inter,system-ui,sans-serif; letter-spacing:0 }
.hero-credit .icon { width:16px; height:16px; margin-left:6px }
.project-section { border-top:1px solid var(--rule); padding-top:33px; padding-bottom:64px; scroll-margin-top:24px }
.section-intro { display:flex; justify-content:space-between; align-items:end; gap:22px; margin-bottom:28px }
.section-intro h2,.case-work h2 { font-size:clamp(2.2rem,4.3vw,4.15rem); letter-spacing:-.065em; line-height:1.05; margin-top:7px }
.section-intro > p { max-width:38ch; color:var(--muted); line-height:1.55 }
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px }
.project-card { min-width:0; overflow:hidden; border:1px solid var(--rule); border-radius:16px; background:#fffcf7; display:flex; flex-direction:column }
.device-pair { position:relative; isolation:isolate; overflow:hidden; aspect-ratio:1.66; margin:0; background:#dbe8ff; --plate-ink:#1f365e }
.device-pair.kingarms { background:radial-gradient(ellipse at 70% 90%,#8195ad,#29384b 84%); --plate-ink:#fff }
.device-pair.ocean { background:radial-gradient(ellipse at 25% 100%,#f4b1c4,#fce6eb 88%); --plate-ink:#63283b }
.device-pair.sexamo { background:radial-gradient(ellipse at 65% 100%,#cfa592,#efe0d7 88%); --plate-ink:#582d29 }
.device-caption { position:absolute; top:6%; left:6%; right:6%; color:var(--plate-ink); display:flex; align-items:center; gap:8px; font:700 .72rem ui-monospace,monospace }
.device-caption .signal { background:currentColor; width:6px; height:6px }
.plate-num { margin-left:auto }
.device { overflow:hidden; position:absolute; box-shadow:0 12px 32px #0c102845; background:#fff }
.browser { top:18%; left:6%; width:76%; border-radius:9px 9px 0 0; transform:rotate(-2deg); border:1px solid #10152b28 }
.browser img { width:100%; aspect-ratio:1.58; object-fit:cover; object-position:top }
.window-bar { height:16px; display:flex; align-items:center; gap:4px; padding-left:8px; background:#25263b }
.window-bar i { width:4px; height:4px; background:#9d99b0; border-radius:50% }
.handset { top:34%; right:7%; width:24%; border:clamp(3px,.45vw,7px) solid #29263b; border-radius:12% / 6%; transform:rotate(7deg); z-index:1 }
.handset img { width:100%; aspect-ratio:1 / 1.92; object-fit:cover; object-position:top }
.hero-showcase .browser { top:20% }
.hero-showcase .handset { top:29% }
.project-body { padding:clamp(20px,2.2vw,32px); flex:1; display:flex; flex-direction:column }
.project-body h3 { font-size:clamp(1.8rem,3.1vw,2.9rem); letter-spacing:-.065em; line-height:1.08; margin-top:7px }
.summary { line-height:1.55; color:var(--muted); margin:10px 0 18px; flex:1 }
.project-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 17px }
.text-link { font-size:.88rem; font-weight:750; text-decoration:underline; text-underline-offset:4px; text-decoration-color:#a39da9; padding-block:9px }
.text-link:hover,.nav-link:hover { color:var(--violet) }
.port-foot { border-top:1px solid var(--rule); color:var(--muted) }
.foot-flex { min-height:100px }
.foot-flex > span { font-size:.85rem }
.case-main { padding-top:25px }
.case-back { display:inline-flex; align-items:center; gap:8px }
.case-hero { margin-block:28px 52px }
.case-hero .device-pair { border-radius:16px }
.status { display:inline-flex; gap:7px; align-items:center; padding:7px 10px; background:#eae5ff; color:#3b2a9a; font-size:.78rem; font-weight:700; border-radius:6px; margin-bottom:15px }
.case-work { padding:32px 0 40px; border-top:1px solid var(--rule) }
.work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-top:23px }
.work-grid article { border:1px solid var(--rule); border-radius:12px; padding:22px; background:#fffcf7 }
.work-num { color:var(--violet); font:750 .82rem ui-monospace,monospace }
.work-grid h3 { margin:13px 0 9px; font-size:1.17rem }
.work-grid p { line-height:1.58; color:var(--muted) }
.other-projects { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:33px 0 55px }
.other-projects a { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid var(--rule); border-radius:8px; font-weight:750 }
.other-projects a:hover { border-color:var(--violet) }
.other-projects .icon { margin-left:auto }
@media(max-width:1060px) {
  .frame { width:calc(100% - 64px) }
  .hero-copy h1 { font-size:clamp(2.55rem,5.45vw,4.6rem) }
  .project-actions { column-gap:12px }
}
@media(max-width:760px) {
  .frame { width:calc(100% - 36px) }
  .port-bar,.foot-flex { min-height:66px }
  .portfolio-hero,.case-hero { grid-template-columns:1fr; gap:22px }
  .portfolio-hero { padding-block:39px 45px }
  .hero-copy h1 { font-size:clamp(2.62rem,8.8vw,4.3rem); margin:13px 0 17px }
  .hero-copy > p:not(.meta) { margin-bottom:20px }
  .hero-showcase .device-pair { aspect-ratio:1.85 }
  .project-grid,.work-grid { grid-template-columns:1fr }
  .project-grid { gap:16px }
  .section-intro { display:grid; align-items:start }
  .section-intro { gap:10px; margin-bottom:20px }
  .other-projects { grid-template-columns:1fr; padding-bottom:36px }
  .case-hero { margin-block:19px 33px }
  .foot-flex > span { display:none }
}
@media(max-width:380px) {
  .frame { width:calc(100% - 28px) }
  .identity { gap:8px }
  .hero-copy h1 { font-size:2.35rem }
}
.header-actions,.language-switcher,.language-quick { display:flex; align-items:center; gap:10px }
.header-actions { flex-wrap:wrap; justify-content:flex-end; gap:10px 20px }
.language-switcher { gap:6px }
.language-quick { gap:2px; background:#ebe8f1; border:1px solid #dcd7e5; border-radius:8px; padding:2px }
.language-quick a { display:grid; place-items:center; min-width:34px; min-height:34px; border-radius:5px; font-size:.75rem; font-weight:800 }
.language-quick a:hover,.language-quick a[aria-current] { background:var(--violet); color:white }
.language-select select { max-width:11.5rem; min-height:40px; padding:5px 8px; background:#fffcf7; color:var(--ink); border:1px solid var(--rule); border-radius:8px; font-size:.83rem; font-weight:700 }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
.caps { text-transform:uppercase }
.country-flag { display:inline-block; width:.67em; height:.45em; min-width:18px; min-height:12px; vertical-align:.11em; border-radius:2px; box-shadow:0 0 0 1px #17162c32; background:white }
.flag-it { background:linear-gradient(90deg,#009246 0 33.33%,#fff 33.33% 66.66%,#ce2b37 66.66%) }
.flag-ee { background:linear-gradient(#4891da 0 33.33%,#171717 33.33% 66.66%,#fff 66.66%) }
.hero-credit .country-flag { min-width:15px; min-height:10px; margin-left:3px }
.case-hero .country-flag { width:.53em; height:.36em }
.card-status { display:flex; gap:7px; align-items:center; align-self:start; margin-top:10px; border-radius:6px; padding:5px 7px; font-size:.74rem; font-weight:730; line-height:1.35 }
.card-status i { height:6px; width:6px; border-radius:50%; flex:none; background:currentColor }
.card-status.live,.status.live { background:#e4f1e8; color:#2b633e }
.card-status.development,.status.development { background:#eee8fe; color:#473097 }
.status.live .signal { background:currentColor }
.hero-copy > p.stage-note { max-width:43ch; margin-top:12px; margin-bottom:0; font-size:.84rem }
.hero-showcase .device-pair.ocean { aspect-ratio:1.48 }
.project-actions .btn { max-width:100% }
@media(max-width:760px) {
  .port-bar { flex-wrap:wrap; justify-content:space-between; gap:7px 15px; padding-block:10px }
  .header-actions { justify-content:space-between; flex:1 1 100%; gap:5px 10px }
  .header-actions .nav-link { white-space:normal }
  .language-select select { max-width:min(36vw,9.8rem) }
  .hero-showcase .device-pair.ocean { aspect-ratio:1.6 }
  .project-section { padding-bottom:38px }
}
@media(max-width:350px) {
  .header-actions { justify-content:flex-start }
  .header-actions .nav-link span { display:none }
  .language-quick a { min-width:28px }
  .language-select select { max-width:112px }
}
.hero-copy h1 { letter-spacing:-.063em }
.hero-credit strong { display:inline-flex; align-items:center; justify-content:flex-end; gap:5px; text-align:right }
.hero-credit strong .country-flag { flex:none; margin-left:0 }
.hero-credit strong .icon { margin-left:0 }
@media(max-width:760px) {
  .header-actions { display:contents }
  .language-switcher { flex-basis:100% }
}
