/* =========================================================================
   ADVANCE HR — Design System v3
   Grotesque display (Bricolage) + Hanken Grotesk. Emerald brand + forest ink
   + warm ivory/bone tonal rhythm. Editorial, bento, restrained motivated motion.
   ========================================================================= */

/* ---------- Fonts (variable, self-hosted; latin + latin-ext for Czech) --- */
@font-face {
  font-family: 'Bricolage Grotesque'; font-weight: 200 900; font-style: normal; font-display: swap;
  src: url('../fonts/bricolage-latinext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-weight: 200 900; font-style: normal; font-display: swap;
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  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: 'Hanken Grotesk'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('../fonts/hanken-latinext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Hanken Grotesk'; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url('../fonts/hanken-latin.woff2') format('woff2');
  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;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --ink:        #0C140F;
  --ink-soft:   #11201A;
  --ink-700:    #1B2D23;
  --ink-panel:  #15281D;

  --brand:      #2C8A4B;
  --brand-600:  #237A40;
  --brand-700:  #1C6536;
  --brand-400:  #46A862;
  --brand-300:  #74C589;
  --brand-200:  #BBE3C6;
  --brand-050:  #E9F4EC;

  --accent:     #C7A24A;   /* champagne — admin + rare detail */
  --accent-600: #A8842F;
  --accent-200: #E6D3A0;

  --paper:      #F4F2EA;   /* warm ivory */
  --bone:       #EAE5D8;   /* legacy warm surface */
  --mist:       #E6EFE7;   /* soft green-mist surface (tonal rhythm) */
  --mist-2:     #D9E9DC;
  --paper-2:    #ECE7DA;
  --surface:    #FFFFFF;
  --surface-2:  #FAF8F2;

  --text:       #15211A;
  --muted:      #515D55;
  --muted-2:    #6B776E;
  --on-dark:    #ECF3EE;
  --on-dark-mut:#9FB1A6;

  --line:       #E2DDCE;
  --line-2:     #ECE7DA;
  --line-dark:  rgba(236,243,238,.13);

  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  26px;
  --radius-xl:  32px;
  --pill:       999px;

  --shadow-xs:  0 1px 2px rgba(12,20,15,.05);
  --shadow-sm:  0 6px 18px rgba(12,20,15,.07);
  --shadow:     0 20px 50px -22px rgba(12,20,15,.28);
  --shadow-lg:  0 44px 96px -44px rgba(12,20,15,.5);
  --shadow-brand: 0 16px 40px -16px rgba(44,138,75,.48);

  --container:  1240px;
  --container-wide: 1400px;
  --gutter:     clamp(20px, 5vw, 72px);

  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --dur:        .28s;

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans:    'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif:   var(--font-display); /* compat alias for admin.css */

  --header-h:   72px;
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.62; color: var(--text);
  background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea, button { font-family: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-200); color: var(--ink); }

/* ---------- Typography --------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.05; letter-spacing: -0.02em; }
.display { font-family: var(--font-display); font-weight: 700; font-variation-settings: 'opsz' 96; letter-spacing: -0.03em; line-height: .98; }
h2 { font-variation-settings: 'opsz' 60; font-size: clamp(2.05rem, 4.4vw, 3.5rem); font-weight: 600; }
h3 { font-variation-settings: 'opsz' 30; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.58; color: var(--muted); max-width: 60ch; }
strong { font-weight: 600; color: var(--text); }

.overline {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--brand-700);
}
.overline .chevs { color: var(--brand); }
.overline.is-light { color: var(--brand-300); }
.overline.is-light .chevs { color: var(--brand-300); }

.chevs { display: inline-flex; }
.chevs svg { width: 18px; height: 14px; }
.chevs--lg svg { width: 30px; height: 23px; }

/* ---------- Layout ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.section { padding-block: clamp(80px, 11vw, 164px); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 96px); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 70px); }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .overline { justify-content: center; }
.surface-bone { background: var(--bone); }
.surface-paper { background: var(--paper); }

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .92em 1.55em; min-height: 50px; font-size: .97rem; font-weight: 600; letter-spacing: .004em; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: var(--pill);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.99); }
.btn .ico { width: 18px; height: 18px; }
.btn--primary { --bg: var(--brand-600); --bd: var(--brand-600); --fg: #fff; }
.btn--primary:hover { --bg: var(--brand-700); --bd: var(--brand-700); box-shadow: var(--shadow-brand); }
.btn--ghost { --bg: transparent; --bd: var(--line); --fg: var(--ink); }
.btn--ghost:hover { --bd: var(--ink); box-shadow: none; }
.btn--on-dark { --bg: #fff; --bd: #fff; --fg: var(--ink); }
.btn--on-dark.btn--outline { --bg: rgba(255,255,255,.06); --fg: #fff; --bd: rgba(255,255,255,.5); }
.btn--on-dark.btn--outline:hover { --bg: rgba(255,255,255,.14); --bd: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: .58em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--brand-700); transition: gap var(--dur) var(--ease), color var(--dur) var(--ease); }
.link-arrow .ico { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--brand); } .link-arrow:hover .ico { transform: translateX(5px); }
.link-arrow.is-light { color: var(--brand-300); } .link-arrow.is-light:hover { color: #fff; }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-block: 16px; border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease), transform .45s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; transition: color .35s var(--ease); }
.brand__mark { height: 34px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-sans); font-weight: 700; font-size: 1.14rem; letter-spacing: .11em; }
.brand__name .hr { color: var(--brand-300); }
.brand__sub { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; opacity: .72; margin-top: 5px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 10px 14px; font-size: .95rem; font-weight: 500; color: var(--on-dark); border-radius: 8px; transition: color var(--dur) var(--ease); }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 1.5px; background: var(--brand-300); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.site-header.is-solid { background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(12,20,15,.6); padding-block: 10px; }
.site-header.is-solid .brand { color: var(--ink); }
.site-header.is-solid .nav a { color: var(--ink-700); }
.site-header.is-solid .brand__name .hr { color: var(--brand-600); }
.site-header.is-hidden { transform: translateY(-105%); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; align-items: center; justify-content: center; color: #fff; }
.site-header.is-solid .nav-toggle { color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .ico-close { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; background: var(--surface); padding: 96px 22px 28px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease); z-index: 45; }
  .nav a { color: var(--ink) !important; font-size: 1.1rem; padding: 14px 12px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 16px; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { z-index: 46; }
  body.nav-open .nav-toggle .ico-menu { display: none; }
  body.nav-open .nav-toggle .ico-close { display: block; color: var(--ink); }
  .site-header.is-hidden { transform: none; }
}
.nav-overlay { position: fixed; inset: 0; background: rgba(12,20,15,.46); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: 44; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ---------- Hero (video-first) ------------------------------------------ */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(10,18,13,.7) 0%, rgba(10,18,13,.5) 38%, rgba(10,18,13,.62) 72%, rgba(10,18,13,.9) 100%), linear-gradient(100deg, rgba(10,18,13,.72) 0%, rgba(10,18,13,.18) 58%); }
.hero__glow { position: absolute; z-index: -1; width: 56vw; height: 56vw; left: 56%; top: 6%; border-radius: 50%; background: radial-gradient(circle at center, rgba(70,168,98,.26), rgba(70,168,98,.05) 44%, transparent 66%); pointer-events: none; animation: floaty 26s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translate(0,0); } to { transform: translate(-6%, 5%); } }
.hero__inner { width: 100%; padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; }
.hero__inner { max-width: 940px; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 7vw, 6rem); margin: 22px 0 0; max-width: 15ch; }
.hero h1 .em { color: var(--brand-300); }
.hero__sub { margin-top: 24px; max-width: 50ch; font-size: clamp(1.1rem, 1.6vw, 1.34rem); color: #E2EDE6; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* kinetic headline */
.reveal-line { display: block; overflow: hidden; padding-bottom: .06em; }
.reveal-line > span { display: block; transform: translateY(115%); transition: transform .9s var(--ease-out); }
.is-in .reveal-line > span, .reveal-line.is-in > span { transform: translateY(0); }
.reveal-line:nth-child(2) > span { transition-delay: .08s; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.is-in { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .12s; } .fade-up.d2 { transition-delay: .24s; }

/* ---------- Marquee ------------------------------------------------------ */
.marquee { background: var(--ink); color: var(--on-dark-mut); padding-block: 20px; border-top: 1px solid var(--line-dark); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; padding: 0 30px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: #D6E3DA; white-space: nowrap; }
.marquee__item .dot { color: var(--brand-300); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats band --------------------------------------------------- */
.statband { background: var(--ink); color: var(--on-dark); }
.statband__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .statband__grid { grid-template-columns: repeat(2, 1fr); } }
.statband__item { padding: clamp(28px, 4vw, 48px) clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line-dark); }
.statband__item:first-child { border-left: none; }
@media (max-width: 760px) { .statband__item:nth-child(odd) { border-left: none; } .statband__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }
.statband__item b { font-family: var(--font-display); display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; color: #fff; line-height: 1; font-variation-settings: 'opsz' 96; letter-spacing: -.02em; }
.statband__item b .plus { color: var(--brand-300); }
.statband__item span { display: block; margin-top: 12px; color: var(--on-dark-mut); font-size: .95rem; }

/* ---------- Reveal / clip utilities ------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease-out); will-change: clip-path; }
.clip-reveal.is-in { clip-path: inset(0 0 0 0); }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 1.1s var(--ease-out); }
.img-zoom:hover img { transform: scale(1.05); }

/* ---------- Bento (services) -------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 20px); grid-auto-flow: dense; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }
.tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
  min-height: 210px; padding: clamp(20px, 2vw, 28px); border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-050); color: var(--brand-700); margin-bottom: auto; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.tile:hover .tile__ico { background: var(--brand); color: #fff; }
.tile__ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.2rem; font-variation-settings: 'opsz' 24; }
.tile p { color: var(--muted); font-size: .95rem; }
.tile--span6 { grid-column: span 6; } .tile--span4 { grid-column: span 4; } .tile--span5 { grid-column: span 5; } .tile--span7 { grid-column: span 7; }
.tile--tall { grid-row: span 2; min-height: 440px; }
@media (max-width: 900px) { .tile--span6, .tile--span4, .tile--span5, .tile--span7 { grid-column: span 1; } .tile--tall { grid-row: auto; min-height: 320px; } }
.tile--tint { background: var(--brand-050); border-color: transparent; }
.tile--tint .tile__ico { background: #fff; }
.tile--bone { background: var(--bone); border-color: transparent; }
.tile--dark { background: var(--ink-panel); border-color: transparent; color: var(--on-dark); }
.tile--dark h3 { color: #fff; } .tile--dark p { color: var(--on-dark-mut); }
.tile--dark .tile__ico { background: rgba(255,255,255,.1); color: var(--brand-300); }
.tile--feature { color: #fff; justify-content: flex-end; border-color: transparent; }
.tile--feature img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.tile--feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,18,13,.5), rgba(10,18,13,.42) 38%, rgba(10,18,13,.92)); }
.tile--feature:hover img { transform: scale(1.06); }
.tile--feature h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.tile--feature p { color: #DCE7DF; max-width: 36ch; }
.tile__label { font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: #fff; margin-bottom: auto; text-shadow: 0 1px 4px rgba(10,18,13,.75); }
.tile--feature .tile__label::before { content: ''; display: inline-block; width: 16px; height: 2px; background: var(--brand-300); margin-right: 9px; vertical-align: middle; }

/* ---------- Dark band ---------------------------------------------------- */
.band-dark { background: radial-gradient(120% 140% at 12% 0%, var(--ink-soft), var(--ink) 72%); color: var(--on-dark); position: relative; }
.band-dark h2, .band-dark h3, .band-dark .display { color: #fff; }
.band-dark .lede, .band-dark p { color: var(--on-dark-mut); }
.band-dark .overline { color: var(--brand-300); }

/* photo band */
.band-photo { position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden; background: var(--ink); }
.band-photo > .bgimg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10,18,13,.92), rgba(10,18,13,.72) 52%, rgba(28,101,54,.5)); }
.band-photo h2, .band-photo h3 { color: #fff; }
.band-photo .lede, .band-photo p { color: #D6E3DC; }
.band-photo .overline { color: var(--brand-300); }

/* ---------- Process timeline -------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 30px); position: relative; }
.timeline::before { content: ''; position: absolute; top: 23px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-200), var(--line) 92%); }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } .timeline::before { left: 31px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand-200), var(--line) 92%); } }
.tstep { position: relative; }
.tstep__dot, .tstep .node { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); color: var(--brand-700); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--paper); }
.surface-bone .tstep .node { box-shadow: 0 0 0 6px var(--bone); }
.tstep .node svg { width: 22px; height: 22px; }
.tstep h3 { font-size: 1.18rem; margin: 20px 0 8px; font-variation-settings: 'opsz' 24; }
.tstep p { color: var(--muted); font-size: .95rem; max-width: 30ch; }
.band-dark .tstep .node { background: var(--ink); box-shadow: 0 0 0 6px var(--ink-soft); border-color: var(--brand-300); color: var(--brand-300); }
.band-dark .tstep p { color: var(--on-dark-mut); }
@media (max-width: 900px) { .tstep { padding-left: 8px; } .tstep h3 { margin-top: 14px; } }

/* ---------- Pull quote --------------------------------------------------- */
.pullquote { max-width: 1000px; }
.pullquote .mark { color: var(--brand-300); display: inline-block; margin-bottom: 22px; }
.pullquote blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.8vw, 3.1rem); line-height: 1.16; letter-spacing: -.02em; color: #fff; font-variation-settings: 'opsz' 60; }
.pullquote blockquote .em { color: var(--brand-300); }
.pullquote .by { margin-top: 28px; color: var(--on-dark-mut); font-size: .96rem; letter-spacing: .02em; }

/* ---------- Split (image + content) ------------------------------------- */
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.is-rev { direction: rtl; } .split.is-rev > * { direction: ltr; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.is-rev { direction: ltr; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: linear-gradient(150deg, var(--mist), var(--brand-050)); }
.media-frame.is-wide { aspect-ratio: 5/4; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-badge { position: absolute; left: 18px; bottom: 18px; right: 18px; background: color-mix(in srgb, var(--surface) 93%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.media-badge b { font-family: var(--font-display); font-size: 2rem; color: var(--ink); font-weight: 700; line-height: 1; }
.media-badge span { font-size: .88rem; color: var(--muted); }
.value-list { display: grid; gap: 8px; margin-top: 26px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.value-list li:first-child { border-top: none; }
.value-list .vi { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-050); color: var(--brand-700); display: grid; place-items: center; }
.value-list .vi svg { width: 18px; height: 18px; }
.value-list b { display: block; color: var(--ink); font-size: 1.05rem; }
.value-list p { font-size: .95rem; color: var(--muted); margin-top: 2px; }

/* ---------- About (editorial) ------------------------------------------- */
.about-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: clamp(300px, 42vw, 520px); display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); color: #fff; }
.about-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.about-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10,18,13,.85), rgba(10,18,13,.35) 55%, transparent), linear-gradient(0deg, rgba(10,18,13,.7), transparent 50%); }
.about-banner__in { padding: clamp(28px, 4vw, 56px); max-width: 720px; }
.about-banner h2 { color: #fff; }
.about-banner p { color: #DCE7DF; margin-top: 16px; }
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 900px) { .teams { grid-template-columns: 1fr; } }
.team { border-top: 2px solid var(--brand); padding-top: 20px; }
.team__n { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--brand-700); }
.team h3 { font-size: 1.3rem; margin: 6px 0 8px; font-variation-settings: 'opsz' 24; }
.team p { color: var(--muted); font-size: .96rem; }

/* ---------- Job board ---------------------------------------------------- */
.jobs-toolbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 28px; }
@media (max-width: 880px) { .jobs-toolbar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .jobs-toolbar { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; font-size: .98rem; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 11px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(70,168,98,.16); background: #fff; }
.search-wrap { position: relative; }
.search-wrap .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; }
.search-wrap .input { padding-left: 40px; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23515D55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.jobs-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.jobs-count { color: var(--on-dark-mut); font-size: .96rem; }
.jobs-count b { color: #fff; font-weight: 600; }
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 22px); }
@media (max-width: 780px) { .jobs-grid { grid-template-columns: 1fr; } }
.job-card { position: relative; display: flex; flex-direction: column; gap: 13px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.2vw, 28px); box-shadow: var(--shadow-xs); cursor: pointer; overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform var(--dur) var(--ease); }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.job-card:hover::before { transform: scaleY(1); }
.job-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: .76rem; font-weight: 600; border-radius: var(--pill); background: var(--brand-050); color: var(--brand-700); }
.job-card h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); color: var(--ink); font-variation-settings: 'opsz' 24; line-height: 1.16; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .9rem; }
.job-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card__meta svg { width: 16px; height: 16px; color: var(--muted-2); }
.job-card p { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card__foot { margin-top: auto; padding-top: 6px; }
.jobs-empty { text-align: center; padding: 60px 20px; color: var(--on-dark-mut); }
.jobs-empty svg { width: 46px; height: 46px; color: rgba(255,255,255,.2); margin: 0 auto 16px; }
.skeleton { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 210px; overflow: hidden; position: relative; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---------- Dialog ------------------------------------------------------- */
dialog { border: none; padding: 0; background: transparent; color: inherit; max-width: 780px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(8,14,10,.6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: min(88vh, 940px); overflow: auto; border: 1px solid var(--line); }
.modal__head { position: sticky; top: 0; z-index: 2; background: linear-gradient(150deg, var(--ink), var(--brand-700)); color: #fff; padding: clamp(24px, 3vw, 36px); }
.modal__head .tag { background: rgba(255,255,255,.16); color: #fff; }
.modal__head h2 { color: #fff; margin: 14px 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); font-variation-settings: 'opsz' 40; }
.modal__metarow { display: flex; flex-wrap: wrap; gap: 18px; color: #CFE0D5; font-size: .92rem; }
.modal__metarow span { display: inline-flex; align-items: center; gap: 7px; }
.modal__metarow svg { width: 16px; height: 16px; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; transition: background var(--dur) var(--ease); }
.modal__close:hover { background: rgba(255,255,255,.3); }
.modal__close svg { width: 22px; height: 22px; }
.modal__body { padding: clamp(24px, 3vw, 38px); }
.modal__body h4 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin: 26px 0 12px; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body p { color: var(--muted); }
.modal__list { display: grid; gap: 10px; }
.modal__list li { display: flex; gap: 11px; color: var(--text); font-size: .98rem; }
.modal__list li svg { flex: none; width: 19px; height: 19px; color: var(--brand); margin-top: 3px; }
.modal__cta { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 28%); padding: 22px clamp(24px,3vw,38px); display: flex; gap: 12px; flex-wrap: wrap; }
.apply { display: grid; gap: 16px; }
.apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .apply .row { grid-template-columns: 1fr; } }
.filedrop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); background: var(--surface-2); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); cursor: pointer; display: block; }
.filedrop:hover, .filedrop.is-over { border-color: var(--brand-400); background: #fff; }
.filedrop svg { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--brand); }
.filedrop input { display: none; }
.filedrop .fname { color: var(--brand-700); font-weight: 600; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand-700); text-decoration: underline; }
.form-note { font-size: .86rem; color: var(--muted-2); }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .94rem; display: none; }
.form-status.is-ok { display: block; background: var(--brand-050); color: var(--brand-700); border: 1px solid var(--brand-200); }
.form-status.is-err { display: block; background: #FCEBEA; color: #9A2820; border: 1px solid #F2C4BF; }

/* ---------- Contact ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 4px; margin-top: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line-dark); }
.contact-list li:first-child { border-top: none; }
.contact-list .ci { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); color: var(--brand-300); display: grid; place-items: center; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: #fff; }
.contact-list a, .contact-list span { color: #D6E3DC; }
.contact-list a:hover { color: var(--brand-300); }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
.contact-card .field label { color: var(--muted-2); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-mut); padding-block: clamp(56px, 7vw, 90px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.footer-about p { font-size: .96rem; max-width: 360px; }
.footer-col h4 { font-family: var(--font-sans); color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; padding: 5px 0; color: var(--on-dark-mut); font-size: .96rem; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .86rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__glow, .marquee__track, .img-zoom img { animation: none !important; }
  [data-reveal], [data-reveal-stagger] > *, .fade-up { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-line > span { transform: none !important; transition: none !important; }
  .clip-reveal { clip-path: none !important; transition: none !important; }
  .btn:hover, .tile:hover, .job-card:hover, .tile--feature:hover img, .img-zoom:hover img { transform: none; }
  .skeleton::after { animation: none; }
  .marquee__track { width: auto; flex-wrap: wrap; }
}

/* ---------- Utilities ---------------------------------------------------- */
.u-center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.text-balance { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscroll { overflow: hidden; }

/* =========================================================================
   v3.1 enhancements — richer process & candidate sections, cursor detail,
   "show more" positions
   ========================================================================= */

/* ---- Process section: green-mist gradient + decorative motif ---- */
.proc { background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); position: relative; overflow: hidden; }
.proc__watermark { position: absolute; top: -30px; right: -40px; color: var(--brand); opacity: .07; pointer-events: none; z-index: 0; }
.proc__watermark svg { width: clamp(220px, 30vw, 420px); height: auto; }
.proc .container { position: relative; z-index: 1; }

/* animated connector line + popping green nodes */
.timeline::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .1s; }
.timeline.is-in::before { transform: scaleX(1); }
.proc .tstep .node {
  background: linear-gradient(145deg, var(--brand-400), var(--brand-700)); border-color: transparent; color: #fff;
  box-shadow: 0 10px 22px -10px rgba(28,101,54,.55), 0 0 0 7px var(--mist);
  transform: scale(0); transition: transform .55s var(--ease-out);
}
.proc .timeline.is-in .tstep .node { transform: scale(1); }
.proc .tstep:nth-child(2) .node { transition-delay: .12s; }
.proc .tstep:nth-child(3) .node { transition-delay: .24s; }
.proc .tstep:nth-child(4) .node { transition-delay: .36s; }
.proc .tstep .node svg { color: #fff; }
.proc .tstep h3 .kick { color: var(--brand-700); font-variation-settings: 'opsz' 14; }
@media (max-width: 900px) {
  .timeline::before { transform: scaleY(0); transform-origin: top; }
  .timeline.is-in::before { transform: scaleY(1); }
  .proc .tstep .node { box-shadow: 0 10px 22px -10px rgba(28,101,54,.55), 0 0 0 7px #E2ECE3; }
}

/* ---- Candidate section: accent shape, hover list, image badge ---- */
.cand { position: relative; overflow: hidden; }
.cand__accent { position: absolute; left: -8%; bottom: -10%; width: 46vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 30% 30%, rgba(70,168,98,.16), rgba(70,168,98,0) 62%); pointer-events: none; }
.cand .container { position: relative; z-index: 1; }
.value-list li { border-radius: 14px; padding: 16px 16px; margin-inline: -16px; transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.value-list li:hover { background: var(--mist); transform: translateX(4px); }
.value-list li:hover .vi { background: var(--brand); color: #fff; }
.value-list .vi { transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.frame-wrap { position: relative; }
.frame-wrap .badge-float {
  position: absolute; top: 18px; left: -14px; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 10px 16px 10px 12px;
  box-shadow: var(--shadow); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.frame-wrap .badge-float .b-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-050); color: var(--brand-700); display: grid; place-items: center; }
.frame-wrap .badge-float .b-ico svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: reduce) {
  .timeline::before { transform: none !important; }
  .proc .tstep .node { transform: none !important; }
  .value-list li:hover { transform: none; }
}

/* ---- Show-more positions ---- */
.jobs-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.jobs-more .btn { --bg: rgba(255,255,255,.06); --bd: rgba(255,255,255,.5); --fg: #fff; }
.jobs-more .btn:hover { --bg: rgba(255,255,255,.14); --bd: #fff; box-shadow: none; }
.jobs-more .count { opacity: .7; font-weight: 500; }

/* ---- Cursor detail: soft glow trailing the native cursor (native stays visible) ---- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,191,92,.55), rgba(95,191,92,0) 70%);
  transform: translate(-50%, -50%); pointer-events: none; z-index: 60; opacity: 0;
  transition: opacity .35s var(--ease), width .25s var(--ease), height .25s var(--ease);
  will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-hover { width: 50px; height: 50px; background: radial-gradient(circle, rgba(95,191,92,.42), rgba(95,191,92,0) 70%); }

/* ---- Ambient drifting orbs (subtle life in sparse sections) ---- */
.ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient .orb { position: absolute; border-radius: 50%; will-change: transform; }
.ambient .orb-a { width: 42vw; height: 42vw; left: -10%; top: 4%; background: radial-gradient(circle, rgba(70,168,98,.20), transparent 64%); animation: orbA 28s ease-in-out infinite alternate; }
.ambient .orb-b { width: 34vw; height: 34vw; right: -8%; bottom: -12%; background: radial-gradient(circle, rgba(116,197,137,.18), transparent 66%); animation: orbB 35s ease-in-out infinite alternate; }
.ambient .orb-c { width: 26vw; height: 26vw; left: 44%; top: 42%; background: radial-gradient(circle, rgba(70,168,98,.13), transparent 68%); animation: orbC 23s ease-in-out infinite alternate; }
@keyframes orbA { to { transform: translate(9%, 7%) scale(1.15); } }
@keyframes orbB { to { transform: translate(-8%, -6%) scale(1.12); } }
@keyframes orbC { to { transform: translate(6%, -9%) scale(1.1); } }
.proc__watermark { animation: wmFloat 20s ease-in-out infinite alternate; }
@keyframes wmFloat { to { transform: translate(-16px, 22px) rotate(-2deg); } }
.cand__accent { animation: orbB 30s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .ambient .orb, .proc__watermark, .cand__accent { animation: none !important; }
}
