/* Author: Guzel Saparova. Portfolio design system. */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/fonts/inter-cyrillic-variable.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/fonts/inter-latin-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --surface: #f4f4ed; --surface-raised: #ecece5; --text: #151515;
  --muted: #60615e; --line: #d0d1c8; --line-strong: #898a82;
  --accent: #ff4a2b; --accent-hover: #f23d20; --on-accent: #151515;
  --focus: #2359cc; --error: #ad241c;
  --gutter: clamp(20px, 4vw, 72px); --space-section: clamp(56px, 6.5vw, 104px);
  --page-inset: max(var(--gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --font: Inter, Arial, Helvetica, sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --surface: #151515; --surface-raised: #222320; --text: #f4f4ed;
  --muted: #b5b6b1; --line: #41423e; --line-strong: #777972;
  --focus: #a9c7ff; --error: #ff9b8e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --surface: #151515; --surface-raised: #222320; --text: #f4f4ed;
    --muted: #b5b6b1; --line: #41423e; --line-strong: #777972;
    --focus: #a9c7ff; --error: #ff9b8e;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
button, input, textarea { border-radius: 0; }
button { background: none; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.08; letter-spacing: -.045em; }
ol, ul { padding: 0; }
::selection { color: var(--on-accent); background: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(1440px, calc(100% - 2 * var(--page-inset))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 12px; background: var(--text); color: var(--surface); padding: 12px 20px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 80px; display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); gap: 32px; position: relative; z-index: 2; padding-top: env(safe-area-inset-top, 0px); }
.wordmark { font-size: 16px; font-weight: 650; letter-spacing: -.025em; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark-dot { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.primary-nav a, .site-footer nav a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; font-size: 14px; }
.primary-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-controls { display: flex; gap: 12px; align-items: center; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.language-switch:hover { text-decoration: underline; text-underline-offset: 5px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); padding: 10px; flex-shrink: 0; }
.icon-button:hover:not(:disabled) { border-color: var(--text); background: var(--surface-raised); }
.theme-toggle { border: 0; border-left: 1px solid var(--line); width: 48px; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 0; padding: 6px 0 6px 8px; font-size: 14px; }
.menu-lines { width: 18px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
.menu-lines::after { content: ''; position: absolute; width: 18px; height: 1px; background: currentColor; left: 0; top: 5px; }
.is-open .menu-lines { transform: rotate(45deg); height: 1px; border-bottom: 0; }
.is-open .menu-lines::after { transform: rotate(90deg); top: -1px; }

.button { min-height: 48px; max-width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; font-size: 14px; font-weight: 600; line-height: 1.25; border: 1px solid transparent; transition: background-color 160ms, border-color 160ms; }
.button > span { min-width: 0; overflow-wrap: anywhere; }
.button--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button--primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.button--outline { border-color: var(--line-strong); }
.button--outline:hover:not(:disabled) { background: var(--surface-raised); border-color: var(--text); }

.hero { position: relative; container-type: inline-size; --hero-size: clamp(43px, calc((100vw - 2 * var(--page-inset)) * .185), 268px); padding-top: clamp(28px, 3vw, 48px); }
@supports (font-size: 1cqi) {
  .hero { --hero-size: clamp(43px, 18.5cqi, 268px); }
}
.hero-title { font-size: var(--hero-size); font-weight: 850; line-height: .87; letter-spacing: -.06em; }
.hero-title span { display: block; }
.hero-title span:last-child { text-align: right; margin-top: .04em; }
html[lang='en'] .hero { --hero-size: clamp(40px, calc((100vw - 2 * var(--page-inset)) * .148), 214px); }
@supports (font-size: 1cqi) {
  html[lang='en'] .hero { --hero-size: clamp(40px, 14.8cqi, 214px); }
}
html[lang='en'] .hero-description { position: static; max-width: 42ch; margin-top: 28px; }
.hero-description { position: absolute; left: 0; top: calc(var(--hero-size) * 1.12 + 26px); max-width: 36%; font-size: clamp(16px, 1.5vw, 22px); font-weight: 550; line-height: 1.35; letter-spacing: -.025em; }
.hero-bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.hero-types { color: var(--muted); font-size: 13px; }
.hero-types span { margin-inline: 4px; }
.hero-actions { display: flex; gap: 12px; }
.hero-actions .button { min-height: 46px; }
.works { padding-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.works-heading { margin-bottom: 24px; }
.works-heading h2 { font-size: clamp(28px, 3vw, 44px); }
.works-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.work-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.work-card__media { width: 100%; position: relative; }
.work-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 160ms; pointer-events: none; }
.work-card__media.is-playing .work-card__video, .work-card__media.has-preview-frame .work-card__video { opacity: 1; }
.preview-toggle { position: absolute; z-index: 1; left: 12px; bottom: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: calc(100% - 24px); padding: 10px 12px; background: rgb(0 0 0 / .85); color: #fff; border: 1px solid rgb(255 255 255 / .55); font-size: 12px; }
.preview-toggle:hover { background: #000; }
.project-motion { position: relative; width: 100%; max-width: 952px; aspect-ratio: 952/640; margin: 32px auto 0; border: 1px solid var(--line); background: var(--surface-raised); }
.project-motion video { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview-pause, .is-playing .preview-play { display: none; }
.is-playing .preview-pause { display: inline; }
.work-card__image, .work-card__meta, .work-card__category { width: 100%; }
.work-card__image { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--surface-raised); border: 1px solid var(--line); }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.work-card__open { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--surface); color: var(--text); opacity: 0; transition: opacity 160ms; }
.work-card:hover .work-card__open, .work-card:focus-within .work-card__open { opacity: 1; }
.work-card__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin-top: 16px; }
.work-card h3 { font-size: clamp(17px, 1.45vw, 21px); font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.work-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-card__category { color: var(--muted); font-size: 14px; margin-top: 6px; }
.work-card__task { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; width: 100%; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.work-card__task dt { font-size: 14px; font-weight: 650; }
.work-card__task dd { min-width: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--muted); }
.work-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 20px; }
.work-card__link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; border: 1px solid var(--line-strong); padding: 10px 16px; font-size: 13px; font-weight: 550; }
.work-card__link:hover { background: var(--surface-raised); border-color: var(--text); }

.content-section { margin-top: var(--space-section); padding-top: 30px; border-top: 1px solid var(--line-strong); }
.section-title { font-size: clamp(32px, 4.4vw, 66px); font-weight: 750; line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.section-intro { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.55vw, 22px); letter-spacing: -.02em; }
.services-list { margin-top: 32px; }
.service-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row dt { display: flex; align-items: baseline; gap: 24px; font-size: clamp(20px, 2vw, 30px); font-weight: 650; letter-spacing: -.035em; }
.service-number { color: var(--accent); font-size: 14px; min-width: 28px; font-weight: 650; letter-spacing: -.02em; }
.service-row dd { color: var(--muted); font-size: 16px; max-width: 540px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin-top: 32px; }
.process-grid li { border-top: 1px solid var(--line); padding-top: 20px; }
.process-number { display: block; color: var(--accent); font-size: clamp(36px, 3.5vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -.055em; margin-bottom: 16px; }
.process-grid h3 { font-size: clamp(19px, 1.65vw, 25px); letter-spacing: -.035em; line-height: 1.2; }
.process-grid p { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 28ch; }
.conditions-list { margin-top: 32px; }
.condition-row { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: baseline; gap: 48px; border-top: 1px solid var(--line); padding: 27px 0; }
.condition-row:last-child { border-bottom: 1px solid var(--line); }
.condition-row dt { font-weight: 650; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -.035em; }
.condition-row dd { font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); max-width: 680px; }
.conditions-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 40px; }
.conditions-cta > div { min-width: 0; max-width: 720px; }
.conditions-cta h3 { font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.035em; }
.conditions-cta p { color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; margin-top: 14px; }
.conditions-cta .button { flex-shrink: 0; }
.contact-section { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 112px); margin-top: var(--space-section); padding-block: 40px 64px; border-top: 1px solid var(--line-strong); }
.contact-links, .contact-copy, .project-intro > * { min-width: 0; }
.contact-copy .section-title { max-width: 11ch; }
.contact-copy > p { margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.55vw, 22px); line-height: 1.5; max-width: 43ch; letter-spacing: -.025em; }
.contact-method + .contact-method { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-method .button { width: 100%; min-height: 52px; font-size: 15px; }
.contact-address { font-size: 14px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.field-error { color: var(--error); font-size: 13px; margin-top: 8px; }
.project-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid var(--line); margin-bottom: 24px; }
.project-context p { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.project-context strong { display: block; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line-strong); display: flex; align-items: center; gap: 32px; padding-block: 24px max(32px, env(safe-area-inset-bottom, 0px)); }
.site-footer > p { font-size: 13px; margin-right: auto; }
.site-footer nav { display: flex; gap: 24px; }
.back-top { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; }
.back-top .icon { width: 16px; height: 16px; flex-basis: 16px; }

.project-back { padding-top: 24px; }
.project-back .button { padding: 10px 14px; min-height: 44px; flex-direction: row-reverse; }
.project-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding-block: 36px 32px; border-bottom: 1px solid var(--line-strong); align-items: end; }
.project-intro h1 { font-size: clamp(40px, 5.5vw, 84px); font-weight: 750; letter-spacing: -.055em; overflow-wrap: anywhere; }
.project-subtitle { font-size: clamp(18px, 2vw, 28px); color: var(--muted); line-height: 1.3; margin-top: 14px; letter-spacing: -.03em; }
.project-summary { font-size: 15px; line-height: 1.55; }
.project-summary > div + div { margin-top: 12px; }
.project-summary dt { display: inline; font-weight: 650; margin-right: 5px; }
.project-summary dd { display: inline; color: var(--muted); }
.project-gallery { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-top: 28px; }
.project-sidebar { min-width: 0; }
.sidebar-title { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; margin: 12px 0 20px; }
.page-nav { display: flex; flex-direction: column; gap: 4px; }
.page-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px; font-size: 14px; line-height: 1.3; border: 1px solid transparent; }
.page-nav a > span:not(.page-number) { min-width: 0; overflow-wrap: anywhere; }
.page-nav a > .icon { margin-left: auto; width: 16px; flex-basis: 16px; opacity: 0; }
.page-nav a:hover { border-color: var(--line-strong); }
.page-nav a[aria-current='page'] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.page-nav a[aria-current='page'] > .icon { opacity: 1; }
.page-number { font-size: 12px; min-width: 20px; flex-shrink: 0; }
.project-preview { min-width: 0; }
.preview-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.preview-heading h2 { min-width: 0; font-size: clamp(24px, 2.6vw, 36px); overflow-wrap: anywhere; }
.preview-heading .button { flex-shrink: 0; }
.preview-frame { display: flex; justify-content: center; align-items: flex-start; aspect-ratio: 3/2; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); position: relative; }
.preview-frame img { display: block; width: auto; max-width: 100%; height: auto; flex: 0 0 auto; }
.preview-frame--screen { aspect-ratio: 1150/747; }
.preview-frame:hover { outline: 1px solid var(--line-strong); }
.nojs-pages { margin-top: 24px; }
.nojs-pages summary { cursor: pointer; }
.nojs-pages ul { list-style: none; padding-block: 12px; }
.nojs-pages a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.project-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; }
.project-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 32px; margin-top: 36px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.project-cta h2 { font-size: clamp(24px, 2.8vw, 40px); }
.project-cta p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.next-project { display: flex; justify-content: space-between; gap: 28px; padding-block: 28px 40px; align-items: baseline; }
.next-project > span { color: var(--muted); font-size: 13px; }
.next-project > a { display: inline-flex; align-items: center; gap: 24px; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(18px, 2vw, 28px); font-weight: 600; letter-spacing: -.035em; min-height: 44px; }
.next-project > a:hover { text-decoration: underline; text-underline-offset: 5px; }

