/* ==========================================================================
   Growstack AI — editorial design system
   Solid colours only (no gradients). Contrast rules:
   - Light frames: all body/small text in --ink. --mute is decorative only (2.3:1).
   - --sage on light only for large text (≥24px) or non-text marks (4.4:1).
   - Dark frames: --paper for primary text, --mute for secondary text (6.8:1).
   ========================================================================== */

:root {
  --paper: #F4F1EA;
  --ink: #171916;
  --sage: #66745D;
  --stone: #D9D3C7;
  --mute: #A5A095;
  --white: #FFFFFF;
  --rule-dark: #353833;   /* hairlines on ink: ink mixed toward mute, solid */

  --f-sans: "General Sans", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-ui: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --max: 1440px;
  --gutter: clamp(20px, 3.4vw, 56px);
  --col-gap: clamp(16px, 1.8vw, 28px);
  --frame-y: clamp(112px, 13vw, 200px);

  --ease: cubic-bezier(.22, .8, .24, 1);   /* restrained ease-out, no overshoot */
  --t-text: .5s;
  --t-image: .7s;
  --t-zoom: .65s;
  --t-card: .35s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, fieldset, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.frame--dark :focus-visible, .footer :focus-visible, .header.is-dark :focus-visible { outline-color: var(--paper); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 300; padding: 12px 16px;
  background: var(--ink); color: var(--paper); font: 500 14px var(--f-ui); transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.frame { position: relative; padding-block: var(--frame-y); }
.frame--dark { background: var(--ink); color: var(--paper); }

/* ---------- Typography ---------- */
.label {
  font-family: var(--f-ui); font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
}
.frame--dark .label, .footer .label { color: var(--mute); }

.display {
  font-family: var(--f-sans); font-weight: 500;
  font-size: clamp(42px, 5.9vw, 92px); line-height: 1.02; letter-spacing: -.035em;
}
.heading {
  font-family: var(--f-sans); font-weight: 500;
  font-size: clamp(36px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.032em;
}
.display em, .heading em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 1.1em; letter-spacing: -.012em; line-height: .9;
}
.lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 46ch; }
.frame--dark .lede { color: var(--mute); }

.rule-label { display: flex; align-items: center; gap: 14px; }
.rule-label::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-ui); font-size: 14px; font-weight: 500; letter-spacing: .01em;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.text-link__arrow { display: inline-block; transition: transform var(--t-card) var(--ease); }
.text-link:hover .text-link__arrow--down { transform: translateY(3px); }
.text-link:hover .text-link__arrow--out { transform: translate(3px, -3px); }

/* Word-mask reveal (words are wrapped by JS) */
/* Baseline-aligned word masks. clip-path (not overflow) does the masking, so serif and sans words
   share one baseline and descenders (g, p, y) are never cut off. */
.w { display: inline-block; vertical-align: baseline; clip-path: inset(-0.35em -0.2em -0.35em -0.2em); }
.w > span { display: inline-block; will-change: transform; }

/* ==========================================================================
   Header + frame index
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--ink); transition: color .4s var(--ease);
}
.header.is-dark { color: var(--paper); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

/* Solid backing appears once scrolled, so the header never sits on top of text */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper);
  border-bottom: 1px solid var(--stone);
  transform: translateY(-101%); transition: transform .45s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}
.header.is-scrolled::before { transform: none; }
.header.is-dark::before { background: var(--ink); border-bottom-color: var(--rule-dark); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-weight: 600; font-size: 19px; letter-spacing: -.03em; line-height: 1; }
.logo svg { width: 30px; height: 30px; flex: none; }

.header__contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-ui); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color var(--t-card) var(--ease);
}
.header__contact:hover { border-color: currentColor; }
.header__contact span { display: inline-block; transition: transform var(--t-card) var(--ease); }
.header__contact:hover span { transform: translate(3px, -3px); }

.frame-index {
  /* Vertical, inside the left margin — never overlaps content */
  position: fixed; left: calc(var(--gutter) / 2 - 7px); bottom: 32px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); transition: color .4s var(--ease), opacity .4s var(--ease);
  pointer-events: none;
}
.frame-index.is-dark { color: var(--paper); }
.frame-index__rule { width: 1px; height: 24px; background: currentColor; }

