/* =========================================================
   Trivista Consulting — styles.css
   Brand: deep teal + cyan accent, rising-arrow motif
   Light + dark theme via [data-theme] tokens
   ========================================================= */

@font-face {
  font-family: "Garet";
  src: url("assets/garet-book.otf") format("opentype");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Brand constants (theme-independent) ---------- */
:root {
  --ink:        #0a2a31;
  --teal-900:   #0e3f49;
  --brand:      #134f5c;   /* official Trivista brand colour */
  --brand-600:  #1a6273;
  --teal-500:   #2e7d8d;
  --teal-300:   #7fa9b2;
  --teal-100:   #d6e4e7;
  --cyan:       #27b6d6;
  --cyan-soft:  #5ccfe6;
  --dark-card:  #201a28;

  --radius:     16px;
  --radius-lg:  26px;
  --shadow:     0 18px 50px -24px rgba(8, 30, 36, .5);
  --shadow-sm:  0 10px 30px -18px rgba(8, 30, 36, .45);
  --wrap:       1160px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Light theme (default) ---------- */
:root, :root[data-theme="light"] {
  --bg:         #ffffff;
  --surface:    #ffffff;
  --surface-2:  #f3f6f6;
  --heading:    #103a44;
  --text:       #17323a;
  --muted:      #5c7177;
  --line:       #e2ebec;
  --nav-bg:     rgba(255, 255, 255, .82);
  --hero-tint:  #eaf3f4;
  --field-bg:   #f3f6f6;
  --icon-ghost: var(--teal-900);
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg:         #0a2128;
  --surface:    #102d35;
  --surface-2:  #0c2730;
  --heading:    #eaf4f5;
  --text:       #cfe1e4;
  --muted:      #8aabb2;
  --line:       #1e4149;
  --nav-bg:     rgba(10, 33, 40, .82);
  --hero-tint:  #103842;
  --field-bg:   #0c2730;
  --icon-ghost: #dcebee;
  --shadow:     0 18px 50px -24px rgba(0, 0, 0, .6);
  --shadow-sm:  0 10px 30px -18px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* smooth color changes for themed surfaces (fallback when no View Transitions) */
.nav, .card, .pillar, .model, .stage, .person, .method__col, .chartcard,
.cta__form, .field input, .field textarea, .themetoggle, .btn--ghost, .figure--inset {
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}

/* ---------- Typography ---------- */
.display, .h2, .h3, .brand__name, .h4 { font-family: "Garet", "Inter", sans-serif; letter-spacing: .01em; }

.display {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.04;
  font-weight: 700;
  margin: .4rem 0 1.1rem;
  color: var(--heading);
}
.ink-accent { color: var(--brand); position: relative; white-space: nowrap; }
:root[data-theme="dark"] .ink-accent { color: var(--cyan-soft); }
.ink-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
  background: linear-gradient(90deg, var(--cyan), transparent); border-radius: 4px;
}

.h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; font-weight: 700; color: var(--heading); margin: 0 0 .7rem; }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; color: var(--heading); margin: 0 0 .5rem; }
.on-dark { color: #fff; }

.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700; color: var(--cyan-soft); margin: 0 0 .4rem; }
.eyebrow--dark { color: var(--teal-500); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 42ch; margin: 0 0 1.8rem; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--b); color: #fff; font-weight: 600; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--b);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); background: var(--brand-600); border-color: var(--brand-600); }
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1.05rem; font-size: .85rem; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--teal-300); color: var(--heading); }

