/* =========================================================
   Alaska.co.jp — Global Site Styles
   Magazine-quality, mobile-first design system
   ========================================================= */

:root{
  --bg: #07111c;
  --bg-soft: #0d1b2a;
  --bg-elev: rgba(255,255,255,0.06);
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.12);
  --line: rgba(255,255,255,0.14);

  --text: #eef6ff;
  --muted: #b9c9db;
  --soft: #94a9bf;
  --heading: #ffffff;

  --accent: #75c8ff;
  --accent-2: #6ef0d1;
  --accent-3: #ffd47a;
  --danger: #ff8a8a;

  --shadow-sm: 0 10px 30px rgba(0,0,0,0.18);
  --shadow-md: 0 18px 48px rgba(0,0,0,0.24);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.34);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --max: 1200px;
  --max-narrow: 860px;

  --header-h: 72px;
  --ease: 240ms cubic-bezier(.2,.7,.2,1);

  --font-sans: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif JP", "Times New Roman", serif;

  --gradient-hero:
    radial-gradient(circle at 20% 10%, rgba(117,200,255,0.22), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(110,240,209,0.18), transparent 26%),
    linear-gradient(180deg, #0a1b2d 0%, #07111c 100%);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at top, rgba(117,200,255,0.08), transparent 24%),
    linear-gradient(180deg, #091523 0%, #07111c 100%);
  color:var(--text);
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{
  max-width:100%;
  display:block;
  height:auto;
}

a{
  color:var(--accent);
  text-decoration:none;
  transition:color var(--ease), opacity var(--ease), transform var(--ease);
}

a:hover{
  color:#a7e0ff;
}

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

button{
  cursor:pointer;
}

::selection{
  background:rgba(117,200,255,0.32);
  color:#fff;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.container{
  width:min(calc(100% - 28px), var(--max));
  margin-inline:auto;
}

.container-narrow{
  width:min(calc(100% - 28px), var(--max-narrow));
  margin-inline:auto;
}

.section{
  padding: clamp(54px, 8vw, 104px) 0;
}

.section-tight{
  padding: clamp(34px, 6vw, 64px) 0;
}

.stack > * + *{
  margin-top:1rem;
}

.flow > * + *{
  margin-top:1.2em;
}

.grid{
  display:grid;
  gap:20px;
}

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

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

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

@media (max-width: 980px){
  .grid-4,
  .grid-3{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 700px){
  .grid-4,
  .grid-3,
  .grid-2{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Typography
   ========================================================= */

h1,h2,h3,h4,h5,h6{
  margin:0 0 .5em;
  color:var(--heading);
  line-height:1.08;
  letter-spacing:-0.02em;
}

h1{
  font-family:var(--font-serif);
  font-size: clamp(2.3rem, 8vw, 5.1rem);
  font-weight:700;
}

h2{
  font-family:var(--font-serif);
  font-size: clamp(1.7rem, 4.7vw, 3.2rem);
  font-weight:700;
}

h3{
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight:700;
}

h4{
  font-size:1.05rem;
  font-weight:700;
}

p{
  margin:0 0 1.05em;
  color:var(--muted);
}

.lead{
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  line-height:1.75;
  color:#dcecff;
  max-width:70ch;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:16px;
  color:var(--accent-2);
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.kicker::before{
  content:"";
  width:36px;
  height:1px;
  background:linear-gradient(90deg, var(--accent-2), transparent);
}

.eyebrow{
  display:inline-block;
  padding:.45rem .8rem;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  color:#dbf5ff;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.muted{ color:var(--soft); }
.center{ text-align:center; }
.right{ text-align:right; }

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header{
  position:sticky;
  top:0;
  z-index:1100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background:rgba(5,12,21,0.68);
  border-bottom:1px solid rgba(255,255,255,0.08);
  transition:background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.site-header.scrolled{
  background:rgba(6,13,22,0.9);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(255,255,255,0.1);
}

.site-header .bar{
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:#fff;
  font-weight:800;
  letter-spacing:.02em;
}

.brand-logo{
  width:42px;
  height:42px;
  border-radius:14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 26%),
    linear-gradient(135deg, #4ab7ff 0%, #7cead2 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.22), 0 8px 28px rgba(0,0,0,.25);
  flex:0 0 auto;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-text strong{
  font-size:1rem;
  color:#fff;
}

.brand-text span{
  font-size:.72rem;
  color:var(--soft);
  letter-spacing:.08em;
  text-transform:uppercase;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:8px;
}

.site-nav a{
  padding:.75rem .9rem;
  border-radius:999px;
  color:#d9e7f5;
  font-weight:700;
  font-size:.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"]{
  background:rgba(255,255,255,0.08);
  color:#fff;
}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,0.05);
  color:#fff;
}

.nav-toggle svg{
  width:22px;
  height:22px;
}

@media (max-width: 920px){
  .nav-toggle{
    display:inline-flex;
  }

  .site-nav{
    position:fixed;
    inset:calc(var(--header-h) + 6px) 12px auto 12px;
    display:grid;
    gap:8px;
    padding:14px;
    background:rgba(8,16,28,0.98);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:22px;
    box-shadow: var(--shadow-lg);
    transform:translateY(-10px);
    opacity:0;
    pointer-events:none;
    transition:opacity var(--ease), transform var(--ease);
  }

  .site-nav.open{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }

  .site-nav a{
    border-radius:14px;
    padding:.9rem 1rem;
  }
}

/* =========================================================
   Hero / Feature sections
   ========================================================= */

.hero{
  position:relative;
  overflow:hidden;
  background:var(--gradient-hero);
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:140px;
  background:linear-gradient(180deg, transparent, rgba(7,17,28,0.95));
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  min-height:min(92vh, 860px);
  display:grid;
  align-items:end;
  padding: clamp(54px, 6vw, 76px) 0 clamp(42px, 5vw, 54px);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:end;
}

@media (max-width: 900px){
  .hero-inner{
    min-height:auto;
    padding-top:28px;
  }

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

.hero-copy{
  max-width:760px;
}

.hero-title{
  max-width:13ch;
  text-wrap:balance;
}

.hero-subtitle{
  max-width:64ch;
  font-size:clamp(1rem, 2.3vw, 1.25rem);
  color:#d9e8f7;
}

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

.hero-media{
  position:relative;
}

.hero-card{
  border-radius:30px;
  overflow:hidden;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:var(--shadow-lg);
}

.hero-card img{
  width:100%;
  aspect-ratio: 4 / 5;
  object-fit:cover;
}

.hero-card.tall img{
  aspect-ratio: 4 / 5.4;
}

.hero-meta{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.meta-pill{
  backdrop-filter: blur(10px);
  background:rgba(8,18,30,0.6);
  border:1px solid rgba(255,255,255,0.12);
  color:#fff;
  border-radius:999px;
  padding:.58rem .9rem;
  font-size:.78rem;
  font-weight:700;
}

/* =========================================================
   Buttons / chips / badges
   ========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  min-height:48px;
  padding:.82rem 1.05rem;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:800;
  line-height:1;
  transition:transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}

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

.btn-primary{
  color:#06121f;
  background:linear-gradient(135deg, #9fe4ff, #87f0d9);
  box-shadow:0 12px 28px rgba(117,200,255,0.24);
}

.btn-primary:hover{
  color:#06121f;
  box-shadow:0 16px 36px rgba(117,200,255,0.34);
}

.btn-secondary{
  color:#fff;
  background:rgba(255,255,255,0.06);
  border-color:rgba(255,255,255,0.13);
}

.btn-secondary:hover{
  color:#fff;
  background:rgba(255,255,255,0.1);
}

.btn-ghost{
  color:#dcecff;
  background:transparent;
  border-color:rgba(255,255,255,0.14);
}

.btn-full{
  width:100%;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .82rem;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  color:#e8f4ff;
  font-size:.84rem;
  font-weight:700;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.38rem .68rem;
  border-radius:999px;
  background:rgba(255,212,122,0.12);
  border:1px solid rgba(255,212,122,0.22);
  color:#ffe0a1;
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* =========================================================
   Cards / panels / sections
   ========================================================= */

.card,
.panel{
  background:linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
  border:1px solid rgba(255,255,255,0.12);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.card-body,
.panel-body{
  padding:clamp(16px, 3vw, 24px);
}

.card-media{
  position:relative;
  overflow:hidden;
}

.card-media img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  transition:transform 500ms ease;
}

.card:hover .card-media img{
  transform:scale(1.04);
}

.card-title{
  margin:0 0 10px;
  font-size:1.2rem;
}

.card p:last-child{
  margin-bottom:0;
}

.card-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  margin-top:8px;
  font-weight:800;
}

.feature-card{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:0;
}

.feature-card .card-media img{
  aspect-ratio: 5 / 4;
  height:100%;
}

@media (max-width: 840px){
  .feature-card{
    grid-template-columns:1fr;
  }
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
  align-items:center;
}

@media (max-width: 860px){
  .split{
    grid-template-columns:1fr;
  }
}

.surface{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  padding:clamp(18px, 3vw, 30px);
}

/* =========================================================
   Magazine / article layout
   ========================================================= */

.article{
  padding: clamp(28px, 5vw, 50px) 0 clamp(64px, 8vw, 92px);
}

.article-grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap:34px;
}

@media (max-width: 1020px){
  .article-grid{
    grid-template-columns:1fr;
  }
}

.article-body{
  min-width:0;
}

.article-body > *{
  max-width: min(100%, 72ch);
}

.article-body > figure,
.article-body > .full-bleed,
.article-body > .gallery,
.article-body > .pullquote,
.article-body > .data-strip{
  max-width:100%;
}

.article-body h2{
  margin-top:1.8em;
}

.article-body h3{
  margin-top:1.5em;
}

.article-body ul,
.article-body ol{
  margin:0 0 1.25em 1.2em;
  color:var(--muted);
}

.article-body li + li{
  margin-top:.4em;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  margin:18px 0 20px;
  color:var(--soft);
  font-size:.92rem;
}

.article-standfirst{
  font-size:clamp(1.1rem, 2.4vw, 1.36rem);
  line-height:1.8;
  color:#deebf7;
  max-width:60ch;
}

.article-cover{
  border-radius:32px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  margin: 22px 0 30px;
  border:1px solid rgba(255,255,255,.12);
}

.article-cover img{
  width:100%;
  aspect-ratio: 16 / 8.5;
  object-fit:cover;
}

.caption{
  margin-top:10px;
  color:var(--soft);
  font-size:.92rem;
}

.dropcap:first-letter{
  float:left;
  font-family:var(--font-serif);
  font-size:4.2rem;
  line-height:.82;
  padding:.08em .12em 0 0;
  color:#fff;
}

.pullquote{
  margin:32px 0;
  padding:22px 22px 22px 24px;
  border-left:3px solid var(--accent-2);
  background:rgba(255,255,255,0.05);
  border-radius:0 20px 20px 0;
}

.pullquote blockquote{
  margin:0;
  font-family:var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height:1.25;
  color:#fff;
}

.pullquote figcaption{
  margin-top:10px;
  color:var(--soft);
  font-size:.92rem;
}

.data-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin:28px 0;
}

.data-item{
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.09);
}

.data-item strong{
  display:block;
  font-size:1.55rem;
  color:#fff;
  line-height:1.05;
}

.data-item span{
  display:block;
  margin-top:6px;
  font-size:.92rem;
  color:var(--soft);
}

@media (max-width: 760px){
  .data-strip{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px){
  .data-strip{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Sidebar / TOC
   ========================================================= */

.sidebar{
  position:sticky;
  top:calc(var(--header-h) + 18px);
  align-self:start;
}

.toc{
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:var(--shadow-sm);
}

.toc h3{
  margin:0 0 12px;
  font-size:1rem;
  letter-spacing:.02em;
}

.toc ol,
.toc ul{
  list-style:none;
  margin:0;
  padding:0;
}

.toc li + li{
  margin-top:8px;
}

.toc a{
  display:block;
  padding:.5rem .7rem;
  border-radius:12px;
  color:#dceaf7;
  font-size:.95rem;
}

.toc a:hover,
.toc a.is-active{
  background:rgba(255,255,255,0.08);
  color:#fff;
}

/* =========================================================
   Gallery / media
   ========================================================= */

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

.gallery > *{
  grid-column: span 4;
}

.gallery figure{
  margin:0;
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
}

.gallery img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  cursor:zoom-in;
}

.gallery figcaption{
  padding:10px 12px 12px;
  color:var(--soft);
  font-size:.88rem;
}

.gallery .wide{
  grid-column: span 8;
}

.gallery .full{
  grid-column: 1 / -1;
}

@media (max-width: 900px){
  .gallery > *,
  .gallery .wide{
    grid-column: span 6;
  }
}

@media (max-width: 620px){
  .gallery > *,
  .gallery .wide,
  .gallery .full{
    grid-column: 1 / -1;
  }
}

.media-frame{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow-lg);
}

.media-frame img{
  width:100%;
  object-fit:cover;
}

.media-overlay{
  position:absolute;
  inset:auto 0 0 0;
  padding:18px;
  background:linear-gradient(180deg, transparent, rgba(5,12,20,0.88));
}

/* =========================================================
   Horizontal scroller
   ========================================================= */

.scroller{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns: minmax(270px, 34%);
  gap:16px;
  overflow:auto;
  padding-bottom:8px;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
}

.scroller > *{
  scroll-snap-align:start;
}

@media (max-width: 900px){
  .scroller{
    grid-auto-columns: minmax(260px, 74%);
  }
}

@media (max-width: 560px){
  .scroller{
    grid-auto-columns: 86%;
  }
}

/* =========================================================
   Tables
   ========================================================= */

.table-wrap{
  overflow:auto;
  margin:24px 0;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.04);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:640px;
}

th, td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,0.08);
}

th{
  color:#fff;
  font-size:.9rem;
  letter-spacing:.03em;
  background:rgba(255,255,255,0.05);
}

td{
  color:var(--muted);
}

/* =========================================================
   FAQ / accordion
   ========================================================= */

.faq{
  display:grid;
  gap:12px;
}

.faq-item{
  border:1px solid rgba(255,255,255,0.1);
  border-radius:20px;
  background:rgba(255,255,255,0.05);
  overflow:hidden;
}

.faq-button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 18px 18px 20px;
  background:transparent;
  border:0;
  color:#fff;
  font-weight:800;
  text-align:left;
}

.faq-button span:last-child{
  flex:0 0 auto;
  transition:transform var(--ease);
}

.faq-item.open .faq-button span:last-child{
  transform:rotate(45deg);
}

.faq-panel{
  display:grid;
  grid-template-rows:0fr;
  transition:grid-template-rows var(--ease);
}

.faq-item.open .faq-panel{
  grid-template-rows:1fr;
}

.faq-panel-inner{
  overflow:hidden;
  padding:0 20px;
}

.faq-item.open .faq-panel-inner{
  padding-bottom:18px;
}

/* =========================================================
   Forms / search / filters
   ========================================================= */

.field,
.input,
.select,
textarea{
  width:100%;
  min-height:50px;
  padding:.9rem 1rem;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.06);
  color:#fff;
  outline:none;
}

.input::placeholder,
textarea::placeholder{
  color:#9ab0c6;
}

.field:focus,
.input:focus,
.select:focus,
textarea:focus{
  border-color:rgba(117,200,255,0.55);
  box-shadow:0 0 0 4px rgba(117,200,255,0.12);
}

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

@media (max-width: 640px){
  .form-row{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Utilities / spacing / alignment
   ========================================================= */

.mt-0{ margin-top:0 !important; }
.mb-0{ margin-bottom:0 !important; }
.pt-0{ padding-top:0 !important; }
.pb-0{ padding-bottom:0 !important; }

.full-bleed{
  width:100%;
}

.rounded{ border-radius:var(--radius); }
.rounded-lg{ border-radius:var(--radius-lg); }
.shadow-lg{ box-shadow:var(--shadow-lg); }
.hidden{ display:none !important; }

/* =========================================================
   Reveal animation
   ========================================================= */

.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity:1;
    transform:none;
    transition:none;
  }

  html{
    scroll-behavior:auto;
  }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer{
  margin-top:56px;
  padding:42px 0 28px;
  border-top:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 70% 0%, rgba(117,200,255,0.08), transparent 30%),
    rgba(255,255,255,0.02);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr .8fr;
  gap:22px;
}

.footer-title{
  color:#fff;
  margin:0 0 10px;
  font-size:1rem;
}

.footer-list{
  list-style:none;
  margin:0;
  padding:0;
}

.footer-list li + li{
  margin-top:8px;
}

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

.footer-list a:hover{
  color:#fff;
}

.footer-bottom{
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex;
  flex-wrap:wrap;
  gap:12px 20px;
  justify-content:space-between;
  color:var(--soft);
  font-size:.92rem;
}

@media (max-width: 920px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 620px){
  .footer-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   Back to top
   ========================================================= */

.back-to-top{
  position:fixed;
  right:14px;
  bottom:14px;
  z-index:1200;
  width:50px;
  height:50px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(7,18,31,0.85);
  color:#fff;
  box-shadow:var(--shadow-md);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity var(--ease), transform var(--ease), background var(--ease);
}

.back-to-top.show{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.back-to-top:hover{
  background:rgba(18,34,52,0.95);
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox{
  position:fixed;
  inset:0;
  z-index:2000;
  display:grid;
  place-items:center;
  background:rgba(2,7,12,0.88);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  pointer-events:none;
  transition:opacity var(--ease);
}

.lightbox.open{
  opacity:1;
  pointer-events:auto;
}

.lightbox-inner{
  width:min(calc(100% - 20px), 1200px);
  max-height:calc(100dvh - 20px);
  position:relative;
}

.lightbox img{
  width:100%;
  max-height:calc(100dvh - 20px);
  object-fit:contain;
  border-radius:20px;
  box-shadow:var(--shadow-lg);
}

.lightbox-close{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(5,12,22,0.72);
  color:#fff;
}

/* =========================================================
   Empty state / page header / breadcrumbs
   ========================================================= */

.page-header{
  padding: clamp(26px, 6vw, 52px) 0 10px;
}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
  color:var(--soft);
  font-size:.92rem;
}

.breadcrumbs a{
  color:var(--soft);
}

.breadcrumbs a:hover{
  color:#fff;
}

.page-title{
  max-width:15ch;
}

.page-intro{
  max-width:64ch;
  color:#dcecff;
  font-size:1.1rem;
}

.empty-state{
  text-align:center;
  padding:42px 18px;
  border:1px dashed rgba(255,255,255,0.18);
  border-radius:24px;
  background:rgba(255,255,255,0.03);
}

/* =========================================================
   Mobile polish
   ========================================================= */

@media (max-width: 560px){
  body{
    font-size:15.5px;
  }

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

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .btn{
    width:100%;
  }

  .article-cover{
    border-radius:22px;
  }

  .card,
  .panel,
  .surface{
    border-radius:22px;
  }
}
