/* Bakay Partners, design 3 ("Embedding Atlas"). The page is a map of meaning: thousands of points that settle
   out of noise into four clusters, one per focus area. Cool-white ground, four committed cluster colours,
   Host Grotesk for the voice, Azeret Mono for what is measured. Designs 1 and 2 are frozen in v1/ and v2/. */

@font-face {
  font-family: "Host Grotesk";
  src: url("../assets/fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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: "Host Grotesk";
  src: url("../assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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: "Azeret Mono";
  src: url("../assets/fonts/azeret-mono-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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: "Azeret Mono";
  src: url("../assets/fonts/azeret-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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;
}

/* ---- tokens ------------------------------------------------------------------------------------- */

:root {
  --ground: #f3f4f2;
  --ink: #111315;
  --ink-2: #4f555b;
  --line: #d9dcd9;
  --dot: #b4b9b6;            /* points that belong to no cluster */

  /* one colour per focus area; js/main.js reads these to paint the atlas */
  --c1: #2442d8;             /* cobalt: applied AI products */
  --c2: #d9432a;             /* vermilion: infrastructure and tools */
  --c3: #0b7c70;             /* petrol: data and models */
  --c4: #b98500;             /* mustard: health and wellbeing */
  --c5: #7b3fb3;             /* plum: fintech and compliance */

  --accent: var(--c1);
  --accent-hover: #1a33b0;
  --accent-ink: #ffffff;

  --sans: "Host Grotesk", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 64px;
  --max: 1320px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d0f12;
    --ink: #e8eaec;
    --ink-2: #9aa1a8;
    --line: #23272c;
    --dot: #3a4047;
    --c1: #6079f2;
    --c2: #ee6648;
    --c3: #2aa999;
    --c4: #d9a62c;
    --c5: #a985e8;
    --accent-hover: #7a90ff;
    --accent-ink: #0b0d18;
    color-scheme: dark;
  }
}

/* ---- base --------------------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  caret-color: var(--accent);
  accent-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--c1); color: #fff; }
html { scrollbar-color: var(--line) var(--ground); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ground); border-radius: 6px; }

a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 10px; }

.arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform .3s cubic-bezier(.25, 1, .5, 1); }
a:hover .arrow { transform: translateX(3px); }

.draft {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font: 500 .6875rem/1 var(--mono); letter-spacing: .02em;
  color: var(--ink-2); border: 1px dashed var(--ink-2); padding: 4px 7px;
}

/* ---- header ------------------------------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--header);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; font-size: 1rem; }
.nav a {
  position: relative; color: var(--ink-2); text-decoration: none; padding: 6px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .24s cubic-bezier(.25, 1, .5, 1);
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="location"] { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="location"]::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; font-size: .8125rem; font-weight: 500; }
.lang a { text-decoration: none; color: var(--ink-2); padding: 7px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c1); text-underline-offset: 5px; }

/* ---- atlas -------------------------------------------------------------------------------------- */

.atlas { position: relative; }
.atlas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atlas-labels li {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  color: var(--ink);
  padding: 3px 7px; background: color-mix(in srgb, var(--ground) 82%, transparent);
  opacity: 0;                       /* placed and shown by js/main.js once the clusters have formed */
  transition: opacity .6s ease, color .2s ease;
}
.atlas-labels li::before { content: ""; width: 18px; height: 1px; background: var(--ink-2); }
.atlas-labels li.is-left { flex-direction: row-reverse; }
.atlas-labels li.is-top::before { display: none; }
.atlas-labels li.is-shown { opacity: 1; }
.atlas-labels li.is-dim { color: var(--ink-2); opacity: .45; }
.atlas-label-mobile { display: none; }

/* the reticle: over the map the mouse pointer becomes a fine ink crosshair that names the focus area under it; its
   centre point and the name's swatch take the colour of the cluster under it (ink arms stay visible inside a cluster). Mouse only; everywhere else the system pointer stays. */
@media (hover: hover) and (pointer: fine) { .atlas { cursor: none; } }
.reticle {
  position: absolute; left: 0; top: 0; z-index: 3;
  pointer-events: none;
  opacity: 0; transition: opacity .15s ease;
  --rc: var(--ink);
}
.reticle.is-in { opacity: 1; }
.reticle i {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px;
  background:
    linear-gradient(90deg, var(--ink) 0 11px, transparent 11px 17px, var(--ink) 17px) 0 50% / 100% 1px no-repeat,
    linear-gradient(180deg, var(--ink) 0 11px, transparent 11px 17px, var(--ink) 17px) 50% 0 / 1px 100% no-repeat;
}
.reticle i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: var(--rc);
}
.reticle-read {
  position: absolute; left: 18px; top: 16px;
  display: none; align-items: center; gap: 7px;
  padding: 4px 8px;
  font-weight: 500; font-size: .8125rem; line-height: 1.2;
  white-space: nowrap; color: var(--ink);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
}
.reticle.on-cluster .reticle-read { display: flex; }
.reticle-read::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--rc); }
.reticle.flip-x .reticle-read { left: auto; right: 18px; }
.reticle.flip-y .reticle-read { top: auto; bottom: 16px; }

