:root {
  --bg: #050505;
  --ink: #f2efeb;
  --muted: #9a9691;
  --soft: #706d69;
  --line: #292929;
  --head: "Barlow Condensed", sans-serif;
  --body: Inter, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); }

.error-page { min-height: calc(100svh - 88px); display: grid; place-items: center; text-align: center; padding: 140px 24px 70px; }
.error-card { width: min(720px, 100%); }
.error-code { display: block; color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: .28em; text-transform: uppercase; }
.error-card h1 { margin: 24px 0 22px; font: 800 clamp(68px, 12vw, 150px)/.8 var(--head); letter-spacing: -.035em; text-transform: uppercase; }
.error-card p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.error-actions a { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--line); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .09em; transition: background .2s, color .2s, border-color .2s; }
.error-actions a:first-child, .error-actions a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.wrap { width: min(1540px, calc(100% - 96px)); margin: auto; }

.subpage-bar {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 max(48px, calc((100vw - 1540px) / 2));
  background: rgba(5, 5, 5, .96);
  border-bottom: 1px solid #242424;
  backdrop-filter: blur(12px);
}

.subpage-bar .logo { width: 152px; height: 54px; overflow: hidden; }
.subpage-bar .logo img { width: 100%; height: 100%; object-fit: contain; }
.subpage-bar nav { display: flex; gap: 35px; align-items: center; }
.subpage-bar nav a { color: #fff; font-size: 15px; font-weight: 600; transition: opacity .2s; }
.subpage-bar nav a:hover, .subpage-bar nav a[aria-current="page"] { opacity: .58; }
.subpage-bar .home-link { color: #8f8b87; }
.mobile-menu { display: none; }

.page-main { padding-top: 88px; }
.page-eyebrow, .info-label {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .27em;
  text-transform: uppercase;
}

.page-title {
  max-width: 1180px;
  margin: 22px 0 0;
  font: 500 clamp(56px, 7.2vw, 116px) / .93 var(--body);
  letter-spacing: -.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #64615e;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.page-footer a { color: #d7d3cf; }

/* Contact */
.contact-page { padding-top: 138px; }
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(60px, 9vw, 150px);
  align-items: center;
  padding: 30px 0 94px;
}
.contact-identity h1 {
  margin: 24px 0 0;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.contact-identity p { margin: 17px 0 0; color: #77736f; font-size: 13px; letter-spacing: .045em; }
.contact-actions { border-top: 1px solid var(--line); }
.contact-actions a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .25s;
}
.contact-actions a:hover { padding-left: 8px; color: #fff; }
.contact-actions small { color: #66625f; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.contact-actions span { font-size: clamp(16px, 1.4vw, 21px); }
.contact-mail {
  margin: 0;
}
.contact-primary {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1fr;
  gap: 12px;
}
.contact-block { min-height: 230px; padding: 32px 34px 36px; background: #0a0a0a; border: 1px solid #1e1e1e; }
.contact-block + .contact-block { padding-left: 34px; border-left: 1px solid #1e1e1e; }
.contact-block address, .contact-block p {
  margin: 29px 0 0;
  color: #aaa6a2;
  font-size: 16px;
  font-style: normal;
  line-height: 1.72;
}
.contact-block strong, .contact-block a { color: #f1efeb; font-weight: 500; }
.contact-block a:hover { opacity: .62; }
.records-heading { margin: 76px 0 22px; }
.contact-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.contact-records section { min-width: 0; min-height: 220px; padding: 34px 36px 38px; background: #080808; border: 1px solid #1b1b1b; }
.contact-records section + section { padding-left: 36px; border-left: 1px solid #1b1b1b; }
.contact-records p, .contact-records strong, .contact-records dl {
  margin: 27px 0 0;
  color: #a7a3a0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}
.contact-records strong { display: block; color: #ece9e5; }
.contact-records p + p { margin-top: 17px; }
.contact-records dl div + div { margin-top: 14px; }
.contact-records dt { color: #666; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.contact-records dd { margin: 2px 0 0; color: #ddd9d5; overflow-wrap: anywhere; }
.contact-social {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 34px 0 60px;
  color: #666;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-social a { color: #efede9; font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.contact-social a:hover { opacity: .62; }

/* About */
.about-page { padding-top: 138px; }
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(70px, 10vw, 160px); align-items: end; padding: 30px 0 82px; border-bottom: 1px solid var(--line); }
.about-identity h1 { margin: 24px 0 0; font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.about-identity p { max-width: 520px; margin: 20px 0 0; color: #8e8985; font-size: 16px; line-height: 1.6; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.about-facts div { padding: 20px 18px 4px 0; }
.about-facts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.about-facts strong, .about-facts span { display: block; }
.about-facts strong { color: #efede9; font-size: clamp(20px, 2vw, 29px); font-weight: 500; letter-spacing: -.03em; }
.about-facts span { margin-top: 8px; color: #686461; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.about-intro {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: clamp(64px, 8vw, 126px);
  align-items: start;
  padding: 88px 0 104px;
}
.about-copy { max-width: 780px; padding: 18px 0 0; }
.about-lead { margin: 28px 0 0; color: #c8c4c0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.75; }
.about-copy p + p { margin-top: 20px; }
.about-photo { width: 100%; max-width: 380px; margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo figcaption { margin-top: 12px; color: #666; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.green-production {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(55px, 8vw, 120px);
  padding: 52px 58px;
  background: #0a0a0a;
  border: 1px solid #1d1d1d;
}
.green-production h2, .services-head h2, .studios-head h2 {
  margin: 20px 0 0;
  font: 500 clamp(27px, 3vw, 44px) / 1.05 var(--body);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.green-production p { margin: 0; color: #9e9a96; font-size: 15px; line-height: 1.75; }
.green-production p + p { margin-top: 20px; }
.about-services {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(70px, 9vw, 135px);
  align-items: start;
  padding: 120px 0 130px;
}
.map-frame { margin: 0; }
.map-link { position: relative; display: block; aspect-ratio: 1.18 / 1; overflow: hidden; background: #111; cursor: pointer; }
.map-link img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; transform: scale(1.72); transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .3s ease; }
.map-link span { position: absolute; z-index: 2; right: 18px; bottom: 18px; padding: 11px 14px; background: rgba(5,5,5,.82); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.map-link:hover img { transform: scale(1.78); filter: brightness(.82); }
.map-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.page-footer-links{display:flex;align-items:center;gap:24px}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .58s ease,transform .58s cubic-bezier(.2,.72,.2,1)}
.reveal.is-visible{opacity:1;transform:none}
.legal-page{padding-block:170px 100px}
.legal-header{max-width:900px;margin-bottom:70px}.legal-header h1{font:700 clamp(48px,7vw,92px)/.92 var(--head);margin:12px 0 20px}.legal-header p{color:#aaa;line-height:1.7}
.legal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#292929;border:1px solid #292929}.legal-section{background:#050505;padding:38px}.legal-section.wide{grid-column:1/-1}.legal-section h2{font:700 28px/1.1 var(--head);margin:0 0 20px;text-transform:uppercase}.legal-section h3{font-size:15px;margin:24px 0 8px}.legal-section p,.legal-section li{color:#aaa;line-height:1.75}.legal-section a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.legal-grid{grid-template-columns:1fr}.legal-section.wide{grid-column:auto}.page-footer-links{gap:12px;flex-wrap:wrap;justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal,.reveal.is-visible{opacity:1;transform:none;transition:none}}

/* Partner links in the primary navigation */
.subpage-bar nav { gap: clamp(12px, 1.55vw, 25px); }
@media (min-width: 851px) {
  .subpage-bar .logo { width: 162px; height: 58px; }
  .subpage-bar nav a { font-size: 12px; }
  .subpage-bar nav .partner-link { color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
  .subpage-bar nav .partner-link-first { margin-left: 1px; padding-left: 14px; border-left: 1px solid #343434; }
}
.page-footer,.page-eyebrow,.info-label,figcaption{color:#aaa}
.map-frame figcaption { margin-top: 12px; color: #666; font-size: 10px; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }
.services-head { margin-bottom: 38px; }
.service-list { border-top: 1px solid var(--line); }
.service { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.service h3 { margin: 0 0 12px; color: #efede9; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.service p { margin: 0; color: #9d9995; font-size: 14px; line-height: 1.7; }
.about-direct { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
.about-direct a { padding-bottom: 5px; border-bottom: 1px solid #555; font-size: 13px; }
.studio-directory { padding: 100px 0 115px; background: #090909; border-block: 1px solid var(--line); }
.studios-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(65px, 9vw, 140px); }
.studio-floors { border-top: 1px solid var(--line); }
.studio-floor {
  display: grid;
  grid-template-columns: .65fr 1fr;
  gap: 45px;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
}
.studio-floor h3 { margin: 0; color: #777; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.studio-floor p { margin: 0; color: #d6d2ce; font-size: 14px; line-height: 1.85; }

@media (max-width: 1100px) {
  .subpage-bar nav { gap: 24px; }
  .contact-records { grid-template-columns: 1fr 1fr; }
  .contact-records section:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-records section:nth-child(4) { border-top: 1px solid var(--line); }
  .about-intro { grid-template-columns: minmax(280px, 340px) 1fr; gap: 60px; }
}

@media (max-width: 850px) {
  .wrap { width: min(100% - 42px, 1540px); }
  .subpage-bar { padding-inline: 21px; }
  .mobile-menu { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
  .mobile-menu i { display: block; width: 24px; height: 1px; background: #fff; transition: transform .25s; }
  .subpage-bar nav { display: none; position: absolute; top: 88px; left: 0; right: 0; padding: 26px 21px 34px; background: #050505; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .subpage-bar.open nav { display: flex; }
  .subpage-bar.open .mobile-menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .subpage-bar.open .mobile-menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .contact-hero, .about-hero, .green-production, .about-services, .studios-layout { grid-template-columns: 1fr; }
  .about-hero { gap: 52px; }
  .contact-hero { gap: 54px; padding-bottom: 72px; }
  .contact-actions { width: 100%; }
  .contact-mail { width: auto; max-width: none; }
  .contact-primary { grid-template-columns: 1fr; }
  .contact-block { min-height: 0; padding: 30px 0 34px; }
  .contact-block + .contact-block { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .about-intro { grid-template-columns: 1fr; padding-bottom: 100px; }
  .about-copy { padding-top: 10px; }
  .about-photo { width: min(100%, 540px); }
  .green-production { gap: 42px; }
  .green-production { padding: 42px 38px; }
  .about-services { gap: 80px; padding: 100px 0; }
  .studio-directory { padding: 95px 0 105px; }
  .studios-layout { gap: 55px; }
}

@media (max-width: 560px) {
  .subpage-bar .logo { width: 132px; }
  .contact-page, .about-page { padding-top: 90px; }
  .about-hero { padding-top: 18px; }
  .about-facts { grid-template-columns: 1fr; }
  .about-facts div { padding: 18px 0; }
  .about-facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .green-production { padding: 34px 26px; }
  .contact-hero { padding-top: 18px; }
  .contact-actions a { grid-template-columns: 68px 1fr; gap: 14px; }
  .contact-records { grid-template-columns: 1fr; }
  .contact-records section { padding: 32px 0 34px !important; border-left: 0 !important; }
  .contact-records section + section { border-top: 1px solid var(--line); }
  .contact-social, .page-footer { align-items: flex-start; flex-direction: column; line-height: 1.6; }
  .studio-floor { grid-template-columns: 1fr; gap: 14px; }
}
/* Keep the COSMIX palette independent of the visitor's light/dark preference. */
:root{color-scheme:only dark}html{background:#050505}

/* Unified uppercase navigation */
.subpage-bar nav a { color: #fff; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.subpage-bar nav a.home-link { color: #fff; }
.subpage-bar nav a:hover, .subpage-bar nav a:focus-visible, .subpage-bar nav a[aria-current="page"] { color: #fff; opacity: 1; }
