/* ============================================
   26 STUDIO — GLOBAL STYLES
   Noir & blanc strict · clean · scroll storytelling
   ============================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --line: #e5e5e5;
  --line-strong: #0a0a0a;
  --muted: #888888;
  --invert-bg: #0a0a0a;
  --invert-ink: #ffffff;

  --font-display: 'Neue Haas Grotesk Display Pro', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* NAV --------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--ease);
}
.nav-logo:hover {
  transform: rotate(-8deg) scale(1.05);
}
.nav-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
@media (max-width: 720px) {
  .nav-logo img { width: 44px; height: 44px; }
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cart:hover {
  background: var(--ink);
  color: var(--bg);
}
.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.nav-cart-count.is-zero { display: none; }

.nav-account {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-account:hover {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
}

/* BUTTONS --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* SECTION SHARED --------------------------------------------------- */
.section {
  padding: 120px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.section-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 620px;
  color: var(--muted);
  line-height: 1.5;
}

/* HERO --------------------------------------------------- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 32px 80px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  width: fit-content;
}
.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 40px;
  max-width: 1100px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-meta {
  display: flex;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 720px) {
  .hero-meta { flex-direction: column; gap: 12px; }
}

/* SCROLL STORYTELLING --------------------------------------------------- */
.story {
  padding: 200px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.story-line {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.story-line .word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.5s var(--ease);
}
.story-line .word.is-active { opacity: 1; }
.story-line .word.muted { font-weight: 400; }

/* SERVICES GRID --------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  margin-top: 60px;
}

.service-card {
  display: grid;
  grid-template-columns: 80px 1fr 240px 60px;
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding 0.5s var(--ease), color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.service-card:hover::before { transform: translateY(0); }
.service-card:hover {
  color: var(--bg);
  padding-left: 24px;
  padding-right: 24px;
}
.service-card > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.service-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  transition: color 0.4s var(--ease);
}
.service-card:hover .service-desc { color: rgba(255,255,255,0.7); }

.service-price {
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
}
.service-price strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  display: block;
}

.service-arrow {
  display: flex;
  justify-content: flex-end;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-arrow {
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .service-card {
    grid-template-columns: 50px 1fr 50px;
    gap: 16px;
  }
  .service-price {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
  .service-card:hover { padding-left: 16px; padding-right: 16px; }
}

/* FOOTER --------------------------------------------------- */
.footer {
  background: var(--invert-bg);
  color: var(--invert-ink);
  padding: 80px 32px 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-brand h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: #888;
  max-width: 320px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer-col a {
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
  opacity: 0.7;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #666;
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* PAGE: SERVICE DETAIL --------------------------------------------------- */
.service-page {
  padding: 140px 32px 80px;
  max-width: var(--max);
  margin: 0 auto;
}
.service-breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 32px;
  text-transform: uppercase;
}
.service-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.service-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 80px;
}

.service-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 120px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.service-hero-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
}
.service-feature::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

.service-buy {
  position: sticky;
  top: 100px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 32px;
  background: var(--bg);
}
.service-buy-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.service-buy-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.service-buy-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.service-buy-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.service-buy-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.service-buy-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  font-size: 14px;
}
.service-buy-option:hover {
  border-color: var(--ink);
}
.service-buy-option input { display: none; }
.service-buy-option.selected {
  border-color: var(--ink);
  background: #f8f8f8;
}
.service-buy-option-name { font-weight: 500; }
.service-buy-option-price { font-family: var(--font-mono); }

.service-process {
  margin-top: 100px;
}
.service-process-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.service-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.service-step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.service-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}
.service-step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.service-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .service-hero { grid-template-columns: 1fr; gap: 40px; }
  .service-buy { position: static; }
  .service-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .service-steps { grid-template-columns: 1fr; }
}

/* CART DRAWER --------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.cart-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.cart-close:hover { background: #f0f0f0; }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.cart-empty svg { margin: 0 auto 20px; opacity: 0.3; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}
.cart-item-option {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.cart-item-price {
  font-family: var(--font-mono);
  font-size: 14px;
}
.cart-item-remove {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.cart-item-remove:hover { color: var(--ink); }
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 14px; color: var(--muted); }
.cart-total-amount {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* AUTH PAGES --------------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--ink);
}
.auth-footer {
  margin-top: 24px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.auth-footer a {
  color: var(--ink);
  text-decoration: underline;
}
.auth-error {
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 8px;
  font-size: 13px;
}
.auth-success {
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 8px;
  font-size: 13px;
}

/* ACCOUNT PAGE --------------------------------------------------- */
.account-page {
  padding: 140px 32px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 40px;
}
.account-header h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.account-header span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.account-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  align-items: center;
  font-size: 14px;
}
.order-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.order-status.paid { background: #f0fdf4; color: #166534; }
.order-status.pending { background: #fef3c7; color: #92400e; }
.order-empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* SCROLL FADE-IN --------------------------------------------------- */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* MARQUEE --------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: scroll-x 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.marquee-track span { display: inline-block; }
.marquee-track .dot { display: inline-flex; align-items: center; }
.marquee-track .dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  margin-right: 60px;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}
