/* ==========================================================================
   Nordwhim Curios — Nordic Wellness Editorial stylesheet
   nordwhimcurios.rest · © 2026
   ========================================================================== */

:root {
  --primary: #426B73;
  --secondary: #263E43;
  --accent: #E5A66A;
  --bg: #F2F4EF;
  --surface: #FFFFFF;
  --text: #202C30;
  --muted: #7C8988;
  --highlight: #DDE9E4;
  --border: #D8E0DC;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 22px 60px -28px rgba(38, 62, 67, .42);
  --shadow-soft: 0 10px 30px -18px rgba(38, 62, 67, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--secondary); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.narrow { width: min(820px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--secondary); color: #fff; padding: .7rem 1rem; border-radius: 10px;
  text-decoration: none; transition: top .3s;
}
.skip-link:focus { top: 1rem; color: #fff; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--secondary);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.42rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: #3c4b4f; max-width: 58ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 600 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
em.accent { font-style: italic; color: var(--primary); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .9rem/1.1 var(--sans); text-decoration: none; letter-spacing: .01em;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--secondary); color: #fff; }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--highlight); color: var(--secondary); border-color: var(--highlight); }
.btn-accent { background: var(--accent); color: var(--secondary); }
.btn-accent:hover { background: #dc9554; color: var(--secondary); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: #fff; color: var(--secondary); }
.btn[aria-pressed="true"] { background: var(--highlight); border-color: var(--primary); color: var(--secondary); }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--border); background: rgba(255,255,255,.7); color: var(--secondary);
  padding: .5rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--secondary); color: #fff; border-color: var(--secondary); }

.tag {
  display: inline-block; padding: .32rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--secondary);
  font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.tag-accent { background: var(--accent); color: var(--secondary); }

/* ---------- Header (non-sticky) ---------- */
.site-header {
  position: relative; /* intentionally NOT fixed or sticky */
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(242, 244, 239, .9);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; position: relative; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--secondary); font-family: var(--serif); font-size: 1.32rem; line-height: 1.1; }
.brand:hover { color: var(--secondary); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font: 600 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .55rem .95rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .93rem; transition: background .3s, color .3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--highlight); color: var(--secondary); }
.nav-links .nav-cta a { background: var(--secondary); color: #fff; }
.nav-links .nav-cta a:hover { background: var(--primary); color: #fff; }
.menu-toggle { display: none; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1rem; color: var(--secondary); font-weight: 600; font-size: .9rem; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Image fallbacks ---------- */
.media {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--highlight) 0%, #c7d9d2 55%, #8fb0ae 100%);
}
.media::after {
  content: attr(data-fallback);
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  font-family: var(--serif); font-size: 1.1rem; color: var(--secondary);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.media.is-fallback::after { opacity: 1; }
.media.is-fallback img { opacity: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero: Nordic Motion Flow ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding: 5rem 0 6rem; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(242,244,239,.97) 0%, rgba(242,244,239,.9) 34%, rgba(242,244,239,.15) 62%, rgba(242,244,239,0) 100%);
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-layer { position: absolute; transition: transform 1.4s var(--ease); will-change: transform; }
.hero-layer .drift { width: 100%; height: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); animation: drift 16s ease-in-out infinite alternate; }
.hero-layer:nth-child(2) .drift { animation-duration: 19s; animation-delay: -4s; }
.hero-layer:nth-child(3) .drift { animation-duration: 22s; animation-delay: -8s; }
.hero-layer:nth-child(4) .drift { animation-duration: 18s; animation-delay: -2s; }
.hero-layer:nth-child(5) .drift { animation-duration: 24s; animation-delay: -11s; }
.layer-a { top: 8%; right: 4%; width: 23vw; max-width: 340px; aspect-ratio: 3 / 4; }
.layer-b { top: 50%; right: 23%; width: 17vw; max-width: 250px; aspect-ratio: 1; }
.layer-c { top: 12%; right: 29%; width: 13vw; max-width: 200px; aspect-ratio: 4 / 5; }
.layer-d { bottom: 5%; right: 3%; width: 16vw; max-width: 240px; aspect-ratio: 4 / 3; }
.layer-e { top: 5%; right: 47%; width: 8vw; max-width: 120px; aspect-ratio: 1; }
.layer-e .drift { border-radius: 50%; }
.geo { position: absolute; pointer-events: none; transition: transform 1.6s var(--ease); }
.geo-ring { width: 260px; aspect-ratio: 1; border: 1.5px solid rgba(66,107,115,.35); border-radius: 50%; top: 22%; right: 14%; }
.geo-ring::after { content: ""; position: absolute; inset: 30px; border: 1px dashed rgba(229,166,106,.6); border-radius: 50%; animation: spin 60s linear infinite; }
.geo-dot { width: 74px; aspect-ratio: 1; background: var(--accent); border-radius: 50%; bottom: 18%; right: 40%; opacity: .85; animation: floaty 9s ease-in-out infinite; }
.geo-arch { width: 150px; height: 220px; background: var(--highlight); border-radius: 999px 999px 0 0; bottom: 0; right: 36%; opacity: .9; }
.geo-mat { width: 220px; height: 26px; background: var(--primary); border-radius: 14px; top: 44%; right: 2%; transform: rotate(-14deg); opacity: .8; box-shadow: 0 16px 30px -12px rgba(38,62,67,.5); }

.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.mask-line { display: block; overflow: hidden; padding-bottom: .08em; }
.mask-line > span { display: inline-block; transform: translateY(112%); animation: rise 1.15s var(--ease) forwards; }
.mask-line:nth-child(2) > span { animation-delay: .14s; }
.mask-line:nth-child(3) > span { animation-delay: .28s; }
.hero-copy .lead, .hero-copy .search-box, .hero-copy .chip-row { opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards; }
.hero-copy .search-box { animation-delay: .65s; }
.hero-copy .chip-row { animation-delay: .8s; }

.search-box {
  display: flex; align-items: center; gap: .5rem; margin: 2rem 0 1rem;
  background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: 999px;
  padding: .4rem .4rem .4rem 1.3rem; box-shadow: var(--shadow-soft); backdrop-filter: blur(10px);
  max-width: 560px;
}
.search-box svg { flex: none; color: var(--muted); }
.search-box input { flex: 1; border: 0; background: transparent; font: 500 1rem var(--sans); color: var(--text); padding: .7rem 0; min-width: 0; }
.search-box input:focus { outline: none; }
.search-box:focus-within { border-color: var(--primary); }

.rotating-badge { position: absolute; z-index: 3; left: min(560px, 46vw); bottom: 9%; width: 132px; height: 132px; }
.rotating-badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.rotating-badge .badge-core { position: absolute; inset: 34px; border-radius: 50%; background: var(--secondary); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-head p { color: #46565a; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--secondary); color: #e8efec; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }

/* ---------- Workout cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }
.workout-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), opacity .4s;
}
.workout-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.workout-card .media { display: block; aspect-ratio: 4 / 3; }
.workout-card .media img { transition: transform 1.3s var(--ease); }
.workout-card:hover .media img { transform: scale(1.07); }
.badge-row { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .4rem; z-index: 2; flex-wrap: wrap; }
.card-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.4rem 1.5rem 1.55rem; flex: 1; }
.card-kicker { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card-body h3 { margin: 0; font-size: 1.5rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--primary); }
.card-body > p { margin: 0; color: #46565a; font-size: .96rem; }
.meta-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin: .3rem 0 .4rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.meta-list dt { font: 600 .64rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta-list dd { margin: .15rem 0 0; font-size: .86rem; font-weight: 500; color: var(--secondary); }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .55rem; }
.card-actions .btn { flex: 1 1 auto; }
.duration-bar { height: 4px; background: var(--highlight); border-radius: 4px; overflow: hidden; }
.duration-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 1.4s var(--ease); }
.workout-card.in .duration-bar span { width: var(--w); }
.is-hidden { display: none !important; }

/* Featured overlapping editorial layout */
.featured-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.6rem; align-items: start; }
.featured-grid > :nth-child(1) { grid-column: 1 / 6; }
.featured-grid > :nth-child(2) { grid-column: 6 / 10; margin-top: 7rem; position: relative; z-index: 2; }
.featured-grid > :nth-child(3) { grid-column: 10 / 13; margin-top: 2rem; transform: translateX(-2.2rem); }
.featured-grid > :nth-child(3):hover { transform: translateX(-2.2rem) translateY(-7px); }
.featured-grid > :nth-child(1) .media { aspect-ratio: 4 / 5; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.results-count { font-weight: 600; color: var(--secondary); }
.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--border); border-radius: var(--radius); background: rgba(255,255,255,.6); }

/* ---------- Vertical training columns ---------- */
.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.training-column {
  position: relative; min-height: 420px; border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff;
}
.training-column img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.training-column::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(38,62,67,0) 25%, rgba(38,62,67,.88) 100%); }
.training-column:hover img { transform: scale(1.06); }
.training-column:nth-child(2) { margin-top: 3.5rem; }
.training-column .num { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--accent); }
.training-column h3 { color: #fff; margin: .4rem 0 .5rem; }
.training-column p { margin: 0; color: #e3ece9; font-size: .95rem; }

/* ---------- Weekly plan panel ---------- */
.week-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.week-panel {
  background: var(--secondary); color: #e8efec; border-radius: var(--radius-lg); padding: 2.2rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  animation: floaty 10s ease-in-out infinite;
}
.week-panel::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(229,166,106,.35); right: -90px; top: -110px; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; position: relative; }
.week-head h3 { color: #fff; margin: 0; }
.progress-ring { width: 84px; height: 84px; position: relative; flex: none; }
.progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.progress-ring circle { fill: none; stroke-width: 7; }
.progress-ring .ring-bg { stroke: rgba(255,255,255,.12); }
.progress-ring .ring-fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.progress-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .95rem; }
.week-days { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; position: relative; }
.day-btn {
  width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 1rem; text-align: left;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: .8rem 1rem; color: #e8efec;
  transition: background .3s, transform .3s var(--ease), border-color .3s;
}
.day-btn:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.day-btn .day-name { font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.day-btn .day-focus { font-weight: 600; color: #fff; display: block; }
.day-btn .day-meta { font-size: .8rem; color: #b9c9c5; }
.day-check { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: all .3s; }
.day-btn[aria-pressed="true"] { background: rgba(229,166,106,.16); border-color: rgba(229,166,106,.5); }
.day-btn[aria-pressed="true"] .day-check { background: var(--accent); border-color: var(--accent); }
.day-btn[aria-pressed="true"] .day-check::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary); transform: rotate(-45deg) translate(1px, -1px); }
.week-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; font-size: .88rem; color: #b9c9c5; }
.progress-track { height: 6px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; margin-top: 1.2rem; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #f3c99f); transition: width .9s var(--ease); }
.plan-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.plan-points li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: start; }
.plan-points li::before { content: attr(data-n); width: 34px; height: 34px; border-radius: 50%; background: var(--highlight); color: var(--secondary); display: grid; place-items: center; font: 700 .8rem var(--sans); }

/* ---------- Guide highlights (asymmetric) ---------- */
.guide-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 210px; gap: 1.2rem; }
.guide-tile { position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; isolation: isolate; }
.guide-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.3s var(--ease); }
.guide-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(32,44,48,0) 30%, rgba(32,44,48,.82) 100%); }
.guide-tile:hover img { transform: scale(1.07); }
.guide-tile:hover { color: #fff; }
.guide-tile h3 { color: #fff; margin: .35rem 0 0; font-size: 1.35rem; }
.guide-tile .tag { align-self: flex-start; }
.guide-tile.t1 { grid-column: 1 / 4; grid-row: span 2; }
.guide-tile.t2 { grid-column: 4 / 7; }
.guide-tile.t3 { grid-column: 4 / 6; }
.guide-tile.t4 { grid-column: 6 / 7; background: var(--accent); color: var(--secondary); }
.guide-tile.t4::before { display: none; }
.guide-tile.t4 h3 { color: var(--secondary); }

/* ---------- Safety strip ---------- */
.safety-strip { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--highlight); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 2.2rem; }
.safety-strip .safety-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--primary); }
.safety-strip p { margin: 0; }
.safety-strip h2 { font-size: 1.6rem; margin-bottom: .4rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.page-hero .media { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.page-hero .media img { animation: drift 18s ease-in-out infinite alternate; }

.guide-hero-morning-stretch-background {
  background-image: linear-gradient(90deg, rgba(242,244,239,.97) 0%, rgba(242,244,239,.86) 45%, rgba(242,244,239,.35) 100%), url("images/photo-1544367567-0f2fcb009e0b.png");
  background-color: var(--highlight);
  background-size: cover; background-position: center;
}

/* ---------- Listings filters ---------- */
.filter-panel {
  position: relative; z-index: 3; margin-top: -1rem;
  background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-soft);
  display: grid; gap: 1.2rem;
}
.filter-row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1rem; align-items: end; }
.field label { display: block; font: 600 .66rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.field select, .field input {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  font: 500 .95rem var(--sans); color: var(--text); appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field select:focus, .field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--highlight); }
.filter-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { font: 600 .68rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.compare-table tbody tr:hover { background: var(--highlight); }
.compare-table a { font-weight: 600; text-decoration: none; }

/* ---------- Detail page ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1.4rem 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--border); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.detail-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 2.5rem 0 4rem; position: relative; }
.detail-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.detail-hero-media { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; box-shadow: var(--shadow); margin: 0; }
.detail-hero-media img { animation: drift 20s ease-in-out infinite alternate; }
.spec-card {
  position: absolute; right: 2rem; bottom: 0; width: min(380px, 80%);
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow);
}
.spec-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin: 0; }
.spec-card dt { font: 600 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec-card dd { margin: .15rem 0 0; font-weight: 600; color: var(--secondary); font-size: .9rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; padding-bottom: 4rem; align-items: start; }
.detail-main > section { padding: 2.6rem 0; border-top: 1px solid var(--border); }
.detail-main > section:first-child { border-top: 0; padding-top: 1rem; }
.detail-main h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.step-list { padding-left: 1.2rem; margin: 0; }
.step-list li { margin-bottom: .55rem; }
.step-list li::marker { color: var(--primary); font-weight: 700; }
.exercise-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.2rem; counter-reset: ex; }
.exercise-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; counter-increment: ex; transition: box-shadow .4s, transform .4s var(--ease); }
.exercise-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.exercise-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.exercise-head::before { content: counter(ex, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; }
.exercise-head h3 { margin: 0; flex: 1; min-width: 180px; }
.dose { background: var(--highlight); color: var(--secondary); padding: .4rem .8rem; border-radius: 999px; font-weight: 600; font-size: .84rem; }
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1rem; }
.mod-grid > div { background: var(--bg); border-radius: 14px; padding: .9rem 1rem; font-size: .92rem; }
.mod-grid strong { display: block; font: 700 .66rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .3rem; }
.mod-grid > div:last-child strong { color: #b4733a; }
.timeline { list-style: none; padding: 0; margin: 1.2rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-left: 2.6rem; margin-bottom: 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline strong { color: var(--secondary); }
.detail-aside { display: grid; gap: 1.2rem; padding-top: 1rem; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.aside-card ul { padding-left: 1.1rem; margin: 0; font-size: .93rem; }
.aside-card li { margin-bottom: .45rem; }
.aside-card.safety { background: #fbf1e7; border-color: #f0d6bc; }
.aside-card.dark { background: var(--secondary); color: #e8efec; border-color: var(--secondary); }
.aside-card.dark h2 { color: #fff; }
.timer-display { font-family: var(--serif); font-size: 3.4rem; text-align: center; color: #fff; margin: .4rem 0 .8rem; letter-spacing: .02em; }
.timer-presets, .timer-controls { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.timer-presets .chip { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.timer-presets .chip.is-active { background: var(--accent); color: var(--secondary); border-color: var(--accent); }
.timer-controls { margin-top: .8rem; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 200px 200px; gap: 1rem; margin-top: 1.2rem; }
.gallery button { border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery button:first-child { grid-row: span 2; }
.gallery button img { transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(32,44,48,.82); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lightbox .media { max-height: 76vh; aspect-ratio: 3 / 2; }
.lightbox figcaption { padding: 1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .92rem; }
.notice { background: #fbf1e7; border: 1px solid #f0d6bc; border-radius: 14px; padding: .9rem 1.1rem; margin: 1rem 0; font-size: .94rem; }

/* ---------- Guide / prose ---------- */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; align-items: start; padding: 3rem 0 5rem; }
.toc { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.toc h2 { font-size: 1.1rem; margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .6rem; padding: .4rem 0; text-decoration: none; color: var(--text); font-size: .92rem; border-bottom: 1px solid var(--bg); }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 700; font-size: .78rem; padding-top: .15rem; }
.toc a:hover { color: var(--primary); }
.prose { max-width: 72ch; }
.prose > section { padding: 2.6rem 0; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
.prose > section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.prose h3 { margin-top: 1.6rem; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose figure { margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; background: var(--surface); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { padding: .75rem .9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--highlight); color: var(--secondary); font-weight: 600; }
.pull-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--secondary); border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.4rem; margin: 1.8rem 0; }
.callout { background: var(--highlight); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.callout strong { color: var(--secondary); }
.table-scroll { overflow-x: auto; }

/* ---------- About / legal ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.principle { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.principle .num { font-family: var(--serif); color: var(--accent); font-size: 2rem; line-height: 1; display: block; margin-bottom: .6rem; }
.principle:nth-child(even) { transform: translateY(2rem); }
.details-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.details-table th, .details-table td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.details-table th { width: 34%; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.placeholder { display: inline-block; background: #fbf1e7; color: #8a5420; border: 1px dashed #e5a66a; border-radius: 8px; padding: .1rem .5rem; font-size: .9rem; }
.legal-updated { font-size: .9rem; color: var(--muted); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.toggle-row p { margin: .2rem 0 0; font-size: .9rem; color: #46565a; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .3s; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .6; }
.switch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #c9d6d3; padding: 4.5rem 0 2rem; margin-top: 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer h2 { font: 700 .72rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: #e8efec; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand small { color: #9fb2ae; }
.footer-link-btn { background: none; border: 0; padding: 0; color: #e8efec; text-align: left; font-size: .93rem; }
.footer-link-btn:hover { color: var(--accent); text-decoration: underline; }
.footer-contact p { margin: 0 0 .5rem; }
.footer-contact .placeholder { background: rgba(229,166,106,.12); color: #f3c99f; border-color: rgba(229,166,106,.5); font-size: .82rem; }
.footer-notices { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: .9rem; font-size: .84rem; color: #aebfbb; }
.footer-notices strong { color: #fff; }
.footer-bottom { margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #9fb2ae; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 80; width: min(440px, calc(100vw - 2.4rem));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 30px 70px -30px rgba(32,44,48,.55);
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.cookie-banner p { font-size: .9rem; color: #46565a; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { padding: .65rem 1rem; font-size: .85rem; }
.cookie-close { position: absolute; top: .8rem; right: .8rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--secondary); font-size: 1.1rem; line-height: 1; }

.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; background: var(--secondary); color: #fff; padding: .85rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow); transform: translateY(150%); transition: transform .45s var(--ease); font-size: .92rem; }
.toast.show { transform: translateY(0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card-grid .reveal:nth-child(3n+2), .featured-grid .reveal:nth-child(2) { transition-delay: .12s; }
.card-grid .reveal:nth-child(3n), .featured-grid .reveal:nth-child(3) { transition-delay: .24s; }
.reveal-wipe::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--highlight); transform-origin: right; transition: transform 1.1s .15s var(--ease); }
.in .reveal-wipe::before, .reveal-wipe.in::before { transform: scaleX(0); }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .reveal-wipe::before { display: none; }

@keyframes drift { 0% { transform: scale(1.04) translate(0, 0) rotate(0deg); } 100% { transform: scale(1.1) translate(-2%, 2%) rotate(.6deg); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mask-line > span { transform: none; }
  .hero-copy .lead, .hero-copy .search-box, .hero-copy .chip-row { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row .field:first-child { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid > :nth-child(n) { grid-column: auto; margin-top: 0; transform: none; }
  .featured-grid > :nth-child(1) { grid-column: 1 / -1; }
  .featured-grid > :nth-child(1) .media { aspect-ratio: 16 / 9; }
  .featured-grid > :nth-child(3):hover { transform: translateY(-7px); }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: calc(100% + .4rem); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: .6rem; box-shadow: var(--shadow); z-index: 40; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .hero { flex-direction: column; align-items: stretch; padding: 3rem 0 2rem; min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(242,244,239,.97) 0%, rgba(242,244,239,.9) 55%, rgba(242,244,239,0) 100%); }
  .hero-stage { position: relative; order: 2; height: 400px; margin-top: 1rem; }
  .layer-a { top: 4%; right: 4%; width: 46%; max-width: none; }
  .layer-b { top: 46%; right: auto; left: 6%; width: 36%; max-width: none; }
  .layer-c { top: 8%; right: auto; left: 8%; width: 30%; max-width: none; }
  .layer-d { bottom: 2%; right: 8%; width: 34%; max-width: none; }
  .layer-e { top: 0; right: auto; left: 44%; width: 16%; max-width: none; }
  .geo-ring { width: 180px; top: 20%; right: 30%; }
  .rotating-badge { left: auto; right: 4vw; bottom: auto; top: 1rem; width: 100px; height: 100px; }
  .rotating-badge .badge-core { inset: 26px; font-size: 1.1rem; }
  .section-head, .week-wrap, .page-hero-grid, .detail-hero, .guide-layout { grid-template-columns: 1fr; }
  .spec-card { position: relative; right: auto; width: 100%; margin-top: -4rem; margin-left: auto; max-width: 92%; }
  .columns-3 { grid-template-columns: 1fr; }
  .training-column:nth-child(2) { margin-top: 0; }
  .training-column { min-height: 320px; }
  .guide-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .guide-tile.t1 { grid-column: 1 / -1; grid-row: span 1; }
  .guide-tile.t2, .guide-tile.t3, .guide-tile.t4 { grid-column: auto; }
  .guide-tile.t2 { grid-column: 1 / -1; }
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(even) { transform: none; }
  .toc { order: -1; }
}
@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .mod-grid, .meta-list { grid-template-columns: 1fr 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .safety-strip { grid-template-columns: 1fr; }
  .week-panel { padding: 1.4rem; }
  .day-btn { grid-template-columns: 42px 1fr auto; gap: .6rem; }
  .search-box { flex-wrap: nowrap; }
  .search-box .btn { padding: .7rem .9rem; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .detail-actions, .detail-aside .dark, .gallery, .related, .toast, .breadcrumb { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .detail-layout, .detail-hero { grid-template-columns: 1fr; }
  .detail-hero-media { display: none; }
  .spec-card { position: static; box-shadow: none; width: 100%; }
}