/* =============================================
   OKNLAB — Global Stylesheet  v2
   Loaded by: index · contact · privacy-policy
             refund-policy · terms-of-service
   ============================================= */

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Design Tokens ──────────────────────────── */
:root {
  --bg:         #080806;
  --bg2:        #0d0d0b;
  --surface:    #111110;
  --text:       #E4E2DA;
  --muted:      rgba(228, 226, 218, 0.38);
  --muted-hi:   rgba(228, 226, 218, 0.62);
  --border:     rgba(228, 226, 218, 0.07);
  --border-hi:  rgba(228, 226, 218, 0.13);
  --accent:     #C4953F;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans:  "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h:   72px;
  --radius-sm:  0.75rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
  --radius-pill:9999px;
}

/* ── Base ───────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family:         var(--font-sans);
  background-color:    var(--bg);
  color:               var(--text);
  overscroll-behavior: none;
  margin:              0;
  padding:             0;
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--text);
  color:      var(--bg);
}

:focus-visible {
  outline:        2px solid var(--accent);
  outline-offset: 3px;
  border-radius:  4px;
}

input, textarea, button, select { font-family: inherit; }

/* ── Accessibility ──────────────────────────── */
.skip-link {
  position:     absolute;
  top:          -100%;
  left:         1rem;
  padding:      0.5rem 1.25rem;
  background:   var(--text);
  color:        var(--bg);
  font-family:  var(--font-sans);
  font-size:    0.875rem;
  font-weight:  600;
  border-radius:0 0 var(--radius-sm) var(--radius-sm);
  z-index:      9999;
  transition:   top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Grain Overlay ──────────────────────────── */
.grain-overlay {
  position:       fixed;
  inset:          -50%;
  width:          200%;
  height:         200%;
  pointer-events: none;
  z-index:        9999;
  opacity:        0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Scrollbar ──────────────────────────────── */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Grid Texture ───────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(228,226,218,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228,226,218,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Animations ─────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 38s linear infinite; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.anim-fade-in { opacity: 0; animation: fadeIn  0.55s ease forwards; }
.anim-fade-up { opacity: 0; animation: fadeUp  0.7s  ease forwards; }
.d-0   { animation-delay:   0ms; }
.d-50  { animation-delay:  50ms; }
.d-100 { animation-delay: 100ms; }
.d-150 { animation-delay: 150ms; }
.d-200 { animation-delay: 200ms; }
.d-300 { animation-delay: 300ms; }
.d-400 { animation-delay: 400ms; }

/* ── Site Header ────────────────────────────── */
.site-header {
  position:      fixed;
  top:           0; left: 0; right: 0;
  height:        var(--header-h);
  z-index:       50;
  background:    transparent;
  border-bottom: 1px solid transparent;
  transition:    background 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  background:    rgba(8, 8, 6, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color:  var(--border);
}

/* ── Logo ───────────────────────────────────── */
.logo-text {
  font-family:     var(--font-sans);
  font-weight:     600;
  font-size:       1rem;
  letter-spacing:  0.15em;
  text-transform:  uppercase;
  color:           var(--text);
  text-decoration: none;
}

/* ── Nav Links ──────────────────────────────── */
.nav-link {
  color:           var(--muted-hi);
  text-decoration: none;
  font-size:       0.8125rem;
  font-weight:     500;
  letter-spacing:  0.04em;
  transition:      color 0.2s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--text); }

/* ── Hover Underline ────────────────────────── */
.hover-line {
  text-decoration: none;
  border-bottom:   1px solid transparent;
  transition:      border-color 0.2s ease, color 0.2s ease;
}
.hover-line:hover { border-color: currentColor; }

/* ── Divider ────────────────────────────────── */
.divider {
  height:     1px;
  background: var(--border);
  width:      100%;
}

/* ── Status Pill ────────────────────────────── */
.status-pill {
  display:       inline-flex;
  align-items:   center;
  gap:           0.5rem;
  padding:       0.375rem 0.9rem;
  border:        1px solid var(--border-hi);
  border-radius: var(--radius-pill);
  font-family:   var(--font-sans);
  font-size:     0.6875rem;
  font-weight:   600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:         var(--muted-hi);
}
.status-dot {
  width:        6px;
  height:       6px;
  border-radius:50%;
  background:   #4ade80;
  flex-shrink:  0;
  animation:    pulse 2.2s ease-in-out infinite;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             0.5rem;
  font-family:     var(--font-sans);
  font-weight:     600;
  font-size:       0.875rem;
  text-decoration: none;
  cursor:          pointer;
  border:          1px solid transparent;
  transition:      background 0.2s ease, border-color 0.2s ease,
                   color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover    { transform: translateY(-1px); }
.btn:active   { transform: translateY(0); }

.btn-primary {
  background:   var(--text);
  color:        var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background:   rgba(228,226,218,0.88);
  border-color: rgba(228,226,218,0.88);
}

.btn-outline {
  background:   transparent;
  color:        var(--muted-hi);
  border-color: var(--border-hi);
}
.btn-outline:hover {
  color:        var(--text);
  border-color: rgba(228,226,218,0.3);
  background:   rgba(228,226,218,0.04);
}

.btn-ghost {
  background:   transparent;
  color:        var(--muted-hi);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); }

.btn-rounded { border-radius: var(--radius-pill); padding: 0.6875rem 1.625rem; }
.btn-sm      { font-size: 0.8125rem; padding: 0.5rem 1.25rem; }

/* ── Page Hero ──────────────────────────────── */
.page-hero {
  position:   relative;
  padding:    calc(var(--header-h) + 5rem) 0 4rem;
  overflow:   hidden;
}

/* ── Site Footer ────────────────────────────── */
.site-footer {
  background:   var(--bg2);
  border-top:   1px solid var(--border);
}

/* ── Marquee Strip ──────────────────────────── */
.marquee-strip {
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:    var(--bg2);
  overflow:      hidden;
  padding:       1.5rem 0;
}
.marquee-item {
  font-family:    var(--font-sans);
  font-size:      clamp(1.125rem, 2.2vw, 1.75rem);
  font-weight:    700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          rgba(228, 226, 218, 0.07);
  white-space:    nowrap;
}
.marquee-dot {
  width:        0.4375rem;
  height:       0.4375rem;
  border-radius:50%;
  background:   rgba(196, 149, 63, 0.28);
  flex-shrink:  0;
}

/* ── Bento Grid ─────────────────────────────── */
.bento-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows:        300px;
  gap:                   0.875rem;
}
@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows:        280px;
  }
}

