/* Glass: an optics atelier one-pager.
   One ground, one signal. Frost appears in exactly two places:
   the lens plate and the nav rail. Everything else is quiet. */

:root {
  --tank: #0D1B1E;
  --depth: #14262A;
  --bone: #E9EFE9;
  --amber: #D9A441;
  --serif-fallback: Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--tank);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--tank);
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip:focus { left: 0; z-index: 100; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Nav rail: frost instance two */

.rail {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 1.5rem;
  background: rgba(13, 27, 30, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233, 239, 233, 0.14);
}

.wordmark {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.rail nav {
  margin-left: auto;
  display: flex;
  gap: 1.8rem;
}
.rail nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: rgba(233, 239, 233, 0.75);
}
.rail nav a:hover { color: var(--bone); }

/* The light room */

.room {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.field {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(46rem 34rem at 24% 20%, rgba(233, 239, 233, 0.10), transparent 68%),
    radial-gradient(56rem 40rem at 76% 78%, rgba(217, 164, 65, 0.14), transparent 70%),
    radial-gradient(70rem 52rem at 55% 45%, rgba(30, 50, 55, 0.55), transparent 75%);
}

.stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.stage > * { min-width: 0; }

.pitch h1 {
  font-weight: 500;
  font-size: clamp(2.6rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.pitch p {
  margin-top: 1.5rem;
  max-width: 40ch;
  color: rgba(233, 239, 233, 0.78);
}

.pitch .cta {
  margin-top: 2rem;
}

/* The lens plate: frost instance one */

.plate {
  justify-self: center;
  text-align: center;
}

.lens {
  position: relative;
  width: min(26rem, 66vw);
  max-width: 100%;
  aspect-ratio: 0.9;
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  background: linear-gradient(160deg, rgba(233, 239, 233, 0.12), rgba(233, 239, 233, 0.03));
  -webkit-backdrop-filter: blur(16px) saturate(150%) brightness(1.15);
  backdrop-filter: blur(16px) saturate(150%) brightness(1.15);
  border: 1px solid rgba(233, 239, 233, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(233, 239, 233, 0.45),
    inset 0 -30px 60px rgba(13, 27, 30, 0.4),
    0 34px 90px rgba(0, 0, 0, 0.35);
}

.lens::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(9rem 6rem at 28% 16%, rgba(233, 239, 233, 0.5), transparent 60%);
  pointer-events: none;
}

.lens::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(233, 239, 233, 0.14);
  pointer-events: none;
}

.plate figcaption {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: rgba(233, 239, 233, 0.72);
}

.plate figcaption span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.45rem;
}

/* CTA */

.cta {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--amber);
  border-bottom: 1px solid rgba(217, 164, 65, 0.5);
  padding-bottom: 0.15rem;
  transition: border-color 160ms ease, color 160ms ease;
}
.cta:hover {
  color: #E6BC6B;
  border-color: #E6BC6B;
}

.cta-line { margin-top: 1.8rem; }

/* Commissions index */

.index {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.5rem;
}

.index h2, .studio h2 {
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 2rem;
}

.rows {
  list-style: none;
  padding: 0;
}

.rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(233, 239, 233, 0.14);
}
.rows li:last-child {
  border-bottom: 1px solid rgba(233, 239, 233, 0.14);
}

.rows .name {
  font-size: 1.25rem;
  font-weight: 500;
}

.rows .kind {
  color: rgba(233, 239, 233, 0.66);
}

.rows .year {
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

/* Studio prose */

.studio {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.studio p {
  max-width: 52ch;
  color: rgba(233, 239, 233, 0.82);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Footer */

.foot {
  border-top: 1px solid rgba(233, 239, 233, 0.14);
  padding: 1.6rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.foot p { font-size: 0.95rem; }
.foot .fine { color: rgba(233, 239, 233, 0.55); font-size: 0.85rem; }

/* Motion: the light field drifts once, very slowly */

@media (prefers-reduced-motion: no-preference) {
  .field { animation: drift 70s ease-in-out infinite alternate; }
  @keyframes drift {
    from { transform: translate3d(-2%, -1%, 0); }
    to { transform: translate3d(2%, 2%, 0); }
  }
  .pitch, .plate {
    animation: surface 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .plate { animation-delay: 140ms; }
  @keyframes surface {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}

/* Reduced transparency: solid glass, no blur dependency */

@media (prefers-reduced-transparency: reduce) {
  .rail {
    background: var(--depth);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .lens {
    background: var(--depth);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: rgba(233, 239, 233, 0.5);
  }
}

/* Mobile */

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 4rem;
    text-align: left;
  }
  .plate { justify-self: start; text-align: left; }
  .lens { width: min(20rem, 62vw); }
  .rows li {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1.5rem;
  }
  .rows .kind { grid-column: 1; }
  .rows .year { grid-column: 2; grid-row: 1; }
}
