:root {
  --bg: #f4efe4;
  --bg-strong: #efe3ce;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffdf8;
  --line: rgba(16, 37, 60, 0.12);
  --ink: #10253c;
  --ink-soft: #47607c;
  --brand: #0f5976;
  --brand-strong: #0b344d;
  --accent: #c85a2b;
  --accent-soft: #f1c7a7;
  --success: #1d7b63;
  --shadow: 0 22px 70px rgba(16, 37, 60, 0.14);
  --radius-shell: clamp(22px, 4vw, 30px);
  --radius-xl: clamp(20px, 3.4vw, 30px);
  --radius-lg: clamp(16px, 2.6vw, 22px);
  --radius-md: clamp(13px, 2vw, 18px);
  --radius-sm: clamp(10px, 1.4vw, 14px);
  --radius-pill: clamp(16px, 2.8vw, 22px);
  --container: min(1120px, calc(100% - 1.5rem));
  --header-offset: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(200, 90, 43, 0.12), transparent 24%),
    radial-gradient(circle at left center, rgba(15, 89, 118, 0.12), transparent 26%),
    linear-gradient(180deg, #f9f4eb 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 37, 60, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 37, 60, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--brand-strong);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.7;
}

.orb--one {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(200, 90, 43, 0.34) 0%, rgba(200, 90, 43, 0) 72%);
}

.orb--two {
  width: 20rem;
  height: 20rem;
  bottom: 8rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(15, 89, 118, 0.2) 0%, rgba(15, 89, 118, 0) 72%);
}

.orb--three {
  width: 18rem;
  height: 18rem;
  top: 42%;
  right: 18%;
  background: radial-gradient(circle, rgba(29, 123, 99, 0.18) 0%, rgba(29, 123, 99, 0) 70%);
}

.app-shell {
  position: relative;
  z-index: 1;
  padding: 1rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0 0 1rem;
}

.site-header__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-shell);
  background: rgba(255, 253, 248, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand__mark {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.brand__text strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
}

.brand__text span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.26rem;
  padding: 0;
}

