*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #FAF5FF;
    --surface: #FFFFFF;
    --surface2: #EDE9FE;
    --border: #DDD6FE;
    --text: #1E0A3C;
    --muted: #7C5CBF;
    --accent: #7C3AED;
    --accent2: #6D28D9;
    --green: #16A34A;
    --red: #DC2626;
  }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
  }

  /* ─── NAV ─── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,245,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    padding: 0 24px; height: 60px;
  }
  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 700;
    color: var(--accent); letter-spacing: -0.5px;
    cursor: pointer; white-space: nowrap;
  }
  .logo span { color: var(--text); }
  .search-wrap {
    flex: 1; max-width: 480px;
    position: relative;
  }
  .search-wrap input {
    width: 100%; padding: 8px 32px 8px 40px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 14px;
    font-family: inherit; outline: none; transition: border-color .2s;
  }
  .search-wrap input:focus { border-color: var(--accent); }
  .search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .4; }
  .search-clear-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    display: none; align-items: center; justify-content: center;
    width: 20px; height: 20px; border: none; border-radius: 50%;
    background: var(--border); color: var(--muted); font-size: 13px; line-height: 1;
    cursor: pointer; padding: 0;
  }
  .search-clear-btn:hover { background: var(--accent); color: #fff; }
  .search-wrap input:not(:placeholder-shown) ~ .search-clear-btn { display: flex; }
  .nav-links { margin-left: auto; display: flex; gap: 8px; }
  .nav-links a {
    color: var(--muted); text-decoration: none; font-size: 13px;
    padding: 6px 12px; border-radius: 6px; cursor: pointer;
    transition: color .2s, background .2s;
  }
  .nav-links a:hover { color: var(--text); background: var(--surface2); }
  .nav-dd { position: relative; }
  .nav-dd-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 200;
    min-width: 170px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.18);
  }
  .nav-dd.open .nav-dd-panel { display: block; }
  .nav-dd-panel a {
    display: block; padding: 8px 12px; border-radius: 6px; font-size: 13px;
    color: var(--text); cursor: pointer; white-space: nowrap; transition: background .15s;
  }
  .nav-dd-panel a:hover { background: var(--surface2); color: var(--accent); }
  .nav-dd-panel a.active { color: var(--accent); font-weight: 600; }

  /* ─── FAVORITES ─── */
  .fav-btn {
    background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1;
    color: var(--border); padding: 2px 4px; transition: color .15s, transform .15s;
  }
  .fav-btn:hover { color: #e0245e; transform: scale(1.15); }
  .fav-btn.active { color: #e0245e; }

  /* ─── HERO ─── */
  #page-home { display: block; }
  #page-font { display: none; }
  #page-favs { display: none; }

  .hero {
    text-align: center; padding: 72px 24px 48px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,.08) 0%, transparent 70%);
  }
  .hero-badge {
    display: inline-block; padding: 4px 14px;
    background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.25);
    border-radius: 20px; font-size: 12px; color: var(--accent);
    margin-bottom: 20px; letter-spacing: .5px;
  }
  .hero .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.1; margin-bottom: 16px;
    background: linear-gradient(135deg, #1E0A3C 0%, #4C1D95 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .hero .hero-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .hero p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
  .hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
  .hero-stat span { display: block; }
  .hero-stat .num { font-size: 28px; font-weight: 700; color: var(--accent); }
  .hero-stat .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

  /* ─── FILTERS ─── */
  .filters {
    padding: 0 24px 24px;
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  }
  .filter-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
  .pagination-bar {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 24px 48px;
  }
  .page-btn {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); font-size: 13px; cursor: pointer; font-family: inherit;
    transition: all .2s;
  }
  .page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
  .page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
  .page-btn:disabled { opacity: .35; cursor: default; }
  .page-ellipsis { color: var(--muted); padding: 0 4px; font-size: 13px; }
  .chip {
    padding: 6px 14px; border-radius: 20px; font-size: 13px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--muted); cursor: pointer; transition: all .2s;
  }
  .chip:hover, .chip.active {
    border-color: var(--accent); color: var(--accent);
    background: rgba(124,58,237,.08);
  }
  .sort-select {
    margin-left: auto; padding: 6px 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 13px;
    font-family: inherit; cursor: pointer; outline: none;
  }

  /* ─── GRID ─── */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px; padding: 0 24px 48px;
  }
  .font-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s;
  }
  .font-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,58,237,.1);
  }
  .card-preview {
    height: 140px; display: flex; align-items: center; justify-content: center;
    background: var(--surface2); padding: 20px;
    font-size: 42px; line-height: 1; overflow: hidden;
    color: var(--text);
  }
  .card-body { padding: 14px 16px; }
  .card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
  .card-meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
  .card-footer { display: flex; align-items: center; justify-content: space-between; }
  .card-tags { display: flex; gap: 4px; }
  .tag {
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
    background: var(--surface2); color: var(--muted);
  }
  .btn-dl {
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    background: var(--accent); color: #fff; border: none;
    border-radius: 6px; cursor: pointer; transition: background .2s;
    font-family: inherit;
  }
  .btn-dl:hover { background: var(--accent2); }

  /* ─── AD BANNER (home) ─── */
  .ad-banner {
    margin: 0 24px 32px;
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: 10px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 12px;
  }

  /* ─── FONT PAGE ─── */
  .font-page-wrap { max-width: 1440px; margin: 0 auto; padding: 32px 24px; }
  .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
  .breadcrumb a { color: var(--muted); cursor: pointer; }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb span { margin: 0 8px; }

  .font-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }
  .m-dlbar { display: none; }
  @media (max-width: 900px) {
    /* single-column font page: keep download one tap away */
    .m-dlbar {
      display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
      padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
      background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
      box-shadow: 0 -6px 20px rgba(30,10,60,.08);
    }
    .m-dlbar .btn-primary { flex: 1; min-height: 46px; margin: 0; }
    .m-dlbar-design {
      flex: none; min-height: 46px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
      font-family: inherit; color: var(--accent); background: var(--surface); border: 1px solid var(--accent); cursor: pointer;
    }
    #page-font { padding-bottom: 76px; }
    .toast { bottom: 84px; }
    .font-page-grid { grid-template-columns: 1fr; }
    /* grid items default to min-width:auto — the widest control row held the
       whole column (and page) wider than small phones */
    .font-page-grid > * { min-width: 0; }
    /* design area flows naturally on mobile (no sticky/scroll trap) */
    .mockup-column {
      position: static; max-height: none; overflow: visible;
    }
  }

  /* ═══════════ MOBILE OPTIMIZATION (≤768px / ≤480px) ═══════════ */
  /* All rules are max-width only — desktop layout is untouched. */
  @media (max-width: 768px) {
    nav { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; row-gap: 10px; }
    .search-wrap { order: 3; flex: 1 1 100%; max-width: none; }
    .nav-links { margin-left: auto; }
    .font-page-wrap { padding: 20px 14px; }
    .grid { padding: 0 14px 40px; gap: 12px; }
    .hero { padding: 48px 18px 36px; }
    .details-grid { grid-template-columns: repeat(2, 1fr); }
    /* control rows wrap so nothing overflows */
    .mockup-ctrl-row { flex-wrap: wrap; row-gap: 8px; }
    .mockup-panel { padding: 14px; }
    /* comfortable touch targets */
    .mtype-btn, .mstyle-btn, .mockup-bg-btn, .btn-dl, #mockupResetBtn,
    .style-btn, .nav-links a { min-height: 40px; }
    .warp-select, #textStyleSelect { min-height: 40px; }
    .mockup-canvas-wrap { height: clamp(320px, 60vh, 520px); }
  }

  @media (max-width: 600px) {
    /* row 1: logo + search, row 2: the links — five links next to the logo
       wrapped mid-label ("Text to / SVG", "Sign / in") */
    .search-wrap { order: 1; flex: 1 1 0; min-width: 0; }
    .nav-links { order: 2; flex: 1 1 100%; margin-left: 0; justify-content: space-between; gap: 2px; }
    .nav-links a { white-space: nowrap; }
  }

  @media (max-width: 480px) {
    .logo { font-size: 18px; }
    .nav-links a { padding: 8px 8px; font-size: 12px; }
    .pagination-bar { flex-wrap: wrap; gap: 4px; padding: 8px 10px 40px; }
    .page-btn { min-width: 30px; height: 32px; padding: 0 6px; }
    .grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .compare-row { grid-template-columns: 1fr; }
    /* download buttons stack full-width */
    .mockup-panel + * .btn-primary,
    .btn-primary, .btn-secondary { min-height: 44px; }
    .mockup-canvas-wrap { height: clamp(280px, 56vh, 460px); }
    .hero .hero-title { font-size: clamp(30px, 9vw, 44px); }
  }
  @media (max-width: 380px) {
    .nav-links a { padding: 8px 4px; font-size: 11.5px; }
  }
  @media (max-width: 340px) {
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .size-slider { width: 70px; }
  }

  /* right mockup column */
  .mockup-column {
    display: flex; flex-direction: column; gap: 16px;
    position: sticky; top: 72px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }


  /* tools sidebar */
  .tools-sidebar { display: flex; flex-direction: column; gap: 16px; align-self: start; }

  /* preview panel */
  .preview-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
  }
  .preview-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; gap: 8px; align-items: center;
  }
  .preview-input {
    flex: 1; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 14px; color: var(--text);
    font-size: 14px; font-family: inherit; outline: none;
    transition: border-color .2s;
  }
  .preview-input:focus { border-color: var(--accent); }
  .size-slider { width: 100px; accent-color: var(--accent); }
  .preview-stage {
    min-height: 220px; padding: 32px 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; line-height: 1.3; text-align: center;
    word-break: break-word; color: var(--text);
    background: var(--surface);
    transition: font-size .15s;
  }
  .preview-styles {
    padding: 12px 16px; border-top: 1px solid var(--border);
    display: flex; gap: 8px; flex-wrap: wrap;
  }
  .style-btn {
    padding: 4px 12px; font-size: 12px; border-radius: 6px;
    border: 1px solid var(--border); background: none; color: var(--muted);
    cursor: pointer; transition: all .2s; font-family: inherit;
  }
  .style-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,.08); }

  /* glyphs preview */

  /* sidebar */
  .sidebar { display: flex; flex-direction: column; gap: 16px; align-self: start; }

  .info-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px;
  }
  .info-line {
    display: flex; align-items: baseline; flex-wrap: wrap;
    row-gap: 4px; overflow: hidden;
  }
  .info-line > * { white-space: nowrap; }
  .info-line > *:not(:first-child)::before {
    content: '·'; display: inline-block; margin: 0 8px; color: var(--border);
  }
  /* the font name (#fontTitle) is an h2 in the template and becomes the
     page's single h1 on server-rendered font pages (font.php) — both tags
     render identically: margin pinned to h2's UA default (0.83em). */
  .info-card h1, .info-card h2 { font-family: 'Playfair Display', serif; font-size: 16px; margin: 0.83em 0; }
  .info-card .category { font-size: 11px; color: var(--accent); }
  .info-stat { font-size: 11px; color: var(--muted); }
  .info-stat .v { font-weight: 700; color: var(--text); }

  .dl-buttons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; border-radius: 10px; border: none; cursor: pointer;
    font-size: 14px; font-weight: 600; font-family: inherit;
    transition: all .2s;
  }
  .btn-primary.gold { background: var(--accent); color: #fff; }
  .btn-primary.gold:hover { background: var(--accent2); }
  .btn-primary.outline {
    background: none; border: 1px solid var(--border); color: var(--text);
  }
  .btn-primary.outline:hover { border-color: var(--accent); color: var(--accent); }
  .btn-primary.svg-btn {
    background: linear-gradient(135deg, #7c3aed, #6D28D9);
    color: #fff;
  }
  .btn-primary.svg-btn:hover { opacity: .9; }
  .dl-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }

  .css-block {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 16px;
  }
  .css-block-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
  }
  .css-block-header h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  .copy-btn {
    font-size: 12px; padding: 4px 12px; border-radius: 6px;
    border: 1px solid var(--border); background: none; color: var(--muted);
    cursor: pointer; font-family: inherit; transition: all .2s;
  }
  .copy-btn:hover { border-color: var(--accent); color: var(--accent); }
  .copy-btn.copied { border-color: var(--green); color: var(--green); }
  pre {
    background: #0a0a0a; border-radius: 8px; padding: 14px;
    font-size: 12px; line-height: 1.6; overflow-x: auto;
    color: #a8b4c8;
  }
  pre .c { color: #888; }
  pre .k { color: #c792ea; }
  pre .s { color: var(--accent); }
  pre .p { color: #89ddff; }

  /* affiliate */
  .affiliate-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 16px;
  }
  .affiliate-card h3 { font-size: 13px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
  .aff-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: 8px; border: 1px solid var(--border);
    margin-bottom: 8px; cursor: pointer; text-decoration: none;
    transition: border-color .2s;
  }
  .aff-link:hover { border-color: var(--accent); }
  .aff-icon { font-size: 20px; }
  .aff-info .aff-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .aff-info .aff-desc { font-size: 11px; color: var(--muted); }
  .aff-arrow { margin-left: auto; color: var(--muted); font-size: 16px; }

  /* ad unit sidebar */
  .ad-unit {
    background: var(--surface); border: 1px dashed var(--border);
    border-radius: 12px; height: 250px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 11px; flex-direction: column; gap: 4px;
  }
  .ad-unit span { font-size: 18px; }

  /* description */
  .desc-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px; margin-top: 16px;
  }
  .desc-card h3 { font-size: 13px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
  .desc-card p { font-size: 14px; color: #5B21B6; line-height: 1.7; }

  /* font details card */
  .details-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
  }
  .details-card h3 { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
  .details-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; margin-bottom: 10px;
  }
  .detail-item { }
  .detail-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1px; }
  .detail-value { font-size: 12px; font-weight: 600; color: var(--text); }
  .best-for-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
  .best-for-tags { display: flex; flex-wrap: wrap; gap: 5px; }
  .best-for-tag {
    font-size: 10px; padding: 3px 9px; border-radius: 20px;
    background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2);
    color: var(--accent); cursor: default;
  }

  /* SVG dropdown */
  .svg-split-wrap { position: relative; }
  .svg-dropdown {
    display: none; position: absolute; left: 0; right: 0; z-index: 50;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; margin-top: 4px;
    box-shadow: 0 8px 24px rgba(76,29,149,.15);
  }
  .svg-dropdown.open { display: block; }
  .svg-dropdown button {
    display: block; width: 100%; padding: 11px 14px; text-align: left;
    background: none; border: none; color: var(--text); font-size: 13px;
    font-family: inherit; cursor: pointer; border-bottom: 1px solid var(--border);
    transition: background .15s;
  }
  .svg-dropdown button:last-child { border-bottom: none; }
  .svg-dropdown button:hover { background: rgba(124,58,237,.08); color: var(--accent); }

  /* category bar below preview */
  .preview-category-bar {
    padding: 10px 16px 12px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .cat-pill {
    font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
    background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.3);
    color: var(--accent); letter-spacing: .3px; white-space: nowrap;
  }
  .cat-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

  /* similar fonts card */
  .similar-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 16px;
  }
  .similar-card h3 { font-size: 13px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
  .similar-item {
    display: flex; align-items: center; gap: 12px; padding: 9px 0;
    border-bottom: 1px solid var(--border); cursor: pointer;
    transition: all .15s;
  }
  .similar-item:last-child { border-bottom: none; }
  .similar-item:hover .similar-name { color: var(--accent); }
  .similar-preview {
    font-size: 22px; width: 60px; text-align: center;
    flex-shrink: 0; color: var(--text);
  }
  .similar-info { flex: 1; }
  .similar-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
  .similar-meta { font-size: 11px; color: var(--muted); }
  .similar-arrow { color: var(--muted); font-size: 14px; transition: transform .15s; }
  .similar-item:hover .similar-arrow { transform: translateX(3px); color: var(--accent); }

  /* card preview wrap + strip */
  .card-preview-wrap { position: relative; overflow: hidden; }
  .card-strip {
    display: flex; gap: 0;
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(250,245,255,.96); border-top: 1px solid var(--border);
    transform: translateY(100%); transition: transform .25s ease;
  }
  .card-preview-wrap:hover .card-strip { transform: translateY(0); }
  .strip-thumb {
    flex: 1; padding: 8px 4px; text-align: center; font-size: 18px;
    color: var(--text); border-right: 1px solid var(--border);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  .strip-thumb:last-child { border-right: none; }

  /* preview sliders */
  .preview-sliders {
    display: flex; align-items: center; gap: 6px; padding: 8px 16px 12px;
    font-size: 12px; color: var(--muted); flex-wrap: wrap;
  }
  .slider-label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
  .mini-slider { width: 80px; accent-color: var(--accent); cursor: pointer; }
  .slider-val { color: var(--accent); font-weight: 600; min-width: 24px; }

  /* waterfall */
  .waterfall-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px; margin-top: 16px;
  }
  .waterfall-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .waterfall-panel h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  .waterfall-row {
    display: flex; align-items: baseline; gap: 16px;
    border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .waterfall-row:last-child { border-bottom: none; }
  .waterfall-size { font-size: 11px; color: var(--muted); min-width: 36px; }
  .waterfall-text { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* compare panel */
  .compare-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px; margin-top: 16px;
  }
  .compare-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .compare-panel h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  .compare-hint { font-size: 11px; color: var(--accent); background: rgba(124,58,237,.1); border: 1px solid rgba(124,58,237,.2); padding: 2px 10px; border-radius: 20px; }
  .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .compare-col { text-align: center; }
  .compare-col .cname { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
  .compare-text {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 16px;
    font-size: 28px; min-height: 90px;
    display: flex; align-items: center; justify-content: center;
    word-break: break-all; transition: font-family .2s;
  }
  .compare-select {
    width: 100%; padding: 6px 10px; margin-bottom: 8px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 12px;
    font-family: inherit; cursor: pointer; outline: none;
  }
  .compare-select:focus { border-color: var(--accent); }
  .compare-input {
    width: 100%; padding: 8px 14px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 14px;
    font-family: inherit; outline: none; transition: border-color .2s;
  }
  .compare-input:focus { border-color: var(--accent); }

  /* font files list */
  .files-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 16px; margin-top: 16px;
  }
  .files-card h3 { font-size: 13px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
  .file-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    border-bottom: 1px solid var(--border); font-size: 13px;
  }
  .file-item:last-child { border-bottom: none; }
  .file-format { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--surface2); color: var(--accent); }
  .file-name { color: var(--muted); }
  .file-weight { margin-left: auto; color: var(--muted); font-size: 12px; }

  /* scrollbar */
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

  .svg-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
    background: linear-gradient(135deg, #7c3aed22, #6D28D922);
    border: 1px solid #7c3aed55; color: #6D28D9;
    text-transform: uppercase; letter-spacing: .5px;
  }

  /* ─── MOCKUP PANEL ─── */
  .mockup-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
  }
  .mockup-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
  }
  .mockup-header h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
  #mockupResetBtn {
    font-size: 11px; font-weight: 600;
    color: var(--muted); background: var(--surface2);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 5px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
  }
  #mockupResetBtn:hover { color: var(--accent); border-color: var(--accent); background: rgba(124,58,237,.08); }
  .mockup-badge {
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; letter-spacing: .5px;
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(124,58,237,.05));
    border: 1px solid rgba(124,58,237,.3); color: var(--accent);
  }
  .mockup-type-row {
    display:flex; gap:8px; margin-bottom:12px; align-items:center;
  }
  .mtype-select {
    flex:1; padding:8px 10px; font-size:13px; font-weight:600; border-radius:8px;
    border:1.5px solid var(--accent); background:var(--surface); color:var(--accent);
    cursor:pointer; font-family:inherit; outline:none;
  }
  .mtype-select:hover { background:rgba(124,58,237,.06); }
  .warp-select {
    flex:1; padding:4px 6px; border-radius:6px;
    border:1px solid var(--border); background:var(--surface2);
    color:var(--text); font-size:12px; font-family:inherit; cursor:pointer;
  }
  .tee-picker {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
  }
  .tee-thumb {
    width: 52px; height: 52px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--border); cursor: pointer; transition: all .2s;
    flex-shrink: 0;
  }
  .tee-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tee-thumb:hover { border-color: var(--accent); transform: scale(1.05); }
  .tee-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,58,237,.4); }
  .surprise-btn {
    padding: 7px 16px; font-size: 12px; border-radius: 20px;
    border: 1px solid var(--accent); background: rgba(124,58,237,.1);
    color: var(--accent); cursor: pointer; font-family: inherit;
    transition: all .2s; white-space: nowrap; letter-spacing: .3px;
  }
  .surprise-btn:hover { background: rgba(124,58,237,.2); }
  .mockup-bg-btn {
    padding: 4px 10px; font-size: 11px; border-radius: 6px;
    border: 1px solid var(--border); background: none; color: var(--muted);
    cursor: pointer; font-family: inherit; transition: all .2s;
  }
  .mockup-bg-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,.1); }
  /* tee colour swatches */
  .tee-swatch {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    padding: 0; transition: transform .12s, box-shadow .12s;
    position: relative;
  }
  .tee-swatch:hover { transform: scale(1.12); }
  .tee-swatch.active {
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  }
  .tee-fit-btn {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--surface); color: var(--muted);
    cursor: pointer; transition: all .15s;
  }
  .tee-fit-btn:hover { color: var(--text); }
  .tee-fit-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
  .mockup-style-row {
    display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
  }
  .mstyle-btn {
    padding: 5px 14px; font-size: 13px; border-radius: 7px;
    border: 1px solid var(--border); background: var(--surface2);
    color: var(--muted); cursor: pointer; font-family: inherit;
    transition: all .2s;
  }
  .mstyle-btn:hover { border-color: var(--accent); color: var(--text); }
  .mstyle-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(124,58,237,.1); }
  .mockup-controls { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
  .mockup-ctrl-row { display: flex; align-items: center; gap: 8px; }
  .ctrl-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .mockup-canvas-wrap {
    position: relative; border-radius: 12px; overflow: hidden;
    background: #f0ede8;
    height: clamp(380px, calc(100vh - 520px), 640px);
  }
  #mockupCanvas {
    display: block; width: 100%; height: 100%; object-fit: fill;
    cursor: grab; transform-origin: center center;
    transition: transform 0.08s ease;
    will-change: transform;
  }
  .zoom-bar {
    position: absolute; bottom: 10px; right: 10px;
    display: flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
    border-radius: 20px; padding: 4px 8px; z-index: 10;
  }
  .zoom-btn {
    width: 22px; height: 22px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.15);
    color: #fff; font-size: 15px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
  }
  .zoom-btn:hover { background: rgba(255,255,255,0.35); }
  .zoom-level { font-size: 11px; color: #fff; min-width: 34px; text-align: center; user-select: none; }
  .mockup-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; pointer-events: none;
  }
  .placeholder-icon { font-size: 64px; opacity: .3; }
  .placeholder-text { font-size: 14px; color: #999; font-weight: 500; }
  .placeholder-sub { font-size: 11px; color: #bbb; }

  .toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    background: var(--surface2); border: 1px solid var(--green);
    color: var(--green); padding: 12px 20px; border-radius: 10px;
    font-size: 14px; opacity: 0; transition: opacity .3s;
    pointer-events: none;
  }
  .toast.show { opacity: 1; }
.hero .hero-title em { background:none!important; -webkit-text-fill-color:initial!important; color:#7C3AED!important; }

:root {
  --bg:#FAF5FF; --surface:#FFFFFF; --surface2:#EDE9FE;
  --border:#DDD6FE; --text:#1E0A3C; --muted:#7C5CBF;
  --accent:#7C3AED; --accent2:#6D28D9; --green:#16A34A; --red:#DC2626;
}
nav { background:rgba(250,245,255,0.96)!important; }
.hero { background:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,.06) 0%, transparent 70%)!important; padding:28px 24px 24px!important; }
.hero .hero-title { background:none!important; -webkit-text-fill-color:initial!important; color:#1E0A3C!important; font-size:clamp(24px,4vw,42px)!important; margin-bottom:10px!important; }
.hero p { font-size:14px!important; margin-bottom:20px!important; }
.hero-stats { gap:20px!important; }
.hero-stat .num { font-size:20px!important; }
.hero-badge { margin-bottom:12px!important; }
.btn-primary.gold { background:#7C3AED!important; color:#fff!important; }
.btn-primary.gold:hover { background:#6D28D9!important; }
.btn-dl { background:#16A34A!important; }
.btn-dl:hover { background:#15803D!important; }
.font-card:hover { box-shadow:0 8px 32px rgba(124,58,237,.15)!important; }
.chip:hover,.chip.active { background:rgba(124,58,237,.08)!important; }
.style-btn.active,.mtab.active { background:rgba(124,58,237,.08)!important; }
.best-for-tag { background:rgba(124,58,237,.1)!important; border-color:rgba(124,58,237,.2)!important; }
.compare-hint { background:rgba(124,58,237,.1)!important; border-color:rgba(124,58,237,.2)!important; }
.cat-pill { background:rgba(124,58,237,.12)!important; border-color:rgba(124,58,237,.3)!important; }
pre { background:#f5f5f5!important; color:#333!important; }
::-webkit-scrollbar-track { background:#f0f0f0!important; }
/* font images panel */
.font-images-panel { margin-bottom:16px; }
.font-images-panel:empty { display:none; }
/* preview JPGs are MOSTLY 3:2 (1.5:1), but batches pulled from other sources
   (ifonts.xyz, Envato, etc.) don't all match that ratio — object-fit:contain
   (not cover) so an odd-ratio image letterboxes instead of getting its
   headline text cropped off the top/sides */
.font-img-main { border-radius:12px; overflow:hidden; border:1px solid var(--border); margin-bottom:8px; display:block; width:100%; aspect-ratio:1.5; }
.font-img-main img { width:100%; height:100%; display:block; object-fit:contain; object-position:center; background:var(--surface2); }
.font-img-thumbs { display:flex; gap:8px; }
.font-img-thumb { flex:1; border-radius:8px; overflow:hidden; border:2px solid transparent; cursor:pointer; transition:border-color .2s; background:#fff; }
.font-img-thumb.active { border-color:#7C3AED; }
.font-img-thumb img { width:100%; height:72px; object-fit:contain; display:block; padding:4px; }
/* card preview adapts to image size */
.card-preview { aspect-ratio:1.5; height:auto!important; min-height:unset!important; padding:0!important; overflow:hidden!important; }
/* strip always black for text clarity */
.card-strip { background:rgba(0,0,0,0.92)!important; border-top:1px solid #222!important; }
.strip-thumb { color:#fff!important; border-right-color:#333!important; }
/* Quick Try / Share / Recently Viewed */
.sidebar-card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:16px; }
.sidebar-card h3 { font-size:13px; color:var(--muted); margin-bottom:12px; text-transform:uppercase; letter-spacing:.5px; }
.quick-try-grid { display:flex; flex-wrap:wrap; gap:6px; }
.quick-try-grid button { font-size:12px; padding:5px 10px; border-radius:20px; border:1px solid var(--border); background:var(--surface2); cursor:pointer; transition:all .2s; color:var(--text); font-family:inherit; }
.quick-try-grid button:hover { border-color:#7C3AED; color:#7C3AED; background:rgba(124,58,237,.06); }
.share-btns { display:flex; gap:8px; flex-wrap:wrap; }
.share-btns button { flex:1; min-width:104px; display:inline-flex; align-items:center; justify-content:center; gap:5px; white-space:nowrap; font-size:12px; padding:7px 8px; border-radius:8px; border:1px solid var(--border); background:var(--surface2); cursor:pointer; transition:all .2s; color:var(--text); font-family:inherit; }
.share-btns button:hover { border-color:#7C3AED; color:#7C3AED; }
/* Category Gallery */
.gallery-item { display:flex; flex-direction:column; border-radius:10px; overflow:hidden; border:1px solid var(--border); cursor:pointer; transition:box-shadow .2s,transform .15s; }
.gallery-item:hover { box-shadow:0 4px 20px rgba(124,58,237,.18); transform:translateY(-2px); }
.gallery-item-img-wrap { width:100%; overflow:hidden; }
.gallery-item-img-wrap img { width:100%; height:auto; display:block; }
.gallery-item-name { font-size:11px; font-weight:600; padding:5px 8px 2px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:var(--surface2); }
.gallery-item-meta { font-size:10px; color:var(--muted); padding:0 8px 6px; background:var(--surface2); }

/* @font-face rules are injected dynamically via JS when each font card becomes visible */

/* ambient floating glyphs (Motion design layer) */
  .glyph{position:absolute;font-family:'Playfair Display',serif;font-weight:700;
    color:#7C3AED;opacity:.07;pointer-events:none;user-select:none;
    animation:floatY 13s ease-in-out infinite;line-height:1;z-index:0;}
  @keyframes floatY{0%,100%{transform:translateY(0) rotate(var(--rot,0deg))}50%{transform:translateY(-18px) rotate(var(--rot,0deg))}}
  @media (prefers-reduced-motion:reduce){.glyph{animation:none}}
  .hero{position:relative;overflow:hidden}
  /* lift hero copy above the glyphs — but NOT the absolutely-positioned
     showcase/specimens (this selector would outweigh them otherwise) */
  .hero-stage>*:not(.glyph):not(.hero-showcase):not(.hero-showcase-2):not(.hero-showcase-3):not(.hero-polaroid):not(.hero-polaroid-2):not(.hero-polaroid-3):not(.hero-cat-badge){position:relative;z-index:1}
  /* cycling word: fixed line box so font swaps never shift the layout */
  #heroCycle{display:inline-block;height:1.2em;line-height:1.1;vertical-align:top;overflow:visible;
    font-family:'Cormorant Garamond',serif!important;font-style:italic;font-weight:600;letter-spacing:.5px}
  /* card hover: tee mockup + info overlay */
  .card-hover{position:absolute;inset:0;z-index:6;background:#cfcfd2;display:flex;opacity:0;pointer-events:none;}
  .ch-tee{flex:1.1;position:relative;overflow:hidden;background:#cfcfd2}
  .ch-tee img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
  /* nowrap + no max-width: the word must render as ONE measurable line —
     the old max-width:75% + word-break:break-word combo stacked wide script
     fonts letter-by-letter vertically, and also defeated the JS auto-fit
     (it measures the rect width, which wrapping keeps artificially small).
     Overflow is handled by that JS shrink instead of by wrapping. */
  .ch-word{position:absolute;z-index:2;color:#fff;text-align:center;font-size:13px;line-height:1.2;
    left:50%;top:42%;transform:translate(-50%,-50%);white-space:nowrap;}
  .ch-info{flex:1;background:rgba(30,10,60,.92);padding:14px;display:flex;flex-direction:column;justify-content:center;gap:7px;}
  .ch-name{font-family:'Playfair Display',serif;font-size:15px;font-weight:700;color:#fff;line-height:1.2}
  .ch-row{font-size:10.5px;color:#C4B5FD}
  .ch-lic{font-size:9px;font-weight:700;padding:2px 8px;border-radius:50px;text-transform:uppercase;
    letter-spacing:.4px;align-self:flex-start;background:rgba(167,139,250,.25);color:#DDD6FE}

  /* ── hero live mockup showcase (right side): THREE small mockups, each
     auto-cycling independently with its own motion — mirrors the left side's
     three font previews for visual balance ── */
  /* ── device-agnostic layout: every side widget is anchored to the CENTERED
     hero copy (50% + safe margin), not to the screen edges. The copy's half
     width tops out around 250px, so starting the nearest widget at 50%+270px
     makes overlap geometrically impossible at ANY resolution; whatever doesn't
     fit simply bleeds off-screen and is clipped by the hero's overflow:hidden.
     No per-resolution breakpoints needed — only one floor for small tablets. ── */
  .hero-showcase{
    position:absolute;left:calc(50% + 606px);top:50%;transform:translateY(-50%);
    width:150px;height:190px;z-index:1;pointer-events:none;
    animation:hsFloat 11s ease-in-out infinite;
  }
  @keyframes hsFloat{0%,100%{transform:translateY(-50%)}50%{transform:translateY(calc(-50% - 9px))}}
  @media (prefers-reduced-motion:reduce){.hero-showcase{animation:none}}
  /* shared rules for ALL THREE slots — must list every slot class explicitly,
     since .hero-showcase-2/-3 are sibling classes, not descendants of
     .hero-showcase (a scoped-only rule here previously left slots 2/3 with
     no sizing/clipping at all, so their images blew up past the box) */
  .hero-showcase .hs-stage, .hero-showcase-2 .hs-stage, .hero-showcase-3 .hs-stage{
    position:relative;width:100%;height:100%;overflow:hidden;border-radius:10px;
  }
  .hero-showcase img, .hero-showcase-2 img, .hero-showcase-3 img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
  }
  .hero-showcase .hs-word, .hero-showcase-2 .hs-word, .hero-showcase-3 .hs-word{
    position:absolute;z-index:2;text-align:center;line-height:1.2;
    transform:translate(-50%,-50%);max-width:80%;white-space:nowrap;
    font-size:13px;pointer-events:none;
  }

  .hero-showcase-2{
    position:absolute;left:calc(50% + 438px);top:50%;transform:translateY(-42%);
    width:150px;height:190px;z-index:1;pointer-events:none;
    animation:hs2Breathe 9.5s ease-in-out infinite;
  }
  @keyframes hs2Breathe{0%,100%{transform:translateY(-42%)}50%{transform:translateY(calc(-42% - 7px))}}
  @media (prefers-reduced-motion:reduce){.hero-showcase-2{animation:none}}

  .hero-showcase-3{
    position:absolute;left:calc(50% + 270px);top:50%;transform:translateY(-50%) rotate(2.5deg);
    width:150px;height:190px;z-index:1;pointer-events:none;
    animation:hs3Wobble 11s ease-in-out infinite;transform-origin:top center;
  }
  @keyframes hs3Wobble{0%,100%{transform:translateY(-50%) rotate(2.5deg)}50%{transform:translateY(-50%) rotate(-2.5deg)}}
  @media (prefers-reduced-motion:reduce){.hero-showcase-3{animation:none}}

  /* NOTE: no per-resolution breakpoints here — center-anchoring makes overlap
     impossible; outer widgets just bleed off-screen (clipped by hero overflow)
     as the viewport narrows, on ANY device. One small floor query at the end. */

  /* ── hero font showcase (left side): a Polaroid of the real font preview
     art, auto-cycling with a "materialize" motion (blur + rotate settle) —
     deliberately different from the right side's crossfade/scale-pop cycle ── */
  .hero-polaroid{
    position:absolute;right:calc(50% + 98px);top:50%;transform:translateY(-58%);
    width:160px;z-index:1;
    animation:hpFloat 14s ease-in-out infinite;
  }
  @keyframes hpFloat{0%,100%{transform:translateY(-58%)}50%{transform:translateY(calc(-58% - 11px))}}
  @media (prefers-reduced-motion:reduce){.hero-polaroid{animation:none}}
  /* preview JPGs are all a fixed 3:2 (1.5:1) ratio across the whole catalog —
     match the frame to that exactly so cover fills with zero crop, zero frame */
  .hp-card{filter:drop-shadow(0 16px 26px rgba(76,29,149,.2));cursor:pointer}
  .hp-card .hp-frame{position:relative;width:100%;aspect-ratio:1.5;overflow:hidden}
  .hp-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
  .hp-cap{
    margin-top:10px;text-align:center;font-family:'Playfair Display',serif;
    font-size:11.5px;font-weight:700;color:#4C1D95;line-height:1.2;
  }

  /* second font preview, fills the empty space beside the first — same size,
     its own gentle breathing float (no walk/slide) */
  .hero-polaroid-2{
    position:absolute;right:calc(50% - 80px);top:50%;transform:translateY(-42%);
    width:160px;z-index:1;
    animation:hp2Breathe 10s ease-in-out infinite;
  }
  @keyframes hp2Breathe{0%,100%{transform:translateY(-42%)}50%{transform:translateY(calc(-42% - 8px))}}
  @media (prefers-reduced-motion:reduce){.hero-polaroid-2{animation:none}}

  /* third font preview — its own idle motion: a gentle pendulum wobble,
     distinct from #1's slide and #2's breathing scale */
  .hero-polaroid-3{
    position:absolute;right:calc(50% - 258px);top:50%;transform:translateY(-50%) rotate(0deg);
    width:160px;z-index:1;transform-origin:top center;
    animation:hp3Wobble 12s ease-in-out infinite;
  }
  @keyframes hp3Wobble{
    0%,100%{transform:translateY(-50%) rotate(-2.5deg)}
    50%{transform:translateY(-50%) rotate(2.5deg)}
  }
  @media (prefers-reduced-motion:reduce){.hero-polaroid-3{animation:none}}


  /* category badge under the 3 previews — letters reveal one by one, syncs
     with whichever font is currently in slot #1 */
  .hero-cat-badge{
    position:absolute;right:calc(50% + 128px);top:calc(50% + 96px);z-index:1;
    display:inline-flex;align-items:center;gap:7px;
    padding:7px 18px;background:#fff;border:1.5px solid #DDD6FE;border-radius:50px;
    box-shadow:0 8px 18px rgba(76,29,149,.12);
  }
  .hcb-dot{width:6px;height:6px;border-radius:50%;background:#7C3AED;flex-shrink:0}
  .hcb-text{font-family:'Inter',sans-serif;font-size:11px;font-weight:700;color:#4C1D95;
    text-transform:uppercase;letter-spacing:1.2px;white-space:nowrap}
  .hcb-text span{display:inline-block}
  /* ── design-at-fixed-width + auto-scale ──
     The hero is laid out ONCE at its ideal design width (1700px — where every
     decoration fits with nothing clipped), inside .hero-stage. A tiny JS
     routine (fitHero) then scales the whole stage down proportionally to the
     actual viewport width — the exact effect of the browser's zoom-out, but
     automatic. One layout, every resolution, no per-breakpoint tiers.
     Below 700px (phones) scaling would make everything unreadably small, so
     the stage reverts to fluid width and the decorations hide instead. */
  .hero-stage{position:relative;transform-origin:top center;}
  /* margin-left calc, NOT margin:0 auto — auto margins resolve to 0 when the
     child is WIDER than its parent, so on any screen narrower than 1700px the
     stage stuck to the left edge and got clipped on the right even after
     scaling. calc(50% - 850px) truly centers the fixed-width stage, which
     also lines its center up with the scale()'s transform-origin. */
  .hero.stage-scaled .hero-stage{width:1700px;margin-left:calc(50% - 850px);}
  /* fixed (design-width) type sizes while scaled — the h1's clamp() is
     viewport-based, which would shrink AGAIN on top of the stage transform
     (double-shrink); pin everything to its 1700px-design size instead. */
  .hero.stage-scaled .hero-title{font-size:42px!important}
  /* text column moves to where the font-preview cluster used to sit (left of
     center) while that cluster re-centers under itself — mobile (<700px)
     keeps the original centered layout untouched, since .stage-scaled never
     applies there */
  .hero.stage-scaled .hero-copy{width:480px;margin-left:calc(50% - 788px);margin-right:0;text-align:left}
  .hero.stage-scaled .hero-copy p{margin-left:0;margin-right:0}
  .hero.stage-scaled .hero-copy .hero-stats{justify-content:flex-start}
  @media (max-width:700px){
    .hero-showcase,.hero-showcase-2,.hero-showcase-3,
    .hero-polaroid,.hero-polaroid-2,.hero-polaroid-3,.hero-cat-badge{display:none}
  }

.occ-links a{font-size:13px;padding:6px 14px;border-radius:20px;border:1px solid var(--border);background:var(--surface);color:var(--muted);text-decoration:none}.occ-links a:hover{border-color:var(--accent);color:var(--accent)}
