/* ============================================================
   TAOYUN TECHNOLOGY — "Refined Trade House"
   Design system for the integrated multi-line trade website.
   Warm paper · ink black · a single antique-brass accent.
   Display: Fraunces · Body: Hanken Grotesk · Label: Spline Sans Mono
   ============================================================ */

:root {
  /* Surfaces */
  --paper:      #F6F1E8;   /* warm white, primary background */
  --paper-2:    #EFE8DA;   /* recessed panel */
  --paper-3:    #E7DECB;   /* deeper panel / hover */
  --ink:        #1B1813;   /* near-black, warm */
  --ink-2:      #3D362C;   /* secondary ink for inverted panels */

  /* Type */
  --text:       #221E18;
  --text-soft:  #5C5346;
  --text-faint: #8A8073;

  /* Accent + neutrals */
  --brass:      #9A6B36;   /* antique brass — the single accent */
  --brass-deep: #74501F;
  --brass-soft: #C49A63;
  --steel:      #6E7378;   /* cool neutral, used sparingly */

  /* Lines */
  --line:        rgba(27, 24, 19, 0.14);
  --line-strong: rgba(27, 24, 19, 0.32);
  --line-faint:  rgba(27, 24, 19, 0.07);

  /* System */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Fine grain overlay — gives the paper its tactility */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.hairline { border: 0; border-top: 1px solid var(--line); }
section { position: relative; }

/* Mono kicker — the recurring editorial label */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Type scale ---------- */
/* line-height 1.16 leaves room for Vietnamese stacked diacritics + descenders
   (e.g. ự, ợ, ầ) so glyphs are never clipped; text-wrap:balance keeps CN/VI
   multi-line headings as even as English. */
h1, h2, h3 { font-family: var(--serif); font-weight: 380; line-height: 1.16; letter-spacing: -0.015em; text-wrap: balance; }
.display {
  font-size: clamp(3rem, 9vw, 7.4rem);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--brass-deep); font-weight: 360; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { display: block; }
.brand-mark { display: block; height: 28px; width: 28px; flex: 0 0 auto; }
.brand .bn { display: flex; flex-direction: column; line-height: 1; }
.brand .bn b { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); }
.brand .bn span { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.28em; color: var(--text-faint); text-transform: uppercase; margin-top: 4px; }
.brand-foot { margin-bottom: 4px; }
.brand-foot .brand-mark { height: 32px; width: 32px; }
.brand-foot .bn b { font-size: 1.2rem; }
@media (max-width: 640px) { .brand-mark { height: 24px; width: 24px; } .brand .bn b { font-size: 1.04rem; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .navitem > button {
  font-family: var(--sans); font-size: 0.93rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  padding: 10px 16px; border: 0; background: none; cursor: pointer;
  border-radius: 2px; transition: color 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 5px;
}
.nav a:hover, .nav .navitem > button:hover { color: var(--brass-deep); }
.navitem { position: relative; }
.navitem > button svg { transition: transform 0.25s var(--ease); }
.navitem:hover > button svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 248px; background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -28px rgba(27,24,19,0.4);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.24s var(--ease);
}
.navitem:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 12px; border-radius: 2px; width: 100%;
}
.dropdown a:hover { background: var(--paper-3); }
.dropdown a .idx { font-family: var(--mono); font-size: 0.66rem; color: var(--brass); width: 22px; }
.dropdown a .dl { display: flex; flex-direction: column; gap: 2px; }
.dropdown a small { color: var(--text-faint); font-size: 0.76rem; }
.dropdown .ddrule { height: 1px; background: var(--line); margin: 6px 8px; }

.bartools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; }
.lang a { padding: 4px 7px; color: var(--text-faint); text-decoration: none; border-radius: 2px; }
.lang a.on { color: var(--ink); background: var(--paper-3); }
.lang a:hover { color: var(--brass-deep); }

.btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 2px;
  transition: all 0.24s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn .ar { transition: transform 0.24s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 92px); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
.hero .lead { max-width: 16ch; }
/* The reveal mask must be tall enough to contain Vietnamese descenders/diacritics;
   pad the clip box and pull it back with a negative margin so spacing is unchanged. */
