:root {
  --navy: #111e27;
  --ink: #182731;
  --copper: #d6a67c;
  --copper-light: #efd0ad;
  --paper: #f3f5f4;
  --radius: 8px;
  --ease-out: cubic-bezier(.22, .72, .22, 1);
}

.wrap { width: min(1320px, calc(100% - 96px)); }
.topline { background: #0b151c; }
.site-header { background: #fff; }
.eyebrow { color: #805e40; }
.warranty .eyebrow, .service-feature .eyebrow, .page-hero .eyebrow { color: var(--copper-light); }
.header-inner { height: 84px; }
.desktop-nav a { font-size: 15px; }
.mobile-nav { top: var(--menu-top, 115px); }
.studio-hero { background: var(--navy); color: #fff; }
.studio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(32px, 5vw, 86px);
  padding-block: clamp(42px, 5.6vw, 88px);
}
.studio-hero-copy .eyebrow { color: var(--copper-light); font-size: 14px; }
.studio-hero h1 {
  font-size: clamp(41px, 4.6vw, 76px);
  line-height: 1.32;
  letter-spacing: -.027em;
  margin-bottom: 24px;
}
.studio-hero h1 span { display: inline-block; }
.studio-hero .hero-desc { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.95; }
.studio-hero .hero-note { margin-bottom: 0; font-size: 13px; }
.studio-hero .hero-actions { gap: 10px; }
.studio-cover { margin: 0; position: relative; min-width: 0; }
.studio-cover-image {
  aspect-ratio: 1.27;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #283545;
}
.studio-cover-image img { width: 100%; height: 100%; object-fit: cover; object-position: 51% 37%; }
.studio-cover figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  background: #1b2a34;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 15px;
  color: #e0e8ed;
  font-size: 13px;
}
.studio-cover figcaption a { color: var(--copper-light); text-underline-offset: 5px; text-decoration: underline; }
.trust-item strong { font-size: 15px; }
.trust-item small { font-size: 13px; }
.project-section { background: #fff; }
.project-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 30px;
}
.project-section-head h2, .video-layout h2 { font-size: clamp(28px, 3.2vw, 47px); line-height: 1.5; letter-spacing: -.02em; margin: 0; }
.project-section-head .eyebrow, .video-layout .eyebrow { color: #846448; margin-bottom: 8px; }
.project-section-head a { flex-shrink: 0; }
.project-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-featured { grid-template-columns: 1.35fr 1fr 1fr; }
.project-card { margin: 0; min-width: 0; }
.project-card[hidden], .project-filters[hidden] { display: none; }
.project-link { display: block; }
.project-image { aspect-ratio: 8 / 5; overflow: hidden; position: relative; border-radius: var(--radius); background: #e1e7e8; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.project-image picture { display: block; width: 100%; height: 100%; }
.project-image picture img { object-fit: contain; object-position: center; }
.project-zoom {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #fff5;
  border-radius: 50%;
  background: #101b25da;
  color: #fff;
  font: 400 25px/1 Arial, sans-serif;
  transition: background .25s, color .25s;
}
.project-link:hover .project-zoom, .project-link:focus-visible .project-zoom { color: #182731; background: var(--copper-light); }
.project-caption { display: grid; gap: 2px; padding: 14px 2px 15px; border-bottom: 1px solid var(--line); }
.project-caption strong { font-size: 17px; line-height: 1.65; }
.project-caption > span { color: var(--muted); font-size: 14px; }
.portfolio-heading { background: var(--navy); }
.portfolio-heading .breadcrumb { margin-bottom: 12px; }
.portfolio-heading p { margin-bottom: 0; }
.project-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.project-filters button, .project-filters a {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 16px;
  min-height: 42px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.project-filters button[aria-pressed=true] { color: #fff; background: var(--navy); border-color: var(--navy); }
.project-filters a { margin-inline-start: auto; }
.video-section { background: var(--paper); }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 42px; align-items: center; }
.video-layout video { display: block; width: 100%; max-height: min(68vh, 620px); aspect-ratio: 16/10; object-fit: contain; background: #0b151c; border-radius: var(--radius); }
.studio-services { background: var(--paper); }
.studio-services .service-feature img { object-position: 45% 45%; }
.service-visual img { height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: center 40%; }
.service-visual { min-height: 0; }
.warranty { background: #152630; }

.project-dialog {
  width: min(1080px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #42525d;
  background: #111d25;
  color: white;
  border-radius: 10px;
}
.project-dialog::backdrop { background: #080f15e6; }
.project-dialog-inner { display: grid; padding: 14px; }
.project-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 6px 12px; }
.project-dialog-header h2 { font-size: clamp(16px, 2vw, 23px); margin: 0; line-height: 1.55; }
.project-dialog-image { width: 100%; height: min(69dvh, 730px); object-fit: contain; background: #0a1218; border-radius: 5px; }
.project-close, .project-dialog-controls button { background: #24343f; border: 1px solid #4b5b66; border-radius: 5px; color: white; min-height: 44px; }
.project-close { width: 44px; flex: 0 0 44px; font: 400 26px/1 Arial, sans-serif; }
.project-dialog-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding-top: 12px; }
.project-dialog-controls button { padding: 6px 12px; font-size: 13px; }
.project-dialog-controls button:first-child { justify-self: start; }
.project-dialog-controls button:last-child { justify-self: end; }
.project-dialog-controls button:disabled { opacity: .45; cursor: default; }
.project-dialog-controls span { color: #ced8de; font: 600 14px/1.2 var(--latin-font); direction: ltr; }
body.project-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border-width: 0; }

@media (prefers-reduced-motion: no-preference) {
  .studio-hero-copy > * { animation: studio-rise .72s var(--ease-out) both; }
  .studio-hero-copy h1 { animation-delay: .06s; }
  .studio-hero-copy .hero-desc { animation-delay: .13s; }
  .studio-hero-copy .hero-actions { animation-delay: .18s; }
  .studio-hero-copy .hero-note { animation-delay: .23s; }
  .studio-cover { animation: studio-rise .85s .08s var(--ease-out) both; }
  .studio-cover-image img { animation: facade-settle 1.5s var(--ease-out) both; }
  .project-dialog[open] { animation: studio-rise .24s var(--ease-out) both; }
  .reveal-in { animation: studio-rise .68s var(--ease-out) both; }
}
@keyframes studio-rise { from { opacity: .05; transform: translateY(19px); } to { opacity: 1; transform: translateY(0); } }
@keyframes facade-settle { from { transform: scale(1.07); } to { transform: scale(1); } }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .studio-hero-grid { gap: 32px; }
  .studio-hero h1 { font-size: clamp(39px, 4.6vw, 59px); }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { height: 76px; }
  .studio-hero-grid { grid-template-columns: 1fr; gap: 25px; padding-block: 38px; }
  .studio-hero-copy { max-width: 650px; }
  .studio-cover-image { aspect-ratio: 1.65; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .project-featured .project-card:first-child { grid-column: 1 / -1; }
  .video-layout { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 70px; }
  .studio-hero-grid { padding-block: 32px 24px; gap: 24px; }
  .studio-hero-copy .eyebrow { font-size: 13px; margin-bottom: 13px; }
  .studio-hero h1 { font-size: clamp(33px, 9.2vw, 52px); margin-bottom: 13px; }
  .studio-hero .hero-desc { margin-bottom: 20px; }
  .studio-hero .hero-actions .btn { padding-inline: 13px; }
  .studio-hero .hero-note { margin-top: 12px; }
  .studio-cover-image { aspect-ratio: 1.35; }
  .studio-cover figcaption { min-height: 42px; font-size: 12px; }
  .trust-item strong { font-size: 13px; }
  .trust-item small { font-size: 11px; }
  .project-section-head { display: grid; justify-content: stretch; gap: 13px; margin-bottom: 22px; }
  .project-section-head a { justify-self: start; }
  .project-grid { gap: 20px 12px; }
  .project-image { aspect-ratio: 4 / 3; }
  .project-caption { padding-block: 9px 10px; }
  .project-caption strong { font-size: 14px; }
  .project-caption > span { font-size: 12px; }
  .project-zoom { width: 32px; height: 32px; inset-inline-end: 7px; bottom: 7px; font-size: 21px; }
  .project-filters a { margin-inline-start: 0; }
  .project-filters button, .project-filters a { font-size: 13px; padding: 8px 12px; }
  .project-dialog-inner { padding: 9px; }
  .project-dialog-image { height: min(63dvh, 660px); }
  .project-dialog-controls button { font-size: 12px; padding-inline: 8px; }
}
