@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope-lat.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope-cyr.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url('assets/fonts/unbounded-lat.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url('assets/fonts/unbounded-cyr.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --ink: #292923;
  --muted: #57554c;
  --line: #cbc6b9;
  --accent: #71472f;
  --surface: #eae6db;
  --inverse: #2b2b25;
  --highlight: #efdbac;
  --on-dark: #e4dfd2;
  --dark-line: #68665a;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --display: Unbounded, 'Segoe UI', Arial, sans-serif;
  --sans: Manrope, 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .65rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
h1, h2, h3, p { margin: 0; }
h1, .brand { font-family: var(--display); font-weight: 550; }
h2, h3 { font-weight: 750; }
.wrap { width: min(100% - 2.5rem, 80rem); margin-inline: auto; }
.site-header { background: var(--inverse); color: var(--paper); border-bottom: 1px solid #4f4e44; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(.55rem, 3vw, 2rem); font-size: .93rem; }
nav a { display: grid; place-items: center; min-height: 44px; text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--highlight); }
main { background: var(--inverse); }
.hero { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); grid-template-areas: 'copy image' 'console image'; grid-template-rows: 1fr auto; column-gap: clamp(1.7rem, 6vw, 6rem); row-gap: 1.5rem; padding-block: clamp(1.7rem, 4.8vw, 4.25rem); color: var(--paper); }
.hero-copy { grid-area: copy; align-self: center; min-width: 0; }
.eyebrow { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin-bottom: 1.35rem; font-size: clamp(2.2rem, 4.45vw, 4.65rem); line-height: 1.05; letter-spacing: -.06em; }
h1 span, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1 em { display: block; margin-top: .28em; color: var(--on-dark); font: 550 .61em/1.18 var(--sans); letter-spacing: -.045em; }
.intro { max-width: 27rem; font-size: clamp(1rem, 1.4vw, 1.13rem); margin-bottom: 1.35rem; color: var(--on-dark); }
.primary { display: inline-flex; justify-content: center; align-items: center; background: var(--accent); color: #fffdf8; border: 1px solid transparent; border-radius: 3px; min-height: 3.15rem; padding: .65rem 1.2rem; font-weight: 750; text-decoration: none; text-align: center; transition: background .18s, transform .14s var(--ease-out); }
.primary:hover { background: #543322; }
.primary:active { transform: scale(.97); }
.hero .primary { background: var(--highlight); color: var(--ink); }
.hero .primary:hover { background: #fae9bf; }
.hero-gallery { grid-area: image; display: grid; min-width: 0; }
.gallery-frame { display: grid; grid-template-rows: 1fr auto; gap: .2rem; width: min(100%, 35rem); justify-self: center; min-width: 0; }
section[id] { scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.9rem, 4vw, 3.6rem); letter-spacing: -.05em; line-height: 1.08; }
.reference-console { display: grid; grid-area: console; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(.9rem, 2.5vw, 1.8rem); padding-top: 1rem; border-top: 1px solid var(--dark-line); }
.console-copy { min-width: 0; }
.console-copy h2 { font: 800 1.05rem/1.15 var(--sans); letter-spacing: normal; }
.reference-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.reference-choice { min-height: 44px; padding: .32rem .55rem; border-radius: 2px; border: 1px solid var(--dark-line); background: transparent; color: var(--on-dark); font-size: .88rem; transition: background .16s var(--ease-out), transform .14s var(--ease-out); }
.reference-choice[aria-pressed=true] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.reference-choice[aria-pressed=false]:hover { background: #424137; }
.reference-choice:active { transform: scale(.97); }
.gallery-frame iframe { display: block; width: 100%; height: clamp(28rem, 45vw, 39rem); border: 1px solid var(--on-dark); background: var(--surface); }
.gallery-frame iframe:focus { outline: 2px solid var(--highlight); outline-offset: 4px; }
.gallery-frame > a { display: inline-flex; justify-self: start; align-items: center; min-height: 44px; color: var(--on-dark); font-size: .9rem; }
.attach-button { display: inline-flex; align-items: center; gap: .38em; margin-top: .3rem; min-height: 44px; padding: .3rem 0; border: 0; background: none; color: var(--highlight); font-weight: 750; text-align: left; transition: transform .14s var(--ease-out); }
.attach-button span { font-size: 1.2em; line-height: 1; }
.attach-button:hover { text-decoration: underline; text-underline-offset: .2em; }
.attach-button:active { transform: scale(.97); }
.lens-dial { --turn: -7deg; display: grid; place-items: center; gap: .55rem; width: clamp(6rem, 14vw, 11rem); border: 0; border-radius: .7rem; background: none; padding: .35rem 0; }
.lens-label { min-height: 1.2em; color: var(--on-dark); font-size: .82rem; font-weight: 720; line-height: 1.1; text-align: center; }
.lens-dial[data-index="1"] { --turn: 8deg; }
.lens-ring { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 4; border: 1px solid #a4a093; border-radius: 50%; background: var(--inverse); }
.lens-ring::before, .lens-ring::after { content: ''; position: absolute; z-index: 1; top: 11%; width: .52rem; aspect-ratio: 1; border: 1px solid #c0bbae; border-radius: 50%; background: var(--inverse); }
.lens-ring::before { left: 15%; }
.lens-ring::after { right: 15%; }
.lens-dial[data-index="0"] .lens-ring::before,
.lens-dial[data-index="1"] .lens-ring::after { background: var(--highlight); border-color: var(--highlight); box-shadow: 0 0 0 2px var(--inverse); }
.lens-image { display: block; width: 94%; aspect-ratio: 5 / 4; object-fit: contain; transform: rotate(var(--turn)); }
.lens-dial[data-animate="true"] .lens-image { transition: transform .2s var(--ease-out); }
.lens-dial:active .lens-image { transform: rotate(var(--turn)) scale(.96); }
.lens-dial:hover .lens-ring, .lens-dial:focus-visible .lens-ring { border-color: var(--highlight); }
.lens-dial:hover .lens-label { text-decoration: underline; text-underline-offset: .23em; }
.portfolio { padding-block: clamp(2.7rem, 6vw, 5.4rem); background: var(--paper); }
.portfolio-heading { margin-bottom: clamp(1.55rem, 3vw, 2.75rem); }
.work p { color: var(--muted); max-width: 35rem; }
.portfolio-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: clamp(1.4rem, 5vw, 4.5rem); }
.work { min-width: 0; }
.work + .work { margin-top: clamp(1.3rem, 5vw, 4rem); }
.work h3 { margin-bottom: .45rem; }
.work iframe { display: block; width: 100%; height: clamp(27rem, 48vw, 40rem); background: var(--surface); border: 1px solid var(--line); margin-top: .85rem; }
.work + .work iframe { height: clamp(27rem, 43vw, 36rem); }
.work-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.15rem; margin-top: .25rem; }
.work-actions a, .work-actions button { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; }
.work-actions .text-button { color: var(--accent); font-weight: 750; }
.prepare { background: var(--paper); padding-bottom: clamp(2.6rem, 6vw, 5rem); }
.prepare-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 1rem clamp(1.4rem, 5vw, 4.5rem); align-items: end; border-top: 1px solid var(--line); padding-top: clamp(1.7rem, 4vw, 3.1rem); }
.prepare blockquote { margin: .8rem 0 0; max-width: 23ch; font: italic clamp(1.45rem, 3vw, 2.45rem)/1.25 Georgia, serif; }
.profile-source { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; font-size: .92rem; color: var(--muted); }
.prepare-note p { margin-top: .5rem; max-width: 29rem; color: var(--muted); }
.attached-reference { display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; padding: .55rem .8rem; background: var(--surface); border-radius: 5px; }
.attached-reference div { display: grid; }
.attached-reference span { font-size: .82rem; color: var(--muted); }
.attached-reference a { font-weight: 650; }
.booking { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(2.7rem, 6vw, 5.4rem); }
.booking-grid { display: grid; align-items: start; grid-template-columns: .78fr 1.22fr; gap: clamp(1.5rem, 6vw, 6rem); }
.booking-copy > p { margin-top: 1.1rem; color: var(--muted); max-width: 27rem; }
.booking-reference { display: grid; justify-items: start; gap: .1rem; border-top: 1px solid var(--line); padding-top: .85rem; margin-top: 1.4rem; max-width: 27rem; }
.booking-reference a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 750; }
.form-panel { min-width: 0; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.field { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.full { grid-column: 1 / -1; }
label { font-size: .94rem; font-weight: 650; }
label span { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; min-height: 3rem; padding: .62rem .75rem; color: var(--ink); background: var(--paper); border: 1px solid #958e81; border-radius: 2px; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
[aria-invalid=true] { border-color: #a03f32; }
.error { color: #8c3026; font-size: .88rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.15rem; }
.text-button { min-height: 44px; padding: .3rem 0; background: none; color: var(--ink); border: 0; text-decoration: underline; text-underline-offset: .2em; }
.text-button:hover { text-decoration-thickness: 2px; }
.form-note, .receipt-status { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
h3 { font-size: clamp(1.24rem, 2.25vw, 1.78rem); line-height: 1.18; letter-spacing: -.025em; }
.receipt h3 { margin-top: .3rem; font-size: clamp(1.5rem, 3vw, 2.35rem); }
dl { margin: 1.3rem 0 0; }
dl div { display: grid; grid-template-columns: minmax(5rem,.65fr) minmax(0,1.35fr); gap: .8rem; padding-block: .55rem; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.site-footer { border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
@media (min-width: 700px) { .wrap { width: min(100% - 5rem, 80rem); } }
@media (max-width: 760px) {
  .booking-grid, .portfolio-grid, .prepare-grid { grid-template-columns: 1fr; }
  .work + .work { margin-top: .65rem; }
  .work iframe, .work + .work iframe { height: clamp(26rem, 114vw, 36rem); }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: 'copy' 'image' 'console'; row-gap: 1.25rem; }
  .gallery-frame iframe { height: clamp(21rem, 108vw, 36rem); }
  .hero-copy h1 { margin-bottom: .75rem; }
  .hero-copy .intro { margin-bottom: .9rem; }
  .masthead { min-height: 4.3rem; }
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .primary { width: 100%; }
  .site-footer .masthead { flex-wrap: wrap; gap: .25rem; padding-block: .7rem; }
  h1 { font-size: clamp(1.8rem, 8.7vw, 2.65rem); }
  .wrap { width: calc(100% - 2rem); }
  .brand { font-size: .81rem; }
  nav { font-size: .86rem; }
  .reference-console { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
