:root {
  --ink: #17201f;
  --ink-soft: #41504d;
  --paper: #f6f3ee;
  --paper-soft: #ebe6dd;
  --white: #ffffff;
  --line: #d7d0c3;
  --teal: #175f62;
  --teal-dark: #0d4144;
  --amber: #b7792f;
  --steel: #64706f;
  --navy: #1f2f38;
  --navy-deep: #111b22;
  --slate: #2f3e46;
  --mist: #eef2f1;
  --shadow: 0 18px 45px rgba(20, 28, 27, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(183, 121, 47, 0.7);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(246, 243, 238, 0.92);
  border-bottom: 1px solid rgba(23, 32, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 6px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.78rem 0.85rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(23, 95, 98, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

.nav-toggle-lines {
  display: grid;
  gap: 5px;
  width: 20px;
  margin: 0 auto;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 76svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 18, 0.94) 0%, rgba(11, 18, 18, 0.78) 36%, rgba(11, 18, 18, 0.28) 72%, rgba(11, 18, 18, 0.1) 100%),
    url("assets/frank-frost-hero-ai-desk-wide.png") center 88% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: max(1.25rem, calc((100vw - var(--max)) / 2));
  padding: 6rem 0 5.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b66d;
}

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

h2,
h3 {
  hyphens: auto;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: 4.2rem;
  line-height: 0.98;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.35rem;
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-role {
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1.05rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

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

.button.primary:hover {
  background: #9f6423;
}

.hero-actions .button {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-actions .button:hover {
  transform: translateY(-1px);
}

.button.hero-cv {
  color: var(--white);
  background: var(--teal);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.hero-cv:hover {
  background: var(--teal-dark);
  border-color: rgba(255, 255, 255, 0.38);
}

.button.hero-linkedin {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.button.hero-linkedin:hover {
  color: var(--white);
  background: rgba(23, 95, 98, 0.72);
  border-color: rgba(255, 255, 255, 0.4);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--teal);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.text-link::after {
  content: ">";
  margin-left: 0.45rem;
  color: var(--amber);
}

.text-note {
  color: var(--amber);
  cursor: default;
}

.text-note::after {
  content: "";
  margin-left: 0;
}

.text-link:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.text-note:hover {
  color: var(--amber);
  text-decoration: none;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.link-row .text-link {
  margin-top: 0;
  padding-top: 0;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -2.6rem auto 0;
  position: relative;
  z-index: 2;
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-item {
  min-height: 128px;
  padding: 1.35rem;
  background: var(--white);
}

.signal-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.signal-item span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.section {
  padding: 6rem max(1.25rem, calc((100vw - var(--max)) / 2));
}

.muted-section {
  background:
    linear-gradient(180deg, #edf1ef 0%, #e2e8e6 100%);
}

.media-section {
  background:
    linear-gradient(180deg, rgba(246, 243, 238, 0.35) 0%, rgba(255, 255, 255, 1) 34%, rgba(246, 243, 238, 0.55) 100%);
}

.awards-section {
  background:
    linear-gradient(180deg, #f7f8f6 0%, #e6ecea 100%);
}

#zertifikate {
  background:
    linear-gradient(180deg, #22323b 0%, #17232a 100%);
  color: var(--white);
}

#zertifikate .section-heading p,
#zertifikate .credential-list p {
  color: rgba(255, 255, 255, 0.72);
}

#zertifikate .credential-list article {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

#zertifikate .credential-list p {
  color: var(--ink-soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.section-heading.compact {
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--ink-soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.rich-text {
  max-width: 760px;
}

.rich-text p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.profile-aside {
  justify-self: end;
  width: min(100%, 360px);
  padding: 0.65rem;
  border: 1px solid rgba(23, 32, 31, 0.1);
  background: var(--white);
  box-shadow: var(--shadow);
}

.portrait-block {
  margin: 0;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
}

.portrait-block img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: 2.1rem;
  padding: 1.55rem 1.6rem;
  border: 1px solid rgba(31, 47, 56, 0.14);
  border-left: 4px solid var(--navy);
  background: linear-gradient(135deg, rgba(31, 47, 56, 0.09), rgba(23, 95, 98, 0.07), rgba(183, 121, 47, 0.06));
  box-shadow: 0 14px 30px rgba(17, 27, 34, 0.07);
}

.profile-band-column {
  min-width: 0;
}

.profile-band h3 {
  margin: 0 0 0.8rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.profile-band-tags h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
}

.profile-band .check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.5rem;
}

.profile-band .check-list li + li {
  margin-top: 0;
}

.check-list,
.timeline-content ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.check-list li + li,
.timeline-content li + li {
  margin-top: 0.55rem;
}

.tag-block {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.tag-block h4 {
  margin: 0 0 0.8rem;
  font-size: 0.85rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tags span {
  border: 1px solid rgba(23, 95, 98, 0.24);
  border-radius: 999px;
  padding: 0.38rem 0.58rem;
  color: var(--teal-dark);
  background: rgba(23, 95, 98, 0.08);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

.principles,
.impact-grid,
.competency-grid,
.case-grid,
.credential-list,
.document-grid,
.award-row,
.feature-media-grid,
.award-showcase {
  display: grid;
  gap: 1rem;
}

.principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles article,
.impact-card,
.card,
.case-card,
.document-card,
.credential-list article,
.award-row article,
.award-card {
  border: 1px solid rgba(23, 32, 31, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(17, 27, 34, 0.095);
}

.principles article,
.impact-card {
  padding: 1.3rem;
}

.principles article,
.impact-card {
  border-top: 4px solid var(--navy);
}

.principles article:nth-child(2),
.impact-card:nth-child(2) {
  border-top-color: var(--teal);
}

.principles article:nth-child(3),
.impact-card:nth-child(3) {
  border-top-color: var(--slate);
}

.principles article:nth-child(4),
.impact-card:nth-child(4) {
  border-top-color: var(--amber);
}

.principles p,
.impact-card p,
.card p,
.case-card dd,
.document-card p,
.credential-list p,
.award-row span,
.award-card p,
.feature-photo figcaption {
  color: var(--ink-soft);
}

#kompetenzen {
  background:
    linear-gradient(135deg, #1f2f38 0%, #17232a 55%, #111b22 100%);
  color: var(--white);
}

#kompetenzen .section-heading p,
#kompetenzen .card p,
#kompetenzen .impact-card p {
  color: rgba(255, 255, 255, 0.72);
}

#kompetenzen .impact-card,
#kompetenzen .card {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.965);
  color: var(--ink);
}

#kompetenzen .impact-card p,
#kompetenzen .card p {
  color: var(--ink-soft);
}

.feature-media-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: stretch;
}

.feature-photo {
  position: relative;
  min-height: 100%;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.feature-photo:not(.large) {
  align-self: start;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-photo:not(.large) img {
  display: block;
  height: auto;
  min-height: 0;
}

.feature-photo.large img {
  min-height: 520px;
}

.feature-photo figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 22, 22, 0.76);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  line-height: 1.45;
}

.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 2rem;
}

.impact-kicker {
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.impact-card h3 {
  min-height: 54px;
}

.section-subheading {
  margin: 0 0 1rem;
}

.section-subheading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.competency-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 218px;
  padding: 1.25rem;
  border-left: 4px solid rgba(31, 47, 56, 0.82);
}

.card:nth-child(3n + 2) {
  border-left-color: rgba(23, 95, 98, 0.75);
}

.card:nth-child(3n) {
  border-left-color: rgba(183, 121, 47, 0.68);
}

.card h3 {
  min-height: 54px;
}

.cv-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 244, 241, 0.72) 100%);
}

.cv-download {
  margin-top: 0.6rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  overflow: hidden;
  border: 1px solid rgba(31, 47, 56, 0.16);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(23, 32, 31, 0.055);
}

.timeline-item:nth-child(even) {
  border-left-color: var(--teal);
  background: rgba(248, 250, 249, 0.94);
}

.timeline-item summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 84px;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

.timeline-item summary::-webkit-details-marker {
  display: none;
}

.timeline-item summary:hover {
  background: rgba(23, 95, 98, 0.055);
}

.timeline-date {
  color: var(--teal);
  font-weight: 800;
}

.timeline-summary strong,
.timeline-summary span {
  display: block;
}

.timeline-summary strong {
  color: var(--ink);
}

.timeline-summary span {
  margin-top: 0.25rem;
  color: var(--steel);
  font-weight: 750;
}

.timeline-toggle {
  border: 1px solid rgba(23, 95, 98, 0.22);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  color: var(--teal-dark);
  background: rgba(23, 95, 98, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.timeline-item[open] .timeline-toggle {
  font-size: 0;
}

.timeline-item[open] .timeline-toggle::after {
  content: "Schliessen";
  font-size: 0.78rem;
}

.timeline-content {
  max-width: 780px;
  margin-left: 190px;
  padding: 0 1.15rem 1.2rem 1rem;
}

.timeline-content p {
  color: var(--ink-soft);
}

.timeline-content .meta {
  margin-bottom: 0.55rem;
  color: var(--steel);
  font-weight: 700;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  overflow: hidden;
  border-top: 4px solid rgba(31, 47, 56, 0.82);
}

.case-card:nth-child(2) {
  border-top-color: rgba(183, 121, 47, 0.5);
}

.case-card:nth-child(3) {
  border-top-color: rgba(86, 111, 117, 0.78);
}

.case-label {
  margin-bottom: 0.7rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card dl {
  display: grid;
  gap: 0.3rem;
  margin: 1rem 0 0;
}

.case-card dt {
  margin-top: 0.75rem;
  font-weight: 800;
}

.case-preview {
  margin: -1.35rem -1.35rem 1.1rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 32, 31, 0.08);
  background: #f9f8f5;
}

.case-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-card dd {
  margin: 0;
}

.document-library {
  margin-top: 2.5rem;
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 1.25rem;
  overflow: hidden;
  border-top: 4px solid rgba(31, 47, 56, 0.72);
}

.document-card:nth-child(2n) {
  border-top-color: rgba(23, 95, 98, 0.68);
}

.document-card:nth-child(3n) {
  border-top-color: rgba(183, 121, 47, 0.62);
}

.document-card > .text-link {
  margin-top: auto;
  padding-top: 1rem;
}

.document-preview {
  margin: -1.25rem -1.25rem 1rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 32, 31, 0.08);
  background: #f9f8f5;
}

.document-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.document-type {
  align-self: flex-start;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(183, 121, 47, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  color: var(--amber);
  background: rgba(183, 121, 47, 0.08);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.1;
}

.credential-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.credential-list article {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.credential-list .text-link {
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid rgba(31, 47, 56, 0.28);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  color: var(--navy-deep);
  background: rgba(31, 47, 56, 0.08);
}

.award-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.award-row article {
  padding: 1.15rem 1.25rem;
}

.award-row strong,
.award-row span {
  display: block;
}

.award-row strong {
  margin-bottom: 0.25rem;
}

.award-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.award-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.award-card-featured {
  order: 3;
}

.award-card:not(.co-card):not(.award-card-featured) {
  order: 2;
}

.award-card > div,
.award-card h3,
.award-card p,
.award-card .text-link {
  margin-inline: 1.25rem;
}

.award-card h3 {
  margin-top: 0.95rem;
}

.award-card p:last-child {
  margin-bottom: 1rem;
}

.award-card figure {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 0;
  background: var(--paper);
}

.award-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.award-card-featured figure {
  min-height: 190px;
}

.award-card-featured > div {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.award-card-featured h3,
.award-card-featured p {
  margin-inline: 0;
}

.award-logo {
  padding: 1.3rem;
}

.award-logo img {
  width: auto;
  max-width: 76%;
  height: 150px;
  object-fit: contain;
}

.award-logo.wide img {
  max-width: 82%;
  height: 120px;
}

.co-card {
  order: 1;
  display: flex;
  flex-direction: column;
  border-top: 4px solid rgba(31, 47, 56, 0.82);
}

.co-card h3,
.co-card p,
.co-card .text-link {
  margin-inline: 1.25rem;
}

.co-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  min-height: 190px;
  margin: 0;
  padding: 0.55rem;
  background: var(--paper);
}

.co-images img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  max-height: 178px;
  border-radius: 6px;
  object-fit: cover;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem max(1.25rem, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--teal-dark);
}

.contact-content {
  max-width: 760px;
}

.contact-content .eyebrow {
  color: #f0b66d;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.82);
}

.legal-dialog {
  width: min(920px, calc(100% - 2rem));
  max-height: min(82vh, 860px);
  padding: 0;
  border: 1px solid rgba(23, 32, 31, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-dialog::backdrop {
  background: rgba(23, 32, 31, 0.55);
  backdrop-filter: blur(4px);
}

.legal-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(23, 32, 31, 0.08);
  background: var(--white);
}

.legal-dialog h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-dialog .eyebrow {
  margin-bottom: 0.3rem;
}

.legal-close {
  flex: 0 0 auto;
  border: 1px solid rgba(23, 95, 98, 0.24);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  color: var(--teal-dark);
  background: rgba(23, 95, 98, 0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.legal-content {
  max-width: 760px;
  padding: 0 1.25rem 1.35rem;
}

.legal-content h3,
.legal-content h4,
.legal-content h5 {
  margin: 1.35rem 0 0.45rem;
  line-height: 1.25;
}

.legal-content h3 {
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.legal-content h4 {
  font-size: 0.98rem;
}

.legal-content h5 {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.legal-content p {
  margin-bottom: 0.85rem;
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 750;
}

.legal-emphasis {
  font-weight: 700;
}

.legal-source {
  margin-top: 1.2rem;
  font-weight: 750;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem max(1.25rem, calc((100vw - var(--max)) / 2));
  color: var(--ink-soft);
  background: var(--paper);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 750;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: var(--white);
  background: rgba(23, 95, 98, 0.94);
  box-shadow: 0 14px 34px rgba(16, 32, 33, 0.18);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  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:hover {
  background: var(--navy);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: 72px 1.25rem auto 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 1rem;
  }

  .signal-strip,
  .principles,
  .impact-grid,
  .competency-grid,
  .case-grid,
  .document-grid,
  .award-row,
  .feature-media-grid,
  .award-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .award-card-featured {
    grid-column: span 2;
  }

  .intro-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    justify-self: start;
  }

  .profile-band {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(11, 18, 18, 0.94) 0%, rgba(11, 18, 18, 0.72) 62%, rgba(11, 18, 18, 0.44) 100%),
      url("assets/frank-frost-hero-ai-desk-wide.png") center 86% / cover no-repeat;
  }

  .hero-content {
    width: min(100% - 2rem, 620px);
    padding: 4.8rem 0 4.2rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-role {
    font-size: 1.22rem;
  }

  .back-to-top {
    right: 0.9rem;
    bottom: 0.9rem;
    min-height: 40px;
    padding: 0.72rem 0.85rem;
    font-size: 0.84rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    margin-top: 0;
    box-shadow: none;
  }

  .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .profile-band {
    margin-top: 1.6rem;
    padding: 1.25rem 1.1rem;
  }

  .profile-band .check-list {
    grid-template-columns: 1fr;
  }

  .principles,
  .impact-grid,
  .competency-grid,
  .case-grid,
  .document-grid,
  .credential-list,
  .award-row,
  .feature-media-grid,
  .award-showcase {
    grid-template-columns: 1fr;
  }

  .feature-photo img,
  .feature-photo.large img {
    min-height: 310px;
  }

  .award-card-featured,
  .co-card {
    grid-column: auto;
  }

  .co-images {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: auto;
  }

  .card {
    min-height: auto;
  }

  .impact-card h3,
  .card h3 {
    min-height: 0;
  }

  .timeline-item {
    border-left-width: 3px;
  }

  .timeline-item summary {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: start;
  }

  .timeline-toggle {
    justify-self: start;
  }

  .timeline-content {
    margin-left: 0;
    padding: 0 1.15rem 1.15rem;
  }

  .portrait-block {
    max-width: 340px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

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