/* ==========================================================================
   OpenTranslators — main stylesheet
   Rebuilt from the original template.css / reset.css of the archived site.
   Palette, typography (Kreon), 980px grid, tab navigation, khaki + green
   buttons and the paper-texture background are preserved from the original;
   layout is now responsive and animation-aware.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset (condensed from the original reset.css)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
address, cite, code, del, dfn, em, img, ins, q, small, strong, sub, sup, dl,
dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside, figure, figcaption, footer, header,
main, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, figure, figcaption, footer, header, main, nav, section { display: block; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   2. Design tokens — taken straight from the archived stylesheet
   -------------------------------------------------------------------------- */
:root {
  /* Greens */
  --green:        #4BA328;
  --green-light:  #5FAE37;
  --green-dark:   #3F912B;
  --green-soft:   #58b236;
  --green-tint:   #F0F7ED;

  /* Khaki / brown family */
  --khaki:        #A7A37E;
  --khaki-btn:    #A4A07B;
  --khaki-dark:   #828067;
  --olive:        #999573;
  --khaki-tint:   #f3f2ea;

  /* Neutrals */
  --ink:          #515151;
  --grey:         #999999;
  --grey-light:   #CCCCCC;
  --line:         #DDDDDD;
  --line-soft:    #E5E5E5;
  --panel:        #F7F7F7;
  --panel-2:      #F6F6F6;
  --white:        #FFFFFF;
  --blue:         #0060AD;

  /* Layout */
  --wrap:         980px;
  --radius:       10px;
  --radius-lg:    20px;

  /* Motion */
  --ease:         cubic-bezier(.22, .61, .36, 1);
  --speed:        .28s;

  /* Elevation */
  --shadow-sm:    0 1px 3px rgba(80, 78, 64, .10);
  --shadow:       0 6px 18px rgba(80, 78, 64, .10);
  --shadow-lg:    0 16px 40px rgba(80, 78, 64, .16);
}

/* --------------------------------------------------------------------------
   3. Base typography
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background-color: #f4f3ee;
  background-image: url('../img/bg-texture.svg');
  background-position: top left;
  background-repeat: repeat;
  color: var(--ink);
  font-family: 'Kreon', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3em;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  line-height: 1.2em;
}

h1 { color: var(--blue); font-size: 1.7em; margin: 0 0 .5em; }
h2 { font-size: 1.4em; }
h3 { color: var(--blue); font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { color: var(--blue); font-size: 1.1em; }
h6 { color: #8A8581; font-size: 1.3em; margin: 0 0 1.3em; }

p { margin: 0 0 .5em; padding: 0; }

a { color: var(--grey); cursor: pointer; text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { text-decoration: underline; }

strong, b { font-weight: 700; color: var(--khaki-dark); }
em, i { font-style: italic; }

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-weight: 400;
}

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius) 0;
  font-size: 14px;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--wide { max-width: 1160px; }

.row { display: flex; flex-wrap: wrap; margin: 0 -14px; }
.col { padding: 0 14px; flex: 1 1 0; min-width: 0; }
.col-2  { flex: 0 0 50%;     max-width: 50%;     padding: 0 14px; }
.col-3  { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 14px; }
.col-4  { flex: 0 0 25%;     max-width: 25%;     padding: 0 14px; }
.col-23 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 14px; }

.section { padding: 56px 0; }
.section--tight { padding: 34px 0; }
.section--panel {
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--white { background: var(--white); }
.section--tint  { background: var(--green-tint); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

/* Section heading, styled after `#content H1/H3` in the original */
.section-head { margin: 0 0 34px; }
.section-head.center { text-align: center; }
.section-head h2,
.section-head h1 {
  color: var(--olive);
  font-size: 2.4em;
  text-shadow: 0 2px 0 #fff;
  margin: 0 0 .35em;
}
.section-head p {
  color: var(--grey);
  font-size: 1.35em;
  line-height: 1.5em;
  max-width: 660px;
  margin: 0;
}
.section-head.center p { margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 1.05em;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 10px;
}
.eyebrow--khaki { color: var(--khaki); }

