/* FLINT landing page. Follows DESIGN.md ("Soft dashboard"): soft grey stage, one rounded shell,
   white rounded cards, one accent (teal, from the DESIGN.md accent options, matches the logo),
   diagonal hatch texture, springy motion that can be switched off.
   Colour only through the tokens below. */

:root {
  /* surfaces */
  --stage: #dededb; --stage2: #e9e9e6;
  --shell: #f4f4f1;
  --card: #ffffff; --card2: #f6f6f3;
  /* text and lines */
  --ink: #151512; --muted: #8a8a83; --faint: #b3b3ab;
  --line: #ebebe6; --line2: #dcdcd5;
  /* accent: teal. Swapping these four swaps the whole accent. */
  --lime: #3fb8a4; --lime2: #8fdccf; --limebg: #d9f2ed; --limeink: #17695c;
  --onlime: #10200a;
  /* supporting colours, used only for the ambient glow */
  --orange: #f8a85b; --pink: #f3a6c3; --blue: #8fc2f0; --yellow: #f2e64a;
  --dark: #121210; --darkink: #f4f4f0;
  /* shape, depth, motion */
  --r: 20px; --rs: 12px;
  --shadow: 0 1px 2px rgba(25, 25, 10, .04), 0 10px 28px rgba(25, 25, 10, .06);
  --shadow2: 0 2px 4px rgba(25, 25, 10, .05), 0 18px 40px rgba(25, 25, 10, .12);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .32) 0 2px, transparent 2px 6px);
  /* type */
  --sans: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", Georgia, serif;
}

/* Dark: same names, warm near-black. System / Light / Dark all work. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stage: #0b0b0a; --stage2: #121210; --shell: #151513; --card: #1d1d1a; --card2: #252522;
    --ink: #f1f1ec; --muted: #9b9b93; --faint: #6c6c65; --line: #2a2a26; --line2: #3a3a35;
    --lime: #4fc9b4; --lime2: #8fdccf; --limebg: #17332e; --limeink: #8fe0d1;
    --dark: #f1f1ec; --darkink: #121210;
    --orange: #f0a35a; --pink: #d98aab; --blue: #6aa7de; --yellow: #e8dc4a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    --shadow2: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
    --hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 6px);
  }
}
:root[data-theme="dark"] {
  --stage: #0b0b0a; --stage2: #121210; --shell: #151513; --card: #1d1d1a; --card2: #252522;
  --ink: #f1f1ec; --muted: #9b9b93; --faint: #6c6c65; --line: #2a2a26; --line2: #3a3a35;
  --lime: #4fc9b4; --lime2: #8fdccf; --limebg: #17332e; --limeink: #8fe0d1;
  --dark: #f1f1ec; --darkink: #121210;
  --orange: #f0a35a; --pink: #d98aab; --blue: #6aa7de; --yellow: #e8dc4a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  --shadow2: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
  --hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 6px);
}
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font: 14.5px/1.55 var(--sans);
  color: var(--ink);
  background: radial-gradient(1200px 700px at 20% -10%, var(--stage2), var(--stage));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dark); color: var(--darkink); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* Ambient colour: slow pulsing multicolour glow behind the shell (shows through the translucent shell) */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient i {
  position: absolute; width: 85vmax; height: 85vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--ambient, var(--lime)) 0, transparent 70%);
  filter: blur(20px); opacity: .7; will-change: transform, opacity;
  animation: pulse 7s ease-in-out infinite alternate;
}
.ambient i:nth-child(1) { left: -25vmax; top: -30vmax; }
.ambient i:nth-child(2) { right: -25vmax; top: -25vmax; --ambient: var(--blue); animation-duration: 9s; animation-delay: -3s; }
.ambient i:nth-child(3) { left: -25vmax; bottom: -35vmax; --ambient: var(--pink); animation-duration: 11s; animation-delay: -6s; }
.ambient i:nth-child(4) { right: -25vmax; bottom: -35vmax; --ambient: var(--orange); animation-duration: 13s; animation-delay: -9s; }
.ambient i:nth-child(5) { left: 28vw; top: 22vh; width: 55vmax; height: 55vmax; --ambient: var(--yellow); animation-duration: 15s; animation-delay: -5s; }
@keyframes pulse {
  from { opacity: .3; transform: translate3d(0, 0, 0) scale(.88); }
  to   { opacity: .95; transform: translate3d(4vmax, 3vmax, 0) scale(1.2); }
}

