/* ============================================================
   懶惰熊 · Lazy Bear Portfolio
   White + light blue, with cream warmth and candlelight gold
   ============================================================ */

:root {
  --white: #FBFDFF;
  --cream: #FAF6EE;       /* warm parchment undertone */
  --paper: #F4F9FD;
  --mist: #ECF4FB;
  --ice: #DCEBF7;
  --sky: #B8D4E8;
  --blue: #6BA3D6;
  --deep: #2C5A8B;
  --night: #1B2C4A;       /* deep night navy */
  --gold: #C9A876;        /* warm candlelight gold */
  --gold-soft: #E8D5B2;
  --blush: #F2E2D6;
  --ink: #25405E;
  --silver: #D8DEE5;

  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-script: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --font-cn: 'Noto Serif TC', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', system-ui, sans-serif;

  --shadow-soft: 0 10px 40px -20px rgba(27, 44, 74, 0.25);
  --shadow-card: 0 20px 60px -24px rgba(27, 44, 74, 0.30);
  --shadow-card-hover: 0 36px 80px -28px rgba(27, 44, 74, 0.45);

  --max-width: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.32, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -5%, var(--mist) 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 12%, var(--cream) 0%, transparent 55%),
    radial-gradient(900px 700px at 50% 110%, var(--ice) 0%, transparent 55%),
    var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
body.is-modal-open { overflow: hidden; }

::selection { background: var(--gold-soft); color: var(--night); }

a, button { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------- Background star canvas ------------------- */
.starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ------------------- Mouse sparkle trail ------------------- */
.trail { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.trail span {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: trail-fade 900ms var(--ease) forwards;
  will-change: transform, opacity;
}
.trail span.gold {
  background: radial-gradient(circle, #fff 0%, #E8D5B2 35%, transparent 70%);
  box-shadow: 0 0 8px rgba(201, 168, 118, 0.55);
}
.trail span.blue {
  background: radial-gradient(circle, #fff 0%, #B8D4E8 35%, transparent 70%);
  box-shadow: 0 0 8px rgba(107, 163, 214, 0.55);
}
@keyframes trail-fade {
  0%   { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.3); }
}

/* ------------------- Sparkles ------------------- */
.sparkles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sparkles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--sky) 60%, transparent 70%);
  opacity: 0;
  animation: twinkle 6s var(--ease) infinite;
}
.sparkles span:nth-child(odd) {
  background: radial-gradient(circle, #fff, var(--gold-soft) 60%, transparent 70%);
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 0.9; transform: scale(1.4); }
}

/* ------------------- Top bar ------------------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.85), rgba(251, 253, 255, 0.3));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 212, 232, 0.4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--night);
}
.brand__sigil {
  width: 28px; height: 28px;
  animation: spin-slow 90s linear infinite;
}
.brand__name {
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 6px;
  padding-left: 4px;
  color: var(--night);
}
.brand__en {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  border-left: 1px solid var(--sky);
  padding-left: 12px;
  padding-top: 2px;
}
.top-bar__meta {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--blue);
  text-transform: uppercase;
}
@keyframes spin-slow    { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* ------------------- Hero ------------------- */
.hero {
  position: relative;
  padding: 160px 24px 70px;
  text-align: center;
  z-index: 2;
}
.hero__ornament {
  position: absolute;
  top: 50%;
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 1 / 1;
  opacity: 0.35;
  pointer-events: none;
}
.hero__ornament svg {
  width: 100%; height: 100%;
  animation: spin-slow 120s linear infinite;
  transform-origin: center;
}
.hero__ornament--left  { left: -60px;  transform: translateY(-50%); }
.hero__ornament--right { right: -60px; transform: translateY(-50%); }
.hero__ornament--right svg { animation-name: spin-reverse; animation-duration: 100s; }

