/* Shared visual rhythm and interaction contract. Keep page-specific layouts intact. */
:root {
  --cr-paper: #f5f5f0;
  --cr-ink: #0a0b13;
  --cr-gold: #d0aa58;
  --cr-line: rgba(235, 233, 220, .18);
  --cr-ease: cubic-bezier(.22, 1, .36, 1);
  --cr-fast: 180ms;
  --cr-settle: 420ms;
  --radius: 8px;
  --radius-lg: 12px;
}
html { scroll-padding-top: 110px; }
body { -webkit-font-smoothing: antialiased; }
body :is(h1, h2, h3, h4) { hyphens: none; word-break: normal; overflow-wrap: break-word; }
body :is(.services-hero, .about-hero, .projects-hero) h1 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.035em; hyphens: none; word-break: normal; overflow-wrap: break-word; }
::selection { background: #d0aa58; color: #0a0b13; }
body :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--cr-gold);
  outline-offset: 5px;
}
.skip-link {
  position: fixed; top: 12px; left: 16px; z-index: 10000;
  padding: 12px 20px; background: var(--cr-paper); color: var(--cr-ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
body header.site-header,
body header.site-header.header--glass,
body header.site-header.header--solid {
  background: rgba(10, 11, 19, .94);
  border-bottom: 1px solid var(--cr-line);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
body .header-inner {
  display: flex; justify-content: space-between; align-items: center;
  width: min(1440px, 100%); max-width: 1440px;
  min-height: 84px; margin-inline: auto; padding: 16px clamp(20px, 4vw, 64px); gap: 24px;
}
body .logo { flex: 0 0 auto; width: 210px; height: 34px; }
body .logo .logo-static { filter: brightness(0) invert(1); object-fit: contain; }
body .primary-nav { gap: clamp(18px, 2.2vw, 34px); }
body header.site-header .primary-nav a { color: var(--cr-paper); font-size: .86rem; font-weight: 500; padding-block: 12px; }
body header.site-header .primary-nav a[aria-current="page"] { color: var(--cr-gold); }
body .language-selector { border: 1px solid var(--cr-line); background: transparent; box-shadow: none; padding: 3px; }
body .language-selector::before { display: none; }
body .language-selector__btn { min-height: 32px; min-width: 34px; color: #eee; background: transparent; box-shadow: none; }
body header.site-header .language-selector__btn[aria-pressed="true"] { color: #0a0b13; background: var(--cr-paper); box-shadow: none; }
body .cc-fixed-dot-grid { opacity: .17; }
body .home-hero { margin-top: 0; }
body.home .hero.hero-video {
  min-height: min(800px, 84svh); padding: clamp(28px, 6vw, 88px);
  align-items: flex-end; justify-content: flex-start;
}
body.home .hero.hero-video .hero-content {
  margin: 0; padding: 0; max-width: 940px; gap: 24px; text-align: left;
}
body.home .hero.hero-video .hero-content h1 {
  max-width: 22ch; font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 4.6rem); font-weight: 500;
  line-height: 1.06; letter-spacing: -.045em; text-wrap: balance;
}
body.home .hero.hero-video .hero-content p:not(.section-lead) {
  max-width: 62ch; font-size: clamp(.98rem, 1.2vw, 1.1rem); line-height: 1.65; color: #e5e5e3;
}
body.home .hero.hero-video .section-lead {
  max-width: 70ch; font: 500 .7rem/1.7 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #e5d2a6;
}
body.home .hero-overlay { background: linear-gradient(90deg, rgba(5, 7, 13, .82), rgba(5, 7, 13, .28)), linear-gradient(0deg, rgba(5, 7, 13, .5), transparent 60%) !important; }
body :is(.btn, .works-console__cta, .works-console__archive) {
  min-height: 46px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--cr-fast) ease, color var(--cr-fast) ease, border-color var(--cr-fast) ease, transform var(--cr-fast) var(--cr-ease), box-shadow var(--cr-fast) ease;
}
body .btn-primary { background: var(--cr-gold); border-color: var(--cr-gold); color: #0a0b13; box-shadow: none; }
body .btn-ghost { background: rgba(10, 11, 19, .16); border-color: rgba(245, 245, 240, .4); }
body :is(button, .btn, .works-console__cta, .works-console__archive):active { transform: translateY(1px) scale(.98); }
body :is(button, a) { -webkit-tap-highlight-color: rgba(208, 170, 88, .18); }
body.home .selected-works {
  width: 100%; margin-inline: 0; padding: clamp(48px, 6vw, 88px) clamp(20px, 4vw, 64px);
  background: var(--cr-paper);
}
.works-console::before { opacity: .12; }
.works-console__header { padding: 0 0 28px; background: transparent; border: 0; box-shadow: none; }
.works-console__header h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: 1.02; }
.works-console__kicker { color: #806024; }
.works-console__stage { box-shadow: none; min-height: 540px; border-color: rgba(7, 7, 7, .15); }
.works-console__panel { background: #eeeee7; }
.works-console__panel h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.045em; }
.works-console__selector { box-shadow: none; background: transparent; border-inline: 0; }
.works-console__card { transition: background-color 180ms ease, border-color 180ms ease; }
.works-console__card.is-active { box-shadow: inset 0 -3px #a87924; }
.works-console__controls button { min-width: 44px; min-height: 44px; }
.works-console__media img { transition: transform 650ms var(--cr-ease), opacity 300ms ease; }
.works-console__media::after { transition-duration: 300ms; }
body.home :is(.studio-manifesto, .services-index-section) { width: 100%; margin-inline: 0; padding-inline: clamp(20px, 4vw, 64px); }
.studio-manifesto h2 { font-weight: 500; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.12; }
.studio-manifesto__pillar { border-radius: 0; box-shadow: none; }
.service-index-row { transition: background-color 220ms ease, border-color 220ms ease; }
.service-index-row__number { transition: color 180ms ease; }
body :is(.review-card, .approach-card) { box-shadow: none; border-radius: 8px; }
.ambient-toggle { position: absolute; right: 100px; bottom: 22px; z-index: 4; padding: 8px 12px; min-height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; color: white; background: rgba(10,11,19,.65); font: 500 .72rem/1.4 var(--font-body); cursor: pointer; }
.works-console__media:focus-visible { outline-offset: -5px; }
@media (hover: hover) and (pointer: fine) {
  body :is(.btn, .works-console__cta, .works-console__archive):hover { transform: translateY(-2px); border-color: var(--cr-gold); box-shadow: 0 5px 16px rgba(0,0,0,.12); }
  body .btn-primary:hover { background: #e0be79; color: #0a0b13; }
  body .btn-ghost:hover { background: rgba(208,170,88,.13); }
  .works-console__media:hover img { transform: scale(1.025); }
  .works-console__card:hover { background: rgba(193,141,33,.08); }
  .service-index-row:hover .service-index-row__number { color: var(--cr-gold); }
}
@media (max-width: 900px) {
  body .header-inner { flex-wrap: wrap; gap: 8px 16px; min-height: 104px; padding: 12px 20px; }
  body .logo { width: 180px; height: 30px; }
  body .language-selector { margin-left: auto; }
  body .primary-nav { order: 3; width: 100%; justify-content: space-between; gap: 14px; flex-wrap: nowrap; }
  body header.site-header .primary-nav a { font-size: .8rem; padding: 7px 0; }
  .works-console__stage { min-height: 0; }
}
@media (max-width: 760px) {
  body.home .hero.hero-video { min-height: 690px; min-height: max(650px, 80svh); padding: 36px 24px 80px; }
  body.home .hero.hero-video .hero-content { gap: 22px; }
  body.home .hero.hero-video .hero-content h1 { font-size: clamp(2.15rem, 8.5vw, 3.4rem); line-height: 1.1; }
  body.home .hero.hero-video .section-lead { font-size: .62rem; }
  .works-console__header { grid-template-columns: 1fr; }
  .works-console__stage { grid-template-columns: 1fr; }
  .works-console__media { min-height: 0; aspect-ratio: 4/3; }
  .works-console__media img { width: 100%; height: 100%; object-fit: cover; }
  .works-console__panel { padding: 24px; }
  body.home :is(.studio-manifesto, .services-index-section) { padding-block: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  body .reveal { opacity: 1; transform: none; }
}
