:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --text-main: #111827;
  --text-soft: #5f6b7a;
  --text-faint: #8d97a3;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(186, 230, 253, 0.8), transparent 26%),
    radial-gradient(circle at top right, rgba(224, 231, 255, 0.9), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, var(--bg) 60%, #eff2f5 100%);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 72px;
}

.backdrop-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.glow-one {
  top: -80px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(147, 197, 253, 0.24);
}

.glow-two {
  top: 180px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: rgba(196, 181, 253, 0.18);
}

.hero,
main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.status-dot {
  background: #22c55e;
}

.hero-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 26px;
  padding: 30px;
}

.eyebrow,
.section-label,
.hero-meta dt {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.metric-card h3,
.wind-card h3,
.detail-card h3,
.insight-panel h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-intro h1 {
  max-width: 11ch;
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin-top: 14px;
}

.hero-text,
.hero-summary,
.detail-card span,
.metric-card span,
.wind-card span,
.insight-panel p,
.insight-list span {
  color: var(--text-soft);
  line-height: 1.65;
}

.hero-text {
  max-width: 50ch;
  font-size: 0.99rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

button.button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
}

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

.button:disabled {
  transform: none;
  opacity: 0.72;
  cursor: wait;
}

.button-primary {
  color: white;
  background: #111827;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.button-secondary {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
}

.hero-meta div {
  margin: 0;
}

.hero-meta dd {
  margin: 6px 0 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.surface-card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hero-data {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.hero-reading {
  margin: 0;
}

.hero-reading-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hero-temperature {
  font-size: clamp(4rem, 6vw, 5.4rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-unit {
  font-size: 1.4rem;
  color: var(--text-soft);
  vertical-align: top;
}

.hero-summary {
  margin: 12px 0 0;
  max-width: 30ch;
  margin-inline: auto;
}

.hero-icon {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  filter: saturate(1.08);
}

.icon-sun,
.icon-cloud,
.icon-rain {
  position: absolute;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.icon-sun {
  top: 6px;
  left: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8c9, #facc15 68%, #f59e0b 100%);
  box-shadow:
    0 0 32px rgba(250, 204, 21, 0.45),
    0 0 0 8px rgba(253, 224, 71, 0.14);
}

.icon-cloud {
  right: 2px;
  bottom: 14px;
  width: 54px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #d8e2ec);
  box-shadow:
    0 10px 20px rgba(148, 163, 184, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.icon-cloud::before,
.icon-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.icon-cloud::before {
  width: 26px;
  height: 26px;
  left: 7px;
  top: -11px;
}

.icon-cloud::after {
  width: 30px;
  height: 30px;
  right: 5px;
  top: -16px;
}

.icon-rain {
  right: 14px;
  bottom: -1px;
  width: 28px;
  height: 22px;
}

.icon-rain::before,
.icon-rain::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd3fc, #2563eb);
  transform: rotate(18deg);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.18);
}

.icon-rain::before {
  left: 4px;
}

.icon-rain::after {
  right: 4px;
}

.hero-icon[data-condition="clear"] .icon-cloud,
.hero-icon[data-condition="clear"] .icon-rain {
  opacity: 0.18;
  transform: translateY(3px);
}

.hero-icon[data-condition="partly-cloudy"] .icon-rain,
.hero-icon[data-condition="cloudy"] .icon-rain {
  opacity: 0;
}

.hero-icon[data-condition="cloudy"] .icon-sun {
  opacity: 0.26;
  transform: scale(0.9);
}

.hero-icon[data-condition="rain"] .icon-rain {
  opacity: 1;
}

.hero-icon[data-condition="rain"] .icon-cloud {
  opacity: 1;
}

.hero-icon[data-condition="rain"] .icon-sun {
  opacity: 0.2;
}

.hero-primary {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.hero-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-summary-grid article,
.insight-list div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.hero-summary-grid span,
.insight-list span {
  display: block;
  font-size: 0.88rem;
}

.hero-summary-grid strong,
.insight-list strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-compass-card {
  grid-row: span 2;
}

.hero-compass-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.hero-compass {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0 42%, rgba(233, 238, 244, 0.9) 43%, rgba(250, 251, 252, 0.96) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

main {
  margin-top: 40px;
}

section + section {
  margin-top: 56px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-top: 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.metric-card,
.wind-card,
.detail-card,
.insight-panel {
  padding: 24px;
  animation: rise-in 600ms ease both;
}

.metric-card h3,
.wind-card h3,
.detail-card h3 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.metric-card span,
.wind-card span,
.detail-card span {
  display: block;
  margin-top: 6px;
}

.metric-primary {
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.9), transparent 40%),
    linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.82));
}

.wind-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}

.wind-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.compass {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 44%, rgba(225, 231, 238, 0.8) 45%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.compass-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.compass-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, #ef4444 0 55%, #111827 55% 100%);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  transition: transform 400ms ease;
}

.compass-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #ef4444;
  transform: translateX(-50%);
}

.compass-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  transform: translateX(-50%);
}

.compass-label {
  position: absolute;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-weight: 600;
}

.north {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.east {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.south {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.west {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.wind-direction-text {
  margin: 0;
  color: var(--text-soft);
}

.wind-direction-text strong {
  color: var(--text-main);
  margin-left: 4px;
}

.details-section {
  display: grid;
  gap: 18px;
}

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

.history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.history-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.history-toggle-button {
  min-width: 72px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.history-toggle-button.is-active {
  background: #111827;
  color: white;
}

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

.history-card {
  padding: 22px 24px 20px;
}

.history-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.history-card h3 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.history-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: right;
}

.history-chart-shell {
  position: relative;
  margin-top: 18px;
  min-height: 240px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 250, 252, 0.85)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: auto, 20% 100%, 100% 25%;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.history-chart {
  display: block;
  width: 100%;
  height: 240px;
}

.history-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-soft);
  text-align: center;
}

.history-empty[hidden] {
  display: none;
}

.insight-panel h3 {
  margin-top: 10px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.insight-panel p {
  margin: 18px 0 24px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  padding: 24px 26px;
}

.contact-copy h3 {
  margin: 10px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.contact-copy p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #97a3af;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.form-field textarea {
  resize: vertical;
  min-height: 132px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.form-note {
  line-height: 1.6;
}

.form-feedback {
  grid-column: 1 / -1;
  min-height: 24px;
}

.form-status {
  transition: color 180ms ease;
}

.form-status[data-state="success"] {
  color: #166534;
}

.form-status[data-state="error"] {
  color: #b91c1c;
}

.form-status[data-state="loading"] {
  color: #334155;
}

.credit-note {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
  text-align: center;
}

.credit-note strong {
  color: var(--text-main);
  font-weight: 600;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-main);
  cursor: pointer;
}

.chat-launcher strong,
.chat-launcher small {
  display: block;
}

.chat-launcher strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-launcher small {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.chat-launcher-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #111827, #334155);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  animation: emet-pulse 2.8s ease-in-out infinite;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 29;
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100dvh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chat-panel-head h3 {
  margin: 8px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.chat-panel-copy {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}

.chat-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.9);
  color: var(--text-soft);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.chat-message {
  display: flex;
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
}

.chat-message-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.chat-message-assistant {
  justify-content: flex-start;
}

.chat-message-assistant .chat-message-bubble {
  background: rgba(241, 245, 249, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.chat-message-user {
  justify-content: flex-end;
}

.chat-message-user .chat-message-bubble {
  color: white;
  background: #111827;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chat-chip {
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  color: var(--text-main);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.chat-form {
  margin-top: 18px;
  flex: 0 0 auto;
}

.chat-field textarea {
  width: 100%;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-main);
  font: inherit;
  resize: vertical;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.chat-field textarea:focus {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.chat-form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.chat-note,
.chat-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.chat-note {
  max-width: 28ch;
}

.chat-status {
  min-height: 20px;
  margin-top: 10px;
}

.chat-status[data-state="error"] {
  color: #b91c1c;
}

.chat-status[data-state="loading"] {
  color: #334155;
}

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

.insight-horizontal {
  padding: 24px 26px;
}

.insight-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.insight-copy p {
  margin-bottom: 0;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.project-panel {
  padding: 24px 26px;
}

.project-head h3 {
  margin: 10px 0 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.project-grid article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.46);
}

.project-grid .project-wide {
  grid-column: 1 / -1;
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #e8eef8);
  border: 1px solid rgba(29, 78, 216, 0.12);
  color: var(--accent);
  font-size: 0.76rem;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.08);
}

.project-icon svg {
  width: 18px;
  height: 18px;
}

.project-grid h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.project-grid p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes emet-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.24);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

@media (max-width: 1080px) {
  .hero-compact,
  .contact-panel,
  .insight-main,
  .detail-grid,
  .overview-grid,
  .project-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .wind-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 16px 56px;
  }

  .topbar,
  .hero-actions,
  .hero-meta,
  .history-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .status-pill,
  .button {
    justify-content: center;
  }

  .form-actions {
    align-items: stretch;
  }

  .hero-intro h1 {
    max-width: 12ch;
    font-size: 2.8rem;
  }

  .hero-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-compass-card {
    grid-row: auto;
  }

  .hero-compact,
  .contact-panel,
  .metric-card,
  .wind-card,
  .detail-card,
  .insight-panel {
    padding: 20px;
  }

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

  .compass {
    width: 160px;
    height: 160px;
  }

  .hero-reading-main {
    align-items: flex-start;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: center;
  }

  .chat-panel {
    right: 16px;
    left: 16px;
    bottom: 86px;
    top: 16px;
    width: auto;
    height: calc(100dvh - 102px);
    max-height: calc(100dvh - 102px);
    padding: 16px;
    border-radius: 24px;
  }

  .chat-quick-actions {
    display: none;
  }

  .chat-panel-head {
    margin-bottom: 14px;
  }

  .chat-panel-copy {
    font-size: 0.9rem;
  }

  .chat-messages {
    flex: 1 1 180px;
    min-height: 180px;
    max-height: none;
  }

  .chat-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
  }

  .chat-field textarea {
    min-height: 72px;
    max-height: 112px;
    padding: 12px 14px;
  }

  .chat-form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
  }

  .chat-note {
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .chat-form-footer .button {
    min-height: 44px;
  }
}
