/* Final interaction rules for the isolated portfolio preview. */
.hero-feature { display: block; height: 220px; min-height: 0; overflow: hidden; }
.hero-feature>.hero-feature-panel { position: absolute; z-index: 1; inset: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; transition: none !important; }
.hero-feature-panel .hero-view { flex: none; width: 100%; margin-top: 12px; }
.hero-view svg { display: block; flex: none; width: 19px; height: 19px; }
.hero-feature-panel h2 { margin-top: 4px; }
.hero-feature-panel .hero-feature-description { margin-top: 9px; }
.hero-selector { scroll-behavior: auto; }
.hero-selector button.is-active { padding-right: 23px; }
.hero-selector button.is-active span { flex: none; overflow: visible; padding-right: 4px; }

/* Keep the text, platform, and destinations together beside the preview. */
@media (min-width:768px) {
  .project-info { justify-content: center; gap: clamp(20px,3.3svh,34px); }
  .project-heading { flex: none; padding: 0; }
  .project-heading h2 { margin: 0 0 clamp(16px,2.4svh,23px); font-size: clamp(43px,5.7svh,72px); line-height: .98; }
  .project-controls { margin: 0; padding: 0; }
}
.project-platform { width: fit-content; margin-bottom: 18px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-summary { max-width: 32ch; margin: 0; color: var(--muted); font-size: clamp(17px,1.42vw,23px); line-height: 1.42; }
.project-destinations { display: flex; flex-wrap: wrap; gap: 9px; }
.project-destinations a { gap: 13px; padding-inline: 17px; }
.project-destinations a .ph-icon { width: 15px; height: 15px; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.project-destinations a:hover .ph-icon { transform: translate(2px,-2px); }

/* Live website previews resize their internal viewport without losing interaction. */
.preview-toolbar[hidden] { display: none !important; }
.project-stage.has-website-preview { display: flex; flex-direction: column; }
.preview-toolbar { z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 49px; min-height: 49px; padding: 0 3px 8px; }
.viewport-toggle { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.viewport-toggle button { min-height: 31px; padding: 5px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 12px/1 Onest,Mardoto,sans-serif; transition: background-color .35s,color .35s,box-shadow .35s; }
.viewport-toggle button:is(:hover,:focus-visible) { color: var(--fg); }
.viewport-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: 0 4px 15px #0002; }
.project-stage.has-website-preview .project-stage-content { flex: 1 1 auto; height: auto; min-height: 0; max-height: none; overflow: visible; }
.site-frame { position: relative; flex: none; width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f8f8f8; box-shadow: 0 24px 65px #0005; transition: width .68s cubic-bezier(.22,1,.36,1),border-radius .68s cubic-bezier(.22,1,.36,1),box-shadow .4s; }
.site-frame.is-mobile { width: min(390px,100%); margin-inline: auto; border-radius: 28px; box-shadow: 0 28px 75px #0007; }
.site-frame iframe { position: absolute; inset: 0 auto auto 0; display: block; max-width: none; min-width: 0; border: 0; transform-origin: top left; }
.site-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 48%,color-mix(in srgb,var(--stage-glow) 30%,var(--bg)),var(--bg) 70%); color: var(--fg); pointer-events: none; opacity: 1; transition: opacity .5s cubic-bezier(.22,1,.36,1),visibility 0s .5s; }
.site-loading span { font: 700 clamp(22px,3vw,36px)/1.1 Syne,'Noto Sans Armenian',sans-serif; letter-spacing: -.04em; }
.site-frame.is-loaded .site-loading { opacity: 0; visibility: hidden; }
body.theme-light .site-frame { box-shadow: 0 24px 65px #483b5940; }

/* Motion is damped in JavaScript. Transforms must apply immediately per frame. */
@media (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hero-feature,.hero-art .art-phone,.hero-art .art-web,.flow-main.iphone-frame,.flow-web,.work-row,.footer-visual>a,.menu-art .menu-device { transition-property: box-shadow,border-color,background-color,opacity !important; transition-duration: .42s !important; }
  .hero-art .art-phone { transform-style: flat; }
  .hero-art .art-phone:first-child { transform: rotate(-9deg); }
  .hero-art .art-phone:nth-child(2) { transform: rotate(2deg); }
  .hero-art .art-phone:nth-child(3) { transform: rotate(9deg); }
  .hero-art .art-web { transform: translate3d(var(--parallax-x),var(--parallax-y),0) rotate(-3deg); }
  .flow-main.iphone-frame { transform: translate3d(var(--parallax-x),calc(var(--parallax-y) - 16px),0); }
  .flow-main.iphone-frame:hover { transform: translate3d(var(--parallax-x),calc(var(--parallax-y) - 16px),0); }
  .flow-web { transform: translate3d(var(--parallax-x),var(--parallax-y),0); }
  .flow-web:hover { transform: translate3d(var(--parallax-x),var(--parallax-y),0); }
  .work-row,.work-row:hover,.work-row:focus-visible,.footer-visual>a { transform: translate3d(var(--parallax-x),var(--parallax-y),0); }
  .menu-art .menu-device,.menu-art:hover .menu-device { transform: translate3d(var(--parallax-x),var(--parallax-y),0) rotate(-4deg); }
  .studio-cursor { width: 18px; height: 18px; border: 0; background: #a78bfa; box-shadow: 0 0 0 1px #09071555,0 3px 12px #0003; transition: width .26s cubic-bezier(.22,1,.36,1),height .26s cubic-bezier(.22,1,.36,1),opacity .18s,background-color .26s,border-color .26s; }
  .studio-cursor::after { display: none; }
  .studio-cursor:is(.is-action,.is-preview) { width: 43px; height: 43px; border: 1.5px solid #a78bfa; background: #17112423; box-shadow: 0 0 0 5px #a78bfa14; backdrop-filter: blur(2px); }
  .studio-cursor.is-action::after { display: block; width: 7px; height: 7px; background: #a78bfa; }
  .studio-cursor.is-preview { width: 49px; height: 49px; border-color: #f4efff; background: #8b5cf63d; }
  .studio-cursor.is-preview::after { display: block; width: 18px; height: 18px; border-radius: 0; background: #f4efff; -webkit-mask: url('/experience/assets/icons/caret-right.svg') center / contain no-repeat; mask: url('/experience/assets/icons/caret-right.svg') center / contain no-repeat; }
  .studio-cursor.is-pressed { width: 28px; height: 28px; }
}
@media (pointer:fine) and (prefers-reduced-motion:no-preference) and (max-width:767px) {
  .hero-art .art-phone:nth-child(2) { transform: rotate(6deg) !important; }
  .flow-main.iphone-frame,.flow-main.iphone-frame:hover { transform: translate3d(var(--parallax-x),calc(var(--parallax-y) - 29px),0); }
}
@media (max-width:767px) {
  .hero-feature { height: 158px; }
  .hero-feature>.hero-feature-panel { inset: 10px 12px; }
  .hero-selector button.is-active { padding-right: 20px; }
  .project-info { justify-content: flex-start; gap: 10px; }
  .project-heading { padding: 0 16px; }
  .project-platform { margin-bottom: 6px; font-size: 9px; }
  .project-heading h2 { margin: 0 0 8px; font-size: clamp(31px,8.6vw,46px); }
  .project-summary { font-size: 13px; line-height: 1.3; }
  .project-controls { margin: 0; padding: 0 16px; }
  .project-destinations a { min-height: 32px; }
  .preview-toolbar { flex-basis: 43px; min-height: 43px; padding: 0 4px 5px; }
  .viewport-toggle button { min-height: 29px; padding: 5px 11px; font-size: 10px; }
  .site-frame.is-mobile { width: min(360px,100%); }
}
@media (min-width:1100px) {
  .project-section:has(.project-stage.has-website-preview) { grid-template-columns: minmax(230px,22%) minmax(0,1fr) minmax(150px,13%); gap: clamp(12px,1.5vw,26px); }
}
.hero-selector::after { content: ''; flex: 0 0 15px; }
.hero-feature>div.hero-feature-panel { position: absolute !important; inset: 20px 22px; }
@media (max-width:767px) { .hero-feature>div.hero-feature-panel { inset: 10px 12px; } }
/* One opaque card surface lets the next project reveal without ghosted text. */
.hero-feature,body.theme-light .hero-feature { background: var(--hero-card-surface,#17131e); }
body.theme-light .hero-feature { --hero-card-surface:#f8f6f9; }
.hero-feature>div.hero-feature-panel { inset: 0; padding: 20px 22px; background: var(--hero-card-surface,#17131e); }
@media (max-width:767px) { .hero-feature>div.hero-feature-panel { inset: 0; padding: 10px 12px; } }
/* The colored backdrop changes only while the phone group is faded out. */
.hero-ambient { transition: opacity .64s cubic-bezier(.22,1,.36,1) !important; }
.hero-ambient.is-changing { opacity: 0; transition-duration: .32s !important; }
/* Keep the incoming screen opaque while the phone group settles. */
.hero-art.is-entering { opacity: 1; transition: opacity 0s,transform .88s cubic-bezier(.22,1,.36,1) !important; }
@media (max-width:767px) { .live-frame.phone.iphone-frame { transform: translateY(-36px); } }
@media (max-width:767px) {
  .flow-main.iphone-frame,.flow-main.iphone-frame:hover { transform: translateY(-36px); }
}
@media (pointer:fine) and (prefers-reduced-motion:no-preference) and (max-width:767px) {
  .flow-main.iphone-frame,.flow-main.iphone-frame:hover { transform: translate3d(var(--parallax-x),calc(var(--parallax-y) - 36px),0); }
}
/* Give every app preview room for the full device and its shadow. */
@media (min-width:768px) {
  .project-stage .flow-main.iphone-frame,
  .project-stage .live-frame.phone.iphone-frame { height: calc(100% - clamp(110px,16svh,165px)); max-height: calc(100% - clamp(110px,16svh,165px)); }
}
@media (max-width:767px) {
  .project-stage .flow-main.iphone-frame,
  .project-stage .live-frame.phone.iphone-frame { height: calc(100% - clamp(118px,16svh,150px)); max-height: calc(100% - clamp(118px,16svh,150px)); }
}
.project-stage .live-frame.phone.iphone-frame,
.project-stage .flow-main.iphone-frame { transform: none; }
@media (min-width:768px) {
  .project-stage .live-frame.phone.iphone-frame { transform: translateY(-16px); }
}
@media (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .project-stage .flow-main.iphone-frame,
  .project-stage .flow-main.iphone-frame:hover { transform: translate3d(var(--parallax-x),var(--parallax-y),0); }
}
@media (pointer:fine) and (prefers-reduced-motion:no-preference) and (min-width:768px) {
  .project-stage .flow-main.iphone-frame,
  .project-stage .flow-main.iphone-frame:hover { transform: translate3d(var(--parallax-x),calc(var(--parallax-y) - 16px),0); }
}
@media (prefers-reduced-motion:no-preference) {
  html.is-project-transition { view-transition-name: none; }
  html.is-project-transition .project-info { view-transition-name: project-copy; }
  html.is-project-transition .project-stage { view-transition-name: project-preview; }
  html.is-project-transition::view-transition-old(project-copy) { animation: .27s cubic-bezier(.4,0,.2,1) both project-copy-out; }
  html.is-project-transition::view-transition-new(project-copy) { animation: .58s cubic-bezier(.22,1,.36,1) .18s both project-copy-in; }
  html.is-project-transition::view-transition-old(project-preview) { animation: .26s cubic-bezier(.4,0,.2,1) both project-preview-out; }
  html.is-project-transition::view-transition-new(project-preview) { animation: .72s cubic-bezier(.22,1,.36,1) both project-preview-in; }
}
@keyframes project-copy-out { to { opacity: 0; transform: translateY(-9px); } }
@keyframes project-copy-in { from { opacity: 0; transform: translateY(13px); } }
@keyframes project-preview-out { to { opacity: 0; transform: translateX(-22px) scale(.985); } }
@keyframes project-preview-in { from { transform: translateX(26px) scale(.985); } }

/* A neutral Armenian companion to Onest keeps the three scripts consistent. */
@font-face {
  font-family: 'Studio Armenian';
  src: url('/experience/assets/fonts/NotoSansArmenian-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0530-058F,U+FB13-FB17;
}
html[lang="hy"] body,
html[lang="hy"] :is(h1,h2,h3,h4,p,a,button,label,span,input,select,textarea) {
  font-family: 'Studio Armenian',Onest,sans-serif !important;
}
html[lang="hy"] :is(.hero h1,.work-intro h2,.project-heading h2,.approach-layout h2,.footer-main h2,.contact-intro h1) {
  letter-spacing: -.015em;
}

/* Preserve the dividers within the lists while removing their outer rules. */
.approach-list { border-top: 0; }
.approach-list>div:last-child { border-bottom: 0; }
.contact-details>div:first-child { border-top: 0; }
.contact-form-panel { border-top: 0; }

html[lang="ru"] .footer-main h2 { white-space: nowrap; }
@media (max-width:767px) {
  html[lang="ru"] .footer-main h2 { font-size: clamp(42px,9vw,69px); }
}

/* Project names remain readable at every width. */
.project-switcher button span { overflow: visible; text-overflow: clip; }
@media (min-width:1100px) {
  .project-section,
  .project-section:has(.project-stage.has-website-preview) {
    grid-template-columns: minmax(250px,25%) minmax(0,1fr) minmax(235px,19%);
    gap: clamp(15px,1.8vw,32px);
  }
  .project-switcher button { font-size: clamp(12px,.86vw,15px); }
}
@media (min-width:768px) and (max-width:1099px) {
  .project-switcher button.is-active { width: 190px; min-width: 190px; max-width: 190px; }
}

/* The explicit preview control gives the working product the viewport. */
.preview-focus-backdrop { position: fixed; z-index: 190; inset: 0; background: var(--bg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .68s cubic-bezier(.22,1,.36,1),visibility 0s .68s; }
body.is-preview-focused .preview-focus-backdrop { opacity: .985; visibility: visible; transition: opacity .68s cubic-bezier(.22,1,.36,1),visibility 0s; }
body:is(.is-preview-focused,.is-preview-returning) .project-stage { z-index: 191; }
body.is-preview-focused .project-info,
body.is-preview-focused .project-switcher,
body.is-preview-focused .preview-toolbar,
body.is-preview-focused .site-header { opacity: 0 !important; pointer-events: none !important; transition: opacity .5s ease !important; }
.site-frame.is-preview-focused,
.live-frame.phone.is-preview-focused { z-index: 192; max-width: none; max-height: none; transform: none !important; }
.site-frame.is-preview-moving,
.live-frame.phone.is-preview-moving {
  transition: left .82s cubic-bezier(.22,1,.36,1),top .82s cubic-bezier(.22,1,.36,1),width .82s cubic-bezier(.22,1,.36,1),height .82s cubic-bezier(.22,1,.36,1),border-radius .82s cubic-bezier(.22,1,.36,1),box-shadow .82s ease !important;
}
.site-frame.is-preview-focused { border-radius: 16px; box-shadow: 0 30px 90px #0008; }
.site-frame.is-preview-focused.is-mobile { border-radius: 28px; }
.live-frame.phone.is-preview-focused { cursor: default; }
@media (prefers-reduced-motion:reduce) {
  .preview-focus-backdrop,.site-frame.is-preview-moving,.live-frame.phone.is-preview-moving { transition-duration: .01ms !important; }
}

/* Keep the live preview aligned with the viewport center, with equal side rails. */
@media (min-width:1100px) {
  .project-section,
  .project-section:has(.project-stage.has-website-preview) {
    grid-template-columns: minmax(235px,22%) minmax(0,1fr) minmax(235px,22%);
  }
}
@media (min-width:768px) and (max-width:1099px) {
  .project-section {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto minmax(0,1fr) 60px;
    gap: 9px;
    padding: 74px 4.4% 18px;
  }
  .project-info { grid-column: 1; grid-row: 1; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 22px; }
  .project-heading h2 { margin-bottom: 8px; font-size: clamp(34px,4.8vw,49px); }
  .project-platform { margin-bottom: 7px; }
  .project-summary { max-width: 36ch; font-size: 13px; }
  .project-controls { flex: none; max-width: 42%; margin: 0; }
  .project-stage { grid-column: 1; grid-row: 2; width: min(100%,830px); justify-self: center; }
  .project-switcher { grid-column: 1; grid-row: 3; }
}

/* The website's phone view uses the same Screenshot Studio handset as the apps. */
.site-preview-viewport { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #fff; }
.site-frame.is-mobile.iphone-frame {
  width: auto;
  height: calc(100% - 32px);
  max-width: none;
  max-height: calc(100% - 32px);
  aspect-ratio: 420 / 884.3892;
  margin-inline: auto;
  overflow: visible;
}
.site-frame.iphone-frame .site-preview-viewport {
  left: 2.857142857%; right: 2.857142857%;
  top: 1.356869%; bottom: 1.356869%;
  border-radius: 12.878788% / 5.92755%;
}
.site-frame.is-mobile.iphone-frame iframe { border-radius: 0; }
.site-phone-status { display: none; }
.site-frame.iphone-frame .site-phone-status {
  position: absolute; z-index: 3; inset: 0 0 auto; display: flex;
  align-items: center; justify-content: space-between; height: 30px;
  padding: 0 20px; background: #fff; color: #15151b;
  font: 700 12px/1 Onest,sans-serif;
}
.site-frame.iphone-frame iframe { top: 30px; }

/* Explicit controls replace hover expansion, including on touch devices. */
.preview-expand,.preview-focus-close {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid #ffffff80; border-radius: 50%;
  background: #15111cdb; color: #fff; box-shadow: 0 10px 28px #0007;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .5s cubic-bezier(.22,1,.36,1),background-color .4s,border-color .4s,opacity .35s;
}
.preview-expand svg,.preview-focus-close svg { width: 19px; height: 19px; }
.preview-expand { position: absolute; z-index: 8; top: 13px; right: 13px; }
.preview-expand:is(:hover,:focus-visible),.preview-focus-close:is(:hover,:focus-visible) { transform: scale(1.08); border-color: #fff; background: #2f214c; }
.site-frame.iphone-frame .preview-expand,.live-frame.phone .preview-expand { top: 15px; right: -21px; }
.is-preview-focused .preview-expand { opacity: 0; pointer-events: none; }
.preview-focus-close { position: fixed; z-index: 195; top: 18px; right: 18px; opacity: 0; visibility: hidden; pointer-events: none; }
body.is-preview-focused .preview-focus-close { opacity: 1; visibility: visible; pointer-events: auto; }
body.is-preview-focused .preview-focus-backdrop { pointer-events: auto; }
body:is(.is-preview-focused,.is-preview-returning) { overflow: hidden; }
@media (max-width:767px) {
  .site-frame.is-mobile.iphone-frame { height: calc(100% - 8px); max-height: calc(100% - 8px); }
  .preview-focus-close { top: 10px; right: 10px; }
}

/* Artwork stays bright while copy keeps the hero gradient behind it. */
.hero::after { z-index: 0; }
.hero-art { z-index: 1; }
.hero-feature>div.hero-feature-panel {
  background: radial-gradient(circle at 88% 6%,color-mix(in srgb,var(--project-tint,#40377e) 38%,transparent),transparent 62%),
    color-mix(in srgb,var(--project-tint,#40377e) 18%,#17131e);
}
body.theme-light .hero-feature>div.hero-feature-panel {
  background: radial-gradient(circle at 88% 6%,color-mix(in srgb,var(--project-tint,#40377e) 15%,transparent),transparent 64%),
    color-mix(in srgb,var(--project-tint,#40377e) 10%,#f8f6f9);
}

/* The menu artwork lifts as a single phone; its screen stays undimmed. */
.menu-art::after { display: none; }
.menu-art { transition: border-color .55s,box-shadow .7s cubic-bezier(.22,1,.36,1),background-color .7s !important; }
.menu-art:hover,.menu-art:focus-visible { border-color: color-mix(in srgb,var(--accent) 50%,#ffffff35); box-shadow: 0 30px 75px #0007,0 0 42px color-mix(in srgb,var(--accent) 15%,transparent); }
.menu-art-media { transition: opacity .55s ease,transform .9s cubic-bezier(.22,1,.36,1) !important; }
.menu-art:is(:hover,:focus-visible) .menu-art-media { transform: translateY(-9px) scale(1.025); }
.menu-art .menu-device { transform: perspective(1000px) translate3d(var(--parallax-x),var(--parallax-y),0) rotate(-5deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important; transition: opacity .55s ease !important; }
.menu-art-word { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.menu-art:is(:hover,:focus-visible) .menu-art-word { transform: translateY(-5px); }
.menu-art-word .ph-icon { transition: transform .8s cubic-bezier(.22,1,.36,1); }
.menu-art:is(:hover,:focus-visible) .menu-art-word .ph-icon { transform: translate(5px,-5px); }
@media (prefers-reduced-motion:reduce) {
  .menu-art,.menu-art-media,.menu-art .menu-device,.menu-art-word,.menu-art-word .ph-icon { transition-duration: .01ms !important; }
}

/* Screens sit inside devices throughout the portfolio. */
.macbook-mock { position: relative; display: block; flex: none; container-type: inline-size; width: 100%; aspect-ratio: 1.57; overflow: visible; }
.macbook-lid { position: absolute; inset: 0 2.9% 4.8%; padding: 2.05% 1.4% 1.05%; border: 1px solid #a5a6ad; border-bottom-color: #5f626b; border-radius: 3.2% 3.2% .5% .5% / 5% 5% .5%; background: linear-gradient(135deg,#d3d4d9,#70717b 13%,#262830 19%,#24262d 83%,#aeb0b6 100%); box-shadow: inset 0 0 0 1px #e2e3e8a8,0 0 0 1px #282a31,0 4cqw 7cqw #0005; }
.macbook-lid::before { content: ''; position: absolute; z-index: 2; top: .75%; left: 50%; width: clamp(1px,.45cqw,3px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 35%,#4b5b75,#10151d 65%); box-shadow: 0 0 0 1px #090a0d; transform: translateX(-50%); }
.macbook-screen { width: 100%; height: 100%; overflow: hidden; border: clamp(1px,.6cqw,4px) solid #090a0e; border-radius: 1.2% 1.2% .3% .3%; background: #08090d; }
.macbook-screen img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; }
.macbook-base { position: absolute; z-index: 2; inset: auto 0 0; height: 5%; background: linear-gradient(180deg,#e1e2e6 0%,#9a9ca5 23%,#5c5e66 62%,#b9bbc2 85%,#63656d 100%); clip-path: polygon(3% 0,97% 0,100% 43%,99.2% 80%,97% 100%,3% 100%,.8% 80%,0 43%); box-shadow: inset 0 1px 0 #f3f4f6; }
.macbook-base::before { content: ''; position: absolute; top: 0; left: 43%; width: 14%; height: 29%; border-radius: 0 0 6px 6px; background: linear-gradient(180deg,#777981,#bdc0c7); box-shadow: inset 0 -1px #eceef0; }
.macbook-base::after { content: ''; position: absolute; inset: auto 2% 0; height: 13%; border-radius: 50%; background: #383a42a8; }

/* A physical display edge, hinge, and tapered aluminum body keep the laptop
   legible at both the large hero size and the compact work-card size. */
.macbook-mock::before {
  content: '';
  position: absolute;
  z-index: 0;
  right: 6%;
  bottom: -3.4%;
  left: 6%;
  height: 7%;
  border-radius: 50%;
  background: #000b;
  filter: blur(1.5cqw);
  pointer-events: none;
}
.macbook-lid {
  z-index: 1;
  inset: 0 2.5% 5.5%;
  padding: 2.45% 1.75% 1.9%;
  border: 1px solid #878b93;
  border-bottom-color: #454851;
  border-radius: 3.1% 3.1% .6% .6% / 5% 5% .5% .5%;
  background: linear-gradient(90deg,#aeb1b8 0%,#3b3e47 .65%,#17191f 2%,#16181e 98%,#3b3e47 99.35%,#aeb1b8 100%);
  box-shadow: inset 0 1px 0 #eceef7a8,inset 1px 0 1px #d4d7dd65,inset -1px 0 1px #d4d7dd65,0 0 0 1px #202229,0 1.7cqw 3.6cqw #0005;
}
.macbook-lid::before {
  top: .78%;
  width: clamp(1px,.37cqw,3px);
  background: radial-gradient(circle at 38% 32%,#6383a8 0%,#17202c 38%,#06090d 75%);
  box-shadow: 0 0 0 1px #050609,0 0 0 2px #292b34;
}
.macbook-lid::after {
  content: '';
  position: absolute;
  right: 1.4%;
  bottom: .25%;
  left: 1.4%;
  height: .55%;
  background: linear-gradient(90deg,#202127,#656772 8%,#111318 50%,#656772 92%,#202127);
}
.macbook-screen {
  border: clamp(1px,.22cqw,2px) solid #090a0d;
  border-radius: .9% .9% .15% .15%;
  box-shadow: 0 0 0 1px #3b3e47,inset 0 0 0 1px #000;
}
.macbook-base {
  z-index: 3;
  height: 5.7%;
  background: linear-gradient(180deg,#f2f3f7 0%,#bfc1c9 12%,#82858f 36%,#565963 69%,#a8aab2 86%,#444650 100%);
  clip-path: polygon(3.1% 0,96.9% 0,100% 46%,99.2% 82%,97.5% 100%,2.5% 100%,.8% 82%,0 46%);
  box-shadow: inset 0 1px 0 #fff;
}
.macbook-base::before {
  top: 0;
  left: 43%;
  width: 14%;
  height: 35%;
  border-radius: 0 0 30% 30%;
  background: linear-gradient(#6f727c,#babcc4 72%,#e8e9ee);
  box-shadow: inset 0 -1px 0 #f8f9fc,0 1px 1px #36394080;
}
.macbook-base::after {
  inset: auto 3% 0;
  height: 13%;
  border-radius: 50% 50% 15% 15%;
  background: linear-gradient(90deg,#343640,#747781 10%,#444650 50%,#747781 90%,#343640);
}

/* Tiny embedded previews are painted before the full captures decode. */
html.screen-gating :is(.iphone-screen,.macbook-screen,.flow-web) {
  background-image: var(--screen-poster,radial-gradient(circle at 50% 35%,#373053,#14121f));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
html.screen-gating :is(.iphone-screen,.macbook-screen,.flow-web)>img:not(.screen-ready) { opacity: 0 !important; }
html.screen-gating :is(.iphone-screen,.macbook-screen,.flow-web)>img.screen-ready { opacity: 1; }
.iphone-screen .iframe-poster {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity .4s ease,visibility 0s .4s;
}
.iphone-screen.is-loaded .iframe-poster { opacity: 0 !important; visibility: hidden; }

.work-image { display: flex; align-items: center; justify-content: center; overflow: visible; }
.work-image .work-phone { width: auto; height: 94%; max-width: none; transition: transform .75s cubic-bezier(.22,1,.36,1); }
.work-image .iphone-screen img,.work-image .macbook-screen img { object-fit: cover; object-position: center top; transform: none !important; }
.work-device-pair { display: flex; align-items: center; justify-content: center; gap: clamp(4px,.65vw,12px); width: 100%; height: 100%; }
.work-device-pair .work-macbook { width: 62%; max-width: 320px; transform: rotate(-2deg); transition: transform .75s cubic-bezier(.22,1,.36,1); }
.work-device-pair .work-phone { height: 84%; transform: rotate(4deg); }
.work-row:is(:hover,:focus-visible) .work-image>.work-phone { transform: translateY(-5px) rotate(-2deg); }
.work-row:is(:hover,:focus-visible) .work-macbook { transform: translateY(-4px) rotate(0); }
.work-row:is(:hover,:focus-visible) .work-device-pair .work-phone { transform: translateY(-5px) rotate(2deg); }
.work-list.is-filtered { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-start; }
.work-list.is-filtered .work-row:not([hidden]) { flex: 0 0 calc((100% - 36px)/4); height: calc((100% - 12px)/2); }
.work-list.is-filtered[data-active-filter="web"] .work-row:not([hidden]) { flex-basis: min(calc((100% - 12px)/2),540px); height: min(55svh,500px); }
.work-list.is-filtered[data-active-filter="telegram"] .work-row:not([hidden]) { flex-basis: min(40vw,480px); height: min(55svh,500px); }
.filters { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

/* Website heroes pair the desktop capture with its real mobile layout. */
.hero:has(.art-website-devices) .hero-art { left: 43%; width: 56%; }
.art-website-devices { position: absolute; top: 22%; left: 0; display: flex; align-items: center; justify-content: center; gap: clamp(8px,1vw,22px); width: 100%; height: 56%; }
.art-website-devices .art-macbook { width: 71%; max-width: 720px; transform: perspective(1400px) rotateY(-5deg) rotate(-3deg); }
.art-website-devices .art-site-phone { width: auto; height: 84%; max-width: none; transform: rotate(5deg); }
.art-website-devices .iphone-screen img { object-fit: cover; object-position: center top; }
@media (max-width:767px) {
  .work-list.is-filtered .work-row:not([hidden]) { flex-basis: calc((100% - 6px)/2); height: calc((100% - 18px)/4); }
  .work-list.is-filtered[data-active-filter="web"] .work-row:not([hidden]) { flex-basis: 100%; height: min(27svh,225px); }
  .work-list.is-filtered[data-active-filter="telegram"] .work-row:not([hidden]) { flex-basis: min(72vw,320px); height: min(48svh,405px); }
  .hero:has(.art-website-devices) .hero-art { left: 0; width: 100%; }
  .art-website-devices { top: clamp(275px,36svh,360px); left: 3%; width: 94%; height: min(31svh,260px); gap: 2%; }
  .art-website-devices .art-macbook { width: 64%; }
  .art-website-devices .art-site-phone { height: 79%; }
  .work-device-pair .work-macbook { width: 60%; }
  .work-device-pair .work-phone { height: 79%; }
}

/* The footer cards browse disciplines, using a representative device for each. */
.footer { height: auto; min-height: 100svh; }
.footer-visual { height: auto; align-items: start; }
.footer-visual>a { aspect-ratio: 1.12; }
.footer-visual>a { isolation: isolate; }
.footer-visual>a::after { z-index: 1; background: linear-gradient(transparent 36%,#090814c9); }
.footer-visual>a>span { z-index: 3; }
.footer-visual .footer-device { position: absolute; z-index: 0; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.footer-visual .footer-phone { top: -13%; left: 50%; width: auto; height: 140%; max-width: none; transform: translateX(-50%) rotate(-7deg); }
.footer-visual .footer-macbook { top: 27%; left: 6%; width: 88%; transform: rotate(-3deg); }
.footer-visual>a:hover .footer-phone { transform: translateX(-50%) translateY(-8px) rotate(-4deg); }
.footer-visual>a:hover .footer-macbook { transform: translateY(-7px) rotate(0); }
.footer-visual .iphone-screen img,.footer-visual .macbook-screen img { opacity: 1; object-fit: cover; transform: none !important; }
@media (max-width:767px) {
  .footer-visual { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw,290px); gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .footer-visual::-webkit-scrollbar { display: none; }
  .footer-visual>a { scroll-snap-align: start; }
  .footer-visual .footer-phone { top: -12%; height: 145%; }
  .footer-visual .footer-macbook { top: 28%; left: 4%; width: 92%; }
  .footer-visual>a>span { right: 14px; bottom: 13px; left: 14px; font-size: 17px; line-height: 1.05; }
  .footer-visual>a>span .ph-icon { width: 17px; height: 17px; }
}

/* The photographic frame already has a soft alpha shadow. Its full image
   needs to remain visible so the shadow can taper below the phone. */
.iphone-frame { border-radius: 14% / 6.7% !important; background: #080814 !important; }
.iphone-frame .iphone-screen,
.site-frame.iphone-frame .site-preview-viewport { top: 1.58%; bottom: 1.13%; }

/* A compact, consistent heading scale leaves room for the work itself. */
.work-intro h2 { font-size: min(5.9vw,6.8svh,79px); }
.approach-layout h2 { font-size: clamp(44px,5.2vw,88px); }
.footer-main h2 { font-size: clamp(28px,5.3vw,94px); white-space: nowrap; }
.contact-intro h1 { font-size: clamp(48px,7.1svh,78px); }
@media (min-width:768px) {
  .project-heading h2 { font-size: clamp(40px,5.1svh,64px); }
}
@media (max-width:767px) {
  .work-intro h2 { font-size: min(7.4vw,5.3svh,40px); }
  .approach-layout h2 { font-size: clamp(37px,6.3svh,52px); }
  .project-heading h2 { font-size: clamp(30px,8vw,44px); }
  .footer-main h2 { font-size: clamp(26px,7.25vw,42px); }
}

/* The capability images demonstrate two outputs at their native proportions. */
.approach-gallery { grid-template-columns: .8fr 1.2fr; }
.approach-gallery>div { isolation: isolate; }
.approach-gallery>div::after { content: ''; position: absolute; z-index: 2; inset: 48% 0 0; background: linear-gradient(transparent,#080812b8); pointer-events: none; }
.approach-gallery-phone { padding: 0; }
.approach-gallery-phone .approach-device {
  position: absolute;
  top: 4%;
  left: 50%;
  width: auto;
  height: 93%;
  margin: 0;
  transform: translateX(-50%) rotate(-5deg);
}
.approach-gallery-web { background: #182349 !important; }
.approach-gallery-web .approach-device {
  position: absolute;
  top: 24%;
  left: 7%;
  width: 92%;
  transform: rotate(-3deg);
}
.approach-gallery .approach-device img,
.approach-gallery>div:hover .approach-device img { width: 100%; height: 100%; max-width: none; object-fit: cover; transform: none; }
.approach-gallery-caption { position: absolute; z-index: 3; right: 14px; bottom: 13px; left: 14px; color: #fff; font-size: clamp(12px,1.05vw,16px); font-weight: 600; line-height: 1.2; text-shadow: 0 1px 5px #000a; }
@media (max-width:767px) {
  .approach-gallery { height: clamp(170px,26svh,215px); }
  .approach-gallery-phone .approach-device { top: 4%; height: 91%; }
  .approach-gallery-web .approach-device { top: 27%; left: 4%; width: 96%; }
  .approach-gallery-caption { right: 9px; bottom: 8px; left: 9px; font-size: 11px; }
}

/* Names sit beside their project marks in both menu variants. */
.menu-projects-list :is(button,a)>span:last-child { margin-left: 0; color: inherit; font-size: inherit; }

/* The compact language control needs a visible rail over the light menu. */
body.theme-light .site-header.menu-visible .language-switcher {
  border-color: #b9b4c0;
  background: #ffffffc9;
  box-shadow: 0 1px 4px #211a2b12;
}

/* Website viewport controls float with the live frame, beside expand. */
.site-frame .preview-toolbar {
  position: absolute;
  z-index: 8;
  top: 13px;
  right: 64px;
  display: flex;
  flex: none;
  width: auto;
  min-height: 0;
  padding: 0;
}
.site-frame .viewport-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #15111cdb;
  box-shadow: 0 10px 28px #0007;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-frame .viewport-toggle button {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.site-frame .viewport-toggle button[aria-pressed="true"] { background: #f3f2f7; color: #17151b; box-shadow: none; }
.site-frame .viewport-toggle button:is(:hover,:focus-visible):not([aria-pressed="true"]) { background: #ffffff25; color: #fff; }
.site-frame .viewport-toggle button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-frame .viewport-toggle svg { width: 19px; height: 19px; }
.site-frame .viewport-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-frame.iphone-frame .preview-expand { top: 13px; right: 13px; }
@media (max-width:767px) {
  .site-frame .preview-toolbar { top: 10px; right: 59px; }
  .site-frame .viewport-toggle button { width: 33px; height: 32px; }
  .site-frame .viewport-toggle svg { width: 17px; height: 17px; }
  .site-frame .preview-expand,.site-frame.iphone-frame .preview-expand { top: 10px; right: 10px; width: 40px; height: 40px; }
}
.site-frame.iphone-frame .preview-toolbar { top: 38px; right: 50px; }
.site-frame.iphone-frame .viewport-toggle { padding: 2px; }
.site-frame.iphone-frame .viewport-toggle button { width: 29px; height: 28px; }
.site-frame.iphone-frame .preview-expand { top: 38px; right: 8px; width: 34px; height: 34px; }
.site-frame.iphone-frame .preview-expand svg { width: 16px; height: 16px; }

/* Mobile layouts keep the work and controls readable without squeezing them
   into a single viewport. */
@media (max-width:767px) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-art { overflow: visible; }
  .hero-art .art-phone:first-child,
  .hero-art .art-phone:nth-child(2) { display: block !important; }
  .hero-art .art-phone:nth-child(3) { display: none !important; }
  .hero-art .art-phone:first-child,
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:first-child {
    left: 15% !important;
    top: clamp(255px,32svh,315px) !important;
    width: clamp(135px,38vw,160px) !important;
    transform: rotate(-8deg) !important;
  }
  .hero-art .art-phone:nth-child(2),
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:nth-child(2) {
    left: 47% !important;
    top: clamp(275px,34svh,335px) !important;
    width: clamp(135px,38vw,160px) !important;
    transform: rotate(7deg) !important;
  }
  .hero-feature { bottom: 61px; }

  .work-section { height: auto; min-height: 0; padding: 92px 16px 72px; }
  .work-intro { margin-bottom: 19px; }
  .work-controls { margin-bottom: 18px; }
  .filters { gap: 6px; }
  .filters button { min-height: 35px; padding: 6px 11px; font-size: 12px; }
  .work-list,.work-list.is-filtered { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; height: auto; align-content: start; }
  .work-row,.work-row:hover,.work-row:focus-visible,
  .work-list.is-filtered .work-row:not([hidden]),
  .work-list.is-filtered[data-active-filter="web"] .work-row:not([hidden]),
  .work-list.is-filtered[data-active-filter="telegram"] .work-row:not([hidden]) {
    display: grid;
    grid-template-columns: 104px minmax(0,1fr) 24px;
    grid-template-rows: auto auto 1fr;
    column-gap: 13px;
    row-gap: 7px;
    width: 100%;
    height: auto;
    min-height: 164px;
    padding: 11px;
    border-radius: 15px;
    transform: none;
  }
  .work-row[hidden] { display: none !important; }
  .work-image { order: 0; grid-column: 1; grid-row: 1 / 4; width: 104px; height: 100%; min-height: 140px; margin: 0; overflow: hidden; border-radius: 9px; background: color-mix(in srgb,var(--surface) 65%,var(--bg)); }
  .work-image>.work-phone { height: 155px; }
  .work-device-pair { gap: 2px; }
  .work-device-pair .work-macbook { width: 71%; }
  .work-device-pair .work-phone { height: 65%; }
  .work-row[data-category="web"] .work-device-pair .work-macbook { display: none; }
  .work-row[data-category="web"] .work-device-pair { display: contents; }
  .work-row[data-category="web"] .work-device-pair .work-phone {
    height: 155px;
    transform: none;
  }
  .work-row[data-category="web"]:is(:hover,:focus-visible) .work-device-pair .work-phone {
    transform: translateY(-5px) rotate(-2deg);
  }
  .work-name { grid-column: 2 / 4; grid-row: 1; align-self: end; padding-right: 20px; font-size: 17px; line-height: 1.1; }
  .work-name img { width: 24px; height: 24px; }
  .work-summary { display: block; grid-column: 2 / 4; grid-row: 2; align-self: start; height: auto; margin: 0; overflow: visible; color: var(--muted); font-size: 12px; line-height: 1.3; -webkit-line-clamp: unset; }
  .work-kind { display: block; grid-column: 2 / 4; grid-row: 3; align-self: end; font-size: 11px; }
  .work-arrow { top: 12px; right: 11px; padding: 4px; border: 0; background: transparent; backdrop-filter: none; }
  .work-arrow .ph-icon { width: 17px; height: 17px; }

  .project-section { height: auto; min-height: 100svh; padding-bottom: 50px; }
  .project-stage { flex: none; height: clamp(520px,65svh,600px); }
  .project-stage .live-frame.phone.iphone-frame,
  .project-stage .flow-main.iphone-frame { height: calc(100% - 28px); max-height: calc(100% - 28px); }
  .project-info { gap: 15px; }
  .project-heading h2 { margin-bottom: 12px; }
  .project-summary { max-width: 34ch; font-size: 14px; line-height: 1.4; }
  .project-controls { padding: 0 16px; }
  .project-destinations a { min-height: 43px; padding: 9px 14px; font-size: 13px; }
  .project-switcher { padding-top: 4px; }
  .site-frame.is-desktop .preview-expand { display: none; }

  .site-header .contact-icon,
  .site-header.is-scrolled .contact-icon,
  :is(.site-header,.site-header.is-scrolled,.site-header.is-scrolled.menu-visible) .contact-icon:is(:hover,:focus-visible) {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
  }
  .site-header .contact-icon .contact-label,
  .site-header .contact-icon:is(:hover,:focus-visible) .contact-label { display: none; }

  .language-switcher,
  .language-switcher:is(:hover,:focus-within) { position: relative; width: 36px; height: 36px; overflow: visible; padding: 2px; }
  .language-switcher button { display: none; position: absolute; z-index: 12; right: 0; width: 32px; min-width: 32px; height: 32px; padding: 0; background: #211c2e; border: 1px solid #a78bfa85; box-shadow: 0 7px 18px #0008; color: #f1f0f5; font-size: 11px; }
  .language-switcher button[aria-pressed="true"] { display: block; top: 1px; right: 1px; z-index: 13; background: var(--accent); border-color: var(--accent); }
  .language-switcher.is-open button:not([aria-pressed="true"]) { display: block; }
  body.theme-light .language-switcher button:not([aria-pressed="true"]) { background: #f6f3f8; color: #211c2a; border-color: #b9b4c0; }

  .menu-grid { min-height: 100%; height: auto; padding: 82px 18px 30px; overflow-y: visible; }
  .site-menu { overflow-y: auto; overscroll-behavior: contain; }
  .menu-primary { gap: 0; }
  .menu-primary>a { min-height: 53px; padding: 10px 0; border-bottom: 1px solid #ffffff24; font-size: clamp(24px,7vw,30px); }
  .menu-art { display: none; }
  .menu-projects { flex: 0 0 auto; margin-top: 27px; }
  .menu-projects .menu-kicker { margin-bottom: 10px; }
  .menu-projects-list { display: grid; grid-template-columns: 1fr; gap: 0; }
  .menu-projects-list button,.menu-projects-list a { min-height: 49px; padding: 7px 4px; border-bottom: 1px solid #ffffff18; font-size: 15px; }
  .menu-projects-list img,.menu-projects-list a img { width: 30px; height: 30px; }
  .menu-email { margin-top: 22px; padding-top: 0; font-size: 14px; }
  body.theme-light .menu-primary>a { border-color: #211a2b26; }
  body.theme-light .menu-projects-list button,body.theme-light .menu-projects-list a { border-color: #211a2b1c; }

  .contact-page { display: block; height: auto; min-height: 100svh; padding: 104px 20px 30px; overflow: visible; }
  .contact-page-inner { display: block; height: auto; }
  .contact-intro h1,html[lang="hy"] .contact-intro h1 { max-width: 14ch; font-size: clamp(39px,10.5vw,56px); line-height: 1.02; }
  .contact-intro p,html[lang="hy"] .contact-intro p { display: block; max-width: 32ch; margin-top: 15px; font-size: 15px; line-height: 1.45; }
  .contact-layout { display: flex; flex-direction: column; gap: 36px; margin-top: 39px; }
  .contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 13px; align-items: start; }
  .contact-details>div:first-child { grid-column: 1 / -1; }
  .contact-details>div { padding: 0; border: 0; }
  .contact-details span { display: block; margin-bottom: 5px; font-size: 10px; }
  .contact-details a,.contact-details p { font-size: 14px; line-height: 1.4; }
  .contact-form-panel { flex: none; padding: 0; }
  .contact-form-panel h2 { margin-bottom: 18px; font-size: 28px; }
  .contact-form-tabs { gap: 8px; margin-bottom: 23px; }
  .contact-form-tabs button { min-height: 44px; padding: 9px 12px; font-size: 13px; }
  #contact-form,.contact-form-step,.form-row { gap: 17px; }
  .form-field { gap: 8px; }
  .form-field label { font-size: 13px; }
  .form-field input,.form-field select { height: 48px; padding: 10px 14px; font-size: 16px; }
  .form-field textarea { height: 150px; padding: 12px 14px; font-size: 16px; }
  .form-submit-row { margin-top: 4px; }
  #contact-next,#contact-back,#contact-submit { min-height: 46px; padding: 10px 19px; font-size: 14px; }
  .contact-page-footer { margin-top: 60px; padding-top: 17px; font-size: 12px; }
}

@media (max-width:359px) {
  .work-row,.work-row:hover,.work-row:focus-visible { grid-template-columns: 88px minmax(0,1fr) 20px; column-gap: 10px; }
  .work-image { width: 88px; }
  .work-name { font-size: 15px; }
  .contact-page { padding-inline: 16px; }
  .site-header .menu-button { display: grid; place-items: center; width: 35px; min-width: 35px; padding: 0; }
  .site-header .menu-word { display: none; }
  .site-header .menu-mark { margin: 0; }
  .site-header .wordmark span:last-child { display: none; }
}

/* The studio frame and its soft shadow extend beyond the screen box. */
@media (max-width:767px) {
  .work-image { overflow: visible; }
  .work-image>.work-phone,
  .work-row[data-category="web"] .work-device-pair .work-phone {
    height: min(116px,calc(100% - 24px));
  }
}

/* On a phone the project copy sits in its own quiet row below the two mocks. */
@media (max-width:767px) {
  .hero { min-height: 0; height: 100svh; }
  .hero-art .art-phone:first-child,
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:first-child {
    top: clamp(205px,calc(20svh + 90px),315px) !important;
    width: min(38vw,clamp(98px,calc(16svh + 13px),160px)) !important;
  }
  .hero-art .art-phone:nth-child(2),
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:nth-child(2) {
    top: clamp(215px,calc(20svh + 100px),325px) !important;
    width: min(38vw,clamp(98px,calc(16svh + 13px),160px)) !important;
  }
  .hero-feature,
  body.theme-light .hero-feature {
    right: 16px;
    bottom: 64px;
    left: 16px;
    width: auto;
    height: 82px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-feature>div.hero-feature-panel,
  body.theme-light .hero-feature>div.hero-feature-panel {
    display: grid;
    grid-template-columns: minmax(0,1fr) 43px;
    align-items: center;
    gap: 12px;
    inset: 0;
    padding: 9px 0 0;
    background: transparent;
  }
  .hero-feature-panel>div { min-width: 0; }
  .hero-feature-type { display: none; }
  .hero-feature-panel h2 { margin: 0 0 4px; font-size: clamp(18px,5.3vw,22px); line-height: 1.08; }
  .hero-feature-panel .hero-feature-description {
    display: -webkit-box;
    max-width: 36ch;
    margin: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .hero-feature-panel .hero-view {
    display: grid;
    place-items: center;
    justify-content: center;
    align-content: center;
    width: 43px;
    height: 43px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 50%;
  }
  .hero-feature-panel .hero-view span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-feature-panel .hero-view svg { display: block; width: 19px; height: 19px; margin: 0; flex: none; }

  /* Keep the preview as the menu's center piece and move project selection
     into a single swipeable rail below it. */
  .menu-grid {
    display: flex;
    flex-direction: column;
    height: 100svh;
    min-height: 660px;
    padding: 78px 18px 19px;
    overflow: hidden;
  }
  .menu-primary { flex: none; }
  .menu-primary>a { min-height: 48px; padding: 8px 0; font-size: clamp(23px,6.7vw,29px); }
  .menu-art {
    display: flex;
    flex: 1 1 auto;
    min-height: 260px;
    height: auto;
    margin: 14px 0 19px;
    overflow: hidden;
  }
  .menu-art-media { width: 100%; height: 100%; }
  .menu-art .menu-device,
  .menu-art:hover .menu-device {
    height: 82%;
    max-height: none;
    transform: rotate(-5deg) !important;
  }
  .menu-art-word { right: 15px; bottom: 14px; left: 15px; font-size: clamp(23px,7vw,31px); }
  .menu-projects { flex: none; margin: 0; min-width: 0; }
  .menu-projects .menu-kicker { margin: 0 0 9px; font-size: 10px; }
  .menu-projects-list {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 6px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .menu-projects-list::-webkit-scrollbar { display: none; }
  .menu-projects-list :is(button,a) {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: min(41vw,158px);
    min-height: 54px;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid #ffffff2d;
    border-radius: 11px;
    background: #ffffff0b;
    font-size: 12px;
    line-height: 1.1;
    text-align: left;
    scroll-snap-align: start;
  }
  .menu-projects-list :is(button,a).is-art-active { border-color: #a78bfa; background: #8b5cf62e; }
  .menu-projects-list :is(button,a) img { width: 30px; height: 30px; flex: none; }
  .menu-projects-list :is(button,a) .ph-icon { display: none; }
  .menu-email { margin-top: 13px; padding: 0; font-size: 12px; }
  body.theme-light .menu-projects-list :is(button,a) { border-color: #211a2b2b; background: #211a2b0a; }
  body.theme-light .menu-projects-list :is(button,a).is-art-active { border-color: #8b5cf6; background: #8b5cf620; }

  /* Fixed controls and masks stay on stable paint layers while Safari scrolls. */
  .site-header,.site-menu,.hero-picker,.hero-selector,.ph-icon {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  .ph-icon { -webkit-transform: translateZ(0); transform: translateZ(0); }
  .site-header.is-scrolled { transform: translate3d(-50%,0,0); }
  .site-menu { -webkit-transform: translateZ(0); transform: translateZ(0); }
}

@media (max-width:767px) and (max-height:620px) {
  .hero { min-height: 620px; }
}

@media (max-width:767px) {
  .project-info .project-controls { margin-top: 16px; }
  .project-destinations { gap: 11px; }
}

/* Keep the two step controls optically centered, including Armenian labels. */
#contact-next,#contact-back {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.site-header .language-switcher,
.site-header .language-switcher button { box-shadow: none !important; }

@media (max-width:767px) {
  .hero h1 { font-size: clamp(30px,8.7vw,37px) !important; line-height: 1.05; }
  .work-intro h2 { font-size: clamp(25px,6.6vw,34px); }
  .project-heading h2 { font-size: clamp(29px,7.6vw,38px); }
  .approach-layout h2 { font-size: clamp(31px,8.1vw,40px); }
  .footer-main h2 { font-size: clamp(25px,6.7vw,36px); }
  .contact-intro h1,html[lang="hy"] .contact-intro h1 { font-size: clamp(34px,8.3vw,44px); }
  .hero-feature,
  body.theme-light .hero-feature,
  .hero-feature>div.hero-feature-panel,
  body.theme-light .hero-feature>div.hero-feature-panel {
    background: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

.menu-projects-list :is(button,a)::after { display: none !important; content: none !important; }

@media (max-width:767px) {
  .hero-picker {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-inline: -12px;
    padding-inline: 0;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .hero-selector {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .filters {
    box-sizing: border-box;
    flex: 0 0 100vw;
    width: 100vw;
    min-width: 100vw;
    max-width: none;
    margin-left: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .menu-projects-list {
    box-sizing: border-box;
    width: 100vw;
    margin-left: -18px;
    padding: 2px 18px 6px;
    scroll-padding-inline: 18px;
  }
  .project-switcher { width: 100vw; scroll-padding-inline: 16px; }
  .footer-visual {
    box-sizing: border-box;
    width: 100vw;
    margin-left: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
}

/* Each section starts on the same vertical rhythm at a given viewport size. */
:root { --section-inset: clamp(72px,8.5svh,100px); --section-inner-gap: clamp(18px,2.5svh,26px); }
@media (min-width:768px) {
  .work-section,.project-section,.approach-section,.footer { padding-top: var(--section-inset); }
  .work-intro { margin-bottom: var(--section-inner-gap); }
  .work-controls { margin-bottom: 12px; }
  .footer-main { gap: clamp(28px,4svh,45px); }
}
@media (max-width:767px) {
  :root { --section-inset: 72px; --section-inner-gap: 20px; }
  .work-section,.project-section,.approach-section,.footer { padding-top: var(--section-inset); }
  .work-intro,.work-controls { margin-bottom: var(--section-inner-gap); }
  .approach-section,.footer { height: auto; min-height: 0; align-items: stretch; }
  .approach-section { padding-bottom: var(--section-inset); }
  .footer { display: block; padding-bottom: 28px; }
  .footer-main { display: flex; gap: 24px; }
  .footer-bottom { margin-top: var(--section-inset); }

  .site-header .language-switcher,
  .site-header .language-switcher:is(:hover,:focus-within),
  .site-header .theme-button,
  .site-header .theme-button:is(:hover,:focus-visible),
  .site-header .contact-icon,
  .site-header .contact-icon:is(:hover,:focus-visible) {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  .site-header .language-switcher button {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
  .site-header.is-scrolled .language-switcher {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
  .site-header.is-scrolled .language-switcher button[aria-pressed="true"] {
    width: 24px;
    min-width: 24px;
    height: 24px;
  }
  .site-header.is-scrolled .theme-button,
  .site-header.is-scrolled .theme-button:is(:hover,:focus-visible),
  .site-header.is-scrolled .contact-icon,
  .site-header.is-scrolled .contact-icon:is(:hover,:focus-visible) {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
}

@media (max-width:767px) and (prefers-reduced-motion:no-preference) {
  .hero-art.is-changing {
    transition: opacity .68s cubic-bezier(.22,1,.36,1),transform .88s cubic-bezier(.22,1,.36,1);
  }
}

/* A browser shell keeps the live desktop preview at the same ratio everywhere. */
.site-frame.is-desktop {
  --browser-bar-height: clamp(34px,3.5vw,42px);
  aspect-ratio: 16 / 10;
  border: 1px solid #64636f;
  border-radius: clamp(10px,1.1vw,15px);
  background: #171720;
  box-shadow: 0 30px 80px #0007, inset 0 1px #ffffff36;
}
.site-frame.is-desktop .site-browser-bar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 146px;
  align-items: center;
  gap: 8px;
  height: var(--browser-bar-height);
  padding-inline: 11px;
  border-bottom: 1px solid #ffffff24;
  background: linear-gradient(#292831,#1b1b24);
}
.site-frame.is-mobile .site-browser-bar { display: none; }
.site-browser-lights { display: flex; align-items: center; gap: 5px; }
.site-browser-lights i { width: 7px; height: 7px; border-radius: 50%; background: #fa7470; box-shadow: 0 0 0 1px #0003; }
.site-browser-lights i:nth-child(2) { background: #edc15d; }
.site-browser-lights i:nth-child(3) { background: #64c584; }
.site-browser-address {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 7px;
  box-sizing: border-box;
  width: min(100%,360px);
  min-width: 0;
  height: 24px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid #ffffff19;
  border-radius: 6px;
  background: #101017;
  color: #d7d4df;
  font: 500 11px/1 Onest,Mardoto,sans-serif;
  white-space: nowrap;
}
.site-browser-address svg { flex: none; width: 12px; height: 12px; opacity: .65; }
.site-browser-address span { overflow: hidden; text-overflow: ellipsis; }
.site-frame.is-desktop .site-preview-viewport {
  top: var(--browser-bar-height);
  border-radius: 0 0 12px 12px;
}
.site-frame.is-desktop .preview-toolbar {
  top: calc((var(--browser-bar-height) - 40px)/2);
  right: 58px;
}
.site-frame.is-desktop .preview-expand {
  top: calc((var(--browser-bar-height) - 40px)/2);
  right: 7px;
}
@media (max-width:767px) {
  .project-section:has(.site-frame.is-desktop) { min-height: 0; }
  .project-stage.has-website-preview:has(.site-frame.is-desktop),
  .project-stage.has-website-preview:has(.site-frame.is-desktop) .project-stage-content {
    flex: none;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .project-stage.has-website-preview .site-frame.is-desktop {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .site-frame.is-desktop { --browser-bar-height: 34px; }
  .site-frame.is-desktop .site-browser-bar {
    grid-template-columns: 35px minmax(0,1fr) 72px;
    gap: 6px;
    padding-inline: 7px;
  }
  .site-browser-lights { gap: 3px; }
  .site-browser-lights i { width: 6px; height: 6px; }
  .site-frame.is-desktop .site-browser-address { height: 22px; padding-inline: 6px; font-size: 9px; }
  .site-frame.is-desktop .preview-toolbar { top: 1px; right: 7px; }
}

/* A brief, non-blocking cue shows that each project screen can be explored. */
.flow-web { position: relative; }
.interaction-hint {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(180deg,#08071ba8,#08071b8c);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.interaction-hint.is-playing { animation: interaction-hint-visibility 2s ease both; }
.interaction-hint-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  padding: 16px 20px;
  border: 1px solid #ffffff78;
  border-radius: 21px;
  background: #211738dc;
  box-shadow: 0 16px 48px #0007, inset 0 1px #ffffff2b;
  text-align: center;
  transform: translateY(12px) scale(.94);
}
.interaction-hint.is-playing .interaction-hint-badge { animation: interaction-hint-badge 2s cubic-bezier(.22,1,.36,1) both; }
.interaction-hint-icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.interaction-hint-icon svg { position: relative; z-index: 1; width: 32px; height: 32px; filter: drop-shadow(0 2px 5px #0006); }
.interaction-hint-ring { position: absolute; inset: -4px; border: 1.5px solid #bca4ff; border-radius: 50%; opacity: 0; }
.interaction-hint.is-playing .interaction-hint-ring { animation: interaction-hint-ring 1s ease-out .3s infinite; }
.interaction-hint-label { font: 700 clamp(11px,1vw,14px)/1.25 Onest,sans-serif; letter-spacing: -.01em; }
.site-frame.is-desktop .interaction-hint-badge { flex-direction: row; gap: 14px; padding: 15px 24px; border-radius: 999px; }
.site-frame.is-desktop .interaction-hint-label { font-size: clamp(12px,1.2vw,16px); white-space: nowrap; }
@keyframes interaction-hint-visibility { 0% { opacity: 0; } 12%,76% { opacity: 1; } 100% { opacity: 0; } }
@keyframes interaction-hint-badge { 0% { opacity: 0; transform: translateY(12px) scale(.94); } 18%,76% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes interaction-hint-ring { 0% { opacity: .85; transform: scale(.62); } 100% { opacity: 0; transform: scale(1.55); } }
@media (prefers-reduced-motion: reduce) {
  .interaction-hint.is-playing,.interaction-hint.is-playing .interaction-hint-badge,.interaction-hint.is-playing .interaction-hint-ring { animation: none; }
  .interaction-hint.is-playing { opacity: 1; }
  .interaction-hint.is-playing .interaction-hint-badge { transform: none; }
}

/* Live iframe previews use their own native pointer for accurate interaction. */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-studio-cursor .project-stage :is(.site-frame,.live-frame.phone),
  html.has-studio-cursor .project-stage :is(.site-frame,.live-frame.phone) * { cursor: auto !important; }
  html.has-studio-cursor .project-stage :is(.site-frame,.live-frame.phone) button { cursor: pointer !important; }
}
