/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:    #013d4f;
  --color-text:       rgba(0,0,0,.88);
  --color-text-muted: rgba(0,0,0,.55);
  --color-text-faint: rgba(0,0,0,.45);
  --color-bg:         #fff;
  --color-surface:    rgba(0,0,0,.025);
  --color-border:     rgba(0,0,0,.06);
  --ease-spring:  cubic-bezier(0.34,1.56,0.64,1);
  --ease-smooth:  cubic-bezier(0.2,0,0,1);
  --ease-title:   cubic-bezier(0.34,1.2,0.64,1);
}

[data-theme="dark"] {
  --color-text:       rgba(255,255,255,.92);
  --color-text-muted: rgba(255,255,255,.55);
  --color-text-faint: rgba(255,255,255,.55);
  --color-bg:         #0f0f10;
  --color-surface:    rgba(255,255,255,.04);
  --color-border:     rgba(255,255,255,.08);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

body {
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:1rem;
  line-height:1.5;
  color:var(--color-text);
  background:var(--color-bg);
  overflow-x:hidden;
  transition:background 280ms var(--ease-smooth),color 280ms var(--ease-smooth);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width:1280px; margin:0 auto; padding:0 1rem; }

.main-content {
  padding:calc(80px + 2rem) 1rem 2rem;
  min-height:100vh;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom:2rem; text-align:center; }

.section-header h1 {
  font-family:"Satoshi",sans-serif;
  font-size:2.5rem;
  font-weight:700;
  color:var(--color-text);
  margin-bottom:.75rem;
  line-height:1.2;
}
.section-header p { font-size:1.125rem; color:var(--color-text-muted); margin:0; }

/* ============================================================
   HERO BANNER
   ============================================================ */
@keyframes hero-content-in {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

.hero-banner {
  position:relative;
  margin:calc(60px + 2rem) 1rem 0;
  border-radius:20px;
  height:clamp(280px,38vw,600px);
  overflow:hidden;
  background:var(--color-surface);
}
.hero-banner-img {
  width:100%; height:100%;
  object-fit:cover; object-position:center;
  display:block;
  transition:transform 800ms var(--ease-smooth);
}
.hero-banner:hover .hero-banner-img { transform:scale(1.025); }

.hero-overlay {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.44) 100%);
}
[data-theme="dark"] .hero-overlay {
  background:linear-gradient(135deg,rgba(0,0,0,.24) 0%,rgba(0,0,0,.6) 100%);
}

.hero-content {
  display:flex; flex-direction:column; align-items:center;
  gap:1.25rem; text-align:center; padding:1.5rem;
  animation:hero-content-in 700ms var(--ease-title) 220ms both;
}
.hero-title {
  font-family:"Satoshi",sans-serif;
  font-size:clamp(1.75rem,4.5vw,3.25rem);
  font-weight:700; color:#fff;
  line-height:1.15; margin:0;
  text-shadow:0 2px 24px rgba(0,0,0,.32);
  letter-spacing:-.015em;
}
.hero-subtitle {
  font-size:clamp(.875rem,1.6vw,1.0625rem);
  color:rgba(255,255,255,.88); margin:0;
  max-width:440px; line-height:1.6;
  text-shadow:0 1px 10px rgba(0,0,0,.22);
}
.hero-cta-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:.8rem 2.25rem;
  background:rgba(255,255,255,.95);
  color:rgba(0,0,0,.88);
  border-radius:14px; font-size:.9375rem; font-weight:600;
  text-decoration:none; border:none; cursor:pointer;
  letter-spacing:.01em;
  box-shadow:0 4px 22px rgba(0,0,0,.18);
  transition:background 160ms ease,transform 200ms var(--ease-spring),box-shadow 200ms ease;
}
.hero-cta-btn:hover  { background:#fff; transform:scale(1.05); box-shadow:0 8px 30px rgba(0,0,0,.22); }
.hero-cta-btn:active { transform:scale(.97); }
.hero-cta-btn:focus-visible { outline:2px solid rgba(0,100,120,.6); outline-offset:2px; }

/* ============================================================
   HOME — SECTIONS
   ============================================================ */
.home-content { padding:2rem 1rem; }

.home-feature,
.home-section,
.home-about {
  opacity:0; transform:translateY(26px);
  transition:opacity 640ms var(--ease-smooth),transform 640ms var(--ease-title);
}
.home-feature.is-visible,
.home-section.is-visible,
.home-about.is-visible { opacity:1; transform:translateY(0); }

.home-feature {
  display:grid; grid-template-columns:1fr 1fr;
  gap:2rem; align-items:center;
  padding:1.5rem 0 2rem;
}
.home-feature-img-col {
  border-radius:24px; overflow:hidden; aspect-ratio:4/3;
  background:var(--color-surface); border:1px solid var(--color-border);
}
.home-feature-img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform 400ms var(--ease-smooth);
}
.home-feature-img-col:hover .home-feature-img { transform:scale(1.05); }
.home-feature-text-col { display:flex; flex-direction:column; gap:1.25rem; }