/* ---------- Theme toggle ---------- */
.themetoggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--heading); display: grid; place-items: center; cursor: pointer;
  margin-left: .2rem; flex: 0 0 auto;
}
.themetoggle:hover { border-color: var(--teal-300); transform: translateY(-1px); }
.themetoggle:active { transform: scale(.94); }
.themetoggle__icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .icon-sun  { display: none; }
:root[data-theme="dark"]  .icon-moon { display: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .4s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -20px rgba(8, 30, 36, .6); }
.nav__inner { display: flex; align-items: center; gap: 1.2rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .62rem; }
/* mask the solid arrow mark so it recolours crisply per theme (no washed-out filter) */
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain; }
/* the mark is a teal arrow on transparent; in dark mode flip it to white */
:root[data-theme="dark"] .brand__mark { filter: brightness(0) invert(1); }
.brand__name { font-weight: 700; font-size: 1.18rem; color: var(--heading); line-height: 1; letter-spacing: .02em; display: flex; flex-direction: column; }
.brand__sub { font-size: .62rem; letter-spacing: .34em; color: var(--teal-500); font-weight: 600; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav__links a:not(.nav__cta) { font-size: .93rem; font-weight: 500; color: var(--heading); opacity: .82; transition: opacity .2s, color .2s; }
.nav__links a:not(.nav__cta):hover { opacity: 1; color: var(--brand); }
:root[data-theme="dark"] .nav__links a:not(.nav__cta):hover { color: var(--cyan-soft); }
.nav__cta { margin-left: .2rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, var(--hero-tint) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%); }
.hero__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 15% 110%, rgba(39,182,214,.10), transparent 70%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem; margin: 0; padding: 0; }
.hero__points li { position: relative; padding-left: 1.4rem; font-size: .92rem; font-weight: 500; color: var(--heading); }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 15px; height: 15px; border-radius: 50%;
  background: var(--cyan); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero__art { position: relative; display: flex; justify-content: center; }
