:root {
  /* Default = light, black & white minimal */
  color-scheme: light;
  /* Brand (from provided lockup image) */
  --brand-paper: #f3efe6;
  --brand-en: #5b6d77; /* BONYARI logo ink */
  --accent: var(--brand-en);

  /* Ink system: derived to harmonize with the logo tone */
  --bg: #fbfaf8;
  --ink: #3a454c;
  --fg: color-mix(in oklab, var(--ink) 82%, var(--accent) 18%);
  --muted: color-mix(in oklab, var(--fg) 62%, var(--bg) 38%);
  --muted2: color-mix(in oklab, var(--fg) 48%, var(--bg) 52%);
  --stroke: color-mix(in oklab, var(--fg) 12%, transparent);
  --elev: color-mix(in oklab, var(--fg) 3%, transparent);
  --radius: 18px;
  --shadow: 0 18px 54px color-mix(in oklab, var(--fg) 12%, transparent);
  --container: 1120px;

  --focus: color-mix(in oklab, var(--fg) 24%, transparent);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  letter-spacing: 0.1px;
  font-family:
    "Fraunces",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Noto Sans",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  background: var(--brand-paper);
  color: var(--fg);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

html[lang="en"] .brand-text,
html[lang="en"] .h1 {
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.02px;
}

.section-head h2 {
  font-weight: 400;
  letter-spacing: 0.06px;
  color: var(--accent);
}

body::before {
  content: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

strong,
b {
  font-weight: 400;
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--fg);
  transform: translateY(-130%);
  transition: transform 160ms ease;
  z-index: 50;
}

.skip:focus {
  transform: translateY(0);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.wordmark {
  height: 36px;
  width: 142px;
  display: block;
  opacity: 0.95;
  object-fit: contain;
  filter: none;
}

.hero-wordmark {
  height: min(200px, 30vw);
  width: auto;
  display: block;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--elev);
  border-color: var(--stroke);
}

.nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--elev);
}

.nav-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--fg);
  opacity: 0.85;
}

.hero {
  position: relative;
  padding: 108px 0 62px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero .hero-inner {
  text-align: center;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: 0.08px;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.2;
}

.hero-sub {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  position: absolute;
  inset: -10% -10%;
  background:
    linear-gradient(to right, var(--stroke) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, var(--stroke) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(circle at 35% 18%, black 0%, transparent 66%);
  opacity: 0.12;
}

.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  filter: blur(44px);
  opacity: 0.22;
  transform: translate3d(0, 0, 0);
}

.g1 {
  left: -160px;
  top: -220px;
  background: radial-gradient(circle at 40% 40%, rgba(140, 120, 255, 0.22), transparent 58%);
}

.g2 {
  right: -180px;
  top: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 180, 120, 0.18), transparent 58%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.spark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fg);
  box-shadow: none;
}

.h1 {
  margin: 10px 0 8px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.12;
  letter-spacing: 0.06px;
  font-weight: 400;
}

.prose {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.1px;
}

.prose p {
  margin: 0;
}

.grad {
  color: inherit;
}

.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
}

.slogan {
  margin: 8px auto 0;
  font-size: 18px;
  letter-spacing: 0.08px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 92%, transparent);
  color: var(--fg);
  font-weight: 400;
  font-size: 14px;
  transition:
    transform 120ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease;
}

