/* DavShin. Mobile-first: every rule is the phone's; wider screens add to it from 700, 900 and 1200px. */

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #0b0c0e; --bg-2: #111317; --card: #16181d; --line: rgba(255, 255, 255, .12);
  --text: #f3f0ea; --muted: #a4a7af; --accent: #ff5a1f; --accent-ink: #0b0c0e;
  --glass: rgba(11, 12, 14, .62);
  --display: "Unbounded", "Noto Sans Armenian", system-ui, sans-serif;
  --body: "Manrope", "Noto Sans Armenian", system-ui, sans-serif;
  --gut: clamp(20px, 5vw, 64px);
  --r: clamp(18px, 2.4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --section: clamp(88px, 13vw, 190px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f1ea; --bg-2: #ebe6db; --card: #ffffff; --line: rgba(16, 18, 21, .14);
  --text: #101215; --muted: #5b5f68; --accent: #e8480f; --accent-ink: #ffffff;
  --glass: rgba(244, 241, 234, .72);
  color-scheme: light;
}
@view-transition { navigation: auto; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .4s, color .4s; }
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(100% - 2 * var(--gut), 1360px); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 12px; }
.arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--ease); }

/* type */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 13px/1.2 var(--body); letter-spacing: .04em; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.h2 { font: 600 clamp(28px, 4.6vw, 68px)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; margin-top: 18px; }
.h2--xl { font-size: clamp(32px, 5.6vw, 88px); }
.lead { font-size: clamp(17px, 1.3vw + 12px, 22px); line-height: 1.5; color: var(--muted); max-width: 46ch; margin-top: 20px; text-wrap: pretty; }
html[lang="hy"] .h2, html[lang="hy"] .hero__h, html[lang="hy"] .foot__word { font-weight: 700; letter-spacing: -.02em; font-stretch: 88%; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--body); white-space: nowrap; border: 1px solid transparent; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; will-change: transform; }
.btn--xl { min-height: 60px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line); color: inherit; backdrop-filter: blur(8px); }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn--accent:hover { background: var(--text); color: var(--bg); }
  .btn--ghost:hover { border-color: var(--text); }
  .btn:hover .arrow { transform: translateX(4px); }
}

/* ---------------------------------------------------------------- header */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
@supports (animation-timeline: scroll()) { .progress { animation: grow linear both; animation-timeline: scroll(root); } }
@keyframes grow { to { transform: scaleX(1); } }