/* Draw-in stroke animation for hero ornaments */
.draw {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: draw-in 2.4s var(--ease) forwards;
}
.draw--d0 { animation-delay: 0.1s; }
.draw--d1 { animation-delay: 0.45s; }
.draw--d2 { animation-delay: 0.85s; }
.draw--d3 { animation-delay: 1.15s; }
@keyframes draw-in { to { stroke-dashoffset: 0; } }

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 14px;
  padding-left: 14px;
  color: var(--night);
  margin-bottom: 18px;
  text-shadow: 0 0 30px rgba(107, 163, 214, 0.15);
}
.hero__intro {
  max-width: 620px;
  margin: 0 auto 28px;
  font-family: var(--font-cn);
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 2px;
  line-height: 2;
  color: var(--ink);
  opacity: 0.85;
}
.hero__divider {
  width: clamp(180px, 32vw, 320px);
  margin: 0 auto;
  opacity: 0.8;
}
.hero__divider svg { width: 100%; height: auto; }

/* ------------------- Works grid ------------------- */
.works {
  position: relative;
  padding: 30px 24px 120px;
  z-index: 2;
}
.cards {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
}

/* ------------------- Card (only sigil + typography) ------------------- */
.card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border-radius: 16px;
  padding: 32px 24px 26px;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--sky);
  border-radius: 10px;
  pointer-events: none;
}
.card::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 168, 118, 0.45);
  border-radius: 7px;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}
.card:hover .card__sigil { transform: rotate(60deg); }

.card__corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.7;
  z-index: 2;
}
.card__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.card__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.card__corner--bl { bottom: 22px; left: 18px; border-right: 0; border-top: 0; }
.card__corner--br { bottom: 22px; right: 18px; border-left: 0; border-top: 0; }

.card__no {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  margin: 4px 0 12px;
}
.card__sigil {
  position: relative;
  z-index: 2;
  width: clamp(140px, 45%, 175px);
  aspect-ratio: 1 / 1;
  margin: 4px auto 18px;
  transition: transform 2.4s var(--ease);
  filter: drop-shadow(0 6px 20px rgba(107, 163, 214, 0.25));
}
.card__sigil svg { width: 100%; height: 100%; }

.card__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: 10px;
  padding-left: 10px;
  color: var(--night);
  margin-bottom: 6px;
}
.card__title-en {
  position: relative;
  z-index: 2;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--blue);
  margin-bottom: 16px;
}
.card__tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-cn);
  font-size: 13px;
  letter-spacing: 1.5px;
  line-height: 1.9;
  color: var(--ink);
  opacity: 0.75;
  padding: 0 8px;
}
.card__hint {
  position: relative;
  z-index: 2;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gold);
  padding-top: 16px;
  border-top: 1px dashed rgba(201, 168, 118, 0.35);
  width: 70%;
}

/* ------------------- Modal (expanded card view) ------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(27, 44, 74, 0.55);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
}
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  width: min(100%, 760px);
  max-height: 92vh;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% -10%, rgba(201, 168, 118, 0.20), transparent 55%),
    radial-gradient(circle at 100% 110%, rgba(107, 163, 214, 0.28), transparent 55%),
    linear-gradient(155deg, var(--night) 0%, #243a5e 100%);
  color: #EAF2F9;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: scale(0.5) rotateY(-90deg);
  opacity: 0;
  transition:
    transform 0.85s var(--ease-bounce),
    opacity   0.5s var(--ease);
}
.modal-backdrop.is-open .modal {
  transform: scale(1) rotateY(0);
  opacity: 1;
}
.modal::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 168, 118, 0.45);
  border-radius: 16px;
  pointer-events: none;
  z-index: 3;
}
.modal::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(234, 242, 249, 0.15);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}

.modal__corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--gold-soft);
  opacity: 0.9;
  z-index: 4;
}
.modal__corner--tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.modal__corner--tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.modal__corner--bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.modal__corner--br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }

/* Close button — viewport-fixed, outside modal transform context */
.modal-close-global {
  position: fixed;
  top: max(20px, env(safe-area-inset-top, 0px) + 12px);
  right: max(20px, env(safe-area-inset-right, 0px) + 12px);
  z-index: 110;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27, 44, 74, 0.65);
  border: 1px solid rgba(232, 213, 178, 0.55);
  color: var(--gold-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6) rotate(-90deg);
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.modal-close-global svg { width: 18px; height: 18px; }
.modal-backdrop.is-open .modal-close-global {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) rotate(0);
  transition-delay: 0.4s;
}
.modal-close-global:hover {
  background: var(--gold);
  color: var(--night);
  border-color: var(--gold);
  transform: rotate(90deg);
}