.lead {
  font-size: 1.45em;
  line-height: 1.55em;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   5. Buttons — original .button / .login.green-button / .login.brown-button
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  padding: 10px 26px;
  text-decoration: none;
  margin: 10px 8px 0 0;
  background: var(--khaki-btn);
  border: 1px solid #DCDCDC;
  text-shadow: 0 -1px 0 var(--khaki-dark);
  text-align: center;
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1.25;
  transition: background-color var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.btn:hover {
  background-color: var(--khaki-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--green {
  background-color: var(--green-light);
  text-shadow: 0 -1px 0 var(--green-dark);
}
.btn--green:hover { background-color: var(--green-dark); }

.btn--ghost {
  background: transparent;
  color: var(--khaki-dark);
  border: 1px solid var(--khaki);
  text-shadow: none;
}
.btn--ghost:hover { background: var(--khaki); color: #fff; }

.btn--ghost-green {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green);
  text-shadow: none;
}
.btn--ghost-green:hover { background: var(--green); color: #fff; }

.btn--lg { padding: 14px 40px; font-size: 1.5em; }
.btn--sm { padding: 7px 18px;  font-size: 1.1em; }
.btn--block { display: block; width: 100%; margin-right: 0; }

/* small text arrow link, echoing span.learn-green / span.learn-brown */
.learn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--green);
  margin-top: 6px;
}
.learn::after {
  content: '›';
  font-size: 1.35em;
  line-height: 1;
  transition: transform var(--speed) var(--ease);
}
.learn:hover { text-decoration: none; }
.learn:hover::after { transform: translateX(5px); }
.learn--khaki { color: var(--khaki); }

/* --------------------------------------------------------------------------
   6. Header + tab navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid #ececE4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow var(--speed) var(--ease), padding var(--speed) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 4px 14px rgba(80, 78, 64, .13); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding-top: 14px;
  padding-bottom: 10px;
  transition: min-height var(--speed) var(--ease);
}
.site-header.is-stuck .site-header__inner { min-height: 72px; padding-top: 8px; }

.logo {
  display: block;
  width: 246px;
  max-width: 62vw;
  flex: none;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.logo img { display: block; width: 100%; height: auto; }
.logo:hover { transform: translateY(-1px); opacity: .9; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-search {
  display: flex;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.header-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(75, 163, 40, .14);
}
.header-search input {
  border: 0;
  background: transparent;
  font-size: 13px;
  width: 132px;
  outline: none;
  color: var(--ink);
}
.header-search input::placeholder { color: var(--grey-light); }
.header-search button {
  border: 0;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease);
}
.header-search button:hover { background: var(--green-dark); }
.header-search svg { width: 14px; height: 14px; fill: currentColor; }

/* Tab bar — reproduces `#content_above UL.menu` from the archive */
.nav-bar { background: transparent; position: relative; z-index: 50; }
.nav-bar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.nav > li { position: relative; }
.nav > li > a {
  display: inline-block;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--panel-2);
  color: var(--grey);
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 15px;
  white-space: nowrap;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav > li > a:hover,
.nav > li:focus-within > a { text-decoration: none; background: var(--grey); color: var(--panel-2); }
.nav > li.is-active > a { background: var(--white); color: var(--khaki-dark); box-shadow: var(--shadow-sm); }

/* dropdown */
.nav__sub {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 232px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
  z-index: 70;
}
.nav > li:hover > .nav__sub,
.nav > li:focus-within > .nav__sub,
.nav > li.is-open > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--grey);
  font-size: 13px;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav__sub a:hover { background: var(--green-tint); color: var(--green-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--khaki-dark);
  font-size: 13px;
  align-items: center;
  gap: 8px;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle__bars span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: var(--khaki-dark); border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* language pill row (replaces the old jflanguageselection dropdown) */
.lang-pills { display: flex; gap: 6px; align-items: center; padding-top: 4px; }
.lang-pills button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--grey);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.lang-pills button:hover { border-color: var(--khaki); color: var(--khaki-dark); }
.lang-pills button.is-active { background: var(--khaki); border-color: var(--khaki); color: #fff; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 52px 0 46px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .045), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 366px 1fr;
  gap: 42px;
  align-items: center;
}
.hero__copy h1 {
  color: var(--olive);
  font-size: 2.9em;
  line-height: 1.12;
  text-shadow: 0 2px 0 #fff;
  margin: 0 0 .4em;
}
.hero__copy h1 .accent { color: var(--green); }
.hero__copy p {
  color: var(--grey);
  font-size: 1.5em;
  line-height: 1.35em;
  word-spacing: .08em;
  margin: 0 0 1em;
  text-shadow: 0 1px 0 #fff;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 4px 10px; }

.hero__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.hero-panel {
  text-align: center;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  padding: 22px 20px 26px;
  backdrop-filter: blur(2px);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.hero-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hero-panel h2 {
  text-transform: uppercase;
  font-size: 2.4em;
  margin: 6px 0 8px;
  text-shadow: 0 2px 0 #fff;
}
.hero-panel .description {
  display: block;
  color: var(--grey);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1.25em;
  word-spacing: .1em;
  margin: 0 0 14px;
  text-shadow: 0 2px 0 #fff;
  min-height: 3.7em;
}
.hero-panel--khaki h2 { color: var(--khaki); }
.hero-panel--green h2 { color: var(--green); }
.hero-panel__icon { width: 54px; height: 54px; margin: 0 auto; display: block; }
.hero-panel__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--khaki);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-panel--green .hero-panel__icon svg { stroke: var(--green); }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 0;
}
.stat { text-align: center; padding: 10px; }
.stat__num {
  display: block;
  font-size: 3em;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 2px 0 #fff;
}
.stat__label {
  display: block;
  color: var(--grey);
  font-size: 1.15em;
  margin-top: 8px;
  letter-spacing: .04em;
}
.stat:nth-child(even) .stat__num { color: var(--khaki); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfcdbe; }
.card h3 { color: var(--olive); font-size: 1.6em; margin: 0 0 .5em; }
.card p { color: var(--grey); font-size: 1.2em; line-height: 1.5em; }
.card .learn { margin-top: auto; padding-top: 12px; }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  margin: 0 0 16px;
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.card__icon svg { width: 30px; height: 30px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card--khaki .card__icon { background: var(--khaki-tint); }
.card--khaki .card__icon svg { stroke: var(--khaki-dark); }

.card__tag {
  display: inline-block;
  font-size: 1em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 12px;
}
.card__tag--khaki { color: var(--khaki-dark); background: var(--khaki-tint); }

/* numbered process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 12px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.6em;
  margin: 0 0 14px;
  box-shadow: 0 0 0 6px rgba(75, 163, 40, .12);
  transition: transform var(--speed) var(--ease);
}
.step:hover::before { transform: scale(1.08); }
.step h3 { color: var(--olive); font-size: 1.45em; margin: 0 0 .4em; }
.step p { color: var(--grey); font-size: 1.15em; line-height: 1.5em; }
.step:nth-child(even)::before { background: var(--khaki); box-shadow: 0 0 0 6px rgba(167, 163, 126, .16); }

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  background: var(--green-tint);
  display: grid; place-items: center;
}
.service__icon svg { width: 38px; height: 38px; stroke: var(--green); fill: none; stroke-width: 1.7; }
.service:nth-child(even) .service__icon { background: var(--khaki-tint); }
.service:nth-child(even) .service__icon svg { stroke: var(--khaki-dark); }
.service h3 { color: var(--olive); font-size: 1.75em; margin: 2px 0 .4em; }
.service p { color: var(--grey); font-size: 1.2em; line-height: 1.55em; }
.service__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 0;
  list-style: none;
}
.service__meta li {
  font-size: 1.02em;
  color: var(--khaki-dark);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

/* checklist */
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--grey);
  font-size: 1.18em;
  line-height: 1.5em;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: .35em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   10. Tabs / accordion
   -------------------------------------------------------------------------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--line-soft);
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}
.tabs__nav button {
  border: 0;
  background: transparent;
  color: var(--grey);
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.tabs__nav button::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -2px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--speed) var(--ease);
}
.tabs__nav button:hover { color: var(--khaki-dark); background: rgba(255, 255, 255, .6); }
.tabs__nav button[aria-selected="true"] { color: var(--green-dark); }
.tabs__nav button[aria-selected="true"]::after { transform: scaleX(1); }

