:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #15140f;
  --ink-soft: #57544c;
  --ink-faint: #8a877d;
  --line: #e7e4dd;
  --accent: #f5821f;   /* logo orange */
  --accent-2: #2bb2db; /* logo cyan  */
  --maxw: 1080px;
  --pad: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.rule { border: 0; border-top: 1px solid var(--line); }

/* serif accent face for big display + emphasis */
.hero-title em,
.display { font-family: "Instrument Serif", Georgia, serif; font-style: normal; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark { width: 34px; height: 34px; object-fit: contain; display: block; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.88; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(80px, 14vh, 160px);
  padding-bottom: clamp(70px, 12vh, 140px);
}
.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.hero-title {
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero-note {
  margin-top: 36px;
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  line-height: 1.65;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 48px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Sections / split layout ---------- */
.section { padding: clamp(64px, 10vw, 120px) var(--pad); }
.split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 6vw, 88px);
}
.split-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.split-label span {
  font-family: "Instrument Serif", serif;
  font-size: 1.3rem;
  color: var(--accent);
}
/* alternate the two brand colours down the page */
#products .split-label span,
#contact  .split-label span { color: var(--accent-2); }
.display {
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 32px;
}
.prose {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 22px;
}
.prose:last-child { margin-bottom: 0; }

/* ---------- Product ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 16px;
}
.product-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.product-text h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
}
.link-arrow:hover { gap: 12px; color: var(--accent); border-color: var(--accent); }

.product-visual {
  display: block;
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(20, 20, 15, 0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-visual:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -40px rgba(20, 20, 15, 0.45); }

.tmt-logo {
  display: block;
  width: 56%;
  max-width: 220px;
  height: auto;
  margin: 28px auto 8px;
  transition: transform 0.3s;
}
.product-visual:hover .tmt-logo { transform: scale(1.04); }

.visual-caption {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Services list ---------- */
.services-list { list-style: none; }
.services-list li {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: baseline;
}
.services-list li:last-child { border-bottom: 1px solid var(--line); }
.services-list h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.services-list p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Contact ---------- */
.contact-rows { margin: 36px 0 44px; }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-key {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-val { font-size: 1.1rem; font-weight: 500; }
a.contact-row { transition: color 0.2s; }
a.contact-row:hover .contact-val { color: var(--accent-2); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.btn-solid:hover { transform: translateY(-2px); opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand .logo-mark { width: 40px; height: 40px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue svg { animation: none; }
}

/* ---------- Responsive ---------- */
.d-md { display: none; }
@media (min-width: 720px) { .d-md { display: inline; } }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split-label { flex-direction: row; gap: 10px; align-items: baseline; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .services-list li { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 600px) {
  :root { --pad: 22px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    padding: 22px var(--pad);
    gap: 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .form-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}