.bento-card {
  position:       relative;
  overflow:       hidden;
  border-radius:  var(--radius-xl);
  background:     var(--surface);
  border:         1px solid var(--border-hi);
  padding:        2rem;
  display:        flex;
  flex-direction: column;
  justify-content:flex-end;
  transition:     border-color 0.35s ease;
}
.bento-card:hover { border-color: rgba(228,226,218,0.2); }

.bento-card__bg {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  filter:     grayscale(1);
  mix-blend-mode: luminosity;
  opacity:    0.22;
  transition: transform 0.8s ease, opacity 0.4s ease;
}
.bento-card:hover .bento-card__bg {
  transform: scale(1.05);
  opacity:   0.33;
}

.bento-card__overlay {
  position:       absolute;
  inset:          0;
  pointer-events: none;
}

.bento-card__icon {
  width:         2.75rem;
  height:        2.75rem;
  border-radius: var(--radius-sm);
  border:        1px solid var(--border-hi);
  background:    rgba(255,255,255,0.03);
  display:       flex;
  align-items:   center;
  justify-content:center;
  margin-bottom: auto;
  color:         var(--muted);
  transition:    transform 0.4s ease;
}
.bento-card:hover .bento-card__icon { transform: scale(1.08); }

.bento-card__icon-letter {
  font-family:   var(--font-serif);
  font-style:    italic;
  font-size:     1.5rem;
  color:         var(--muted);
}