/* ==========================================================================
   FRAME 01 — Introduction
   ========================================================================== */
.intro { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; padding-bottom: 24px; }
.intro__grid { align-items: end; row-gap: 56px; }
/* Copy sits above the portrait column so the headline can cross into the sage block */
.intro__copy { grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 2; }
.intro__eyebrow { margin-bottom: 36px; }
.intro__title { margin-bottom: 36px; }
/* Keep "next generation" on one line: if "generation" starts a line, the italic g's tail hangs past the margin */
.intro__title em { white-space: nowrap; }
.intro__lede { margin-bottom: 44px; }

/* Founder: background-removed brick portrait standing in a solid sage block.
   The head rises above the block; the bust is cut flush with the block's base. */
.founder { grid-column: 8 / 13; grid-row: 1; position: relative; z-index: 1; }
.founder__stage { position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; }
.founder__block {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: var(--sage); transform-origin: 50% 100%;
}
.founder__figure { position: absolute; right: 0; bottom: 0; width: 82%; }
.founder__parallax { position: relative; }
.founder__cutout { width: 100%; height: auto; }
.founder__caption { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.founder__caption-rule { width: 28px; height: 1px; background: var(--ink); }

.intro__foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 4vw, 60px); padding-top: 18px; border-top: 1px solid var(--stone);
}

/* ==========================================================================
   FRAME 02 — Portfolio
   ========================================================================== */
/* The portfolio follows straight on from the intro strip, so it needs less top space than other frames */
.portfolio { padding-top: clamp(48px, 4.5vw, 66px); }
.section-head { align-items: end; row-gap: 28px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head__label { grid-column: 1 / -1; }
.section-head__title { grid-column: 1 / 9; }
.section-head__aside { grid-column: 10 / 13; justify-self: end; text-align: right; }

.portfolio__grid { align-items: start; }
.portfolio__col { display: flex; flex-direction: column; gap: clamp(40px, 4vw, 64px); }
.portfolio__col--left  { grid-column: 1 / 7; }
.portfolio__col--right { grid-column: 8 / 13; padding-top: clamp(56px, 7vw, 110px); }  /* stagger */
.card--pipey   { width: 84%; }
.card--b2bdata { width: 84%; align-self: flex-end; }

.card { display: block; color: var(--ink); }
.card__media { position: relative; overflow: hidden; background: var(--stone); }
.card--turgo .card__media    { aspect-ratio: 3 / 2; }
.card--b2bdata .card__media  { aspect-ratio: 4 / 5; }
.card--pipey .card__media    { aspect-ratio: 4 / 5; }
.card--voicecab .card__media { aspect-ratio: 4 / 3; }
.card__parallax { position: absolute; inset: -6% 0; }
.card__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform var(--t-zoom) var(--ease);
}
.card--voicecab .card__img { object-position: 62% 50%; }
.card__img--colour { filter: none; }   /* supplied illustration keeps its own colours */
.card:hover .card__img, .card:focus-visible .card__img { transform: scale(1.045); }