.hero .display .ln { display: block; overflow: hidden; padding-bottom: 0.32em; margin-bottom: -0.32em; }
.hero .display .ln > span {
  display: block;
  transform: translateY(120%);
  animation: rise 0.95s var(--ease) forwards;
}
.hero .display .ln:nth-child(1) > span { animation-delay: 0.05s; }
.hero .display .ln:nth-child(2) > span { animation-delay: 0.16s; }
.hero .display .ln:nth-child(3) > span { animation-delay: 0.27s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-foot {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px);
  align-items: end; padding-top: 26px; border-top: 1px solid var(--line);
  opacity: 0; animation: fadein 1s var(--ease) 0.5s forwards;
}
@keyframes fadein { to { opacity: 1; } }
.hero-foot p { font-size: 1.12rem; color: var(--text-soft); max-width: 46ch; }
.hero-foot .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Ticker of capabilities */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper-2); }
.ticker .row {
  display: flex; gap: 56px; padding: 16px 0;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-soft);
  white-space: nowrap; width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker .row span { display: inline-flex; align-items: center; gap: 56px; }
.ticker .row span::after { content: "✦"; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: clamp(56px, 8vw, 96px) 36px; }
.shead h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.shead .meta { font-family: var(--mono); font-size: 0.74rem; color: var(--text-faint); letter-spacing: 0.1em; text-align: right; }

/* ============================================================
   PRODUCT LINES — indexed editorial list
   ============================================================ */
.lines { padding-bottom: clamp(40px, 7vw, 90px); }
.line-row {
  display: grid; grid-template-columns: 90px 1.4fr 2fr auto;
  gap: 28px; align-items: center;
  padding: 34px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: padding-left 0.34s var(--ease);
}
.line-row:last-child { border-bottom: 1px solid var(--line); }
.line-row:hover { padding-left: 14px; }
.line-row .num { font-family: var(--mono); font-size: 0.9rem; color: var(--brass); }
.line-row .lname { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 380; letter-spacing: -0.02em; }
.line-row .ltag { color: var(--text-soft); font-size: 1rem; }
.line-row .go {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.line-row:hover .go { background: var(--brass-deep); border-color: var(--brass-deep); color: var(--paper); transform: rotate(-45deg); }
.line-row.soon { opacity: 0.55; pointer-events: none; }
.line-row.soon .lname { font-style: italic; }
.line-row.soon .pill { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 99px; color: var(--text-faint); }

/* ============================================================
   PILLARS / VALUE
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 38px 28px 44px 0; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar .pn { font-family: var(--mono); font-size: 0.72rem; color: var(--brass); letter-spacing: 0.16em; }
.pillar h3 { font-size: 1.32rem; margin: 18px 0 10px; font-weight: 420; }
.pillar p { color: var(--text-soft); font-size: 0.95rem; }

/* ============================================================
   INVERTED BAND — the sourcing promise
   ============================================================ */
.band { background: var(--ink); color: var(--paper); margin-top: clamp(60px, 9vw, 110px); }
.band .wrap { padding-block: clamp(72px, 11vw, 140px); }
.band .kicker { color: var(--brass-soft); }
.band .kicker::before { background: var(--brass-soft); }
.band h2 {
  font-size: clamp(2.2rem, 5.4vw, 5rem); color: var(--paper);
  max-width: 22ch; margin: 28px 0 32px; font-weight: 340; text-wrap: balance;
}
.band h2 em { font-style: italic; color: var(--brass-soft); }
.band p { color: rgba(246,241,232,0.7); max-width: 52ch; font-size: 1.12rem; }
.band .stats { display: flex; gap: clamp(36px, 7vw, 88px); margin-top: 56px; flex-wrap: wrap; }
.band .stat .v { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.8rem); color: var(--paper); line-height: 1; }
.band .stat .l { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,241,232,0.55); margin-top: 10px; max-width: 18ch; }

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 30px; text-decoration: none; color: var(--ink); transition: background 0.25s var(--ease); display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.card:hover { background: var(--paper-2); }
.card .ctag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.card h3.cf-head { font-size: 1.12rem; }
.card .code { font-family: var(--mono); font-size: 0.82rem; color: var(--text-faint); }
.card h3 { font-size: 1.34rem; font-weight: 400; margin-top: auto; }
.card .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.card .specs b { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; border: 1px solid var(--line); padding: 4px 9px; border-radius: 2px; color: var(--text-soft); }