.top { position: fixed; inset: 10px 0 auto 0; z-index: 50; padding-inline: clamp(10px, 2.5vw, 32px); transition: transform .5s var(--ease); }
.top.is-hidden { transform: translateY(-140%); }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1420px; margin-inline: auto; padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -.02em; }
.logo__mark { width: 14px; height: 14px; background: var(--accent); border-radius: 3px; transform: rotate(45deg); transition: transform .6s var(--ease); }
.logo:hover .logo__mark { transform: rotate(225deg); }
.top__nav { display: none; }
.top__tools { display: flex; align-items: center; gap: 6px; }
.top__cta, .top .langs { display: none; }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.langs a { min-width: 44px; padding: 8px 10px; border-radius: 999px; text-align: center; font: 600 13px/1 var(--body); color: var(--muted); transition: background .25s, color .25s; }
.langs a[aria-current] { background: var(--text); color: var(--bg); }
.langs--big a { min-width: 64px; padding: 14px 16px; font-size: 15px; }
.theme, .burger { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .25s, transform .5s var(--ease); }
.theme svg { width: 18px; height: 18px; }
.theme:hover { transform: rotate(90deg); }
.burger { position: relative; background: var(--text); border-color: var(--text); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--bg); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* the phone's full-screen menu */
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 104px var(--gut) calc(24px + env(safe-area-inset-bottom)); background: var(--bg); clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .7s var(--ease); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(160% at calc(100% - 44px) 40px); }
.menu__links { display: grid; }
.menu__links a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 clamp(28px, 8.5vw, 52px)/1.1 var(--display); letter-spacing: -.03em; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
html[lang="hy"] .menu__links a { font-weight: 700; font-stretch: 88%; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu__links small { font: 600 13px/1 var(--body); color: var(--accent); letter-spacing: 0; }
.menu__foot { display: grid; gap: 16px; justify-items: start; }
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #f3f0ea; background: #0b0c0e; overflow: clip; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; animation: breathe 22s ease-in-out infinite alternate; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .15) 32%, rgba(11, 12, 14, .78) 72%, #0b0c0e 100%); }
@keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
/* a blueprint grid that lights up around the pointer */
.hero__grid { position: absolute; inset: 0; z-index: -1; --mx: 70%; --my: 35%; background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 72px); -webkit-mask-image: radial-gradient(clamp(180px, 28vw, 420px) circle at var(--mx) var(--my), #000, transparent 72%); mask-image: radial-gradient(clamp(180px, 28vw, 420px) circle at var(--mx) var(--my), #000, transparent 72%); }
.hero__in { padding-top: 120px; padding-bottom: clamp(24px, 4vw, 48px); }
.hero__eyebrow { color: rgba(243, 240, 234, .8); margin-bottom: clamp(16px, 2vw, 28px); }
.hero__h { font: 600 clamp(32px, 8.4vw, 128px)/.98 var(--display); letter-spacing: -.045em; text-transform: none; }
.w { display: inline-block; overflow: clip; overflow-clip-margin: .08em; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 250ms); }
@keyframes rise { to { transform: none; } }
.hero__row { display: grid; gap: 24px; margin-top: clamp(20px, 3vw, 40px); }
.hero__lead { max-width: 52ch; color: rgba(243, 240, 234, .86); font-size: clamp(16px, 1vw + 12px, 20px); text-wrap: pretty; opacity: 0; animation: fade 1s var(--ease) .8s forwards; }
.hero__actions { display: grid; gap: 10px; opacity: 0; animation: fade 1s var(--ease) 1s forwards; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, .34); }
.hero .btn--accent { background: #ff5a1f; color: #0b0c0e; }
@keyframes fade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* the running line of services */
.ticker { border-top: 1px solid rgba(255, 255, 255, .16); overflow: clip; padding-block: 16px; }
.ticker__track { display: flex; width: max-content; animation: slide calc(var(--n, 6) * 7s) linear infinite; }
.ticker span { display: inline-flex; align-items: center; font: 500 clamp(14px, 1.2vw, 18px)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; color: rgba(243, 240, 234, .78); }
.ticker span::after { content: ""; width: 9px; height: 9px; margin-inline: clamp(20px, 3vw, 44px); background: #ff5a1f; transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- about: a statement that lights up as it is read */
.about { padding-block: var(--section); }
.about__text { margin-top: 28px; font: 500 clamp(26px, 4.7vw, 72px)/1.14 var(--display); letter-spacing: -.035em; max-width: 22ch; }
html[lang="hy"] .about__text { font-weight: 600; font-stretch: 88%; letter-spacing: -.02em; }
.lw { display: inline-block; transition: opacity .5s, color .5s; }
html.js .lw { opacity: .16; }
html.js .lw.on { opacity: 1; }
.lw--accent { color: var(--accent); }

/* ---------------------------------------------------------------- services */
.services { padding-block: var(--section); background: var(--bg-2); border-radius: var(--r) var(--r) 0 0; }
.services__grid { display: grid; gap: 48px; }
.services__photo { margin-top: 32px; border-radius: var(--r); overflow: clip; aspect-ratio: 4 / 3; }
.services__photo img, .quote__photo img, .step__media img, .project__media img, .card__media img, .article__media img { width: 100%; height: 100%; object-fit: cover; }
.service { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px clamp(16px, 2.4vw, 36px); padding: clamp(22px, 3vw, 40px) 0; border-top: 1px solid var(--line); }
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.service__n { font: 500 13px/1.9 var(--display); color: var(--accent); }
.service h3 { font: 600 clamp(20px, 2.5vw, 36px)/1.12 var(--display); letter-spacing: -.03em; transition: transform .5s var(--ease); }
html[lang="hy"] .service h3, html[lang="hy"] .step h3, html[lang="hy"] .project h3 { font-weight: 700; font-stretch: 88%; letter-spacing: -.015em; }
.service p { margin-top: 10px; color: var(--muted); max-width: 48ch; }
.service__go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease); }
@media (hover: hover) {
  .service:hover::before { transform: scaleX(1); }
  .service:hover h3 { transform: translateX(10px); }
  .service:hover .service__go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
}
.note { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 48ch; }

