/* ==========================================================================
   SkinTech Lab — design tokens
   ========================================================================== */
:root {
  --bg: #f4f3f0;
  --ink: #0d0d0d;
  --accent: #c98a72;
  --accent-ink: #0d0d0d;
  --ink-muted: rgba(13, 13, 13, 0.6);
  --ink-muted-65: rgba(13, 13, 13, 0.65);
  --ink-line: rgba(13, 13, 13, 0.12);
  --ink-line-15: rgba(13, 13, 13, 0.15);
  --inv: #f4f3f0;
  --inv-muted: rgba(244, 243, 240, 0.6);
  --inv-line: rgba(244, 243, 240, 0.18);
  /* Accent darkened toward the ink for small text on the page background (AA contrast) */
  --accent-text: color-mix(in srgb, var(--accent) 65%, var(--ink));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.6; }
::selection { background: #0d0d0d; color: #f4f3f0; }

img { display: block; max-width: 100%; }

.mono { font-family: 'IBM Plex Mono', monospace; }

.container { max-width: 1400px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

.dark { background: #0d0d0d; color: #f4f3f0; }
.section-line { border-top: 1px solid var(--ink-line); }

/* Type */
.h2 { margin: 0; font-size: clamp(40px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; text-wrap: pretty; }
.body-lg { margin: 0; font-size: 18px; line-height: 1.55; }
.muted { color: var(--ink-muted-65); }
.muted-inv { color: var(--inv-muted); }

/* Buttons */
.btn { display: inline-block; padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; text-align: center; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { opacity: 0.85; }
.btn-outline { border: 1px solid rgba(13, 13, 13, 0.3); padding: 15px 32px; }
.btn-sm { padding: 11px 24px; font-size: 15px; }

/* Eyebrow */
.eyebrow { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-dot { width: 9px; height: 9px; background: var(--accent); margin-top: 3px; flex: none; }
.eyebrow-center { align-items: center; }
.eyebrow-center .eyebrow-dot { margin-top: 0; }

.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.split-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 240, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 24px; height: 26px; fill: currentColor; flex: none; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.site-nav a[aria-current="page"],
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Mobile menu (shown below 960px) */
.menu-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu-toggle-bar {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle-bar:first-child { top: 17px; }
.menu-toggle-bar:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  display: flex; flex-direction: column; padding: 8px 24px 32px;
  border-top: 1px solid var(--ink-line);
  /* Keep every link reachable on short screens (landscape phones): header is 73px */
  max-height: calc(100vh - 73px); max-height: calc(100dvh - 73px); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  padding: 18px 0; border-bottom: 1px solid var(--ink-line);
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: var(--bg); color: var(--ink); }
.hero-inner { padding-top: 96px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.hero-title {
  margin: 0; font-size: clamp(44px, 6.4vw, 104px); line-height: 0.98;
  letter-spacing: -0.035em; font-weight: 600; max-width: 18ch; text-wrap: pretty;
}
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.hero-lede { margin: 0; max-width: 44ch; font-size: 18px; line-height: 1.5; color: var(--ink-muted); }
.hero-ctas { display: flex; align-items: center; gap: 14px; }
.hero-media { position: relative; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 4px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.hero-meta span { white-space: nowrap; }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro .split-grid { padding-top: 120px; padding-bottom: 120px; }

/* ==========================================================================
   Capabilities
   ========================================================================== */
.capabilities-inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 72px; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cap-col { display: flex; flex-direction: column; border-top: 2px solid #0d0d0d; }
.cap-head { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 0 32px; }
.cap-head h3 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.cap-num { font-size: 14px; color: var(--accent); }
.cap-list { display: flex; flex-direction: column; }
.cap-list div { border-top: 1px solid var(--ink-line-15); padding: 18px 0; font-size: 16px; line-height: 1.4; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-inner { padding-top: 100px; padding-bottom: 100px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; }
.cta-copy { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.cta-media { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.cta-media img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================================================
   Certifications
   ========================================================================== */
.certs-head { padding-top: 120px; padding-bottom: 72px; }
.marquee-band { border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); overflow: hidden; }
.marquee-pad { padding: 40px 0; }
.marquee-track { display: flex; width: max-content; animation: stl-marquee 28s linear infinite; will-change: transform; }
.marquee-half { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex: none; }
.cert {
  font-size: clamp(32px, 3.4vw, 52px); font-weight: 700; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.2px #0d0d0d; white-space: nowrap; flex: none;
}
.cert-dot { width: 10px; height: 10px; background: var(--accent); flex: none; }
@keyframes stl-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Markets
   ========================================================================== */
.markets-inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 72px; }
.markets-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 40px; }
.market-card { display: flex; flex-direction: column; gap: 20px; }
.market-media { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.market-media img { width: 100%; height: 100%; object-fit: cover; }
.market-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.market-title h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.market-num { font-size: 13px; color: var(--accent); }
.market-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }

/* ==========================================================================
   About
   ========================================================================== */
.about-inner { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.about-media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; gap: 28px; }
.h2-about { margin: 0; font-size: clamp(36px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; text-wrap: pretty; }
.about-body { margin: 0; font-size: 17px; line-height: 1.6; }
.stats { display: flex; gap: 56px; border-top: 1px solid var(--ink-line-15); padding-top: 28px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 11px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }

/* ==========================================================================
   Core areas
   ========================================================================== */
.core-inner { padding-top: 140px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 96px; }
.core-head {
  margin: 0; font-size: clamp(64px, 8.5vw, 136px); line-height: 0.97;
  letter-spacing: -0.035em; font-weight: 600; display: flex; flex-direction: column;
}
.core-word { color: var(--accent); opacity: 0.28; transition: opacity 0.45s ease; }
.core-word.is-active { opacity: 1; }
.core-rows { display: flex; flex-direction: column; }
.core-row { display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 40px; border-top: 1px solid var(--inv-line); padding: 48px 0; }
.core-row-last { border-bottom: 1px solid var(--inv-line); }
.core-num { font-size: 16px; color: var(--accent); }
.core-row h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
.core-row p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--inv-muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-inner { padding-top: 120px; padding-bottom: 120px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px; }
.contact-copy { display: flex; flex-direction: column; gap: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; border-top: 1px solid rgba(244, 243, 240, 0.2); padding-top: 28px; }
.contact-email { font-weight: 600; }
.contact-details span { color: rgba(244, 243, 240, 0.7); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 243, 240, 0.55); }
.field input,
.field textarea {
  appearance: none; background: transparent; border: none;
  border-bottom: 1px solid rgba(244, 243, 240, 0.4);
  padding: 10px 0; font-family: Archivo, sans-serif; font-size: 16px;
  color: #f4f3f0; outline: none; width: 100%; border-radius: 0;
}
.field textarea { resize: none; }
.field input:focus,
.field textarea:focus { border-bottom-color: #f4f3f0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: rgba(244, 243, 240, 0.5); max-width: 40ch; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid rgba(244, 243, 240, 0.15); }
.footer-inner { padding-top: 80px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 72px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 15px; }
.footer-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 243, 240, 0.55); }
.footer-dim { font-size: 15px; line-height: 1.4; color: rgba(244, 243, 240, 0.75); }
.footer-bottom { display: flex; flex-direction: column; gap: 24px; }
.footer-wordmark { display: flex; align-items: center; gap: 0.2em; font-size: clamp(44px, 9.5vw, 150px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; color: rgba(244, 243, 240, 0.95); }
.footer-mark { width: 0.82em; height: 0.88em; fill: currentColor; flex: none; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(244, 243, 240, 0.15); padding-top: 24px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 243, 240, 0.55);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .container, .header-inner { padding-left: 24px; padding-right: 24px; }
  .site-nav { gap: 20px; }
  .site-nav a:not(.btn) { display: none; }
  .menu-toggle { display: block; }
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro .split-grid, .certs-head { padding-top: 72px; padding-bottom: 72px; }
  .capabilities-inner, .markets-inner, .about-inner, .contact-inner { padding-top: 72px; padding-bottom: 72px; }
  .core-inner { padding-top: 88px; padding-bottom: 88px; gap: 56px; }
  .cap-grid, .markets-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .core-row { grid-template-columns: 48px 1fr; }
  .core-row p { grid-column: 2; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 56px; gap: 40px; }
  .hero-ctas { flex-wrap: wrap; }
  .hero-meta { justify-content: center; }
  .hero-meta span:last-child { display: none; }
}
/* About stats: three across only when the copy column is wide enough */
@media (max-width: 1280px) {
  .stats { flex-direction: column; gap: 0; padding-top: 0; }
  .stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; }
  .stat + .stat { border-top: 1px solid var(--ink-line-15); }
  .stat-num { font-size: 48px; }
  .stat-label { text-align: right; }
}
@media (min-width: 561px) and (max-width: 960px) {
  .about-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .core-row { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .core-row p { grid-column: 1; margin-top: 8px; }
}
@media not all and (max-width: 960px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 359px) {
  .hero-title { font-size: 40px; }
}
@media (min-width: 481px) {
  /* The header already shows Get in Touch at these widths */
  .mobile-menu .btn { display: none; }
}
@media (max-width: 480px) {
  .site-nav .btn { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ctas .btn { display: block; }
  .contact-form { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-inner { padding-top: 120px; padding-bottom: 120px; }
.legal-body { max-width: 68ch; }
.legal-body .h2 { margin-bottom: 40px; }
.legal-body h2 { margin: 48px 0 12px; line-height: 1.2; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.legal-body p { margin: 0 0 16px; font-size: 17px; line-height: 1.6; color: var(--ink-muted-65); }
.legal-body a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.legal-contact { color: var(--ink) !important; }
@media (max-width: 960px) {
  .legal-inner { padding-top: 72px; padding-bottom: 72px; }
}
