/* SimpCity — brand palette from hero imagery */
:root {
  --flame: #e04a1c;
  --flame-hot: #ff5c28;
  --flame-deep: #b83612;
  --cobalt: #2b57f2;
  --cobalt-soft: #4d74ff;
  --slate: #8a97a3;
  --ink: #12161c;
  --ink-soft: #1c2229;
  --muted: #6b7580;
  --line: #d8dde3;
  --surface: #f4f6f8;
  --card: #eef1f4;
  --white: #ffffff;
  --max: 1080px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --hero-image: url("../assets/images/hero-bg.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(224, 74, 28, 0.08), transparent 55%),
    linear-gradient(180deg, #f7f5f3 0%, var(--surface) 40%, #e8ecf0 100%);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--flame);
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — utility bar, brand row, board links */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 22, 28, 0.06);
}

.header-top {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.15rem;
}

.header-top p {
  margin: 0;
}

.header-top a {
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid var(--flame-hot);
  white-space: nowrap;
}

.header-top a:hover {
  color: var(--flame-hot);
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  flex: 0 0 auto;
}

.brand:hover {
  color: inherit;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-copy__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
}

.logo-link {
  display: flex;
  color: inherit;
}

.logo-link:hover {
  color: inherit;
}

.logo-tiles {
  display: flex;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
}

.logo-tiles span {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid var(--ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.brand:hover .logo-tiles span,
.logo-link:hover .logo-tiles span {
  border-color: var(--flame);
  color: var(--flame);
}

.logo-tiles.dark span {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--white);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.2rem;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a {
  color: var(--ink);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--flame-deep);
  background: rgba(224, 74, 28, 0.1);
  text-decoration: none;
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
}

.header-search input {
  width: 11.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
}

.header-search input:focus {
  outline: 2px solid rgba(224, 74, 28, 0.35);
  border-color: var(--flame);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.header-sub {
  border-top: 1px solid var(--line);
  background: #f7f4f1;
}

.header-sub__inner {
  display: flex;
  gap: 0.35rem 1rem;
  overflow-x: auto;
  padding: 0.45rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.header-sub a {
  color: #3d4650;
  white-space: nowrap;
}

.header-sub a:hover {
  color: var(--flame-deep);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero — full-bleed photo plane */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--ink-soft);
  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(18, 22, 28, 0.35) 0%,
      rgba(18, 22, 28, 0.15) 35%,
      rgba(18, 22, 28, 0.55) 62%,
      rgba(18, 22, 28, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(18, 22, 28, 0.55) 0%,
      rgba(18, 22, 28, 0.12) 45%,
      rgba(18, 22, 28, 0.35) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 4.5rem 0 3.25rem;
  animation: rise-in 0.7s ease both;
}

.brand-mark {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame-hot);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--flame);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accent-rule {
  height: 2px;
  width: 3.5rem;
  background: linear-gradient(90deg, var(--flame), var(--cobalt));
  border: 0;
  margin: 1.15rem 0 1.35rem;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.2s;
}

.quick-links a:hover {
  border-color: var(--flame);
  color: var(--flame-deep);
  background: #fff;
  transform: translateY(-2px);
}

/* Featured post */
.featured {
  margin-bottom: 2.75rem;
}

.category {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.featured h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.featured h2 a:hover {
  color: var(--flame);
}

.featured-excerpt {
  margin: 0 0 0.7rem;
  max-width: 42rem;
  color: #3d4654;
  font-size: 0.98rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.thumb-row a {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d8dde3;
}

.thumb-row img,
.story-card__media img,
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.thumb-row a:hover img,
.story-card:hover .story-card__media img {
  transform: scale(1.04);
}

/* More stories */
.section {
  padding: 2.25rem 0 3rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 46rem;
  margin: 0.75rem 0 0;
  color: #2c343c;
  font-size: 1.05rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.info-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  padding: 1.05rem 1.1rem 1.15rem;
}

.info-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.info-card p,
.steps p {
  margin: 0.25rem 0 0;
  color: #3a434c;
  font-size: 0.95rem;
}

.info-card a {
  color: var(--flame-deep);
  font-weight: 700;
}

.steps {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.step-num {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}

.home-faq details {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  margin-top: 0.55rem;
}

.home-faq summary {
  font-weight: 700;
  cursor: pointer;
}

.home-faq p {
  margin: 0.55rem 0 0.2rem;
  color: #3a434c;
}

.mirrors-lead {
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.25rem;
  margin-top: 1.35rem;
}

.story-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d8dde3;
  margin-bottom: 0.7rem;
}

.story-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.story-card h3 a:hover {
  color: var(--flame);
}

/* Mirror sites */
.mirrors {
  margin: 1rem 0 3.5rem;
  padding: 2rem 1.25rem 1.75rem;
  background:
    linear-gradient(145deg, rgba(224, 74, 28, 0.18), transparent 45%),
    linear-gradient(180deg, var(--ink-soft), var(--ink));
  color: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mirrors-brand {
  margin: 0 0 0.45rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--flame-hot);
}

.mirrors h2 {
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--flame-hot);
}

.mirror-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.mirror-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.15rem 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 8px;
  text-align: center;
}

.mirror-card svg {
  width: 22px;
  height: 22px;
  color: var(--cobalt);
}

.mirror-card strong {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.15rem 0;
  border-top: 2px solid var(--flame);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-blurb {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.85rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover {
  color: var(--flame-hot);
}

/* Page chrome */
.page-header {
  padding: 2.25rem 0 0.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.15;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.prose {
  padding-bottom: 3rem;
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: #3d4654;
}

.prose ul {
  padding-left: 1.2rem;
}

/* Blog list */
.blog-list {
  display: grid;
  gap: 2rem;
  padding-bottom: 3rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-item__media {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #d8dde3;
}

.blog-item h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-cover {
  margin: 1.25rem 0 1.5rem;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #d8dde3;
}

/* Forum */
.forum-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 3rem;
}

.forum-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
}

.forum-board__head {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink-soft);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.forum-row {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.forum-row:nth-child(even) {
  background: #fafbfc;
}

.forum-row h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.forum-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.stat {
  text-align: center;
  font-size: 0.9rem;
  color: #3d4654;
}

.thread-list .forum-row {
  grid-template-columns: 1fr 70px 120px;
}

.thread-list .forum-board__head {
  grid-template-columns: 1fr 70px 120px;
}

.composer,
.reply-box,
.auth-panel {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.composer h2,
.reply-box h2,
.auth-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5ccd4;
  border-radius: 6px;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border: 0;
  border-radius: 6px;
  background: var(--flame);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(224, 74, 28, 0.28);
}

.btn:hover {
  background: var(--flame-hot);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 74, 28, 0.38);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.section .btn-secondary,
.prose .btn-secondary,
.auth-panel .btn-secondary {
  background: rgba(43, 87, 242, 0.1);
  color: var(--cobalt);
  border: 1px solid rgba(43, 87, 242, 0.28);
}

.section .btn-secondary:hover,
.prose .btn-secondary:hover,
.auth-panel .btn-secondary:hover {
  background: rgba(43, 87, 242, 0.18);
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #c5ccd4;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.post {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.post:first-of-type {
  border-top: 1px solid var(--line);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-author {
  font-weight: 700;
  color: var(--ink);
}

.post-body {
  white-space: pre-wrap;
  color: #1f2937;
}

.reaction {
  margin-top: 0.75rem;
}

.reaction button {
  min-width: 4.5rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.lang-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 0;
  cursor: default;
}

.faq details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 0.65rem 0 0;
  color: #3d4654;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.note {
  padding: 0.85rem 1rem;
  background: rgba(224, 74, 28, 0.08);
  border: 1px solid rgba(224, 74, 28, 0.28);
  border-radius: 8px;
  color: var(--flame-deep);
  font-size: 0.9rem;
}

.seo-strip {
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(224, 74, 28, 0.06), rgba(43, 87, 242, 0.08));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seo-strip h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.seo-strip p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
}

/* Responsive hero framing — keep face / hair in frame */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-main__inner {
    flex-wrap: wrap;
  }

  .main-nav,
  .header-search {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-search {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.35rem;
  }

  .header-search input {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: min(78vh, 640px);
  }

  .hero__bg {
    background-position: center 18%;
  }

  .stories-grid,
  .mirror-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-item {
    grid-template-columns: 1fr;
  }

  .forum-board__head,
  .forum-row,
  .thread-list .forum-board__head,
  .thread-list .forum-row {
    grid-template-columns: 1fr;
  }

  .forum-board__head span:not(:first-child),
  .stat {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: min(72vh, 560px);
    align-items: flex-end;
  }

  .hero__bg {
    background-position: center 12%;
    background-size: cover;
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(18, 22, 28, 0.25) 0%,
        rgba(18, 22, 28, 0.1) 28%,
        rgba(18, 22, 28, 0.62) 58%,
        rgba(18, 22, 28, 0.92) 100%
      );
  }

  .hero__content {
    padding: 3.25rem 0 2.5rem;
  }

  .brand-mark {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stories-grid,
  .mirror-grid,
  .thumb-row,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .header-top__inner {
    align-items: flex-start;
    padding: 0.4rem 0;
  }

  .brand-copy__name {
    font-size: 1.15rem;
  }

  .logo-tiles span {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.65rem;
  }

  .lang-fab {
    display: none;
  }
}

/* Wide / landscape phones & tablets — use more of the frame */
@media (min-width: 1100px) {
  .hero__bg {
    background-position: center 25%;
  }
}

/* Short viewports (landscape phones) */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero__bg {
    background-position: center 30%;
  }

  .hero__content {
    padding: 2rem 0 1.5rem;
  }

  .brand-mark {
    font-size: clamp(1.8rem, 6vh, 2.6rem);
  }

  .hero-lead {
    display: none;
  }
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

.featured,
.stories-grid,
.mirrors {
  animation: rise-in 0.55s ease both;
}

.featured {
  animation-delay: 0.08s;
}

.stories-grid {
  animation-delay: 0.14s;
}

.mirrors {
  animation-delay: 0.2s;
}

.story-card,
.mirror-card,
.quick-links a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s, background 0.15s;
}

.story-card:hover,
.mirror-card:hover {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__content,
  .featured,
  .stories-grid,
  .mirrors,
  .thumb-row img,
  .story-card__media img {
    animation: none;
    transition: none;
  }

  .hero__bg {
    transform: none;
  }
}
