:root {
  --navy: #17304f;
  --navy-deep: #0c1d31;
  --paper: #fffdf7;
  --cream: #f6ebbf;
  --gold: #efd87a;
  --gold-deep: #c8a94a;
  --sky: #8cd6fb;
  --sky-deep: #4eaee6;
  --ink: #171717;
  --muted: #4f6070;
  --line: rgba(23, 48, 79, 0.12);
  --line-strong: rgba(23, 48, 79, 0.2);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 20px 50px rgba(12, 29, 49, 0.08);
  --shadow-card: 0 26px 70px rgba(12, 29, 49, 0.12);
  --max-width: 1200px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top, rgba(239, 216, 122, 0.12), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(78, 174, 230, 0.1), transparent 24%),
    linear-gradient(180deg, #fffdf7 0%, #f9f4e4 58%, #f4efe0 100%);
}

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

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

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

.site-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(12, 29, 49, 0.04);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-row {
  min-height: 92px;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
}

.brand-logo {
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.brand-stripe {
  grid-column: 2;
  display: block;
  width: min(360px, 100%);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--navy) 0 33.333%,
    rgba(200, 169, 74, 0.94) 33.333% 66.666%,
    rgba(78, 174, 230, 0.92) 66.666% 100%
  );
  box-shadow: 0 1px 0 rgba(8, 23, 43, 0.08);
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--sky-deep);
}

.hero-band {
  padding: 28px 0 34px;
}

.hero-civic-bar {
  height: 22px;
  margin: 0 0 26px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--navy) 0 33.333%,
    rgba(200, 169, 74, 0.94) 33.333% 66.666%,
    rgba(78, 174, 230, 0.9) 66.666% 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}

.hero-panel,
.hero-mark,
.overview-grid article,
.pillar,
.work-feature,
.work-item,
.philosophy-quote,
.philosophy-notes article,
.contact-layout {
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.hero-panel {
  position: relative;
  padding: 54px 50px 48px;
  border-radius: 22px;
  min-height: 660px;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 252, 243, 0.74)),
    radial-gradient(circle at top left, rgba(78, 174, 230, 0.06), transparent 30%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.46),
    var(--shadow-card);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--navy) 0 33.333%,
    rgba(200, 169, 74, 0.94) 33.333% 66.666%,
    rgba(78, 174, 230, 0.92) 66.666% 100%
  );
}