.card__meta {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; column-gap: 16px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink);
}
.card__index { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; align-self: start; padding-top: 10px; }
.card__titles { display: grid; gap: 2px; }
/* Company logo tile */
.card__logo { width: 48px; height: 48px; display: grid; place-items: center; padding: 6px; background: var(--white); border: 1px solid var(--stone); border-radius: 12px; }
.card__logo img { width: 100%; height: 100%; object-fit: contain; }
.card__logo--tile { padding: 0; border: 0; background: none; }
.card__logo--tile img { border-radius: 12px; }
.card__name { font-family: var(--f-sans); font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.card__category { font-family: var(--f-ui); font-size: 14px; }
.card__arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%;
  font-family: var(--f-ui); font-size: 16px; line-height: 1;
  transition: background-color var(--t-card) var(--ease), color var(--t-card) var(--ease);
}
.card__arrow span { display: inline-block; transition: transform var(--t-card) var(--ease); }
.card:hover .card__arrow, .card:focus-visible .card__arrow { background: var(--ink); color: var(--paper); }
.card:hover .card__arrow span, .card:focus-visible .card__arrow span { transform: translate(2px, -2px); }
/* Description = caption panel inside the image: slides up on hover, takes no layout space */
.card__desc {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; max-width: 46ch;
  padding: 14px 16px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.5;
  border: 1px solid var(--stone);   /* keeps the panel distinct on light photos */
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--t-text) var(--ease), transform var(--t-text) var(--ease);
}
.card:hover .card__desc, .card:focus-visible .card__desc { opacity: 1; transform: none; }
/* Turgo's hand and plane sit centre-left, so its caption goes bottom-right */
.card--turgo .card__desc { left: auto; right: 14px; }
/* Touch screens have no hover: keep the caption visible */
@media (hover: none) { .card__desc { opacity: 1; transform: none; font-size: 14px; padding: 12px 14px; } }

/* ==========================================================================
   FRAME 03 — Connected ecosystem
   ========================================================================== */
.eco__label { grid-column: 1 / -1; margin-bottom: 28px; }
.eco__intro { grid-column: 1 / 9; }
.eco__intro .heading { margin-bottom: 28px; }
.eco__intro .lede { max-width: 52ch; }

.system {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(48px, .7fr) auto minmax(48px, .7fr) minmax(0, .85fr);
  align-items: stretch; margin-top: clamp(64px, 9vw, 128px);
}
.system > * { min-width: 0; }

.layers { border-top: 1px solid var(--rule-dark); }
.layer {
  display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--rule-dark);
}
.layer__n { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--mute); transition: color .5s var(--ease); }
.layer__verb { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; color: var(--mute); transition: color .5s var(--ease); }
.layer__product { grid-column: 2; display: flex; align-items: center; gap: 10px; margin-top: 4px; font-family: var(--f-ui); font-size: 14px; color: var(--mute); transition: color .5s var(--ease); }
.layer__product::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--mute); transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.layer.is-lit .layer__verb, .layer.is-lit .layer__n, .layer.is-lit .layer__product { color: var(--paper); }
.layer.is-lit .layer__product::before { background: var(--sage); border-color: var(--sage); }

.system { position: relative; }
/* Connections are measured from the real layout and drawn in pixels by JS */
.system__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.system__wires path { fill: none; stroke: var(--mute); stroke-width: 1; }
.system__wires .is-out { stroke: var(--sage); stroke-width: 1.5; }
.system__wires circle { fill: var(--paper); }
.wire { display: block; }

