@font-face {
  font-family: "FreeSerif";
  src: url("../fonts/FreeSerif.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce One Light";
  src: url("../fonts/OpenSauceSans-Light.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "GlacialIndifference";
  src: url("../fonts/GlacialIndifference-Regular.woff") format("woff");
  font-display: swap;
}

:root {
  --font-brand: "FreeSerif", serif;
  --font-heading: "Open Sauce One Light", sans-serif;
  --font-body: "Open Sauce One Light", sans-serif;
  --font-ui: "Open Sauce One Light", sans-serif;
  --bg: #111111;
  --surface: #161616;
  --surface-strong: #1c1c1c;
  --text: #f2ebdc;
  --text-muted: #c8c0b3;
  --line: rgba(242, 235, 220, 0.18);
  --line-strong: rgba(242, 235, 220, 0.34);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --container: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  text-transform: lowercase;
}

.keep-uppercase,
.brand-title,
.brand-subtitle,
.headline-main,
.headline-sub {
  text-transform: uppercase;
}

.keep-brand-font,
.brand-title,
.headline-main {
  font-family: var(--font-brand);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 240;
  background: linear-gradient(90deg, rgba(242, 235, 220, 0.96), rgba(242, 235, 220, 0.44));
  box-shadow: 0 0 18px rgba(242, 235, 220, 0.35);
}

.cursor-aura {
  position: fixed;
  left: 0;
  top: 0;
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(242, 235, 220, 0.12) 0%, rgba(242, 235, 220, 0.03) 38%, rgba(242, 235, 220, 0) 68%);
  transition: opacity 280ms ease;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 88% 3%, rgba(242, 235, 220, 0.08) 0%, rgba(242, 235, 220, 0) 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.page-glow {
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.42;
  background:
    radial-gradient(circle at 20% 30%, rgba(242, 235, 220, 0.1) 0%, rgba(242, 235, 220, 0) 42%),
    radial-gradient(circle at 78% 62%, rgba(242, 235, 220, 0.07) 0%, rgba(242, 235, 220, 0) 40%);
  animation: glowDrift 18s ease-in-out infinite alternate;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2.8rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 4.4rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(11px);
  border-bottom: 1px solid transparent;
  background: rgba(17, 17, 17, 0.82);
  transition: border-color 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 1.2rem;
}

.brand {
  grid-column: 1 / span 4;
  text-decoration: none;
  display: inline-grid;
  grid-template-columns: max-content;
  grid-auto-flow: row;
  align-items: start;
  gap: 0.02rem;
  width: fit-content;
  white-space: nowrap;
}

.brand-title {
  justify-self: start;
  letter-spacing: 0.18em;
  font-size: clamp(1.59rem, 3vw, 2.13rem);
  line-height: 1;
  white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-ui);
  justify-self: end;
  letter-spacing: 0.2em;
  font-size: 0.51rem;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  color: var(--text-muted);
}

.site-nav {
  grid-column: 5 / -1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.site-nav a {
  font-family: var(--font-ui);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  grid-column: 12 / -1;
  justify-self: end;
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  display: block;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.tagline {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  line-height: 1.08;
  font-weight: 400;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7.6vw, 5.9rem);
}

.headline-main {
  display: block;
  justify-self: start;
  line-height: 0.96;
  white-space: nowrap;
}

.headline-sub {
  display: block;
  justify-self: end;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  line-height: 1;
  text-align: right;
  padding-bottom: 0;
}

@media (min-width: 681px) {
  .headline-sub {
    font-size: 1.15rem;
  }
}

#homeHeadline {
  max-width: 100%;
  display: inline-grid;
  grid-template-columns: max-content;
  grid-auto-flow: row;
  justify-items: start;
  width: fit-content;
  gap: 0.32rem;
  white-space: nowrap;
  margin: 0.36rem 0 0.7rem;
}

.hero-description {
  margin: 0;
  max-width: 61ch;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2.35vw, 1.24rem);
}

.hero-actions {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  font-family: var(--font-ui);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  border-radius: 999px;
  padding: 0.88rem 1.18rem;
  border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.button-primary {
  background: var(--text);
  color: #111;
  border-color: var(--text);
}

.button-ghost {
  background: transparent;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 540px;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease;
  will-change: transform;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
}

.hero-media-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 1rem 1.04rem;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.62);
  border: 1px solid rgba(242, 235, 220, 0.16);
}

.hero-media-title {
  margin: 0 0 0.26rem;
  font-family: var(--font-heading);
  font-size: 1.38rem;
}

.hero-media-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.section-head {
  margin-bottom: 1.8rem;
  display: grid;
  gap: 0.8rem;
}

h2 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
}

.section-head > p:last-child {
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  width: 100%;
  grid-auto-flow: dense;
  grid-auto-rows: 10px;
}

.works .container {
  display: block;
}

.works .section-head {
  position: static;
  margin-bottom: 1.8rem;
}

.works .section-head > p:last-child {
  max-width: 62ch;
}

.work-card {
  grid-column: span 4;
  grid-row: span 30;
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
  background: var(--surface-strong);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
  will-change: transform;
}

.work-card:nth-child(6n + 1) {
  grid-row: span 40;
}

.work-card:nth-child(6n + 2) {
  grid-row: span 26;
}

.work-card:nth-child(6n + 3) {
  grid-row: span 34;
}

.work-card:nth-child(6n + 4) {
  grid-row: span 24;
}

.work-card:nth-child(6n + 5) {
  grid-row: span 36;
}

.work-card:nth-child(6n + 6) {
  grid-row: span 28;
}

