{
  "id": 86,
  "slug": "kvadrat-nordic-textile",
  "name": "Kvadrat Nordic Textile",
  "kind": "style",
  "family": "Nordic & Scandinavian Craft",
  "sourceSite": {
    "name": "Kvadrat",
    "url": "https://www.kvadrat.dk/",
    "verifiedStatus": 200
  },
  "tagline": "Danish architectural textile house pairing tactile woven-wool swatches, warm raw linen surfaces, and disciplined Nordic grids.",
  "whyUnique": "Translates physical upholstery weaves, yarn composition specs, and Martindale abrasion ratings into an ultra-calm Copenhagen showroom interface with live warp-and-weft swatch previews.",
  "theme": "light",
  "mobileStrength": "high",
  "tags": [
    "danish-textile",
    "nordic-craft",
    "tactile-weave",
    "material-library",
    "warm-linen",
    "architectural-grid"
  ],
  "bestFor": [
    "Architectural textile & material libraries",
    "Scandinavian interior & upholstery studios",
    "Industrial craft & tactile product catalogs",
    "Sustainable fabric & furniture brands"
  ],
  "palette": [
    {
      "role": "canvas",
      "hex": "#F5F2EB",
      "name": "Unbleached Flax Linen"
    },
    {
      "role": "surface",
      "hex": "#EAE4D8",
      "name": "Woven Oat Canvas"
    },
    {
      "role": "ink",
      "hex": "#1B1A18",
      "name": "Charcoal Weft"
    },
    {
      "role": "accent",
      "hex": "#B55239",
      "name": "Hallingdal Terracotta"
    },
    {
      "role": "muted",
      "hex": "#736D63",
      "name": "Raw Wool Stone"
    }
  ],
  "typography": {
    "display": "Newsreader, Georgia, serif",
    "body": "Outfit, -apple-system, sans-serif",
    "mono": "IBM Plex Mono, ui-monospace, monospace",
    "googleFontsUrl": "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Outfit:wght@400;500;600&display=swap",
    "scaleNotes": "Editorial Newsreader serif titles (34–54px) paired with clean 15px Outfit material descriptions and 11px monospace Martindale/composition specs."
  },
  "layoutNotes": "Showroom split-stage featuring a macro SVG warp-and-weft weave magnifier beside a color-way swatch matrix, followed by a hairline-divided textile specification table.",
  "interactionNotes": "Clicking any wool color-way swatch live-recolors the macro SVG weave texture, updates colorway code, Martindale abrasion score, and acoustic absorption rating, and allows adding swatches to a sample box.",
  "mobileNotes": "Macro weave stage and swatch grid stack cleanly at 390px with >=44px color-way tiles and a compact sticky sample-box tray.",
  "agentGuardrails": {
    "do": [
      "Use fine CSS/SVG woven textures and warm flax tones (#F5F2EB) to communicate real textile materiality.",
      "Display authentic technical textile metadata (Martindale rubs, wool/viscose %, acoustic class).",
      "Keep layout alignment disciplined with calm 1px hairline dividers."
    ],
    "dont": [
      "Do not use glossy neon gradients or heavy floating drop shadows.",
      "Do not crowd the swatch showroom with loud e-commerce countdown timers."
    ]
  },
  "demoFile": "demos/kvadrat-nordic-textile.html",
  "thumbDesktop": "thumbs/kvadrat-nordic-textile-desktop.webp",
  "thumbMobile": "thumbs/kvadrat-nordic-textile-mobile.webp",
  "urls": {
    "page": "https://templates.michaelpitts.net/t/kvadrat-nordic-textile",
    "markdown": "https://templates.michaelpitts.net/t/kvadrat-nordic-textile.md",
    "api": "https://templates.michaelpitts.net/api/templates/kvadrat-nordic-textile",
    "demo": "https://templates.michaelpitts.net/demos/kvadrat-nordic-textile.html",
    "thumbDesktop": "https://templates.michaelpitts.net/thumbs/kvadrat-nordic-textile-desktop.webp",
    "thumbMobile": "https://templates.michaelpitts.net/thumbs/kvadrat-nordic-textile-mobile.webp"
  },
  "agentPrompt": "Design & build using template #086 \"Kvadrat Nordic Textile\" (style / Nordic & Scandinavian Craft, light theme).\nFull AI blueprint & standalone starter code: https://templates.michaelpitts.net/t/kvadrat-nordic-textile.md\nLive demo: https://templates.michaelpitts.net/demos/kvadrat-nordic-textile.html\nReal-world inspiration: Kvadrat (https://www.kvadrat.dk/)\n\nCore aesthetic: Translates physical upholstery weaves, yarn composition specs, and Martindale abrasion ratings into an ultra-calm Copenhagen showroom interface with live warp-and-weft swatch previews.\nPalette: canvas: #F5F2EB (Unbleached Flax Linen), surface: #EAE4D8 (Woven Oat Canvas), ink: #1B1A18 (Charcoal Weft), accent: #B55239 (Hallingdal Terracotta), muted: #736D63 (Raw Wool Stone)\nTypography: Display=\"Newsreader, Georgia, serif\", Body=\"Outfit, -apple-system, sans-serif\", Mono=\"IBM Plex Mono, ui-monospace, monospace\"\nLayout: Showroom split-stage featuring a macro SVG warp-and-weft weave magnifier beside a color-way swatch matrix, followed by a hairline-divided textile specification table.\nInteractions: Clicking any wool color-way swatch live-recolors the macro SVG weave texture, updates colorway code, Martindale abrasion score, and acoustic absorption rating, and allows adding swatches to a sample box.\nMobile: Macro weave stage and swatch grid stack cleanly at 390px with >=44px color-way tiles and a compact sticky sample-box tray.\n\nGuardrails:\n- DO: Use fine CSS/SVG woven textures and warm flax tones (#F5F2EB) to communicate real textile materiality.\n- DO: Display authentic technical textile metadata (Martindale rubs, wool/viscose %, acoustic class).\n- DO: Keep layout alignment disciplined with calm 1px hairline dividers.\n- DON'T: Do not use glossy neon gradients or heavy floating drop shadows.\n- DON'T: Do not crowd the swatch showroom with loud e-commerce countdown timers.",
  "sourceCode": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n  <title>Kvadrat — Architectural Textile Showroom</title>\n  <link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n  <link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n  <link href=\"https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Outfit:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n  <style>\n    :root {\n      --canvas: #F5F2EB;\n      --surface: #EAE4D8;\n      --ink: #1B1A18;\n      --accent: #B55239;\n      --muted: #736D63;\n      --rule: rgba(27, 26, 24, 0.14);\n      --warp: #B55239;\n      --weft: #8E3D28;\n      --thread-hi: #D87A61;\n    }\n\n    *, *::before, *::after { box-sizing: border-box; }\n\n    html, body {\n      margin: 0;\n      padding: 0;\n      background: var(--canvas);\n      color: var(--ink);\n      font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;\n      -webkit-font-smoothing: antialiased;\n      overflow-x: hidden;\n    }\n\n    .topbar {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      padding: 16px 24px;\n      border-bottom: 1px solid var(--rule);\n      position: sticky;\n      top: 0;\n      background: rgba(245, 242, 235, 0.94);\n      backdrop-filter: blur(8px);\n      z-index: 30;\n    }\n\n    .brand {\n      display: flex;\n      align-items: baseline;\n      gap: 12px;\n      text-decoration: none;\n      color: var(--ink);\n    }\n\n    .brand-word {\n      font-family: 'Outfit', sans-serif;\n      font-weight: 600;\n      letter-spacing: 0.16em;\n      text-transform: uppercase;\n      font-size: 14px;\n    }\n\n    .brand-sub {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      color: var(--muted);\n    }\n\n    .nav-links {\n      display: flex;\n      gap: 24px;\n      align-items: center;\n    }\n\n    .nav-links a {\n      text-decoration: none;\n      color: var(--muted);\n      font-size: 13px;\n      font-weight: 500;\n      letter-spacing: 0.04em;\n      transition: color 0.2s;\n    }\n\n    .nav-links a:hover, .nav-links a.active { color: var(--ink); }\n\n    .box-btn {\n      min-height: 44px;\n      padding: 0 16px;\n      border: 1px solid var(--ink);\n      background: transparent;\n      color: var(--ink);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      letter-spacing: 0.08em;\n      text-transform: uppercase;\n      cursor: pointer;\n      display: inline-flex;\n      align-items: center;\n      gap: 8px;\n      transition: background 0.2s, color 0.2s;\n    }\n\n    .box-btn:hover { background: var(--ink); color: var(--canvas); }\n\n    .mobile-menu-btn {\n      display: none;\n      min-width: 44px;\n      min-height: 44px;\n      border: 1px solid var(--rule);\n      background: transparent;\n      color: var(--ink);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      cursor: pointer;\n    }\n\n    .mobile-drawer {\n      display: none;\n      flex-direction: column;\n      border-bottom: 1px solid var(--rule);\n      background: var(--surface);\n      padding: 12px 20px;\n      gap: 4px;\n    }\n\n    .mobile-drawer.open { display: flex; }\n\n    .mobile-drawer a {\n      min-height: 44px;\n      display: flex;\n      align-items: center;\n      text-decoration: none;\n      color: var(--ink);\n      font-size: 14px;\n      border-bottom: 1px solid var(--rule);\n    }\n\n    .mobile-drawer a:last-child { border-bottom: none; }\n\n    .container {\n      max-width: 1240px;\n      margin: 0 auto;\n      padding: 36px 24px 64px;\n    }\n\n    .intro-row {\n      display: grid;\n      grid-template-columns: 1.4fr 1fr;\n      gap: 32px;\n      padding-bottom: 32px;\n      border-bottom: 1px solid var(--rule);\n      align-items: end;\n    }\n\n    .eyebrow {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      letter-spacing: 0.14em;\n      text-transform: uppercase;\n      color: var(--muted);\n      margin: 0 0 12px;\n    }\n\n    h1 {\n      font-family: 'Newsreader', Georgia, serif;\n      font-weight: 400;\n      font-size: clamp(2.1rem, 4.4vw, 3.6rem);\n      line-height: 1.06;\n      letter-spacing: -0.02em;\n      margin: 0;\n    }\n\n    h1 em { font-style: italic; color: var(--accent); }\n\n    .intro-copy {\n      font-size: 15px;\n      line-height: 1.65;\n      color: var(--muted);\n      margin: 0;\n    }\n\n    .showroom-grid {\n      display: grid;\n      grid-template-columns: 1.15fr 0.85fr;\n      gap: 36px;\n      padding: 36px 0;\n      border-bottom: 1px solid var(--rule);\n    }\n\n    .weave-stage {\n      background: var(--surface);\n      border: 1px solid var(--rule);\n      padding: 20px;\n      display: flex;\n      flex-direction: column;\n      gap: 16px;\n    }\n\n    .stage-head {\n      display: flex;\n      justify-content: space-between;\n      align-items: center;\n      flex-wrap: wrap;\n      gap: 10px;\n    }\n\n    .stage-code {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 12px;\n      letter-spacing: 0.08em;\n    }\n\n    .zoom-group {\n      display: flex;\n      gap: 6px;\n    }\n\n    .zoom-btn {\n      min-height: 44px;\n      min-width: 44px;\n      padding: 0 12px;\n      border: 1px solid var(--rule);\n      background: var(--canvas);\n      color: var(--ink);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      cursor: pointer;\n    }\n\n    .zoom-btn.active {\n      background: var(--ink);\n      color: var(--canvas);\n      border-color: var(--ink);\n    }\n\n    .weave-frame {\n      width: 100%;\n      aspect-ratio: 16 / 10;\n      border: 1px solid rgba(27, 26, 24, 0.2);\n      overflow: hidden;\n      position: relative;\n      background: var(--warp);\n    }\n\n    .weave-frame svg {\n      width: 100%;\n      height: 100%;\n      display: block;\n      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);\n    }\n\n    .weave-caption {\n      display: flex;\n      justify-content: space-between;\n      flex-wrap: wrap;\n      gap: 8px;\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      color: var(--muted);\n    }\n\n    .swatch-panel {\n      display: flex;\n      flex-direction: column;\n      justify-content: space-between;\n      gap: 24px;\n    }\n\n    .swatch-title {\n      font-family: 'Newsreader', serif;\n      font-size: 28px;\n      font-weight: 400;\n      margin: 0 0 6px;\n    }\n\n    .swatch-designer {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      color: var(--muted);\n      letter-spacing: 0.06em;\n      text-transform: uppercase;\n      margin: 0 0 18px;\n    }\n\n    .swatch-grid {\n      display: grid;\n      grid-template-columns: repeat(4, 1fr);\n      gap: 10px;\n    }\n\n    .swatch-tile {\n      min-height: 64px;\n      border: 1px solid var(--rule);\n      padding: 8px;\n      background: var(--canvas);\n      cursor: pointer;\n      display: flex;\n      flex-direction: column;\n      justify-content: space-between;\n      text-align: left;\n      transition: transform 0.18s, border-color 0.18s;\n    }\n\n    .swatch-tile:hover { transform: translateY(-2px); }\n\n    .swatch-tile.active {\n      border-color: var(--ink);\n      box-shadow: inset 0 0 0 1px var(--ink);\n    }\n\n    .swatch-chip {\n      width: 100%;\n      height: 28px;\n      border: 1px solid rgba(0, 0, 0, 0.12);\n    }\n\n    .swatch-num {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 10px;\n      color: var(--ink);\n      margin-top: 6px;\n    }\n\n    .spec-list {\n      border-top: 1px solid var(--rule);\n      margin: 0;\n      padding: 0;\n      list-style: none;\n    }\n\n    .spec-list li {\n      display: flex;\n      justify-content: space-between;\n      gap: 12px;\n      padding: 11px 0;\n      border-bottom: 1px solid var(--rule);\n      font-size: 13px;\n    }\n\n    .spec-k {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      text-transform: uppercase;\n      color: var(--muted);\n    }\n\n    .spec-v { font-weight: 500; text-align: right; }\n\n    .action-row {\n      display: flex;\n      gap: 12px;\n      flex-wrap: wrap;\n    }\n\n    .primary-btn {\n      flex: 1;\n      min-height: 46px;\n      border: 1px solid var(--ink);\n      background: var(--ink);\n      color: var(--canvas);\n      font-family: 'Outfit', sans-serif;\n      font-size: 13px;\n      font-weight: 500;\n      letter-spacing: 0.06em;\n      text-transform: uppercase;\n      cursor: pointer;\n      padding: 0 18px;\n    }\n\n    .primary-btn:hover { background: var(--accent); border-color: var(--accent); }\n\n    .collection-section {\n      padding-top: 40px;\n    }\n\n    .section-head {\n      display: flex;\n      justify-content: space-between;\n      align-items: baseline;\n      flex-wrap: wrap;\n      gap: 12px;\n      margin-bottom: 20px;\n    }\n\n    .section-head h2 {\n      font-family: 'Newsreader', serif;\n      font-weight: 400;\n      font-size: 26px;\n      margin: 0;\n    }\n\n    .filter-row {\n      display: flex;\n      gap: 8px;\n      flex-wrap: wrap;\n    }\n\n    .filter-pill {\n      min-height: 44px;\n      padding: 0 14px;\n      border: 1px solid var(--rule);\n      background: transparent;\n      color: var(--ink);\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      text-transform: uppercase;\n      cursor: pointer;\n    }\n\n    .filter-pill.active {\n      background: var(--ink);\n      color: var(--canvas);\n      border-color: var(--ink);\n    }\n\n    .material-cards {\n      display: grid;\n      grid-template-columns: repeat(3, 1fr);\n      gap: 20px;\n    }\n\n    .mat-card {\n      border: 1px solid var(--rule);\n      background: var(--canvas);\n      padding: 18px;\n      display: flex;\n      flex-direction: column;\n      gap: 12px;\n    }\n\n    .mat-swatch-bar {\n      height: 10px;\n      width: 100%;\n    }\n\n    .mat-card h3 {\n      font-family: 'Newsreader', serif;\n      font-size: 21px;\n      font-weight: 400;\n      margin: 0;\n    }\n\n    .mat-meta {\n      font-family: 'IBM Plex Mono', monospace;\n      font-size: 11px;\n      color: var(--muted);\n    }\n\n    .mat-desc {\n      font-size: 13.5px;\n      line-height: 1.55;\n      color: var(--muted);\n      margin: 0;\n    }\n\n    .sample-drawer {\n      position: fixed;\n      inset: 0;\n      background: rgba(27, 26, 24, 0.42);\n      display: none;\n      justify-content: flex-end;\n      z-index: 60;\n    }\n\n    .sample-drawer.open { display: flex; }\n\n    .drawer-sheet {\n      width: min(380px, 100%);\n      background: var(--canvas);\n      height: 100%;\n      padding: 24px;\n      display: flex;\n      flex-direction: column;\n      gap: 16px;\n      border-left: 1px solid var(--rule);\n      overflow-y: auto;\n    }\n\n    .drawer-head {\n      display: flex;\n      justify-content: space-between;\n      align-items: center;\n      border-bottom: 1px solid var(--rule);\n      padding-bottom: 14px;\n    }\n\n    .drawer-head h3 {\n      font-family: 'Newsreader', serif;\n      font-weight: 400;\n      margin: 0;\n      font-size: 22px;\n    }\n\n    .sample-item {\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      gap: 12px;\n      padding: 10px 0;\n      border-bottom: 1px solid var(--rule);\n    }\n\n    .sample-left {\n      display: flex;\n      align-items: center;\n      gap: 10px;\n    }\n\n    .sample-dot {\n      width: 24px;\n      height: 24px;\n      border: 1px solid rgba(0, 0, 0, 0.16);\n      flex-shrink: 0;\n    }\n\n    @media (max-width: 900px) {\n      .intro-row, .showroom-grid { grid-template-columns: 1fr; }\n      .material-cards { grid-template-columns: 1fr 1fr; }\n    }\n\n    @media (max-width: 640px) {\n      .topbar { padding: 12px 16px; }\n      .nav-links { display: none; }\n      .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }\n      .container { padding: 24px 16px 48px; }\n      .swatch-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }\n      .material-cards { grid-template-columns: 1fr; }\n      .brand-sub { display: none; }\n    }\n  </style>\n</head>\n<body>\n  <header class=\"topbar\">\n    <a class=\"brand\" href=\"#top\">\n      <span class=\"brand-word\">Kvadrat</span>\n      <span class=\"brand-sub\">EBELTOFT · EST. 1968</span>\n    </a>\n    <nav class=\"nav-links\" aria-label=\"Primary\">\n      <a href=\"#showroom\" class=\"active\">Upholstery</a>\n      <a href=\"#library\">Material Library</a>\n      <a href=\"#showroom\">Acoustics</a>\n      <a href=\"#library\">Sustainability</a>\n    </nav>\n    <div style=\"display:flex;gap:8px;align-items:center;\">\n      <button class=\"box-btn\" id=\"openBoxBtn\" type=\"button\">Sample Box (<span id=\"boxCount\">1</span>)</button>\n      <button class=\"mobile-menu-btn\" id=\"menuBtn\" type=\"button\" aria-label=\"Toggle Menu\">MENU</button>\n    </div>\n  </header>\n\n  <nav class=\"mobile-drawer\" id=\"mobileDrawer\" aria-label=\"Mobile navigation\">\n    <a href=\"#showroom\">Upholstery Showroom</a>\n    <a href=\"#library\">Architectural Library</a>\n    <a href=\"#showroom\">Acoustic Textiles</a>\n    <a href=\"#library\">Wool Provenance</a>\n  </nav>\n\n  <main class=\"container\" id=\"top\">\n    <section class=\"intro-row\">\n      <div>\n        <p class=\"eyebrow\">Copenhagen Textile Archive · Series 04</p>\n        <h1>Architectural wool woven for <em>quiet longevity</em>.</h1>\n      </div>\n      <p class=\"intro-copy\">\n        Inspect warp-and-weft structure at macro scale, compare Martindale abrasion durability, and curate physical fabric cuttings for architectural specification.\n      </p>\n    </section>\n\n    <section class=\"showroom-grid\" id=\"showroom\">\n      <div class=\"weave-stage\">\n        <div class=\"stage-head\">\n          <span class=\"stage-code\" id=\"activeCode\">HALLINGDAL 65 · COL. 0674 TERRACOTTA</span>\n          <div class=\"zoom-group\" role=\"group\" aria-label=\"Weave magnification\">\n            <button class=\"zoom-btn active\" data-zoom=\"1\" type=\"button\">1×</button>\n            <button class=\"zoom-btn\" data-zoom=\"1.45\" type=\"button\">2×</button>\n            <button class=\"zoom-btn\" data-zoom=\"2.0\" type=\"button\">4×</button>\n          </div>\n        </div>\n        <div class=\"weave-frame\">\n          <svg id=\"weaveSvg\" viewBox=\"0 0 400 250\" preserveAspectRatio=\"xMidYMid slice\" aria-label=\"Macro textile weave\">\n            <defs>\n              <pattern id=\"basketWeave\" width=\"24\" height=\"24\" patternUnits=\"userSpaceOnUse\">\n                <rect width=\"24\" height=\"24\" fill=\"var(--warp)\"/>\n                <rect x=\"1\" y=\"1\" width=\"10\" height=\"5\" rx=\"1.5\" fill=\"var(--thread-hi)\" opacity=\"0.65\"/>\n                <rect x=\"1\" y=\"7\" width=\"10\" height=\"4\" rx=\"1.5\" fill=\"var(--weft)\" opacity=\"0.72\"/>\n                <rect x=\"13\" y=\"13\" width=\"10\" height=\"5\" rx=\"1.5\" fill=\"var(--thread-hi)\" opacity=\"0.62\"/>\n                <rect x=\"13\" y=\"19\" width=\"10\" height=\"4\" rx=\"1.5\" fill=\"var(--weft)\" opacity=\"0.75\"/>\n                <rect x=\"13\" y=\"1\" width=\"5\" height=\"10\" rx=\"1.5\" fill=\"var(--weft)\" opacity=\"0.82\"/>\n                <rect x=\"19\" y=\"1\" width=\"4\" height=\"10\" rx=\"1.5\" fill=\"var(--thread-hi)\" opacity=\"0.48\"/>\n                <rect x=\"1\" y=\"13\" width=\"5\" height=\"10\" rx=\"1.5\" fill=\"var(--weft)\" opacity=\"0.82\"/>\n                <rect x=\"7\" y=\"13\" width=\"4\" height=\"10\" rx=\"1.5\" fill=\"var(--thread-hi)\" opacity=\"0.48\"/>\n              </pattern>\n              <linearGradient id=\"fabricSheen\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\n                <stop offset=\"0%\" stop-color=\"#FFFFFF\" stop-opacity=\"0.16\"/>\n                <stop offset=\"55%\" stop-color=\"#000000\" stop-opacity=\"0.02\"/>\n                <stop offset=\"100%\" stop-color=\"#000000\" stop-opacity=\"0.24\"/>\n              </linearGradient>\n            </defs>\n            <rect width=\"400\" height=\"250\" fill=\"url(#basketWeave)\"/>\n            <rect width=\"400\" height=\"250\" fill=\"url(#fabricSheen)\"/>\n          </svg>\n        </div>\n        <div class=\"weave-caption\">\n          <span id=\"weaveNote\">70% New Wool (Worsted), 30% Viscose</span>\n          <span>100,000 MARTINDALE · EU ECOLABEL</span>\n        </div>\n      </div>\n\n      <div class=\"swatch-panel\">\n        <div>\n          <h2 class=\"swatch-title\" id=\"swatchTitle\">Hallingdal 65 — Terracotta</h2>\n          <p class=\"swatch-designer\">Design: Nanna Ditzel, 1965 · Denmark</p>\n          <div class=\"swatch-grid\" id=\"swatchGrid\"></div>\n        </div>\n\n        <ul class=\"spec-list\">\n          <li><span class=\"spec-k\">Colorway Code</span><span class=\"spec-v\" id=\"specCode\">0674</span></li>\n          <li><span class=\"spec-k\">Composition</span><span class=\"spec-v\" id=\"specComp\">70% New Wool, 30% Viscose</span></li>\n          <li><span class=\"spec-k\">Abrasion</span><span class=\"spec-v\" id=\"specMart\">100,000 Martindale</span></li>\n          <li><span class=\"spec-k\">Acoustic Class</span><span class=\"spec-v\" id=\"specAcoustic\">αw 0.85 (Class B)</span></li>\n          <li><span class=\"spec-k\">Width / Weight</span><span class=\"spec-v\">130 cm · 795 g/lin.m</span></li>\n        </ul>\n\n        <div class=\"action-row\">\n          <button class=\"primary-btn\" id=\"addSampleBtn\" type=\"button\">Add Cutting to Sample Box</button>\n        </div>\n      </div>\n    </section>\n\n    <section class=\"collection-section\" id=\"library\">\n      <div class=\"section-head\">\n        <h2>Architectural Textile Library</h2>\n        <div class=\"filter-row\" role=\"group\" aria-label=\"Filter textiles\">\n          <button class=\"filter-pill active\" data-filter=\"all\" type=\"button\">All (6)</button>\n          <button class=\"filter-pill\" data-filter=\"wool\" type=\"button\">Wool</button>\n          <button class=\"filter-pill\" data-filter=\"acoustic\" type=\"button\">Acoustic</button>\n          <button class=\"filter-pill\" data-filter=\"curtain\" type=\"button\">Curtain</button>\n        </div>\n      </div>\n      <div class=\"material-cards\" id=\"materialCards\"></div>\n    </section>\n  </main>\n\n  <div class=\"sample-drawer\" id=\"sampleDrawer\" aria-hidden=\"true\">\n    <div class=\"drawer-sheet\">\n      <div class=\"drawer-head\">\n        <h3>Sample Cutting Box</h3>\n        <button class=\"zoom-btn\" id=\"closeDrawerBtn\" type=\"button\">CLOSE</button>\n      </div>\n      <p style=\"font-size:13px;color:var(--muted);margin:0;\">Complimentary A5 architectural textile cuttings dispatched from Ebeltoft within 48 hours.</p>\n      <div id=\"sampleList\"></div>\n    </div>\n  </div>\n\n  <script>\n    const swatches = [\n      { id: '0674', name: 'Terracotta', warp: '#B55239', weft: '#883A26', hi: '#D97E67', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.85 (Class B)' },\n      { id: '0130', name: 'Nordic Charcoal', warp: '#3A3A38', weft: '#222220', hi: '#61615D', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.85 (Class B)' },\n      { id: '0103', name: 'Unbleached Chalk', warp: '#DCD6C8', weft: '#BEB6A4', hi: '#F4F0E6', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.80 (Class B)' },\n      { id: '0960', name: 'Fjord Moss', warp: '#4D6153', weft: '#344539', hi: '#748B7B', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.85 (Class B)' },\n      { id: '0764', name: 'Copenhagen Indigo', warp: '#2F4863', weft: '#1E3145', hi: '#547291', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.90 (Class A)' },\n      { id: '0457', name: 'Ochre Rye', warp: '#C4933F', weft: '#9A6F26', hi: '#DFB66A', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.85 (Class B)' },\n      { id: '0227', name: 'Warm Sand', warp: '#B9A78E', weft: '#93816A', hi: '#D4C5AE', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.80 (Class B)' },\n      { id: '0596', name: 'Heather Clay', warp: '#8D5B5C', weft: '#663D3E', hi: '#B07D7E', comp: '70% New Wool, 30% Viscose', mart: '100,000 Martindale', ac: 'αw 0.85 (Class B)' }\n    ];\n\n    const library = [\n      { name: 'Steelcut Trio 3', cat: 'wool', color: '#2F4863', meta: '90% NEW WOOL · 100,000 MARTINDALE', desc: 'Three-dimensional surface crafted by Frans Dijkmeijer and Giulio Ridolfo with subtle shifting hues.' },\n      { name: 'Divina Melange 3', cat: 'acoustic', color: '#B55239', meta: '100% NEW WOOL · FELTED FINISH', desc: 'Piece-dyed woollen felt offering crisp architectural planes and high-frequency sound absorption.' },\n      { name: 'Time 300 Curtain', cat: 'curtain', color: '#C4933F', meta: '100% TREVIRA CS · 300 CM WIDTH', desc: 'Translucent architectural drape filtering harsh Nordic daylight into diffused warm glare-free glow.' },\n      { name: 'Remix 3', cat: 'wool', color: '#4D6153', meta: '90% NEW WOOL · 100,000 MARTINDALE', desc: 'Refined melange weave combining two yarn colors per thread for understated tonal depth.' },\n      { name: 'Soft Cells Broadline', cat: 'acoustic', color: '#3A3A38', meta: 'PATENTED TENSION PANEL · CLASS A', desc: 'Modular acoustic wall and ceiling panels engineered to stay taut across humidity shifts.' },\n      { name: 'Rime Sheer', cat: 'curtain', color: '#B9A78E', meta: 'LINEN BLEND · ACOUSTIC DRAPE', desc: 'Dry matte linen hand-feel designed for gallery partitions and open-plan timber studios.' }\n    ];\n\n    let activeSwatch = swatches[0];\n    let sampleBox = [swatches[0]];\n\n    const swatchGrid = document.getElementById('swatchGrid');\n    function renderSwatches() {\n      swatchGrid.innerHTML = '';\n      swatches.forEach(s => {\n        const btn = document.createElement('button');\n        btn.type = 'button';\n        btn.className = 'swatch-tile' + (s.id === activeSwatch.id ? ' active' : '');\n        btn.innerHTML = `<span class=\"swatch-chip\" style=\"background:${s.warp}\"></span><span class=\"swatch-num\">${s.id}</span>`;\n        btn.addEventListener('click', () => selectSwatch(s));\n        swatchGrid.appendChild(btn);\n      });\n    }\n\n    function selectSwatch(s) {\n      activeSwatch = s;\n      document.documentElement.style.setProperty('--warp', s.warp);\n      document.documentElement.style.setProperty('--weft', s.weft);\n      document.documentElement.style.setProperty('--thread-hi', s.hi);\n      document.documentElement.style.setProperty('--accent', s.warp);\n      document.getElementById('activeCode').textContent = `HALLINGDAL 65 · COL. ${s.id} ${s.name.toUpperCase()}`;\n      document.getElementById('swatchTitle').textContent = `Hallingdal 65 — ${s.name}`;\n      document.getElementById('specCode').textContent = s.id;\n      document.getElementById('specComp').textContent = s.comp;\n      document.getElementById('specMart').textContent = s.mart;\n      document.getElementById('specAcoustic').textContent = s.ac;\n      renderSwatches();\n    }\n\n    document.querySelectorAll('.zoom-btn[data-zoom]').forEach(btn => {\n      btn.addEventListener('click', () => {\n        document.querySelectorAll('.zoom-btn[data-zoom]').forEach(b => b.classList.remove('active'));\n        btn.classList.add('active');\n        document.getElementById('weaveSvg').style.transform = `scale(${btn.dataset.zoom})`;\n      });\n    });\n\n    function renderLibrary(filter = 'all') {\n      const container = document.getElementById('materialCards');\n      container.innerHTML = '';\n      library.filter(m => filter === 'all' || m.cat === filter).forEach(m => {\n        const el = document.createElement('article');\n        el.className = 'mat-card';\n        el.innerHTML = `<div class=\"mat-swatch-bar\" style=\"background:${m.color}\"></div><h3>${m.name}</h3><div class=\"mat-meta\">${m.meta}</div><p class=\"mat-desc\">${m.desc}</p>`;\n        container.appendChild(el);\n      });\n    }\n\n    document.querySelectorAll('.filter-pill').forEach(pill => {\n      pill.addEventListener('click', () => {\n        document.querySelectorAll('.filter-pill').forEach(p => p.classList.remove('active'));\n        pill.classList.add('active');\n        renderLibrary(pill.dataset.filter);\n      });\n    });\n\n    function renderSamples() {\n      document.getElementById('boxCount').textContent = sampleBox.length;\n      const list = document.getElementById('sampleList');\n      if (!sampleBox.length) {\n        list.innerHTML = '<p style=\"font-size:13px;color:var(--muted);\">No cuttings selected yet.</p>';\n        return;\n      }\n      list.innerHTML = sampleBox.map(s => `\n        <div class=\"sample-item\">\n          <div class=\"sample-left\">\n            <span class=\"sample-dot\" style=\"background:${s.warp}\"></span>\n            <div>\n              <div style=\"font-size:14px;font-weight:500;\">Hallingdal 65 · ${s.name}</div>\n              <div style=\"font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted);\">COL. ${s.id}</div>\n            </div>\n          </div>\n          <button class=\"zoom-btn\" type=\"button\" onclick=\"removeSample('${s.id}')\">×</button>\n        </div>\n      `).join('');\n    }\n\n    window.removeSample = function(id) {\n      sampleBox = sampleBox.filter(s => s.id !== id);\n      renderSamples();\n    };\n\n    document.getElementById('addSampleBtn').addEventListener('click', () => {\n      if (!sampleBox.some(s => s.id === activeSwatch.id)) {\n        sampleBox.push(activeSwatch);\n        renderSamples();\n      }\n      const btn = document.getElementById('addSampleBtn');\n      btn.textContent = `Added Col. ${activeSwatch.id} to Box`;\n      setTimeout(() => { btn.textContent = 'Add Cutting to Sample Box'; }, 1400);\n    });\n\n    const drawer = document.getElementById('sampleDrawer');\n    document.getElementById('openBoxBtn').addEventListener('click', () => drawer.classList.add('open'));\n    document.getElementById('closeDrawerBtn').addEventListener('click', () => drawer.classList.remove('open'));\n    drawer.addEventListener('click', e => { if (e.target === drawer) drawer.classList.remove('open'); });\n\n    document.getElementById('menuBtn').addEventListener('click', () => {\n      document.getElementById('mobileDrawer').classList.toggle('open');\n    });\n\n    renderSwatches();\n    renderLibrary();\n    renderSamples();\n  </script>\n</body>\n</html>\n"
}
