:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --bg-strong: #dfe8f3;
  --surface: #ffffff;
  --surface-strong: #fbfdff;
  --text: #1b2c42;
  --muted: #5d6f84;
  --line: rgba(49, 93, 147, 0.12);
  --line-strong: rgba(49, 93, 147, 0.22);
  --accent: #315d93;
  --accent-strong: #1e436f;
  --accent-soft: #dbe6f4;
  --shadow: 0 24px 64px rgba(27, 44, 66, 0.08);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 42px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 6rem;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(49, 93, 147, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(219, 230, 244, 0.85), transparent 22rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 40%, #f6f9fc 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.97);
  border-bottom: 1px solid rgba(49, 93, 147, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: grid;
  gap: 0.15rem;
}

.brand__name,
.section-tag,
.footer-nav a,
.project-card__chip,
.eyebrow,
.timeline__year {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__name {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.05rem;
}

.brand__role {
  font-size: 0.8rem;
  color: var(--muted);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
}

.site-nav {
  position: absolute;
  inset: calc(100% + 0.5rem) 1rem auto 1rem;
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero {
  padding: 4.7rem 0 2.2rem;
}

.hero__grid,
.split-grid,
.audience-grid,
.contact-grid,
.footer-grid,
.projects-grid,
.three-up,
.about-gallery {
  display: grid;
  gap: 1.25rem;
}

.hero-card,
.panel,
.project-card,
.contact-card,
.legal-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.hero-card--lead {
  position: relative;
}

.portrait-frame {
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(49, 93, 147, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.portrait-frame--hero,
.portrait-frame--about {
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
}

.about-gallery__item {
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.eyebrow,
.section-tag,
.timeline__year {
  color: var(--accent);
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.02;
  font-weight: 600;
}

h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  max-width: 12ch;
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero--news h1 {
  max-width: 14ch;
  hyphens: none;
}

h2 {
  font-size: clamp(2rem, 7vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  line-height: 1.72;
  color: var(--muted);
}

.hero-copy {
  margin-top: 1.2rem;
  max-width: 36rem;
  font-size: 1.08rem;
}

.cta-row,
.button-row,
.inline-list,
.project-card__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #f8fbff;
  border-color: var(--accent);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
}

.info-chip,
.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  background: rgba(219, 230, 244, 0.9);
  border: 1px solid rgba(49, 93, 147, 0.12);
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.stack-list {
  display: grid;
  gap: 0.85rem;
}

.contact-form {
  display: grid;
  gap: 0;
}

.contact-form__grid {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 10rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(49, 93, 147, 0.45);
  box-shadow: 0 0 0 0.28rem rgba(49, 93, 147, 0.12);
}

.contact-form__hint {
  margin-top: 0.95rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-form__status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  font-size: 0.94rem;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status[data-state="success"] {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(38, 108, 72, 0.18);
  background: rgba(228, 242, 234, 0.96);
  color: #1e5a3d;
  line-height: 1.5;
}

.contact-form__status[data-state="error"] {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(138, 47, 47, 0.14);
  background: rgba(251, 239, 239, 0.96);
  color: #8a2f2f;
  line-height: 1.5;
}

.contact-form__status[data-state="success"]::before,
.contact-form__status[data-state="error"]::before {
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form__status[data-state="success"]::before {
  content: "✓";
  background: rgba(38, 108, 72, 0.12);
  color: #1e5a3d;
}

.contact-form__status[data-state="error"]::before {
  content: "!";
  background: rgba(138, 47, 47, 0.1);
  color: #8a2f2f;
}

.stack-list__item {
  display: grid;
  gap: 0.28rem;
  padding: 1rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(49, 93, 147, 0.08);
}

.stack-list__item strong {
  color: var(--text);
}

.stack-list__item span {
  color: var(--muted);
  line-height: 1.6;
}

.social-highlight {
  padding: 1.15rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(219, 230, 244, 0.72), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(49, 93, 147, 0.12);
}

.social-highlight--linkedin {
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(227, 236, 247, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 40px rgba(49, 93, 147, 0.08);
}

.social-highlight__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.social-highlight__handle {
  font-size: 0.82rem;
  color: var(--accent-strong);
  letter-spacing: 0.04em;
}

.mvz-highlight {
  padding: 1.15rem;
  border-radius: 24px;
  background: var(--bg-soft);
  border: 1px solid rgba(49, 93, 147, 0.12);
}

.role-chip--light {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f3f7fc;
}

.section {
  padding: 1rem 0 4rem;
}

.section--compact {
  padding-bottom: 2.2rem;
}

.section__header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 48rem;
}

.panel,
.project-card,
.contact-card,
.legal-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
}

.panel strong,
.project-card strong,
.contact-card strong,
.legal-card strong {
  color: var(--text);
}

.topic-panel {
  padding: 1.7rem;
}

.project-card__chip {
  display: inline-flex;
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  background: rgba(49, 93, 147, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
}

.project-card__services span {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(49, 93, 147, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
}

.question-block strong {
  color: var(--text);
}

.question-list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.question-list li::marker {
  color: var(--accent);
}

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

.timeline__item {
  position: relative;
  padding: 1.2rem 0 0 1.1rem;
  border-left: 1px solid var(--line-strong);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.44rem;
  top: 1.25rem;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.32rem rgba(49, 93, 147, 0.12);
}

.cta-banner {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(49, 93, 147, 0.98), rgba(27, 44, 66, 0.96));
  color: #f3f7fc;
  box-shadow: var(--shadow);
}

.cta-banner p,
.cta-banner .section-tag {
  color: rgba(243, 247, 252, 0.82);
}

.news-banner {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 240, 249, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.news-banner__date {
  display: grid;
  gap: 0.2rem;
  align-content: center;
  min-height: 7.5rem;
  padding: 1rem;
  border-radius: 22px;
  background: var(--accent);
  color: #f8fbff;
}

.news-banner__date span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(248, 251, 255, 0.82);
}

.news-banner__date strong {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.65rem;
  line-height: 1.05;
}

.news-banner__action {
  display: flex;
  justify-content: flex-start;
}

.news-layout {
  display: grid;
  gap: 1.25rem;
}

.event-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.event-facts div {
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(219, 230, 244, 0.55);
  border: 1px solid rgba(49, 93, 147, 0.1);
}

.event-facts dt {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0.35rem 0 0;
  color: var(--text);
  line-height: 1.5;
}

.contact-card a,
.footer-contact a,
.legal-card a {
  color: var(--accent-strong);
}

.legal-note {
  padding: 1rem 1.2rem;
  border-radius: 24px;
  background: rgba(219, 230, 244, 0.7);
  border: 1px solid rgba(49, 93, 147, 0.14);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-contact {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 759px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header__inner {
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .brand__name {
    font-size: 0.98rem;
  }

  .brand__role {
    font-size: 0.72rem;
    max-width: 13rem;
  }

  .site-nav {
    inset: calc(100% + 0.45rem) 0.625rem auto 0.625rem;
    padding: 0.85rem;
    border-radius: 22px;
  }

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

  .hero {
    padding: 3.5rem 0 1.4rem;
  }

  .hero-card,
  .panel,
  .project-card,
  .contact-card,
  .legal-card,
  .cta-banner {
    padding: 1.2rem;
    border-radius: 24px;
  }

  .portrait-frame,
  .about-gallery__item {
    border-radius: 22px;
  }

  .portrait-frame--hero,
  .portrait-frame--about {
    aspect-ratio: 5 / 6;
    margin-bottom: 1rem;
  }

  h1 {
    margin-top: 0.7rem;
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    max-width: none;
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
    line-height: 1.04;
  }

  h3 {
    font-size: 1.15rem;
  }

  p,
  .hero-copy,
  .stack-list__item span {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .cta-row,
  .button-row {
    display: grid;
    gap: 0.75rem;
  }

  .cta-row .button,
  .button-row .button {
    width: 100%;
  }

  .inline-list,
  .project-card__services {
    gap: 0.65rem;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .info-chip,
  .role-chip,
  .project-card__services span {
    font-size: 0.88rem;
  }

  .social-highlight,
  .mvz-highlight,
  .stack-list__item,
  .legal-note {
    padding: 1rem;
    border-radius: 20px;
  }

  .social-highlight__header {
    align-items: flex-start;
  }

  .social-highlight__handle {
    font-size: 0.76rem;
    word-break: break-word;
  }

  .section {
    padding: 0.55rem 0 2.6rem;
  }

  .section--compact {
    padding-bottom: 1.6rem;
  }

  .section__header {
    gap: 0.55rem;
    margin-bottom: 1rem;
  }

  .timeline__item {
    padding: 1rem 0 0 1rem;
  }

  .timeline__item::before {
    top: 1.05rem;
  }

  .footer-grid {
    gap: 1rem;
    padding-top: 1.2rem;
  }

  .footer-nav {
    gap: 0.55rem 0.8rem;
  }

  .news-banner__action .button {
    width: 100%;
  }
}

@media (min-width: 560px) and (max-width: 759px) {
  .about-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .site-nav {
    position: static;
    inset: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(21rem, 0.85fr);
    align-items: start;
  }

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

  .three-up,
  .projects-grid,
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr auto auto;
    align-items: start;
  }

  .cta-banner {
    grid-template-columns: 1.3fr auto;
    align-items: center;
  }

  .news-banner {
    grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr) auto;
  }

  .news-banner__action {
    justify-content: flex-end;
  }

  .news-card {
    max-width: 50rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