html.viewer-open { overflow: hidden; }
.image-viewer { width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; inset: 0; padding: 0; margin: 0; background: var(--surface); color: var(--text); border: 0; overflow: auto; overscroll-behavior: contain; }
.image-viewer[open] { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; }
.image-viewer::backdrop { background: rgb(0 0 0 / .6); }
.viewer-header { padding: max(20px, env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) 20px max(28px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.viewer-heading { margin-right: auto; min-width: 0; }
.viewer-heading h2 { font-size: 24px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.viewer-zoom { display: flex; gap: 8px; align-items: center; }
.zoom-reset { min-height: 44px; min-width: 76px; padding: 10px; border: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.zoom-reset:hover { background: var(--surface-raised); }
.viewer-viewport { overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; min-width: 0; min-height: 0; cursor: grab; }
.viewer-viewport.is-dragging { cursor: grabbing; user-select: none; }
.viewer-canvas { min-width: 100%; width: max-content; box-sizing: border-box; padding: 24px; display: flex; justify-content: center; align-items: flex-start; }
.viewer-canvas img { max-width: none; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--line); }
.viewer-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 16px max(28px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); }
.viewer-paging { display: flex; align-items: center; justify-content: center; gap: 16px; margin-inline: auto; }
.viewer-live-link { max-width: 100%; }
#viewer-counter { min-width: 42px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.error-page { padding-block: 100px 140px; min-height: 65vh; }
.error-page h1 { font-size: clamp(60px, 12vw, 180px); }
.error-page p { margin-block: 20px 28px; color: var(--muted); max-width: 50ch; }

@media (max-width: 1100px) {
  .hero-bottom { flex-wrap: wrap; }
  .hero-description { top: calc(var(--hero-size) * 1.12 + 18px); }
  .hero-types { flex-basis: 100%; }
  .hero-actions { width: 100%; justify-content: flex-end; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .site-footer { flex-wrap: wrap; gap: 12px 24px; }
  .project-intro { grid-template-columns: 1fr; gap: 28px; }
  .project-intro h1 { font-size: clamp(40px, 7vw, 76px); }
  .project-summary { max-width: 76ch; }
  .project-gallery { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .preview-heading { flex-wrap: wrap; }
  .preview-heading .button { min-height: 44px; padding: 10px 14px; }
}
@media (max-width: 960px) {
  .project-gallery { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .sidebar-title { margin: 0 0 12px; }
  .page-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .page-nav a { min-height: 44px; border-color: var(--line); font-size: 13px; padding: 10px 12px; }
  .page-nav a > .icon { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .site-header { min-height: 70px; gap: 16px; flex-wrap: wrap; }
  .wordmark { font-size: 14px; }
  .header-controls { gap: 8px; }
  .theme-toggle { width: 44px; padding: 10px; }
  .js .menu-toggle { display: inline-flex; }
  .primary-nav { width: 100%; flex-basis: 100%; order: 3; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 4px 16px; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: flex; }
  .hero { padding-top: 28px; }
  .hero-title { font-size: var(--hero-size); letter-spacing: -.06em; }
  .hero-description { position: static; max-width: 100%; margin-top: 28px; font-size: 16px; }
  .hero-bottom { margin-top: 28px; padding-block: 16px; gap: 20px; }
  .hero-types { font-size: 12px; line-height: 1.8; }
  .hero-types span { margin-inline: 2px; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .hero-actions .button { font-size: 13px; padding: 11px 13px; gap: 14px; }
  .works { padding-top: 28px; }
  .works-heading { margin-bottom: 20px; }
  .works-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .work-card h3 { font-size: 20px; }
  .work-card__category { font-size: 14px; }
  .work-card__meta { margin-top: 14px; }
  .work-card__task { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; padding-top: 14px; }
  .work-card__actions { gap: 10px; padding-top: 18px; }
  .work-card__link { gap: 16px; padding-inline: 13px; }
  .work-card__open { display: none; }
  .content-section { padding-top: 24px; }
  .section-title { font-size: clamp(31px, 7.6vw, 54px); }
  .section-intro { margin-top: 16px; }
  .service-row { gap: 12px; padding-block: 18px; grid-template-columns: 1fr; }
  .service-row dt { font-size: 23px; gap: 16px; }
  .service-row dd { padding-left: 44px; font-size: 14px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .process-grid p { font-size: 14px; }
  .process-grid h3 { font-size: 19px; }
  .process-number { font-size: 40px; }
  .condition-row { grid-template-columns: 1fr; gap: 10px; padding-block: 20px; }
  .condition-row dt { font-size: 21px; }
  .condition-row dd { font-size: 16px; }
  .conditions-cta { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 28px; }
  .conditions-cta .button { width: 100%; }
  .contact-section { grid-template-columns: 1fr; gap: 32px; padding-block: 28px 44px; }
  .contact-copy .section-title { max-width: none; }
  .contact-copy > p { margin-top: 18px; max-width: 50ch; }
  .site-footer { padding-block: 20px max(24px, env(safe-area-inset-bottom, 0px)); gap: 8px 16px; }
  .site-footer > p { flex-basis: 100%; }
  .site-footer nav { flex-wrap: wrap; gap: 2px 18px; }
  .site-footer nav a { font-size: 12px; }
  .back-top { margin-left: auto; font-size: 12px; }
  .project-back { padding-top: 20px; }
  .project-intro { padding-block: 28px; gap: 24px; }
  .project-intro h1 { font-size: clamp(36px, 8vw, 60px); }
  .project-subtitle { margin-top: 12px; font-size: 20px; }
  .preview-heading { flex-wrap: nowrap; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
  .preview-heading h2 { font-size: 24px; }
  .preview-heading .button { font-size: 12px; gap: 10px; max-width: 148px; padding: 10px; }
  .preview-heading .button .icon { width: 16px; flex-basis: 16px; }
  .project-links { flex-wrap: wrap; }
  .project-links .button { font-size: 12px; padding: 10px 12px; }
  .project-cta { align-items: flex-start; flex-direction: column; gap: 24px; }
  .project-cta .button { width: 100%; }
  .next-project { padding-block: 24px 32px; gap: 10px; flex-direction: column; }
  .next-project > a { font-size: 23px; }
  .viewer-header { flex-wrap: wrap; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); gap: 12px; }
  .viewer-heading { flex: 1 1 calc(100% - 60px); }
  .viewer-heading h2 { font-size: 20px; }
  .viewer-close { order: 1; padding: 10px; min-height: 44px; min-width: 44px; }
  .viewer-close span { display: none; }
  .viewer-zoom { order: 2; width: 100%; justify-content: flex-end; gap: 6px; }
  .viewer-zoom .icon-button, .zoom-reset { min-height: 44px; height: 44px; }
  .viewer-canvas { padding: 12px; }
  .viewer-footer { padding: 12px max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); flex-wrap: wrap; gap: 12px; }
  .viewer-back { min-height: 44px; padding: 10px; gap: 8px; font-size: 12px; }
  .viewer-paging { margin-left: auto; margin-right: 0; gap: 10px; }
  .viewer-live-link { flex-basis: 100%; min-height: 44px; font-size: 13px; padding: 11px 14px; }
  .viewer-contact { flex-basis: 100%; font-size: 13px; padding: 11px 14px; }
}
@media (max-width: 480px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .preview-heading { flex-wrap: wrap; }
  .preview-heading .button { width: 100%; max-width: none; }
}
@media (max-width: 430px) {
  .site-header { gap: 8px; }
  .wordmark { font-size: 12px; }
  .header-controls { gap: 8px; }
  .menu-toggle { gap: 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .site-header { gap: 8px; }
  .wordmark { font-size: 12px; }
  .header-controls { gap: 0; }
  .theme-toggle { width: 44px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid p { max-width: 42ch; }
  .process-grid li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .process-number { grid-row: span 2; font-size: 32px; }
  .process-grid p { grid-column: 2; margin-top: 8px; }
}
@media (max-width: 340px) {
  .site-header .wordmark { flex-basis: calc(100% - 104px); align-self: flex-start; }
  .site-header .header-controls { flex-wrap: wrap; justify-content: flex-end; width: 96px; }
  .site-header .language-switch { min-width: 44px; }
  .site-header .menu-toggle { width: 96px; padding-left: 0; }
}
/* Keep the artwork usable when a phone is held horizontally or the window is short. */
@media (max-height: 540px) and (min-width: 480px) {
  .viewer-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); gap: 12px; }
  .viewer-heading { margin: 0; }
  .viewer-heading h2 { font-size: 18px; }
  .viewer-zoom { order: 0; width: auto; gap: 6px; }
  .viewer-close { order: 0; min-width: 44px; min-height: 44px; padding: 10px; }
  .viewer-close span, .viewer-back { display: none; }
  .viewer-canvas { padding: 12px; }
  .viewer-footer { flex-wrap: nowrap; gap: 12px; padding: 8px max(12px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .viewer-paging { flex: 0 0 auto; margin: 0 auto 0 0; gap: 8px; }
  .viewer-live-link, .viewer-contact { flex: 0 1 auto; min-height: 44px; font-size: 12px; padding: 10px 12px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .image-viewer, .project-cta, .next-project, .preview-heading button { display: none !important; }
  .contact-method .button { display: none; }
  :root { --surface: #fff; --text: #000; --muted: #333; --line: #ccc; }
  .container { width: 100%; }
  .work-card, .process-grid li { break-inside: avoid; }
  .preview-frame { aspect-ratio: auto; }
}
