/* The header keeps one horizontal anchor while it changes size. */
.site-header {
  left: 50%;
  right: auto;
  width: 100%;
  transform: translateX(-50%);
  border: 1px solid transparent;
  transition: top .44s cubic-bezier(.22,1,.36,1),
    width .44s cubic-bezier(.22,1,.36,1),
    height .44s cubic-bezier(.22,1,.36,1),
    border-radius .44s cubic-bezier(.22,1,.36,1),
    background-color .28s ease,
    border-color .28s ease,
    color .28s ease,
    box-shadow .28s ease;
}
.site-header.is-scrolled:not(.menu-visible) {
  left: 50%;
  right: auto;
  width: min(690px, calc(100% - 32px));
  transform: translateX(-50%);
}
.site-header.is-scrolled.menu-visible {
  top: 0;
  width: 100%;
  height: 68px;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.site-header.is-scrolled.menu-visible .header-inner { padding: 0 28px; }
.site-header.is-scrolled.menu-visible .wordmark { font-size: 18px; }
.site-header.is-scrolled.menu-visible .city-clock { display: inline; }
.site-header.is-scrolled.menu-visible .menu-button { height: 32px; }
.site-header.is-scrolled.menu-visible .theme-button,
.site-header.is-scrolled.menu-visible .contact-icon { width: 32px; height: 32px; }

/* The featured work controls remain legible over light or busy project imagery. */
.hero-picker { min-width: 195px; }
.hero-picker-label {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 11px;
  color: #f1ecff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.hero-picker-label span { color: #aea6c1; font-weight: 500; letter-spacing: .06em; }
.hero-selector { gap: 5px; }
.hero-selector button {
  min-height: 34px;
  padding: 5px 14px 5px 6px;
  border-color: #ffffff28;
  background: #161421db;
  color: #f1eef7;
  font-weight: 500;
}
.hero-selector button:hover,
.hero-selector button.is-active { background: #54389e; border-color: #b49afb; color: #fff; }
.hero-selector button img { width: 22px; height: 22px; }
.hero-feature {
  width: 316px;
  min-width: 0;
  max-width: 316px;
  padding: 17px;
  border: 1px solid #ffffff42;
  border-radius: 12px;
  background: #090814dc;
  box-shadow: 0 18px 45px #0005;
  backdrop-filter: blur(22px);
}
.hero-feature-index { margin-bottom: 12px; color: #c7bfd6; }
.hero-feature-type { color: #c7bfd6; }
.hero-feature h2 { margin-top: 3px; }
.hero-view {
  width: 100%;
  min-height: 38px;
  justify-content: space-between;
  margin-top: 17px;
  padding: 9px 13px;
  border: 1px solid #9f7af3;
  border-radius: 7px;
  background: #8357e8;
  color: #fff;
  font-weight: 600;
  transition: background .24s, transform .24s, border-color .24s;
}
.hero-view:hover { gap: 34px; color: #fff; background: #9b72f1; border-color: #bda4f9; transform: translateY(-2px); }
.hero-view:active { transform: translateY(0) scale(.98); }

.work-row { grid-template-columns: 44px minmax(190px,1.15fr) minmax(210px,1.7fr) minmax(120px,1fr) 210px 72px; }
.work-arrow { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; font-size: 19px; }
.work-arrow span { font-size: 12px; font-weight: 600; }
.work-row:hover .work-name { color: #b99bff; }
.work-name { transition: color .25s; }

/* A short guide and an explicit next action make the screen flows discoverable. */
.project-preview-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 4.4%;
  border-top: 1px solid var(--line);
}
.project-preview-guide span {
  flex: none;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}
.project-preview-guide p { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.flow-main,.flow-web { cursor: pointer; }
.flow-hotspot:hover { box-shadow: none; }
.flow-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid #ffffff35;
  border-radius: 999px;
  background: #090814cf;
  color: #f7f5fc;
  font-size: 12px;
  backdrop-filter: blur(12px);
}
.flow-hint span { margin: 0; font-size: 17px; }
.project-controls { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.project-controls .control-main,
.project-controls .control-steps { display: flex; align-items: center; }
.project-controls .control-main { justify-content: space-between; gap: 20px; }
.project-controls .control-steps { flex-wrap: wrap; gap: 7px; }
.project-controls .control-caption { max-width: none; color: var(--fg); font-size: 13px; text-align: left; }
.project-controls .control-next {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  padding: 9px 14px;
  border-color: #9367f1;
  border-radius: 7px;
  background: #8357e8;
  color: #fff;
  font-weight: 600;
}
.project-controls .control-next:hover { background: #9b72f1; border-color: #bda4f9; color: #fff; }
.project-controls .control-next span { font-size: 17px; line-height: 1; }

/* Light mode changes the entire first view and the header controls. */
body.theme-light .hero { background: #f0eef3; color: #191523; }
body.theme-light .hero::after {
  background: linear-gradient(90deg,#f0eef3 0%,#f0eef3ef 29%,#f0eef3a8 45%,transparent 67%),
    linear-gradient(0deg,#f0eef3ea,transparent 30%);
}
body.theme-light .hero-overline { color: #625970; }
body.theme-light .hero h1 span { color: #6c3ed0; }
body.theme-light .hero-intro { color: #4f495b; }
body.theme-light .hero-picker-label { color: #272133; }
body.theme-light .hero-picker-label span { color: #746b7f; }
body.theme-light .hero-selector button { background: #ffffffde; border-color: #cfc7d9; color: #383044; }
body.theme-light .hero-selector button:hover,
body.theme-light .hero-selector button.is-active { background: #6d44d3; border-color: #6d44d3; color: #fff; }
body.theme-light .hero-feature { background: #ffffffeb; border-color: #d5cedd; box-shadow: 0 18px 45px #4f446040; }
body.theme-light .hero-feature-index,
body.theme-light .hero-feature-type { color: #635b6f; }
body.theme-light .hero-feature h2 { color: #1a1624; }
body.theme-light .site-header:not(.menu-visible) { color: #1b1726; }
body.theme-light .site-header:not(.menu-visible):not(.is-scrolled) { color: #1b1726; }
body.theme-light .site-header:not(.menu-visible) .menu-button,
body.theme-light .site-header:not(.menu-visible) .theme-button,
body.theme-light .site-header:not(.menu-visible) .contact-icon {
  color: #211b2d;
  border-color: #aaa0b8;
  background: #ffffffc7;
}
body.theme-light .site-header:not(.menu-visible) .menu-button:hover,
body.theme-light .site-header:not(.menu-visible) .theme-button:hover,
body.theme-light .site-header:not(.menu-visible) .contact-icon:hover { background: #e1d7f0; border-color: #8b5cf6; }
body.theme-light .site-header.is-scrolled:not(.menu-visible) {
  border-color: #ccc3d7;
  background: #f8f6fadd;
  box-shadow: 0 14px 35px #594b6d26;
}

@media (min-width:768px) and (max-width:1100px) {
  .work-row { grid-template-columns: 35px minmax(140px,1fr) minmax(140px,1.4fr) 100px 130px 60px; gap: 10px; }
  .work-arrow { gap: 4px; }
}
@media (max-width:767px) {
  html { overflow-x: clip; }
  .site-header.is-scrolled:not(.menu-visible) { top: 8px !important; width: calc(100% - 16px) !important; height: 46px !important; }
  .site-header.is-scrolled.menu-visible { top: 0 !important; width: 100% !important; height: 58px !important; }
  .site-header.is-scrolled.menu-visible .header-inner { padding: 0 16px; }
  .site-header.is-scrolled.menu-visible .wordmark { font-size: 15px; }
  .site-header.is-scrolled.menu-visible .menu-button { height: 30px; }
  .site-header.is-scrolled.menu-visible .contact-icon { width: 30px; height: 30px; }
  .site-header.is-scrolled.menu-visible .theme-button { width: 30px; height: 30px; }
  .site-header.is-scrolled.menu-visible .city-clock { display: none; }
  .header-tools .theme-button { display: grid; width: 30px; height: 30px; }
  .hero-picker { display: none; }
  .hero-feature {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    width: 100%;
    max-width: none;
    gap: 10px;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid #ffffff9c;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero-feature h2 { font-size: 20px; }
  .hero-view { width: auto; min-height: 34px; margin: 0; padding: 7px 9px; font-size: 11px; }
  body.theme-light .hero::after { background: linear-gradient(180deg,#f0eef3d9 0%,transparent 39%,#f0eef31a 63%,#f0eef3f5 100%); }
  body.theme-light .hero-feature { background: none; border-color: #91839c; box-shadow: none; }
  .work-row { grid-template-columns: 32px minmax(0,1fr) 26px; }
  .work-arrow { grid-column: 3; grid-row: 1; font-size: 23px; }
  .work-arrow span { display: none; }
  .project-preview-guide { display: block; padding: 12px 16px; }
  .project-preview-guide p { margin-top: 5px; text-align: left; font-size: 12px; line-height: 1.35; }
  .project-controls { display: flex; padding: 15px 16px 25px; }
  .project-controls .control-main { align-items: flex-start; }
  .project-controls .control-caption { margin: 0; align-self: center; font-size: 12px; }
  .project-controls .control-next { flex: none; min-height: 36px; gap: 8px; padding: 7px 10px; font-size: 11px; }
  .project-controls .control-steps { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .project-controls .control-steps::-webkit-scrollbar { display: none; }
  .project-controls .control-steps button { flex: none; }
}
@media (max-width:359px) {
  .site-header .wordmark,
  .site-header.is-scrolled.menu-visible .wordmark { gap: 4px; font-size: 13px; letter-spacing: .08em; }
  .site-header.is-scrolled:not(.menu-visible) .wordmark { font-size: 12px; }
  .footer-main h2 { font-size: 50px; }
}
@media (prefers-reduced-motion:reduce) {
  .site-header,.hero-view { transition: none !important; }
}

/* Shared icon language. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-button .icon,.contact-icon .icon { width: 17px; height: 17px; }
.menu-primary .icon,.menu-email .icon { width: 20px; height: 20px; }
.menu-projects-list .icon { width: 15px; height: 15px; margin-left: auto; opacity: .7; }
.menu-projects-list a { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 0; border-bottom: 1px solid #ffffff26; color: #eeeaf5; font-size: 14px; transition: padding-left .25s,color .25s; }
.menu-projects-list a:hover { padding-left: 8px; color: #b99bff; }
.menu-projects-list a img { width: 25px; height: 25px; border-radius: 6px; object-fit: cover; }
.menu-projects-list button span:last-child { margin-left: 0; }
body.theme-light .menu-projects-list a { border-color: #d7d5d6; color: #383641; }
body.theme-light .menu-projects-list a:hover { color: #6d48d4; }
.hero-view .icon,.footer-mail .icon { width: 19px; height: 19px; }
.work-arrow .icon { width: 18px; height: 18px; }
.project-heading-top button { display: inline-flex; align-items: center; gap: 9px; }
.project-heading-top button .icon { width: 16px; height: 16px; }

/* The hero's text and project controls now occupy separate rows. */
.hero { display: flex; flex-direction: column; height: auto; min-height: max(100svh, 780px); }
.hero-content { flex: none; }
.hero-bottom { position: relative; inset: auto; width: 100%; flex: none; margin-top: auto; padding: 38px 4.4% 50px; align-items: flex-end; }
.hero-art .art-web {
  left: 0;
  top: 26%;
  width: min(850px,55vw);
  height: auto;
  max-height: 58%;
  object-fit: contain;
  object-position: center;
  transform: rotate(-2deg);
}
.hero:has(.art-web) .hero-art { left: 50%; }
.hero-art .art-web { width: min(690px,48vw); }
.hero-art .art-phone { width: clamp(180px,20vw,305px); }
.hero-feature {
  border-color: var(--line);
  background: var(--header-bg);
  box-shadow: 0 12px 35px #0005;
  backdrop-filter: blur(22px);
}
.hero-view { justify-content: center; }
.hero-view:hover { gap: 0; }
body.theme-light .hero-feature { border-color: var(--line); background: var(--header-bg); box-shadow: 0 14px 35px #594b6d26; }
body.theme-light .hero-feature-index,body.theme-light .hero-feature-type { color: var(--muted); }

/* Project screens and controls share the page background. */
.project-heading-top { justify-content: flex-end; }
.project-heading h2 { margin-top: 24px; }
.project-stage { min-height: 0; overflow: visible; border: 0; background: var(--bg); }
.project-stage::before { display: none; }
.project-stage-layout {
  display: grid;
  grid-template-columns: minmax(230px,300px) minmax(0,1fr);
  gap: clamp(28px,4vw,68px);
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 42px 4.4% 100px;
}
.project-stage-content { min-width: 0; min-height: 0; padding: 0; justify-content: center; }
.project-controls { display: block; min-width: 0; padding: 0; }
.preview-sidebar h3 { margin: 0 0 9px; font: 700 clamp(27px,2.4vw,37px)/1.1 Syne,'Noto Sans Armenian',sans-serif; letter-spacing: -.045em; }
.preview-sidebar p { max-width: 270px; margin: 0 0 25px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.project-controls .control-steps { display: grid; gap: 0; overflow: visible; padding: 0; }
.project-controls .control-steps button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
}
.project-controls .control-steps button:first-child { border-top: 1px solid var(--line); }
.project-controls .control-steps button:hover,
.project-controls .control-steps button.is-active { border-color: var(--line); background: none; color: var(--fg); }
.project-controls .control-steps button.is-active { font-weight: 700; }
.project-controls .control-steps button.is-active .icon { color: var(--accent); }
.project-controls .control-steps .icon { width: 16px; height: 16px; }
.project-controls .control-next { width: 100%; margin-top: 25px; }
.flow-main { width: min(30vw,340px); }
.flow-web { width: 100%; max-width: 1000px; }
.flow-web img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.flow-hotspot:hover { box-shadow: none; }
.live-frame { width: 100%; max-width: 1100px; }
.live-frame.phone { width: min(390px,100%); }
body.theme-light .project-stage { background: var(--bg); }

/* Remove the editorial numbering and keep navigation obvious. */
.work-intro { display: block; margin-bottom: 66px; }
.work-section { padding-top: 105px; }
.work-row { grid-template-columns: minmax(190px,1.15fr) minmax(210px,1.7fr) minmax(120px,1fr) 210px 72px; }
.work-arrow { justify-content: flex-end; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.work-row:hover .work-arrow { text-decoration-color: var(--accent); transform: none; }
.menu-primary>a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.approach-layout { margin-top: 0; }
.approach-list>div { grid-template-columns: 1fr; }
.footer { padding-top: 70px; }

/* The menu follows the selected theme. */
.site-menu { background: #0d0c15; color: #f2f0f7; }
.menu-kicker,.menu-small { color: #a29daf; }
.menu-primary>a,.menu-projects-list button { border-color: #ffffff26; color: #eeeaf5; }
.menu-primary>a:hover,.menu-projects-list button:hover { color: #b99bff; }
.menu-projects-list .icon { color: #b2aabc; }
.menu-email { border-color: #ffffff6b; }
.menu-art { border: 1px solid #ffffff24; }
.site-header.menu-visible,.site-header.is-scrolled.menu-visible { color: #f2f0f7; }
.site-header.menu-visible .menu-button,
.site-header.menu-visible .theme-button,
.site-header.menu-visible .contact-icon { color: #f2f0f7; background: #ffffff14; border-color: #ffffff35; }
body.theme-light .site-menu { background: #f3f2f0; color: #15141b; }
body.theme-light .site-menu .menu-kicker,body.theme-light .site-menu .menu-small { color: #8a8890; }
body.theme-light .site-menu .menu-primary>a,
body.theme-light .site-menu .menu-projects-list button { border-color: #d7d5d6; color: #383641; }
body.theme-light .site-menu .menu-primary>a:hover,
body.theme-light .site-menu .menu-projects-list button:hover { color: #6d48d4; }
body.theme-light .site-menu .menu-email { border-color: #99969e; }
body.theme-light .site-menu .menu-art { border-color: transparent; }
body.theme-light .site-header.menu-visible { color: #15141b; }
body.theme-light .site-header.menu-visible .menu-button,
body.theme-light .site-header.menu-visible .theme-button,
body.theme-light .site-header.menu-visible .contact-icon { color: #15141b; background: #17151a0c; border-color: #17151a30; }

/* Language options and the contact label remain compact in the header. */
.language-switcher { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #ffffff2a; border-radius: 999px; background: #ffffff0c; }
.language-switcher button { min-width: 31px; height: 24px; padding: 0 5px; border: 0; border-radius: 999px; background: none; color: inherit; font-size: 10px; font-weight: 600; line-height: 1; }
.language-switcher button:hover { color: #c5adff; }
.language-switcher button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.site-header:not(.menu-visible) .language-switcher { color: inherit; }
body.theme-light .site-header:not(.menu-visible) .language-switcher { border-color: #bbb1c8; background: #ffffffa8; }
.menu-languages { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; }
.menu-languages>span { color: #a29daf; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.menu-languages .language-switcher { border-color: #ffffff36; }
body.theme-light .menu-languages>span { color: #8a8890; }
body.theme-light .menu-languages .language-switcher { border-color: #d7d5d6; }
.contact-icon { position: relative; display: flex; flex: none; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; transition: width .32s cubic-bezier(.22,1,.36,1),border-radius .32s cubic-bezier(.22,1,.36,1),background .2s,border-color .2s; }
.site-header .contact-icon:hover,.site-header .contact-icon:focus-visible { width: 148px; border-radius: 999px; transform: none; }
.contact-label {
  position: static;
  max-width: 0;
  overflow: hidden;
  margin-right: 0;
  padding: 0;
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: max-width .32s cubic-bezier(.22,1,.36,1),margin-right .32s cubic-bezier(.22,1,.36,1),opacity .2s ease,transform .32s cubic-bezier(.22,1,.36,1);
}
.contact-icon:hover .contact-label,.contact-icon:focus-visible .contact-label { max-width: 110px; margin-right: 10px; opacity: 1; transform: translateX(0); }
body.theme-light .contact-label { color: #211b2d; }
.site-header.menu-visible .contact-label { color: #f2f0f7; }
body.theme-light .site-header.menu-visible .contact-label { color: #211b2d; }

@media (min-width:768px) and (max-width:1100px) {
  .work-row { grid-template-columns: minmax(150px,1fr) minmax(140px,1.4fr) 100px 130px 60px; }
  .hero-art .art-web { width: min(690px,48vw); }
}
@media (max-width:1023px) {
  .project-stage-layout { grid-template-columns: 1fr; gap: 25px; }
  .project-controls { order: 0; }
  .project-stage-content { order: 1; }
  .preview-sidebar p { max-width: none; margin-bottom: 15px; }
  .project-controls .control-steps { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .project-controls .control-steps button,
  .project-controls .control-steps button:first-child { width: auto; flex: none; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
  .project-controls .control-steps button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
  .project-controls .control-steps button.is-active .icon { color: #fff; }
  .project-controls .control-next { width: auto; margin-top: 16px; }
  .flow-main { width: min(52vw,340px); }
}
@media (max-width:767px) {
  .header-tools>.language-switcher { display: none; }
  .site-header .contact-icon:hover,.site-header .contact-icon:focus-visible { width: 30px; border-radius: 50%; }
  .site-header.is-scrolled .contact-icon:hover,.site-header.is-scrolled .contact-icon:focus-visible { width: 28px; }
  .site-header.is-scrolled.menu-visible .city-clock { display: none; }
  .contact-label { display: none; }
  .hero { display: block; height: 100svh; min-height: 660px; }
  html:is([lang="hy"],[lang="ru"]) .hero { min-height: max(100svh,850px); }
  .hero-bottom { position: absolute; inset: auto 18px 20px; width: auto; margin: 0; padding: 0; }
  .hero-art .art-phone { width: min(52vw,195px); }
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone { top: 44% !important; width: min(48vw,180px); }
  .hero-art .art-web { left: 3%; top: 40%; width: 94vw; height: auto; max-height: none; object-fit: contain; transform: rotate(-3deg); }
  .hero:has(.art-web) .hero-art { left: 0; right: 0; }
  .hero-feature { background: none; border-color: #ffffff9c; box-shadow: none; backdrop-filter: none; }
  body.theme-light .hero-feature { background: none; border-color: #91839c; box-shadow: none; }
  .work-section { padding-top: 86px; }
  .work-intro { margin-bottom: 55px; }
  .work-row { grid-template-columns: minmax(0,1fr) 26px; }
  .work-name { grid-column: 1; }
  .work-arrow { grid-column: 2; }
  .work-image,.work-summary { grid-column: 1/3; }
  .project-heading h2 { margin-top: 20px; }
  .project-stage-layout { padding: 22px 16px 65px; }
  .preview-sidebar h3 { font-size: 25px; }
  .preview-sidebar p { font-size: 13px; }
  .project-controls .control-steps { display: flex; }
  .project-controls .control-steps button { font-size: 12px; }
  .project-stage-content { min-height: 0; padding: 0; }
  .flow-main { width: min(80vw,310px); }
  .flow-web { width: 100%; }
  .flow-web img { min-height: 0; max-height: none; object-fit: contain; }
  .live-frame { width: 100%; height: 68vh; }
  .live-frame.phone { width: min(85vw,370px); }
  .approach-layout { margin-top: 0; }
  .menu-languages { margin-top: 22px; }
  .menu-small { display: none; }
  .menu-projects-list a { padding: 8px 0; font-size: 11px; }
  .menu-projects-list a img { width: 22px; height: 22px; }
  .menu-projects-list button span:last-child,.menu-projects-list a span:last-child { display: inline; }
  .work-arrow { font-size: 11px; }
}

/* A section should be complete when it enters the viewport. */
.hero { height: 100svh; min-height: 0; }
.hero-content { padding-top: clamp(90px,15svh,150px); }
.hero-bottom { padding-bottom: clamp(20px,5svh,50px); }
.hero-art { left: 50%; overflow: visible; }
.hero-art .art-phone { width: min(20vw,29svh,305px); }
.hero-art .art-phone:nth-child(3) { left: 56%; }
.hero-art .art-web { width: min(690px,48vw,105svh); }

.work-section {
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 0;
  padding: clamp(70px,9svh,105px) 4.4% clamp(18px,3svh,32px);
  scroll-margin-top: 0;
}
.work-intro { flex: none; margin-bottom: clamp(11px,2.5svh,24px); }
.work-intro h2 { font-size: clamp(53px,8svh,88px); }
.work-controls { flex: none; min-height: 32px; margin-bottom: 10px; }
.work-list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-template-rows: repeat(2,minmax(0,1fr));
  flex: 1;
  min-height: 0;
  gap: 12px;
  border: 0;
}
.work-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  transition: border-color .28s,background .28s,transform .28s;
}
.work-row:hover,.work-row:focus-visible { padding: 11px 12px; border-color: var(--accent); transform: translateY(-3px); }
.work-image { order: -1; flex: 1; width: 100%; height: auto; min-height: 0; margin: 0; opacity: 1; transform: none; }
.work-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.work-name { flex: none; gap: 7px; font-size: clamp(16px,1.45vw,22px); }
.work-name img { width: 25px; height: 25px; border-radius: 6px; }
.work-summary { flex: none; display: -webkit-box; max-width: none; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.28; }
.work-kind { display: none; }
.work-arrow {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-bg);
  color: var(--fg);
  font-size: 11px;
  text-decoration: none;
  backdrop-filter: blur(18px);
}
.work-arrow .icon { width: 15px; height: 15px; }
.work-row:hover .work-arrow { transform: none; border-color: var(--accent); text-decoration: none; }

.project-section { display: flex; flex-direction: column; height: 100svh; min-height: 0; padding-top: clamp(66px,8svh,90px); scroll-margin-top: 0; }
.project-heading { flex: none; padding: 0 4.4% clamp(11px,2svh,20px); }
.project-heading h2 { margin: 9px 0 11px; font-size: clamp(43px,7.4svh,88px); line-height: .95; }
.project-heading-bottom p { font-size: clamp(13px,1.3vw,17px); line-height: 1.3; }
.project-heading-bottom>div { gap: 25px; font-size: 11px; }
.project-stage { flex: 1; min-height: 0; overflow: hidden; }
.project-stage-layout { height: 100%; min-height: 0; grid-template-columns: minmax(200px,280px) minmax(0,1fr); gap: clamp(20px,3vw,48px); padding: 10px 4.4% 25px; }
.project-stage-content { height: 100%; min-height: 0; max-height: 100%; overflow: hidden; }
.flow-main { width: auto; height: 100%; max-height: 100%; aspect-ratio: 500/1084; }
.flow-web { width: 100%; height: 100%; max-height: 100%; border: 0; box-shadow: none; }
.flow-main,.flow-web { animation: none; }
.flow-web img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.live-frame { width: 100%; height: 100%; min-height: 0; }
.live-frame.phone { width: auto; height: 100%; max-width: 100%; min-height: 0; aspect-ratio: 390/660; }

.approach-section { display: flex; align-items: center; height: 100svh; min-height: 0; padding: clamp(68px,8svh,100px) 4.4% clamp(25px,4svh,50px); scroll-margin-top: 0; }
.approach-layout { width: 100%; margin: 0; }
.approach-list>div { padding: clamp(9px,1.7svh,18px) 0; }
.footer { display: flex; flex-direction: column; justify-content: space-between; height: 100svh; min-height: 0; padding: clamp(67px,8svh,100px) 4.4% 24px; scroll-margin-top: 0; }
.footer-main { flex: 1; align-items: center; padding: 0; }
.footer-main h2 { font-size: clamp(55px,10svh,130px); }

/* One language control at each width: header on desktop, menu on mobile. */
.menu-languages { display: none; }

/* The navigation controls share one surface and hover motion. */
.site-header .menu-button:hover,
.site-header .theme-button:hover,
.site-header .contact-icon:hover,
.site-header .menu-button:focus-visible,
.site-header .theme-button:focus-visible,
.site-header .contact-icon:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb,var(--accent) 18%,var(--header-bg));
  transform: none;
}
.site-header .language-switcher button:hover,
.site-header .language-switcher button:focus-visible { background: color-mix(in srgb,var(--accent) 18%,var(--header-bg)); color: inherit; }
.site-header .language-switcher button[aria-pressed="true"]:hover { background: var(--accent); color: #fff; }
.theme-button { display: flex; flex: none; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; transition: width .32s cubic-bezier(.22,1,.36,1),border-radius .32s cubic-bezier(.22,1,.36,1),background .2s,border-color .2s; }
.site-header .theme-button:hover,.site-header .theme-button:focus-visible { width: 148px; border-radius: 999px; }
.theme-label { max-width: 0; overflow: hidden; margin-right: 0; opacity: 0; font-size: 11px; font-weight: 600; transform: translateX(8px); transition: max-width .32s cubic-bezier(.22,1,.36,1),margin-right .32s cubic-bezier(.22,1,.36,1),opacity .2s,transform .32s cubic-bezier(.22,1,.36,1); }
.theme-button:hover .theme-label,.theme-button:focus-visible .theme-label { max-width: 110px; margin-right: 10px; opacity: 1; transform: translateX(0); }

/* A single forward symbol replaces the improvised arrow glyph. */
.cta-icon { stroke-width: 2.2; transition: transform .25s cubic-bezier(.22,1,.36,1); }
.hero-view { justify-content: space-between; gap: 12px; }
.hero-view:hover,.footer-mail:hover { gap: 12px; }
.hero-view:hover .cta-icon,.footer-mail:hover .cta-icon,.work-row:hover .cta-icon,.control-next:hover .cta-icon { transform: translateX(3px); }
.footer-mail { align-items: center; gap: 15px; }
.footer-mail .cta-icon { width: 22px; height: 22px; }

@media (min-width:768px) and (max-height:760px) {
  .hero-content { padding-top: 80px; }
  .hero-overline { margin-bottom: 13px; }
  .hero h1 { font-size: clamp(48px,8svh,66px); }
  .hero-intro { margin-top: 12px; font-size: 14px; }
  .hero-bottom { padding-top: 10px; padding-bottom: 18px; }
  .hero-selector { gap: 3px; }
  .hero-selector button { min-height: 24px; padding: 2px 10px 2px 4px; font-size: 11px; }
  .hero-selector button img { width: 18px; height: 18px; }
  .hero-picker-label { margin-bottom: 7px; }
  .hero-feature { padding: 12px; }
  .hero-feature h2 { font-size: 21px; }
  .hero-view { min-height: 32px; margin-top: 10px; }
  .work-intro h2 { font-size: 53px; }
  .work-name { font-size: 16px; }
  .work-summary { font-size: 11px; }
  .project-heading h2 { font-size: 43px; }
  .preview-sidebar h3 { font-size: 23px; }
  .preview-sidebar p { margin-bottom: 12px; font-size: 13px; }
  .project-controls .control-steps button { padding: 8px 0; }
  .project-controls .control-next { margin-top: 12px; }
}

@media (max-width:767px) {
  .site-header .theme-button:hover,.site-header .theme-button:focus-visible { width: 30px; border-radius: 50%; }
  .site-header.is-scrolled .theme-button:hover,.site-header.is-scrolled .theme-button:focus-visible { width: 28px; }
  .theme-label { display: none; }
  .menu-languages { display: flex; }
  .hero { height: 100svh; min-height: 0; }
  .hero-content { padding-top: clamp(76px,15svh,125px); }
  .hero-bottom { bottom: 14px; padding: 0; }
  .hero-art { left: 0; right: 0; }
  .hero-art .art-phone { top: clamp(290px,39svh,360px) !important; width: min(52vw,clamp(135px,calc(46svh - 190px),195px)); }
  html:is([lang="hy"],[lang="ru"]) .hero { min-height: 0; }
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone { top: clamp(290px,44svh,380px) !important; width: min(48vw,clamp(135px,calc(45svh - 190px),180px)); }
  .hero:has(.art-web) .hero-art { left: 0; right: 0; }
  .hero-art .art-web { left: 4%; width: 92vw; }
  .hero-view .cta-icon { width: 15px; height: 15px; }

  .work-section { padding: 63px 16px 15px; }
  .work-intro { margin-bottom: 8px; }
  .work-intro h2 { margin-top: 0; font-size: clamp(38px,8svh,66px); }
  .work-controls { min-height: 27px; margin-bottom: 8px; }
  .filters button { min-height: 25px; padding: 3px 9px; font-size: 11px; }
  .work-list { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 6px; }
  .work-row,.work-row:hover,.work-row:focus-visible { gap: 3px; padding: 6px; border-radius: 10px; transform: none; }
  .work-name { order: 0; grid-column: auto; grid-row: auto; gap: 5px; font-size: clamp(12px,1.9svh,16px); line-height: 1.08; }
  .work-name img { width: 18px; height: 18px; flex: none; }
  .work-image { order: -1; flex: 1; width: 100%; min-height: 0; height: auto; grid-column: auto; grid-row: auto; margin: 0; }
  .work-summary { display: none; }
  .work-kind { display: block; flex: none; font-size: 10px; line-height: 1.1; }
  .work-arrow { top: 6px; right: 6px; padding: 4px; }
  .work-arrow span { display: none; }
  .work-arrow .icon { width: 13px; height: 13px; }

  .project-section { padding-top: 59px; }
  .project-heading { padding: 0 16px 10px; }
  .project-heading-top button { font-size: 11px; }
  .project-heading h2 { margin: 7px 0; font-size: clamp(31px,5.9svh,52px); line-height: .98; }
  .project-heading-bottom p { font-size: 12px; line-height: 1.25; }
  .project-heading-bottom>div { gap: 15px; margin-top: 6px; font-size: 10px; }
  .project-heading-bottom>div span { margin-bottom: 2px; font-size: 8px; }
  .project-stage-layout { display: flex; flex-direction: column; gap: 10px; padding: 7px 16px 15px; }
  .project-controls { flex: none; min-height: 0; padding: 0; }
  .preview-sidebar h3 { margin: 0 0 6px; font-size: 19px; }
  .preview-sidebar p { display: none; }
  .project-controls .control-steps { gap: 5px; }
  .project-controls .control-steps button,.project-controls .control-steps button:first-child { padding: 5px 9px; font-size: 10px; }
  .project-controls .control-next { min-height: 31px; margin-top: 7px; padding: 5px 10px; font-size: 11px; }
  .project-stage-content { flex: 1; min-height: 0; padding: 0; }
  .flow-main { width: auto; height: 100%; max-width: 100%; }
  .flow-web { width: 100%; height: 100%; }
  .flow-web img { width: 100%; height: 100%; min-height: 0; }
  .live-frame,.live-frame.phone { width: auto; height: 100%; min-height: 0; max-width: 100%; }

  .approach-section { padding: 64px 16px 18px; }
  .approach-layout h2 { margin-bottom: 14px; font-size: clamp(38px,6svh,56px); }
  .approach-list>div { padding: clamp(6px,1.3svh,11px) 0; }
  .approach-list h3 { font-size: clamp(17px,2.7svh,23px); }
  .approach-list p { margin-top: 3px; font-size: 11px; line-height: 1.2; }
  .footer { padding: 64px 16px 20px; }
  .footer-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 25px; padding: 0; }
  .footer-main h2 { font-size: clamp(48px,8svh,76px); }
  .footer-mail { width: auto; min-width: 0; margin: 0; font-size: 21px; }
}

@media (max-width:767px) and (max-height:740px) {
  .hero-content { padding-top: 76px; }
  .hero h1 { font-size: clamp(33px,9svh,41px); }
  .hero-overline { margin-bottom: 10px; }
  .hero-intro { margin-top: 8px; font-size: 12px; }
  .hero-feature h2 { font-size: 17px; }
  .hero-view { min-height: 30px; font-size: 10px; }
  .project-heading-bottom>div { display: none; }
  .preview-sidebar h3 { font-size: 16px; }
  .project-controls .control-steps button,.project-controls .control-steps button:first-child { font-size: 9px; padding: 4px 7px; }
  .approach-list p { font-size: 10px; }
  .menu-grid { padding: 60px 16px 10px; }
  .menu-art { height: 180px; margin-bottom: 11px; }
  .menu-art-word { font-size: 34px; }
  .menu-primary .menu-kicker { margin-bottom: 5px; }
  .menu-primary>a { padding: 3px 0; font-size: 22px; }
  .menu-languages { margin-top: 9px; }
  .menu-projects { margin-top: 9px; }
  .menu-projects-list button,.menu-projects-list a { padding: 5px 0; font-size: 10px; }
  .menu-email { margin-top: 9px; font-size: 11px; }
}

/* Larger project choices stay legible while the hero rotates. */
.hero-picker-label span { color: #f1ecff; font-weight: 700; }
body.theme-light .hero-picker-label span { color: #272133; }
@media (min-width:768px) {
  .hero-picker { width: min(340px,45vw); min-width: 0; }
  .hero-selector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; max-width: none; }
  .hero-selector button { width: 100%; min-height: 43px; padding: 5px 9px 5px 5px; font-size: 13px; }
  .hero-selector button img { width: 28px; height: 28px; flex: none; }
  .hero-selector button span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero-picker-label { margin-bottom: 12px; font-size: 11px; }
}
@media (min-width:768px) and (max-height:760px) {
  .hero-selector { gap: 5px; }
  .hero-selector button { min-height: 35px; padding: 3px 8px 3px 4px; font-size: 11px; }
  .hero-selector button img { width: 23px; height: 23px; }
  .hero-picker-label { margin-bottom: 7px; font-size: 10px; }
}

@media (max-width:359px) and (max-height:600px) {
  .hero-art .art-phone,
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone { top: 275px !important; width: 100px; }
}

/* Final mock direction: a shared type and icon system. */
@font-face { font-family: Mardoto; src: url('/experience/assets/fonts/Mardoto-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Mardoto; src: url('/experience/assets/fonts/Mardoto-Medium.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Mardoto; src: url('/experience/assets/fonts/Mardoto-Bold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
:root { font-family: Onest, Mardoto, sans-serif; --muted: #b7b3c5; --quiet: #8f8a9e; }
body.theme-light { --muted: #5e596d; --quiet: #706a7a; }
body,button,input,select,textarea { font-family: Onest, Mardoto, sans-serif; }
.hero h1,.hero-feature h2,.work-intro h2,.work-name,.project-heading h2,.preview-sidebar h3,.approach-layout h2,.approach-list h3,.footer-main h2,.menu-primary>a,.menu-art-word,.wordmark { font-family: Onest, Mardoto, sans-serif; }
html[lang="hy"] body,html[lang="hy"] button,html[lang="hy"] input,html[lang="hy"] select,html[lang="hy"] textarea,
html[lang="hy"] .hero h1,html[lang="hy"] .hero-feature h2,html[lang="hy"] .work-intro h2,html[lang="hy"] .project-heading h2,html[lang="hy"] .preview-sidebar h3,html[lang="hy"] .approach-layout h2,html[lang="hy"] .approach-list h3,html[lang="hy"] .footer-main h2,html[lang="hy"] .menu-primary>a { font-family: Mardoto, Onest, sans-serif; }
.hero h1,.work-intro h2,.project-heading h2,.approach-layout h2,.footer-main h2 { letter-spacing: -.055em; }
html[lang="hy"] .hero h1,html[lang="hy"] .work-intro h2,html[lang="hy"] .project-heading h2,html[lang="hy"] .approach-layout h2,html[lang="hy"] .footer-main h2 { letter-spacing: -.035em; }
.ph-icon { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ph-arrow-right { --icon: url('/experience/assets/icons/arrow-right.svg'); }
.ph-arrow-up-right { --icon: url('/experience/assets/icons/arrow-up-right.svg'); }
.ph-mail { --icon: url('/experience/assets/icons/envelope-simple.svg'); }
.ph-moon { --icon: url('/experience/assets/icons/moon.svg'); }
.ph-sun { --icon: url('/experience/assets/icons/sun.svg'); }
.ph-caret-right { --icon: url('/experience/assets/icons/caret-right.svg'); }
.theme-button .ph-icon,.contact-icon .ph-icon { width: 17px; height: 17px; }
.theme-button,.site-header .theme-button:hover,.site-header .theme-button:focus-visible { width: 32px; height: 32px; border-radius: 50%; }
.site-header.is-scrolled .theme-button,.site-header.is-scrolled .theme-button:hover,.site-header.is-scrolled .theme-button:focus-visible { width: 28px; height: 28px; }
.theme-label { display: none; }
.site-header .menu-button:hover,.site-header .theme-button:hover,.site-header .contact-icon:hover,
.site-header .menu-button:focus-visible,.site-header .theme-button:focus-visible,.site-header .contact-icon:focus-visible { border-color: currentColor; background: color-mix(in srgb,currentColor 10%,transparent); }
.site-header .language-switcher button:hover { background: color-mix(in srgb,currentColor 12%,transparent); color: inherit; }
.site-header .language-switcher button[aria-pressed="true"]:hover { background: var(--accent); color: white; }

/* The project picker is one anchored navigation surface. */
.hero { position: relative; height: 100svh; }
.hero-bottom { position: absolute; inset: auto 4.4% 22px; width: auto; display: block; margin: 0; padding: 0; }
.hero-picker { width: max-content; max-width: 100%; min-width: 0; margin: 0 auto; padding: 6px; border: 1px solid #ffffff45; border-radius: 999px; background: #14121cc9; box-shadow: 0 14px 48px #0006; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.hero-selector { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; width: max-content; max-width: min(100%,calc(100vw - 10vw)); overflow-x: auto; overflow-y: hidden; padding: 0; scrollbar-width: none; scroll-behavior: smooth; }
.hero-selector::-webkit-scrollbar { display: none; }
.hero-selector button,.hero-selector button:hover,.hero-selector button.is-active { flex: none; width: auto; min-height: 42px; max-width: none; display: flex; align-items: center; gap: 7px; padding: 5px 13px 5px 6px; border: 0; border-radius: 999px; transform: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hero-selector button { background: transparent; color: #d3cedd; }
.hero-selector button:hover { background: #ffffff21; color: white; }
.hero-selector button.is-active { background: #f7f4ff; color: #201b2b; }
.hero-selector button img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.hero-selector button span { overflow: visible; text-overflow: clip; }
.hero-feature { position: absolute; right: 0; bottom: 74px; width: clamp(245px,24vw,340px); max-width: none; padding: 16px; border-color: #ffffff50; border-radius: 18px; background: #17131ebd; color: white; box-shadow: 0 14px 45px #0004; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.hero-feature h2 { font-size: clamp(19px,2vw,26px); }
.hero-feature-type { color: #e0dce9; font-size: 10px; }
.hero-view { min-height: 38px; margin-top: 11px; border-color: #ffffff4a; background: #ffffffed; color: #211b2b; }
.hero-view:hover { border-color: #fff; background: #fff; color: #211b2b; transform: translateY(-2px); }
.hero-view .ph-icon { width: 19px; height: 19px; }
body.theme-light .hero-picker { border-color: #d5cddd; background: #f6f3f7e8; box-shadow: 0 16px 45px #4c3d6d30; }
body.theme-light .hero-selector button { border: 0; background: transparent; color: #383044; }
body.theme-light .hero-selector button:hover { background: #e5dff0; color: #241c32; }
body.theme-light .hero-selector button.is-active { border: 0; background: #27212f; color: white; }
body.theme-light .hero-feature { border-color: #d5cddd; background: #f8f6f9dd; box-shadow: 0 16px 45px #4c3d6d24; }
body.theme-light .hero-view { background: #2b2334; color: #fff; border-color: #2b2334; }
body.theme-light .hero-view:hover { background: #17111f; color: #fff; }

/* Let device shadows extend across the continuous project section. */
.project-stage,.project-stage-content { overflow: visible; }
.project-stage-layout { padding-top: 4px; padding-bottom: 42px; }
.flow-main { max-height: calc(100% - 22px); box-shadow: 0 28px 74px #0008,0 0 0 1px #0006; }
body.theme-light .flow-main { box-shadow: 0 30px 72px #30304443,0 0 0 1px #282631; }
.work-row:hover .work-name,body.theme-light .work-row:hover .work-name { color: var(--fg); }
.work-arrow { text-decoration: none; }
.work-row:hover .work-arrow { text-decoration: none; }
.work-row .ph-icon { width: 20px; height: 20px; transition: transform .25s; }
.work-row:hover .ph-icon { transform: translate(2px,-2px); }

/* Actual project UI brings visual substance to the capabilities section. */
.approach-section { background: color-mix(in srgb,var(--surface) 58%,var(--bg)); }
.approach-layout { grid-template-columns: minmax(0,1.07fr) minmax(0,.93fr); gap: clamp(35px,5vw,100px); align-items: center; }
.approach-lead { min-width: 0; }
.approach-layout h2 { font-size: clamp(48px,5.9vw,100px); line-height: .96; }
.approach-gallery { display: grid; grid-template-columns: .74fr 1.26fr; gap: 12px; max-width: 650px; height: clamp(190px,29svh,285px); margin-top: clamp(24px,4svh,40px); }
.approach-gallery>div { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.approach-gallery-phone { display: flex; justify-content: center; padding-top: 18px; background: #171430 !important; }
.approach-gallery-phone img { width: min(64%,145px); height: auto; align-self: flex-start; border-radius: 16px 16px 0 0; box-shadow: 0 12px 30px #0008; }
.approach-gallery-web img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.approach-gallery>div img { transition: transform .7s cubic-bezier(.22,1,.36,1); }
.approach-gallery>div:hover img { transform: scale(1.035); }
.approach-list>div { grid-template-columns: 1fr; padding: clamp(14px,2.2svh,24px) 0; }
.approach-list h3 { font-size: clamp(23px,2.25vw,34px); }
.approach-list p { color: var(--muted); font-size: clamp(13px,1vw,16px); }

/* The final section has a clear invitation and a strip of real work. */
.footer { background: var(--bg); }
.footer-main { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: clamp(28px,5svh,55px); }
.footer-headline { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.footer-main h2 { font-size: clamp(58px,10svh,115px); line-height: .94; }
.footer-mail { min-width: clamp(220px,22vw,340px); align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 2px solid currentColor; color: var(--fg); font-size: clamp(21px,2vw,29px); font-weight: 600; transition: opacity .2s; }
.footer-mail:hover { min-width: clamp(220px,22vw,340px); color: var(--fg); opacity: .66; }
.footer-mail .ph-icon { width: 26px; height: 26px; transition: transform .25s; }
.footer-mail:hover .ph-icon { transform: translate(3px,-3px); }
.footer-visual { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; width: 100%; height: clamp(145px,28svh,270px); }
.footer-visual>div { position: relative; overflow: hidden; border-radius: 14px; background: #17152c; }
.footer-visual>div:nth-child(2) { background: #142659; }
.footer-visual>div:nth-child(3) { background: #261b16; }
.footer-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; opacity: .88; transition: transform .7s cubic-bezier(.22,1,.36,1),opacity .7s; }
.footer-visual>div:hover img { transform: scale(1.035); opacity: 1; }

/* A quieter, more legible full-screen menu. */
.menu-grid { max-width: none; grid-template-columns: minmax(220px,.9fr) minmax(270px,1fr) minmax(230px,.9fr); gap: clamp(24px,3vw,60px); padding: 100px 4.4% 35px; }
.menu-primary { justify-content: center; }
.menu-primary>a { padding: clamp(14px,2.4svh,24px) 0; font-size: clamp(30px,3.1vw,55px); letter-spacing: -.04em; text-decoration: none !important; }
.menu-primary>a:hover { padding-left: 0; color: inherit; opacity: .58; }
.menu-art { display: flex; justify-content: center; align-items: center; min-height: 0; border: 1px solid #ffffff25; border-radius: 18px; background: #0d1644; }
.menu-art::after { background: linear-gradient(0deg,#090d25e0 0%,transparent 40%); }
.menu-art img,.menu-art img:nth-child(2) { position: static; width: auto; max-width: 72%; height: 88%; max-height: 88%; border-radius: 25px; object-fit: contain; transform: rotate(-5deg); animation: none; box-shadow: 0 20px 60px #0008; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.menu-art:hover img { transform: rotate(-2deg) translateY(-6px); }
.menu-art-word { position: absolute; z-index: 1; bottom: 22px; left: 25px; right: 25px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #fff; font-size: clamp(23px,3vw,43px); font-weight: 700; letter-spacing: -.04em; }
.menu-art-word .ph-icon { width: 23px; height: 23px; }
.menu-projects { justify-content: center; }
.menu-projects .menu-kicker { margin: 0 0 8px; color: var(--muted); }
.menu-projects-list button,.menu-projects-list a { gap: 12px; padding: clamp(9px,1.5svh,14px) 0; font-size: clamp(14px,1.1vw,17px); font-weight: 500; transition: opacity .2s; }
.menu-projects-list button:hover,.menu-projects-list a:hover { padding-left: 0; color: inherit; opacity: .57; }
.menu-projects-list img,.menu-projects-list a img { width: 30px; height: 30px; border-radius: 7px; }
.menu-email { margin-top: clamp(15px,3svh,35px); font-size: clamp(12px,1vw,16px); }
.menu-email:hover { opacity: .6; }
body.theme-light .site-menu .menu-primary>a:hover,body.theme-light .site-menu .menu-projects-list button:hover,body.theme-light .site-menu .menu-projects-list a:hover { color: inherit; }
body.theme-light .menu-art { border-color: #d2ccdc; }

@media (max-width: 1100px) and (min-width: 768px) {
  .hero-picker { max-width: 100%; }
  .hero-selector { max-width: min(100%,calc(100vw - 9vw)); }
  .hero-selector button { font-size: 11px; }
  .menu-grid { grid-template-columns: minmax(185px,.9fr) minmax(210px,1fr) minmax(185px,.9fr); gap: 22px; }
  .menu-primary>a { font-size: clamp(24px,2.8vw,36px); }
}
@media (max-width: 767px) {
  .hero-bottom { inset: auto 12px 12px; width: auto; }
  .hero-picker { display: block; width: 100%; padding: 5px; }
  .hero-selector { display: flex; width: 100%; max-width: 100%; }
  .hero-selector button,.hero-selector button:hover,.hero-selector button.is-active { min-height: 37px; padding: 4px 11px 4px 4px; font-size: 11px; }
  .hero-selector button img { width: 26px; height: 26px; }
  .hero-feature { right: 0; bottom: 59px; width: min(225px,62vw); padding: 10px; border-radius: 13px; }
  .hero-feature h2 { font-size: 17px; }
  .hero-feature-type { font-size: 9px; }
  .hero-view { min-height: 31px; margin-top: 7px; padding: 5px 8px; font-size: 10px; }
  .hero-view .ph-icon { width: 15px; height: 15px; }
  .flow-main { max-height: calc(100% - 16px); }
  .approach-layout { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .approach-layout h2 { margin: 0; font-size: clamp(40px,7svh,57px); }
  .approach-gallery { max-width: none; height: clamp(120px,23svh,180px); margin-top: 16px; gap: 7px; }
  .approach-gallery>div { border-radius: 10px; }
  .approach-gallery-phone img { width: min(55%,100px); }
  .approach-list>div { padding: clamp(5px,.9svh,9px) 0; }
  .approach-list h3 { font-size: clamp(17px,2.6svh,22px); }
  .approach-list p { margin-top: 2px; font-size: 10px; }
  .footer-main { gap: 24px; }
  .footer-headline { display: block; }
  .footer-main h2 { font-size: clamp(48px,8svh,75px); }
  .footer-mail { width: 100%; min-width: 0; margin-top: 25px; font-size: 21px; }
  .footer-mail:hover { min-width: 0; }
  .footer-visual { height: clamp(115px,24svh,180px); gap: 5px; }
  .footer-visual>div { border-radius: 8px; }
  .menu-grid { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding: 66px 16px 13px; overflow-y: auto; }
  .menu-art { order: 1; min-height: 0; height: clamp(120px,23svh,190px); margin: 13px 0; }
  .menu-art img { height: 105%; max-height: none; max-width: 45%; border-radius: 11px; }
  .menu-art-word { bottom: 10px; left: 13px; right: 13px; font-size: 24px; }
  .menu-primary { order: 0; justify-content: start; }
  .menu-primary>a { padding: 7px 0; font-size: clamp(23px,5.8vw,31px); }
  .menu-languages { margin-top: 10px; }
  .menu-projects { order: 2; margin-top: 0; }
  .menu-projects .menu-kicker { margin-bottom: 2px; }
  .menu-projects-list { grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .menu-projects-list button,.menu-projects-list a { min-width: 0; padding: 5px 0; font-size: 11px; }
  .menu-projects-list img,.menu-projects-list a img { width: 23px; height: 23px; }
  .menu-email { margin-top: 8px; font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 690px) {
  .menu-art { height: 105px; margin: 8px 0; }
  .menu-primary>a { padding: 4px 0; font-size: 21px; }
  .menu-projects-list button,.menu-projects-list a { padding: 3px 0; }
  .approach-gallery { height: 102px; }
  .approach-layout { gap: 9px; }
  .footer-visual { height: 95px; }
}
.ph-list { --icon: url('/experience/assets/icons/list.svg'); }
.menu-visible .menu-mark { --icon: url('/experience/assets/icons/x.svg'); }
.menu-mark { width: 15px; height: 15px; }
.menu-mark i { display: none; }
.project-controls>.preview-sidebar { display: block; width: 100%; }
@media (min-width: 768px) {
  .hero-art { left: 56%; }
  .hero-art .art-phone { width: clamp(185px,18vw,320px); }
  .hero-art .art-phone:first-child { left: 0%; }
  .hero-art .art-phone:nth-child(2) { left: 25%; }
  .hero-art .art-phone:nth-child(3) { left: 54%; }
  .hero:has(.art-web) .hero-art { left: 54%; }
  .hero-art .art-web { width: min(700px,43vw); }
}
@media (max-width: 767px) {
  .hero-art,.hero:has(.art-web) .hero-art { left: 0; }
}
.menu-projects .menu-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.menu-projects-list button,.menu-projects-list a { font-size: clamp(15px,1.2vw,18px); }
body.theme-light .site-menu .menu-projects-list button,body.theme-light .site-menu .menu-projects-list a { color: #29252f; }
body.theme-light .site-menu .menu-projects .menu-kicker { color: #5b5665; }
.footer-visual>a { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #17152c; }
.footer-visual>a:nth-child(2) { background: #142659; }
.footer-visual>a:nth-child(3) { background: #261b16; }
.footer-visual>a::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,#090814ce); pointer-events: none; }
.footer-visual>a img { width: 100%; height: 100%; object-fit: cover; object-position: center 17%; opacity: .85; transition: transform .7s cubic-bezier(.22,1,.36,1),opacity .7s; }
.footer-visual>a:hover img { transform: scale(1.035); opacity: 1; }
.footer-visual>a>span { position: absolute; z-index: 1; right: 17px; bottom: 14px; left: 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: white; font-size: clamp(15px,1.35vw,20px); font-weight: 600; text-shadow: 0 1px 8px #000a; }
.footer-visual>a>span .ph-icon { width: 19px; height: 19px; transition: transform .25s; }
.footer-visual>a:hover>span .ph-icon { transform: translate(2px,-2px); }
@media (max-width:767px) {
  .footer-visual>a { border-radius: 8px; }
  .footer-visual>a>span { right: 7px; bottom: 7px; left: 7px; font-size: 9px; }
  .footer-visual>a>span .ph-icon { width: 11px; height: 11px; }
  .menu-projects-list button,.menu-projects-list a { font-size: 11px; }
}

/* Screenshot Studio's 420 x 884.3892 Apple frame is drawn into the transparent
   overlay; the screen stays live underneath its exact 12px inset. */
.iphone-frame { position: relative; display: block; flex: none; aspect-ratio: 420 / 884.3892; overflow: visible !important; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.iphone-frame::before { display: none !important; }
.iphone-frame::after { content: ''; position: absolute; z-index: 4; left: -28.5714286%; top: -13.568687%; width: 157.1428571%; height: 127.137373%; background: url('/experience/assets/studio-iphone-overlay.webp') center / 100% 100% no-repeat; pointer-events: none; }
.iphone-screen { position: absolute; z-index: 1; inset: auto; left: 2.857142857%; top: 1.356869%; width: 94.2857143%; height: 97.286262%; overflow: hidden; border-radius: 12.878788% / 5.92755%; background: #080814; }
.iphone-screen img,.iphone-screen iframe { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; border: 0; border-radius: 0; }

/* Calm crossfades and a compact picker that expands only the focused app. */
.hero { z-index: 2; overflow: visible; }
.hero-ambient,.hero::after { overflow: hidden; }
.work-section { position: relative; z-index: 1; }
.hero-intro { display: none; }
.hero-art { transition: opacity .72s cubic-bezier(.22,1,.36,1),transform 1.05s cubic-bezier(.22,1,.36,1); }
.hero-art.is-changing { transform: translateY(15px) scale(.985); }
.hero-selector { gap: 3px; }
.hero-selector button,.hero-selector button:hover,.hero-selector button.is-active { width: auto; max-width: 45px; min-width: 45px; gap: 0; padding: 6px 8px; transition: max-width .8s cubic-bezier(.22,1,.36,1),min-width .8s cubic-bezier(.22,1,.36,1),background-color .5s ease,color .5s ease,box-shadow .5s ease; }
.hero-selector button.is-active { max-width: 235px; min-width: 0; }
.hero-selector button span { display: block; max-width: 0; overflow: hidden; margin-left: 0; opacity: 0; white-space: nowrap; transform: translateX(-8px); transition: max-width .8s cubic-bezier(.22,1,.36,1),margin-left .8s cubic-bezier(.22,1,.36,1),opacity .5s ease,transform .8s cubic-bezier(.22,1,.36,1); }
.hero-selector button.is-active span { max-width: 175px; margin-left: 9px; opacity: 1; transform: translateX(0); }
.hero-selector button img { width: 30px; height: 30px; }
.hero-picker { box-shadow: 0 18px 45px #0006; }
.hero-feature { right: auto; left: 0; bottom: 83px; width: clamp(290px,27vw,410px); padding: 20px 22px; }
.hero-feature-description { max-width: 34ch; margin: 9px 0 0; color: #d5cfdf; font-size: clamp(12px,1vw,15px); line-height: 1.4; }
body.theme-light .hero-feature-description { color: #625a6b; }
.hero-view { margin-top: 17px; }
@media (min-width:768px) {
  .hero-art { left: 55.5%; right: auto; width: 41%; overflow: visible; }
  .hero-art .art-phone { width: clamp(165px,13.4vw,275px); height: auto; max-height: none; border: 1px solid #8d8792; border-radius: 15% / 7.1%; }
  .hero-art .art-phone:first-child { left: 0; top: 29%; transform: rotate(-9deg); }
  .hero-art .art-phone:nth-child(2) { left: 25%; top: 13%; transform: rotate(2deg); }
  .hero-art .art-phone:nth-child(3) { left: 51%; top: 25%; transform: rotate(9deg); }
  .hero:has(.art-web) .hero-art { left: 54%; width: 43%; }
  .hero-art .art-web { top: 24%; width: min(620px,39vw); max-height: 54%; }
}

/* Preview devices retain the usable screen, with their shadows outside the frame. */
.flow-main.iphone-frame { width: auto; height: calc(100% - 28px); max-height: calc(100% - 28px); aspect-ratio: 420 / 884.3892; cursor: pointer; transition: transform .65s cubic-bezier(.22,1,.36,1),box-shadow .65s ease; }
.flow-main.iphone-frame:hover { transform: translateY(-4px); }
.flow-main.iphone-frame img { width: 100%; height: 100%; object-fit: cover; }
.live-frame.phone.iphone-frame { width: auto; height: calc(100% - 28px); max-height: calc(100% - 28px); aspect-ratio: 420 / 884.3892; min-height: 0; }
.flow-web { transition: transform .65s cubic-bezier(.22,1,.36,1); }
.flow-web:hover { transform: translateY(-4px); }
.approach-gallery-phone { align-items: flex-start; }
.approach-gallery-phone .approach-device { width: auto; height: 135%; margin-top: 10px; }
.approach-gallery-phone .iphone-screen img { width: 100%; height: 100%; transform: none; box-shadow: none; }

/* Menu previews rotate through real projects; hover also previews the pointed row. */
.site-menu { transition: opacity .55s ease,transform .8s cubic-bezier(.22,1,.36,1),visibility .8s; }
.menu-art { background: radial-gradient(circle at 50% 42%,var(--menu-glow,#38316f),#0b0b19 82%); transition: background-color .8s ease; }
.menu-art-media { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; overflow: hidden; opacity: 1; transform: translateY(0) scale(1); transition: opacity .55s ease,transform .8s cubic-bezier(.22,1,.36,1); }
.menu-art-media.is-changing { opacity: 0; transform: translateY(18px) scale(.97); }
.menu-art .menu-device { width: auto; height: 80%; max-width: none; max-height: none; transform: rotate(-5deg); transition: transform .85s cubic-bezier(.22,1,.36,1); }
.menu-art:hover .menu-device { transform: rotate(-2deg) translateY(-5px); }
.menu-art .iphone-screen img { position: static; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; box-shadow: none; object-fit: cover; transform: none; animation: none; }
.menu-art .menu-site-shot { width: 92%; height: 62%; overflow: hidden; border: 1px solid #ffffff6b; border-radius: 11px; box-shadow: 0 25px 65px #0008; transform: rotate(-3deg); transition: transform .85s cubic-bezier(.22,1,.36,1); }
.menu-art:hover .menu-site-shot { transform: rotate(-1deg) translateY(-5px); }
.menu-art .menu-site-shot img { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; object-fit: cover; object-position: left top; transform: none; animation: none; box-shadow: none; }
.menu-primary>a { position: relative; padding-right: 34px; transition: padding-left .6s cubic-bezier(.22,1,.36,1),background-color .5s ease; }
.menu-primary>a::after { content: ''; position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; background: currentColor; -webkit-mask: url('/experience/assets/icons/arrow-up-right.svg') center / contain no-repeat; mask: url('/experience/assets/icons/arrow-up-right.svg') center / contain no-repeat; opacity: 0; transform: translate(-8px,-30%); transition: opacity .4s ease,transform .6s cubic-bezier(.22,1,.36,1); }
.menu-primary>a:hover,.menu-primary>a:focus-visible { padding-left: 10px; color: inherit; opacity: 1; background: color-mix(in srgb,currentColor 6%,transparent); }
.menu-primary>a:hover::after,.menu-primary>a:focus-visible::after { opacity: 1; transform: translate(0,-50%); }
.menu-projects-list button,.menu-projects-list a { position: relative; padding-right: 29px; border-radius: 8px; transition: padding-left .55s cubic-bezier(.22,1,.36,1),background-color .5s ease,box-shadow .5s ease; }
.menu-projects-list button::after,.menu-projects-list a::after { content: ''; position: absolute; right: 7px; top: 50%; width: 16px; height: 16px; background: currentColor; -webkit-mask: url('/experience/assets/icons/arrow-up-right.svg') center / contain no-repeat; mask: url('/experience/assets/icons/arrow-up-right.svg') center / contain no-repeat; opacity: 0; transform: translate(-6px,-50%); transition: opacity .35s,transform .55s cubic-bezier(.22,1,.36,1); }
.menu-projects-list button:hover,.menu-projects-list button:focus-visible,.menu-projects-list button.is-art-active,.menu-projects-list a:hover,.menu-projects-list a:focus-visible,.menu-projects-list a.is-art-active { padding-left: 9px; color: inherit; opacity: 1; background: color-mix(in srgb,currentColor 7%,transparent); box-shadow: inset 2px 0 var(--accent); }
.menu-projects-list button:hover::after,.menu-projects-list button:focus-visible::after,.menu-projects-list button.is-art-active::after,.menu-projects-list a:hover::after,.menu-projects-list a:focus-visible::after,.menu-projects-list a.is-art-active::after { opacity: 1; transform: translate(0,-50%); }
body.theme-light .site-menu .menu-primary>a:hover,body.theme-light .site-menu .menu-projects-list button:hover,body.theme-light .site-menu .menu-projects-list a:hover { color: inherit; opacity: 1; }
.site-header { transition-duration: .68s; }
.work-row { transition-duration: .55s; }
@media (max-width:767px) {
  .hero { overflow: visible; }
  .hero-art { left: 0; width: 100%; overflow: hidden; }
  .hero-art .art-phone { width: clamp(125px,38vw,195px); height: auto; border-radius: 15% / 7.1%; }
  .hero-art .art-phone:nth-child(2) { left: 54% !important; top: clamp(275px,37svh,355px) !important; transform: rotate(6deg) !important; }
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:nth-child(2) { top: clamp(265px,41svh,370px) !important; }
  .hero-feature { left: 0; right: auto; bottom: 61px; width: min(196px,53vw); padding: 10px 12px; }
  .hero-feature-description { margin-top: 5px; font-size: 10px; line-height: 1.25; }
  .hero-view { margin-top: 8px; }
  .hero-selector button,.hero-selector button:hover,.hero-selector button.is-active { min-height: 37px; min-width: 39px; max-width: 39px; padding: 4px 6px; }
  .hero-selector button.is-active { max-width: 190px; min-width: 0; }
  .hero-selector button img { width: 25px; height: 25px; }
  .hero-selector button.is-active span { max-width: 135px; margin-left: 6px; }
  .flow-main.iphone-frame,.live-frame.phone.iphone-frame { height: calc(100% - 18px); max-height: calc(100% - 18px); }
  .approach-gallery-phone .approach-device { height: 144%; margin-top: 6px; }
  .menu-art .menu-device { height: 115%; }
  .menu-art .menu-site-shot { width: 86%; height: 67%; }
  .menu-primary>a::after { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-selector button,.hero-selector button span,.hero-art,.menu-art-media,.menu-primary>a,.menu-primary>a::after,.menu-projects-list button,.menu-projects-list a { transition-duration: .01ms !important; }
}
/* Keep the large hero devices fully inside the viewport. */
@media (min-width:768px) {
  .hero-art .art-phone { width: clamp(175px,12.6vw,245px); }
  body.theme-light .hero::after { background: linear-gradient(90deg,#f0eef3 0%,#f0eef3e8 26%,#f0eef3a3 43%,transparent 66%),linear-gradient(0deg,#f0eef380,transparent 15%); }
}
@media (max-width:767px) {
  .hero-feature { display: block; grid-template-columns: none; }
  .hero-feature>div { width: 100%; }
  .hero-feature-description { max-width: none; }
  .hero-view { display: flex; width: 100%; justify-content: space-between; }
  .menu-art .menu-device { height: 175%; }
}
@media (max-width:767px) {
  .hero-art .art-phone:nth-child(2) { left: 58% !important; }
}
.hero-art { transition: opacity .86s cubic-bezier(.22,1,.36,1),transform 1.1s cubic-bezier(.22,1,.36,1); }
.hero-art.is-changing { transition-duration: .42s; }
.menu-art-media { transition: opacity .72s ease,transform .85s cubic-bezier(.22,1,.36,1); }
.menu-art-media.is-changing { transition-duration: .34s; }
@media (min-width:1800px) {
  .hero-art .art-phone { width: 230px; }
  .hero-art .art-phone:first-child { top: 25%; }
  .hero-art .art-phone:nth-child(3) { top: 21%; }
}
@media (max-width:359px) and (max-height:600px) {
  .hero-art .art-phone:nth-child(2),
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:nth-child(2) { width: 110px; top: 245px !important; left: 58% !important; }
}
@media (max-width:767px) {
  .hero-art .art-phone:nth-child(2),
  html:is([lang="hy"],[lang="ru"]) .hero-art .art-phone:nth-child(2) { left: 60% !important; }
}

/* The selected project grows from the logo's own position. Both widths are
   measured after the font loads, so no item jumps when another is selected. */
.hero-selector button,.hero-selector button:hover,.hero-selector button.is-active {
  box-sizing: border-box;
  width: 44px !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 6px 8px;
  transition: width .78s cubic-bezier(.22,1,.36,1), background-color .5s ease, color .5s ease;
}
.hero-selector button.is-active { width: var(--expanded-width,160px) !important; }
.hero-selector button span {
  width: 0;
  max-width: none;
  margin-left: 0;
  opacity: 0;
  transform: translateX(-5px);
  transition: width .78s cubic-bezier(.22,1,.36,1), margin-left .78s cubic-bezier(.22,1,.36,1), opacity .35s ease, transform .78s cubic-bezier(.22,1,.36,1);
}
.hero-selector button.is-active span { width: var(--label-width,100px); max-width: none; margin-left: 9px; opacity: 1; transform: none; }
.hero-feature>div:not(.hero-feature-ghost),.hero-feature>.hero-view { transition: opacity .34s ease, transform .52s cubic-bezier(.22,1,.36,1); }
.hero-feature.is-changing>div:not(.hero-feature-ghost),.hero-feature.is-changing>.hero-view { opacity: 0; transform: translateY(9px); }
.hero-art.is-changing { transition-duration: .3s; }

/* Keep the menu's email at the foot of its column. */
.menu-projects { justify-content: flex-start; }
.menu-email { margin-top: auto; padding-top: 20px; }

/* Show the current language first, then reveal the other choices on hover or focus. */
.language-switcher { box-sizing: border-box; width: 39px; overflow: hidden; transition: width .52s cubic-bezier(.22,1,.36,1); }
.language-switcher:is(:hover,:focus-within) { width: 107px; }
.language-switcher button { flex: 0 0 31px; }
.language-switcher button[aria-pressed="true"] { order: -1; }

/* Let the mail control grow to the exact translated label width. */
:is(.site-header,.site-header.is-scrolled,.site-header.is-scrolled.menu-visible) .contact-icon:is(:hover,:focus-visible) {
  width: var(--contact-expanded-width,108px);
  padding-inline: 8px;
}
.contact-icon:is(:hover,:focus-visible) .contact-label { max-width: var(--contact-label-width,65px); margin-right: 8px; }

/* Project information occupies the left column; the preview uses the entire
   available height on the right. */
@media (min-width:768px) {
  .project-section { display: grid; grid-template-columns: minmax(300px,35%) minmax(0,1fr); gap: clamp(34px,4vw,75px); height: 100svh; padding: clamp(74px,9svh,100px) 4.4% clamp(24px,4svh,40px); }
  .project-info { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
  .project-heading { padding: 0; }
  .project-heading h2 { margin: 0 0 clamp(15px,3svh,27px); overflow-wrap: anywhere; font-size: clamp(43px,5.7svh,72px); }
  .project-heading-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px,3.2svh,32px); }
  .project-heading-bottom p { max-width: 35ch; }
  .project-heading-bottom>div { justify-content: flex-start; gap: 28px; }
  .project-controls { flex: none; margin-top: auto; padding: 25px 0 0; }
  .project-stage { height: 100%; min-height: 0; border: 0; background: transparent !important; }
  .project-stage::before { display: none; }
  .project-stage-content { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 0; padding: 0; }
  .flow-main.iphone-frame,.live-frame.phone.iphone-frame { height: calc(100% - 16px); max-height: calc(100% - 16px); }
  .flow-web,.live-frame:not(.phone) { height: 100%; }
}
@media (max-width:767px) {
  .hero-selector button,.hero-selector button:hover,.hero-selector button.is-active { width: 37px !important; min-width: 0 !important; max-width: none !important; padding: 4px 6px; }
  .hero-selector button.is-active { width: var(--expanded-width,160px) !important; }
  .project-section { display: flex; flex-direction: column; }
  .project-info { flex: none; min-height: 0; }
  .project-heading-bottom>div { display: flex; justify-content: flex-start; }
  .project-controls { padding: 8px 16px 0; }
  .project-stage { flex: 1; min-height: 0; }
  .project-stage-content { height: 100%; min-height: 0; }
  .menu-email { margin-top: 15px; padding-top: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-feature>div,.hero-feature>.hero-view,.language-switcher { transition-duration: .01ms !important; }
}

.work-intro h2 { max-width: 100%; margin: 0; white-space: nowrap; font-size: min(6.5vw,7.5svh,88px); }
.hero-feature>div:not(.hero-feature-ghost),.hero-feature>.hero-view { position: relative; z-index: 1; }
.hero-feature.is-changing>div:not(.hero-feature-ghost),.hero-feature.is-changing>.hero-view { opacity: 0; transform: translateY(9px); }
.hero-feature-ghost.is-leaving { opacity: 0; transform: translateY(-8px); }
@media (max-width:767px) {
  .work-intro h2 { font-size: min(7.9vw,5.7svh,44px); }
  .flow-main.iphone-frame,.live-frame.phone.iphone-frame { height: calc(100% - 42px); max-height: calc(100% - 42px); }
  .menu-projects { flex: 1 0 auto; }
  .menu-email { margin-top: auto; padding-top: 15px; }
}

/* Final interaction and project-detail pass. */
.hero-selector button.is-active { padding-right: 20px; }
.hero-feature {
  --tilt-x: 0deg; --tilt-y: 0deg; --parallax-y: 0px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  transform: perspective(950px) translateY(var(--parallax-y)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22,1,.36,1), box-shadow .55s ease, border-color .55s ease;
}
.hero-feature:is(:hover,:focus-within) { border-color: color-mix(in srgb,var(--accent) 60%,white); box-shadow: 0 26px 64px #0008,0 0 42px color-mix(in srgb,var(--accent) 18%,transparent); }
body.theme-light .hero-feature:is(:hover,:focus-within) { box-shadow: 0 26px 64px #4c3d6d3d,0 0 40px color-mix(in srgb,var(--accent) 15%,transparent); }
.hero-feature>div,.hero-feature>.hero-view { transition: opacity .28s ease !important; transform: none !important; }
.hero-feature.is-changing>div,.hero-feature.is-changing>.hero-view { opacity: 0; }
.hero-feature h2 { line-height: 1.15; }
.hero-art .art-phone,.hero-art .art-web,.flow-main.iphone-frame,.flow-web,.menu-art .menu-device,.work-row,.footer-visual>a { --tilt-x: 0deg; --tilt-y: 0deg; --parallax-x: 0px; --parallax-y: 0px; }
.hero-art .art-phone { transition: transform .65s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; }
.hero-art .art-phone:first-child { transform: perspective(1000px) translate3d(var(--parallax-x),var(--parallax-y),0) rotate(-9deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.hero-art .art-phone:nth-child(2) { transform: perspective(1000px) translate3d(var(--parallax-x),var(--parallax-y),0) rotate(2deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.hero-art .art-phone:nth-child(3) { transform: perspective(1000px) translate3d(var(--parallax-x),var(--parallax-y),0) rotate(9deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.hero-art .art-web { transform: perspective(1200px) translate3d(var(--parallax-x),var(--parallax-y),0) rotateY(calc(-7deg + var(--tilt-y))) rotateX(calc(3deg + var(--tilt-x))); transition: transform .65s cubic-bezier(.22,1,.36,1); }
.flow-main.iphone-frame,.flow-web { transform: perspective(1100px) translate3d(var(--parallax-x),var(--parallax-y),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.flow-main.iphone-frame:hover,.flow-web:hover { transform: perspective(1100px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 4px),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.work-row { transform: perspective(1200px) translate3d(var(--parallax-x),var(--parallax-y),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.work-row:hover,.work-row:focus-visible { transform: perspective(1200px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 3px),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
.footer-visual>a { transform: perspective(1000px) translate3d(var(--parallax-x),var(--parallax-y),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition: transform .55s cubic-bezier(.22,1,.36,1),box-shadow .55s ease; }
.footer-visual>a:hover { box-shadow: 0 20px 50px #0006; }
.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)); }
.menu-art:hover .menu-device { transform: perspective(1000px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 5px),0) rotate(-2deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
/* The original single-group hero fade keeps just one baked device shadow present. */
.hero-art { transition: opacity .68s cubic-bezier(.22,1,.36,1),transform .88s cubic-bezier(.22,1,.36,1); }
.hero-art.is-changing { opacity: 0; transform: translateY(14px) scale(.985); transition-duration: .34s; }

.project-controls { gap: 16px; }
.project-detail-copy { max-width: 32ch; margin: 0; color: var(--muted); font-size: clamp(17px,1.35vw,22px); line-height: 1.4; }
.project-destinations { display: flex; flex-wrap: wrap; gap: 9px; }
.project-destinations a { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 13px; font-weight: 650; text-decoration: none; transition: background-color .35s,border-color .35s,transform .45s cubic-bezier(.22,1,.36,1),box-shadow .35s; }
.project-destinations a:hover,.project-destinations a:focus-visible { transform: translateY(-3px); border-color: var(--accent); background: color-mix(in srgb,var(--accent) 15%,var(--surface)); box-shadow: 0 10px 28px color-mix(in srgb,var(--accent) 13%,transparent); }
.project-switcher { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 4px; }
.project-switcher button { display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; min-height: 52px; padding: 7px 11px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; font: 550 clamp(12px,1vw,15px)/1.15 Onest,Mardoto,sans-serif; white-space: nowrap; transition: background-color .4s,border-color .4s,color .4s,transform .5s cubic-bezier(.22,1,.36,1); }
.project-switcher button img { flex: none; width: 31px; height: 31px; border-radius: 8px; object-fit: cover; }
.project-switcher button span { overflow: hidden; text-overflow: ellipsis; }
.project-switcher button:is(:hover,:focus-visible) { transform: translateX(-5px); border-color: var(--line); background: var(--surface); color: var(--fg); }
.project-switcher button.is-active { border-color: color-mix(in srgb,var(--accent) 40%,var(--line)); background: color-mix(in srgb,var(--accent) 15%,var(--surface)); color: var(--fg); }
.project-switcher button.is-active::before { content: ''; flex: none; width: 4px; height: 23px; border-radius: 9px; background: var(--accent); }
/* Screen inset is exactly 12 logical pixels on every edge of the 420px studio frame. */
.iphone-frame .iphone-screen { left: 2.857142857%; right: 2.857142857%; top: 1.356869%; bottom: 1.356869%; width: auto; height: auto; }

@media (min-width:1100px) {
  .project-section { grid-template-columns: minmax(265px,29%) minmax(0,1fr) minmax(186px,17%); gap: clamp(18px,2.4vw,40px); }
  .project-switcher { align-self: center; }
}
@media (min-width:768px) and (max-width:1099px) {
  .project-section { grid-template-columns: minmax(260px,34%) minmax(0,1fr); grid-template-rows: minmax(0,1fr) 66px; row-gap: 8px; }
  .project-info { grid-column: 1; grid-row: 1; }
  .project-stage { grid-column: 2; grid-row: 1; }
  .project-switcher { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; gap: 3px; overflow-x: auto; }
  .project-switcher button { width: auto; max-width: 145px; flex: 0 1 auto; min-height: 47px; padding: 5px 7px; font-size: 11px; }
  .project-switcher button img { width: 26px; height: 26px; }
  .project-switcher button.is-active::before { display: none; }
}
@media (max-width:767px) {
  .hero-feature { min-height: 0; height: 158px; }
  .hero-selector button.is-active { padding-right: 16px; }
  .hero-art .art-phone:nth-child(2) { transform: perspective(900px) translate3d(var(--parallax-x),var(--parallax-y),0) rotate(6deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) !important; }
  .project-section { gap: 8px; }
  .project-info { gap: 0; }
  .project-heading { padding-bottom: 0; }
  .project-heading h2 { margin: 0 0 10px; font-size: clamp(32px,8.7vw,48px); }
  .project-heading-bottom { gap: 4px; }
  .project-heading-bottom p { font-size: 13px; line-height: 1.28; }
  .project-heading-bottom>div { margin-top: 5px; font-size: 10px; }
  .project-heading-bottom>div span { margin-bottom: 2px; font-size: 9px; }
  .project-controls { display: flex; gap: 8px; padding: 8px 16px 0; }
  .project-detail-copy { max-width: none; font-size: 12px; line-height: 1.3; }
  .project-destinations a { min-height: 32px; padding: 5px 10px; font-size: 11px; }
  .project-switcher { order: 1; flex: none; flex-direction: row; justify-content: flex-start; gap: 4px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .project-switcher::-webkit-scrollbar { display: none; }
  .project-switcher button { width: auto; flex: none; min-height: 40px; padding: 4px 7px; font-size: 11px; }
  .project-switcher button img { width: 24px; height: 24px; }
  .project-switcher button.is-active::before { display: none; }
  .project-stage { order: 2; }
  .flow-main.iphone-frame,.live-frame.phone.iphone-frame { height: calc(100% - 30px); max-height: calc(100% - 30px); }
}

@media (pointer:fine) and (prefers-reduced-motion:no-preference) {
  html.has-studio-cursor,html.has-studio-cursor a,html.has-studio-cursor button,html.has-studio-cursor .flow-main,html.has-studio-cursor .flow-web { cursor: none !important; }
  .studio-cursor { position: fixed; z-index: 9999; left: -100px; top: -100px; width: 28px; height: 28px; border: 1px solid color-mix(in srgb,var(--accent) 65%,white); border-radius: 50%; background: color-mix(in srgb,var(--accent) 8%,transparent); pointer-events: none; opacity: 0; transform: translate(-50%,-50%); transition: width .32s cubic-bezier(.22,1,.36,1),height .32s cubic-bezier(.22,1,.36,1),opacity .2s,background-color .3s; }
  .studio-cursor::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translate(-50%,-50%); }
  .studio-cursor.is-visible { opacity: 1; }
  .studio-cursor.is-interactive { width: 43px; height: 43px; background: color-mix(in srgb,var(--accent) 18%,transparent); }
  .studio-cursor.is-pressed { width: 22px; height: 22px; }
  .studio-cursor.is-text { opacity: 0; }
}
@media (min-width:768px) and (prefers-reduced-motion:no-preference) {
  .scroll-motion-ready main>section>.hero-content,.scroll-motion-ready main>section>.work-intro,.scroll-motion-ready main>section>.work-controls,.scroll-motion-ready main>section>.work-list,.scroll-motion-ready main>section>.project-info,.scroll-motion-ready main>section>.project-stage,.scroll-motion-ready main>section>.project-switcher,.scroll-motion-ready main>section>.approach-layout,.scroll-motion-ready main>footer>.footer-main,.scroll-motion-ready main>footer>.footer-bottom { transition: opacity .75s cubic-bezier(.22,1,.36,1),filter .75s ease; }
  .scroll-motion-ready main>section:not(.is-in-view)>.hero-content,.scroll-motion-ready main>section:not(.is-in-view)>.work-intro,.scroll-motion-ready main>section:not(.is-in-view)>.work-controls,.scroll-motion-ready main>section:not(.is-in-view)>.work-list,.scroll-motion-ready main>section:not(.is-in-view)>.project-info,.scroll-motion-ready main>section:not(.is-in-view)>.project-stage,.scroll-motion-ready main>section:not(.is-in-view)>.project-switcher,.scroll-motion-ready main>section:not(.is-in-view)>.approach-layout,.scroll-motion-ready main>footer:not(.is-in-view)>.footer-main,.scroll-motion-ready main>footer:not(.is-in-view)>.footer-bottom { opacity: 0; filter: blur(7px); pointer-events: none; }
  .scroll-motion-ready .hero-art { transition: opacity .68s cubic-bezier(.22,1,.36,1),transform .88s cubic-bezier(.22,1,.36,1),filter .75s ease; }
  .scroll-motion-ready .hero:not(.is-in-view) .hero-art { opacity: 0; filter: blur(7px); }
}
@media (prefers-reduced-motion:reduce) {
  .hero-feature,.hero-art .art-phone,.hero-art .art-web,.flow-main.iphone-frame,.flow-web,.work-row,.footer-visual>a,.project-switcher button,.project-destinations a { transition-duration: .01ms !important; }
}

@media (min-width:768px) and (max-width:1099px) {
  .project-switcher button { box-sizing: border-box; width: 43px; min-width: 43px; max-width: 43px; flex: none; overflow: hidden; justify-content: center; }
  .project-switcher button span { display: none; }
  .project-switcher button.is-active { width: 155px; min-width: 155px; max-width: 155px; justify-content: flex-start; }
  .project-switcher button.is-active span { display: block; }
}
html,body { max-width: 100%; overflow-x: clip; }
/* Keep the Screenshot Studio overlay's soft shadow inside the section. */
@media (min-width:768px) {
  .flow-main.iphone-frame,.live-frame.phone.iphone-frame { height: calc(100% - 90px); max-height: calc(100% - 90px); }
}
@media (max-width:767px) {
  .flow-main.iphone-frame,.live-frame.phone.iphone-frame { height: calc(100% - clamp(54px,9svh,76px)); max-height: calc(100% - clamp(54px,9svh,76px)); }
}
@media (min-width:768px) {
  .flow-main.iphone-frame { transform: perspective(1100px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 16px),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
  .flow-main.iphone-frame:hover { transform: perspective(1100px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 20px),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
  .live-frame.phone.iphone-frame { transform: translateY(-16px); }
}
@media (max-width:767px) {
  .flow-main.iphone-frame { transform: perspective(1100px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 29px),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
  .flow-main.iphone-frame:hover { transform: perspective(1100px) translate3d(var(--parallax-x),calc(var(--parallax-y) - 33px),0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); }
  .live-frame.phone.iphone-frame { transform: translateY(-29px); }
}
@media (max-width:767px) {
  .header-tools>.language-switcher { display: flex; }
  .site-header .header-tools { gap: 4px; }
  .site-header .header-inner { padding-inline: 9px; }
  .site-header.is-scrolled .header-inner { padding-inline: 8px; }
}