/* ---- hero --------------------------------------------------------------------------------------- */

.hero { position: relative; height: clamp(560px, calc(100svh - var(--header)), 940px); }
.atlas-hero { position: absolute; inset: 0; }
.hero-text {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: min(100%, 900px);
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
  pointer-events: none;
}
.hero-text > * { pointer-events: auto; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  line-height: .98; letter-spacing: -0.04em;
}
.hero h1 span { display: block; }
.hero h1 .quiet { color: var(--ink-2); font-weight: 500; }
.lede { margin-top: 24px; max-width: 44ch; font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--accent-hover); }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: var(--ink); }

/* ---- sections ----------------------------------------------------------------------------------- */

.sec {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--line);
}
.sec-title { grid-column: 1 / 5; font-weight: 500; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; }
.sec-title .draft { display: table; margin: 12px 0 0; }

.statement { font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.12; letter-spacing: -0.035em; }
.sec-about .statement { grid-column: 1 / 10; max-width: 22ch; }
.sec-about .prose { grid-column: 6 / 12; margin-top: clamp(20px, 2.5vw, 32px); display: grid; gap: 16px; }
.prose p { font-size: 1.25rem; color: var(--ink-2); max-width: 60ch; }

.rows { grid-column: 5 / 13; }
.rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows h3 { font-weight: 600; font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; }
.rows p { color: var(--ink-2); font-size: 1.1875rem; }
/* What we build with: the same 2:3 split as the rows, set apart by space, its four capabilities ruled like the legend. */
.stack {
  grid-column: 5 / 13; margin-top: clamp(28px, 3.5vw, 48px); padding-top: 22px; border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px 32px;
}
.stack-title { font-weight: 500; font-size: 1.1875rem; line-height: 1.4; color: var(--ink-2); }
.stack-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.stack-list li {
  padding: 14px 0; border-top: 1px solid var(--line);
  font-weight: 500; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em;
}
.stack-list li:nth-child(-n+2) { border-top: 0; padding-top: 0; }

.sec-focus .legend, .sec-focus .atlas-focus { align-self: center; }
.legend { grid-column: 5 / 9; }
.legend li {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.2;
  transition: color .2s ease;
  cursor: pointer;
}
.legend li:first-child { border-top: 0; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--cc); transition: transform .2s ease; }
.legend li:hover::before, .legend li:focus-visible::before { transform: scale(1.25); }
.legend li.is-dim { color: var(--ink-2); }
[data-c="1"] { --cc: var(--c1); }
[data-c="2"] { --cc: var(--c2); }
[data-c="3"] { --cc: var(--c3); }
[data-c="4"] { --cc: var(--c4); }
[data-c="5"] { --cc: var(--c5); }
.atlas-focus { grid-column: 9 / 13; aspect-ratio: 1; }

.person { grid-column: 5 / 13; }

.sec-head { grid-column: 1 / 5; }
.sec-intro { margin-top: 12px; max-width: 28ch; font-size: 1.0625rem; color: var(--ink-2); }

/* Ventures: the featured card spans the column; later ventures fill a row of cards below it. */
.ventures { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.venture { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: grid; gap: 28px; align-content: start; }
.venture-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: clamp(24px, 4vw, 56px); }
.venture-name { line-height: 0; }
.venture-name img { width: auto; height: clamp(26px, 2.6vw, 34px); }
.venture-kind { margin-top: 18px; font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.venture-text { margin-top: 10px; color: var(--ink-2); font-size: 1.1875rem; max-width: 52ch; }
.venture-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; }
.venture-facts { margin: 0; display: grid; gap: 20px; align-content: start; }
.venture-facts > div { padding-top: 14px; border-top: 1px solid var(--line); }
.venture-facts dt { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.venture-facts dd { margin: 8px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; }
.tags li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.venture-note { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); max-width: 90ch; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sec-contact { padding-block: clamp(56px, 7vw, 104px); }
.sec-contact { align-items: center; }
.contact-main { grid-column: 1 / 8; }
.sec-contact .statement { font-size: clamp(2.25rem, 4.6vw, 4rem); max-width: 16ch; }
.contact-link, .contact-pending { margin-top: 40px; }
.contact-pending { display: inline-block; }
.atlas-close { grid-column: 8 / 13; aspect-ratio: 4 / 3; }
.contact-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.75rem); color: var(--accent);
}
.contact-pending {
  padding: 12px 16px; border: 1px dashed var(--ink-2);
  font: 500 .8125rem/1.3 var(--mono); color: var(--ink-2);
}

