@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #0b0d0c;
  --surface: #121513;
  --surface-2: #181c19;
  --line: rgba(255, 255, 255, .12);
  --muted: #929a94;
  --paper: #f2f5ef;
  --lime: #baff63;
  --mint: #66f6c3;
  font-family: 'DM Sans', sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--paper); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-logo { display: block; width: 132px; height: auto; }
.brand-product { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font: 600 9px/1 'DM Sans'; letter-spacing: .13em; text-transform: uppercase; }
.secure-label, .access-state, .client-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.secure-label span, .access-state span, .client-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(186,255,99,.1); }

.gallery-page { overflow: hidden; }
.gallery-intro { position: relative; min-height: 540px; padding: 95px 4vw 38px; border-bottom: 1px solid var(--line); }
.gallery-intro::after { content: ''; position: absolute; top: 42px; right: -110px; width: 430px; height: 430px; border: 1px solid rgba(186,255,99,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(102,246,195,.025), 0 0 0 110px rgba(186,255,99,.018); pointer-events: none; }
.eyebrow { margin: 0 0 18px; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.gallery-intro h1 { max-width: 920px; margin: 0; font: 600 clamp(64px, 10vw, 142px)/.79 'Space Grotesk'; letter-spacing: -.075em; }
.gallery-intro h1 em { color: transparent; -webkit-text-stroke: 1px rgba(242,245,239,.65); font-style: normal; }
.intro-copy { max-width: 530px; margin: 38px 0 65px; color: #b8bebb; font-size: clamp(16px, 2vw, 20px); line-height: 1.55; }
.intro-rule { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.clients-section { padding: 88px 4vw 120px; background: #eef2eb; color: #0c100d; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; max-width: 1440px; margin: 0 auto 42px; }
.section-heading .eyebrow { color: #367c5d; }
.section-heading h2 { margin: 0; font: 600 clamp(46px, 7vw, 82px)/.9 'Space Grotesk'; letter-spacing: -.055em; }
.section-heading > p { max-width: 380px; justify-self: end; margin: 0; color: #677069; line-height: 1.6; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1440px; margin: 0 auto; }
.client-card { min-height: 370px; background: var(--surface); color: var(--paper); overflow: hidden; }
.client-card button { width: 100%; height: 100%; min-height: 370px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; display: grid; grid-template: auto 1fr auto / 1fr; transition: transform .25s ease, background .25s ease; }
.client-card button:hover { background: var(--surface-2); transform: translateY(-4px); }
.client-number { padding: 22px 25px; border-bottom: 1px solid var(--line); color: var(--client-accent); font: 600 11px 'Space Grotesk'; letter-spacing: .1em; }
.client-card-body { padding: 40px 25px; }
.client-state { margin-bottom: 33px; }
.client-state span { background: var(--client-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--client-accent) 12%, transparent); }
.client-card h3 { margin: 0 0 14px; font: 600 clamp(35px, 4vw, 58px)/.96 'Space Grotesk'; letter-spacing: -.05em; }
.client-card p { max-width: 520px; margin: 0; color: #aeb5b0; font-size: 15px; line-height: 1.55; }
.client-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.open-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--client-accent); color: #111; font-size: 20px; transition: transform .25s ease; }
.client-card button:hover .open-arrow { transform: rotate(45deg); }
.loading-card { grid-column: 1 / -1; min-height: 220px; padding: 30px; border: 1px solid #cbd2cb; color: #69716b; }
.loading-card.error { color: #9d443d; }

.pin-dialog { width: min(500px, calc(100vw - 28px)); padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 0; background: #121513; color: var(--paper); box-shadow: 0 32px 100px rgba(0,0,0,.65); }
.pin-dialog::backdrop { background: rgba(4,7,5,.78); backdrop-filter: blur(8px); }
.pin-dialog form { position: relative; padding: 48px; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; font-size: 22px; }
.pin-dialog h2 { margin: 0; font: 600 48px/1 'Space Grotesk'; letter-spacing: -.05em; }
.pin-client { margin: 10px 0 35px; color: var(--muted); }
.pin-entry { position: relative; display: block; cursor: text; }
.pin-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pin-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pin-cells span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); background: #0d100e; color: var(--lime); font-size: 28px; transition: border-color .15s, background .15s; }
.pin-cells span.active { border-color: var(--lime); }
.pin-cells span.filled { background: rgba(186,255,99,.07); border-color: rgba(186,255,99,.35); }
.pin-status { min-height: 22px; margin: 15px 0 8px; color: #d5a09c; font-size: 13px; }
.unlock-button, .primary-action { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0 20px; border: 0; background: linear-gradient(100deg, var(--lime), var(--mint)); color: #101410; font-weight: 700; cursor: pointer; }
.unlock-button:disabled { cursor: not-allowed; filter: saturate(0); opacity: .38; }

.client-page { min-height: calc(100vh - 170px); padding: 85px 4vw 110px; background: #eef2eb; color: #0c100d; }
.back-link { color: var(--muted); font-size: 13px; }
.client-hero { max-width: 1440px; margin: 0 auto 64px; }
.client-hero .eyebrow { color: #367c5d; }
.client-hero h1 { margin: 0 0 18px; font: 600 clamp(62px, 10vw, 132px)/.82 'Space Grotesk'; letter-spacing: -.07em; }
.client-hero > p:not(.eyebrow) { max-width: 590px; color: #5c655f; font-size: 18px; line-height: 1.55; }
.access-state { margin-top: 30px; color: #367c5d; }
.access-state span { background: var(--client-accent); box-shadow: none; }
.preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1440px; margin: 0 auto; }
.preview-card { display: flex; min-height: 320px; padding: 30px; background: #111411; color: var(--paper); flex-direction: column; }
.preview-meta { display: flex; justify-content: space-between; color: var(--client-accent); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.preview-card h2 { max-width: 650px; margin: 55px 0 15px; font: 600 clamp(32px, 4vw, 54px)/.98 'Space Grotesk'; letter-spacing: -.05em; }
.preview-card p { max-width: 570px; margin: 0 0 35px; color: #9da49f; line-height: 1.55; }
.primary-action { width: auto; margin-top: auto; background: var(--client-accent); }

.footer { display: flex; justify-content: space-between; gap: 20px; min-height: 84px; padding: 30px 4vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .topbar { min-height: 74px; padding: 0 18px; }
  .brand-logo { width: 112px; }
  .brand-product { display: none; }
  .secure-label { font-size: 0; }
  .gallery-intro { min-height: 470px; padding: 72px 18px 28px; }
  .gallery-intro::after { width: 260px; height: 260px; right: -100px; }
  .gallery-intro h1 { font-size: clamp(57px, 20vw, 82px); }
  .intro-copy { margin: 30px 0 52px; font-size: 15px; }
  .clients-section { padding: 65px 14px 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { justify-self: start; }
  .client-grid, .preview-list { grid-template-columns: 1fr; }
  .client-card, .client-card button { min-height: 330px; }
  .pin-dialog form { padding: 43px 18px 25px; }
  .pin-dialog h2 { font-size: 40px; }
  .pin-cells { gap: 5px; }
  .client-page { padding: 68px 14px 80px; }
  .client-hero h1 { font-size: clamp(58px, 21vw, 90px); }
  .preview-card { min-height: 300px; padding: 24px 20px; }
  .footer { align-items: flex-start; flex-direction: column; padding: 25px 18px; }
}

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