.modal__inner {
  position: relative;
  z-index: 2;
  padding: 56px clamp(24px, 5vw, 56px) 48px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,118,0.5) transparent;
}
.modal__inner::-webkit-scrollbar { width: 6px; }
.modal__inner::-webkit-scrollbar-thumb { background: rgba(201,168,118,0.5); border-radius: 999px; }

.modal__sigil {
  width: clamp(120px, 18vw, 160px);
  aspect-ratio: 1/1;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 24px rgba(201, 168, 118, 0.35));
}
.modal__sigil svg { width: 100%; height: 100%; }

.modal__no {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 10px;
}
.modal__title {
  text-align: center;
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 12px;
  padding-left: 12px;
  color: #FFFDF6;
  margin-bottom: 6px;
}
.modal__title-en {
  text-align: center;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 5px;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.modal__divider {
  width: 200px;
  margin: 0 auto 22px;
  opacity: 0.85;
}
.modal__divider svg { width: 100%; height: auto; }
.modal__tagline {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 40px;
  font-family: var(--font-cn);
  font-size: clamp(15px, 1.5vw, 17px);
  letter-spacing: 3px;
  line-height: 2;
  color: rgba(234, 242, 249, 0.92);
}

.modal__section { margin-bottom: 36px; }
.modal__section-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 7px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  text-align: center;
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 24px;
}
.feature {
  display: flex;
  gap: 14px;
  padding: 16px 16px;
  background: rgba(234, 242, 249, 0.04);
  border: 1px solid rgba(201, 168, 118, 0.22);
  border-radius: 12px;
  transition: all 0.4s var(--ease);
}
.feature:hover {
  background: rgba(234, 242, 249, 0.07);
  border-color: rgba(201, 168, 118, 0.45);
  transform: translateY(-2px);
}
.feature__mark {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
  margin-top: 4px;
}
.feature__name {
  font-family: var(--font-cn);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 4px;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.feature__desc {
  font-family: var(--font-cn);
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.9;
  color: rgba(234, 242, 249, 0.78);
}

.modal__meta {
  margin: 4px auto 36px;
  padding: 18px 24px;
  max-width: 560px;
  background: rgba(234, 242, 249, 0.04);
  border-top: 1px solid rgba(201, 168, 118, 0.28);
  border-bottom: 1px solid rgba(201, 168, 118, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meta-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.meta-row__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  min-width: 56px;
}
.meta-row__divider {
  color: var(--gold);
  opacity: 0.5;
}
.meta-row__value {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(234, 242, 249, 0.85);
}

.modal__section--why .modal__why {
  font-family: var(--font-cn);
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 2.1;
  color: rgba(234, 242, 249, 0.88);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
  position: relative;
  padding: 0 30px;
}
.modal__section--why .modal__why::before,
.modal__section--why .modal__why::after {
  content: '“';
  position: absolute;
  font-family: var(--font-script);
  font-style: normal;
  font-size: 36px;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
}
.modal__section--why .modal__why::before { left: 0; top: -6px; }
.modal__section--why .modal__why::after  { content: '”'; right: 0; bottom: -10px; }

.modal__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 320px;
  margin: 16px auto 8px;
  padding: 16px 32px;
  font-family: var(--font-cn);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  box-shadow: 0 16px 36px -12px rgba(201, 168, 118, 0.8);
}
.modal__open:hover {
  transform: translateY(-2px);
  letter-spacing: 8px;
  box-shadow: 0 24px 44px -12px rgba(201, 168, 118, 1);
}

/* ------------------- Footer ------------------- */
.footer {
  position: relative;
  padding: 60px 24px;
  text-align: center;
  z-index: 2;
}
.footer__sigil {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  animation: spin-slow 80s linear infinite;
}
.footer__line {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--blue);
}
.footer__line--muted {
  font-family: var(--font-cn);
  color: var(--ink);
  opacity: 0.55;
  margin-top: 6px;
  letter-spacing: 3px;
}