.tabs__panel { display: none; animation: fadeUp .45s var(--ease) both; }
.tabs__panel.is-active { display: block; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 44px 20px 0;
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--olive);
  cursor: pointer;
  position: relative;
  transition: color var(--speed) var(--ease);
}
.accordion__btn:hover { color: var(--green-dark); }
.accordion__btn::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--khaki);
  border-bottom: 2.5px solid var(--khaki);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--speed) var(--ease);
}
.accordion__btn[aria-expanded="true"]::after { transform: translateY(-25%) rotate(-135deg); }
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.accordion__panel-inner { padding: 0 0 22px; color: var(--grey); font-size: 1.2em; line-height: 1.6em; }

/* --------------------------------------------------------------------------
   11. Project + contributor grids
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 30px; }
.filter-bar button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--grey);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.filter-bar button:hover { border-color: var(--khaki); color: var(--khaki-dark); }
.filter-bar button.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), opacity .3s var(--ease);
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project img {
  display: block;
  margin: 0 auto 12px;
  filter: grayscale(100%);
  opacity: .78;
  transition: filter var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.project:hover img { filter: grayscale(0); opacity: 1; }
.project h4 { color: var(--olive); font-size: 1.25em; margin: 0 0 4px; }
.project span { color: var(--grey); font-size: 1.02em; }
.project.is-hidden { display: none; }

.people { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.person { text-align: center; }
.person img {
  width: 62px; height: 56px;
  border-radius: 10px;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.person:hover img { transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow); }
.person span { display: block; font-size: 1.02em; color: var(--grey); margin-top: 8px; }

/* --------------------------------------------------------------------------
   12. Blog list + article pages
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { display: block; overflow: hidden; background: var(--khaki-tint); }
.post-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 15 / 7;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__body h3 { color: var(--olive); font-size: 1.5em; line-height: 1.25em; margin: 10px 0 .5em; }
.post-card__body h3 a { color: inherit; }
.post-card__body h3 a:hover { color: var(--green-dark); text-decoration: none; }
.post-card__body p { color: var(--grey); font-size: 1.15em; line-height: 1.5em; }
.post-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  color: var(--grey-light); font-size: 1.02em;
  margin-top: auto; padding-top: 14px;
}
.post-card.is-hidden { display: none; }

.article-hero { padding: 40px 0 22px; }
.article-hero h1 {
  color: var(--olive);
  font-size: 3em;
  line-height: 1.14;
  text-shadow: 0 2px 0 #fff;
  margin: 12px 0 .35em;
  max-width: 20ch;
}
.article-hero .lead { max-width: 62ch; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  color: var(--grey); font-size: 1.1em;
  margin: 18px 0 0;
}
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; stroke: var(--khaki); fill: none; stroke-width: 1.8; }

.article-figure { margin: 0 0 34px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.article-figure img { display: block; width: 100%; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }

.article-body { font-size: 1.1em; line-height: 1.3em; text-shadow: 0 1px 0 #fff; }
.article-body > p { font-size: 1.2em; line-height: 1.65em; margin: 0 0 1.4em; color: var(--ink); }
.article-body h2 {
  color: var(--green-soft);
  margin: 1.5em 0 .5em;
  font-size: 1.95em;
  scroll-margin-top: 110px;
}
.article-body h3 { color: var(--olive); font-size: 1.5em; margin: 1.4em 0 .5em; scroll-margin-top: 110px; }
.article-body ul, .article-body ol { margin: 0 0 1.5em 1.4em; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body li { font-size: 1.2em; line-height: 1.6em; margin: 0 0 .55em; color: var(--ink); }
.article-body li::marker { color: var(--khaki); }
.article-body a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--green); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.article-body blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 0 0 1.6em;
  color: var(--olive);
  font-size: 1.3em;
  line-height: 1.6em;
}
.article-body blockquote p:last-child { margin: 0; }
.article-body blockquote cite { display: block; font-size: .78em; color: var(--khaki-dark); margin-top: 10px; font-style: normal; }

.article-body table { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 1.8em; overflow: hidden; }
.article-body th {
  background: var(--khaki-tint);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--khaki-dark);
  font-size: 1.05em;
}
.article-body td { border-bottom: 1px solid var(--line-soft); padding: 11px 14px; font-size: 1.05em; color: var(--ink); }
.article-body tr:last-child td { border-bottom: 0; }

.article-body figure { margin: 0 0 1.8em; }
.article-body figcaption { color: var(--grey); font-size: 1.02em; margin-top: 10px; text-align: center; }

pre.code {
  background: #2f3129;
  color: #e7e6dc;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 1.8em;
  text-shadow: none;
  border: 1px solid #1f211b;
}
pre.code .c { color: #8f9482; }
pre.code .k { color: #9bd47a; }
pre.code .s { color: #e2c98b; }
:not(pre) > code {
  background: var(--khaki-tint);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .86em;
  color: var(--khaki-dark);
  text-shadow: none;
}

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--khaki);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 0 0 1.8em;
}
.callout h4 { color: var(--khaki-dark); font-size: 1.3em; margin: 0 0 .4em; }
.callout p { color: var(--grey); font-size: 1.15em; line-height: 1.6em; margin: 0; }
.callout--green { border-left-color: var(--green); }
.callout--green h4 { color: var(--green-dark); }

/* sidebar */
.article-side { position: sticky; top: 108px; display: grid; gap: 22px; }
.side-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.side-box h4 {
  color: var(--green);
  text-transform: uppercase;
  font-size: 1.15em;
  letter-spacing: .1em;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.toc a {
  display: block;
  color: var(--grey);
  font-size: 1.08em;
  line-height: 1.4;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: all var(--speed) var(--ease);
}
.toc a:hover { background: var(--panel); color: var(--khaki-dark); text-decoration: none; }
.toc a.is-current { border-left-color: var(--green); background: var(--green-tint); color: var(--green-dark); }

.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-links a { color: var(--khaki-dark); font-size: 1.1em; line-height: 1.4; display: block; }
.side-links a:hover { color: var(--green-dark); text-decoration: none; }

.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--khaki));
  z-index: 200;
  transition: width .12s linear;
}

