
   :root {
    /* ===========================
       Colors
    =========================== */
  
    /* Text */
    --ink: #0F172A;              /* Primary text */
    --ink-soft: #475569;         /* Secondary text */
  
    /* Backgrounds */
    --paper: #F8FAFC;            /* Main background */
    --paper-white: #FFFFFF;      /* Cards */
    --paper-dim: #F1F5F9;        /* Alternate sections */
  
    /* Borders */
    --rule: #E2E8F0;
    --rule-strong: #CBD5E1;
  
    /* Brand */
    --primary: #1E3A8A;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
  
    /* Accent */
    --accent: #0F766E;
    --accent-light: #CCFBF1;
  
    /* Status */
    --good: #15803D;
    --warning: #D97706;
    --danger: #DC2626;
    --stamp-red: #B91C1C;
  
    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  
    /* ===========================
       Typography
    =========================== */
  
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 3rem;
    --text-5xl: 4rem;
  
    /* Font Weights */
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 800;
  
    /* ===========================
       Layout
    =========================== */
  
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
  
    --max-width: 1200px;
    --section-space: 6rem;
    --container-padding: 1.5rem;
  
    /* ===========================
       Animation
    =========================== */
  
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
  
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
    /* ===========================
       Header
    =========================== */
  
    --header-height: 80px;
  
    /* ===========================
       Z-index
    =========================== */
  
    --z-navbar: 100;
    --z-dropdown: 200;
    --z-modal: 1000;
  }
  
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
  
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  
  body.no-rule-bg { background: var(--paper-dim); }
  
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  
  :focus-visible {
    outline: 2px solid var(--stamp-red);
    outline-offset: 3px;
    border-radius: 3px;
  }
  
  .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
  
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stamp-red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
  }
  .eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--stamp-red); }
  
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
  }
  h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 600; }
  h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
  h3 { font-size: 1.2rem; }
  p { color: var(--ink-soft); margin: 0 0 1em; }
  
  hr.divider-rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 0;
  }
  
  /* ---------- Page load ---------- */
  body { animation: page-in 0.5s var(--ease-out) both; }
  @keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.18s var(--ease-out), background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0px) scale(0.97); }
  .btn-primary { background: var(--ink); color: var(--paper-white); }
  .btn-primary:hover { background: var(--ink-soft); box-shadow: 0 8px 18px rgba(22, 34, 63, 0.22); }
  .btn-ghost { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--ink); background: rgba(22, 34, 63, 0.04); }
  .btn-stamp { background: transparent; border: 1.5px solid var(--stamp-red); color: var(--stamp-red); }
  .btn-stamp:hover { background: var(--stamp-red); color: var(--paper-white); box-shadow: 0 8px 18px rgba(178, 58, 46, 0.25); }
  .btn-block { width: 100%; }
  .btn[disabled] { opacity: 0.6; cursor: progress; transform: none !important; }
  
  .btn .btn-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    animation: spin 0.7s linear infinite;
    display: none;
  }
  .btn.is-loading .btn-spinner { display: inline-block; }
  .btn.is-loading .btn-label { opacity: 0.75; }
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* ---------- Header / Nav ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 245, 239, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow 0.25s ease, background 0.25s ease;
  }
  .site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(22, 34, 63, 0.08);
    background: rgba(247, 245, 239, 0.98);
  }
  .ticket-strip {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; max-width: var(--max-width); margin: 0 auto;
    position: relative;
  }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand-mark {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--stamp-red);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    color: var(--stamp-red); flex-shrink: 0;
    transition: transform 0.4s var(--ease-spring);
  }
  .brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
  .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
  .brand-text strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
  .brand-text span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; }
  
  .main-nav { display: flex; align-items: center; gap: 26px; }
  .main-nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color 0.15s ease; }
  .main-nav a:hover, .main-nav a.active { color: var(--ink); }
  .main-nav a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--stamp-red);
    transition: right 0.25s var(--ease-out);
  }
  .main-nav a:hover::after { right: 0; }
  .main-nav a.active::after { right: 0; }
  
  .nav-actions { display: flex; gap: 10px; align-items: center; }
  .nav-toggle { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 9px 11px; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ''; display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  
  @media (max-width: 860px) {
    .main-nav {
      position: absolute; top: 100%; left: 0; right: 0;
      background: var(--paper); border-bottom: 1px solid var(--rule);
      flex-direction: column; align-items: flex-start;
      padding: 18px 24px 26px; gap: 16px;
      max-height: 0; overflow: hidden; display: flex;
      transition: max-height 0.35s var(--ease-out);
    }
    .main-nav.open { max-height: 320px; }
    .main-nav a { width: 100%; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease, color 0.15s ease; }
    .main-nav.open a { opacity: 1; transform: translateY(0); }
    .main-nav.open a:nth-child(1) { transition-delay: 0.03s; }
    .main-nav.open a:nth-child(2) { transition-delay: 0.07s; }
    .main-nav.open a:nth-child(3) { transition-delay: 0.11s; }
    .main-nav.open a:nth-child(4) { transition-delay: 0.15s; }
    .main-nav.open a:nth-child(5) { transition-delay: 0.19s; }
    .nav-toggle { display: block; }
  }
  
  /* ---------- Layout / sections ---------- */
  section { padding: 64px 0; }
  .section-tight { padding: 56px 0 40px; }
  .section-head { max-width: 640px; margin-bottom: 40px; }
  .text-center { text-align: center; }
  
  .grid { display: grid; gap: 22px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  
  @media (max-width: 860px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  }
  
  .flex-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  
  .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag {
    display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
    padding: 5px 10px; border-radius: 20px; border: 1px solid var(--rule-strong);
    color: var(--ink-soft); background: var(--paper-white);
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  .tag:hover { border-color: var(--stamp-red); color: var(--stamp-red); transform: translateY(-1px); }
  
  .stamp-badge {
    display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--stamp-red);
    border: 1px solid var(--stamp-red); border-radius: 20px; padding: 5px 12px;
  }
  
  /* ---------- Ticket / admit-card component (signature element) ---------- */
  .ticket {
    position: relative; background: var(--paper-white);
    border: 1px solid var(--rule); border-radius: var(--radius);
    padding: 24px 24px 20px; box-shadow: 0 1px 2px rgba(22, 34, 63, 0.05);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
  }
  .ticket:hover {
    transform: translateY(-5px) rotate(-0.4deg);
    box-shadow: 0 18px 30px rgba(22, 34, 63, 0.12);
    border-color: var(--rule-strong);
  }
  .ticket-number {
    display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
    letter-spacing: 0.06em; color: var(--stamp-red); text-transform: uppercase; margin-bottom: 10px;
  }
  .ticket h3 { margin-bottom: 8px; }
  .ticket p { font-size: 0.93rem; margin-bottom: 4px; }
  .ticket-stub-line {
    border-top: 1px dashed var(--rule-strong);
    margin: 14px 0 12px;
    position: relative;
  }
  .ticket-stub-line::before, .ticket-stub-line::after {
    content: ''; position: absolute; width: 14px; height: 14px;
    background: var(--paper); border-radius: 50%; top: -7px;
  }
  .ticket-stub-line::before { left: -24px; }
  .ticket-stub-line::after { right: -24px; }
  .ticket-meta {
    display: block; font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--ink-soft); letter-spacing: 0.02em;
  }
  
  /* ---------- Scroll reveal ---------- */
  [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--reveal-index, 0) * 70ms);
  }
  [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
  
  /* ---------- Hero admit-card SVG ---------- */
  [data-hero-card] { animation: card-drop 0.9s var(--ease-spring) both 0.15s; }
  @keyframes card-drop {
    from { opacity: 0; transform: translateY(24px) rotate(3deg) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  }
  [data-hero-card] svg { animation: card-float 6s ease-in-out infinite; }
  @keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
  .stamp { transform-origin: center; }
  [data-hero-card] .stamp-group { animation: stamp-down 0.5s var(--ease-spring) both 0.75s; transform-origin: 330px 215px; }
  @keyframes stamp-down {
    0% { opacity: 0; transform: translate(330px,215px) rotate(-10deg) scale(2.4); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: translate(330px,215px) rotate(-10deg) scale(1); }
  }
  
  /* ---------- Cards / forms ---------- */
  .card { background: var(--paper-white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
  
  .form-card {
    background: var(--paper-white); border: 1px solid var(--rule);
    border-radius: var(--radius); padding: 32px;
    animation: card-drop 0.7s var(--ease-out) both 0.1s;
  }
  .form-card.no-rule-bg { border: 1px solid var(--rule-strong); }
  
  .field { margin-bottom: 18px; }
  .field label {
    display: block; font-family: var(--font-mono); font-size: 0.74rem;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px;
  }
  .field input, .field select, .field textarea {
    width: 100%; padding: 12px 13px; border: 1px solid var(--rule-strong);
    border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
    background: var(--paper); color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--stamp-red);
    box-shadow: 0 0 0 3px rgba(178, 58, 46, 0.12);
    background: var(--paper-white);
  }
  .field-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 5px; }
  .field-error { display: none; font-size: 0.78rem; color: var(--stamp-red); margin-top: 5px; }
  .field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--stamp-red); }
  .field.has-error .field-error { display: block; }
  .field.has-error { animation: field-shake 0.4s ease; }
  @keyframes field-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
  }
  
  .form-message {
    display: none; padding: 12px 14px; border-radius: var(--radius);
    font-size: 0.85rem; margin-bottom: 18px; font-family: var(--font-mono);
  }
  .form-message.show { display: block; animation: message-in 0.3s var(--ease-out) both; }
  @keyframes message-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .form-message.success { background: rgba(47, 122, 79, 0.1); color: var(--good); border: 1px solid rgba(47, 122, 79, 0.25); }
  .form-message.error { background: rgba(178, 58, 46, 0.08); color: var(--stamp-red); border: 1px solid rgba(178, 58, 46, 0.25); }
  
  /* password strength (signup) */
  .pw-meter { display: flex; gap: 5px; margin-top: 8px; }
  .pw-meter span { height: 4px; flex: 1; background: var(--rule); border-radius: 2px; transition: background 0.25s ease; }
  .pw-meter.weak span:nth-child(1) { background: var(--stamp-red); }
  .pw-meter.fair span:nth-child(1), .pw-meter.fair span:nth-child(2) { background: #C98A2E; }
  .pw-meter.strong span { background: var(--good); }
  .pw-hint { font-size: 0.76rem; color: var(--ink-soft); margin-top: 6px; }
  
  /* ---------- Solutions / features page ---------- */
  .solution-row {
    display: grid; grid-template-columns: 220px 1fr; gap: 28px;
    padding: 26px 0; border-top: 1px solid var(--rule);
    align-items: flex-start;
  }
  .solution-row:last-child { border-bottom: 1px solid var(--rule); }
  .solution-who {
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--stamp-red);
  }
  @media (max-width: 720px) {
    .solution-row { grid-template-columns: 1fr; gap: 10px; }
  }
  
  /* ---------- Photography (duotone-treated to match the paper/ink palette) ---------- */
  .photo-frame {
    position: relative; overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--rule);
    background: var(--ink);
  }
  .photo-frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(1) contrast(1.05) brightness(0.95);
    mix-blend-mode: luminosity;
    transition: transform 0.6s var(--ease-out);
  }
  .photo-frame::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(178,58,46,0.32), rgba(22,34,63,0.72));
    mix-blend-mode: multiply;
    pointer-events: none;
  }
  .photo-frame:hover img { transform: scale(1.045); }
  
  .photo-banner { aspect-ratio: 16 / 6; }
  .photo-square { aspect-ratio: 4 / 3; }
  .photo-tall { aspect-ratio: 3 / 4; }
  
  .photo-caption {
    position: absolute; left: 18px; bottom: 16px; z-index: 2;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--paper-white);
  }
  
  /* Auth pages: split layout with a duotone photo panel */
  .auth-split {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 560px; border: 1px solid var(--rule); border-radius: var(--radius);
    overflow: hidden; background: var(--paper-white);
    box-shadow: 0 1px 2px rgba(22, 34, 63, 0.05);
  }
  .auth-split .photo-frame { border: none; border-radius: 0; height: 100%; }
  .auth-split .auth-form-pane { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
  .auth-split .form-card { border: none; padding: 0; box-shadow: none; animation: none; }
  @media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-split .photo-frame { display: none; }
    .auth-split .auth-form-pane { padding: 32px 26px; }
  }
  
  /* ---------- Footer ---------- */
  .site-footer { border-top: 1px solid var(--rule); padding: 44px 0 26px; margin-top: 40px; }
  .footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 30px; }
  .footer-col h4 { font-size: 0.95rem; margin-bottom: 12px; }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .footer-col a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.15s ease, padding-left 0.15s ease; }
  .footer-col a:hover { color: var(--ink); padding-left: 3px; }
  .footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    padding-top: 20px; border-top: 1px solid var(--rule);
    font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft);
  }
  
  @media (max-width: 600px) {
    .footer-bottom { flex-direction: column; }
  }