/* Layout */
.stage { position: relative; z-index: 1; padding: 26px; animation: pagein .5s var(--ease) backwards; }
.shell {
  max-width: 1240px; margin-inline: auto;
  background: color-mix(in srgb, var(--shell) 40%, transparent); border-radius: 30px; box-shadow: var(--shadow2);
  min-height: calc(100vh - 52px);
  padding: 10px 24px 24px;
}
.content { display: grid; gap: 56px; padding-top: 18px; }

/* Reading progress + back to top */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90; background: var(--lime); background-image: var(--hatch); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--card); border: 0; border-radius: 14px; box-shadow: var(--shadow2); cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop.show:hover { transform: translateY(-2px); }

/* Topbar */
.topbar {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 6px;
  background: color-mix(in srgb, var(--shell) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 12px; background: var(--card); border-radius: 16px; text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.brand-mark { display: block; height: 32px; width: auto; transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-text { font-weight: 600; letter-spacing: .06em; font-size: 15px; }

.nav-panel { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.nav { display: flex; gap: 2px; margin-inline: auto; background: var(--card); border-radius: 16px; padding: 5px; height: 50px; align-items: center; box-shadow: 0 0 0 1px var(--line); }
.nav a { position: relative; text-decoration: none; padding: 7px 13px; border-radius: 12px; color: var(--muted); font-size: 13.5px; transition: color .2s, background .2s, box-shadow .2s; }
.nav a:hover { color: var(--ink); background: var(--card2); }
.nav a.active { color: var(--ink); background: var(--card); box-shadow: var(--shadow); padding-left: 18px; }
.nav a.active::before { content: ""; position: absolute; left: 4px; top: 9px; bottom: 9px; width: 4px; border-radius: 4px; background: var(--ink); animation: pop .35s var(--ease) both; }

.tools { display: flex; gap: 10px; align-items: center; }
.seg { --i: 0; position: relative; display: grid; grid-template-columns: repeat(3, 38px); height: 50px; padding: 5px; background: var(--card2); border-radius: 16px; }
.seg::before { content: ""; position: absolute; top: 5px; left: 5px; width: 38px; height: calc(100% - 10px); background: var(--card); border-radius: 12px; box-shadow: var(--shadow); transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--ease); }
.seg button { position: relative; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.icon-btn { display: grid; place-items: center; width: 50px; height: 50px; background: var(--card); border: 0; border-radius: 16px; cursor: pointer; box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.icon-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.icon-btn[aria-pressed="true"] { color: var(--limeink); background: var(--limebg); }
.menu-btn { display: none; margin-left: auto; }
svg.i { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: none; cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn-dark { background: var(--dark); color: var(--darkink); border-color: var(--dark); }
.btn-lime { background: var(--lime); color: var(--onlime); border-color: var(--lime); }
.btn-lime:hover { border-color: var(--lime); background: var(--lime2); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .2; transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; }

/* Cards */
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

#team .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 56px); background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
  background: var(--lime); background-image: var(--hatch); color: var(--onlime);
  font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(52px, 9vw, 92px); letter-spacing: -.035em; line-height: 1; }
.hero-sub { margin-top: 12px; font-size: clamp(17px, 2.2vw, 22px); letter-spacing: -.015em; color: var(--muted); }
.hero-lead { margin-top: 18px; max-width: 30rem; font-size: 17px; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-mark { display: block; justify-self: center; width: min(100%, 340px); animation: float 3.2s ease-in-out infinite; }
/* Teal ridges lose contrast on near-black, so lift the mark there */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-mark, :root:not([data-theme="light"]) .brand-mark { filter: brightness(1.7) saturate(1.15); }
}
:root[data-theme="dark"] .hero-mark, :root[data-theme="dark"] .brand-mark { filter: brightness(1.7) saturate(1.15); }

/* Sections */
.section-head { max-width: 46rem; margin-bottom: 22px; }
.kicker { font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--limeink); margin-bottom: 8px; }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
.lede { margin-top: 10px; font-size: 17px; color: var(--muted); }
.sub-h { font-size: 20px; margin: 34px 0 14px; }

.pillar-label { color: var(--limeink) !important; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; font-weight: 500; }
.pillar h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.pillar::before { content: ""; display: block; height: 8px; width: 56px; border-radius: 6px; margin-bottom: 18px; background: var(--lime); background-image: var(--hatch); }

/* Numbered list */
.numbered { display: grid; gap: 10px; max-width: 52rem; }
.numbered li { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: var(--r); padding: 14px 20px 14px 14px; box-shadow: 0 0 0 1px var(--line); }
.num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); background-image: var(--hatch); color: var(--onlime); font-weight: 600; font-variant-numeric: tabular-nums; }
.numbered p { font-size: 16px; }

/* Team */
.person { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: 0 0 0 1px var(--line); display: flex; gap: 14px; align-items: center; }
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--dark); color: var(--darkink); font-weight: 500; font-size: 14px; }
.role { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--limeink); font-weight: 500; margin-bottom: 3px; }
.name { font-size: 16px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; }