.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--grey);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-family: 'Kreon', Georgia, serif;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.share a:hover, .share button:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.share svg { width: 14px; height: 14px; fill: currentColor; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.article-nav a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.article-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.article-nav small { display: block; color: var(--grey-light); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.article-nav strong { color: var(--olive); font-size: 15px; line-height: 1.35; display: block; }
.article-nav .next { text-align: right; }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--grey-light); font-size: 1.05em; padding: 18px 0 0; }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--green-dark); text-decoration: none; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '›'; color: var(--grey-light); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 1.15em;
  color: var(--khaki-dark);
}
.field label .req { color: var(--green); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Kreon', Georgia, serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23A7A37E' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(75, 163, 40, .15);
}
.field .hint { font-size: 1em; color: var(--grey-light); font-weight: 400; }
.field .error {
  display: none;
  font-size: 1.02em;
  color: #c0392b;
  font-weight: 700;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.field.has-error .error { display: block; animation: shakeX .4s var(--ease); }
.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea { border-color: var(--green); }

.field--check { display: flex; align-items: flex-start; gap: 11px; }
.field--check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--green); }
.field--check label { font-size: 1.1em; color: var(--grey); line-height: 1.5; }
.field--check .error { flex-basis: 100%; }

.form__status {
  display: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1.15em;
}
.form__status.is-visible { display: block; animation: fadeUp .3s var(--ease) both; }
.form__status--error { background: #fdecea; border: 1px solid #f5c6c0; color: #c0392b; }
.form__status--ok { background: var(--green-tint); border: 1px solid #cfe6c2; color: var(--green-dark); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* newsletter inline form */
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.subscribe .field { flex: 1 1 240px; }
.subscribe .btn { margin-top: 0; }

/* --------------------------------------------------------------------------
   14. CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--white) url('../img/brand/get_started_today.png') no-repeat center / cover;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  padding: 58px 0;
}
.cta-band h2 { color: var(--olive); font-size: 2.5em; text-shadow: 0 2px 0 #fff; margin: 0 0 .35em; }
.cta-band p { color: var(--grey); font-size: 1.4em; max-width: 620px; margin: 0 auto 8px; }

.site-footer {
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--line-soft);
  box-shadow: inset 0 8px 18px -14px rgba(80, 78, 64, .35);
  padding: 52px 0 0;
  margin-top: 0;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; padding-bottom: 44px; }
.footer-col h3 {
  color: var(--green);
  text-transform: uppercase;
  font-size: 1.35em;
  letter-spacing: .06em;
  padding: 0 0 18px;
  margin: 0 0 12px;
  background: url('../img/underline.svg') no-repeat 0 30px;
  background-size: 100% auto;
}
.footer-col p { color: var(--grey); font-size: 1.2em; line-height: 1.55em; }
.footer-col a { color: var(--khaki); }
.footer-col a:hover { color: var(--green-dark); text-decoration: none; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col ul a { font-size: 1.2em; }
.footer-col:last-child { text-align: left; }

.social { display: flex; gap: 9px; margin-top: 16px; }
.social a {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--khaki);
  transition: all var(--speed) var(--ease);
}
.social a:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid #E1E1E1;
  box-shadow: inset 0 1px 0 #fff;
  padding: 20px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 1.1em; color: var(--grey); }
.footer-nav a:hover { color: var(--green-dark); text-decoration: none; }
.copy { color: var(--grey); font-size: 1.05em; margin: 0; }

/* back to top */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--khaki-dark);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--speed) var(--ease);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); border-color: var(--green); color: #fff; }
.to-top svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* --------------------------------------------------------------------------
   15. Misc components
   -------------------------------------------------------------------------- */
