/* =========================================================
   FLUXAA — shared design system
   Luxe-minimal: ivory ink on charcoal, Fraunces + Hanken
   ========================================================= */

:root {
  --bg: #0c0d10;
  --bg-2: #101115;
  --card: #13151a;
  --ink: #f4f1ea;
  --muted: #8f8f96;
  --line: rgba(255, 255, 255, .12);
  --accent: #4d9bff;
  --display: "Fraunces", serif;
  --body: "Hanken Grotesk", sans-serif;
  --maxw: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
}

img {
  display: block;
}

/* ---- ambience (drifting spotlight) ---- */
.amb {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 78% 30%, rgba(77, 155, 255, .18), transparent 60%),
    radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0, 0, 0, .45));
}

.spot {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 68vw;
  height: 68vw;
  left: 50%;
  top: 22%;
  background: radial-gradient(
    circle,
    rgba(77, 155, 255, .75),
    rgba(77, 155, 255, .34) 36%,
    rgba(77, 155, 255, .12) 58%,
    transparent 74%
  );
  filter: blur(18px);
  will-change: transform;
  animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
  0% {
    transform: translate(-84%, -58%) scale(1);
  }

  50% {
    transform: translate(-12%, -22%) scale(1.25);
  }

  100% {
    transform: translate(-84%, -58%) scale(1);
  }
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 44px;
}

section {
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 24px;
  }
}

/* ---- navigation ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 28px;
}

.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: .005em;
  text-decoration: none;
}

.brand .reg {
  font-size: 11px;
  vertical-align: super;
  color: var(--muted);
}

.navlinks {
  display: flex;
  gap: 42px;
}

.navlinks a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .62;
  transition: opacity .25s;
}

.navlinks a:hover,
.navlinks a.active {
  opacity: 1;
}

.navcta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #15161a;
  background: var(--ink);
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s;
}

.navcta:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: .3s;
}

.nav-toggle span:nth-child(1) {
  top: 3px;
}

.nav-toggle span:nth-child(2) {
  top: 10px;
}

.nav-toggle span:nth-child(3) {
  top: 17px;
}

.rule {
  height: 1px;
  background: var(--line);
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 11, 14, .97);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--display);
  font-size: 30px;
  text-decoration: none;
  opacity: .85;
}

.mobile-menu .close {
  position: absolute;
  top: 30px;
  right: 28px;
  font-size: 30px;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 880px) {
  .navlinks,
  nav .navcta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ---- shared section heading ---- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.eyebrow .ix {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
}

.eyebrow .lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dash {
  flex: 0 0 46px;
  height: 1px;
  background: var(--line);
}

h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.018em;
}

h2 em {
  font-style: italic;
  font-weight: 400;
}

/* ---- buttons / links ---- */
.primary {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #15161a;
  background: var(--ink);
  padding: 18px 32px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: transform .3s;
}

.primary:hover {
  transform: translateY(-2px);
}

.textlink {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(77, 155, 255, .5);
  transition: gap .25s, border-color .25s;
}

.textlink:hover {
  gap: 14px;
  border-color: var(--accent);
}

/* ---- hero (home) ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 88px;
  align-items: center;
  padding: 110px 0 130px;
}

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

.hero .copy {
  display: block;
  max-width: 620px;
}

.hero .eyebrow {
  margin-bottom: 42px;
}

h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 6.6vw, 92px);
  line-height: 1.08;
  letter-spacing: -.018em;
  margin-bottom: 34px;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 44px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}

.meta span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta .sep {
  opacity: .4;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 64px 0 88px;
  }

  .hero .eyebrow {
    margin-bottom: 32px;
  }

  h1 {
    margin-bottom: 28px;
  }

  .sub {
    font-size: 16.5px;
    line-height: 1.7;
    margin-bottom: 36px;
  }

  .actions {
    gap: 22px;
    margin-bottom: 52px;
  }

  .meta {
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 48px 0 72px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 60px);
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary {
    width: 100%;
    text-align: center;
  }
}

/* ---- lit figure ---- */
.figure {
  position: relative;
}

.halo {
  position: absolute;
  inset: -12% -8% -4% -8%;
  z-index: 0;
  background: radial-gradient(60% 55% at 50% 42%, rgba(77, 155, 255, .16), transparent 70%);
  filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: .7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  box-shadow:
    0 50px 110px -40px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(255, 255, 255, .06);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s ease;
}

