:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --ink: #14232e;
  --ink-2: #3a4750;
  --muted: #6e7176;
  --line: #dcd8ce;
  --accent: #1f8a4c;
  --teal: #2a7d93;
  --accent-soft: #e4efe7;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif { font-family: var(--serif); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.brand img { height: 30px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-size: 11.5px; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14.5px; }
.nav a { color: var(--ink-2); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.nav .btn { color: var(--paper); padding: 9px 18px; }
.nav .btn:hover { color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 16px; width: auto; border-bottom: 1px solid var(--ink); justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* Hero */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(48px, 7vw, 88px); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 8.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-foot {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
}
.hero-foot p { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
}

/* Stats */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 0 22px 18px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-bottom: clamp(36px, 5vw, 64px); align-items: end; }
.section-head h2 { font-family: var(--serif); font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.015em; }
.section-head p { color: var(--ink-2); max-width: 52ch; font-size: 17px; }
.section-head .eyebrow { display: block; margin-bottom: 18px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }

/* Category index */
.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.6fr 28px;
  gap: 24px; align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.index-row:hover { padding-left: 14px; padding-right: 14px; background: var(--paper-2); }
.index-row .greek { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.index-row h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.index-row p { color: var(--muted); font-size: 15px; }
.index-row .arrow { font-size: 20px; color: var(--muted); transition: transform .25s, color .25s; }
.index-row:hover .arrow { transform: translateX(4px); color: var(--ink); }
@media (max-width: 760px) {
  .index-row { grid-template-columns: 44px 1fr 20px; gap: 6px 14px; padding: 22px 0; }
  .index-row .greek { font-size: 30px; grid-row: span 2; align-self: start; }
  .index-row p { grid-column: 2 / 3; }
  .index-row .arrow { grid-row: 1; grid-column: 3; }
}

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.cell h3 { font-size: 18px; font-weight: 600; margin: 18px 0 10px; letter-spacing: -0.01em; }
.cell p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .grid-3 { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split h2 { font-family: var(--serif); font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -0.015em; }
.split .body p + p { margin-top: 18px; }
.split .body p { color: var(--ink-2); font-size: 17px; }
.split .body .btn { margin-top: 28px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 120px) 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-family: var(--serif); font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.02em; max-width: 14ch; }
.cta p { color: #b6c2ca; margin-top: 18px; max-width: 44ch; }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* Page head */
.page-head { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--serif); font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -0.02em; margin-top: 18px; }
.page-head p { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 56ch; }

/* Products */
.products-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 5vw, 72px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
.toc { position: sticky; top: 96px; align-self: start; }
.toc .eyebrow { display: block; margin-bottom: 14px; }
.toc a { display: flex; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--muted); transition: color .2s; }
.toc a span { font-family: var(--serif); font-size: 17px; width: 16px; color: var(--accent); }
.toc a:hover, .toc a.active { color: var(--ink); }
.cat { padding-bottom: clamp(56px, 7vw, 88px); margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.cat:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cat-head { display: flex; gap: 24px; align-items: baseline; }
.cat-head .greek { font-family: var(--serif); font-size: clamp(56px, 7vw, 84px); line-height: 0.8; color: var(--accent); }
.cat-head h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.01em; }
.cat-intro { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 64ch; }
.chem { margin-top: 32px; border-top: 1px solid var(--ink); }
.chem-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.chem-row.head { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 12px 0; }
.chem-row b { font-weight: 600; }
.chem-row span { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--paper); }
.docs-note { margin-top: 8px; padding: 24px 28px; background: var(--accent-soft); border-radius: 12px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .toc .eyebrow { width: 100%; margin-bottom: 4px; }
}
@media (max-width: 640px) {
  .chem-row { grid-template-columns: 1fr; gap: 4px; }
  .chem-row.head { display: none; }
}

/* About */
.timeline { border-top: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 180px 1fr 1.4fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl-row .year { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.tl-row h3 { font-size: 18px; font-weight: 600; }
.tl-row p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .tl-row { grid-template-columns: 1fr; gap: 8px; } }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.person { padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.person .initials { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; }
.person h3 { font-size: 20px; font-weight: 600; margin-top: 20px; }
.person .role { font-size: 14px; color: var(--muted); margin-top: 2px; }
.person p { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.person a.link { display: inline-block; margin-top: 18px; font-size: 14px; border-bottom: 1px solid var(--ink); }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }
.checks li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; color: var(--ink-2); }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 15px; color: var(--accent); display: none; }
.form-status.show { display: block; }
.form-status.error { color: #a33a2a; }
.details { border-top: 1px solid var(--ink); }
.detail { padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail .eyebrow { display: block; margin-bottom: 8px; }
.detail p, .detail a { font-size: 16px; color: var(--ink); }
.detail a:hover { color: var(--accent); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound h1 { font-family: var(--serif); font-size: clamp(64px, 12vw, 160px); line-height: 1; }
.notfound p { margin: 18px 0 28px; color: var(--ink-2); font-size: 18px; }

/* Footer */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot-grid li { padding: 4px 0; }
.foot-grid a { color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .about p { color: var(--ink-2); margin-top: 16px; max-width: 34ch; }
.foot-grid address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ind { background: var(--paper); padding: 28px 24px 32px; }
.ind h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ind p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.ind .bar { width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--teal)); margin-bottom: 22px; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ind-grid { grid-template-columns: 1fr; } }
.hero-mark { width: clamp(120px, 16vw, 200px); margin-bottom: 36px; }