.hr-fade { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 44px 0; }

.marquee-strip {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
  position: relative;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee-strip::before { left: 0;  background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marquee-strip::after  { right: 0; background: linear-gradient(-90deg, #fff, rgba(255,255,255,0)); }
.marquee { display: flex; gap: 46px; width: max-content; animation: marquee 36s linear infinite; }
.marquee img { filter: grayscale(100%); opacity: .6; transition: all var(--speed) var(--ease); }
.marquee img:hover { filter: grayscale(0); opacity: 1; }
.marquee-strip:hover .marquee { animation-play-state: paused; }

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote-card p { color: var(--olive); font-size: 1.28em; line-height: 1.6em; margin: 0; }
.quote-card p::before { content: '“'; color: var(--khaki); font-size: 1.6em; line-height: 0; vertical-align: -.15em; margin-right: 4px; }
.quote-card footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card img { width: 46px; height: 42px; border-radius: 9px; }
.quote-card cite { font-style: normal; color: var(--khaki-dark); font-size: 1.12em; display: block; }
.quote-card cite small { display: block; color: var(--grey-light); font-size: .82em; font-weight: 400; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  border: 1px dashed var(--khaki);
  color: var(--khaki-dark);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 1.05em;
  background: rgba(255, 255, 255, .55);
}

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--khaki));
  border-radius: 2px;
}
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -30px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
}
.timeline__item:nth-child(even)::before { border-color: var(--khaki); }
.timeline__item h4 { color: var(--olive); font-size: 1.4em; margin: 0 0 .3em; }
.timeline__item time { color: var(--green); font-size: 1.05em; letter-spacing: .06em; }
.timeline__item p { color: var(--grey); font-size: 1.15em; line-height: 1.55em; margin-top: 6px; }