.chartcard {
  width: min(430px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1.1rem; position: relative; z-index: 2;
}
.chartcard__head { display: flex; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.chartcard__head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-100); }
:root[data-theme="dark"] .chartcard__head .dot { background: var(--line); }
.chartcard__head em { margin-left: auto; font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-500); }
.bars { width: 100%; height: auto; }
.bars .grid line { stroke: var(--line); stroke-width: 1; }
.bars .bar { fill: var(--teal-100); transform-box: fill-box; transform-origin: bottom; }
:root[data-theme="dark"] .bars .bar { fill: #1c4b55; }
.bars .bar--hi { fill: var(--brand); }
:root[data-theme="dark"] .bars .bar--hi { fill: var(--teal-500); }
.bars .trend { stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 360; stroke-dashoffset: 360; }
.bars .trend-arrow { stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.chartcard__foot { display: flex; justify-content: space-between; margin-top: 1rem; gap: .5rem; }
.kpi { font-size: .74rem; color: var(--muted); text-align: center; flex: 1; }
.kpi b { display: block; font-family: "Garet", sans-serif; font-size: 1.25rem; color: var(--heading); }

/* decorative arrow mark (real image, so it always renders) */
.floatmark {
  position: absolute; right: -18px; top: -52px; width: 150px; height: 150px; z-index: 1;
  object-fit: contain; opacity: .5;
}
:root[data-theme="dark"] .floatmark { filter: brightness(0) invert(1); opacity: .28; }

.hero__art.is-visible .bar { animation: grow .9s var(--ease) both; }
.hero__art.is-visible .bar:nth-child(2){ animation-delay:.05s } .hero__art.is-visible .bar:nth-child(3){ animation-delay:.13s }
.hero__art.is-visible .bar:nth-child(4){ animation-delay:.21s } .hero__art.is-visible .bar:nth-child(5){ animation-delay:.29s }
.hero__art.is-visible .bar:nth-child(6){ animation-delay:.37s }
.hero__art.is-visible .trend { animation: draw 1s .5s var(--ease) forwards; }
.hero__art.is-visible .trend-arrow { animation: fade .3s 1.35s forwards; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- STRIP ---------- */
.strip { background: var(--teal-900); color: #fff; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 0; }
.strip__inner p { margin: 0; font-size: 1.02rem; color: #e7f0f1; max-width: 48ch; }
.strip__tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.strip__tags span { border: 1px solid rgba(255,255,255,.22); color: #d4e5e8; padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 500; }

/* ---------- SECTION base ---------- */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--paper { background: var(--surface-2); }
.section--dark { background: linear-gradient(165deg, var(--teal-900), var(--ink)); color: #fff; }
:root[data-theme="dark"] .section--dark { background: linear-gradient(165deg, #123f49, #0a252c); }
.section__head { max-width: 60ch; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section__sub { font-size: 1.08rem; color: var(--muted); margin: .4rem 0 0; }
.on-dark-sub { color: #9fc0c7; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

/* problem cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card__num { font-family: "Garet", sans-serif; font-size: 1rem; font-weight: 700; color: var(--cyan); letter-spacing: .1em; }
.card h3 { font-size: 1.12rem; margin: .5rem 0 .4rem; color: var(--heading); }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* roles (dark band) */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.roles--four { grid-template-columns: repeat(4, 1fr); }
.role { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.5rem 1.4rem;
  transition: border-color .25s, background .25s, transform .25s; }
.role:hover { background: rgba(255,255,255,.08); border-color: rgba(92,207,230,.5); transform: translateY(-4px); }
.role h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .4rem; }
.role p { margin: 0; color: #9fc0c7; font-size: .93rem; }
.engine__tag { text-align: center; margin: 2.3rem 0 0; font-family: "Garet", sans-serif; font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: #fff; font-weight: 600; }
.engine__tag span { display: block; color: var(--cyan-soft); font-size: .9em; margin-top: .2rem; }

/* services pillars */
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.7rem; border-top: 4px solid var(--brand); }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 1rem; }
.pillar__icon svg { width: 26px; height: 26px; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
:root[data-theme="dark"] .pillar__icon svg { stroke: var(--cyan-soft); }
.pillar h3 { font-size: 1.35rem; }
.pillar > p { color: var(--muted); font-size: .98rem; }
.ticks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 13px; height: 13px; border-radius: 50%; background: rgba(39,182,214,.16); box-shadow: inset 0 0 0 2px var(--cyan); }

/* hover lift (shared) */
.card, .pillar, .model, .stage, .person { transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .4s, border-color .4s; }

/* method figures */
/* diagrams are drawn on transparent/white — always seat them on a light slide so they read in both themes */
.figure { margin: 0 auto; max-width: 980px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 1.8rem); }
.figure img { margin: 0 auto; }
.figure--inset { margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.figure--inset img { max-height: 320px; width: auto; }
/* diagrams enlarge on click */
.figure img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 4vmin; background: rgba(8, 24, 29, .9); backdrop-filter: blur(4px); overflow: auto; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; width: auto; height: auto; background: #fff; border-radius: 12px; padding: 2.5vmin; box-shadow: var(--shadow); }
.lightbox__close { position: fixed; top: 3vmin; right: 3vmin; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.lightbox__hint { position: fixed; bottom: 3vmin; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .82rem; }

.models { margin-top: 2.2rem; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.1rem; text-align: center; }
.model:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.model span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-900); color: #fff; font-family: "Garet", sans-serif; font-weight: 700; margin-bottom: .6rem; }
:root[data-theme="dark"] .model span { background: var(--brand); }
.model h4 { font-size: 1.02rem; margin: 0 0 .35rem; color: var(--heading); font-weight: 700; }
.model p { font-size: .86rem; color: var(--muted); margin: 0; }

.method__split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.method__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.method__col .muted { font-size: .96rem; }

/* stages */
.stage { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stage h3 { font-size: 1.12rem; }
.stage p { margin: 0; color: var(--muted); font-size: .95rem; }

/* pricing */
.plan { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr .9fr;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.plan__body { padding: 2.3rem 2.1rem; }
.plan__body h3 { color: #fff; font-size: 1.6rem; }
.plan__desc { color: #9fc0c7; margin: 0 0 1.2rem; }
.plan .ticks li { color: #e6f0f1; }
.plan .ticks li::before { box-shadow: inset 0 0 0 2px var(--cyan-soft); background: rgba(92,207,230,.14); }
.ticks--2 { grid-template-columns: 1fr 1fr; }
.plan__side { background: rgba(92,207,230,.08); border-left: 1px solid rgba(255,255,255,.12); padding: 2.3rem 1.9rem; display: flex; flex-direction: column; justify-content: center; }
.plan__price { font-family: "Garet", sans-serif; font-size: 1.5rem; color: #fff; line-height: 1.2; margin: 0 0 .7rem; font-weight: 700; }
.plan__price span { display: block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-soft); font-weight: 600; }
.plan__note { color: #9fc0c7; font-size: .9rem; margin: 0 0 1.3rem; }

/* about / team */
.team { max-width: 920px; margin: 0 auto; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.person h3 { font-size: 1.25rem; margin-bottom: .1rem; }
.person h3 span { color: var(--teal-500); font-weight: 600; font-size: .9em; }
.person__role { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--cyan); margin: 0 0 .7rem; }
.person p:last-child { color: var(--muted); margin: 0; }
.quote { max-width: 760px; margin: 3rem auto 0; text-align: center; font-family: "Garet", sans-serif; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--heading); line-height: 1.35; font-weight: 600; position: relative; }
.quote cite { display: block; font-family: "Inter", sans-serif; font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .9rem; font-weight: 500; }

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.cta__bg { position: absolute; inset: 0; background: linear-gradient(130deg, rgba(12,42,49,.94), rgba(16,58,68,.86)), url("assets/bg.png") center/cover no-repeat; }
:root[data-theme="dark"] .cta__bg { background: linear-gradient(130deg, rgba(6,24,29,.96), rgba(10,37,44,.92)), url("assets/bg.png") center/cover no-repeat; }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.cta__copy .h2 { margin-bottom: .6rem; }
.cta__contacts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .9rem; }
.cta__contacts li { display: flex; align-items: baseline; gap: 1rem; }
.cta__contacts span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-soft); width: 70px; font-weight: 700; }
.cta__contacts a { font-size: 1.05rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.cta__contacts a:hover { border-color: var(--cyan); }

.cta__form { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--heading); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; font: inherit; color: var(--text); background: var(--field-bg); transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field textarea { resize: vertical; }
.form__note { font-size: .82rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }
.form__note.is-ok { color: var(--brand); font-weight: 600; }
:root[data-theme="dark"] .form__note.is-ok { color: var(--cyan-soft); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #c4d6da; padding: 3rem 0 1.6rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { width: 210px; max-width: 60vw; margin-bottom: .8rem; }
/* footer sits on a fixed dark panel in both themes, so force a white lockup */
.brand--footer { margin-bottom: .9rem; }
.brand--footer .brand__mark { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.brand--footer .brand__name { color: #ffffff; font-size: 1.12rem; }
.brand--footer .brand__sub { color: var(--teal-300); }
.footer__brand p { margin: 0; color: #9fb0b5; font-size: .95rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; align-content: flex-start; }
.footer__nav a { font-size: .92rem; color: #cdd6da; opacity: .85; }
.footer__nav a:hover { opacity: 1; color: var(--cyan-soft); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: 1.4rem; font-size: .82rem; color: #80959b; }
.footer__base p { margin: 0; color: #8a9aa0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- View-transition "wave" theme swap ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__art.is-visible .bar, .hero__art.is-visible .trend, .hero__art.is-visible .trend-arrow { animation: none; }
  .bars .bar { transform: none; } .bars .trend { stroke-dashoffset: 0; } .bars .trend-arrow { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .floatmark { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .method__split { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  /* headline-first on phones: copy above the chart */
  .hero__art { order: 0; }
  .hero__inner { gap: 1.8rem; padding-top: 2rem; }
  .hero__copy { text-align: left; }
  .chartcard { width: 100%; }
  .section__head { text-align: left; }
  .figure--inset img { max-height: none; width: 100%; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .themetoggle { margin-left: auto; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.1rem; box-shadow: var(--shadow-sm);
  }
  .nav.is-open .nav__links a:not(.nav__cta) { padding: .95rem .25rem; border-bottom: 1px solid var(--line); opacity: 1; font-size: 1.02rem; }
  .nav.is-open .nav__cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 1rem; padding: .85rem 1.1rem; font-size: .98rem; }

  .strip__inner { flex-direction: column; align-items: flex-start; }
  .grid--3, .grid--2, .services, .team { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .plan__side { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .ticks--2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid--4, .grid--5, .roles { grid-template-columns: 1fr; }
  .ticks--2 { grid-template-columns: 1fr; }
}