.works-grid > .work-card:last-child:nth-child(6n + 1) {
  grid-row: span 24;
}

.works-grid > .work-card:last-child:nth-child(6n + 5) {
  grid-row: span 30;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.74) 100%);
}

.work-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 0.24rem;
  padding: 1rem;
}

.work-category {
  font-family: var(--font-ui);
  text-transform: none;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: rgba(242, 235, 220, 0.86);
}

.work-title {
  font-family: var(--font-heading);
  text-transform: none;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--text);
}

.work-card:hover img {
  transform: scale(1.03);
}

.work-card:hover {
  filter: brightness(1.04);
}

.works-grid > a.work-card {
  text-decoration: none;
  color: inherit;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1rem, 4vw, 2.4rem);
  align-items: stretch;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(1rem, 4vw, 2.4rem);
  align-items: stretch;
}

.product-detail-main {
  gap: 1.2rem;
}

.product-title {
  max-width: 14ch;
  font-size: clamp(2rem, 4.9vw, 4rem);
}

.product-summary-card {
  align-content: start;
  height: 100%;
}

.product-detail-media {
  min-height: 540px;
  position: sticky;
  top: 108px;
}

.product-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.product-actions .button {
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  border-radius: 10px;
  padding: 0.62rem 0.9rem;
}

.product-gallery-section .section-head {
  margin-bottom: 1.2rem;
}

.product-gallery {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-gallery img {
  width: 100%;
  height: clamp(280px, 40vh, 520px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.about-main {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  display: grid;
  gap: 1rem;
}

.about-main p {
  margin: 0;
  color: var(--text-muted);
}

.about-lead {
  color: var(--text);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
}

.about-media {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  min-height: 500px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 4vw, 2.4rem);
}

.studio-main {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  display: grid;
  gap: 1rem;
}

.studio-main p {
  margin: 0;
  color: var(--text-muted);
}

.studio-lead {
  color: var(--text);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
}

.studio-principles {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.studio-principles h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
}

.studio-principles ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.studio-principles li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.studio-principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--text);
}

.contact-inner {
  display: grid;
  gap: 1.2rem;
}

.contact-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.contact-card {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1rem;
  display: grid;
  gap: 0.34rem;
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #1b1b1b;
}

.contact-card span {
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.contact-card strong {
  font-weight: 400;
  font-size: 1.02rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 2.2vw, 1.6rem);
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.8);
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100% - 2.4rem));
  max-height: 86vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #131313;
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.modal-close {
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.5rem 0.82rem;
  border: 1px solid var(--line);
  background: #1f1f1f;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
  display: inline-flex;
}

.modal-category {
  margin: 1rem 0 0.44rem;
  font-family: var(--font-ui);
  text-transform: none;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.modal-title {
  text-transform: none;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

.modal-details {
  margin: 0.65rem 0 1rem;
  max-width: 68ch;
  color: var(--text-muted);
}

.modal-gallery {
  display: grid;
  gap: 0.84rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.modal-gallery img {
  width: 100%;
  height: clamp(230px, 34vh, 390px);
  object-fit: contain;
  background: #0e0e0e;
  border: 1px solid var(--line);
  padding: 0.42rem;
  border-radius: 12px;
}

.load-status {
  margin: 0;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.92);
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.load-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-note {
  margin: 0;
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
}

.reveal-target {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-target.is-visible {
  opacity: 1;
  transform: none;
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation: none !important;
  transition: none !important;
}

.reduced-motion .cursor-aura {
  display: none;
}

@keyframes glowDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.36;
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.04);
    opacity: 0.5;
  }
}

@media (max-width: 1080px) {
  .hero-layout,
  .about-layout,
  .product-detail-layout,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 460px;
  }

  .works-grid {
    grid-auto-rows: 10px;
  }

  .work-card {
    grid-column: span 6;
    grid-row: span 30;
  }

  .work-card:nth-child(4n + 1) {
    grid-row: span 36;
  }

  .work-card:nth-child(4n + 2) {
    grid-row: span 25;
  }

  .work-card:nth-child(4n + 3) {
    grid-row: span 32;
  }

  .work-card:nth-child(4n + 4) {
    grid-row: span 28;
  }

  .works-grid > .work-card:last-child:nth-child(4n + 1) {
    grid-row: span 30;
  }

  .works-grid > .work-card:last-child:nth-child(4n + 3) {
    grid-row: span 28;
  }

  .product-detail-media {
    position: static;
  }

  .product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand,
  .site-nav,
  .menu-toggle {
    grid-column: auto;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 84px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(17, 17, 17, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 3.5rem 0;
  }

  .container {
    width: min(calc(100% - 1.6rem), var(--container));
  }

  .hero-media {
    min-height: 400px;
  }

  .about-media {
    min-height: 380px;
  }

  .product-detail-media {
    min-height: 380px;
  }

  .works-grid {
    grid-auto-rows: auto;
    gap: 0.84rem;
  }

  .work-card {
    grid-column: span 12;
    grid-row: auto;
    min-height: 300px;
  }

  .work-card:nth-child(n) {
    grid-row: auto;
  }

  .modal-panel {
    width: calc(100% - 1.2rem);
    max-height: 92vh;
    padding: 0.92rem;
    border-radius: var(--radius-md);
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-gallery img {
    height: clamp(210px, 42vh, 330px);
    padding: 0.32rem;
  }

  .product-gallery img {
    height: clamp(210px, 42vh, 360px);
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
  }

  .cursor-aura {
    display: none;
  }
}