/* ============================================================
   ABOUT TEASER
   ============================================================ */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(60px, 9vw, 110px); }
.about-teaser .lead-quote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 360; line-height: 1.28; letter-spacing: -0.01em; }
.about-teaser .lead-quote em { color: var(--brass-deep); font-style: italic; }
.about-teaser p { color: var(--text-soft); margin-bottom: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: clamp(60px, 9vw, 110px); }
.footer .wrap { padding-block: 64px 40px; }
.footer .ftop { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer a { color: var(--text-soft); text-decoration: none; font-size: 0.94rem; }
.footer a:hover { color: var(--brass-deep); }
.footer .fbrand .promise { font-family: var(--serif); font-size: 1.5rem; max-width: 16ch; margin-top: 16px; }
.footer .fbot { display: flex; justify-content: space-between; align-items: center; padding-top: 36px; margin-top: 48px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   CHATBOT LAUNCHER
   ============================================================ */
.chatfab {
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px 14px 16px; border-radius: 99px; border: 0; cursor: pointer;
  box-shadow: 0 18px 44px -18px rgba(27,24,19,0.6);
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  transition: all 0.28s var(--ease);
}
.chatfab:hover { background: var(--brass-deep); transform: translateY(-2px); }
.chatfab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-soft); box-shadow: 0 0 0 0 var(--brass-soft); animation: ping 2.4s var(--ease) infinite; }
.chatfab.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(196,154,99,0.6); } 70%,100% { box-shadow: 0 0 0 9px rgba(196,154,99,0); } }

/* ---------- Chat panel ---------- */
.chatpanel {
  position: fixed; right: 26px; bottom: 26px; z-index: 210;
  width: min(384px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 52px));
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 30px 70px -24px rgba(27,24,19,0.55);
  overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.98); transform-origin: bottom right;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
  pointer-events: none; /* closed panel must not overlay & swallow the fab click */
}
.chatpanel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chathead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: var(--ink); color: var(--paper);
}
.chathead-id { display: flex; align-items: center; gap: 11px; }
.chathead-id .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-soft); }
.chathead-id b { font-family: var(--sans); font-weight: 600; font-size: 0.96rem; display: block; }
.chathead-id span { font-family: var(--mono); font-size: 0.68rem; color: rgba(246,241,232,0.6); letter-spacing: 0.04em; }
.chatclose { background: none; border: 0; color: rgba(246,241,232,0.7); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chatclose:hover { color: var(--paper); }
.chatlog { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper-2); }
.chatmsg {
  max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 0.92rem; line-height: 1.5;
  font-family: var(--sans); white-space: pre-wrap; word-break: break-word;
}
.chatmsg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.chatmsg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.chatmsg.error { color: #a33; border-color: #a33; }
.chatmsg.typing::after { content: "···"; letter-spacing: 2px; color: var(--text-faint); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.chatform { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--paper); }
.chatform input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 0.95rem;
}
.chatform input:focus { outline: none; border-color: var(--brass-deep); }
.chatsend {
  width: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  transition: background 0.24s var(--ease);
}
.chatsend:hover { background: var(--brass-deep); }
@media (max-width: 460px) {
  .chatpanel { right: 12px; left: 12px; bottom: 12px; width: auto; height: min(76vh, 560px); }
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.pagehead { padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.pagehead h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 340; max-width: 20ch; margin-top: 22px; text-wrap: balance; }
.pagehead h1 em { font-style: italic; color: var(--brass-deep); }

/* Filter chips (catalog) */
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 30px 0; border-bottom: 1px solid var(--line); }
.chip {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 99px;
  text-decoration: none; color: var(--text-soft); transition: all 0.2s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* About story */
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 84px); padding-block: clamp(56px, 8vw, 96px); }
.story .skicker { position: sticky; top: 120px; align-self: start; }
.story .body p { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 360; line-height: 1.42; color: var(--text); margin-bottom: 1.1em; }
.story .body p:first-child::first-letter { font-size: 3.4em; float: left; line-height: 0.78; padding: 0.06em 0.12em 0 0; color: var(--brass-deep); font-weight: 420; }

.linecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(40px,6vw,80px); }
.linecard { background: var(--paper); padding: 34px; text-decoration: none; color: var(--ink); transition: background 0.25s var(--ease); }
.linecard:hover { background: var(--paper-2); }
.linecard .num { font-family: var(--mono); font-size: 0.74rem; color: var(--brass); letter-spacing: 0.14em; }
.linecard h3 { font-size: 1.7rem; font-weight: 400; margin: 16px 0 10px; }
.linecard p { color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   DOSSIER — trademark certificates as a registrar's record
   ============================================================ */
.dossier { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.dossier__lead { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 44px); }
.dossier__lead h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 14px 0 16px; }
.dossier__lead p { color: var(--text-soft); font-size: 1.02rem; line-height: 1.6; max-width: 56ch; }
.dossier__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); }
.record { margin: 0; }
.record__mat {
  display: block; position: relative; background: var(--paper-2);
  padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--line);
  outline: 1px solid var(--line); outline-offset: 5px; border-radius: 2px;
  transition: outline-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.record__mat::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 14px; height: 14px;
  border-top: 1.5px solid var(--brass); border-right: 1.5px solid var(--brass);
}
.record__mat:hover { outline-color: var(--brass-soft); transform: translateY(-2px); }
.record__mat:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 5px; }
.record__mat img { display: block; width: 100%; height: auto; border: 1px solid var(--line-faint); background: var(--paper); }
.record__cap { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.record__label { font-family: var(--serif); font-size: 1.04rem; font-weight: 420; color: var(--ink); }
.record__meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-faint); }

/* ============================================================
   FACTORY — looping video showcase
   ============================================================ */
.factory { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.about-video { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--paper-2); }
.about-video video, .about-video img { display: block; width: 100%; height: auto; }
.factory__copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 14px 0 16px; }
.factory__copy p { color: var(--text-soft); font-size: 1.04rem; line-height: 1.62; max-width: 46ch; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav .navlinks { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .cta { justify-content: flex-start; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 0; }
  .line-row { grid-template-columns: 50px 1fr auto; }
  .line-row .ltag { display: none; }
  .about-teaser, .story, .footer .ftop, .factory { grid-template-columns: 1fr; }
  .story .skicker { position: static; }
  .factory__media { order: -1; }
}
@media (max-width: 720px) {
  .dossier__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .footer .ftop { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero .display .ln > span { transform: none; }
  .hero-foot { opacity: 1; }
}

/* ============================================================
   CONTACT FORM — aligned trilingual fields
   ============================================================ */
/* Inquiry form — set like a trade ledger: mono eyebrow labels, quiet paper-2
   fields on hairline rules, and a single brass focus accent. */
.cform { display: grid; gap: 22px; font-family: var(--sans); }
.cform .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-label {
  font-size: 0.72rem; font-family: var(--mono); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint);
}
.field-label .opt { text-transform: none; letter-spacing: 0; opacity: 0.72; }
/* Push the control to the bottom of the (stretched) cell so inputs in a row
   stay aligned even when one label wraps to two lines and its neighbor does not. */
.field input, .field textarea {
  margin-top: auto; width: 100%; box-sizing: border-box;
  font-family: var(--sans); font-size: 1rem; padding: 13px 14px;
  border: 1px solid var(--line-strong); background: var(--paper-2); color: var(--text);
  border-radius: 3px; text-transform: none; letter-spacing: 0;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input.mono-input { font-family: var(--mono); letter-spacing: 0.02em; }
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brass-deep); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(196,154,99,0.16);
}
.cform .btn { justify-self: start; margin-top: 4px; }
.cform .formmsg { font-family: var(--mono); font-size: 0.86rem; margin: 0; }
/* Contact channels list (left rail) */
.contact-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: 0.86rem; }
.contact-list a { text-decoration: none; }
.contact-list .cl-primary a { color: var(--brass-deep); }
.contact-list li:not(.cl-primary), .contact-list li:not(.cl-primary) a { color: var(--text-soft); }
@media (max-width: 640px) { .cform .frow { grid-template-columns: 1fr; } }

/* ============================================================
   Forge-line process signature (fasteners) — the one bold element.
   Ledger strip: hairline rules + numbered ordered steps + quiet
   right-aligned proof total. Uses only existing tokens.
   ============================================================ */
