/* Reference-led audit refinements. Earlier client layout decisions are retained. */
:root {
  --ink: #0a0d10;
  --night: #10171b;
  --paper: #f4f3f0;
  --text: #17191b;
  --signal: #e8ff59;
  --body-size: 16px;
  --small-size: 13px;
}
body { font-size: var(--body-size); }
html { color-scheme: dark; }
.paper { color-scheme: light; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 14px 20px; background: var(--signal); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
:is(a,button,[tabindex]):focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.paper :where(a,button,[tabindex]):focus-visible, .skip-link:focus-visible { outline-color: var(--ink); }
.button:not(.outline):focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.gallery-tile:focus-visible { outline-offset: -3px; }
.gallery-tile:focus-visible .enlarge { background: var(--signal); color: var(--ink); }
.gallery-tile:focus-visible .gallery-image::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--signal); pointer-events: none; z-index: 1; }
.gallery-tile:focus-visible .gallery-image { animation: none; }
.gallery-tile:focus-visible .gallery-image img { transform: none; }
.enter-copy:focus-within, .enter-photo:focus-within { animation: none; }
button, a { touch-action: manipulation; }
:where(section, main, footer)[id] { scroll-margin-top: 24px; }
.slide-count { font-variant-numeric: tabular-nums; }
.gallery-browse button[aria-disabled="true"] { opacity: .35; cursor: default; }
.gallery-browse button:not([aria-disabled="true"]):hover, dialog button:hover, .menu:hover { background: #354b58; }
.gallery-image img { transition: transform 250ms ease; }
.gallery-tile:hover img { filter: none; }
#gallery { overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
#gallery #gallery-title { font: 500 13px/1.5 Arial, sans-serif; letter-spacing: 0; white-space: normal; padding: 0 12px; margin: 12px 0; min-width: 0; overflow-wrap: anywhere; }
#gallery .project-details { scroll-margin-top: 80px; }
.wrap, .about .wrap { padding-inline: clamp(22px, 5.4vw, 83px); }
header { gap: 24px; }
.brand { width: 116px; }
.brand img { width: 100%; height: 64px; object-fit: contain; }
.brand span { font-size: 13px; letter-spacing: 3px; margin-top: 2px; }
nav { gap: 24px; }
nav a { font-size: 13px; letter-spacing: .03em; }
.button, .outline, .text-link, .language-switch button, .menu {
  font-size: var(--small-size); letter-spacing: .035em;
}
.language-switch button { min-width: 44px; }
.button { padding: 14px 20px; min-height: 48px; }
.text-link { min-height: 44px; border: 0; gap: 16px; text-decoration: underline; text-underline-offset: 5px; }
.outline { background: #e6e5e0; border: 0; }
.outline:hover { background: #dcdcd5; }
.menu { border: 0; background: #1c272e; }
.menu-lines { display: block; width: 15px; height: 9px; border-block: 2px solid currentColor; }
nav a:hover { border: 0; text-decoration: underline; text-underline-offset: 6px; }
.button:active, .gallery-tile:active, .gallery-browse button:active { transform: translateY(1px); }
.hero { height: min(720px, 90svh); min-height: 650px; }
.hero > .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; animation: stage-drift 3.5s ease-out both;
}
.hero::before {
  z-index: 1; background-image: linear-gradient(90deg, rgba(3,7,9,.97), rgba(3,7,9,.75) 29%, rgba(3,7,9,.15) 72%); /* taste-skill-ignore: neutral photo scrim, explicitly permitted by skill and DESIGN.md. */
}
.hero > header, .hero-content { z-index: 2; }
.hero-content { padding-top: 34px; }
.hero-copy { font-size: var(--body-size); max-width: 460px; margin: 28px 0; }
.services { padding-block: 48px; }
.section-head { grid-template-columns: 1fr 1fr auto; gap: 40px; margin-bottom: 32px; }
.intro, .section-head .intro, .about-copy > p:not(.eyebrow), .portfolio-heading .intro {
  font-size: var(--body-size); line-height: 1.6;
}
.intro, .about-copy > p:not(.eyebrow) { color: var(--text); }
.services-grid { margin-inline: 0; gap: 16px; }
.service { border: 0; }
.service-heading { padding: 18px 0; gap: 18px; min-height: 78px; }
.service h3 { font-size: 14px; letter-spacing: 0; line-height: 1.4; font-weight: 600; }
.service img { aspect-ratio: 1.65; }
.portfolio-gallery { padding-block: 48px 56px; }
.portfolio-heading { gap: 40px; margin-bottom: 32px; }
.portfolio-heading .intro { color: #eef0f0; max-width: 480px; }
.portfolio-grid { gap: 30px 18px; }
.gallery-caption { font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.45; }
.gallery-browse button { border: 0; background: #23323a; }
.swipe-hint, .slide-count { font-size: 13px; letter-spacing: .02em; }
.about { padding-block: 48px 56px; }
.about-grid { grid-template-columns: .95fr 1.2fr .75fr; gap: 36px; }
.crew-figure .crew { height: calc(100% - 28px); min-height: 340px; max-height: none; }
.crew-figure figcaption { font-size: 13px; color: var(--text); }
.about-copy > p:not(.eyebrow) { margin: 22px 0; }
.benefits { border: 0; padding: 18px 0 0; gap: 24px; justify-content: center; }
.benefits strong { font-size: 14px; letter-spacing: 0; text-transform: none; }
.benefits small { font-size: 14px; color: var(--text); line-height: 1.45; margin-top: 5px; }
.benefits p { margin: 0; }
footer { padding-block: 48px; }
footer .wrap { gap: 60px; }
footer p, .contact-details p { font-size: var(--body-size); color: #eef0f0; }
.contact-details .media-note, #service-details small, dialog small { font-size: 13px; }
.contact-details { max-width: 480px; }
.close { font-size: 13px; }
#gallery { border: 0; }
dialog button { border: 0; background: #23323a; font-size: 14px; }
#gallery .project-details { border: 0; background: #172229; padding: 22px; }
.project-details h3, .project-details dt { font-size: 13px; letter-spacing: .02em; }
.project-details dd { font-size: 16px; }
#gallery-title { font-size: 13px; }
@keyframes stage-drift { from { transform: scale(1.04); } to { transform: scale(1); } }
.enter-copy { animation: audit-rise 600ms cubic-bezier(.16,1,.3,1) both; }
.enter-photo { animation: audit-settle 800ms cubic-bezier(.16,1,.3,1) both; }
@keyframes audit-rise { from { transform: translateY(14px); opacity: .8; } to { transform: none; opacity: 1; } }
@keyframes audit-settle { from { transform: scale(1.025); opacity: .85; } to { transform: none; opacity: 1; } }
@media (min-width: 768px) and (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .gallery-image img { aspect-ratio: 1.2; }
  .about-grid { grid-template-columns: 1fr 1.15fr; }
  .benefits { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
}
@media (max-width: 1100px) {
  header { height: 104px; gap: 16px; }
  header .brand { margin-right: auto; }
  .nav-cta { display: none; }
  .menu { display: flex; align-items: center; gap: 12px; min-height: 44px; order: 2; }
  .language-switch { order: 1; }
  nav { display: none; position: absolute; top: 96px; left: 5.4%; right: 5.4%; padding: 20px; background: var(--night); z-index: 5; max-height: calc(100svh - 120px); overflow-y: auto; }
  nav.open { display: flex; flex-direction: column; gap: 4px; }
  nav a { padding: 12px; }
  .section-head { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section-head > .text-link { grid-column: 2; justify-self: start; }
  .service-heading { gap: 12px; }
}
@media (max-width: 767px) {
  header { gap: 10px; height: 96px; }
  .brand { width: 88px; }
  .brand img { height: 55px; }
  .brand span { font-size: 13px; letter-spacing: 2px; }
  .menu { padding: 10px; }
  .hero { height: 660px; min-height: 660px; }
  .hero-content { padding-top: 40px; }
  .hero > .hero-photo { object-position: 62% center; }
  .hero::before { background-image: linear-gradient(90deg, rgba(3,7,9,.94), rgba(3,7,9,.5)); } /* taste-skill-ignore: neutral photo scrim, explicitly permitted by skill and DESIGN.md. */
  .hero-copy { max-width: 390px; font-size: 16px; }
  .services, .portfolio-gallery, .about { padding-block: 36px 40px; }
  .section-head { display: block; }
  .section-head .intro { margin: 24px 0 12px; }
  .section-head .text-link { min-height: 44px; }
  .service { grid-template-columns: 48% minmax(0,1fr); min-height: 132px; }
  .service-heading { padding: 14px 12px 14px 0; gap: 12px; }
  .service h3 { font-size: 13px; line-height: 1.4; }
  .service > img { min-height: 132px; }
  .portfolio-heading .intro { margin-top: 24px; }
  .gallery-caption { font-size: 14px; min-height: 41px; }
  .gallery-browse { margin-top: 16px; }
  .about-grid { display: flex; flex-direction: column; gap: 28px; }
  .crew-figure .crew { height: 240px; min-height: 0; object-position: center; }
  .benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 0; border: 0; }
  .benefits strong, .benefits small { font-size: 14px; }
  footer { padding-block: 36px; }
  footer .wrap { display: block; }
  .contact-details { margin-top: 24px; }
  #gallery-title { font-size: 13px; }
  #gallery > small { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero > .hero-photo { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.arrow-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;vertical-align:middle;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.button b,.text-link b{display:inline-flex;align-items:center}.enlarge .arrow-icon{width:19px;height:19px}.gallery-browse button,#previous,#next{display:inline-grid;place-items:center}.button:hover .arrow-icon,.text-link:hover .arrow-icon{transform:translateX(2px)}.arrow-icon{transition:transform 180ms ease}@media(prefers-reduced-motion:reduce){.arrow-icon{transition:none}.button:hover .arrow-icon,.text-link:hover .arrow-icon{transform:none}}

