@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --surface: #fff;
  --ink: #192721;
  --muted: #52605a;
  --line: #d6ddd5;
  --forest: #21483b;
  --deep: #172c25;
  --accent: #d9e8cd;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --type: Manrope, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 500 16px/1.65 var(--type); background: var(--surface); color: var(--ink); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7c6521; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 96px), 1200px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 8px 16px; background: var(--accent); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 40px; height: 40px; color: var(--forest); border-radius: 4px; }
.brand b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.045em; line-height: 1.15; }
.brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.main-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--forest); text-decoration: underline; }

.kicker { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--forest); margin: 0 0 16px; }
.micro { font: 700 11px/1.55 var(--mono); letter-spacing: .045em; }
.ref { color: var(--forest); }
.button { border-radius: 5px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 16px; min-height: 44px; border: 1px solid transparent; font-size: 14px; font-weight: 750; line-height: 1.35; }
.button svg, .arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; flex-shrink: 0; }
.button.primary, .button.dark { background: var(--forest); color: var(--surface); }
.button.primary:hover, .button.dark:hover { background: var(--deep); }
.button.outline { border-color: #a8b6ad; color: var(--forest); background: transparent; }
.button.outline:hover { background: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.5vw, 76px); font-weight: 780; letter-spacing: -.065em; margin-bottom: 20px; }
h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 770; letter-spacing: -.055em; margin-bottom: 18px; }
h3 { font-size: 23px; font-weight: 760; letter-spacing: -.035em; margin-bottom: 8px; }
p { margin-bottom: 15px; }