/* live search results (header) */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, 88vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 120;
  text-align: left;
}
.search-results.is-open { display: block; animation: fadeUp .2s var(--ease) both; }
.search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--olive);
  font-size: 13px;
  line-height: 1.35;
}
.search-results a small { display: block; color: var(--grey-light); font-weight: 400; font-size: 11px; margin-top: 3px; }
.search-results a:hover, .search-results a.is-active { background: var(--green-tint); text-decoration: none; }
.search-results .empty { padding: 14px; color: var(--grey-light); font-size: 13px; }
.header-search-wrap { position: relative; }

/* thank-you page */
.thanks { text-align: center; padding: 72px 0 66px; }
.thanks__mark {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--green-tint);
  display: grid; place-items: center;
  margin: 0 auto 26px;
  animation: pop .55s var(--ease) both;
}
.thanks__mark svg { width: 44px; height: 44px; stroke: var(--green); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks__mark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .6s var(--ease) .25s forwards; }
.thanks h1 { color: var(--olive); font-size: 2.9em; text-shadow: 0 2px 0 #fff; margin-bottom: .3em; }
.thanks p { color: var(--grey); font-size: 1.4em; max-width: 560px; margin: 0 auto 10px; }
.thanks__ref {
  display: inline-block;
  margin-top: 18px;
  background: var(--white);
  border: 1px dashed var(--khaki);
  border-radius: 10px;
  padding: 10px 20px;
  color: var(--khaki-dark);
  font-size: 1.15em;
}

/* 404 */
.notfound { text-align: center; padding: 76px 0; }
.notfound__code {
  font-size: 8em;
  line-height: 1;
  color: var(--khaki);
  text-shadow: 0 3px 0 #fff;
  letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   16. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop      { 0% { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw     { to { stroke-dashoffset: 0; } }
@keyframes shakeX   { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.floaty { animation: floaty 5.5s ease-in-out infinite; }

/* lightweight in-house reveal (works alongside AOS) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: repeat(6, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy h1 { font-size: 2.5em; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .col-2, .col-3, .col-4, .col-23 { flex: 0 0 100%; max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }

  .nav-toggle { display: inline-flex; }
  .nav-bar__inner { padding-bottom: 10px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 20px; right: 20px;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--speed) var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > li > a { display: block; border-radius: 8px; background: transparent; padding: 12px 14px; }
  .nav > li.is-active > a { background: var(--green-tint); color: var(--green-dark); box-shadow: none; }
  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line-soft);
    border-radius: 0;
    margin: 0 0 6px 14px;
    padding: 0 0 0 8px;
    display: none;
  }
  .nav > li.is-open > .nav__sub { display: block; }
  .header-search input { width: 96px; }
  .lang-pills { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 12.5px; }
  .section { padding: 40px 0; }
  .hero { padding: 34px 0 30px; }
  .hero__copy h1 { font-size: 2.15em; }
  .hero__panels { grid-template-columns: 1fr; gap: 16px; }
  .hero-panel .description { min-height: 0; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .article-side { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service__icon { width: 60px; height: 60px; }
  .article-hero h1 { font-size: 2.1em; }
  .section-head h2, .section-head h1 { font-size: 1.9em; }
  .notfound__code { font-size: 5em; }
  .tabs__nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs__nav button { white-space: nowrap; }
  .header-search { display: none; }
  .btn { font-size: 1.2em; padding: 10px 20px; }
}

/* --------------------------------------------------------------------------
   18. Accessibility + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-bar, .site-footer, .to-top, .article-side,
  .cta-band, .reading-progress, .share { display: none !important; }
  body { background: #fff; color: #000; }
  .article-body { font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}


html{
  overflow-x: hidden;
}

.lang-pills{
  display: none!important;
}

.card__tag{
  width: max-content;
}