.kicker,
.mini-kicker {
  margin: 0 0 14px;
  color: var(--sky-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mini-kicker {
  color: var(--gold-deep);
}

.hero-panel h1,
.section-head h2,
.section-banner h2,
.work-intro h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 6vw, 5.15rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-panel h1 span {
  display: block;
  color: var(--gold-deep);
}

.hero-summary,
.hero-detail,
.hero-caption p,
.section-body p,
.pillar p,
.work-intro p,
.work-feature p,
.work-item p,
.philosophy-notes p,
.contact-copy p,
.footer-row p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero-summary {
  max-width: 42rem;
  margin: 26px 0 0;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-detail {
  max-width: 34rem;
  margin: 16px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: white;
  background: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: 0 14px 30px rgba(23, 48, 79, 0.18);
}

.button-secondary {
  color: var(--navy);
  background: rgba(78, 174, 230, 0.12);
  border: 1px solid rgba(78, 174, 230, 0.28);
}

.hero-mark {
  display: grid;
  grid-template-rows: 1fr 18px auto;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 42px;
  background:
    radial-gradient(circle at center, rgba(200, 169, 74, 0.18), transparent 42%),
    radial-gradient(circle at 24% 18%, rgba(78, 174, 230, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 214, 0.94));
}

.panel-stripe {
  height: 18px;
  background: linear-gradient(
    90deg,
    var(--navy) 0 33.333%,
    rgba(200, 169, 74, 0.94) 33.333% 66.666%,
    rgba(78, 174, 230, 0.9) 66.666% 100%
  );
}

.mark-rings {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 46%, rgba(31, 176, 255, 0.18) 46% 47%, transparent 47% 100%),
    radial-gradient(circle, transparent 0 64%, rgba(224, 180, 31, 0.18) 64% 65%, transparent 65% 100%);
  transform-origin: center;
  animation: ring-drift 18s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: min(100%, 360px);
  filter: drop-shadow(0 18px 34px rgba(12, 29, 49, 0.14));
  animation: logo-drift 16s ease-in-out infinite;
}

.hero-caption {
  padding: 24px 26px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-caption .kicker {
  color: var(--sky-deep);
}

.overview-ribbon {
  padding: 0 0 20px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.overview-grid article {
  padding: 26px 26px;
  border-radius: 12px;
  border-top: 3px solid rgba(78, 174, 230, 0.5);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.overview-grid h2,
.pillar h3,
.work-feature h3,
.work-item h3,
.philosophy-notes h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.26rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.section {
  padding: 32px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.profile-card {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    var(--shadow-soft);
}

.profile-card h2,
.page-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.inline-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.inline-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.inline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sky-deep);
  transform: translateY(-50%);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 26px;
  align-items: start;
}

.section-head h2,
.section-banner h2,
.work-intro h2,
.contact-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.section-body {
  padding-top: 8px;
}

.section-body p {
  margin: 0;
  max-width: 42rem;
}

.section-body p + p {
  margin-top: 16px;
}

.focus-section .container,
.work-section .container,
.philosophy-section .container {
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.section-banner {
  max-width: 52rem;
  margin-bottom: 28px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar {
  padding: 26px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    var(--shadow-soft);
}

.pillar-index {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.work-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 30px;
  align-items: start;
}

.work-intro {
  position: sticky;
  top: 110px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--navy);
  font-weight: 700;
}

.work-stack {
  display: grid;
  gap: 18px;
}

.work-feature,
.work-item {
  padding: 28px;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    var(--shadow-soft);
}

.work-feature {
  background:
    radial-gradient(circle at top right, rgba(200, 169, 74, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.72);
  border-top: 3px solid rgba(78, 174, 230, 0.5);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.work-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(78, 174, 230, 0.12);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.philosophy-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.philosophy-quote,
.philosophy-notes article {
  padding: 24px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.philosophy-quote blockquote {
  margin: 0;
  color: var(--navy);
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.philosophy-notes {
  display: grid;
  gap: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 12px;
  border-top: 3px solid rgba(78, 174, 230, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer {
  padding: 10px 0 34px;
}

.footer-row {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.inner-page {
  padding-top: 20px;
}

.page-hero {
  padding: 30px 0 14px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.page-hero-copy,
.page-hero-side,
.page-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

.page-hero-copy,
.page-hero-side {
  padding: 26px;
}

.page-hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2.45rem, 5vw, 3.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page-hero-copy p,
.page-hero-side p,
.prose p,
.page-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.page-section {
  padding: 18px 0 24px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 22px;
  align-items: start;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 16px;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-card {
  padding: 22px;
}

.stacked-work {
  display: grid;
  gap: 16px;
}

.contact-meta {
  margin-top: 12px;
}

@keyframes ring-drift {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: rotate(4deg) scale(1.015);
    opacity: 0.92;
  }
}

@keyframes logo-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(5px, -4px, 0);
  }
  40% {
    transform: translate3d(-4px, -7px, 0);
  }
  60% {
    transform: translate3d(-6px, 3px, 0);
  }
  80% {
    transform: translate3d(4px, 6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

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

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

@media (max-width: 980px) {
  .hero-layout,
  .profile-grid,
  .split-layout,
  .pillar-grid,
  .work-layout,
  .work-list,
  .philosophy-layout,
  .page-hero-grid,
  .prose-grid,
  .page-card-grid,
  .overview-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .work-intro {
    position: static;
  }

  .mark-stage {
    min-height: 320px;
  }

  .header-row,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    grid-template-columns: auto 1fr;
  }

  .brand-stripe {
    width: 100%;
  }
}

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

  .site-nav {
    gap: 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-stripe {
    height: 8px;
  }

  .hero-panel,
  .mark-stage,
  .hero-caption,
  .profile-card,
  .page-hero-copy,
  .page-hero-side,
  .page-card,
  .pillar,
  .work-feature,
  .work-item,
  .philosophy-quote,
  .philosophy-notes article,
  .contact-layout {
    padding: 20px;
  }

  .hero-band {
    padding-top: 36px;
  }

  .hero-civic-bar {
    height: 18px;
    margin-bottom: 18px;
  }

  .hero-panel h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }
}

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

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