.hub {
  align-self: center; display: grid; justify-items: center; gap: 10px; padding: 26px 28px;
  background: var(--paper); color: var(--ink); text-align: center;
}
.hub svg { width: 40px; height: 40px; }
.hub__name { font-family: var(--f-sans); font-size: 19px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hub .label { color: var(--ink); font-size: 11px; }

.destinations { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.destination { padding: 18px 0 4px; border-top: 1px solid var(--paper); }
.destination__name { font-family: var(--f-sans); font-size: clamp(24px, 2.3vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.destination__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--f-ui); font-size: 13px; color: var(--mute); }
.destination__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; }

.upcoming { margin-top: clamp(72px, 9vw, 128px); align-items: start; row-gap: 32px; }
.upcoming__label { grid-column: 1 / 4; padding-top: 22px; }
.upcoming__item { grid-column: span 4; padding-top: 20px; border-top: 1px dashed var(--mute); }
.upcoming__item:first-of-type { grid-column: 5 / 9; }
.upcoming__tag { display: inline-block; margin-bottom: 16px; padding: 4px 9px; border: 1px solid var(--mute); font-family: var(--f-ui); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.upcoming__name { font-family: var(--f-sans); font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.upcoming__name span { color: var(--mute); }
.upcoming__desc { color: var(--mute); font-size: 15.5px; margin-top: 6px; max-width: 34ch; }

/* ==========================================================================
   FRAME 04 — Investment vision
   ========================================================================== */
.vision__label { grid-column: 1 / -1; margin-bottom: 28px; }
.vision__title { grid-column: 1 / 12; }
.vision__figure { margin-top: clamp(56px, 7vw, 96px); }
.vision__media { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 16 / 9; }
.vision__parallax { position: absolute; inset: -8% 0; }
.vision__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.vision__credit { margin-top: 12px; font-family: var(--f-ui); font-size: 12px; }

.vision__body { margin-top: clamp(56px, 7vw, 104px); row-gap: 40px; }
.vision__statement { grid-column: 1 / 7; font-size: clamp(22px, 2vw, 30px); line-height: 1.35; letter-spacing: -.02em; font-weight: 400; }
.vision__side { grid-column: 8 / 13; display: grid; gap: 32px; }
.pillars { border-top: 1px solid var(--ink); }
.pillar { display: grid; grid-template-columns: 110px 1fr; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--stone); }
.pillar__name { font-family: var(--f-serif); font-style: italic; font-size: 26px; line-height: 1.1; }
.pillar__text { font-size: 15.5px; line-height: 1.55; }
.vision__note { font-size: 15.5px; line-height: 1.6; }

/* ==========================================================================
   FRAME 05 — Contact + footer
   ========================================================================== */
.closing { padding-bottom: 0; }
.closing__label { grid-column: 1 / -1; margin-bottom: 28px; }
.closing__title { grid-column: 1 / 11; }
.closing__cta {
  grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  margin-top: clamp(56px, 7vw, 104px); padding-top: 28px; border-top: 1px solid var(--rule-dark);
}
.talk-wrap { display: inline-grid; gap: 10px; }
.talk {
  display: inline-flex; align-items: baseline; gap: .22em;
  font-family: var(--f-sans); font-weight: 500; font-size: clamp(56px, 10vw, 164px); line-height: .95; letter-spacing: -.045em;
}
.talk em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.talk__arrow { display: inline-block; font-size: .46em; transition: transform var(--t-card) var(--ease); }
.talk:hover .talk__arrow, .talk:focus-visible .talk__arrow { transform: translate(.08em, -.08em); }
.talk__line { display: block; height: 2px; background: var(--paper); transform: scaleX(0); transform-origin: left; transition: transform var(--t-image) var(--ease); }
.talk-wrap:hover .talk__line, .talk-wrap:focus-within .talk__line { transform: scaleX(1); }

.email { display: grid; gap: 12px; justify-items: start; padding-bottom: 14px; }
.email__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.email__addr { font-family: var(--f-sans); font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; border-bottom: 1px solid var(--mute); padding-bottom: 2px; transition: border-color var(--t-card) var(--ease); }
.email__addr:hover { border-color: var(--paper); }
.copy-btn { font-family: var(--f-ui); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 8px 12px; border: 1px solid var(--rule-dark); transition: color var(--t-card), border-color var(--t-card); }
.copy-btn:hover { color: var(--paper); border-color: var(--mute); }

.footer { background: var(--ink); color: var(--paper); padding: clamp(96px, 10vw, 160px) 0 40px; }
.footer__top { row-gap: 48px; padding-top: 40px; border-top: 1px solid var(--rule-dark); }
.footer__brand { grid-column: 1 / 6; }
.footer__brand .logo { margin-bottom: 20px; }
.footer__statement { color: var(--mute); max-width: 40ch; font-size: 15.5px; }
.footer__col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.footer__col:first-of-type { grid-column: 7 / 9; }
.footer__col .label { margin-bottom: 8px; }
.footer__col a { font-size: 15.5px; justify-self: start; border-bottom: 1px solid transparent; transition: border-color var(--t-card) var(--ease); }
.footer__col a:hover { border-color: currentColor; }
.footer__col span { font-size: 15.5px; color: var(--mute); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(64px, 8vw, 120px); padding-top: 20px; border-top: 1px solid var(--rule-dark); font-family: var(--f-ui); font-size: 12px; color: var(--mute); }
.footer__credits a { border-bottom: 1px solid var(--rule-dark); }
.footer__credits a:hover { color: var(--paper); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; padding: 10px 16px; transform: translate(-50%, 16px);
  background: var(--paper); color: var(--ink); font: 500 13px var(--f-ui); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-page { min-height: 100svh; padding-top: 150px; padding-bottom: 96px; }
.contact-page__grid { row-gap: 64px; }
.contact-page__copy { grid-column: 1 / 6; }
.contact-page__copy .label { margin-bottom: 28px; }
.contact-page__copy .display { margin-bottom: 28px; }
.contact-page__copy .lede { margin-bottom: 40px; }
.contact-page__direct { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.contact-page__direct a { justify-self: start; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; border-bottom: 1px solid var(--ink); }
.contact-page__photo { margin-top: 48px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.contact-page__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.form { grid-column: 7 / 13; display: grid; gap: 30px; align-content: start; }
.form__topics { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__topics legend { margin-bottom: 14px; }
.form__topics label { position: relative; cursor: pointer; }
.form__topics input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.form__topics span { display: inline-block; padding: 10px 18px; border: 1px solid var(--ink); font: 500 14px var(--f-ui); transition: background-color var(--t-card) var(--ease), color var(--t-card) var(--ease); }
.form__topics input:checked + span { background: var(--ink); color: var(--paper); }
.form__topics input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 4px; }
.field__label { font-family: var(--f-ui); font-size: 13px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: 400 18px/1.5 var(--f-sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 1px 0 0 var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #8A2E1C; box-shadow: 0 1px 0 0 #8A2E1C; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__note { font-family: var(--f-ui); font-size: 13px; max-width: 36ch; }
.form__note.is-error { color: #8A2E1C; }
.button {
  display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px; background: var(--ink); color: var(--paper);
  font: 500 13px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; transition: background-color var(--t-card) var(--ease);
}
.button:hover { background: var(--sage); }
.button span { display: inline-block; transition: transform var(--t-card) var(--ease); }
.button:hover span { transform: translateX(3px); }

/* ==========================================================================
   COMPANY DETAIL VIEW — full-screen editorial view opened from a portfolio card
   Left: product image (sticky on desktop). Right: solid company accent with content.
   ========================================================================== */
.company { position: fixed; inset: 0; z-index: 250; background: var(--paper); }
.company[hidden] { display: none; }
.company__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.company__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; }

.company__media { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--stone); }
.company__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.company__img.is-colour { filter: none; }

.company__body {
  --accent: var(--ink);
  background: var(--accent); color: var(--paper);
  padding: clamp(96px, 11vh, 140px) clamp(28px, 5vw, 88px) clamp(48px, 7vh, 80px);
  display: flex; flex-direction: column; gap: 0;
}
.company__body .label { color: var(--paper); }
.company__meta { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(40px, 7vh, 72px); }
.company__meta-sep { width: 28px; height: 1px; background: currentColor; }
.company__category { margin-bottom: 16px; }
.company__logo { width: 64px; height: 64px; display: grid; place-items: center; padding: 9px; margin-bottom: 18px; background: var(--white); border-radius: 16px; }
.company__logo img { width: 100%; height: 100%; object-fit: contain; }
.company__logo.is-tile { padding: 0; background: none; }
.company__logo.is-tile img { border-radius: 16px; }
.company__name { font-family: var(--f-sans); font-weight: 500; font-size: clamp(44px, 5.2vw, 84px); line-height: 1; letter-spacing: -.045em; margin-bottom: 22px; }
.company__headline { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 26px; max-width: 26ch; }
.company__desc { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; max-width: 52ch; margin-bottom: clamp(36px, 5vh, 56px); }

.company__section { margin-bottom: clamp(36px, 5vh, 56px); }
.company__section .label { margin-bottom: 14px; }
.company__caps { border-top: 1px solid rgba(244, 241, 234, .28); }
.company__caps li { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(244, 241, 234, .28); font-size: 16px; }
.company__caps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); flex: none; transform: translateY(-2px); }

.company__people { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 22px 0; border-top: 1px solid var(--paper); border-bottom: 1px solid var(--paper); margin-bottom: clamp(28px, 4vh, 40px); }
.company__ceo { display: flex; align-items: center; gap: 16px; }
.company__monogram { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--paper); font-family: var(--f-serif); font-style: italic; font-size: 22px; }
.company__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--paper); }  /* CEO photos stay in colour */
.company__photo[hidden], .company__monogram[hidden] { display: none; }
.company__ceo-name { font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.company__ceo-title { font-family: var(--f-ui); font-size: 13px; margin: 2px 0 6px; }
.company__linkedin { font-family: var(--f-ui); font-size: 13px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.company__team { display: grid; justify-items: end; gap: 4px; text-align: right; }
.company__team-num { font-family: var(--f-sans); font-size: clamp(44px, 4vw, 64px); font-weight: 500; line-height: .9; letter-spacing: -.04em; }

.company__cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px; background: var(--paper); color: var(--ink);
  font: 500 13px var(--f-ui); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--t-card) var(--ease), color var(--t-card) var(--ease);
}
.company__cta:hover { background: var(--white); }
.company__cta span:nth-of-type(2) { display: inline-block; transition: transform var(--t-card) var(--ease); }
.company__cta:hover span:nth-of-type(2) { transform: translate(3px, -3px); }

.company__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: clamp(40px, 7vh, 72px); }
.company__nav-btn { font-family: var(--f-ui); font-size: 13px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color var(--t-card); }
.company__nav-btn:hover { border-color: currentColor; }

