:root {
  --paper: #F4F8F5;
  --paper-2: #E4EEE8;
  --ink: #0E2A1E;
  --ink-2: #143A29;
  --muted: #3F564B;
  --green: #1B5E3F;
  --mint: #6FD3A0;
  --mint-soft: #DDF5E8;
  --on-dark: #D4E6DC;
  --on-dark-2: #9DBDAC;
  --rule: rgba(14, 42, 30, .16);
  --r: 18px;
  --r-s: 12px;
  --shadow: 0 1px 2px rgba(14,42,30,.06), 0 8px 24px rgba(14,42,30,.08);
  --m: clamp(16px, 3.4vw, 48px);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: var(--step-body); line-height: 1.5;
  font-variation-settings: "wdth" 100;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--ink); }
[id] { scroll-margin-top: 96px; }

h1, .sec-h, .contact-h {
  font-family: var(--display); font-weight: 800; font-stretch: 62%;
  font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88;
}

/* ---------- floating pill navigation ---------- */
.top {
  position: fixed; top: 16px; left: var(--m); right: var(--m); z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  pointer-events: none;
}
.pill {
  pointer-events: auto; background: #fff; border-radius: 999px;
  transition: box-shadow .3s, opacity .35s var(--ease-out), transform .35s var(--ease-out);
  display: flex; align-items: center; min-height: 56px;
}
.top.scrolled .pill { box-shadow: var(--shadow); }
.wordmark { gap: 10px; padding: 0 20px 0 10px; text-decoration: none; font-size: 20px; letter-spacing: -0.01em; }
.wordmark b { font-weight: 800; }
.wordmark span { font-weight: 500; white-space: nowrap; }
.wordmark .mark { width: 36px; height: 36px; }
.home .top:not(.past) .wordmark { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.links { justify-self: center; gap: 4px; padding: 0 8px; }
.links a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 16px; border-radius: 999px; transition: background-color .2s, color .2s; }
.links a:hover, .links a:focus-visible { background: var(--paper-2); }
.links a.on { background: var(--mint-soft); color: var(--green); }
.right { gap: 4px; padding: 0 6px; }
.lang { display: flex; gap: 2px; }
.lang button {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); background: transparent; border: 0; border-radius: 999px;
  min-width: 44px; min-height: 44px; cursor: pointer; transition: background-color .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--paper-2); color: var(--green); font-weight: 700; }
.lang button:hover { background: var(--paper-2); }
.pill-cta {
  margin-left: 6px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .2s;
}
.pill-cta:hover, .pill-cta:focus-visible { background: var(--green); }

/* ---------- buttons ---------- */
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--mint); color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: 17px;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
.btn:hover, .btn:focus-visible { background: #fff; color: var(--ink); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover, .btn.dark:focus-visible { background: var(--green); color: #fff; }
.btn.ghost, .btn.line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn.ghost:hover, .btn.ghost:focus-visible, .btn.line:hover, .btn.line:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- hero: the headline sits inside the moving picture ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.flow-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-in {
  position: relative; z-index: 1; min-height: 100svh;
  padding: clamp(112px, 15vh, 156px) var(--m) clamp(56px, 9vh, 104px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; column-gap: clamp(32px, 5vw, 96px);
}
.hero-in > * { min-width: 0; }
.hero-main { display: grid; gap: clamp(28px, 4.4vh, 48px); }
.hero-brand { display: grid; gap: 14px; }
.hero-logo { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px); }
.hero-logo .mark { width: clamp(56px, 5.6vw, 88px); height: auto; aspect-ratio: 1; flex: none; }
.hero-logo span { font-size: clamp(42px, 5vw, 80px); line-height: 1; letter-spacing: -0.025em; font-weight: 500; }
.hero-logo b { font-weight: 800; }
.hero-tag { font-size: clamp(15px, 1.15vw, 19px); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--mint); }
.hero-tag i { font-style: normal; color: rgba(255,255,255,.4); padding: 0 .35em; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 6.5rem); }
.hero-copy { display: grid; gap: 32px; justify-items: start; }
.hero-sub { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; color: var(--on-dark); }

/* the live console: tasks that complete on their own */
.console {
  background: rgba(20, 58, 41, .78); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r);
  padding: 22px 24px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.con-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; }