.home-feature-eyebrow {
  font-size:.875rem; font-weight:600; color:var(--color-primary);
  letter-spacing:.08em; text-transform:uppercase; margin:0;
}
.home-feature-title {
  font-family:"Satoshi",sans-serif;
  font-size:clamp(1.5rem,2.8vw,2.25rem);
  font-weight:700; color:var(--color-text); line-height:1.2; margin:0;
}
.home-feature-body { font-size:1rem; color:var(--color-text-muted); line-height:1.72; margin:0; }

.home-section { padding:1.5rem 0 2rem; }
.home-section-header { margin-bottom:1.5rem; }
.home-section-title {
  font-family:"Satoshi",sans-serif;
  font-size:clamp(1.375rem,2.2vw,1.875rem);
  font-weight:700; color:var(--color-text); line-height:1.2; margin:0 0 .5rem;
}
.home-section-footer { margin-top:1.5rem; display:flex; justify-content:center; }

.featured-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1rem;
}

.home-about { padding:2rem 0; display:flex; justify-content:center; }
.home-about-inner {
  max-width:640px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:1.25rem;
}

/* ============================================================
   NEWS GRID & CARDS
   ============================================================ */
.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }

.news-card {
  display:flex; flex-direction:column; gap:.75rem;
  padding:1.25rem; border-radius:18px;
  background:var(--color-surface); border:1px solid var(--color-border);
  cursor:pointer;
  transition:box-shadow 200ms ease,transform 220ms var(--ease-spring);
}
.news-card:hover { box-shadow:0 8px 28px rgba(0,0,0,.09); transform:translateY(-3px) scale(1.01); }

.news-card-date {
  font-size:.75rem; font-weight:600; color:var(--color-primary);
  letter-spacing:.05em; text-transform:uppercase; margin:0;
}
.news-card-title {
  font-family:"Satoshi",sans-serif; font-size:1.125rem;
  font-weight:700; color:var(--color-text); line-height:1.25; margin:0;
}
.news-card-excerpt { font-size:.875rem; color:var(--color-text-muted); line-height:1.65; margin:0; flex:1; }
.news-card-link {
  font-size:.875rem; font-weight:600; color:var(--color-primary);
  text-decoration:none; align-self:flex-start;
  transition:opacity 160ms ease;
}
.news-card-link:hover { opacity:.72; }

/* ============================================================
   ARTICLE
   ============================================================ */
.article-layout {
  max-width:760px; margin:0 auto;
  display:flex; flex-direction:column; gap:1.5rem;
}
.article-breadcrumb { font-size:.875rem; color:var(--color-text-faint); }
.article-breadcrumb a { color:var(--color-primary); text-decoration:none; }
.article-breadcrumb a:hover { text-decoration:underline; }