.company__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.company__footer .company__nav { margin-top: 0; padding-top: 0; gap: 28px; }
.company__close {
  position: fixed; top: 20px; right: 20px; z-index: 3; display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 16px 0 18px; background: var(--paper); color: var(--ink);
  font: 500 12px var(--f-ui); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--stone); transition: background-color var(--t-card);
}
.company__close:hover { background: var(--white); }
.company__close-x { position: relative; width: 14px; height: 14px; }
.company__close-x::before, .company__close-x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.company__close-x::after { transform: rotate(-45deg); }
.company :focus-visible { outline-color: var(--paper); }
.company__close:focus-visible, .company__cta:focus-visible { outline-color: var(--sage); }

/* Desktop: the whole company view fits one screen. Spacing scales with viewport height;
   on very short screens the panel can still grow and scroll, so nothing is ever cut off. */
@media (min-width: 861px) {
  .company__grid { min-height: 100vh; min-height: 100svh; }
  .company__body {
    min-height: 100vh; min-height: 100svh;
    padding: clamp(64px, 9vh, 96px) clamp(32px, 4.5vw, 80px) clamp(24px, 4vh, 44px);
  }
  .company__meta { margin-bottom: clamp(16px, 3.2vh, 36px); }
  .company__category { margin-bottom: clamp(6px, 1.2vh, 12px); }
  .company__name { font-size: clamp(40px, min(5vw, 7.2vh), 76px); margin-bottom: clamp(8px, 1.6vh, 16px); }
  .company__headline { font-size: clamp(19px, min(2vw, 3vh), 28px); margin-bottom: clamp(10px, 2vh, 20px); max-width: 30ch; }
  .company__desc { font-size: clamp(14.5px, 1.9vh, 17px); line-height: 1.55; margin-bottom: clamp(16px, 3vh, 32px); }
  .company__section { margin-bottom: clamp(16px, 3vh, 32px); }
  .company__section .label { margin-bottom: clamp(6px, 1.2vh, 12px); }
  .company__caps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 0; }
  .company__caps li { padding: clamp(7px, 1.3vh, 11px) 0; font-size: clamp(14px, 1.8vh, 15.5px); border-bottom: 1px solid rgba(244, 241, 234, .28); }
  .company__caps li:nth-child(-n+2) { border-top: 1px solid rgba(244, 241, 234, .28); }
  .company__people { padding: clamp(12px, 2vh, 18px) 0; margin-bottom: clamp(16px, 3vh, 28px); }
  .company__photo, .company__monogram { width: clamp(48px, 7vh, 64px); height: clamp(48px, 7vh, 64px); }
  .company__ceo-name { font-size: 17px; }
  .company__team-num { font-size: clamp(36px, 5.5vh, 52px); }
  /* Use the full height: counter at top, story centred, people + actions anchored at the bottom */
  .company__logo { margin-top: auto; width: clamp(52px, 7.5vh, 68px); height: clamp(52px, 7.5vh, 68px); margin-bottom: clamp(12px, 2.2vh, 20px); }
  .company__people { margin-top: auto; }
  .company__section { margin-bottom: clamp(20px, 4vh, 40px); }
  .company__name { font-size: clamp(44px, min(5.4vw, 8.4vh), 92px); }
  .company__headline { font-size: clamp(20px, min(2.2vw, 3.4vh), 32px); }
  .company__desc { font-size: clamp(15px, 2.05vh, 18px); line-height: 1.6; }
  .company__caps li { padding: clamp(9px, 1.7vh, 14px) 0; font-size: clamp(14.5px, 1.9vh, 16px); }
  .company__footer .company__cta { padding: clamp(14px, 2.1vh, 18px) 24px; }
}

