:root {
  --bg: #e8f1fb;
  --surface: rgba(247, 251, 255, 0.78);
  --surface-strong: #f7fbff;
  --text: #152235;
  --muted: #52657c;
  --line: rgba(21, 34, 53, 0.12);
  --accent: #2f6fb2;
  --accent-dark: #1f4f85;
  --accent-soft: #cfe0f4;
  --shadow: 0 24px 80px rgba(27, 53, 87, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(47, 111, 178, 0.16), transparent 18%),
    linear-gradient(180deg, #eef5fc 0%, #dce9f8 100%);
}

body.disclaimer-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 34, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 34, 53, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(21, 34, 53, 0.4);
  backdrop-filter: blur(10px);
}

.disclaimer-overlay.is-hidden {
  display: none;
}

.disclaimer-modal {
  width: min(100%, 760px);
  padding: 2rem;
  border: 1px solid rgba(21, 34, 53, 0.1);
  border-radius: 28px;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: 0 32px 90px rgba(21, 34, 53, 0.2);
}

.disclaimer-modal h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.disclaimer-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.disclaimer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(21, 34, 53, 0.1);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  background: rgba(245, 250, 255, 0.82);
  box-shadow: var(--shadow);
}

.brand,
.site-nav a,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(21, 34, 53, 0.08);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(207, 224, 244, 0.76));
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 12px 30px rgba(27, 53, 87, 0.08);
}

.brand::before {
  content: "PB";
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #f8fbff;
  font-family: "Syne", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  color: var(--accent-dark);
  background: rgba(207, 224, 244, 0.55);
}

main {
  display: grid;
  gap: 2rem;
}

.hero,
.info-grid,
.contact-panel {
  display: grid;
  gap: 1.5rem;
}

.hero {
  grid-template-columns: 1.5fr 0.9fr;
  align-items: stretch;
  min-height: 72vh;
}

.hero-copy,
.hero-card,
.panel,
.project-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-tag,
.card-label,
.project-type {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 12ch;
}

h1 span {
  display: block;
  color: var(--accent);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  line-height: 1.2;
  margin-top: 0.75rem;
}

.hero-text,
.panel p,
.project-card p,
.contact-panel p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 36rem;
  margin: 1.5rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
}

.hero-card {
  padding: 2rem;
  align-self: end;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.9), rgba(207, 224, 244, 0.72)),
    var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}

.focus-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 1rem;
  color: var(--text);
  font-weight: 600;
}

.portrait-badge {
  width: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(47, 111, 178, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(180deg, rgba(229, 240, 252, 0.96), rgba(203, 223, 246, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.portrait-image {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

.info-grid {
  grid-template-columns: 1fr;
}

.panel,
.project-card,
.contact-panel {
  padding: 2rem;
}

.stats {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.stats div {
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-strong);
}

.stats strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.contact-panel h2,
.panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  min-height: 270px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 111, 178, 0.4);
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.skills-section {
  padding: 0.5rem 0;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.chip-wrap span {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 250, 255, 0.82);
  font-weight: 700;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-details a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent-dark);
}

.contact-panel {
  grid-template-columns: 1.3fr auto;
  align-items: center;
  gap: 2rem;
}

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

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

@media (max-width: 900px) {
  .hero,
  .info-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 2.2rem;
  }

  .site-header {
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 0.75rem;
  }

  .site-header {
    position: static;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
    font-size: 1.12rem;
    padding: 0.75rem 0.9rem;
  }

  .brand::before {
    width: 2rem;
    height: 2rem;
    font-size: 0.72rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .site-nav a {
    text-align: center;
    padding: 0.7rem 0.6rem;
    font-size: 0.88rem;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .project-card,
  .contact-panel,
  .site-footer,
  .policy-panel {
    padding: 1.25rem;
    border-radius: 20px;
  }

  .hero {
    gap: 1rem;
  }

  .eyebrow,
  .section-tag,
  .card-label,
  .project-type {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  h1 span {
    font-size: 1rem;
    margin-top: 0.55rem;
  }

  .hero-text,
  .panel p,
  .project-card p,
  .contact-panel p,
  .policy-panel p,
  .policy-panel li {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .hero-actions,
  .disclaimer-actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 3rem;
  }

  .portrait-badge {
    min-height: 220px;
    margin-bottom: 1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-panel {
    gap: 1.25rem;
  }

  .disclaimer-modal {
    padding: 1.35rem;
    border-radius: 22px;
  }
}


.site-footer {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.site-footer a,
.policy-panel a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.policy-panel a:hover {
  color: var(--accent);
}

.policy-shell {
  padding-bottom: 2rem;
}

.policy-page {
  display: grid;
  gap: 1.5rem;
}

.policy-panel {
  display: grid;
  gap: 1.25rem;
}

.policy-panel h1 {
  max-width: none;
}

.policy-panel h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.policy-panel p,
.policy-panel li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.policy-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.policy-effective {
  margin: 0;
}

.policy-section {
  display: grid;
  gap: 0.75rem;
}


.articles-section {
  display: grid;
  gap: 1.5rem;
}

.articles-panel {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.articles-panel .button {
  width: fit-content;
}