.btn:hover {
  border-color: color-mix(in oklab, var(--stroke) 100%, transparent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: color-mix(in oklab, var(--stroke) 100%, transparent);
  background: var(--fg);
  color: var(--bg);
}

.highlights {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hi {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 92%, transparent);
}

.hi-k {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 400;
}

.hi-v {
  margin-top: 4px;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 54px 0;
}

.section-alt {
  padding: 54px 0;
  background: color-mix(in oklab, var(--elev) 96%, transparent);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.idea-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.idea-like .thumb {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.idea-like .count {
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.06px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 14px;
}

.btn.like {
  gap: 8px;
}

.btn.like .count {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

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

.gallery.gallery-list {
  grid-template-columns: 1fr;
}

.gallery.gallery-list .tile {
  min-height: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px;
}

.gallery.gallery-list .tile-label {
  font-size: 15px;
}

.gallery.gallery-list .tile-like {
  align-self: center;
  white-space: nowrap;
}

.tile {
  min-height: 170px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: var(--muted2);
  font-weight: 400;
  letter-spacing: 0.06px;
}

.tile-label {
  font-weight: 400;
  color: var(--accent);
}

.tile-label:hover {
  text-decoration: underline;
}

.tile-like {
  align-self: flex-start;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 400;
  font-size: 13px;
  color: var(--fg);
}

.tile-like:disabled {
  opacity: 0.6;
  cursor: default;
}

.tile-like .count {
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

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

.k {
  color: var(--fg);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06px;
  line-height: 1.3;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
  color: var(--fg);
  outline: none;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
}

.input::placeholder {
  color: var(--muted2);
  opacity: 1;
  font-weight: 400;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.spacer {
  flex: 1;
}

.fields-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fields-inline .field {
  margin: 0;
}

.dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 15;
}

.popover-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 20;
}

.popover-panel {
  position: absolute;
  top: 0;
  left: auto;
  right: calc(100% + 10px);
  transform: none;
  width: auto;
  max-width: min(72vw, 360px);
  padding: 12px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in oklab, var(--stroke) 92%, transparent);
  background: var(--bg);
  box-shadow: var(--shadow);
  z-index: 20;
}

.popover-wrap[data-align="left"] .popover-panel {
  right: auto;
  left: calc(100% + 10px);
}

.popover-panel.popover-menu {
  width: auto;
  padding: 8px;
  min-width: 140px;
  display: grid;
  gap: 6px;
}

.popover-panel[hidden] {
  display: none;
}

.menu-item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  border-radius: 12px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.menu-item:hover {
  background: var(--elev);
  border-color: var(--stroke);
}

.form-actions .hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-actions .btn {
  padding-inline: 14px;
}

.btn.flat {
  background: transparent;
  border-color: var(--stroke);
  box-shadow: none;
}

.btn.flat:hover {
  background: var(--elev);
  box-shadow: none;
}

.btn.flat:active {
  transform: none;
}

.hint {
  color: var(--muted2);
  font-weight: 400;
  font-size: 13px;
}

.input::placeholder {
  color: var(--muted2);
  opacity: 1;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chip {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}

.chip:hover {
  color: var(--fg);
  background: var(--elev);
}

.chip.is-active {
  color: var(--fg);
  border-color: color-mix(in oklab, var(--stroke) 100%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

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

.card {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 92%, transparent);
  overflow: clip;
  outline: none;
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--stroke) 100%, transparent);
}

.cover {
  height: 150px;
  border-bottom: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

.cover.c1 {
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

.cover.c2 {
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

.cover.c3 {
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

.card-body {
  padding: 14px 14px 16px;
}

.title {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06px;
}

.sub {
  margin-top: 2px;
  color: var(--muted2);
  font-weight: 400;
  font-size: 12px;
}

.desc {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: var(--muted2);
  font-weight: 400;
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: color-mix(in oklab, var(--elev) 70%, transparent);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.link {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--fg);
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.link:hover {
  background: var(--elev);
  border-color: var(--stroke);
}

.link.ghost {
  color: var(--muted);
}

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

.step {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 92%, transparent);
}

.step-k {
  font-weight: 400;
  color: var(--muted2);
  font-size: 12px;
}

.step-v {
  margin-top: 6px;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

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

.about-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 92%, transparent);
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact {
  padding: 18px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

.comments {
  margin-top: 18px;
  padding: 18px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--elev) 94%, transparent);
}

.comments-form {
  margin-top: 10px;
  margin-bottom: 14px;
  position: relative;
}

.help {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}

.chip-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-icon .icon {
  display: inline-flex;
}

.comments-more {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

@media (max-width: 980px) {
  .fields-inline {
    grid-template-columns: 1fr;
  }
}

.comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comments-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08px;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.3;
}

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

.comments.has-more .comments-list {
  position: relative;
}

.comments.has-more .comments-list::after {
  content: "";
  position: sticky;
  bottom: -1px;
  display: block;
  height: 56px;
  margin-top: -56px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in oklab, var(--bg) 92%, transparent)
  );
  border-bottom-left-radius: calc(var(--radius) + 4px);
  border-bottom-right-radius: calc(var(--radius) + 4px);
}

.panel-list {
  display: grid;
  gap: 16px;
}

.panel-group {
  display: grid;
  gap: 12px;
}

.panel-idea {
  font-weight: 400;
  letter-spacing: 0.06px;
  color: var(--fg);
  opacity: 0.92;
}

.comment {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--bg) 35%, transparent);
}

.comment-nick {
  font-weight: 400;
  font-size: 12px;
  color: var(--fg);
}

.comment-msg {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

.comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-act {
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted2);
}

.comment-act:hover {
  background: var(--elev);
  border-color: var(--stroke);
  color: var(--fg);
}

.comment-like {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.comment-like:hover {
  background: var(--elev);
  border-color: var(--stroke);
  color: var(--fg);
}

.comment-like.is-liked {
  color: color-mix(in oklab, #ff2d55 85%, var(--fg));
}

.comment-like .heart {
  font-size: 14px;
  line-height: 1;
}

.comment-like:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.contact-item {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--bg) 35%, transparent);
}

.contact-item .k {
  color: var(--muted2);
  font-weight: 400;
  font-size: 12px;
}

.contact-item .v {
  margin-top: 6px;
  font-weight: 400;
  color: var(--fg);
  font-size: 13px;
  display: inline-block;
}

.footer {
  padding: 28px 0 46px;
  border-top: 1px solid var(--stroke);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.muted {
  color: var(--muted2);
  font-weight: 400;
  font-size: 14px;
}

.modal {
  width: min(760px, calc(100% - 32px));
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  padding: 0;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  color: var(--fg);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.modal-inner {
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
}

.modal-title {
  font-weight: 400;
  letter-spacing: 0.06px;
}

.x {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--elev);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-body {
  padding: 12px 0 10px;
  color: var(--muted);
}

.modal-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.modal-foot {
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .grid-cards {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .highlights {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .nav-btn {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 62px;
    left: 20px;
    right: 20px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: color-mix(in oklab, var(--bg) 75%, transparent);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 12px;
  }
  .grid-cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === New components for restructured homepage === */

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

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--bg) 98%, transparent);
  color: var(--fg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pillar-icon {
  margin-bottom: 16px;
  color: var(--accent);
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.06px;
}

.pillar-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.tile-sub {
  font-size: 13px;
  color: var(--muted2);
  margin-top: 4px;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journal-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background: color-mix(in oklab, var(--bg) 98%, transparent);
  color: var(--fg);
  transition: background 160ms ease;
}

.journal-item:hover {
  background: var(--elev);
}

.journal-item time {
  font-size: 13px;
  color: var(--muted2);
  min-width: 80px;
}

.journal-title {
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--stroke);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-wordmark {
  height: 72px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.06px;
  color: var(--fg);
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