/* Common laptop heights (821–940px): keep text comfortable, trim only the larger gaps */
@media (min-width: 861px) and (min-height: 821px) and (max-height: 940px) {
  .company__body { padding-top: 68px; padding-bottom: 28px; }
  .company__meta { margin-bottom: 18px; }
  .company__logo { width: 52px; height: 52px; padding: 7px; margin-bottom: 12px; }
  .company__name { font-size: clamp(44px, 7.4vh, 68px); margin-bottom: 10px; }
  .company__headline { font-size: clamp(20px, 3vh, 27px); margin-bottom: 14px; }
  .company__desc { font-size: 15.5px; line-height: 1.55; margin-bottom: 18px; }
  .company__section { margin-bottom: 18px; }
  .company__section .label { margin-bottom: 8px; }
  .company__caps li { padding: 9px 0; font-size: 15px; }
  .company__people { padding: 12px 0; margin-bottom: 18px; }
  .company__photo, .company__monogram { width: 54px; height: 54px; }
  .company__team-num { font-size: 42px; }
  .company__footer .company__cta { padding: 14px 22px; }
}

/* Shorter laptop screens: same balanced layout, tighter rhythm so it still fits one screen */
@media (min-width: 861px) and (max-height: 820px) {
  .company__body { padding-top: 60px; padding-bottom: 24px; }
  .company__meta { margin-bottom: 14px; }
  .company__logo { width: 46px; height: 46px; padding: 6px; margin-bottom: 10px; }
  .company__name { font-size: clamp(38px, 7vh, 60px); margin-bottom: 8px; }
  .company__headline { font-size: clamp(18px, 2.8vh, 24px); margin-bottom: 10px; }
  .company__desc { font-size: 14.5px; line-height: 1.5; margin-bottom: 14px; }
  .company__section { margin-bottom: 14px; }
  .company__section .label { margin-bottom: 6px; }
  .company__caps li { padding: 7px 0; font-size: 14px; }
  .company__people { padding: 10px 0; margin-bottom: 14px; }
  .company__photo, .company__monogram { width: 48px; height: 48px; }
  .company__team-num { font-size: 36px; }
  .company__footer .company__cta { padding: 12px 20px; }
}

