:root {
  color-scheme: light;
  --ink: #101417;
  --deep: #0e1317;
  --forest: #1f3029;
  --sage: #91a493;
  --stone: #efeee8;
  --paper: #f8f7f1;
  --line: rgba(16, 20, 23, 0.14);
  --muted: #69716b;
  --white: #ffffff;
  --claret: #73505a;
  --blue: #385d79;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", Inter, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px 48px;
  background: rgba(14, 19, 23, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.brand-mark img {
  display: block;
  width: 174px;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 140px 48px 72px;
  background-image: linear-gradient(90deg, rgba(14, 19, 23, 0.72), rgba(14, 19, 23, 0.22)), url("assets/sedecio-hero-v2.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 72%, rgba(145, 164, 147, 0.16), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(115, 80, 90, 0.13), transparent 24%),
    linear-gradient(112deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.62;
  pointer-events: none;
}

.dandelion-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.84;
  pointer-events: none;
}

.hero > *:not(.dandelion-field) {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(620px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.post-hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 8%, rgba(145, 164, 147, 0.2), transparent 24%),
    radial-gradient(circle at 78% 38%, rgba(115, 80, 90, 0.12), transparent 24%),
    radial-gradient(circle at 38% 82%, rgba(56, 93, 121, 0.12), transparent 28%),
    linear-gradient(180deg, #10161a 0%, var(--deep) 38%, var(--paper) 58%, var(--stone) 78%, var(--deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 86px 86px, 86px 86px;
  opacity: 0.46;
  pointer-events: none;
}

.scroll-dandelion-field {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  opacity: 0.98;
  pointer-events: none;
}

.post-hero-stage > .section {
  position: relative;
  z-index: 2;
}

.post-hero-stage > .section > .section-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 850;
}

h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 850;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 850;
}

.lead {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
}

.hero-actions,
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 850;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  color: var(--white);
}

.button.dark {
  background: var(--deep);
  color: var(--white);
  border-color: var(--deep);
}

.section {
  padding: 84px 48px;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.architecture-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1fr);
  gap: 64px;
  align-items: center;
}

.architecture-copy .text-stack {
  margin-top: 28px;
}

.text-stack p {
  color: inherit;
  font-size: 18px;
}

.text-stack p:last-child {
  margin-bottom: 0;
}

.band-dark {
  background: rgba(14, 19, 23, 0.7);
  color: var(--white);
  backdrop-filter: blur(1px);
}

.band-dark .text-stack {
  color: rgba(255, 255, 255, 0.78);
}

.band-light {
  background: rgba(248, 247, 241, 0.5);
  backdrop-filter: blur(2px);
}

.band-stone {
  background: rgba(239, 238, 232, 0.54);
  backdrop-filter: blur(2px);
}

.branch-map {
  position: relative;
  min-height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14), transparent 20%),
    radial-gradient(circle at 20% 18%, rgba(145, 164, 147, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 70px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.branch-map::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(145, 164, 147, 0.26);
  border-radius: 50%;
  opacity: 0.72;
}

.branch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.branch-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.root-node,
.branch-node {
  position: absolute;
  z-index: 1;
}

.root-node {
  left: 50%;
  top: 50%;
  width: 170px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.root-node::before {
  content: "";
  position: absolute;
  inset: -34px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    conic-gradient(from 4deg, rgba(255, 255, 255, 0.36) 0 1deg, transparent 1deg 14deg);
  opacity: 0.68;
  -webkit-mask-image: radial-gradient(circle, transparent 0 45%, #000 46% 100%);
  mask-image: radial-gradient(circle, transparent 0 45%, #000 46% 100%);
}

.root-node img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.root-node span,
.branch-node span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.branch-node {
  width: 184px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(14, 19, 23, 0.48);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.branch-node strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.2;
}

.node-pharma {
  left: 28px;
  top: 36px;
}

.node-digital {
  left: 74px;
  bottom: 50px;
}

.node-mobility {
  right: 28px;
  top: 60px;
}

.node-future {
  right: 42px;
  bottom: 54px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card,
.principle {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
}

.portfolio-card {
  border-top: 6px solid var(--forest);
}

.line-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card.accent-red {
  border-top-color: var(--claret);
}

.portfolio-card.accent-rose {
  border-top-color: #a86a7f;
}

.portfolio-card.accent-blue {
  border-top-color: var(--blue);
}

.line-logo,
.mini-brand-row,
.future-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  margin-bottom: 22px;
  border: 1px solid rgba(16, 20, 23, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
}

.line-logo img {
  display: block;
  max-width: 82%;
  max-height: 58px;
  object-fit: contain;
}

.pharma-logo img {
  max-height: 48px;
}

.ocean-logo {
  background: #050607;
}

.ocean-logo img {
  max-height: 70px;
}

.mini-brand-row {
  gap: 18px;
  padding: 14px;
}

.mini-brand-row img {
  display: block;
  max-width: 46%;
  max-height: 52px;
  object-fit: contain;
}

.future-mark::before {
  content: "";
  width: 58px;
  height: 58px;
  border: 1px solid rgba(31, 48, 41, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(31, 48, 41, 0.26) 2px, transparent 3px),
    conic-gradient(from 12deg, transparent 0 18deg, rgba(31, 48, 41, 0.44) 18deg 20deg, transparent 20deg 38deg);
}

.portfolio-kicker {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-card p,
.principle p {
  color: var(--muted);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle {
  min-height: 200px;
  background: rgba(255, 255, 255, 0.46);
}

.founder-band {
  background: linear-gradient(90deg, rgba(31, 48, 41, 0.72), rgba(14, 19, 23, 0.76));
  color: var(--white);
  backdrop-filter: blur(1px);
}

.founder-band .text-stack {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  background: rgba(248, 247, 241, 0.56);
  backdrop-filter: blur(2px);
}

.contact-inner {
  justify-content: space-between;
}

.contact-inner h2 {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 48px;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer img {
  width: 156px;
  height: auto;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 18px 22px;
  }

  nav {
    justify-content: flex-end;
    gap: 12px;
    font-size: 12px;
  }

  .brand-mark img {
    width: 138px;
  }

  .hero,
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 132px;
    background-position: 54% center;
  }

  .dandelion-field {
    opacity: 0.58;
  }

  .scroll-dandelion-field {
    opacity: 0.54;
  }

  .site-header,
  .band-dark,
  .band-light,
  .band-stone,
  .founder-band,
  .contact-section {
    backdrop-filter: none;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 19px;
  }

  .two-column,
  .architecture-layout,
  .portfolio-grid,
  .principle-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .branch-map {
    min-height: 560px;
  }

  .branch-map::before {
    inset: 92px 28px;
  }

  .root-node {
    width: 142px;
  }

  .branch-node {
    width: calc(50% - 30px);
    padding: 12px;
  }

  .branch-node strong {
    font-size: 13px;
  }

  .branch-node span {
    font-size: 11px;
  }

  .node-pharma {
    left: 18px;
    top: 24px;
  }

  .node-digital {
    left: 18px;
    bottom: 28px;
  }

  .node-mobility {
    right: 18px;
    top: 118px;
  }

  .node-future {
    right: 18px;
    bottom: 112px;
  }

  .portfolio-card,
  .principle {
    min-height: auto;
  }

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