.con-t { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.con-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mint); }
.con-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(111,211,160,.6); }
.con-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: 13px; font-weight: 600; color: var(--on-dark-2); padding: 0 0 10px; border-bottom: 1.5px solid var(--mint); }
.con-rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); transition: opacity .4s; }
.c-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.c-ic svg { width: 17px; height: 17px; }
.c-task { font-size: 15px; font-weight: 500; line-height: 1.3; }
.c-st { display: grid; justify-items: end; }
.c-st > span { grid-area: 1 / 1; font-size: 13px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 999px; white-space: nowrap; transition: opacity .35s, transform .35s var(--ease-out); }
.c-run { color: var(--on-dark); border: 1px solid rgba(255,255,255,.28); }
.c-ok { color: var(--mint); background: rgba(111,211,160,.14); border: 1px solid rgba(111,211,160,.35); }
.c-ok::before { content: "✓ "; }
.con-rows li .c-st > span { opacity: 0; transform: translateY(4px); }
.con-rows li { opacity: .38; }
.con-rows li.run, .con-rows li.ok { opacity: 1; }
.con-rows li.run .c-run, .con-rows li.ok .c-ok { opacity: 1; transform: none; }
.con-foot { font-size: 13px; color: var(--on-dark-2); padding-top: 14px; }
@media (prefers-reduced-motion: reduce) {
  .con-rows li { opacity: 1; }
  .con-rows li .c-ok { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .con-live i { animation: live 2s infinite; }
  .con-rows li.run .c-run { animation: blink 1s ease-in-out infinite; }
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(111,211,160,.55); } 70% { box-shadow: 0 0 0 8px rgba(111,211,160,0); } 100% { box-shadow: 0 0 0 0 rgba(111,211,160,0); } }
@keyframes blink { 50% { opacity: .55; } }

.lines .line { display: block; overflow: hidden; padding: 0.16em 0 0.08em; margin: -0.16em 0 -0.08em; }
.lines [data-line] { display: block; }

/* ---------- section heads ---------- */
.sec-h { font-size: clamp(3rem, 1.4rem + 5vw, 6.5rem); }
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vh, 64px); }
.sec-p { font-size: var(--step-lead); line-height: 1.4; max-width: 56ch; }