.figure:hover img {
  transform: scale(1.03);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 36%, rgba(255, 255, 255, .13) 48%, rgba(255, 255, 255, .03) 54%, transparent 66%);
  transform: translateX(-130%);
  animation: glint 8s ease-in-out infinite 2s;
}

@keyframes glint {
  0%,
  62% {
    transform: translateX(-130%);
  }

  82%,
  100% {
    transform: translateX(130%);
  }
}

.floor {
  position: absolute;
  z-index: 0;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 74%;
  height: 54px;
  background: radial-gradient(ellipse, rgba(77, 155, 255, .14), transparent 72%);
  filter: blur(9px);
}

.caption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding: 0 2px;
}

.caption .c-l {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
}

.caption .c-r {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- range / cards ---- */
.range {
  padding: 96px 0;
}

.range .head {
  max-width: 640px;
  margin-bottom: 54px;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 155, 255, .4);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
}

.card:hover .ph img {
  transform: scale(1.04);
}

.ph {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0b0c0f;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 13, 16, .6), transparent 38%);
}

.c-body {
  padding: 28px 28px 30px;
}

.c-body h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -.01em;
  margin-bottom: 9px;
}

.c-body .lead {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.spec {
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---- how it works ---- */
.how {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.how .head {
  max-width: 640px;
  margin-bottom: 60px;
}

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

.step {
  padding: 0 36px;
  border-left: 1px solid var(--line);
}

.step:first-child {
  padding-left: 0;
  border-left: none;
}

.step .n {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 46px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 22px;
}

.step h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 10px;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step {
    padding: 0 0 0 24px;
  }
}

/* ---- spaces ---- */
.spaces {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.spaces .head {
  max-width: 640px;
  margin-bottom: 54px;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sp {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sp .t {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

.sp h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 12px;
}

.sp p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .sp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- page header (subpages) ---- */
.page-head {
  padding: 72px 0 0;
}

.page-head h1 {
  font-size: clamp(44px, 6vw, 80px);
  margin-bottom: 24px;
}

.page-head .intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

/* ---- product detail (displays) ---- */
.product {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

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

.product.flip .p-media {
  order: 2;
}

.p-media {
  position: relative;
}

.p-media .frame {
  aspect-ratio: 4 / 5;
}

.p-info h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.p-info .desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 460px;
}

.spec-table {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-bottom: 32px;
}

.spec-table .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}

.spec-table .k {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-table .v {
  font-size: 15px;
  text-align: right;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product.flip .p-media {
    order: 0;
  }
}

/* ---- cta band ---- */
.band {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.band h2 {
  font-size: clamp(38px, 6vw, 76px);
  margin-bottom: 14px;
}

.band p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ---- contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 72px;
  padding: 64px 0 110px;
}

.contact-aside .blk {
  margin-bottom: 40px;
}

.contact-aside h4 {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.contact-aside p,
.contact-aside a {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
}

.contact-aside a:hover {
  color: var(--accent);
}

form .field {
  margin-bottom: 26px;
}

form label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

form input,
form select,
form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  padding: 10px 0;
  transition: border-color .25s;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form select {
  appearance: none;
  cursor: pointer;
}

form select option {
  background: var(--bg-2);
  color: var(--ink);
}

form textarea {
  resize: vertical;
  min-height: 90px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

form .primary {
  margin-top: 8px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ---- footer ---- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 64px 0 40px;
}

.foot .b {
  font-family: var(--display);
  font-size: 24px;
  margin-bottom: 14px;
}

.foot .b .reg {
  font-size: 11px;
  vertical-align: super;
  color: var(--muted);
}

.foot .tag {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
}

.foot h5 {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.foot a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  opacity: .8;
  transition: opacity .2s;
}

.foot a:hover {
  opacity: 1;
}

footer .copy {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

@media (max-width: 760px) {
  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 560px) {
  footer .copy {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---- scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.d1 {
  transition-delay: .08s;
}

.d2 {
  transition-delay: .16s;
}

.d3 {
  transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
  .spot,
  .halo,
  .frame::after {
    animation: none;
  }

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