.home-hero,
.page-hero {
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.72)),
    radial-gradient(circle at 78% 18%, rgba(14,165,233,.16), transparent 30%),
    var(--color-bg-soft);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 520px;
  align-items: center;
  gap: 54px;
  padding: 42px 0;
}

.eyebrow,
.section-heading span,
.page-hero span,
.portal-section > span,
.inquiry-grid span,
.home-hero-copy > span {
  color: var(--color-accent-dark);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-hero h1,
.page-hero h1 {
  max-width: 680px;
  margin: 18px 0;
  color: var(--color-text-main);
  font-size: clamp(2.45rem, 5vw, 4.65rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.home-hero p,
.page-hero p {
  max-width: 680px;
  color: var(--color-text-secondary);
  font-size: 1.08rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-showcase {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 34px;
  background: linear-gradient(145deg, #fff, #eef6fb);
  box-shadow: var(--shadow-card);
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.device-desk {
  position: absolute;
  inset: 24px;
}

.monitor {
  position: absolute;
  left: 26%;
  top: 14%;
  width: 38%;
  height: 32%;
  border: 10px solid #1f2937;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #fff);
}

.monitor:after {
  position: absolute;
  left: 44%;
  bottom: -70px;
  width: 12%;
  height: 70px;
  content: "";
  background: #334155;
}

.pc-case {
  position: absolute;
  right: 7%;
  top: 12%;
  width: 24%;
  height: 72%;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 10px #f8fafc, var(--shadow-soft);
}

.pc-case span {
  display: block;
  width: 48px;
  height: 48px;
  margin: 28px auto;
  border-radius: 50%;
  background: radial-gradient(circle, #dbeafe 24%, #93c5fd 25%, #eff6ff 66%);
}

.keyboard, .controller, .speaker {
  position: absolute;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.keyboard { left: 22%; bottom: 16%; width: 38%; height: 42px; }
.controller { right: 30%; bottom: 10%; width: 110px; height: 56px; border-radius: 28px; }
.speaker { left: 8%; top: 36%; width: 70px; height: 132px; }

.home-search { margin-top: -36px; position: relative; z-index: 2; }

.search-panel {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.4fr auto;
  gap: 16px;
  align-items: end;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.search-panel label,
.catalog-filter label,
.inquiry-form label,
.forum-editor label,
.admin-inline-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text-secondary);
  font-size: .88rem;
  font-weight: 800;
}

.inline-fields,
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-section,
.portal-section {
  padding: 64px 0 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.portal-section h2,
.detail-content h2 {
  margin: 8px 0;
  color: var(--color-text-main);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
}

.section-heading p { color: var(--color-text-muted); margin: 0; }
.section-heading.with-link { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading.with-link > a { color: var(--color-accent-dark); font-weight: 900; }

.category-entry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-entry,
.shortcut-grid a,
.shortcut-grid span,
.feature-card-list article,
.editorial-grid article,
.article-mini-list a,
.topic-mini-list a {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-entry:hover,
.shop-card:hover,
.article-mini-list a:hover,
.topic-mini-list a:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, .32);
  box-shadow: var(--shadow-card);
}

.category-entry b {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  font-size: .76rem;
}

.category-entry strong { font-size: 1.06rem; }
.category-entry span, .article-mini-list span, .topic-mini-list span { color: var(--color-text-muted); font-size: .92rem; }

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

.shop-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.shop-image {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  background: #f8fafc;
}

.shop-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 18px;
  transition: transform .2s ease;
}

.shop-card:hover .shop-image img { transform: scale(1.045); }

.image-placeholder {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 22px;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  font-weight: 900;
}

.card-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-badges i,
.detail-tags span {
  border-radius: 999px;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  padding: 4px 9px;
  font-size: .75rem;
  font-style: normal;
  font-weight: 900;
}

.card-badges .sale { color: #b91c1c; background: #fee2e2; }

.shop-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.shop-body small,
.detail-info small,
.article-list small,
.topic-mini-list small,
.article-mini-list small {
  color: var(--color-text-muted);
  font-size: .82rem;
  font-weight: 800;
}

.shop-body h2 {
  margin: 0;
  color: var(--color-text-main);
  font-size: 1.04rem;
  font-weight: 900;
}

.shop-body p {
  min-height: 44px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: .92rem;
}

.shop-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.shop-price strong,
.detail-price strong {
  color: var(--color-price);
  font-size: 1.16rem;
  font-weight: 950;
}

.shop-price del,
.detail-price del {
  color: #9ca3af;
  font-size: .9rem;
}

.shop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shop-actions a {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-secondary);
  font-size: .86rem;
  font-weight: 900;
}

.shop-actions .buy {
  border-color: var(--color-accent);
  color: #fff;
  background: var(--color-accent);
}

.split-feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.feature-copy {
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
  padding: clamp(28px, 5vw, 54px);
}

.feature-copy span { color: #93c5fd; font-weight: 900; letter-spacing: .14em; }
.feature-copy h2 { color: #fff; }
.feature-copy p { color: #d1d5db; }

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

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.article-mini-list,
.topic-mini-list {
  display: grid;
  gap: 12px;
}

.page-hero {
  border-bottom: 1px solid var(--color-border);
  padding: 68px 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  padding-top: 36px;
}

.catalog-filter,
.inquiry-form,
.forum-editor,
.admin-login-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.catalog-filter {
  position: sticky;
  top: 96px;
  align-self: start;
}

.catalog-filter h2 { margin: 0; font-size: 1.2rem; font-weight: 900; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-weight: 700;
}

.catalog-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--color-text-muted);
}

.catalog-summary strong { color: var(--color-text-main); }

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pager a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  font-weight: 900;
}

.pager a.active { color: #fff; border-color: var(--color-accent); background: var(--color-accent); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 42px;
  padding-top: 50px;
}

.detail-gallery,
.detail-info,
.detail-content article,
.topic-main,
.reply-section,
.article-detail header,
.article-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-main-image {
  display: grid;
  min-height: 430px;
  place-items: center;
  border-radius: 18px;
  background: #f8fafc;
}

.detail-main-image img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
}

.detail-thumbs button {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.detail-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-info h1 { margin: 12px 0; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 950; letter-spacing: -.04em; }
.detail-price { display: flex; gap: 10px; align-items: baseline; margin: 18px 0; }
.detail-price strong { font-size: 2rem; }

.detail-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.detail-meta dt { color: var(--color-text-muted); font-weight: 800; }
.detail-meta dd { margin: 0; font-weight: 900; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 36px;
}

.inquiry-section {
  margin-top: 56px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 34px;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
}

.portal-tabs a {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  font-weight: 900;
}

.portal-tabs a.active,
.portal-tabs a:hover { color: var(--color-accent-dark); background: var(--color-accent-soft); }

.article-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.article-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.article-list article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.article-list img,
.article-cover {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.article-list img { height: 140px; }
.article-list h2 { margin: 4px 0; font-size: 1.25rem; font-weight: 900; }

.article-detail {
  padding-top: 46px;
}

.article-detail header {
  margin-bottom: 22px;
  text-align: center;
}

.article-detail h1 { font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 950; letter-spacing: -.04em; }
.article-cover { max-height: 480px; margin-bottom: 22px; }
.article-content { color: var(--color-text-secondary); font-size: 1.05rem; }

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

.forum-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.forum-list {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.forum-list header,
.forum-list a {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px;
}

.forum-list header { color: var(--color-text-muted); background: #f8fafc; font-weight: 900; }
.forum-list a:last-child { border-bottom: 0; }
.forum-list small { color: var(--color-text-muted); }
.forum-list b { margin-left: 6px; border-radius: 999px; color: var(--color-accent-dark); background: var(--color-accent-soft); padding: 2px 8px; font-size: .72rem; }

.forum-compose-page,
.topic-page {
  padding-top: 46px;
}

.forum-compose-shell {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: 26px;
}

.forum-compose-shell header {
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
  padding: 36px;
}

.forum-compose-shell header span { color: #93c5fd; font-weight: 900; letter-spacing: .14em; }
.forum-compose-shell header h1 { margin: 12px 0; font-weight: 950; }
.forum-compose-shell header p { color: #d1d5db; }

.forum-form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.topic-back { display: inline-flex; margin-bottom: 18px; color: var(--color-accent-dark); font-weight: 900; }
.topic-main header span { color: var(--color-text-muted); }
.reply-section { margin-top: 20px; }
.reply-section article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
}
.topic-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
  font-weight: 900;
}

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

.portal-cta {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.about-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.standalone-page {
  max-width: 760px;
  padding-top: 40px;
}

@media (max-width: 1199px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .category-entry-grid,
  .category-entry-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .home-hero-v2-grid,
  .home-hero-grid,
  .catalog-layout,
  .detail-grid,
  .detail-content,
  .inquiry-grid,
  .split-feature,
  .content-columns,
  .forum-compose-shell {
    grid-template-columns: 1fr;
  }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .catalog-filter { position: static; }
  .shop-grid, .forum-categories, .editorial-grid, .shortcut-grid, .category-entry-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .home-hero-v2-grid { min-height: auto; padding: 28px 0 56px; }
  .home-hero-v2 h1 { font-size: 2.35rem; }
  .home-hero-carousel img { height: 280px; }
  .home-hero-grid { min-height: auto; padding: 32px 0; }
  .home-hero h1, .page-hero h1 { font-size: 2.3rem; }
  .search-panel,
  .shop-grid,
  .category-entry-grid,
  .category-entry-grid-v2,
  .forum-categories,
  .editorial-grid,
  .shortcut-grid,
  .article-list article,
  .article-search {
    grid-template-columns: 1fr;
  }
  .section-heading.with-link,
  .catalog-summary {
    align-items: start;
    flex-direction: column;
  }
  .forum-list header,
  .forum-list a {
    grid-template-columns: 1fr;
  }
  .hero-showcase { min-height: 280px; }
}
.home-hero-v2 {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(25,118,210,.16), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f7f9fc 54%, #edf5ff 100%);
  border-bottom: 1px solid var(--color-border);
}

.home-hero-v2-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 560px;
  padding: clamp(34px, 5vw, 72px) 0 72px;
}

.home-hero-v2 .home-hero-copy {
  position: relative;
  z-index: 2;
}

.home-hero-v2 h1 {
  margin: 18px 0;
  color: var(--color-text-main);
  font-size: clamp(2.55rem, 5.6vw, 4.9rem);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.home-hero-v2 p {
  max-width: 620px;
  color: var(--color-text-secondary);
  font-size: 1.12rem;
}

.home-hero-carousel {
  overflow: hidden;
  border: 1px solid rgba(25,118,210,.16);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.home-hero-carousel .carousel-item {
  background: #fff;
}

.home-hero-carousel img {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 480px);
  object-fit: cover;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(31,41,55,.42);
}

.home-hero-carousel .carousel-control-prev { left: 16px; }
.home-hero-carousel .carousel-control-next { right: 16px; }

.home-hero-carousel .carousel-indicators {
  bottom: 14px;
  margin-bottom: 0;
}

.home-hero-carousel .carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background-color: var(--color-primary);
}

.category-entry-grid-v2 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-entry-v2 {
  overflow: hidden;
  padding: 0;
}

.category-entry-v2 img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.category-entry-v2 strong,
.category-entry-v2 span {
  padding-left: 18px;
  padding-right: 18px;
}

.category-entry-v2 strong {
  padding-top: 4px;
}

.category-entry-v2 span {
  padding-bottom: 18px;
}

.featured-product-grid {
  align-items: stretch;
}

.shop-actions .tech-card-cart {
  display: none;
}

.portal-home {
  min-height: 100vh;
  color: #fff;
  background: #07111f;
}

.portal-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - 84px);
  overflow: hidden;
  padding: 24px clamp(18px, 4vw, 56px) 34px;
}

.portal-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("/assets/images/portal-home/portal-hero-art-wide-16x9.jpg");
  background-position: center;
  background-size: cover;
}

.portal-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 10, 20, .9) 0%, rgba(4, 10, 20, .58) 42%, rgba(4, 10, 20, .5) 100%),
    linear-gradient(180deg, rgba(4, 10, 20, .28) 0%, rgba(4, 10, 20, .18) 45%, rgba(4, 10, 20, .88) 100%);
}

.portal-header {
  display: flex;
  width: min(100%, 1360px);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  justify-self: center;
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.portal-logo img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .38));
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.portal-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(5, 14, 28, .32);
  padding: 8px 16px;
  font-size: .92rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.portal-nav a:hover {
  border-color: rgba(255, 185, 84, .7);
  color: #fff;
  background: rgba(255, 185, 84, .18);
}

.portal-hero-content {
  width: min(100%, 1360px);
  max-width: 720px;
  margin: 70px auto 0;
  justify-self: center;
}

.portal-eyebrow {
  margin: 0 0 14px;
  color: #ffd28a;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portal-hero-content h1 {
  margin: 0;
  color: #fff;
  font-size: 4rem;
  font-weight: 950;
  line-height: 1.12;
  text-wrap: balance;
}

.portal-hero-content > p:last-child {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.8;
}

.portal-gate-grid {
  display: grid;
  width: min(100%, 1360px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-self: end;
  justify-self: center;
  margin-top: 54px;
}

.portal-gate-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .24);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.portal-gate-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 185, 84, .78);
  color: #fff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .34);
}

.portal-gate-picture,
.portal-gate-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-gate-picture img {
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .28s ease;
}

.portal-gate-card:hover .portal-gate-picture img {
  transform: scale(1.055);
}

.portal-gate-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(4, 10, 20, .04) 20%, rgba(4, 10, 20, .9) 100%);
}

