/* Heloria Labs. Peach #FFCBA4 + burnt orange #CC4E00, sampled from the logo. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fdf8f2;
  --peach: #ffcba4;
  --ember: #cc4e00;       /* headings, marks, large text only: 4.1:1 on cream */
  --ember-btn: #c24a00;   /* button fill: 4.7:1 with --btn-text */
  --ember-deep: #a83f00;  /* small accent text on cream: 5.9:1 */
  --ink: #2f1d0c;
  --muted: #6b5137;
  --soil: #2a1606;
  --btn-text: #fff7ef;
  --hairline: rgba(47, 29, 12, 0.14);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#flower path { fill: currentColor; }

h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ember);
}

p { max-width: 56ch; }

a { color: inherit; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 44px);
  background: rgba(253, 248, 242, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--ember-deep);
}

.nav-mark {
  width: 24px;
  height: 24px;
  color: var(--ember);
  flex: none;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ember-deep);
  padding: 6px 2px;
}

.nav-links a:hover { color: var(--ember); text-decoration: underline; text-underline-offset: 5px; }

/* ---------- stem overlay ---------- */

#main { position: relative; }

#stem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#stem .stem-path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.6;
}

#stem .petal-outer { fill: var(--ember); opacity: 0.92; }
#stem .petal-inner { fill: var(--ember-deep); opacity: 0.95; }
#stem .leaf { fill: var(--ember); opacity: 0.55; }
#stem .thorn { fill: var(--ember-deep); opacity: 0.8; }

@media (max-width: 767px) {
  #stem .stem-path { stroke-width: 3.5; }
}

.stem-node {
  position: absolute;
  width: 1px;
  height: 1px;
}

.section, .hero { position: relative; }
.container, .hero-inner { position: relative; z-index: 3; }

/* per-section stem waypoints */
#what-we-do .stem-node { left: 6%; top: 42%; }
#krios .stem-node { right: 9%; top: 50%; }
#company .stem-node { left: 7%; top: 45%; }
#contact .stem-node { left: 50%; top: 15%; }

@media (max-width: 767px) {
  #what-we-do .stem-node,
  #company .stem-node { left: 18px; }
  #krios .stem-node { right: auto; left: 18px; }
  #contact .stem-node { left: 50%; }
}

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

.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vh, 56px) clamp(20px, 5vw, 48px) clamp(56px, 9vh, 120px);
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  margin-bottom: 24px;
}

.hero-copy p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-flower {
  width: clamp(180px, 26vw, 330px);
  height: clamp(180px, 26vw, 330px);
  color: var(--ember);
}

#stem-start {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 1px;
  height: 1px;
}

/* shape system: sharp edges everywhere, no card containers */
.btn {
  display: inline-block;
  background: var(--ember-btn);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 15px 30px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}

.btn:hover { background: var(--ember-deep); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

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

.section {
  padding: clamp(96px, 14vh, 170px) clamp(20px, 5vw, 48px);
  scroll-margin-top: var(--nav-h);
}

.container { max-width: 1200px; margin: 0 auto; }
.container.narrow { max-width: 720px; }
.container.center { text-align: center; }

h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 20px; }

/* what we do: lead left, stages right */

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.split-lead { padding-left: clamp(0px, 4vw, 56px); }
.split-lead p { color: var(--muted); font-size: 1.1rem; }

.stages { list-style: none; }

.stages li { padding: 28px 0; }
.stages li + li { border-top: 1px solid var(--hairline); }

.stages h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stages p { color: var(--muted); }

/* krios band */

.band {
  background: var(--peach);
}

.band-inner { max-width: 880px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}

.band-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.band-row h2 { margin-bottom: 0; }

.k-mark {
  width: 76px;
  height: 76px;
  flex: none;
  /* white source PNG recoloured to ink so it sits directly on the peach band */
  filter: brightness(0) opacity(0.92);
}

.band-copy {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink);
  margin-bottom: 30px;
}

.arrow-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ember-deep);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.band .arrow-link { color: var(--ink); }
.arrow-link:hover { color: var(--ember); }
.band .arrow-link:hover { color: var(--ember-deep); }
.arrow-link.small { font-size: 0.95rem; border-bottom-width: 1.5px; }

/* company */

#company p { color: var(--muted); font-size: 1.1rem; }

.person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}

.person-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.person-mark svg { width: 44px; height: 44px; color: var(--ember); }

.person-meta { display: flex; flex-direction: column; gap: 2px; }
.person-meta strong { font-size: 1.15rem; font-weight: 700; }
.person-meta > span { color: var(--muted); font-size: 0.95rem; }
.person-meta .arrow-link { margin-top: 6px; align-self: flex-start; }

/* contact */

.contact { padding-top: clamp(150px, 24vh, 260px); }

.contact-mail {
  display: inline-block;
  font-size: clamp(1.5rem, 4.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s;
}

.contact-mail:hover { border-bottom-color: var(--ember); }

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

.footer {
  background: var(--soil);
  color: var(--peach);
  padding: clamp(48px, 7vh, 80px) clamp(20px, 5vw, 48px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}

.footer-brand .nav-mark { color: var(--peach); }

.footer-links { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 32px); }

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--peach);
}

.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.footer-note {
  width: 100%;
  font-size: 13px;
  color: rgba(255, 203, 164, 0.65);
  margin-top: 8px;
}

/* ---------- reveal + motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; }
}

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

/* ---------- mobile ---------- */

@media (max-width: 767px) {
  .hero { padding-bottom: 64px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { order: -1; justify-content: flex-start; }
  .hero-flower { width: 120px; height: 120px; }
  /* keep the vine on the left margin, out of the text column */
  #stem-start { left: 56px; bottom: 0; }

  .nav-links a:not([href="#contact"]) { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-lead { padding-left: 0; }

  .section { padding-left: 28px; padding-right: 24px; }

  .band-row { flex-direction: row; gap: 16px; }
  .k-mark { width: 56px; height: 56px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