/* ------------------- Reveal on scroll ------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------- Hero entrance choreography ------------------- */
.hero .hero__eyebrow[data-reveal] { transition-delay: 0.45s; }
.hero .hero__title[data-reveal]   { transition-delay: 0.95s; }
.hero .hero__intro[data-reveal]   { transition-delay: 1.55s; }
.hero .hero__divider[data-reveal] { transition-delay: 1.95s; }

.hero__title.is-revealed {
  animation: title-glow 2.6s var(--ease) 1.2s 1;
}
@keyframes title-glow {
  0%   { text-shadow: 0 0 30px rgba(107, 163, 214, 0.15); }
  35%  { text-shadow: 0 0 60px rgba(201, 168, 118, 0.6),
                       0 0 110px rgba(107, 163, 214, 0.45); }
  100% { text-shadow: 0 0 30px rgba(107, 163, 214, 0.15); }
}

/* ------------------- Reduced motion ------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .modal { transform: scale(1) rotateY(0); opacity: 1; }
}

/* ------------------- Responsive ------------------- */
@media (max-width: 720px) {
  .top-bar { padding: 14px 18px; }
  .top-bar__meta { display: none; }
  .brand__name { font-size: 15px; letter-spacing: 4px; }
  .brand__en { font-size: 9px; letter-spacing: 3px; padding-left: 8px; }

  .hero { padding: 120px 18px 40px; }
  .hero__ornament { display: none; }
  .hero__title { letter-spacing: 8px; padding-left: 8px; }
  .hero__intro { letter-spacing: 1px; line-height: 1.9; }

  .works { padding: 20px 18px 80px; }
  .cards { gap: 24px; grid-template-columns: 1fr; }
  .card { aspect-ratio: 3 / 3.6; max-width: 360px; margin: 0 auto; }

  /* Modal: full-bleed, top-anchored on mobile so X is always near viewport top */
  .modal-backdrop {
    padding: 14px 12px;
    align-items: flex-start;
  }
  .modal {
    width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 18px;
  }
  .modal__inner {
    padding: 44px 20px 32px;
    max-height: calc(100vh - 28px);
  }
  .modal__corner { width: 18px; height: 18px; }
  .modal__corner--tl, .modal__corner--tr { top: 16px; }
  .modal__corner--bl, .modal__corner--br { bottom: 16px; }
  .modal__corner--tl, .modal__corner--bl { left: 16px; }
  .modal__corner--tr, .modal__corner--br { right: 16px; }

  .modal__title { font-size: 28px; letter-spacing: 8px; padding-left: 8px; }
  .modal__title-en { font-size: 14px; letter-spacing: 4px; }
  .modal__sigil { width: 110px; }
  .modal__tagline { font-size: 14px; letter-spacing: 2px; margin-bottom: 30px; padding: 0 6px; }

  .modal__section-label { font-size: 10px; letter-spacing: 5px; margin-bottom: 14px; }
  .features { gap: 12px; grid-template-columns: 1fr; }
  .feature { padding: 14px 14px; }
  .feature__name { font-size: 14px; letter-spacing: 3px; }
  .feature__desc { font-size: 12.5px; letter-spacing: 0.5px; line-height: 1.85; }

  .modal__meta { padding: 14px 18px; margin-bottom: 28px; }
  .meta-row { font-size: 12px; gap: 8px; }
  .meta-row__label { font-size: 9px; letter-spacing: 4px; min-width: 44px; }
  .meta-row__value { font-size: 11px; letter-spacing: 2px; }

  .modal__why { font-size: 13px; letter-spacing: 1px; padding: 0 24px; }
  .modal__open { padding: 14px 28px; font-size: 13px; letter-spacing: 5px; }

  .modal-close-global {
    width: 42px; height: 42px;
    background: rgba(27, 44, 74, 0.85);
  }
}

@media (max-width: 420px) {
  .hero__title { font-size: 36px; letter-spacing: 6px; padding-left: 6px; }
  .hero__intro { font-size: 13px; }
  .card { aspect-ratio: 3 / 3.5; }
  .modal__title { font-size: 24px; letter-spacing: 6px; padding-left: 6px; }
}