.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; gap: clamp(24px, 5vw, 64px); padding-block: 44px; }
.hero-content { align-self: center; padding-block: 34px; }
.hero h1 { font-size: clamp(43px, 5.4vw, 78px); margin-bottom: 22px; }
.hero h1 span { color: var(--forest); }
.hero p.lede { max-width: 41ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin-bottom: 26px; }
.hero-photo { margin: 0; border-radius: 5px; height: clamp(360px, 38vw, 505px); overflow: hidden; background: var(--deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }

.section { padding-block: clamp(54px, 7vw, 94px); }
.heading-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 28px; margin-bottom: 30px; }
.heading-row h2 { margin-bottom: 0; }
.heading-row > p { max-width: 50ch; margin-bottom: 0; color: var(--muted); }
.process-section { background: var(--paper); border-block: 1px solid var(--line); }
#manufacturing { background: var(--surface); border: 0; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 60px); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; height: 310px; object-fit: cover; border-radius: 4px; }
.photo-pair figure:first-child img { object-position: center 36%; }
.process-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 32px 1fr; gap: 9px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.process-list h3 { margin-bottom: 4px; font-size: 19px; }
.process-list p { color: var(--muted); margin: 0; font-size: 14px; }
.process-list .ref { padding-top: 3px; }
.service-grid { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.service-grid article { padding-block: 19px; border-bottom: 1px solid var(--line); }
.service-grid h3 { font-size: 20px; }
.service-grid p { color: var(--muted); margin: 0; max-width: 36ch; }
.service-grid .ref { margin-bottom: 8px; }

#formats { background: var(--paper); border-block: 1px solid var(--line); }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.format-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; grid-template-rows: auto auto 1fr; align-items: center; background: var(--surface); min-width: 0; padding: 0 15px 16px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.format-card:hover { border-color: #6c8a7d; background: #f8faf7; }
.format-visual { grid-column: 1 / -1; grid-row: 1; position: relative; width: calc(100% + 30px); aspect-ratio: 1.6; margin: 0 -15px 11px; overflow: hidden; background: #e9eee7; border-radius: 5px 5px 0 0; }
.format-visual > img { width: 100%; height: 100%; object-fit: cover; }
.format-card[href$="/pens.html"] .format-photo { position: absolute; top: 50%; left: 50%; width: 62.5%; height: 160%; object-fit: contain; transform: translate(-50%, -50%) rotate(-90deg) scale(.88); }
.format-card[href$="/pen-packaging.html"] .format-photo { padding: 12px; object-fit: contain; }
.format-card[href$="/api.html"] .format-photo { object-position: center 47%; transform: scale(1.2); transform-origin: 65% center; }
.format-card[href$="/vials.html"] .format-photo { object-position: center 57%; }
.format-card[href$="/vial-packaging.html"] .format-photo { object-position: center 76%; }
.format-card .arrow { grid-column: 3; grid-row: 2; color: var(--forest); }
.format-icon { width: 44px; height: 37px; color: var(--forest); stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.format-card .format-icon { grid-column: 1; grid-row: 2; }
.format-card h3 { grid-column: 2; grid-row: 2; font-size: clamp(17px, 1.75vw, 23px); margin: 0 6px 0 0; text-wrap: initial; }
.format-card p { grid-column: 1 / -1; grid-row: 3; align-self: start; font-size: 14px; color: var(--muted); margin: 7px 0 0; }

.cta { color: var(--surface); background: var(--forest); padding-block: 49px; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 23px; }
.cta .kicker { color: var(--accent); margin-bottom: 8px; }
.cta h2 { margin-bottom: 9px; font-size: clamp(30px, 3.9vw, 50px); }
.cta p { margin-bottom: 0; color: #e0e9e1; }
.cta .button.primary { background: var(--accent); color: var(--deep); }
.cta .button.primary:hover { background: var(--surface); }
.footer { background: var(--deep); color: var(--surface); padding-block: 29px; }
.footer .brand svg { color: var(--accent); --mark-ink: var(--deep); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 9px 20px; font-size: 13px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footnote { border-top: 1px solid #6e857a; color: #d1dbd2; padding-top: 15px; margin: 20px 0 0; }

.page-hero { background: var(--paper); padding-block: clamp(41px, 5vw, 75px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 13px; }
.page-hero p:not(.kicker) { max-width: 65ch; margin: 0; color: var(--muted); font-size: 17px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.detail-section { padding-block: 43px 65px; }
.detail-body { max-width: 74ch; }
.detail-body li { margin-bottom: 8px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 54px); margin-bottom: 28px; }
.product-figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #edf0ea; }
.product-figure img { max-height: 440px; object-fit: contain; }
.product-figure-pen img { max-height: 340px; padding: 18px; }
.product-figure-kit img { height: clamp(185px, 24vw, 285px); object-fit: cover; object-position: center 55%; }
@media (min-width: 761px) {
  .product-detail-grid > .product-figure { grid-column: 2; grid-row: 1; }
  .product-detail-grid > .detail-body { grid-column: 1; grid-row: 1; }
}

.catalog-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 15px; margin-block: 24px 15px; }
.catalog-tools label, .inquiry-form label { font-weight: 720; }
.catalog-tools input { margin-top: 7px; min-width: min(100%, 320px); }
input, select, textarea { display: block; width: 100%; padding: 10px 11px; color: var(--ink); background: var(--surface); border: 1px solid #a2aea5; border-radius: 4px; }
.table-wrap { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--accent); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child > * { border-bottom: none; }
tbody th { font-weight: 700; }
tbody tr:nth-child(even) { background: var(--paper); }
td.code { font-family: var(--mono); font-size: 13px; }
.inquiry-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(25px, 5vw, 60px); align-items: start; }
.inquiry-form { display: grid; gap: 15px; }
.inquiry-form label > :is(input, select, textarea) { margin-top: 5px; }
.inquiry-form textarea { resize: vertical; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.direct { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); padding: 24px; }
.direct a { display: block; margin-block: 12px; overflow-wrap: anywhere; color: var(--forest); font-weight: 700; }
.direct .micro { color: var(--muted); }

.factory-index, .contact-channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.factory-index a, .contact-channels a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid #a8b6ad; border-radius: 4px; font-weight: 700; text-decoration: none; }
.factory-index a:hover, .contact-channels a:hover { color: var(--deep); background: var(--accent); }
.factory-team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(22px, 5vw, 70px); align-items: center; }
.location-panel { padding: clamp(23px, 4.2vw, 48px); border-radius: 5px; background: var(--forest); color: var(--surface); }
.location-panel .kicker { color: var(--accent); }
.location-panel strong { display: block; font-size: clamp(31px, 4.8vw, 61px); line-height: 1.1; letter-spacing: -.055em; }
.location-panel > p:nth-of-type(2) { margin: 6px 0 20px; }
.location-panel > a { display: inline-flex; gap: 8px; align-items: center; }
.factory-policies { margin: 0; border-top: 1px solid var(--line); }
.factory-policies > div { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.factory-policies dt { font-weight: 760; }
.factory-policies dd { margin: 0; color: var(--muted); }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 56px); }
  .hero-grid { gap: 25px; }
  .main-nav { gap: 17px; }
}
@media (max-width: 900px) {
  .masthead-inner { flex-wrap: wrap; column-gap: 11px; row-gap: 7px; padding-top: 10px; }
  .masthead-inner > .button { padding-inline: 9px; font-size: 12px; gap: 6px; }
  .masthead .brand svg { width: 34px; height: 34px; }
  .masthead .brand b { font-size: 17px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
  .main-nav a { font-size: 12px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid, .heading-row, .process-grid, .product-detail-grid, .inquiry-grid, .factory-team { grid-template-columns: 1fr; }
  .hero-grid { gap: 20px; padding-block: 32px 18px; }
  .hero-content { padding: 0; }
  .hero h1 { font-size: clamp(38px, 9.6vw, 63px); }
  .hero-photo { height: clamp(200px, 58vw, 330px); }
  .heading-row { gap: 10px; margin-bottom: 22px; }
  .photo-pair img { height: clamp(140px, 36vw, 230px); }
  .format-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-figure img { max-height: 335px; }
  .product-figure-pen img { max-height: 275px; padding: 12px; }
  .factory-policies > div { grid-template-columns: 1fr; gap: 4px; }
  th, td { padding: 8px; font-size: 13px; overflow-wrap: anywhere; }
  .table-wrap table { table-layout: fixed; }
  th:first-child { width: 38%; }
  th:nth-child(2) { width: 17%; }
}
@media (max-width: 420px) {
  .format-card { grid-template-columns: 31px minmax(0, 1fr); padding: 0 10px 12px; }
  .format-visual { width: calc(100% + 20px); margin: 0 -10px 9px; }
  .format-card .arrow { display: none; }
  .format-card .format-icon { width: 30px; height: 29px; }
  .format-card h3 { font-size: 15px; margin: 0; }
  .format-card p { font-size: 12px; }
  .two-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
