/*
  Christopher Zenzel
  christopher@cdz.one
  Copyright 2026 Christopher Zenzel
  Updated: 2026-05-30
*/
/*
  Design tokens bridge to theme.json presets so Site Editor > Styles (Global
  Styles) edits flow through. Literal values are fallbacks if a preset is unset.
  Background-art tokens are theme-owned and set by the plugin's dynamic CSS
  (falls back to the bundled brand assets here).
*/
:root {
  --bg: var(--wp--preset--color--bg, #f4efe9);
  --bg-alt: var(--wp--preset--color--bg-alt, #e6ddd3);
  --surface: var(--wp--preset--color--surface, #fffaf7);
  --surface-strong: var(--wp--preset--color--primary, #10233d);
  --surface-muted: rgba(255, 250, 241, 0.08);
  --text: var(--wp--preset--color--text, #182433);
  --muted: var(--wp--preset--color--muted, #5f6875);
  --accent: var(--wp--preset--color--accent, #8f4f68);
  --accent-2: var(--wp--preset--color--accent-2, #1f6f76);
  --border: var(--wp--custom--border, rgba(24, 36, 51, 0.12));
  --shadow: var(--wp--custom--shadow, 0 24px 60px rgba(13, 34, 63, 0.14));
  --radius-xl: var(--wp--custom--radius--xl, 32px);
  --radius-lg: var(--wp--custom--radius--lg, 24px);
  --radius-md: var(--wp--custom--radius--md, 18px);
  --container: var(--wp--custom--container, 1180px);
  --header-height: 84px;
  --hero-art: url("../images/brand/hero-background.png");
  --about-art: url("../images/brand/dianthus-hero-rev03.jpg");
  --teal-art: url("../images/brand/dianthus-teal-gradient.jpg");
  --purple-art: url("../images/brand/dianthus-purple-gradient.jpg");
  --step-repeat-art: url("../images/brand/dianthus-step-repeat.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(143, 79, 104, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(31, 111, 118, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
  font-family: var(--wp--preset--font-family--base, "Ubuntu Sans", "Segoe UI", system-ui, sans-serif);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface-strong);
  color: #fff;
  z-index: 1000;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 242, 0.82);
  border-bottom: 1px solid rgba(24, 36, 51, 0.08);
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 45;
  display: block;
  background: rgba(7, 17, 29, 0.46);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark,
.service-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--surface-strong), #204d6d);
  color: #fff;
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand-mark-logo {
  width: 154px;
  height: 54px;
  padding: 0.35rem 0.55rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transform-origin: center;
  transition:
    opacity 480ms ease-in-out,
    transform 480ms ease-in-out,
    visibility 480ms step-end;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-tag {
  font-size: 0.72rem;
  line-height: 1.15;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--surface-strong);
  transition: transform 180ms ease, opacity 180ms ease;
}

.section-rail {
  position: fixed;
  right: 1.35rem;
  top: 50%;
  z-index: 40;
  display: grid;
  gap: 0.65rem;
  transform: translateY(-50%);
}

.section-rail a {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(13, 34, 63, 0.35);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 5px transparent;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.section-rail a.is-active {
  background: var(--surface-strong);
  box-shadow: 0 0 0 5px rgba(13, 34, 63, 0.12);
  transform: scale(1.15);
}

.section {
  padding: 6rem 0;
  scroll-margin-top: 108px;
}

.section--art {
  position: relative;
  overflow: clip;
}

.section--art-teal {
  background-color: #0f4f61;
  background-image:
    linear-gradient(180deg, rgba(11, 56, 69, 0.36), rgba(10, 49, 63, 0.46)),
    var(--about-art);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
}

.section--art-purple {
  background-color: #5b2f49;
  background-image:
    linear-gradient(180deg, rgba(56, 26, 44, 0.3), rgba(72, 33, 56, 0.42)),
    var(--purple-art);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
}

.hero {
  position: relative;
  min-height: clamp(560px, calc(100vh - 108px), 780px);
  min-height: clamp(560px, calc(100svh - 108px), 780px);
  padding: 3rem 0;
  overflow: clip;
  isolation: isolate;
  color: #fff;
  background: #07111d;
  scroll-margin-top: 108px;
}

#top {
  scroll-margin-top: 108px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 650ms ease, transform 650ms ease;
  z-index: 0;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.34) 0%, rgba(7, 17, 29, 0.48) 100%),
    linear-gradient(105deg, rgba(7, 17, 29, 0.76) 0%, rgba(7, 17, 29, 0.28) 54%, rgba(7, 17, 29, 0.52) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(480px, calc(100vh - 220px), 640px);
  min-height: clamp(480px, calc(100svh - 220px), 640px);
}

.hero-copy {
  max-width: 760px;
}

.hero-copy-minimal {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  justify-items: center;
  text-align: center;
}

.hero-brand-frame {
  width: fit-content;
  max-width: min(100%, 820px);
  padding: 1rem 1.25rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(250, 244, 233, 0.92), rgba(240, 230, 215, 0.82));
  border: 1px solid rgba(255, 247, 236, 0.72);
  box-shadow: 0 24px 60px rgba(7, 17, 29, 0.18);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

.hero-copy-minimal .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.hero-brand-image {
  width: min(100%, 780px);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 32px rgba(7, 17, 29, 0.12));
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
}

.about .eyebrow,
.services .eyebrow,
.team .eyebrow,
.insights .eyebrow,
.news .eyebrow,
.contact .eyebrow,
.section-heading .eyebrow {
  color: var(--accent);
}

.about .section-heading .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.about .section-heading h2 {
  color: #fff;
  text-shadow: 0 10px 24px rgba(7, 17, 29, 0.22);
}

.services .section-heading .eyebrow {
  color: rgba(255, 245, 250, 0.82);
}

.services .section-heading h2,
.services .section-subtitle-closure {
  color: #fff;
  text-shadow: 0 10px 24px rgba(34, 12, 27, 0.24);
}

.services .section-subtitle-closure {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.hero h1,
.section-heading h2,
.contact-intro h2 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(1rem, 1.65vw, 1.38rem);
  max-width: 40ch;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.96);
  text-wrap: balance;
}

.lead {
  max-width: 60ch;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
}

.lead-support {
  margin-top: 0.85rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero-contact-button {
  width: fit-content;
  margin-top: 0.25rem;
  box-shadow: 0 18px 34px rgba(16, 35, 61, 0.18);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.slider-btn:hover,
.nav-toggle:hover,
.back-to-top:hover,
.site-nav a:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #f8f3ea, #eadcc7);
  color: #102035;
}

.button i,
.contact-links i {
  font-size: 0.95em;
  line-height: 1;
}

.button span,
.contact-links span {
  line-height: 1;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.section-heading h2,
.contact-intro h2 {
  font-family: var(--wp--preset--font-family--heading, "Ubuntu Sans", "Segoe UI", system-ui, sans-serif);
}

.founder-hero {
  position: relative;
  overflow: clip;
  padding: 4rem 0 5rem;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(143, 79, 104, 0.25), transparent 26%),
    radial-gradient(circle at 80% 14%, rgba(31, 111, 118, 0.24), transparent 24%),
    linear-gradient(135deg, #0a1728 0%, #10233d 44%, #173453 100%);
}

.founder-hero::before,
.founder-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.28;
  pointer-events: none;
}

.founder-hero::before {
  inset: auto auto -180px -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(143, 79, 104, 0.48) 0%, transparent 70%);
}

.founder-hero::after {
  inset: 2rem -120px auto auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(31, 111, 118, 0.42) 0%, transparent 70%);
}

.founder-hero .hero-inner {
  align-items: stretch;
}

.founder-hero .hero-copy {
  display: grid;
  align-content: start;
}

.founder-hero .lead,
.founder-hero .eyebrow {
  position: relative;
  z-index: 1;
}

.founder-hero .hero-actions {
  margin-top: 1.9rem;
}

.founder-hero-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.founder-portrait-card {
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.founder-portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(135deg, #d7e5ea, #9db0bc);
}

.founder-portrait-copy {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
}

.founder-portrait-copy h2,
.founder-portrait-copy p {
  margin: 0;
}

.founder-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.founder-metric {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.founder-metric span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.9rem;
  color: #fff;
}

.founder-metric p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.founder-section .content-card,
.founder-section .service-card {
  background: rgba(255, 255, 255, 0.88);
}

.timeline-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(16, 35, 61, 0.14);
}

.timeline-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline-label {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.timeline-item h3,
.timeline-item h4 {
  margin: 0 0 0.35rem;
  line-height: 1.18;
  color: var(--surface-strong);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.profile-grid,
.cv-grid {
  display: grid;
  gap: 1rem;
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
}

.resume-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.resume-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
}

.resume-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.founder-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.founder-contact-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.slider-btn {
  min-width: 88px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.split-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.section-heading {
  max-width: 24rem;
}

.section-heading.center {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.team .section-heading.center {
  max-width: 620px;
}

.team .section-heading.center h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.26;
}

.section-heading h2,
.contact-intro h2 {
  color: var(--surface-strong);
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.services-title {
  font-size: clamp(1.7rem, 3vw, 2.45rem) !important;
}

.section-subtitle {
  margin: 1rem auto 0;
  max-width: 56ch;
  color: var(--muted);
}

.section-subtitle-closure {
  margin-top: 2.35rem;
  padding: 1rem 1.25rem 0;
  max-width: 52ch;
  border-top: 1px solid rgba(16, 35, 61, 0.14);
  color: var(--surface-strong);
  font-size: clamp(1.14rem, 1.75vw, 1.4rem);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

.content-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.content-card p:first-child {
  margin-top: 0;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.services {
  position: relative;
}

.service-grid,
.news-grid {
  display: grid;
  gap: 1rem;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto;
}

.service-card,
.team-card,
.news-card,
.contact-form {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 1.15rem 1.15rem 1.2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.95rem;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--accent), #d17d53);
}

.service-icon i {
  font-size: 1.05rem;
}

.service-card h3,
.team-copy h3,
.insight-copy h3,
.news-copy h3 {
  margin: 0 0 0.65rem;
  line-height: 1.15;
  color: var(--surface-strong);
}

.service-card p,
.team-copy p,
.insight-copy p,
.news-copy p,
.contact-intro p,
.content-card p {
  color: var(--muted);
  line-height: 170%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.team-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #d7e5ea, #9db0bc);
}

.team-card.bio-card img {
  min-height: 240px;
}

.portrait-frame {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 1;
  pointer-events: none;
}

.portrait-frame::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.62) 26%,
    rgba(255, 255, 255, 0.28) 54%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

.portrait-frame::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.62) 26%,
    rgba(255, 255, 255, 0.28) 54%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

.team-card.bio-card .portrait-image {
  width: 100%;
  max-height: 100%;
  padding: 1rem;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.team-copy {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.2rem 1.25rem 1.35rem;
}

.team-copy .eyebrow {
  color: var(--accent-2);
  margin: 0;
}

.team-copy h3,
.team-copy p {
  margin: 0;
}

.team-actions {
  margin-top: auto;
  padding-top: 0.45rem;
}

.team-copy ul {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.team-copy li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
}

.team-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.insights {
  background: linear-gradient(180deg, rgba(13, 34, 63, 0.03), rgba(13, 34, 63, 0.01));
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.insight-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.insight-card:hover,
.news-card:hover,
.service-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(13, 34, 63, 0.16);
}

.insight-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.insight-copy {
  padding: 1.2rem 1.25rem 1.35rem;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.news-copy {
  display: grid;
  gap: 0.65rem;
  padding: 1.2rem 1.25rem 1.35rem;
}

.news-copy time {
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-copy a {
  width: fit-content;
  color: var(--surface-strong);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact {
  padding-bottom: 7rem;
}

.contact--patterned {
  position: relative;
  overflow: clip;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(244, 239, 233, 0.86), rgba(244, 239, 233, 0.94)),
    var(--step-repeat-art);
  background-position: center, center top;
  background-repeat: no-repeat, repeat;
  background-size: cover, 720px auto;
}

.contact-layout {
  align-items: stretch;
}

.contact-intro {
  padding: 0.65rem 0;
  max-width: 34rem;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}

.contact-intro p {
  font-size: 1rem;
  line-height: 1.75;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 34, 63, 0.14);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.contact-links a:hover {
  border-color: rgba(13, 34, 63, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.contact-form {
  position: relative;
  padding: 1.45rem;
}

.contact-email {
  word-break: break-word;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-form span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-strong);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(24, 36, 51, 0.15);
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.98rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(30, 107, 109, 0.18);
  border-color: rgba(30, 107, 109, 0.45);
}

.contact-form [aria-invalid="true"],
.contact-form .is-invalid {
  border-color: rgba(170, 61, 61, 0.6);
  box-shadow: 0 0 0 3px rgba(170, 61, 61, 0.08);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.45rem;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.founder-version-label {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-comparison {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(16, 35, 61, 0.16);
}

.founder-comparison-heading {
  margin-bottom: 1.75rem;
}

.founder-legacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.founder-legacy-card {
  overflow: hidden;
}

.founder-legacy-card-profile {
  grid-template-rows: auto 1fr;
}

.founder-legacy-portrait {
  min-height: 280px;
}

.founder-legacy-portrait .portrait-image {
  width: 100%;
  height: 100%;
  max-height: 360px;
  padding: 1rem;
  object-fit: contain;
  object-position: center center;
  background: #fff;
}

.founder-legacy-copy {
  gap: 0.9rem;
}

.founder-legacy-copy ul {
  margin: 0.2rem 0 0;
}

.founder-legacy-note {
  padding-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--surface-strong);
}

.form-status.is-success {
  color: #1f6b42;
}

.form-status.is-error {
  color: #a33d3d;
}

.cv-modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 244, 238, 0.97));
  box-shadow: 0 30px 90px rgba(16, 35, 61, 0.26);
}

.cv-modal-content .modal-header,
.cv-modal-content .modal-footer {
  border-color: rgba(24, 36, 51, 0.08);
}

.cv-modal-content .modal-title {
  font-family: var(--wp--preset--font-family--heading, "Ubuntu Sans", "Segoe UI", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.cv-modal-content .modal-body {
  padding: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.cv-modal-grid {
  display: grid;
  gap: 1rem;
}

.cv-modal-grid .content-card {
  background: rgba(255, 255, 255, 0.92);
}

.cv-modal-summary {
  font-size: 1.05rem;
}

.cv-modal-content .modal-footer .button-secondary {
  color: var(--surface-strong);
  border-color: rgba(16, 35, 61, 0.18);
  background: rgba(16, 35, 61, 0.04);
}

.cv-modal-content .modal-footer .button-secondary:hover {
  background: rgba(16, 35, 61, 0.08);
}

.cv-modal-content .modal-footer .button-primary {
  color: #102035;
}

.pdf-frame {
  display: block;
  width: 100%;
  height: min(76vh, 820px);
  min-height: 560px;
  border: 0;
  background: #2b2b2b;
}

.modal-footer .button {
  min-height: 48px;
}

.site-footer {
  padding: 1.8rem 0 2.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer--patterned {
  background-color: #0f4f61;
  background-image:
    linear-gradient(180deg, rgba(11, 56, 69, 0.46), rgba(10, 49, 63, 0.6)),
    var(--about-art);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
}

.footer-inner p {
  color: inherit;
}

.hero h1,
.section-heading h2,
.contact-intro h2,
.team-copy h3,
.service-card h3,
.insight-copy h3,
.news-copy h3,
.timeline-item h3,
.timeline-item h4 {
  line-height: 2.15 !important;
}

.section-subtitle,
.section-subtitle-closure,
.service-card p,
.team-copy p,
.team-copy li,
.insight-copy p,
.news-copy p,
.contact-intro p,
.content-card p,
.timeline-item p,
.founder-legacy-note,
.footer-inner p {
  line-height: 2.3 !important;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top i {
  font-size: 1rem;
}

@media (max-width: 1120px) {
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .service-grid,
  .news-grid,
  .insight-grid,
  .profile-grid,
  .cv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {
  .section {
    padding: 4.5rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0.75rem;
    left: 0.75rem;
    display: grid;
    gap: 0;
    padding: 0.8rem;
    border-radius: 24px;
    border: 1px solid rgba(24, 36, 51, 0.08);
    background: rgba(255, 250, 241, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    max-height: calc(100dvh - var(--header-height) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 60;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: 16px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2.75rem;
  }

  .hero h1 {
    max-width: none;
  }

  .founder-legacy-grid {
    grid-template-columns: 1fr;
  }

  .field-row,
  .service-grid,
  .news-grid,
  .insight-grid,
  .team-grid,
  .profile-grid,
  .cv-grid,
  .founder-metrics {
    grid-template-columns: 1fr;
  }

  .section-rail {
    display: none;
  }

  .container {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .content-card,
  .service-card,
  .news-copy,
  .team-copy,
  .contact-form {
    padding-inline: 1.1rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1rem));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-tag {
    display: none;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .section,
  .hero,
  #top {
    scroll-margin-top: 84px;
  }

  .hero h1 {
    font-size: clamp(1.1rem, 4.8vw, 1.35rem);
    line-height: 1.5;
  }

  .hero-brand-image {
    width: min(100%, 520px);
  }

  .hero-brand-frame {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 24px;
  }

  .contact--patterned,
  .site-footer--patterned {
    background-size: cover, 560px auto;
  }

  .service-card,
  .content-card,
  .contact-form {
    border-radius: 22px;
  }

  .contact-form {
    padding: 1rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .button,
  .slider-btn,
  .contact-links a {
    width: 100%;
  }

  .hero-contact-button {
    width: 100%;
  }

  .hero-actions,
  .contact-links,
  .form-footer {
    justify-content: stretch;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    min-width: 56px;
    min-height: 56px;
  }
}