/* Image that flies from the card into the detail view */
.company-fly { position: fixed; z-index: 260; object-fit: cover; pointer-events: none; filter: grayscale(1) contrast(1.05); }
.company-fly.is-colour { filter: none; }

html.company-open, html.company-open body { overflow: hidden; }

@media (max-width: 860px) {
  .company__grid { grid-template-columns: 1fr; }
  .company__media { position: relative; height: 48vh; height: 48svh; }
  .company__body { padding: 40px 22px 48px; }
  .company__meta { margin-bottom: 32px; }
  .company__close { top: 12px; right: 12px; height: 44px; }
  .company__people { grid-template-columns: 1fr; }
  .company__team { justify-items: start; text-align: left; grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 12px; }
  .company__footer { flex-direction: column; align-items: stretch; }
  .company__footer .company__cta { justify-content: center; }
  .company__footer .company__nav { justify-content: space-between; }
}


/* ==========================================================================
   HEADER — floating (same logo and "Contact" text)
   No backing bar or divider. At the top: full logo + "Contact ↗" floating on the page.
   Once you scroll: minimised to two small round badges (logo mark, contact arrow)
   that stay readable over any content. Back at the top: full header again.
   ========================================================================== */
.header--float::before { display: none; }
.header--float .logo, .header--float .header__contact {
  transition: width .45s var(--ease), height .45s var(--ease), padding .45s var(--ease), gap .45s var(--ease),
              font-size .3s var(--ease), letter-spacing .3s var(--ease), background-color .4s var(--ease),
              color .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.header--float.is-mini .logo {
  font-size: 0; gap: 0; width: 48px; height: 48px; justify-content: center; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1px var(--stone);
}
.header--float.is-mini .logo svg { width: 24px; height: 24px; }
.header--float.is-mini .header__contact {
  font-size: 0; letter-spacing: 0; gap: 0; width: 48px; height: 48px; padding: 0; justify-content: center;
  border-radius: 50%; border-bottom: 0; background: var(--ink); color: var(--paper);
}
.header--float.is-mini .header__contact span[aria-hidden] { font-size: 17px; }
.header--float.is-mini .header__contact:hover span[aria-hidden] { transform: translate(2px, -2px); }
.header.is-dark.is-mini .logo { background: var(--ink); box-shadow: 0 0 0 1px #3A403A; }
.header.is-dark.is-mini .header__contact { background: var(--paper); color: var(--ink); }


/* ==========================================================================
   Motion — initial states apply only while GSAP is active (.motion on <html>)
   ========================================================================== */
.motion [data-reveal="words"] .w > span { transform: translateY(150%); }
.motion [data-reveal="fade"] { opacity: 0; transform: translateY(16px); }
.motion [data-reveal="clip"] { clip-path: inset(100% 0 0 0); }
.motion .founder__block { transform: scaleY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .system { grid-template-columns: minmax(0, 1.3fr) minmax(32px, .5fr) auto minmax(32px, .5fr) minmax(0, .9fr); }
  .vision__statement, .vision__side { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 4; }
}

@media (max-width: 860px) {
  .frame-index { display: none; }
  .intro { padding-top: 120px; }
  .intro__copy { grid-column: 1 / -1; }
  .founder { grid-column: 1 / -1; grid-row: 2; width: min(100%, 480px); justify-self: end; }
  .section-head__title { grid-column: 1 / -1; }
  .section-head__aside { grid-column: 1 / -1; justify-self: start; text-align: left; }
  /* Columns dissolve into one ordered list: 01 Turgo, 02 B2BData, 03 Pipey, 04 VoiceCab */
  .portfolio__grid { display: flex; flex-direction: column; align-items: stretch; gap: clamp(48px, 8vw, 72px); }
  .portfolio__col { display: contents; }
  .card--turgo { order: 1; } .card--b2bdata { order: 2; } .card--pipey { order: 3; } .card--voicecab { order: 4; }
  .card--b2bdata, .card--voicecab { width: 84%; align-self: flex-end; }
  .card--pipey { width: 84%; align-self: flex-start; }
  .eco__intro, .vision__title, .closing__title { grid-column: 1 / -1; }

  /* Diagram becomes a vertical flow */
  .system { grid-template-columns: 1fr; }
  .system__wires { display: none; }
  .wire { width: 1px; height: 56px; justify-self: center; background: var(--mute); }
  .wire--out { background: var(--sage); }
  .hub { justify-self: center; }
  .destinations { flex-direction: row; gap: 20px; }
  .destination { flex: 1; }

  .upcoming__label, .upcoming__item, .upcoming__item:first-of-type { grid-column: 1 / -1; }
  .upcoming__label { padding-top: 0; }
  .contact-page__copy, .form { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .header__inner { height: 68px; }
  .intro__foot > :nth-child(2) { display: none; }
  .card--b2bdata, .card--voicecab, .card--pipey { width: 100%; }
  .card__meta { column-gap: 12px; }
  .vision__media { aspect-ratio: 4 / 5; }
  .pillar { grid-template-columns: 1fr; row-gap: 4px; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
  .form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
