:root {
  --bg: #f4efe6;
  --bg-soft: rgba(255, 255, 255, 0.55);
  --panel: rgba(17, 24, 39, 0.78);
  --panel-soft: rgba(255, 255, 255, 0.7);
  --text: #182126;
  --text-soft: #56636d;
  --line: rgba(24, 33, 38, 0.1);
  --brand: #d96536;
  --brand-dark: #b64e24;
  --blue: #1f4fd6;
  --green: #198754;
  --shadow: 0 24px 80px rgba(53, 45, 30, 0.16);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 101, 54, 0.18), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(31, 79, 214, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f1e7 0%, #efe7da 100%);
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.8;
}

.ambient-one {
  top: 100px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: rgba(217, 101, 54, 0.14);
}

.ambient-two {
  left: -80px;
  top: 520px;
  width: 260px;
  height: 260px;
  background: rgba(31, 79, 214, 0.14);
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 20px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 244, 0.66);
  border: 1px solid rgba(24, 33, 38, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.brand,
.eyebrow,
h1,
h2,
h3,
.button,
.panel-label,
.project-tag {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.nav a:hover,
.project-card a:hover {
  color: var(--brand-dark);
}

main {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-text,
.section-heading p,
.cta-section p,
.approach-list p,
.panel-card p,
.project-card p {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1.02rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--brand);
  color: #fffaf5;
  box-shadow: 0 14px 32px rgba(217, 101, 54, 0.28);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(24, 33, 38, 0.08);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.status-card {
  color: #f8f1ea;
  background: linear-gradient(160deg, #16222f 0%, #24384a 100%);
}

.status-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

.note-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 38, 0.08);
}

.panel-label {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.note-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.9;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 72px;
}

.signal-strip div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
}

.signal-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.signal-strip strong {
  font-size: 1.05rem;
}

.section {
  margin-top: 72px;
}

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

.section-heading h2,
.cta-section h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.project-card {
  min-height: 300px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(24, 33, 38, 0.08);
  background: rgba(255, 252, 247, 0.8);
  box-shadow: var(--shadow);
}

.project-card h3 {
  margin-bottom: 14px;
  font-size: 1.7rem;
  line-height: 1.05;
}

.project-tag {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card a {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

.accent-orange {
  border-top: 6px solid var(--brand);
}

.accent-blue {
  border-top: 6px solid var(--blue);
}

.accent-green {
  border-top: 6px solid var(--green);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.section-heading.compact {
  margin-bottom: 0;
}

.approach-list {
  display: grid;
  gap: 14px;
}

.approach-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}

.approach-list span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(217, 101, 54, 0.12);
  color: var(--brand-dark);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.approach-list h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.cta-section {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.82), rgba(249, 239, 224, 0.92));
  border: 1px solid rgba(24, 33, 38, 0.08);
  box-shadow: var(--shadow);
}

.message-board {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.message-board input,
.message-board textarea {
  width: 100%;
  border: 1px solid rgba(24, 33, 38, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  padding: 16px 18px;
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.message-board textarea {
  resize: vertical;
  min-height: 160px;
}

.message-board input:focus,
.message-board textarea:focus {
  outline: none;
  border-color: rgba(217, 101, 54, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 101, 54, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.message-board input::placeholder,
.message-board textarea::placeholder {
  color: #6e7a82;
}

.message-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.message-board-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.message-status {
  margin: 4px 0 0;
  color: var(--brand-dark);
  font-size: 0.96rem;
}

.message-stream {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(24, 33, 38, 0.08);
}

.message-stream-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.message-stream-heading h3 {
  margin: 0;
  font-size: 1.8rem;
}

.refresh-button {
  min-height: 44px;
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(24, 33, 38, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.message-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.message-card-name {
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-card h4 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.message-card time {
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.message-card-body {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.message-card-placeholder {
  border-style: dashed;
}

.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;
}

@media (max-width: 960px) {
  .site-header {
    padding: 16px 18px;
    border-radius: 24px;
    flex-direction: column;
    gap: 14px;
  }

  .hero,
  .project-grid,
  .split-section,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .message-board-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-stream-heading,
  .message-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  main {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 24px;
  }

  .site-header {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(2.6rem, 18vw, 4.2rem);
  }

  .panel-card,
  .project-card,
  .cta-section {
    padding: 20px;
  }
}
