/* Tropikia Group — layout concept: a holding-company prospectus on a dark terminal ground;
   mono "ticker" codes (TEC / CON / CAP) key the three practices, sharp edges, one structure diagram as the hero. */
:root {
  color-scheme: dark;
  --ink: #070d0f;          /* page ground, green-biased black */
  --ink-2: #0c1619;        /* raised band */
  --ink-3: #111e22;        /* cards */
  --line: #1f3035;         /* hairlines */
  --line-2: #2c4349;       /* stronger hairlines, hover */
  --text: #e7f0ed;
  --muted: #93a8a3;
  --brand: #1f5f42;        /* Tropikia green (current site) */
  --mint: #58d8a6;         /* Technology / primary accent */
  --sky: #86bdea;          /* Consulting */
  --brass: #dcb56e;        /* Investments / capital */
  --on-accent: #04130d;
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --maxw: 1180px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--maxw); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--mint); color: var(--on-accent); padding: 8px 14px; }

/* ---------- labels ---------- */
.eyebrow, .code, .kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow { color: var(--mint); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.kicker { color: var(--muted); }
.code {
  display: inline-block; padding: 3px 8px; border: 1px solid currentColor; border-radius: 2px;
  color: var(--mint); line-height: 1.4; align-self: flex-start;
}
.t-tec { --tone: var(--mint); }
.t-con { --tone: var(--sky); }
.t-cap { --tone: var(--brass); }
.t-tec .code, .t-con .code, .t-cap .code, .code.tone { color: var(--tone); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(7, 13, 15, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { height: 30px; width: auto; flex: none; display: block; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-name span { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--mint); }
.nav a.btn { color: var(--on-accent); padding: 9px 18px; border-bottom: 1px solid var(--mint); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--mint); }
  .nav a.btn { margin-top: 16px; text-align: center; padding: 13px 18px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem; text-decoration: none;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid var(--mint);
  background: var(--mint); color: var(--on-accent); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #7be6bd; border-color: #7be6bd; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--mint); color: var(--mint); background: transparent; }
.btn .arr { font-family: var(--mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--mint); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.t-con .link { color: var(--sky); } .t-cap .link { color: var(--brass); }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head p { color: var(--muted); max-width: 62ch; }
.stack { display: grid; gap: 20px; }
.prose { display: grid; gap: 18px; max-width: 66ch; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g3, .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g2, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 20%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 70% 20%, #000 10%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -180px; top: -320px; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 95, 66, 0.55), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(56px, 8vw, 104px);
}
.hero-copy { display: grid; gap: 26px; }
.hero h1 em { font-style: normal; color: var(--mint); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero .wrap { padding-block: clamp(56px, 8vw, 100px) clamp(44px, 6vw, 72px); display: grid; gap: 24px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18ch; }
.page-hero.t-con::after { background: radial-gradient(circle, rgba(60, 110, 160, 0.4), transparent 65%); }
.page-hero.t-cap::after { background: radial-gradient(circle, rgba(140, 105, 40, 0.38), transparent 65%); }
.page-hero.t-con .eyebrow { color: var(--sky); } .page-hero.t-cap .eyebrow { color: var(--brass); }

/* ---------- structure diagram ---------- */
.structure {
  background: rgba(12, 22, 25, 0.82); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: clamp(16px, 2.4vw, 26px); display: grid; gap: 0;
}
.structure-cap { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--muted); }
.node {
  border: 1px solid var(--line-2); background: var(--ink-3); border-radius: var(--r);
  padding: 12px 10px; text-align: center; display: grid; gap: 4px; min-width: 0; text-decoration: none;
}
.node b { font-family: var(--display); font-weight: 600; font-size: clamp(0.8rem, 1.5vw, 0.98rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.node small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.node.top { justify-self: center; padding: 16px 28px; border-color: var(--mint); background: linear-gradient(180deg, rgba(31, 95, 66, 0.5), rgba(31, 95, 66, 0.12)); }
.node.top b { font-size: 1.1rem; }
.node.p { border-top: 2px solid var(--tone); }
.node.p small { color: var(--tone); }
a.node:hover { border-color: var(--tone, var(--mint)); }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 14px); }
.wires { display: block; width: 100%; height: 44px; }
.wires path { fill: none; stroke: var(--line-2); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.wires path.flow { stroke: var(--mint); stroke-dasharray: 3 9; animation: flow 2.4s linear infinite; opacity: 0.9; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.row-label { text-align: center; margin: 2px 0 10px; color: var(--muted); font-size: 0.66rem; }
@media (prefers-reduced-motion: reduce) { .wires path.flow { animation: none; } html { scroll-behavior: auto; } }

/* ---------- facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 22px 20px 24px 0; display: grid; gap: 6px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 20px; }
.fact dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more { margin-top: auto; padding-top: 8px; }
.practice { border-top: 2px solid var(--tone); gap: 16px; transition: border-color .15s, background .15s; }
.practice:hover { background: #142429; }
.practice h3 { font-size: 1.5rem; }
.practice ul { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.practice li { display: flex; gap: 10px; align-items: baseline; }
.practice li::before { content: ""; width: 6px; height: 6px; background: var(--tone); flex: none; transform: translateY(-2px); }

.plain { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-2); min-width: 0; }
.plain p { color: var(--muted); font-size: 0.98rem; }

.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "→"; font-family: var(--mono); color: var(--tone, var(--mint)); flex: none; }

/* ---------- holdings ---------- */
.holdings { border: 1px solid var(--line); border-radius: var(--r); background: var(--ink-3); }
.h-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 0.8fr) 170px;
  gap: 20px; align-items: center; padding: 20px clamp(18px, 2.4vw, 28px);
}
.h-row + .h-row { border-top: 1px solid var(--line); }
.h-head { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-block: 14px; }
.h-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.h-row > div { min-width: 0; }
.h-desc { color: var(--muted); font-size: 0.96rem; }
.stage { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); display: inline-flex; align-items: center; gap: 8px; }
.stage::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.h-row .link { color: var(--brass); white-space: nowrap; }
.h-row > div:last-child { text-align: right; }
@media (max-width: 860px) {
  .h-head { display: none; }
  .h-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .h-row > div:last-child { text-align: left; }
  .h-row + .h-row { border-top: 1px solid var(--line); }
}

/* ---------- steps (true sequences only) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 22px 6px 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--mint); letter-spacing: 0.1em; }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--mint); }
.steps p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- people ---------- */
.person { flex-direction: row; align-items: flex-start; gap: 18px; }
.mono-av {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--ink-2); font-family: var(--display); font-weight: 600; color: var(--mint);
}
.person div { display: grid; gap: 6px; min-width: 0; }
.person .role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(120deg, rgba(31, 95, 66, 0.42), rgba(12, 22, 25, 0.2) 60%), var(--ink-2); }
.cta .wrap { padding-block: clamp(56px, 7vw, 88px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 22ch; }
.cta p { color: var(--muted); margin-top: 12px; max-width: 52ch; }

/* ---------- contact ---------- */
.contact-list { display: grid; gap: 0; }
.contact-list div { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.08rem; user-select: all; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--mint); }
form.card { gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; width: 100%; min-width: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; border-color: var(--mint); }
.form-status { font-size: 0.95rem; color: var(--mint); border-left: 2px solid var(--mint); padding-left: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); font-size: 0.95rem; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 56px 40px; }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--mint); }
.site-footer address { font-style: normal; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.legal { border-top: 1px solid var(--line); padding-block: 22px 28px; display: grid; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.legal p { max-width: 90ch; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }

.gap-lg { display: grid; gap: clamp(32px, 4vw, 48px); }
.plain { align-content: start; }
@media (max-width: 520px) { .row3 .node { padding-inline: 4px; } .row3 .node b { font-size: 0.72rem; } .row3 .node small { font-size: 0.58rem; letter-spacing: 0.04em; } }
.faq { display: grid; gap: 0; }
.qa { display: grid; gap: 8px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.qa:first-child { padding-top: 0; }
.qa p { color: var(--muted); font-size: 0.98rem; max-width: 66ch; }
a.card:hover { border-color: var(--line-2); background: #142429; }
.hero h1.h1-two { font-size: clamp(2rem, 4.1vw, 3.25rem); }
.hero h1.h1-two span { display: block; text-wrap: balance; }