/* Vision / mission */
.vision { background: var(--card2); border-radius: 14px; padding: 26px 28px 26px 34px; position: relative; overflow: hidden; }
.vision::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lime); background-image: var(--hatch); }
.vision .kicker { margin-bottom: 10px; }
.vision p:last-child { font-family: var(--serif); font-size: clamp(19px, 2.4vw, 25px); line-height: 1.55; letter-spacing: -.005em; }
.commit { counter-reset: c; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.commit li { counter-increment: c; background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 0 0 1px var(--line); font-weight: 500; letter-spacing: -.01em; }
.commit li::before { content: counter(c, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .09em; font-variant-numeric: tabular-nums; color: var(--limeink); }

/* Activities */
.two-col { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.two-col .card { padding: 24px; }
.two-col .sub-h { margin: 0 0 14px; }
.plain li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.plain li:last-child { border-bottom: 0; }
.plain li::before { content: ""; flex: none; width: 18px; height: 8px; border-radius: 6px; background: var(--lime); background-image: var(--hatch); }
.timeline li { display: flex; gap: 14px; align-items: center; background: var(--card2); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.timeline time { flex: none; display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; background: var(--limebg); color: var(--limeink); font-weight: 500; }
.timeline p { font-weight: 500; letter-spacing: -.01em; }

/* Join */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; box-shadow: 0 0 0 1px var(--line); }
.benefits .card { font-weight: 500; letter-spacing: -.01em; }

/* Closing */
.closing { background: var(--dark); color: var(--darkink); border-radius: var(--r); text-align: center; padding: clamp(40px, 7vw, 72px) 24px; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: var(--hatch); opacity: .12; pointer-events: none; }
.closing > * { position: relative; }
.closing-line { font-size: clamp(30px, 5vw, 50px); font-weight: 500; letter-spacing: -.035em; }
.closing-sub { margin: 14px auto 26px; max-width: 34rem; font-size: 16px; opacity: .75; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: 28px 6px 4px; margin-top: 56px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-id { display: flex; gap: 14px; align-items: center; }
.foot-badge { background: var(--card); border-radius: 14px; padding: 8px 10px; box-shadow: 0 0 0 1px var(--line); }
.foot-badge img { display: block; height: 42px; width: auto; }
.foot-brand { font-weight: 600; letter-spacing: .06em; color: var(--ink); font-size: 16px; }
.foot-tag { margin-top: 4px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--limeink); }
.foot-label { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.foot-contact a { color: var(--ink); font-weight: 500; }

/* Motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Everything switches off with the in-page toggle or the OS setting */
:root[data-fx="off"] *, :root[data-fx="off"] *::before, :root[data-fx="off"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
:root[data-fx="off"] .reveal { opacity: 1; transform: none; }
:root[data-fx="off"] .ripple, :root[data-fx="off"] .progress, :root[data-fx="off"] .ambient { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ripple, .progress { display: none; }
  .ambient i { animation: none; }
}

/* Tablet and phone */
@media (max-width: 1020px) {
  .menu-btn { display: grid; }
  .nav-panel {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow2);
  }
  .nav-panel.open { display: flex; }
  .nav { flex-direction: column; height: auto; align-items: stretch; margin: 0; box-shadow: none; padding: 0; background: none; }
  .nav a { padding: 12px 14px; }
  .nav a.active { padding-left: 20px; }
  .tools { justify-content: space-between; }
  .seg { grid-template-columns: repeat(3, 44px); }
  .seg::before { width: 44px; }
}
@media (max-width: 760px) {
  .stage { padding: 10px; }
  .shell { border-radius: 24px; padding: 6px 12px 16px; min-height: calc(100vh - 20px); }
  .content { gap: 44px; }
  .topbar { top: 8px; }
  .hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .hero-mark { order: -1; width: 130px; justify-self: start; }
  .card { padding: 18px; }
  .totop { right: 14px; bottom: 14px; }
}
