@font-face { font-family: GreyScript; src: url('assets/script.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --blue: #0c1929;
  --stage: #08111d;
  --silver: #e4eaf0;
  --muted: #a5b5c5;
  --edge: #344558;
  --focus: #b8d1e3;
  --gutter: clamp(28px, 6vw, 100px);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--blue); color: var(--silver); font-family: 'Avenir Next', 'Segoe UI', Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
button:disabled { cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 14px 20px; background: var(--silver); color: var(--stage); }
.skip:focus { top: 16px; }
#masthead { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; min-height: 76px; padding: 8px var(--gutter); background: #08111d38; transition: background .35s ease; }
.scrolled #masthead { min-height: 64px; background: var(--stage); }
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 140px; white-space: nowrap; }
.brand-wordmark { font: 38px/1 GreyScript, Georgia, serif; letter-spacing: -.025em; padding-top: 5px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; }
nav a::after { content: ''; position: absolute; bottom: 7px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
nav .nav-book { color: #fff; }
.hero { position: relative; height: min(72svh, 780px); min-height: 450px; overflow: hidden; isolation: isolate; background: var(--stage); }
.hero-film { position: absolute; inset: -10% -4%; transform: translateY(var(--drift, 0px)) rotate(-4.5deg) scale(1.03); will-change: transform; }
.hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#08111d52, transparent 25%, transparent 66%, var(--blue) 100%); }
.hero-bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 27px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
#motion { min-width: 64px; min-height: 44px; padding: 10px 12px; background: #08111d70; color: var(--silver); font-size: 12px; border: 1px solid #e4eaf04d; border-radius: 2px; transition: background .2s ease; }
#motion:hover { background: var(--stage); }
.portfolio-stage { position: relative; isolation: isolate; }
.ripple-field { position: absolute; z-index: -1; inset: 0; display: block; opacity: .18; pointer-events: none; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 128px); }
.work { padding-top: clamp(24px, 3.2vw, 48px); }
.gallery { display: flex; gap: clamp(16px, 2vw, 30px); overflow-x: auto; overflow-y: hidden; padding: 8px var(--gutter) 12px; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.gallery::after { content: ''; flex: 0 0 max(0px, calc(100vw - 2 * var(--gutter) - min(38vw, 440px, 44svh) - clamp(16px, 2vw, 30px))); }
.cut-card { display: block; flex: 0 0 min(38vw, 440px, 44svh); padding: 0; position: relative; background: var(--stage); scroll-snap-align: start; border-radius: 2px; text-align: left; color: var(--silver); }
.art { display: block; position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--stage); border-radius: inherit; }
.art > svg { display: block; width: 100%; height: 100%; }
.expand { position: absolute; bottom: 18px; right: 18px; display: grid; place-items: center; padding: 9px 14px; border: 1px solid #e4eaf080; background: #08111dcc; font-size: 12px; opacity: 0; transform: translateY(3px); transition: opacity .2s ease, transform .3s var(--ease); }
.cut-card:hover .expand, .cut-card:focus-visible .expand { opacity: 1; transform: none; }
.cut-card:active .expand { background: var(--silver); color: var(--stage); }
.filmstrip-controls { display: flex; justify-content: space-between; align-items: center; padding: 8px var(--gutter) 0; }
#gallery-position { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); margin: 0; }
.filmstrip-buttons { display: flex; gap: 8px; }
.strip-control { display: grid; place-items: center; width: 44px; height: 44px; background: #e4eaf00a; color: var(--silver); border: 1px solid #8398ae; border-radius: 50%; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.strip-control svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.strip-control:hover:not(:disabled) { background: var(--silver); border-color: var(--silver); color: var(--stage); }
.strip-control:active:not(:disabled) { transform: scale(.94); }
.strip-control:disabled { color: #718297; border-color: #26384d; opacity: .6; }
.booking-section { padding: 70px var(--gutter) 58px; text-align: center; }
.book-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 27px; border-radius: 2px; background: var(--silver); color: var(--stage); font-size: 14px; transition: background .2s ease, transform .3s var(--ease); }
.book-button:hover { background: #fff; transform: translateY(-2px); }
.book-button:active { transform: translateY(0); }
.booking-meta { margin: 13px 0 0; font-size: 12px; color: var(--muted); }
footer { display: flex; justify-content: flex-end; padding: 0 var(--gutter) 18px; font-size: 12px; color: var(--muted); }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer a:hover { color: var(--silver); }
dialog { border: 1px solid var(--edge); background: var(--blue); color: var(--silver); max-width: 100%; max-height: 100%; padding: 0; overscroll-behavior: contain; }
dialog::backdrop { background: #08111df5; }
.close { min-height: 44px; padding: 12px; background: none; color: var(--silver); font-size: 13px; }
.close span { margin-left: 10px; font-size: 20px; vertical-align: -1px; }
#viewer { width: 100vw; height: 100dvh; margin: 0; border: 0; padding: 12px var(--gutter); overflow: hidden; }
#viewer[open] { display: flex; flex-direction: column; align-items: center; }
.viewer-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.viewer-top h2 { margin: 0; font-size: 13px; font-weight: 400; }
.viewer-top .close { margin-right: -12px; }
#viewer-art { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; padding: 10px 0; }
#viewer-art .art { height: 100%; width: auto; max-width: 100%; aspect-ratio: 2/3; }
#viewer-art svg { height: 100%; width: auto; max-width: 100%; aspect-ratio: 2/3; }
#viewer-art .expand { display: none; }
.viewer-bottom { display: flex; align-items: center; justify-content: space-between; width: min(440px,100%); }
.viewer-bottom button { min-width: 48px; min-height: 48px; background: none; color: var(--silver); font-size: 26px; }
.viewer-bottom p { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
#booking { width: min(400px, calc(100% - 32px)); padding: 64px 28px 28px; }
#booking > .close { position: absolute; top: 8px; right: 14px; }
#booking h2 { text-wrap: balance; font-size: 22px; line-height: 1.3; font-weight: 500; margin: 0 0 20px; }
#booking p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.return-button { min-height: 48px; width: 100%; margin-top: 28px; padding: 14px 20px; background: var(--silver); color: var(--stage); }
noscript { position: fixed; z-index: 1001; left: 20px; right: 20px; bottom: 15px; color: var(--silver); font-size: 12px; }
@media (max-width: 800px) {
  :root { --gutter: 28px; }
  .cut-card { flex-basis: min(58vw, 440px); }
  .gallery::after { flex-basis: max(0px, calc(100vw - 2 * var(--gutter) - min(58vw, 440px) - clamp(16px, 2vw, 30px))); }
  .hero { height: 64svh; min-height: 440px; }
}
@media (max-width: 520px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 76px; }
  #masthead { min-height: 68px; }
  .scrolled #masthead { min-height: 60px; }
  .brand { min-width: 116px; }
  .brand-wordmark { font-size: 33px; }
  nav { gap: 20px; font-size: 12px; }
  .hero { height: 62svh; min-height: 400px; max-height: 590px; }
  .hero-film { inset: -5% -30%; transform: translateY(var(--drift,0px)) rotate(-4.5deg) scale(1.05); }
  .hero-bottom { bottom: 18px; }
  .work { padding-top: 24px; }
  .gallery { gap: 16px; padding-bottom: 10px; }
  .cut-card { flex-basis: calc(100vw - 80px); }
  .gallery::after { flex-basis: 20px; }
  .expand { display: none; }
  .booking-section { padding-top: 54px; padding-bottom: 38px; }
  #viewer { padding: 8px 20px; }
}
@media (max-width: 350px) {
  :root { --gutter: 16px; }
  .brand { min-width: 108px; }
  .brand-wordmark { font-size: 31px; }
  nav { gap: 16px; }
  .cut-card { flex-basis: calc(100vw - 64px); }
  .gallery::after { flex-basis: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-film { --drift: 0px !important; will-change: auto; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  footer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  #viewer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
.close:hover, .viewer-bottom button:hover { color: #fff; background: #e4eaf012; }
.return-button:hover { background: #fff; }
