/* ==========================================================================
   KOLEN GROUP — public site, dark theme ("rotating words" direction)
   Charcoal base · white type · Kolen green #96C63D accents · Geist
   ========================================================================== */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #96C63D;
  --green-hover: #A6D24E;
  --green-ink: #4F6E12;
  --bg: #EFF1F2;
  --bg-deep: #24282B;
  --raise: #FFFFFF;
  --panel: #FFFFFF;
  --text: #1C1E20;
  --muted: #585B5E;
  --faint: #8B8E91;
  --line: #D3D6D8;
  --line-soft: #DCDEE0;
  --ink: #16181A;
  --hero: #26292C;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
h1 { font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -0.028em; line-height: 1.03; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 16px; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
strong { font-weight: 600; }
small { font-size: 14.5px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
::selection { background: var(--green); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 58ch; color: var(--muted); }
.muted { color: var(--muted); }

.skip { position: absolute; left: 16px; top: -60px; background: var(--green); color: var(--ink); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.chev { width: 14px; height: 14px; flex: none; }
.ext { width: 13px; height: 13px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 3px;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-green { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; border-color: #000; }
.btn-line { background: transparent; border-color: var(--text); color: var(--text); }
.btn-line:hover { background: var(--text); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: #E7E9EA; border-color: #E7E9EA; }
.btn .chev { margin-right: -4px; }

.quiet { text-decoration: none; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.quiet:hover { text-decoration: underline; text-decoration-color: var(--green); }
.quiet .chev { color: var(--green-ink); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }

/* ---------- brand logo ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 42px; width: auto; }
footer .brand img { height: 46px; }

/* ---------- header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.menu { display: flex; gap: 28px; margin-left: 24px; }
.menu a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--text); }
.menu a.is-here { color: var(--text); border-bottom-color: var(--green); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-cta .quiet { font-size: 15.5px; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mnav { display: none; position: sticky; top: var(--nav-h); z-index: 49; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-weight: 500; font-size: 18px; color: var(--text); }
.mnav a.is-here { color: var(--green-ink); }
.mnav .mcta { display: grid; gap: 10px; padding-top: 18px; }
.mnav .mcta .btn { display: flex; justify-content: center; padding: 0 22px; font-size: 16px; border: 1.5px solid var(--green); }
.mnav .mcta .btn-line { border-color: rgba(255,255,255,.55); }

/* ---------- hero (home) ---------- */
.hero { min-height: min(82svh, 740px); display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 40px; position: relative; overflow: clip; background: var(--hero); }
.hero h1, .hero .trio a:hover { color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 78% 10%, rgba(150, 198, 61, .10), transparent 55%),
              radial-gradient(70% 60% at 8% 100%, rgba(255, 255, 255, .045), transparent 60%); }
.hero-in { position: relative; width: 100%; }
.hero h1 { font-size: clamp(44px, 8.2vw, 96px); line-height: 1.04; }
.hero h1 .rot { color: var(--green); display: inline-block; }
.hero h1 .rot.swap { animation: rswap .5s; }
@keyframes rswap {
  0% { opacity: 1; transform: none; }
  45% { opacity: 0; transform: translateY(-16px); }
  55% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}
.hero .lede { margin-top: 26px; color: #C6C9CB; }
.hero .actions { margin-top: 30px; }
.hero .btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.07); color: #fff; }
.hero .trio { display: flex; flex-wrap: wrap; gap: 0 34px; margin-top: clamp(38px, 6vh, 64px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.hero .trio a { text-decoration: none; color: #C6C9CB; font-weight: 500; font-size: 15.5px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; }
.hero .trio .chev { color: var(--green); }

.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.sec.mist { background: var(--green); border-top: 0; }
.spec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); }
.spec-head h2 { margin-bottom: 14px; }
.spec-head .intro { color: var(--muted); max-width: 36ch; }
.spec-head .actions { margin-top: 24px; }
.spec-head .logo { margin-bottom: 22px; }

/* logos sit on light plates so the black/brown marks read on dark */
.logo { height: 54px; width: auto; }
.logo.lg-sh { height: 64px; }

/* scroll reveal (JS adds .in; without JS everything stays visible) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

/* row lists */
.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rows.one { grid-template-columns: 1fr; }
.row-item { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.row-item h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 20px; }
.row-item h3 small { color: var(--green-ink); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.row-item p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* prose blocks */
.blocks > * + * { margin-top: 32px; }
.block h3 { margin-bottom: 10px; }
.block p { max-width: 62ch; color: var(--muted); }
.block .actions { margin-top: 18px; }
.block ul.ticks { margin-top: 14px; }
.block ul.ticks + .actions { margin-top: 22px; }

/* tick lists */
.ticks li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line-soft); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; background: var(--green); }
.ticks li:first-child { border-top: 0; }

/* ---------- brand panels (home) ---------- */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.bp { padding: clamp(26px, 3vw, 36px); background: #fff; border: 1px solid var(--line-soft); border-top: 4px solid var(--green); display: flex; flex-direction: column; }
.bp .logo { height: 48px; margin-bottom: 26px; align-self: flex-start; }
.bp .logo.lg-sh { height: 58px; }
.bp h3 { font-size: 24px; }
.bp .what { margin-top: 12px; font-size: 16px; color: var(--muted); }
.bp .ticks { margin-top: 20px; }
.bp .ticks li { font-size: 15.5px; }
.bp .actions { margin-top: auto; padding-top: 26px; }

/* ---------- portals band (green) ---------- */
.sec.mist, .sec.mist h3 { color: var(--ink); }
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.portal h3 { font-size: 26px; }
.portal p { margin-top: 12px; max-width: 46ch; color: #2E3A14; }
.portal .actions { margin-top: 22px; }
.portals .portal + .portal { border-left: 1px solid rgba(20, 24, 8, .28); padding-left: clamp(28px, 5vw, 72px); margin-left: calc(clamp(28px, 5vw, 72px) * -1); }

/* ---------- cta band ---------- */
.cta-band { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.cta-band h2 { max-width: 18ch; }
.cta-band p { margin-top: 16px; max-width: 52ch; color: var(--muted); }
.cta-band .actions { margin-top: 28px; }
.cta-band .actions .quiet { font-size: 17px; }

/* ---------- inner page head ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 4.5vw, 56px); }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); max-width: 16ch; }
.page-head .lede { margin-top: 20px; }

/* client strip */
.clients { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 6px; }
.clients li { font-size: 19px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- sign-in card ---------- */
.signin { background: var(--hero); border-left: 12px solid var(--green); padding: 30px 32px; }
.signin h3 { font-size: 24px; color: #fff; }
.signin p { margin-top: 12px; color: #C6C9CB; }
.signin .btn { margin-top: 22px; }
.signin .fine { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); color: #9A9EA1; font-size: 14.5px; line-height: 1.55; }
.signin .fine a { color: #fff; }

/* two-column page layouts */
.two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.aside > * + * { margin-top: 28px; }
.aside h4 { margin-bottom: 6px; }
.aside p { color: var(--muted); font-size: 15.5px; }
.aside .signin { margin-top: 0; }

/* steps */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line-soft); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 13px; width: 28px; height: 28px; display: grid; place-items: center; background: var(--green); color: var(--ink); font-weight: 600; font-size: 14px; }
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: 15.5px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field label small { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  border: 1.5px solid #B6B9BC; border-radius: 3px; background: #fff;
  padding: 12px 14px; min-height: 48px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231C1E20' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.field select option { color: #1C1E20; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--text); }
.form .note { color: var(--faint); font-size: 14.5px; }
.form .btn { justify-self: start; }
.hp { display: none; }

.narrow { max-width: 640px; }

/* ---------- careers ---------- */
.vals { padding-top: 0; }
.roles { display: grid; gap: 14px; }
.role { background: #fff; border: 1px solid var(--line-soft); border-left: 6px solid var(--green); padding: 22px 24px; display: grid; gap: 10px; }
.role .top { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.role h3 { font-size: 21px; }
.role .meta { color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.role p { color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.drop { position: relative; display: block; border: 2px dashed #AAB0B4; border-radius: 6px; background: #fff; padding: 26px 18px; text-align: center; color: var(--muted); cursor: pointer; font-size: 15px; }
.drop.hover { border-color: var(--green); background: #F6FAEE; }
.drop strong { display: block; color: var(--text); margin-bottom: 2px; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- footer ---------- */
footer { background: var(--bg-deep); padding: clamp(48px, 6vw, 72px) 0 28px; }
footer, footer h4 { color: #fff; }
.f-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.f-brand p { margin-top: 18px; color: #C6C9CB; max-width: 34ch; font-size: 15.5px; }
.f-col h4 { color: #9A9EA1; font-weight: 500; margin-bottom: 14px; }
.f-col a { display: block; text-decoration: none; padding: 5px 0; color: #fff; font-size: 15.5px; }
.f-col a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.f-legal { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); color: #9A9EA1; font-size: 14.5px; }
.f-legal a { color: #9A9EA1; text-decoration: none; }
.f-legal a:hover { color: #fff; }

/* ---------- plain pages ---------- */
.plain { padding: clamp(56px, 8vw, 120px) 0; }
.plain h1 { font-size: clamp(32px, 4vw, 48px); }
.plain p { margin-top: 16px; max-width: 56ch; color: var(--muted); }

/* ---------- motion prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero h1 .rot.swap { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 24px; }
  .spec-head .intro { max-width: 60ch; }
  .f-in { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .brands { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu, .nav-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .brand img { height: 34px; }
  .rows, .portals, .form .pair { grid-template-columns: 1fr; }
  .portals .portal + .portal { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid rgba(20, 24, 8, .25); padding-top: 28px; }
  .signin { padding: 24px 22px; border-left-width: 10px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .f-in { grid-template-columns: 1fr; gap: 28px; }
  .clients li { font-size: 17px; }
  .hero { min-height: min(84svh, 720px); }
  .hero .trio { gap: 0 24px; }
}