.article-header { display:flex; flex-direction:column; gap:.75rem; }
.article-kicker {
  font-size:.75rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--color-primary); margin:0;
}
.article-title {
  font-family:"Satoshi",sans-serif;
  font-size:clamp(1.6rem,2.6vw,2.1rem);
  font-weight:700; line-height:1.2; margin:0; color:var(--color-text);
}
.article-meta { font-size:.875rem; color:var(--color-text-faint); }

.article-body { font-size:1rem; line-height:1.8; color:rgba(0,0,0,.78); }
.article-body p { margin-bottom:1rem; }
.article-body h2,.article-body h3 {
  font-family:"Satoshi",sans-serif;
  margin:1.25rem 0 .75rem; color:rgba(0,0,0,.9);
}
.article-body ul { padding-left:1.2rem; margin-bottom:1rem; }
.article-footer {
  border-top:1px solid var(--color-border);
  padding-top:1rem; font-size:.875rem; color:var(--color-text-faint);
}
[data-theme="dark"] .article-body         { color:rgba(255,255,255,.75); }
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3      { color:rgba(255,255,255,.92); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-layout {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:2rem; align-items:stretch; max-width:900px; margin:0 auto;
}
.about-portrait {
  margin:0; border-radius:24px; overflow:hidden; width:100%;
  background:var(--color-surface); border:1px solid var(--color-border);
}
.about-portrait img { width:100%; height:100%; object-fit:cover; display:block; }

.about-copy { display:flex; flex-direction:column; gap:1rem; }
.about-copy p { font-size:1rem; color:rgba(0,0,0,.75); line-height:1.8; }
[data-theme="dark"] .about-copy p { color:rgba(255,255,255,.76); }

.about-pill-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.about-pill {
  font-size:.75rem; text-transform:uppercase; letter-spacing:.08em;
  padding:.3rem .8rem; border-radius:999px;
  background:var(--color-surface); color:var(--color-text-muted);
}
.about-stats {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem; margin-top:1rem;
}
.about-stat {
  padding:1rem; border-radius:16px;
  border:1px solid var(--color-border); background:var(--color-surface);
}
.about-stat-value {
  display:block; font-family:"Satoshi",sans-serif;
  font-size:1.4rem; font-weight:700; color:var(--color-text);
}
.about-stat-label {
  display:block; margin-top:.25rem;
  font-size:.75rem; text-transform:uppercase; letter-spacing:.08em;
  color:var(--color-text-muted);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:960px) {
  .section-header h1 { font-size:2rem; }
  .featured-grid { grid-template-columns:repeat(2,1fr); }
  .news-grid    { grid-template-columns:repeat(2,1fr); }
  .about-layout { grid-template-columns:1fr; }
  .about-portrait { aspect-ratio:2/3; }
}

@media (max-width:768px) {
  .main-content { padding:calc(70px + 1.5rem) .75rem 1.5rem; }
  .section-header h1 { font-size:1.75rem; }
  .section-header p  { font-size:1rem; }
  .hero-banner {
    margin:calc(60px + 2rem) 1rem 0;
    border-radius:16px; height:clamp(240px,55vw,360px);
  }
  .home-feature { grid-template-columns:1fr; gap:1.5rem; }
  .news-grid    { grid-template-columns:1fr; }
  #home-featured-articles .news-card:not(:first-child) { display:none; }
  .news-mobile-footer { display:flex; justify-content:center; margin-top:1.25rem; }
  .featured-grid {
    display:flex; flex-direction:row;
    overflow-x:auto; scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    gap:.75rem; padding-bottom:.5rem;
    scrollbar-width:none; -ms-overflow-style:none;
  }
  .featured-grid::-webkit-scrollbar { display:none; }
  .featured-grid .product-card {
    flex:0 0 68vw; max-width:260px; scroll-snap-align:start;
  }
  .article-layout { padding:0 .25rem; }
  .about-stats { display:none; }
}

@media (min-width:769px) { .news-mobile-footer { display:none; } }

@media (max-width:480px) {
  .hero-title { font-size:1.6rem; }
  .hero-cta-btn { width:100%; max-width:280px; }
  .featured-grid .product-card { flex:0 0 78vw; }
}