.bento-card__tag {
  display:       inline-block;
  padding:       0.2rem 0.625rem;
  background:    var(--text);
  color:         var(--bg);
  font-family:   var(--font-sans);
  font-size:     0.6875rem;
  font-weight:   700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  border-radius: 0.375rem;
  margin-bottom: 0.875rem;
}

.bento-card__body { position: relative; z-index: 1; }

.bento-card h3 {
  font-family:   var(--font-serif);
  font-weight:   700;
  color:         var(--text);
  margin:        0 0 0.5rem;
  line-height:   1.15;
}
.bento-card p {
  font-family:   var(--font-sans);
  font-size:     0.875rem;
  color:         var(--muted-hi);
  line-height:   1.65;
  margin:        0;
}

/* ── Hero Image Pill ────────────────────────── */
.hero-img-pill {
  display:        inline-block;
  vertical-align: middle;
  width:          12vw;
  max-width:      180px;
  min-width:      80px;
  height:         0.82em;
  border-radius:  var(--radius-pill);
  overflow:       hidden;
  border:         1px solid var(--border-hi);
  margin:         0 0.35em;
  background:     var(--surface);
  position:       relative;
  top:            -0.06em;
}
.hero-img-pill img {
  width:          100%;
  height:         100%;
  object-fit:     cover;
  filter:         grayscale(1);
  mix-blend-mode: luminosity;
  opacity:        0.8;
  transition:     transform 1.2s ease;
}
.hero-img-pill:hover img { transform: scale(1.1); }

/* ── Legal Pages ────────────────────────────── */
.legal-section {
  border-top:  1px solid var(--border);
  padding-top: 2.5rem;
  margin-top:  2.5rem;
}
.legal-h2 {
  font-family:  var(--font-serif);
  font-size:    clamp(1.5rem, 3vw, 2rem);
  font-weight:  700;
  color:        var(--text);
  margin:       0 0 1.25rem;
  line-height:  1.15;
}
.legal-p {
  font-family:  var(--font-sans);
  font-size:    0.9375rem;
  color:        var(--muted-hi);
  line-height:  1.82;
  margin:       0 0 1rem;
}
.legal-ul {
  font-family:  var(--font-sans);
  font-size:    0.9375rem;
  color:        var(--muted-hi);
  line-height:  1.82;
  padding-left: 1.375rem;
  margin:       0 0 1rem;
  list-style:   disc;
}
.legal-ul li { margin-bottom: 0.4rem; }

.callout {
  padding:      1.25rem 1.5rem;
  border:       1px solid var(--border-hi);
  border-left:  3px solid var(--accent);
  border-radius:var(--radius-md);
  background:   rgba(196, 149, 63, 0.04);
  font-family:  var(--font-sans);
  font-size:    0.9375rem;
  color:        var(--muted-hi);
  line-height:  1.75;
}

/* ── Contact Page ───────────────────────────── */
.contact-icon-btn {
  width:          2.5rem;
  height:         2.5rem;
  border-radius:  var(--radius-sm);
  border:         1px solid var(--border-hi);
  background:     rgba(255,255,255,0.025);
  display:        flex;
  align-items:    center;
  justify-content:center;
  color:          var(--muted-hi);
  flex-shrink:    0;
  transition:     border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.contact-icon-btn:hover {
  border-color: rgba(228,226,218,0.28);
  background:   rgba(255,255,255,0.06);
  color:        var(--text);
}

/* ── Section Label ──────────────────────────── */
.section-label {
  font-family:   var(--font-sans);
  font-size:     0.6875rem;
  font-weight:   600;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:         var(--muted);
  margin:        0;
}