/* ---------- what we do ---------- */
.services { padding: clamp(104px, 14vh, 168px) var(--m) clamp(88px, 12vh, 144px); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { background: #fff; border-radius: var(--r); padding: clamp(28px, 2.8vw, 44px); display: grid; grid-template-rows: auto auto auto 1fr; gap: 16px; align-content: start; }
.p-bar { width: 56px; height: auto; fill: var(--green); margin-bottom: 12px; }
.p-bar .m { fill: var(--mint); }
.p-n { font-size: clamp(30px, 1.4rem + 1.2vw, 42px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.p-lead { font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--green); }
.p-list { margin-top: 8px; border-top: 1px solid var(--rule); }
.p-list li { font-size: 17px; line-height: 1.45; padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* tools we plug into */
.tools { margin-top: clamp(72px, 10vh, 120px); display: grid; gap: 36px; justify-items: center; text-align: center; }
.tools-head { display: grid; gap: 12px; justify-items: center; }
.tools-h { font-size: clamp(26px, 1.2rem + 1vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.tools-head p { font-size: 18px; max-width: 52ch; }
.tools-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.tools-row li {
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 10px;
  background: linear-gradient(180deg, var(--ink) 55%, var(--green) 100%); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* ---------- for your teams: tabs by function ---------- */
.teams {
  background: radial-gradient(60% 55% at 50% 62%, rgba(111,211,160,.16), rgba(111,211,160,0) 70%), var(--ink);
  color: #fff; padding: clamp(104px, 14vh, 168px) var(--m) clamp(96px, 13vh, 156px);
}
.teams-head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: 36px; }
.teams .sec-p { color: var(--on-dark); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 6vh, 56px); }
.tabs [role="tab"] {
  font: inherit; font-size: 16px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s;
}
.tabs [role="tab"]:hover { background: rgba(255,255,255,.16); }
.tabs [role="tab"][aria-selected="true"] { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.tpanel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.tpanel[hidden] { display: none; }
.tcard {
  background: rgba(20, 58, 41, .7); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r);
  padding: clamp(26px, 2.4vw, 36px); display: grid; gap: 14px; align-content: start; min-height: 220px;
}
.tcard h3 { font-size: clamp(22px, 1rem + .8vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.tcard p { font-size: 17px; line-height: 1.5; color: var(--on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .tpanel:not([hidden]) .tcard { animation: rise .6s var(--ease-out) both; }
  .tpanel .tcard:nth-child(2) { animation-delay: .07s; }
  .tpanel .tcard:nth-child(3) { animation-delay: .14s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- applied cases: a lateral rail of dark cards ---------- */
.cases { background: #fff; padding: clamp(104px, 14vh, 168px) 0 clamp(88px, 12vh, 144px); }
.cases-head { padding: 0 var(--m); grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.cases-intro { display: grid; gap: 24px; }
.rail-nav { display: flex; gap: 10px; }
.rn {
  width: 56px; height: 56px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s;
}
.rn svg { width: 20px; height: 20px; }
.rn:hover:not(:disabled), .rn:focus-visible { background: var(--ink); color: #fff; }
.rn:disabled { opacity: .25; cursor: default; }

.rail {
  display: grid; grid-auto-flow: column; gap: 16px;
  grid-auto-columns: clamp(300px, calc((100vw - 2 * var(--m) - 48px) / 3.25), 480px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m);
  padding: 0 var(--m) 4px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  position: relative; scroll-snap-align: start; background: var(--ink); color: #fff; border-radius: var(--r-s);
  height: clamp(540px, 68vh, 600px); padding: 28px; display: flex; flex-direction: column; overflow: hidden;
  transition: background-color .35s var(--ease-out);
}
.card:hover, .card:focus-within { background: var(--ink-2); }
.card-body { margin-top: auto; position: relative; z-index: 1; }
.card-t { font-size: clamp(26px, 1.2rem + .7vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; max-width: 18ch; }
.card-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease-out), opacity .35s; }
.card-more > div { min-height: 0; overflow: hidden; display: grid; gap: 20px; }
.card-more p { font-size: 16px; line-height: 1.5; color: var(--on-dark); padding-top: 16px; }
.card:hover .card-more, .card:focus-within .card-more { grid-template-rows: 1fr; opacity: 1; }
.card-go {
  justify-self: end; width: 72px; height: 52px; border-radius: 12px; background: var(--mint); color: var(--ink);
  display: grid; place-items: center; transition: background-color .2s;
}
.card-go svg { width: 22px; height: 22px; }
.card-go:hover, .card-go:focus-visible { background: #fff; }

/* the n8n-style flow inside each card */
.flow { position: relative; flex: none; height: 250px; margin: 0 -12px; opacity: .5; transition: opacity .4s var(--ease-out); }
.card:hover .flow, .card:focus-within .flow { opacity: 1; }
.flow .wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path.w { fill: none; stroke: rgba(255,255,255,.24); stroke-width: 2; transition: stroke .3s; }
.wires path.w.hot { stroke: var(--mint); }
.wires circle.tok { fill: var(--mint); }
.wires circle.port { fill: var(--ink); stroke: rgba(255,255,255,.4); stroke-width: 1.5; }
.flow .nodes { position: absolute; inset: 0; }
.node { position: absolute; transform: translate(-50%, -25px); display: grid; justify-items: center; gap: 8px; width: 104px; }
.node .box {
  width: 50px; height: 50px; border-radius: 10px; background: var(--ink-2);
  border: 1.5px solid rgba(255,255,255,.26); display: grid; place-items: center;
  transition: border-color .3s, background-color .3s;
}
.node .box svg { width: 26px; height: 26px; }
.node.ai .box { border-radius: 25px; }
.node.lit .box { border-color: var(--mint); background: var(--green); }
.node .lb { font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; color: #fff; }

/* ---------- sectors: photo tiles ---------- */
.sectors { padding: clamp(104px, 14vh, 168px) var(--m) clamp(88px, 12vh, 144px); }
.sec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sec-tile { position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--r-s); overflow: hidden; background: var(--ink); color: #fff; }
.sec-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.sec-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,42,30,.94) 0%, rgba(14,42,30,.6) 38%, rgba(14,42,30,0) 68%); }
.sec-tile:hover img { transform: scale(1.05); }
.sec-cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; display: grid; gap: 8px; }
.s-n { font-size: clamp(21px, .9rem + .7vw, 26px); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.s-d { font-size: 15px; line-height: 1.45; color: var(--on-dark); }

/* ---------- booking window ---------- */
.book {
  border: 0; padding: 0; width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100svh - 32px);
  border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden;
}
.book::backdrop { background: rgba(14,42,30,.72); backdrop-filter: blur(4px); }
.book-in { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100svh - 32px); }
.book-top { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 28px 32px 22px; border-bottom: 1px solid var(--rule); }
.book-k { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--green); margin-bottom: 6px; }
.book-h { font-size: clamp(24px, 1.2rem + 1vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.book-p { font-size: 16px; color: var(--muted); margin-top: 8px; max-width: 56ch; }
.book-x { flex: none; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.book-x svg { width: 18px; height: 18px; }
.book-x:hover, .book-x:focus-visible { background: var(--ink); color: #fff; }
.book-cal { min-height: min(620px, 70svh); overflow: auto; padding: 8px 16px 16px; }
.book-wait { padding: 72px 16px; text-align: center; color: var(--muted); font-size: 17px; }
html.modal { overflow: hidden; }

/* ---------- contact ---------- */
.contact {
  background: var(--ink); color: #fff;
  padding: clamp(96px, 13vh, 152px) var(--m);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(48px, 7vw, 120px); align-items: start;
}
.contact-left { display: grid; gap: 28px; justify-items: start; align-content: start; }
.contact-h { font-size: clamp(3rem, 1.4rem + 4.4vw, 6rem); max-width: 12ch; }
.contact-p { font-size: var(--step-lead); line-height: 1.4; max-width: 36ch; color: var(--on-dark); }

.form { display: grid; gap: 28px; padding-top: 10px; }
.form-h { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form label { display: grid; gap: 4px; }
.form label > span { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--on-dark-2); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 18px; font-weight: 400; color: #fff; background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(255,255,255,.3); border-radius: 0;
  padding: 10px 0; min-height: 48px; width: 100%; transition: border-color .2s;
}
.form select { appearance: none; cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23D4E6DC' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 2px center / 18px; }
.form select option { color: var(--ink); background: #fff; }
.form textarea { resize: vertical; min-height: 104px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--mint); }
.form .bad { border-bottom-color: #FF8A80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--on-dark-2); max-width: 36ch; }
.form-note a { color: var(--on-dark-2); }
.form-status { font-size: 16px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: #FF8A80; }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); color: var(--ink); padding: 56px var(--m) 40px; display: grid; gap: 32px; }
.foot-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.foot-logo { display: grid; gap: 12px; justify-items: start; text-decoration: none; }
.fl-row { display: flex; align-items: center; gap: 14px; }
.foot-logo .mark { width: 52px; height: 52px; }
.fl-name { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.fl-name b { font-weight: 800; }
.fl-tag { font-size: 13px; font-weight: 600; line-height: 1; color: var(--green); text-transform: uppercase; letter-spacing: .14em; }
.fl-tag i { font-style: normal; color: rgba(27,94,63,.45); padding: 0 .35em; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.foot-links a { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: underline 2px; text-underline-offset: 6px; text-decoration-color: rgba(14,42,30,.35); transition: text-decoration-color .2s, color .2s; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--green); text-decoration-color: var(--green); }
.foot-follow { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.foot-follow a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); transition: background-color .2s, color .2s; }
.foot-follow a:hover, .foot-follow a:focus-visible { background: var(--ink); color: var(--mint); }
.foot-follow svg { width: 28px; height: 28px; }
.foot-about { font-size: 16px; color: var(--muted); max-width: 80ch; }
.foot-copy { font-size: 15px; color: var(--muted); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 110ms + 250ms); }
  .js.loaded .lines [data-line] { transform: none; }
  .js .hero-brand { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js.loaded .hero-brand { opacity: 1; transform: none; }
  .js .hero-copy { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out) .55s, transform .8s var(--ease-out) .55s; }
  .js.loaded .hero-copy { opacity: 1; transform: none; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* touch screens: no hover, so the card text is always open */
@media not ((hover: hover) and (pointer: fine)) {
  .card { height: auto; min-height: 560px; }
  .card-more { grid-template-rows: 1fr; opacity: 1; }
  .flow { opacity: 1; }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 1023px) {
  .links { display: none; }
  .top { grid-template-columns: auto 1fr; }
  .right { justify-self: end; }
  .pillars { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-tile { aspect-ratio: 4 / 3; }
  .sec-tile:last-child { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
  .contact { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr auto; row-gap: 32px; }
  .foot-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; row-gap: 48px; align-content: start; min-height: 0; }
  .console { max-width: 640px; }
  .tpanel { grid-template-columns: 1fr; max-width: 640px; }
  .tcard { min-height: 0; }
}
@media (max-width: 899px) {
  .hero h1 { font-size: 7.2vw; white-space: nowrap; }
}
@media (max-width: 640px) {
  .top { top: 10px; gap: 8px; }
  .pill { min-height: 52px; }
  .wordmark { font-size: 18px; padding: 0 14px 0 8px; }
  .wordmark .mark { width: 32px; height: 32px; }
  .lang button { min-width: 36px; font-size: 13px; }
  .pill-cta { padding: 0 14px; font-size: 14px; margin-left: 2px; }
  .hero-in { padding-top: 104px; gap: 26px; }
  .hero-tag { letter-spacing: .08em; font-size: 14px; }
  .hero-sub { font-size: 19px; }
  .console { padding: 18px 16px 14px; }
  .c-task { font-size: 14px; }
  .con-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .c-ic { display: none; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--m)); padding-inline: var(--m); scrollbar-width: none; }
  .tabs [role="tab"] { flex: none; }
  .tools-row li { width: 96px; height: 96px; font-size: 14px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .cases-head { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .rail { grid-auto-columns: calc(100vw - 2 * var(--m) - 28px); }
  .card { padding: 24px; }
  .f2 { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-tile, .sec-tile:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .book-top { padding: 22px 20px 18px; }
  .book-cal { padding: 4px 4px 8px; }
  .contact-left .btn, .contact-ways .btn { width: 100%; justify-content: center; }
  .form .btn { width: 100%; justify-content: center; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-links { grid-row: auto; flex-direction: column; gap: 16px; }
}
