/* Shared styles for INAT Labs inner pages (about, products, careers, press, contact, legal). */
:root {
  --paper: #f2efe7; --paper-2: #e9e5da; --card: #fbfaf6;
  --ink: #121211; --ink-2: #4f4c45; --mute: #8a857a; --line: #d6d1c4;
  --lime: #c8f169; --sage: #2f5d46;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --g: clamp(18px, 3.4vw, 52px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--g); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(242,239,231,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--display); letter-spacing: -.03em; text-decoration: none; }
.brand i { width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.brand i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; }
.nav { display: flex; gap: 26px; }
.nav a { font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; border: 1px solid var(--ink); background: none; border-radius: 999px; padding: 8px 14px; font: 600 13px var(--display); cursor: pointer; }

.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font: 600 14px var(--display); cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; white-space: nowrap; }
.pill.ghost { background: transparent; color: var(--ink); }
.pill.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.pill svg { width: 12px; height: 12px; }

/* Products dropdown */
.dd { position: relative; }
.dd-btn { border: 0; background: none; font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; }
.dd-btn:hover, .dd.open .dd-btn { color: var(--ink); }
.dd-btn svg { width: 10px; height: 10px; transition: transform .3s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); min-width: 270px; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 24px 50px -24px rgba(18,18,17,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; z-index: 60; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd.open .dd-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.dd-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--paper-2); }
.dd-menu b { font: 700 16px var(--display); letter-spacing: -.02em; color: var(--ink); }
.dd-menu span { font-size: 13px; color: var(--mute); }
@media (hover: hover) { .dd:hover .dd-menu { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); } }

/* Page hero */
.page-hero { padding: clamp(70px, 12vh, 140px) 0 clamp(40px, 7vh, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 18px 0 0; font-weight: 400; letter-spacing: -.05em; line-height: .9; font-size: clamp(52px, 8.5vw, 150px); }
.page-hero h1 .a { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.page-hero h1 .b { font-family: var(--serif); font-style: italic; color: var(--sage); letter-spacing: -.03em; }
.page-hero .lede { max-width: 34em; margin: 28px 0 0; font: 500 clamp(18px, 1.5vw, 22px)/1.45 var(--display); color: var(--ink-2); letter-spacing: -.01em; }

/* Sections */
.sec { padding: clamp(60px, 10vh, 120px) 0; border-bottom: 1px solid var(--line); }
.sec:last-of-type { border-bottom: 0; }
.sec-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 70px); }
.sec-grid > .mono { padding-top: 8px; }
h2 { margin: 0 0 22px; font: 800 clamp(30px, 3.4vw, 54px)/1 var(--display); letter-spacing: -.045em; }
h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage); letter-spacing: -.02em; }
h3 { margin: 0 0 8px; font: 700 clamp(19px, 1.5vw, 23px)/1.15 var(--display); letter-spacing: -.03em; }
p { margin: 0 0 16px; }
.big { font: 500 clamp(26px, 3vw, 46px)/1.15 var(--display); letter-spacing: -.035em; max-width: 24em; margin: 0; }
.big em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sage); }
.muted { color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
a.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card .mono { margin-bottom: 18px; }
.card p { color: var(--ink-2); margin: 0; }
.card .go { margin-top: auto; padding-top: 18px; font: 600 14px var(--display); }

.list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.list > div { padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); }
.list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.list > div:nth-child(even) { padding-left: 22px; }
.list p { color: var(--ink-2); margin: 0; }
.list .mono { display: block; margin-bottom: 14px; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 220px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

.person { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.person img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; width: 100%; }

.status { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sage); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

form.inline { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); max-width: 460px; }
form.inline input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 15px; }
.ok { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--sage); }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 150px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.swatch div { height: 80px; }
.swatch span { display: block; padding: 10px 12px; font: 500 12px var(--mono); }

/* Legal text */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(22px, 2vw, 28px); margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--sage); }

/* Footer */
.site-footer { background: var(--ink); color: #b9b4a8; padding: clamp(60px, 9vh, 100px) 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.site-footer .brand { color: var(--paper); }
.site-footer p { max-width: 24em; margin: 16px 0 0; }
.site-footer h4 { margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8a857a; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.foot-word { font: 800 clamp(70px, 17vw, 300px)/.8 var(--display); letter-spacing: -.07em; text-transform: uppercase; color: #1f1e1b; margin-top: clamp(40px, 7vh, 80px); white-space: nowrap; overflow: hidden; }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid #2e2d29; font-size: 13px; color: #8a857a; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); padding: 8px var(--g) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 14px; }
  .menu-btn { display: inline-flex; }
  .site-header .pill { display: none; }
  .sec-grid, .person { grid-template-columns: 1fr; }
  .person img { max-width: 320px; }
  .cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .list { grid-template-columns: 1fr; }
  .list > div:nth-child(odd) { border-right: 0; }
  .list > div:nth-child(even) { padding-left: 0; }
  .facts th { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { transition: none; opacity: 1; transform: none; } }