.nav-toggle span {
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex: 1 0 100%;
  width: 100%;
  margin: 0.8rem 0 0;
  padding: 0.35rem 0 0.05rem;
  gap: 0.55rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-top: 1px solid rgba(16, 37, 60, 0.1);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(16, 37, 60, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: rgba(15, 89, 118, 0.12);
  color: var(--ink);
  transform: translateY(-1px);
}

.section {
  width: var(--container);
  margin: 0 auto 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: rise-in 0.75s ease both;
  scroll-margin-top: calc(var(--header-offset) + 0.35rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.section-head h2,
.hero__content h1,
.connect__copy h2,
.loading-panel h1 {
  font-family: "Fraunces", serif;
}

.section-head h2,
.connect__copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-head p,
.hero__copy,
.hero__panel p,
.priority-panel__description,
.priority-panel__result,
.connect__copy p,
.footer__note,
.loading-panel p,
.profile__lead {
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero {
  display: grid;
  gap: 1rem;
  padding-top: 0.9rem;
}

.hero__aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero__content {
  display: grid;
  gap: 1rem;
}

.hero__intro {
  display: grid;
  gap: 1rem;
}

.hero__title-block {
  display: grid;
  gap: 0.85rem;
}

.hero__role {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 37, 60, 0.08);
  color: var(--ink-soft);
}

.hero__content h1 {
  font-size: clamp(2.9rem, 10vw, 5rem);
  line-height: 0.96;
}

.hero__city {
  color: var(--accent);
}

.hero__copy {
  max-width: 60ch;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  box-shadow: 0 16px 32px rgba(11, 52, 77, 0.22);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 37, 60, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
}

.hero__focus {
  display: grid;
  gap: 0.8rem;
}

.focus-card,
.profile-card,
.sector-card,
.day-card,
.update-card,
.social-link {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(16, 37, 60, 0.08);
}

.focus-card {
  display: grid;
  gap: 0.55rem;
}

.focus-card__label,
.update-card__type,
.day-card__window {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.focus-card h3,
.profile-card h3,
.day-card h3,
.update-card h3,
.sector-card h3,
.priority-panel h3,
.hero__panel h2,
.social-link strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.focus-card p,
.profile-card p,
.day-card p,
.update-card p,
.sector-card p,
.social-link span,
.priority-panel__summary {
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero__portrait {
  width: min(100%, 16rem);
  justify-self: center;
  align-self: start;
}

.hero__portrait-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 6px solid rgba(255, 252, 246, 0.9);
  border-radius: 50%;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(200, 90, 43, 0.24), transparent 26%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(145deg, #0a3147, #0f5976 60%, #1d7b63 100%);
}

.hero__portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 49, 71, 0.04), rgba(10, 49, 71, 0.76)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.18), transparent 30%);
}

.hero__portrait-placeholder span {
  display: inline-flex;
  width: fit-content;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(145deg, #0a3147, #0f5976 58%, #1d7b63 100%);
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -3rem -5rem auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
}

.hero__panel > * {
  position: relative;
  z-index: 1;
}

.hero__panel-label {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero__panel p {
  color: rgba(255, 255, 255, 0.82);
}

.hero__panel-list {
  display: grid;
  gap: 0.8rem;
}

.hero__panel-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero__panel-list li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
}

.hero__panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__panel-tags span {
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.88rem;
}

.profile__layout,
.priority-layout,
.connect__layout {
  display: grid;
  gap: 1rem;
}

.profile__lead {
  margin-bottom: 1rem;
}

.stat-grid,
.profile__cards,
.hundred-grid,
.community-grid,
.update-grid,
.social-links {
  display: grid;
  gap: 0.85rem;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 89, 118, 0.1), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(15, 89, 118, 0.12);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.stat-card span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.priority-tabs {
  display: grid;
  gap: 0.7rem;
}

.priority-tab {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 1px solid rgba(16, 37, 60, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.priority-tab:hover,
.priority-tab:focus-visible,
.priority-tab.is-active {
  transform: translateY(-2px);
  border-color: rgba(15, 89, 118, 0.28);
  background: rgba(15, 89, 118, 0.09);
}

.priority-tab__tag {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.priority-tab strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.priority-tab span:last-child {
  color: var(--ink-soft);
  line-height: 1.5;
}

.priority-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(200, 90, 43, 0.1), transparent 24%),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 37, 60, 0.08);
  min-height: 100%;
}

.priority-panel__summary {
  font-size: 1.02rem;
}

.priority-actions {
  display: grid;
  gap: 0.7rem;
}

.priority-actions li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(15, 89, 118, 0.06);
}

.priority-actions li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--brand));
}

.priority-panel__result {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(29, 123, 99, 0.08);
  border: 1px solid rgba(29, 123, 99, 0.12);
}

.connect {
  background:
    radial-gradient(circle at right top, rgba(200, 90, 43, 0.13), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(251, 246, 238, 0.82));
}

.connect__copy {
  display: grid;
  gap: 0.9rem;
}

.social-link {
  display: grid;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 89, 118, 0.24);
}

.social-link strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.social-link strong::after {
  content: "Ir";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 89, 118, 0.1);
  color: var(--brand);
  font-size: 0.8rem;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-soft);
}

.site-footer strong {
  color: var(--ink);
}

.footer__note {
  font-size: 0.95rem;
}

.loading-panel,
.noscript-panel {
  width: var(--container);
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 246, 0.86);
  box-shadow: var(--shadow);
}

.loading-panel {
  display: grid;
  gap: 0.9rem;
  min-height: 42vh;
  align-content: center;
}

.loading-panel--error {
  min-height: auto;
}

.loading-panel__eyebrow {
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.loading-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.noscript-panel {
  margin-top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(200, 90, 43, 0.35);
  outline-offset: 3px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}