.portal-gate-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 18px;
}

.portal-gate-copy strong {
  font-size: 1.06rem;
  font-weight: 950;
  line-height: 1.35;
}

.portal-gate-copy span {
  color: rgba(255, 255, 255, .82);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.55;
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .78);
  background: #050b16;
  padding: 22px clamp(18px, 4vw, 56px);
  font-size: .9rem;
}

.portal-footer span {
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .portal-hero {
    min-height: auto;
  }

  .portal-hero-content {
    margin-top: 48px;
  }

  .portal-hero-content h1 {
    font-size: 3.25rem;
  }

  .portal-gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-gate-card:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 6;
  }
}

@media (max-width: 767px) {
  .portal-hero {
    padding: 16px 14px 26px;
  }

  .portal-hero::before {
    background-image: url("/assets/images/portal-home/portal-hero-art-4x3.jpg");
    background-position: center top;
  }

  .portal-header {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .portal-logo img {
    height: 42px;
  }

  .portal-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .portal-nav a {
    min-height: 36px;
    padding: 7px 12px;
    font-size: .86rem;
    white-space: nowrap;
  }

  .portal-hero-content {
    margin-top: 42px;
  }

  .portal-hero-content h1 {
    font-size: 2.34rem;
  }

  .portal-hero-content > p:last-child {
    font-size: 1rem;
    line-height: 1.75;
  }

  .portal-gate-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 38px;
  }

  .portal-gate-card,
  .portal-gate-card:last-child {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }

  .portal-gate-copy {
    padding: 20px;
  }

  .portal-footer {
    justify-content: flex-start;
    font-size: .86rem;
  }

  .portal-footer span {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .portal-hero-content h1 {
    font-size: 2.08rem;
  }

  .portal-gate-copy strong {
    font-size: 1rem;
  }

  .portal-gate-copy span {
    font-size: .82rem;
  }
}
