:root {
  color-scheme: dark;
  --ink: #111116;
  --panel: #191920;
  --panel-light: #22222b;
  --paper: #f5f1ec;
  --muted: #b7b3b2;
  --coral: #fa8072;
  --gold: #d7ad62;
  --blue: #39b9e8;
  --line: rgba(255,255,255,.13);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 20; padding: .7rem 1rem; background: var(--coral); color: #111; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 78px; padding: 12px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 5; background: rgba(17,17,22,.94); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: .01em; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.brand b { color: var(--coral); font-weight: 650; }
.site-nav { display: flex; gap: clamp(22px, 4vw, 54px); align-items: center; }
.site-nav a { color: #d6d1d0; font-size: .95rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--coral); }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--paper); padding: 7px 12px; }
.hero { min-height: min(760px, calc(100svh - 78px)); position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; padding: clamp(70px, 11vw, 150px) clamp(24px, 10vw, 150px); }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,17,.98) 0%, rgba(12,12,17,.90) 34%, rgba(12,12,17,.32) 100%), linear-gradient(0deg, var(--ink), transparent 34%); }
.hero-art { position: absolute; z-index: -2; inset: 0; background: url("assets/dorian-orbit.webp") center 42% / cover no-repeat; opacity: .72; }
.hero-copy { max-width: 690px; }
.eyebrow { color: var(--coral); text-transform: uppercase; font-size: .76rem; font-weight: 750; letter-spacing: .19em; margin: 0 0 14px; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-family: "Audiowide", "Arial Black", sans-serif; font-size: clamp(3rem, 7.1vw, 6.2rem); font-weight: 750; margin-bottom: 24px; }
h1 span { color: var(--coral); }
.hero-intro { max-width: 570px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: #d3d0d1; margin: 0 0 32px; }
.button { display: inline-flex; align-items: center; gap: 22px; padding: 12px 18px; font-weight: 750; border-radius: 3px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-coral { background: var(--coral); color: #141116; }
.button-coral:hover { background: #ff9a8e; }
.hero-mark { position: absolute; right: 8%; top: 19%; width: clamp(100px, 17vw, 240px); aspect-ratio: 1; border: 1px solid rgba(250,128,114,.4); border-radius: 50%; display: grid; place-items: center; color: rgba(250,128,114,.5); font: 800 clamp(2rem, 7vw, 6.2rem)/1 "Audiowide", sans-serif; transform: rotate(-15deg); }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(250,128,114,.24); border-radius: 50%; }
.hero-mark::after { inset: 25%; }
.hero-mark i { position: absolute; height: 1px; width: 140%; background: rgba(250,128,114,.3); transform: rotate(37deg); }
.hero-caption { position: absolute; bottom: 24px; right: clamp(24px, 5vw, 76px); color: #aaa5a7; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.section-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.projects { padding-top: 104px; padding-bottom: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section-heading h2, .studio h2 { font: 600 clamp(2.3rem, 4vw, 3.5rem)/1.05 "Forum", Georgia, serif; margin: 0; }
.section-heading > p { color: var(--muted); max-width: 260px; margin: 0 0 4px; }
.project { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr); gap: clamp(28px, 5vw, 68px); align-items: center; margin: 0 0 23px; }
.project-byzantine { margin-top: 86px; }
.project-image { position: relative; overflow: hidden; border-radius: 4px; background: #081321; border: 1px solid var(--line); }
.project-image::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.project-image img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.project-image:hover img { transform: scale(1.035); }
.image-label { position: absolute; left: 20px; bottom: 16px; z-index: 1; font: 500 clamp(1.2rem, 2.3vw, 2rem)/1.1 "Forum", Georgia, serif; }
.project-copy { padding: 12px 0; }
.project-copy h3 { font: 600 clamp(2.3rem, 4vw, 3.4rem)/1.02 "Forum", Georgia, serif; margin-bottom: 18px; }
.project-copy p:not(.eyebrow) { color: #c3bec0; margin: 0 0 20px; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--paper); border-bottom: 1px solid var(--coral); padding: 0 0 6px; font-weight: 700; }
.text-link span { color: var(--coral); }
.project-space .project-copy .eyebrow { color: var(--blue); }
.project-byzantine .project-copy .eyebrow { color: var(--gold); }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.gallery-byzantine { --gallery-accent: var(--gold); }
.gallery-space { --gallery-accent: var(--blue); }
.gallery-item { display: block; padding: 0; background: var(--panel); border: 1px solid color-mix(in srgb, var(--gallery-accent), transparent 62%); border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; transition: transform .35s, filter .35s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); filter: brightness(1.1); }
.gallery-item:focus-visible { outline: 2px solid var(--gallery-accent); outline-offset: 3px; }
.gallery-byzantine + .project { margin-top: 90px; }
.studio { display: grid; grid-template-columns: 190px 1fr; gap: clamp(30px, 7vw, 92px); align-items: center; padding-top: 54px; padding-bottom: 100px; border-top: 1px solid var(--line); }
.studio-logo { background: var(--coral); border-radius: 50%; overflow: hidden; width: 170px; aspect-ratio: 1; }
.studio-logo img { width: 100%; height: 100%; object-fit: cover; }
.studio h2 { margin-bottom: 16px; }
.studio div:last-child > p:last-child { color: var(--muted); max-width: 650px; margin-bottom: 0; }
.site-footer { min-height: 88px; border-top: 1px solid var(--line); padding: 22px clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; }
.footer-brand { color: var(--paper); font-weight: 750; }
.site-footer a:last-child { color: var(--coral); }
.lightbox { width: min(94vw, 1400px); max-width: unset; max-height: 92vh; border: 1px solid rgba(250,128,114,.55); padding: 12px; background: #101015; color: white; }
.lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(5px); }
.lightbox img { max-height: calc(92vh - 24px); width: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 15px; right: 15px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; width: 38px; height: 38px; background: rgba(0,0,0,.65); color: white; cursor: pointer; font-size: 1.5rem; line-height: 1; }
@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand { font-size: .9rem; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 24px 20px; background: #17171d; border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: grid; gap: 14px; }
  .hero { min-height: 640px; padding: 100px 26px 120px; }
  .hero::after { background: linear-gradient(90deg, rgba(12,12,17,.96), rgba(12,12,17,.62)), linear-gradient(0deg, var(--ink), transparent 40%); }
  .hero-art { background-position: 56% center; }
  .hero-mark { right: 10%; top: 8%; opacity: .65; }
  .section-wrap { width: min(100% - 36px, 600px); }
  .projects { padding-top: 74px; padding-bottom: 65px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading > p { margin-top: 13px; }
  .project { grid-template-columns: 1fr; gap: 14px; }
  .project-byzantine { margin-top: 64px; }
  .project-copy { padding: 12px 4px 20px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 9px; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item img { height: 135px; }
  .gallery-item.wide img { height: 175px; }
  .studio { grid-template-columns: 82px 1fr; gap: 20px; padding: 36px 0 65px; }
  .studio-logo { width: 82px; }
  .site-footer { flex-wrap: wrap; font-size: .8rem; }
}

/* ---------- Instagram-style carousels ---------- */
:root { --sand: #e0a15a; }
.project-space { --accent: var(--blue); }
.project-byzantine { --accent: var(--gold); }
.project-arena { --accent: var(--sand); margin-top: 86px; }
.project-arena .project-copy .eyebrow { color: var(--sand); }
.carousel { outline: none; }
.carousel:focus-visible { box-shadow: 0 0 0 2px var(--accent, var(--coral)); }
.carousel::after { pointer-events: none; z-index: 1; }
.carousel-track {
  list-style: none; margin: 0; padding: 0; display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide-zoom { display: block; width: 100%; padding: 0; border: 0; background: #0a0a0f; cursor: zoom-in; }
.carousel .slide-zoom img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.project-image.carousel:hover img { transform: none; }
.carousel-btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: #111; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; padding-bottom: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,.35); opacity: 0; transition: opacity .2s, background .2s;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel:hover .carousel-btn, .carousel:focus-within .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: #fff; }
.carousel-btn:disabled { opacity: 0 !important; pointer-events: none; }
.carousel-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(17,17,22,.72); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .04em;
}
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s, transform .2s; }
.dot[aria-current="true"] { background: var(--accent, var(--coral)); transform: scale(1.3); }
.carousel .image-label { z-index: 2; bottom: 34px; pointer-events: none; }
.swipe-hint { font-size: .85rem; color: var(--muted) !important; }
/* lightbox navigation */
.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.65); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
}
.lightbox-nav.prev { left: 15px; }
.lightbox-nav.next { right: 15px; }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--coral); color: #111; }
.lightbox-nav[hidden] { display: none; }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; background: rgba(0,0,0,.65); padding: 3px 10px; border-radius: 999px; font-size: .8rem; }
@media (hover: none) { .carousel-btn { opacity: 1; width: 34px; height: 34px; font-size: 1.4rem; } }
@media (max-width: 760px) {
  .project-arena { margin-top: 64px; }
  .carousel .image-label { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
