:root {
      color-scheme: light;
      --paper: #fafaf9;
      --paper-stage: #f2f2ef;
      --ink: #141713;
      --muted: #383d35;
      --subtle: #4b5247;
      --line: #d8d7cc;
      --line-strong: #b8b7aa;
      --green-deep: #1e3625;
      --green-soft: #d5e5d1;
      --green-glow: #e8f0e6;
      --peach: #eed8ce;
      --white: #ffffff;
      --serif: Georgia, 'Times New Roman', serif;
      --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      --wrap: 1140px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    ::selection {
      background: var(--green-soft);
      color: var(--ink);
    }
    :focus-visible {
      outline: 2px solid var(--green-deep);
      outline-offset: 2px;
    }
    body {
      margin: 0;
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 15px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      padding-bottom: 0;
    }
    .wrap {
      width: min(calc(100% - 48px), var(--wrap));
      margin-inline: auto;
    }

    /* Top banner */
    .project-banner {
      background: var(--ink);
      color: #edece6;
      font-size: 12px;
      letter-spacing: .02em;
      text-align: center;
      padding: 8px 16px;
      border-bottom: 1px solid rgba(255,255,255,.1);
    }

    /* Header */
    .site-header {
      border-bottom: 1px solid var(--line);
      background: rgba(250, 250, 249, 0.98);
      backdrop-filter: blur(8px);
      position: sticky;
      top: 0;
      z-index: 100;
      height: 64px;
      display: flex;
      align-items: center;
    }
    .nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
    .brand-wrap {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--ink);
    }
    .brand-mark {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      background: var(--green-deep);
      color: var(--paper);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: var(--serif);
      font-weight: 700;
      font-size: 17px;
    }
    .brand-name {
      font-family: var(--serif);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -.02em;
    }
    .brand-name span {
      color: var(--green-deep);
    }
    .studio-badge {
      display: inline-block;
      padding: 2px 7px;
      background: var(--green-deep);
      color: var(--paper);
      font-family: var(--sans);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
      border-radius: 4px;
    }
    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      color: var(--ink);
      font-size: 13px;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(20, 23, 19, 0.05);
      border: 1px solid var(--line);
      min-height: 40px;
      transition: all .2s ease;
    }
    .back-link:hover {
      background: rgba(20, 23, 19, 0.09);
      color: var(--green-deep);
    }
    .nav-cta {
      text-decoration: none;
      background: var(--green-deep);
      color: var(--paper);
      padding: 8px 16px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      transition: opacity .2s ease;
      white-space: nowrap;
    }
    .nav-cta:hover {
      opacity: .92;
    }

    /* Main Section */
    .section {
      padding-block: 32px 64px;
    }
    .section-head {
      max-width: 720px;
      margin-bottom: 24px;
    }
    h1 {
      font-family: var(--serif);
      font-size: clamp(26px, 4.5vw, 38px);
      line-height: 1.18;
      letter-spacing: -.025em;
      margin: 0 0 10px 0;
      font-weight: 700;
      text-wrap: balance;
    }
    .section-intro {
      color: var(--muted);
      font-size: 14.5px;
      line-height: 1.6;
      margin: 0;
      text-wrap: pretty;
    }

    /* Studio Customizer Layout */
    .studio-layout {
      display: grid;
      grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
      gap: 36px;
      align-items: start;
    }

    /* Live Preview Column */
    .studio-preview-pane {
      display: flex;
      flex-direction: column;
      align-items: center;
      background: var(--paper-stage);
      border: 1px solid var(--line);
      padding: 18px 20px 24px;
      border-radius: 12px;
      position: sticky;
      top: 84px;
      z-index: 20;
    }
    .preview-header-bar {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(20,23,19,.08);
    }
    .preview-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .03em;
      text-transform: uppercase;
      color: var(--subtle);
    }
    .preview-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #34a853;
      box-shadow: 0 0 0 2px rgba(52,168,83,.25);
    }
    .model-badge-tag {
      font-size: 12px;
      font-weight: 600;
      background: var(--white);
      color: var(--green-deep);
      padding: 3px 10px;
      border-radius: 999px;
      border: 1px solid var(--line);
    }

    .studio-phone-svg {
      width: min(220px, 100%);
      height: 380px;
      filter: drop-shadow(0 14px 18px rgba(20,23,19,.16));
      transition: transform .2s ease;
      display: block;
    }
    .studio-phone-svg:hover {
      transform: scale(1.015);
    }

    /* Controls Column */
    .studio-controls {
      display: flex;
      flex-direction: column;
      gap: 20px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 28px;
    }
    .control-fieldset {
      display: flex;
      flex-direction: column;
      gap: 10px;
      border: none;
      padding: 0 0 20px 0;
      margin: 0;
      border-bottom: 1px solid var(--line);
    }
    .control-fieldset:last-of-type {
      border-bottom: none;
      padding-bottom: 4px;
    }
    .control-legend {
      font-family: var(--sans);
      font-size: 16px;
      font-weight: 700;
      color: var(--ink);
      margin: 0;
      padding: 0;
      letter-spacing: -.01em;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .control-sub {
      font-size: 13px;
      color: var(--muted);
      margin: -2px 0 2px 0;
      line-height: 1.45;
    }

    /* Universal models helper */
    .universal-models-banner {
      background: var(--green-glow);
      border: 1px solid #c2dbbe;
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 12.5px;
      line-height: 1.5;
      color: #233b28;
    }
    .universal-models-banner strong {
      color: var(--green-deep);
    }

    /* Segmented Selector Options */
    .option-grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    .option-tile {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 10px 12px;
      text-align: left;
      cursor: pointer;
      font-family: inherit;
      transition: all .2s ease;
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-height: 48px;
      justify-content: center;
    }
    .option-tile:hover {
      border-color: var(--line-strong);
      background: #f0efe8;
    }
    .option-tile strong {
      font-size: 13.5px;
      color: var(--ink);
      font-weight: 700;
    }
    .option-tile span {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.35;
    }
    .option-tile.is-active {
      background: var(--green-glow);
      border-color: var(--green-deep);
      box-shadow: 0 0 0 1px var(--green-deep);
    }

    /* Source Tabs */
    .source-tabs {
      display: flex;
      background: var(--paper);
      border-radius: 8px;
      padding: 4px;
      gap: 4px;
      border: 1px solid var(--line);
      margin-bottom: 4px;
    }
    .source-tab {
      flex: 1;
      background: transparent;
      border: none;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 600;
      color: var(--subtle);
      cursor: pointer;
      border-radius: 6px;
      font-family: inherit;
      transition: all .2s ease;
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    .source-tab.is-active {
      background: var(--white);
      color: var(--green-deep);
      font-weight: 700;
      box-shadow: 0 1px 3px rgba(20,23,19,.1);
    }

    /* Template Cards (Rich Miniature Previews) */
    /* Template Group Head & Multi-Member Grid */
    .template-group-head {
      margin-bottom: 8px;
    }
    .template-group-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .template-selector.member-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
    }
    .template-selector.art-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
    .template-card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
    }

    .template-selector {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }
    .template-card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 8px;
      cursor: pointer;
      transition: all .2s ease;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .template-card:hover {
      border-color: var(--line-strong);
    }
    .template-card-thumb {
      width: 100%;
      height: 62px;
      border-radius: 6px;
      margin-bottom: 8px;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(0,0,0,.08);
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f7f6f2;
    }
    .template-card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }
    .template-card-thumb svg {
      width: 100%;
      height: 100%;
      display: block;
    }
    .template-card-title {
      margin: 0;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.25;
    }
    .template-card-desc {
      margin: 3px 0 0 0;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.3;
    }
    .template-card.is-selected {
      background: var(--green-glow);
      border-color: var(--green-deep);
      box-shadow: 0 0 0 1px var(--green-deep);
    }

    /* Upload pane */
    .upload-box {
      background: #faf9f6;
      border: 1.5px dashed var(--line-strong);
      border-radius: 8px;
      padding: 20px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
    .upload-status {
      font-size: 12.5px;
      color: var(--green-deep);
      font-weight: 600;
      min-height: 18px;
    }

    /* Form Fields */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .input-field-wrap {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .field-label {
      font-size: 12px;
      font-weight: 600;
      color: var(--subtle);
    }
    .text-input-field {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 6px;
      font-family: inherit;
      font-size: 13.5px;
      background: var(--paper);
      color: var(--ink);
      box-sizing: border-box;
      min-height: 44px;
    }
    .text-input-field:focus {
      border-color: var(--green-deep);
      background: var(--white);
    }

    /* Studio Summary Box (Desktop) */
    .studio-summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding-top: 8px;
    }
    .studio-summary-text {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
    }
    .button-dark {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: var(--green-deep);
      color: var(--paper);
      padding: 12px 22px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
      font-size: 13.5px;
      white-space: nowrap;
      transition: opacity .2s ease, transform .2s ease;
      cursor: pointer;
      border: none;
      min-height: 44px;
    }
    .button-dark:hover {
      opacity: .92;
      transform: translateY(-1px);
    }
    .button-outline {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: transparent;
      color: var(--ink);
      border: 1px solid var(--line-strong);
      padding: 10px 18px;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 600;
      font-size: 13px;
      cursor: pointer;
      min-height: 42px;
      transition: all .2s ease;
    }
    .button-outline:hover {
      background: rgba(20,23,19,.04);
      border-color: var(--ink);
    }

    /* Mobile Sticky Bottom Bar */
    .mobile-bottom-bar {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
      z-index: 90;
      box-shadow: 0 -4px 16px rgba(20,23,19,.08);
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .mobile-bar-meta {
      display: flex;
      flex-direction: column;
      gap: 2px;
      overflow: hidden;
    }
    .mobile-bar-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mobile-bar-sub {
      font-size: 12px;
      color: var(--muted);
      white-space: nowrap;
    }
    .mobile-bar-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: var(--green-deep);
      color: var(--paper);
      padding: 10px 18px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      min-height: 44px;
      flex-shrink: 0;
    }

    /* Footer */
    .site-footer {
      border-top: 1px solid var(--line);
      padding: 56px 0 100px;
      background: var(--paper);
      color: var(--muted);
      font-size: 13.5px;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 2fr 1.1fr 1.1fr 1.2fr;
      gap: 40px;
      margin-bottom: 40px;
    }
    .footer-col-brand .brand {
      margin-bottom: 14px;
      text-decoration: none;
    }
    .footer-desc {
      font-size: 13.5px;
      line-height: 1.6;
      color: var(--muted);
      margin-bottom: 16px;
      max-width: 320px;
    }
    .footer-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .footer-badge {
      display: inline-flex;
      align-items: center;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .02em;
      padding: 4px 10px;
      background: rgba(30, 54, 37, 0.05);
      color: var(--green-deep);
      border-radius: 999px;
      border: 1px solid rgba(30, 54, 37, 0.12);
    }
    .footer-col-title {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--ink);
      margin-bottom: 16px;
    }
    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .footer-links a {
      color: var(--muted);
      text-decoration: none;
      transition: color .2s ease;
      font-size: 13.5px;
    }
    .footer-links a:hover {
      color: var(--green-deep);
    }
    .footer-meta-item {
      display: flex;
      flex-direction: column;
      gap: 3px;
      margin-bottom: 14px;
    }
    .footer-meta-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .footer-meta-val {
      font-size: 13.5px;
      color: var(--ink);
      font-weight: 600;
    }
    .footer-meta-link {
      font-size: 13.5px;
      color: var(--green-deep);
      font-weight: 600;
      text-decoration: none;
      transition: opacity .2s ease;
    }
    .footer-meta-link:hover {
      text-decoration: underline;
    }
    .footer-bottom {
      border-top: 1px solid var(--line);
      padding-top: 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
      font-size: 12.5px;
    }
    .footer-copy {
      color: var(--muted);
    }
    .footer-academic-note {
      font-size: 11.5px;
      color: var(--muted);
      background: rgba(20, 23, 19, 0.04);
      padding: 4px 10px;
      border-radius: 6px;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .studio-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
      }
      .studio-preview-pane {
        position: relative;
        top: 0;
        z-index: 5;
        padding: 16px 16px 20px;
        background: var(--paper-stage);
      }
      .studio-phone-svg {
        height: 250px;
        width: auto;
      }
      .mobile-bottom-bar {
        display: flex;
      }
      .studio-summary {
        display: none;
      }
    }
    @media (max-width: 600px) {
      .wrap {
        width: calc(100% - 24px);
      }
      .project-banner {
        font-size: 12px;
        padding: 6px 10px;
      }
      .site-header {
        height: 56px;
      }
      .brand-name {
        font-size: 18px;
      }
      .studio-badge {
        display: none;
      }
      .back-link span {
        display: none;
      }
      .back-link {
        padding: 6px 10px;
        min-height: 36px;
      }
      .nav-cta {
        font-size: 12px;
        padding: 6px 12px;
        min-height: 36px;
      }
      .section {
        padding-block: 16px 40px;
      }
      .section-head {
        margin-bottom: 14px;
      }
      h1 {
        font-size: 22px;
        margin-bottom: 6px;
      }
      .section-intro {
        font-size: 13px;
        line-height: 1.5;
      }
      .studio-preview-pane {
        padding: 12px 14px 16px;
      }
      .studio-phone-svg {
        height: 220px;
      }
      .studio-controls {
        padding: 18px 14px;
        gap: 16px;
      }
      .control-fieldset {
        gap: 8px;
        padding-bottom: 16px;
      }
      .control-legend {
        font-size: 15px;
      }
      .universal-models-banner {
        font-size: 12px;
        padding: 8px 10px;
      }
      .option-grid-2 {
        gap: 8px;
      }
      .option-tile {
        padding: 8px 10px;
      }
      .option-tile strong {
        font-size: 12.5px;
      }
      .option-tile span {
        font-size: 12px;
      }
      .template-selector.member-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
      }
      .template-selector.art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
      }
      .template-card-thumb {
        height: 52px;
        margin-bottom: 4px;
      }
      .template-card-title {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
      }
      .template-card {
        padding: 6px 4px 8px;
      }
      .template-card-thumb {
        height: 52px;
        margin-bottom: 6px;
      }
      .template-card-title {
        font-size: 12px;
      }
      .template-card-desc {
        display: none;
      }
      .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .site-footer {
        padding-bottom: 120px;
      }
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }
      .footer-col-brand {
        grid-column: span 1;
      }
      .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }
    }

    @media (max-width: 900px) and (min-width: 601px) {
      .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
      }
      .footer-col-brand {
        grid-column: span 2;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.05s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.05s !important;
        scroll-behavior: auto !important;
      }
    }
