/* The original OMEGA night palette, wordmark and local Inter are shared with both departments. */
.omega-home {
  --home-field: #0a1012;
  --home-border: #344247;
  --home-soft: #bec8c8;
  --home-gutter: clamp(1rem, 3.8vw, 4rem);
  --site-mast-gutter: var(--home-gutter);
  --home-radius: .3rem;
}
.omega-home :is(.omega-shell, .site-mast-inner) {
  max-width: 105rem;
  padding-inline: var(--home-gutter);
}
.home-gateway { background: var(--home-field); }
.studio-opening {
  min-block-size: calc(100vh - var(--omega-mast-height) - 1px);
  min-block-size: calc(100dvh - var(--omega-mast-height) - 1px);
  display: grid; grid-template-rows: auto minmax(min-content, 1fr);
  gap: clamp(1.2rem, 2.5vh, 2.4rem);
  padding-block: clamp(1.4rem, 4vh, 4rem) clamp(1.25rem, 4vh, 4rem);
}
.home-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .65rem 2rem; }
.home-intro h1, .home-work h2, .project h3, .home-contact h2 { margin: 0; line-height: 1.06; letter-spacing: -.055em; font-family: var(--omega-sans); font-weight: 560; }
.home-intro h1 { font-size: clamp(2.05rem, 3.35vw, 3.8rem); }
.home-intro h1 span { color: var(--omega-cyan); font-weight: 420; }
.home-intro p { max-width: 35ch; margin: 0 0 .18rem; color: var(--home-soft); font-size: clamp(.92rem, 1.05vw, 1.125rem); line-height: 1.4; }
.studio-gates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(min-content, 1fr) auto; gap: clamp(.65rem, 1vw, 1.3rem); min-width: 0; }
.studio-gate {
  --gate-accent: #dcb79b;
  display: grid; grid-template-rows: minmax(0,1fr) auto; position: relative; isolation: isolate;
  border: 1px solid #3b4548; border-radius: var(--home-radius); overflow: hidden;
  text-decoration: none; color: #f1f4f0; background: #101719; min-width: 0;
}
.studio-gate--systems { --gate-accent: #88d2cd; }
.studio-gate--work { --gate-accent: #bac9d6; }
.gate-art { display: block; position: relative; min-height: clamp(13rem, 24vh, 24rem); background: #06090a; overflow: hidden; }
.gate-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.studio-gate--sound .gate-art img { object-position: 73% center; }
.studio-gate--systems .gate-art img { object-position: 52% 48%; }
.studio-gate--work .gate-art img { object-position: 60% 42%; }
.gate-art::after { content: ""; pointer-events: none; position: absolute; inset: 0; box-shadow: inset 0 -1px rgb(255 255 255 / .07); }
.gate-info { display: flex; align-items: center; padding: clamp(.95rem, 1.4vw, 2rem) clamp(1rem,1.65vw,2.35rem); border-top: 1px solid var(--home-border); }
.gate-copy { min-width: 0; }
.gate-copy strong { display: block; font-size: clamp(1.55rem,2.1vw,2.5rem); font-weight: 540; line-height: 1.1; letter-spacing: -.05em; }
.gate-copy > span { display: block; margin-block-start: .48em; color: #bac7c7; font-size: clamp(.85rem,.95vw,1.07rem); line-height: 1.45; }
.gate-copy i { font-style: normal; color: #6f8286; padding-inline: .25em; }
.studio-gate:focus-visible { outline-offset: 2px; border-color: var(--gate-accent); }
@media (min-width: 90rem) {
  .studio-gates { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, .88fr); grid-template-rows: minmax(min-content,1fr); }
}
@media (max-width: 89.999rem) {
  .studio-gate--work { grid-column: 1 / -1; display: grid; grid-template-columns: clamp(4.2rem, 7vw, 6rem) minmax(0,1fr); grid-template-rows: auto; }
  .studio-gate--work .gate-art { min-height: 0; }
  .studio-gate--work .gate-info { padding-block: .65rem; border: none; }
  .studio-gate--work .gate-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
  .studio-gate--work .gate-copy strong { font-size: 1.16rem; }
  .studio-gate--work .gate-copy > span { margin: 0; }
}
.home-work { background: #10181b; color: #eff3f2; border-block: 1px solid var(--home-border); padding-block: clamp(2.5rem,5vw,5rem); }
.home-work h2, .home-contact h2 { font-size: clamp(1.85rem, 2.9vw, 3.3rem); }
.home-work h2 { margin-block-end: clamp(1.2rem, 2vw, 2.3rem); }
.work-duo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(.9rem, 1.6vw, 2.2rem); }
.project { --project-accent: #edbf96; background: #141c1e; border: 1px solid #3c494d; border-radius: var(--home-radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.project, .project-body, .record-stage, .system-stage { grid-template-columns: minmax(0, 1fr); }
.project :where(.project-body, .project-detail, .record-stage, .system-stage, .preview-strip, .machine-strip) { min-inline-size: 0; }
.project--system { --project-accent: #93d6d0; position: relative; isolation: isolate; }
.record-stage, .system-stage { width: 100%; aspect-ratio: 1.94; display: grid; grid-template-rows: minmax(0,1fr) auto; min-height: 15rem; }
.record-stage { background: radial-gradient(ellipse at 44% 66%, #3a2b31, #1f1c22 52%, #141619 88%); }
.record-edition, .system-object { position: relative; min-height: 0; }
.record-edition {
  isolation: isolate;
  container-type: inline-size;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
}
.record-edition:enabled { cursor: pointer; }
.record-edition:focus-visible { outline: 2px solid #edc9ae; outline-offset: -4px; }
.edition-cover, .edition-platter {
  position: absolute;
  top: 50%;
  height: min(76%, 47cqi);
  width: auto;
  aspect-ratio: 1;
  translate: 0 -50%;
}
.edition-cover {
  display: block;
  z-index: 1;
  right: 45%;
  box-shadow: 0 .45rem 1.2rem #080809aa;
  transform: rotate(-4deg);
}
.edition-platter {
  left: 41%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: .25rem .4rem .85rem #07080988;
}
.edition-disc { display: block; width: 100%; height: 100%; border-radius: inherit; }
.platter-label {
  position: absolute;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0c0e10 0 5%, #aba4a4 5.5% 7%, transparent 8%),
    radial-gradient(circle at 68% 27%, #f3c49a 0 2.8%, transparent 3.7%),
    repeating-radial-gradient(circle, transparent 0 27%, rgb(239 193 187 / .19) 28% 28.8%, transparent 30% 37%),
    linear-gradient(145deg, #804e48, #43313d 58%, #392d39);
  border: 1px solid #8a6260;
}
.record-edition::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 59% 55%, #815b5469, transparent 63%);
  pointer-events: none;
}
.project--record[data-playing="true"] .record-edition::before { opacity: 1; }
.preview-strip, .machine-strip {
  border-block-start: 1px solid #425052; min-width: 0; display: flex; align-items: center;
  gap: .85rem; min-height: 3rem; padding: .1rem clamp(.75rem,1.5vw,1.7rem);
  font: .78rem/1.4 var(--omega-mono);
}
.preview-strip {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  background: #15191b;
  color: #e4c4b1;
}
.preview-strip[hidden] { display: none; }
.preview-strip button { background: transparent; width: 44px; height: 44px; display: grid; place-items: center; border: 0; cursor: pointer; color: #eec9af; flex: none; }
.preview-strip button:focus-visible, .machine-strip a:focus-visible { outline-offset: -4px; }
.audio-envelope {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  color: #778384;
}
.audio-envelope::after {
  content: "";
  position: absolute;
  left: clamp(0px, var(--progress, 0%), calc(100% - 2px));
  top: 22%;
  bottom: 22%;
  width: 2px;
  border-radius: 1px;
  background: #ffdab9;
  pointer-events: none;
}
.preview-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  touch-action: pan-y;
}
.preview-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px;
  height: 100%;
  border: 0;
}
.preview-seek::-moz-range-thumb { width: 1px; height: 100%; border: 0; }
.audio-envelope:focus-within { outline: 2px solid #edc9ae; outline-offset: 1px; border-radius: 2px; }
.audio-envelope:hover::after, .audio-envelope:focus-within::after { width: 3px; box-shadow: 0 0 .55rem #f0b08b80; }
.audio-envelope svg { width: 100%; height: 1.45rem; display: block; pointer-events: none; }
.audio-envelope .elapsed { color: #f2c0a2; clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0); }
.record-time { font-variant-numeric: tabular-nums; color: #d0dad8; white-space: nowrap; }
.system-stage { position: relative; background: #111c20; }
.system-object { background: radial-gradient(ellipse at 50% 79%, #27404a 0, #152226 47%, #11191c 89%); isolation: isolate; }
.system-object { container-type: size; display: grid; place-items: center; overflow: hidden; }
.system-object > .assembly-stack { position: absolute; width: min(88%, 112cqh); aspect-ratio: 900 / 780; }
.project-link--card::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-link--card:focus-visible::after { outline: 2px solid var(--project-accent); outline-offset: -3px; }
.system-stage .sys-motion-toggle { z-index: 3; }
.machine-strip a { position: relative; z-index: 2; }
.machine-strip { flex-wrap: wrap; gap: .1rem clamp(.8rem, 2vw, 2.6rem); background: #121c1f; }
.machine-strip a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; color: #e6f0ed; text-decoration: none; }
.machine-strip a > span:last-child { font-family: var(--omega-sans); color: #bbcac9; }
.host-dot { width: .45em; height: .45em; background: #9bc5cc; }
.machine-strip a + a .host-dot { background: #d9ae87; }
.project-body { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: .8rem; padding: clamp(1.15rem, 2.1vw, 2.5rem); border-top: 1px solid #354448; }
.project-heading p { margin: 0 0 .5rem; color: var(--project-accent); font: .78rem/1.4 var(--omega-mono); }
.project h3 { font-size: clamp(1.9rem, 2.7vw, 3.05rem); }
.project-detail { max-inline-size: min(100%,48ch); overflow-wrap: break-word; margin: 0; font-size: clamp(.95rem,1.08vw,1.12rem); line-height: 1.5; color: #c1cccc; }
.project-link { display: inline-flex; align-items: center; text-decoration-line: underline; min-height: 44px; font-weight: 580; color: #f2f5ef; text-decoration-color: #6e8385; text-underline-offset: .38em; }
.home-contact { background: var(--home-field); }
.home-contact-layout { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem; padding-block: clamp(2.5rem, 4.8vw, 5rem); }
.home-contact-layout p { color: var(--home-soft); margin: .7rem 0 0; }
.home-contact-address a { font-size: clamp(1.15rem, 1.9vw, 2rem); min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: .27em; }
.home-contact-address p { font-size: .85rem; }
@media (hover:hover) {
  .studio-gate:hover { border-color: var(--gate-accent); }
  .project-link:is(:hover, :focus-visible), .machine-strip a:hover { text-decoration: underline; text-decoration-color: var(--project-accent); }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .gate-art img { transition: transform .5s cubic-bezier(.22,.72,.18,1); }
  .studio-gate:hover .gate-art img { transform: scale(1.035); }
}
@keyframes studio-record-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: no-preference) {
  .edition-disc, .platter-label { animation: studio-record-turn 8s linear infinite paused; }
  #work-sound[data-playing="true"]:not([data-offscreen]) :is(.edition-disc, .platter-label) { animation-play-state: running; }
  .edition-platter, .edition-cover { transition: transform .72s cubic-bezier(.22,.72,.18,1); }
  .record-edition::before { transition: opacity .75s ease; }
  .project--record[data-playing="true"] .edition-platter { transform: translateX(11%); }
  .project--record[data-playing="true"] .edition-cover { transform: translateX(-3%) rotate(-5deg); }
}
@media (hover: hover) {
  .record-edition:enabled:hover { box-shadow: inset 0 0 0 1px #a88978; }
  .project--system:has(.project-link--card:hover) { border-color: var(--project-accent); }
}
@media (forced-colors: active) {
  .audio-envelope { color: GrayText; }
  .audio-envelope .elapsed { color: Highlight; }
  .audio-envelope::after { background: Highlight; }
  .audio-envelope:focus-within { outline-color: Highlight; }
}
@media (max-width: 62rem) and (orientation:portrait) {
  .studio-gates { grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(2,minmax(min-content,1fr)) auto; }
}
@media (max-width: 48rem) {
  .work-duo { grid-template-columns: minmax(0,1fr); }
  .home-intro p { max-width: 38ch; }
}
@media (max-width: 38rem) {
  .studio-opening { grid-template-rows: auto minmax(min-content,1fr); padding-block: 1.2rem; gap: 1rem; }
  .home-intro { align-items: start; gap: .5rem; }
  .home-intro p { max-width: 36ch; font-size: .9rem; }
  .studio-gates { grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(2,minmax(min-content,1fr)) auto; gap: .65rem; }
  .studio-gate:not(.studio-gate--work) { grid-template-rows: minmax(6.3rem,1fr) auto; }
  .gate-art { min-height: 6.3rem; }
  .gate-info { padding: .65rem .9rem; }
  .gate-copy strong { font-size: 1.45rem; }
  .gate-copy > span { margin-top: .16rem; font-size: .8rem; }
  .studio-gate--work { grid-template-columns: 3.3rem 1fr; }
  .studio-gate--work .gate-copy { display: block; }
  .studio-gate--work .gate-copy strong { font-size: 1rem; }
  .studio-gate--work .gate-copy > span { font-size: .75rem; }
  .preview-strip, .machine-strip { font-size: .71rem; gap: .5rem; }
}
@media (forced-colors: active) {
  .studio-gate, .project { border: 1px solid LinkText; }
  .gate-info, .project-body, .machine-strip, .preview-strip { background: Canvas; }
}

/* Keep both project captions and their links within reach on low, wide screens. */
@media (min-width: 48.01rem) and (orientation: landscape) and (max-height: 52rem) {
  .home-work { padding-block: clamp(1.25rem, 3.5vh, 2.25rem); }
  .home-work h2 { margin-block-end: clamp(.85rem, 2vh, 1.4rem); }
  .project-body { padding-block: clamp(.9rem, 2.7vh, 1.45rem); gap: .6rem; }
}
@media (min-width: 38.01rem) and (max-height: 32rem) and (orientation: landscape) {
  .studio-opening { padding-block: .75rem; gap: .75rem; }
  .home-intro h1 { font-size: 1.75rem; }
  .studio-gate:not(.studio-gate--work) .gate-art { min-height: 4rem; }
  .gate-info { padding-block: .55rem; }
  .gate-copy strong { font-size: 1.25rem; }
  .gate-copy > span { margin-block-start: .15em; }
}