.forge { padding: 58px 0 50px; }
.forge__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.forge__total { font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.04em; white-space: nowrap; text-align: right; }
.forge__total b { font-weight: 600; color: var(--brass); font-size: 0.96rem; letter-spacing: 0.01em; }

.forge__rule { height: 1px; background: var(--line-strong); margin-top: 16px; transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.forge__rule--btm { margin-top: 0; }
.forge.is-in .forge__rule { transform: scaleX(1); }

.forge__steps { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.forge__step { opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i) * 110ms + 280ms); }
.forge.is-in .forge__step { opacity: 1; transform: none; }
.forge__num { font-family: var(--mono); font-size: 0.85rem; color: var(--brass); letter-spacing: 0.12em; }
.forge__title { font-family: var(--serif); font-weight: 440; font-size: 1.04rem; font-variant: small-caps; letter-spacing: 0.02em; margin: 9px 0 9px; color: var(--ink); }
.forge__body { font-size: 0.85rem; line-height: 1.5; color: var(--text-soft); margin: 0 0 10px; }
.forge__note { font-family: var(--mono); font-size: 0.69rem; color: var(--text-faint); letter-spacing: 0.02em; }
.forge__certs { font-family: var(--mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.05em; text-align: center; padding-top: 16px; margin: 0; }

@media (max-width: 760px) {
  .forge__steps { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .forge__step { padding: 18px 0 18px 20px; border-left: 1px solid var(--line); }
  .forge__head { flex-direction: column; gap: 6px; align-items: flex-start; }
  .forge__total { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .forge__rule { transform: none; transition: none; }
  .forge__step { opacity: 1; transform: none; transition: none; }
}

/* Raw-material reserve — supply-confidence beat (copy + warehouse video, one quiet figure) */
.reserve { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.reserve__copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 14px 0 16px; }
.reserve__copy > p { color: var(--text-soft); font-size: 1.04rem; line-height: 1.62; max-width: 46ch; }
.reserve__figure { margin-top: 20px; font-family: var(--mono); font-size: 0.86rem; color: var(--text-faint); letter-spacing: 0.01em; }
.reserve__figure b { font-weight: 600; color: var(--brass); font-size: 1.05rem; letter-spacing: 0.01em; }
.reserve__points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.reserve__points li { font-family: var(--mono); font-size: 0.76rem; color: var(--text-soft); padding-left: 18px; position: relative; }
.reserve__points li::before { content: "\25B8"; color: var(--brass); position: absolute; left: 0; }
.reserve__media .about-video { aspect-ratio: 4 / 5; max-height: 480px; margin-inline: auto; }
.reserve__media .about-video video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .reserve { grid-template-columns: 1fr; gap: 24px; }
  .reserve__media { order: -1; }
  .reserve__media .about-video { aspect-ratio: 4 / 3; max-height: 360px; }
}

/* Custom / cold-forged capability panel (no spec table) */
.custom-cap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 40px; }
.custom-cap__lead h2 { margin-top: 10px; font-size: 1.5rem; }
.custom-cap__body p { color: var(--text-soft); line-height: 1.62; margin: 0 0 24px; }
.custom-cap__fig { display: block; margin-top: 20px; aspect-ratio: 3 / 2; max-width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.custom-cap__fig img { width: 100%; height: 100%; object-fit: cover; }

/* Category cards (line page) — photo when category.image present, text otherwise */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat-card { background: var(--paper); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: background 0.25s var(--ease); }
.cat-card:hover { background: var(--paper-2); }
.cat-card__thumb { aspect-ratio: 5 / 4; background: var(--paper-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.cat-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__name { font-family: var(--serif); font-size: 1.06rem; padding: 16px 18px 4px; }
.cat-card__go { font-family: var(--mono); color: var(--brass); padding: 0 18px 16px; font-size: 0.82rem; margin-top: auto; }
.cat-card:not(.cat-card--photo) { justify-content: center; min-height: 132px; }
@media (max-width: 600px) { .cat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .custom-cap { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
}

/* Load-rating bar — quiet brass accent on shear/tensile (kN) detail rows */
.loadbar { display: block; height: 3px; width: 100%; max-width: 160px; margin: 6px 0 0 auto; background: var(--paper-3); border-radius: 2px; overflow: hidden; }
.loadbar > span { display: block; height: 100%; background: var(--brass); border-radius: 2px; }