/* ---------------------------------------------------------------- work: a rail of projects */
.work { background: var(--bg-2); padding-bottom: var(--section); }
.work__head { display: grid; gap: 20px; padding-bottom: clamp(24px, 4vw, 48px); }
.work__tools { display: grid; gap: 20px; }
.work__nav { display: flex; gap: 8px; }
.work__nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; }
.work__nav button:first-child .arrow { transform: scaleX(-1); }
.work__nav button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.work__rail { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.work__rail::-webkit-scrollbar { display: none; }
.project { flex: none; width: min(86vw, 720px); scroll-snap-align: center; }
.project__media { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: clip; background: var(--card); }
.project__media img { transition: transform 1.2s var(--ease); }
.project__meta { display: flex; gap: 18px; align-items: baseline; padding-top: 18px; }
.project__n { font: 500 13px/1 var(--display); color: var(--accent); }
.project h3 { font: 600 clamp(20px, 2.2vw, 32px)/1.15 var(--display); letter-spacing: -.03em; }
.project p { color: var(--muted); margin-top: 6px; }
.project--more { display: grid; place-content: center; justify-items: center; gap: 16px; aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px solid var(--line); font: 600 clamp(18px, 2vw, 28px)/1.2 var(--display); text-align: center; padding: 24px; transition: background .3s, color .3s; }
.project--more:hover { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .project:hover .project__media img { transform: scale(1.06); } }

/* partners */
.partners { background: var(--bg-2); padding-bottom: var(--section); }
.partners__row { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px var(--gut) 0; max-width: 1488px; margin-inline: auto; }
.partners__row > * { display: grid; place-items: center; min-height: 72px; padding: 16px 28px; border-radius: 999px; border: 1px solid var(--line); font: 500 clamp(15px, 1.4vw, 20px)/1 var(--display); letter-spacing: -.02em; transition: border-color .25s, background .25s; }
.partners__row a:hover { border-color: var(--accent); }
.partners__row img { height: 34px; width: auto; }

/* ---------------------------------------------------------------- process: cards that stack as you scroll */
.process { padding-block: var(--section); border-radius: var(--r) var(--r) 0 0; margin-top: calc(-1 * var(--r)); background: var(--bg); position: relative; }
.process__head { margin-bottom: clamp(32px, 5vw, 72px); }
.process__stack { display: grid; gap: clamp(20px, 3vw, 40px); }
.step { position: sticky; top: calc(88px + var(--i) * 14px); display: grid; gap: 20px; padding: clamp(18px, 2.6vw, 36px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: 0 -18px 50px -30px rgba(0, 0, 0, .6); }
.step__n { font: 600 clamp(36px, 6vw, 88px)/1 var(--display); letter-spacing: -.05em; color: var(--accent); display: flex; align-items: baseline; gap: 10px; }
.step__n i { font: 500 14px/1 var(--body); letter-spacing: 0; color: var(--muted); font-style: normal; }
.step h3 { font: 600 clamp(22px, 2.8vw, 40px)/1.1 var(--display); letter-spacing: -.03em; margin-top: clamp(16px, 3vw, 48px); text-wrap: balance; }
.step p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.step__media { border-radius: calc(var(--r) - 8px); overflow: clip; aspect-ratio: 16 / 10; }

/* ---------------------------------------------------------------- news and cards */
.news { padding-block: 0 var(--section); }
.news__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.cards { display: grid; gap: clamp(16px, 2vw, 28px); }
.card { position: relative; display: grid; align-content: start; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: clip; transition: transform .5s var(--ease), border-color .3s; }
.card__media { aspect-ratio: 16 / 11; overflow: clip; }
.card__media img { transition: transform 1.2s var(--ease); }
.card__body { padding: clamp(18px, 2vw, 28px); display: grid; gap: 10px; }
.card time { font: 600 13px/1 var(--body); color: var(--accent); }
.card h2, .card h3 { font: 600 clamp(18px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -.025em; }
.card p { color: var(--muted); }
.card__go { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease); }
@media (hover: hover) {
  a.card:hover { transform: translateY(-6px); border-color: var(--accent); }
  a.card:hover .card__media img { transform: scale(1.06); }
  a.card:hover .card__go { transform: none; }
}

/* ---------------------------------------------------------------- quote */
.quote { padding-block: var(--section); background: var(--bg-2); border-radius: var(--r) var(--r) 0 0; }
.quote__grid { display: grid; gap: 40px; }
.quote__contacts { display: grid; gap: 6px; margin-top: 28px; font: 500 clamp(18px, 2vw, 26px)/1.3 var(--display); letter-spacing: -.02em; }
.quote__contacts a:hover { color: var(--accent); }
.quote__photo { display: none; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 44px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); align-content: start; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 26px 18px 10px; border-radius: 16px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 16px/1.4 var(--body); transition: border-color .25s, background .25s; }
.field textarea { resize: vertical; min-height: 132px; }
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease), color .25s; }
.field :is(input, textarea):focus { outline: none; border-color: var(--accent); }
.field :is(input, textarea):focus + label, .field :is(input, textarea):not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); }
.field :is(input, textarea):focus + label { color: var(--accent); }
.field [aria-invalid="true"] { border-color: #ff4d4d; }
.field__error { margin-top: 6px; padding-left: 4px; font-size: 14px; color: #ff6b6b; }
:root[data-theme="light"] .field__error { color: #c0261c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.5em; font-weight: 600; }
.form__status.is-ok { color: #3ecf8e; }
:root[data-theme="light"] .form__status.is-ok { color: #12754a; }
.form__note { color: var(--muted); font-size: 14px; }
.form button[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* ---------------------------------------------------------------- footer */
.foot { padding: clamp(48px, 7vw, 96px) 0 calc(96px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); overflow: clip; }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.foot__lead { grid-column: 1 / -1; display: grid; gap: 14px; }
.foot__lead p { color: var(--muted); max-width: 32ch; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h3 { font: 600 13px/1.2 var(--body); color: var(--muted); margin-bottom: 6px; }
.foot__col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .25s; padding-block: 3px; }
.foot__col a:hover, .foot__col a[aria-current] { background-size: 100% 1px; }
.foot__word { margin: clamp(40px, 6vw, 80px) 0 0; font: 800 clamp(52px, 17.6vw, 270px)/.86 var(--display); letter-spacing: -.06em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line); background: linear-gradient(90deg, var(--accent), var(--accent)) 0 0 / 0% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-size 1.2s var(--ease); user-select: none; }
.foot__word:hover, .foot__word.in { background-size: 100% 100%; -webkit-text-stroke-color: transparent; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__legal a:hover { color: var(--text); }

/* the phone's action dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); transform: translateY(160%); transition: transform .6s var(--ease), background .25s, color .25s; }
.dock.is-on { transform: none; }

/* ---------------------------------------------------------------- inner pages */
.inner { padding-top: clamp(120px, 14vw, 190px); padding-bottom: var(--section); min-height: 80svh; }
.page .cards, .page .list, .article__media { margin-top: clamp(32px, 5vw, 64px); }
.list li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.list a { font-weight: 600; }
.list a:hover { color: var(--accent); }
.list span { color: var(--muted); font-size: 15px; }
.article__media { border-radius: var(--r); overflow: clip; aspect-ratio: 16 / 9; }
.article__body { margin-top: clamp(28px, 4vw, 56px); max-width: 68ch; display: grid; gap: 1.2em; font-size: clamp(17px, 1vw + 13px, 20px); line-height: 1.7; }
.page--404 { display: grid; gap: 24px; justify-items: start; }
.big404 { font: 800 clamp(96px, 28vw, 380px)/.8 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--accent); }

/* ---------------------------------------------------------------- scroll reveals (only when scripts run) */
html.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
/* a photograph is unveiled from its top edge; the frame itself stays in place so it can be observed */
html.js [data-reveal="clip"] { opacity: 1; transform: none; }
html.js [data-reveal="clip"] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
html.js [data-reveal="clip"].in img { clip-path: inset(0); transform: none; }

/* ---------------------------------------------------------------- 700px and up */
@media (min-width: 700px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form > :not(.field), .field--full { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .foot__lead { grid-column: auto; }
  .work__head { grid-template-columns: 1fr auto; align-items: end; }
  .work__tools { justify-items: end; text-align: right; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; gap: clamp(24px, 4vw, 64px); }
  .step__media { aspect-ratio: auto; min-height: clamp(280px, 34vw, 480px); }
  .step__text { display: flex; flex-direction: column; }
  .step h3 { margin-top: auto; }
}

/* ---------------------------------------------------------------- 900px and up */
@media (min-width: 900px) {
  .dock { display: none; }
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .services__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); }
  .services__side { position: sticky; top: 110px; align-self: start; }
  .quote__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
  .quote__side { position: sticky; top: 110px; }
  .quote__photo { display: block; margin-top: 36px; border-radius: var(--r); overflow: clip; aspect-ratio: 16 / 10; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot { padding-bottom: 32px; }
  /* the pinned rail: the page's scroll moves the projects sideways (site.js sets --travel) */
  .work.is-pinned { height: calc(100svh + var(--travel, 0px)); padding-bottom: 0; }
  .work.is-pinned .work__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 84px; overflow: clip; }
  .work.is-pinned .work__rail { overflow: visible; scroll-snap-type: none; will-change: transform; }
  .work.is-pinned .project { width: min(46vw, calc((100svh - 330px) * 1.333)); }
}

/* ---------------------------------------------------------------- 1200px and up: the full bar */
@media (min-width: 1200px) {
  .burger { display: none; }
  .menu { display: none !important; }
  .top__nav { display: flex; gap: 4px; }
  .top__nav a { padding: 12px 16px; border-radius: 999px; font: 600 15px/1 var(--body); transition: background .25s, color .25s; }
  .top__nav a:hover, .top__nav a.is-current { background: color-mix(in srgb, var(--text) 12%, transparent); }
  .top__cta, .top .langs { display: inline-flex; }
}

/* ---------------------------------------------------------------- less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .w > span { transform: none; }
  .hero__lead, .hero__actions { opacity: 1; }
  html.js [data-reveal], html.js [data-reveal] img { opacity: 1; transform: none; clip-path: none; }
  html.js .lw { opacity: 1; }
  .ticker__track { animation: none; }
  .step { position: static; }
}

/* headings in the narrow sticky columns */
@media (min-width: 900px) {
  .services__side .h2 { font-size: clamp(26px, 3.3vw, 50px); }
  .quote__side .h2 { font-size: clamp(28px, 3.8vw, 58px); }
}
.h2, .hero__h, .about__text, .service h3, .step h3 { overflow-wrap: break-word; }

/* tablet: three news cards in one row, the bar's button back from 900, a narrower dock */
@media (min-width: 700px) { .news .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dock { left: auto; right: 20px; width: auto; } }
@media (min-width: 900px) { .top__cta { display: inline-flex; } }
/* Armenian sets narrower, so its headline can run larger on a phone */
html[lang="hy"] .hero__h { font-size: clamp(37px, 9.6vw, 128px); line-height: 1.02; }

/* the full list of renovation trades: two columns of compact rows on a wide screen */
.service h3 { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.2; }
.service { padding-block: clamp(18px, 2vw, 26px); }
.service__go { width: 40px; height: 40px; }
.service p { font-size: 15.5px; line-height: 1.5; }
@media (min-width: 1100px) {
  .services__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); align-content: start; }
  .services__list .note { grid-column: 1 / -1; }
  .service:last-of-type, .service:nth-last-of-type(2) { border-bottom: 1px solid var(--line); }
}

/* the pinned rail fits its screen: bar, heading, photograph and caption are budgeted from the
   screen's height, so nothing is cut at the top or the foot */
@media (min-width: 900px) {
  .work.is-pinned .work__pin { justify-content: flex-start; padding-top: 104px; padding-bottom: calc(var(--r) + 16px); }
  .work.is-pinned .work__head { padding-bottom: 28px; flex: none; }
  .work.is-pinned .work__head .h2 { font-size: clamp(28px, 3.6vw, 56px); }
  .work.is-pinned .project { width: clamp(280px, calc((100svh - 104px - 170px - 132px - var(--r) - 16px) * 1.3333), 46vw); }
  .work.is-pinned .project__meta > div { min-width: 0; }
}

/* ---------------------------------------------------------------- process as a timeline: every step whole on screen, nothing overlaps.
   A line runs beside the steps and fills with the scroll; each step's marker lights when it arrives. */
.process__stack { position: relative; gap: clamp(16px, 2.4vw, 32px); padding-left: clamp(30px, 4.4vw, 72px); }
.process__stack::before, .process__stack::after { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.process__stack::after { background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
.step { position: relative; top: auto; box-shadow: none; align-items: center; }
.step::before { content: ""; position: absolute; left: calc(-1 * clamp(30px, 4.4vw, 72px) + 1px); top: clamp(30px, 4vw, 56px); width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); z-index: 1; transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.step.in::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.step__n { font-size: clamp(34px, 4.6vw, 68px); }
.step h3 { margin-top: clamp(14px, 2vw, 28px); }
.step__media { aspect-ratio: 16 / 10; min-height: 0; }
@media (min-width: 700px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .step__text { display: block; }
  .step h3 { margin-top: clamp(14px, 2vw, 28px); }
  .step__media { aspect-ratio: 16 / 10; min-height: 0; max-height: 46svh; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .process__stack::after { transform: none; } }

/* ---------------------------------------------------------------- phone numbers where the eye lands */
.top__phone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font: 700 15px/1 var(--body); white-space: nowrap; transition: border-color .25s, color .25s; }
.top__phone span { display: none; }
.top__phone:hover { border-color: var(--accent); color: var(--accent); }
.hero__phones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: clamp(18px, 2.4vw, 30px); padding-top: clamp(16px, 2vw, 24px); border-top: 1px solid rgba(255, 255, 255, .18); opacity: 0; animation: fade 1s var(--ease) 1.15s forwards; }
.hero__phones span { font: 600 13px/1.2 var(--body); letter-spacing: .04em; color: rgba(243, 240, 234, .7); }
.hero__phones a, .menu__phones a { display: inline-flex; align-items: center; gap: 8px; font: 600 clamp(17px, 1.5vw, 22px)/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; transition: color .25s; }
.hero__phones a .arrow, .menu__phones a .arrow, .quote__phone .arrow { color: var(--accent); width: 1em; height: 1em; }
.hero__phones a:hover, .menu__phones a:hover { color: #ff5a1f; }
.menu__phones { display: grid; gap: 10px; }
.quote__contacts { gap: 10px; }
.quote__or { font: 600 13px/1.2 var(--body); letter-spacing: .04em; color: var(--muted); }
.quote__phone { display: inline-flex; align-items: center; gap: 12px; font: 600 clamp(22px, 2.6vw, 34px)/1.15 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.quote__mail { font: 500 17px/1.4 var(--body); color: var(--muted); letter-spacing: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.foot__phone { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; }
.dock { display: flex; gap: 8px; }
.dock .btn--accent { flex: 1; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); }
.btn--call { width: 60px; padding: 0; background: var(--text); color: var(--bg); flex: none; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6); }
.btn--call .arrow { width: 22px; height: 22px; }
@media (min-width: 1200px) {
  .top__phone { width: auto; padding: 0 16px 0 12px; display: inline-flex; gap: 8px; border-radius: 999px; }
  .top__phone span { display: inline; }
  .top__phone .arrow { color: var(--accent); }
}

/* ---------------------------------------------------------------- the guided request */
.wizard { position: relative; padding: clamp(18px, 3vw, 40px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.wz__bar { display: flex; gap: 8px; margin: 0 0 clamp(22px, 3vw, 36px); padding: 0; }
.wz__bar li { flex: 1; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 3px solid var(--line); font: 600 13px/1.2 var(--body); color: var(--muted); transition: border-color .4s, color .4s; min-width: 0; }
.wz__bar b { font: 600 13px/1 var(--display); }
.wz__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz__bar li.is-on { border-top-color: var(--accent); color: var(--text); }
.wz__bar li.is-done { border-top-color: var(--accent); }
.wz__bar li.is-on b, .wz__bar li.is-done b { color: var(--accent); }
.wz__step { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
html.js .wz__step { margin: 0; }
html.js .wz__step:not(.is-on) { display: none; }
html.js .wz__step.is-on { animation: wzin .5s var(--ease); }
@keyframes wzin { from { opacity: 0; transform: translateX(18px); } }
.wz__q { display: block; padding: 0; margin: 0 0 16px; font: 600 clamp(20px, 2.1vw, 28px)/1.15 var(--display); letter-spacing: -.03em; }
html[lang="hy"] .wz__q { font-weight: 700; font-stretch: 88%; letter-spacing: -.015em; }
.wz__q--sub { margin-top: 28px; font-size: clamp(16px, 1.4vw, 19px); }
.wz__q small { font: 500 13px/1 var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.wz__hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.wz__works .wz__hint { margin: -8px 0 14px; }
.wz__row { margin-top: 20px; max-width: 240px; }
.wz__error { color: #ff6b6b; font-weight: 600; margin-top: 16px; }
:root[data-theme="light"] .wz__error { color: #c0261c; }
.wz__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 28px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.opts--cards { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.opts--wide { grid-template-columns: 1fr; }
.opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); font: 600 15px/1.3 var(--body); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.opt span::after { content: ""; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border-color .25s, background .25s, box-shadow .25s; }
.opt:hover span { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.opt input:checked + span::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--card); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt input:active + span { transform: scale(.98); }
.opt--card span { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 112px; gap: 14px; }
.opt--card span::after { position: absolute; top: 14px; right: 14px; margin: 0; }
.opt--card svg { width: 30px; height: 30px; color: var(--accent); }
.opt--chip span { min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.opt--chip span::after { display: none; }
.opt--chip input:checked + span { background: var(--accent); color: var(--accent-ink); }
.drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px; border: 1.5px dashed color-mix(in srgb, var(--text) 26%, transparent); border-radius: 16px; transition: border-color .25s, background .25s; }
.drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop input[type="file"]:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop label { cursor: pointer; }
.drop__hint { color: var(--muted); font-size: 14px; }
.drop__list { flex-basis: 100%; display: grid; gap: 8px; margin: 0; padding: 0; }
.drop__list:empty { display: none; }
.drop__list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.drop__list li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.drop__list li small { color: var(--muted); white-space: nowrap; }
.drop__list button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; line-height: 1; flex: none; }
.drop__list button:hover { border-color: #ff6b6b; color: #ff6b6b; }
.wizard .field--full { margin-top: 20px; }
.wz__fields { display: grid; gap: 14px; margin-bottom: 22px; }
.wz__done { text-align: center; padding: clamp(24px, 5vw, 64px) 0; display: grid; gap: 14px; justify-items: center; outline: none; animation: wzin .6s var(--ease); }
.wz__done[hidden] { display: none; }
.wz__check { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.wz__check svg { width: 38px; height: 38px; }
.wz__done h3 { font: 600 clamp(24px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.03em; }
.wz__done p { color: var(--muted); max-width: 44ch; }
.wz__donecall { font: 600 18px/1.3 var(--display); color: var(--text) !important; }
@media (min-width: 700px) { .wz__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .opts--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .wz__bar li:not(.is-on) span { display: none; }
  .wz__bar li:not(.is-on) { flex: 0 0 44px; }
  .wz__nav .btn { padding-inline: 20px; }
}

@media (min-width: 900px) { .dock { display: none; } }

.wz__bar[hidden] { display: none; }