/* ---- footer ------------------------------------------------------------------------------------- */

.foot {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink-2);
}
.foot-mark { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-mark span:first-child { color: var(--ink); font-weight: 600; }
.foot-info { display: grid; gap: 6px; margin-right: auto; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---- contact form ------------------------------------------------------------------------------- */

.contact-form { margin-top: 40px; display: grid; gap: 20px; max-width: 620px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; color: var(--ink); background-color: var(--ground);
  border: 1px solid var(--line); border-radius: 0;
}
.field textarea { resize: vertical; min-height: 128px; }
/* The select draws its own chevron in the palette, and its open list takes the page's colours (a transparent
   select leaves the native list white, so dark-mode ink turned invisible on it). */
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select:hover { border-color: var(--ink-2); }
.field option { background-color: var(--ground); color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.contact-form .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: .9375rem; color: var(--ink-2); }
.form-status.is-ok { color: var(--c3); }
.form-status.is-error { color: var(--c2); }
.form-note { font-size: .8125rem; color: var(--ink-2); }
.contact-alt { margin-top: 16px; color: var(--ink-2); }

/* ---- privacy page ------------------------------------------------------------------------------- */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 128px); }
.legal h1 { font-weight: 600; font-size: clamp(2.25rem, 4vw, 3rem); letter-spacing: -0.035em; line-height: 1.05; }
.legal-date { margin-top: 12px; font: 500 .75rem/1.2 var(--mono); color: var(--ink-2); }
.legal-intro { margin-top: 28px; font-size: 1.1875rem; }
.legal h2 { margin-top: 40px; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.015em; }
.legal p:not(.legal-date) { color: var(--ink-2); }
.legal h2 + p { margin-top: 10px; }
.legal .legal-intro { color: var(--ink); }
.legal-back { margin-top: 48px; }

/* ---- responsive --------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero { height: auto; display: flex; flex-direction: column; }
  .atlas-hero { position: relative; inset: auto; aspect-ratio: 1; max-height: 70svh; width: 100%; }
  .hero-text { position: static; width: 100%; padding-top: 8px; }
  .sec { grid-template-columns: 1fr; row-gap: 24px; }
  .sec-title, .rows, .legend, .person, .sec-about .statement, .sec-about .prose, .atlas-focus,
  .contact-main, .atlas-close, .sec-head, .ventures, .stack { grid-column: 1; }
  .venture-featured { grid-template-columns: 1fr; }
  .atlas-close { max-width: 420px; width: 100%; }
  .sec-about .prose { margin-top: 8px; }
  .sec-title .draft { display: inline-block; margin: 0 0 0 10px; }
  .atlas-focus { max-width: 420px; width: 100%; justify-self: center; }
}

@media (max-width: 640px) {
  :root { --header: 56px; }
  .top { gap: 12px; }
  .nav a:not([href="#contact"]) { display: none; }
  .rows li { grid-template-columns: 1fr; padding: 22px 0; }
  .stack { grid-template-columns: 1fr; }
  .stack-list { grid-template-columns: 1fr; }
  .stack-list li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 14px; }
  .atlas-labels { display: block; }
  .atlas-labels li { gap: 5px; padding: 2px 4px; font-size: .6875rem; }
  .atlas-label-wide { display: none; }
  .atlas-label-mobile { display: inline; }
  .foot { align-items: flex-start; }
  .foot-mark { flex-direction: column; }
  .foot { flex-wrap: wrap; }
  .foot-info { flex-basis: 100%; }
  .field-pair { grid-template-columns: 1fr; }
}

/* Keep the complete hero action inside short phone viewports without shrinking the map on taller phones. */
@media (max-width: 640px) and (max-height: 740px) {
  .atlas-hero { aspect-ratio: 1.12; }
  .hero-text { padding-bottom: 24px; }
  .lede { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
}

@media (max-width: 640px) and (max-height: 620px) {
  .atlas-hero { aspect-ratio: auto; height: min(70vw, 38svh); max-height: none; }
  .hero-text { padding-bottom: 20px; }
  .lede { margin-top: 14px; font-size: 1rem; }
  .hero-actions { margin-top: 18px; }
}
