/* ==========================================================================
   style.css — "DEVAMANI" streaming-style portfolio
   Dark, cinematic theme. Sections:
   01 Tokens & base          07 Cards & hover panel     13 Contact / FAQ
   02 Wordmark & buttons     08 Top-10 / progress bars  14 ViharaSetu page
   03 Splash                 09 Detail modal            15 Story pages
   04 Profile picker         10 Search results          16 Footer
   05 Navbar                 11 Journey section         17 Responsive
   06 Hero billboard         12 Resume ("About")        18 Reduced motion
   ========================================================================== */

/* 01 TOKENS & BASE ------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --card: #f4f4f5;
  --card-hi: #ebebed;
  --text: #141414;
  --muted: #5c6068;
  --red: #e50914;
  --red-dark: #b20710;
  --green: #46d369;
  --line: rgba(0,0,0,0.14);
  --pad: clamp(1rem, 4vw, 3.5rem);   /* page side gutter */
  --nav-h: 68px;
  --font-head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; letter-spacing: 0.03em; line-height: 1.1; }
p { color: var(--muted); }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid #141414; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -60px; left: 8px; z-index: 5000;
  background: #fff; color: #000; padding: .6rem 1rem; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* 02 WORDMARK & BUTTONS -------------------------------------------------- */
.wordmark {
  font-family: var(--font-head);
  color: var(--red);
  letter-spacing: 0.08em;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  display: inline-block;
  text-shadow: 0 2px 14px rgba(229,9,20,.35);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .7rem 1.7rem; border-radius: 4px;
  font-weight: 700; font-size: 1.05rem;
  transition: background .2s, transform .2s, color .2s;
}
.btn:hover { transform: scale(1.03); }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,.45); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #f6121d; }
.btn-lg { padding: .9rem 2rem; font-size: 1.2rem; }

.eyebrow { font-family: var(--font-head); color: var(--red); letter-spacing: .15em; font-size: 1.1rem; }

/* 03 SPLASH -------------------------------------------------------------- */
#splash {
  position: fixed; inset: 0; z-index: 4000; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s ease;
}
#splash.leaving { opacity: 0; pointer-events: none; }
#splash .wordmark {
  font-size: clamp(3rem, 14vw, 9rem);
  animation: splash-in 2s cubic-bezier(.2,.7,.2,1) forwards;
  opacity: 0;
}
@keyframes splash-in {
  0%   { opacity: 0; transform: scale(1.5); letter-spacing: .4em; filter: blur(10px); text-shadow: 0 0 0 transparent; }
  45%  { opacity: 1; transform: scale(1);   letter-spacing: .08em; filter: blur(0); text-shadow: 0 0 40px rgba(229,9,20,.9), 0 0 90px rgba(229,9,20,.5); }
  100% { opacity: 1; transform: scale(1);   letter-spacing: .08em; text-shadow: 0 0 22px rgba(229,9,20,.55); }
}
.splash-skip {
  position: absolute; bottom: 2rem; right: 2rem;
  color: var(--muted); border: 1px solid var(--line); padding: .4rem 1rem; border-radius: 4px; font-size: .85rem;
}
.splash-skip:hover { color: #fff; border-color: #fff; }

/* 04 PROFILE PICKER ------------------------------------------------------ */
#picker {
  position: fixed; inset: 0; z-index: 3000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem var(--pad); overflow-y: auto; text-align: center;
  animation: fade-in .6s ease;
}
#picker .wordmark { position: absolute; top: 1.5rem; left: var(--pad); font-size: 2.2rem; }
#picker h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 2rem; }
.profiles { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.2rem); justify-content: center; }
.profile-tile { width: clamp(120px, 20vw, 180px); color: var(--muted); transition: color .2s; }
.profile-tile .avatar {
  width: 100%; aspect-ratio: 1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(2.5rem, 7vw, 4rem); color: rgba(255,255,255,.92);
  border: 3px solid transparent; transition: border-color .2s, transform .2s;
}
.profile-tile:hover, .profile-tile:focus-visible { color: #fff; }
.profile-tile:hover .avatar, .profile-tile:focus-visible .avatar { border-color: #fff; transform: scale(1.05); }
.profile-tile .name { display: block; margin-top: .8rem; font-size: 1.15rem; }
.profile-tile .sub { display: block; font-size: .78rem; color: #777; }
.av-recruiter { background: linear-gradient(135deg, #2b6cb0, #1a365d); }
.av-engineer  { background: linear-gradient(135deg, #e50914, #7a0409); }
.av-traveler  { background: linear-gradient(135deg, #2f9e6b, #14532d); }
.av-vihara    { background: linear-gradient(135deg, #f59e0b, #b45309); }

/* 05 NAVBAR -------------------------------------------------------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(0,0,0,.85), transparent);
  transition: background .3s;
}
.site-nav.solid { background: var(--bg); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.site-nav.solid .nav-links a, .site-nav.solid .nav-icon, .site-nav.solid .profile-btn { color: #3a3d45; }
.site-nav.solid .nav-links a:hover, .site-nav.solid .nav-links a.active { color: #000; }
.site-nav.solid .wordmark { color: var(--red); }
.nav-links { display: flex; gap: 1.4rem; font-size: .92rem; }
.nav-links a { color: #e5e5e5; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav-icon { font-size: 1.1rem; padding: .5rem; }
.nav-search { display: flex; align-items: center; border: 1px solid transparent; border-radius: 4px; transition: border-color .2s, background .2s; }
.nav-search.open { border-color: #fff; background: rgba(0,0,0,.75); }
.nav-search input {
  width: 0; padding: 0; opacity: 0; border: 0; background: none; color: #fff; font: inherit; outline: none;
  transition: width .3s, opacity .3s, padding .3s;
}
.nav-search.open input { width: min(220px, 40vw); opacity: 1; padding: .4rem .2rem; }

.profile-menu { position: relative; }
.profile-btn { display: flex; align-items: center; gap: .4rem; }
.profile-btn .avatar-sm { width: 32px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.profile-btn .caret { font-size: .7rem; transition: transform .2s; }
.profile-menu.open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  background: rgba(0,0,0,.92); border: 1px solid var(--line); border-radius: 4px; padding: .4rem 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s;
}
.profile-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: .7rem; align-items: center; padding: .6rem 1rem; font-size: .9rem; text-align: left; color: #ddd; }
.dropdown a:hover, .dropdown button:hover { background: var(--card-hi); text-decoration: underline; }

.hamburger { display: none; font-size: 1.4rem; padding: .4rem; }

/* 06 HERO BILLBOARD ------------------------------------------------------ */
.hero {
  position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: -12% 0 0 0; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
.hero::before { /* left gradient: keeps text readable */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(77deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.45) 45%, transparent 75%);
}
.hero::after { /* bottom gradient: melts into the first row */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-content { position: relative; z-index: 2; padding: calc(var(--nav-h) + 2rem) var(--pad) 8rem; max-width: 900px; }
.series-tag { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.series-tag .badge {
  width: 26px; height: 40px; background: var(--red); color: #fff; font-family: var(--font-head);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem; border-radius: 2px;
}
.series-tag span { letter-spacing: .5em; font-size: .78rem; font-weight: 600; color: #ddd; }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 6.2rem); text-shadow: 2px 4px 14px rgba(0,0,0,.6); margin-bottom: .6rem; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: 1rem; color: #ddd; margin-bottom: 1rem; }
.match { color: var(--green); font-weight: 700; }
.age-badge { border: 1px solid #aaa; padding: 0 .4rem; font-size: .8rem; color: #ddd; }
.hero-desc { font-size: clamp(1rem, 1.6vw, 1.25rem); color: #fff; max-width: 560px; text-shadow: 1px 2px 6px rgba(0,0,0,.7); margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* 07 ROWS & CARDS -------------------------------------------------------- */
#rows { position: relative; z-index: 3; margin-top: -7rem; padding-bottom: 2rem; }
.row { margin-bottom: 1rem; position: relative; }
.row:hover, .row:focus-within { z-index: 10; }  /* hover panel must overlap the row below */
.row-title { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); padding: 0 var(--pad); margin-bottom: .2rem; display: flex; align-items: baseline; gap: .8rem; }
.row-wrap { position: relative; }
.scroller {
  display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 1.6rem var(--pad) 12.5rem; margin-bottom: -10.5rem; scroll-padding-left: var(--pad);     /* room for the hover panel */
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { display: none; }
.arrow {
  position: absolute; top: 1.6rem; bottom: 12.5rem; width: var(--pad); min-width: 44px; z-index: 25;
  background: rgba(20,20,20,.55); font-size: 1.6rem; opacity: 0; transition: opacity .2s, background .2s;
}
.arrow:hover { background: rgba(20,20,20,.85); }
.arrow.left { left: 0; } .arrow.right { right: 0; }
.row-wrap:hover .arrow, .arrow:focus-visible { opacity: 1; }
.arrow[disabled] { display: none; }

.card {
  position: relative; flex: 0 0 auto; width: clamp(210px, 21vw, 300px);
  scroll-snap-align: start; border-radius: 4px; background: var(--card);
  cursor: pointer; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.card .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #222; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .tile-icon {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  font-size: 2.4rem; color: rgba(255,255,255,.92);
}
.card .thumb .tile-icon span { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .05em; text-align: center; padding: 0 .5rem; }
.card .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .7rem .5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: .85rem; font-weight: 600; color: #fff;
}
.card .label {
  position: absolute; top: .5rem; left: 0; background: var(--red); color: #fff; font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; padding: .15rem .5rem .15rem .4rem; border-radius: 0 2px 2px 0; z-index: 2;
}
.card .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.3); z-index: 2; }
.card .progress i { display: block; height: 100%; background: var(--red); }

/* Hover panel: expands below the thumbnail */
.card .panel {
  position: absolute; top: 100%; left: 0; right: 0; background: var(--card-hi); border-radius: 0 0 6px 6px;
  padding: .8rem; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.card:hover, .card:focus-within {
  transform: scale(1.08); z-index: 20; box-shadow: 0 12px 34px rgba(0,0,0,.8);
}
.card:hover .thumb, .card:focus-within .thumb { border-radius: 6px 6px 0 0; }
.card:hover .panel, .card:focus-within .panel { opacity: 1; visibility: visible; transform: none; }
.card:hover .cap, .card:focus-within .cap { opacity: 0; }
.panel .ctrls { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.ctrl {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center; font-size: .75rem; transition: border-color .2s, background .2s, color .2s;
}
.ctrl:hover { border-color: var(--text); }
.ctrl.play { background: #fff; color: #000; border-color: #fff; }
.ctrl.play:hover { background: #ddd; }
.ctrl.on { border-color: var(--green); color: var(--green); }
.ctrl.more { margin-left: auto; }
.panel .m { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .78rem; margin-bottom: .3rem; align-items: center; color: #3a3d45; }
.panel .t { font-size: .74rem; color: #3a3d45; }
.panel .t i { color: #777; font-style: normal; margin: 0 .25rem; }
.panel .ttl { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .3rem; }

/* 08 TOP-10 & PROGRESS ---------------------------------------------------- */
.card.top10 { width: auto; background: none; display: flex; align-items: flex-end; }
.card.top10 .rank {
  font-family: var(--font-head); font-size: clamp(8rem, 13vw, 11rem); line-height: .8; flex: 0 0 auto; margin-right: -1.2rem;
  color: #fff; -webkit-text-stroke: 3px #b5b5ba; letter-spacing: -.04em; z-index: 0;
}
.card.top10 .thumb { flex: none; width: clamp(130px, 13vw, 180px); aspect-ratio: 2 / 3; z-index: 1; }
.card.top10 .panel { left: auto; width: clamp(130px, 13vw, 180px); right: 0; }
.card.top10 .thumb .tile-icon { font-size: 3rem; }

.ep-bar { height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; margin-top: .5rem; }
.ep-bar i { display: block; height: 100%; background: var(--red); border-radius: 2px; }

/* 09 DETAIL MODAL -------------------------------------------------------- */
.modal-back {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.75); overflow-y: auto;
  display: flex; justify-content: center; padding: 2rem 1rem; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal-back.open { opacity: 1; visibility: visible; }
.modal {
  position: relative; width: 100%; max-width: 860px; height: fit-content; background: var(--card); border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.9); transform: translateY(30px) scale(.97); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.modal-back.open .modal { transform: none; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--card-hi); }
.modal-banner { position: relative; aspect-ratio: 16 / 8; background: #222; }
.modal-banner img { width: 100%; height: 100%; object-fit: cover; }
.modal-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--card)); }
.modal-banner .banner-in { position: absolute; left: 2rem; right: 2rem; bottom: 1.2rem; z-index: 2; }
.modal-banner h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-shadow: 2px 2px 10px rgba(0,0,0,.7); margin-bottom: .6rem; }
.modal-body { padding: 0 2rem 2rem; display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem 2rem; }
.modal-body .main p { color: #3a3d45; margin-bottom: .8rem; }
.modal-body .side { font-size: .88rem; }
.modal-body .side p { margin-bottom: .6rem; }
.modal-body .side b { color: #777; font-weight: 400; }
.modal-body .full { grid-column: 1 / -1; }
.modal h3.sec { font-size: 1.7rem; margin: .6rem 0 .8rem; }
.episodes { border-top: 1px solid var(--line); }
.episodes li { display: flex; gap: 1.2rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); align-items: flex-start; }
.episodes li:hover { background: var(--card-hi); }
.episodes .n { font-family: var(--font-head); font-size: 1.8rem; color: #888; min-width: 2rem; text-align: center; line-height: 1.2; }
.episodes .tx { color: #3a3d45; font-size: .92rem; }
.modal-story p { color: #3a3d45; margin-bottom: .8rem; }
.modal-img-only img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { background: var(--card-hi); border-radius: 50px; padding: .2rem .8rem; font-size: .8rem; color: #3a3d45; }

/* 10 SEARCH RESULTS ------------------------------------------------------ */
#results { padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem; min-height: 80vh; }
#results h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; letter-spacing: 0; margin-bottom: 1.5rem; color: #3a3d45; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem .6rem; padding-bottom: 5rem; }
.grid .card { width: auto; }
.grid .card .panel { display: none; }
.empty { color: var(--muted); padding: 3rem 0; }

/* 11 JOURNEY SECTION ----------------------------------------------------- */
.journey { padding: 4rem var(--pad) 5rem; max-width: 1200px; margin: 0 auto; }
.journey h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin: .3rem 0 .8rem; }
.journey .lead { max-width: 720px; font-size: 1.1rem; margin-bottom: 2rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.6rem; transition: transform .3s, border-color .3s; }
.pillar:hover { transform: translateY(-4px); border-color: var(--red); }
.pillar i { font-size: 1.8rem; color: var(--red); margin-bottom: .8rem; display: block; }
.pillar h3 { font-size: 1.7rem; margin-bottom: .4rem; }

/* 12 RESUME ("About" page) ----------------------------------------------- */
.about-hero {
  position: relative; padding: calc(var(--nav-h) + 3rem) var(--pad) 3rem; overflow: hidden;
  background: linear-gradient(180deg, #2a0507, var(--bg));
}
.about-hero h1 { font-size: clamp(3rem, 9vw, 6rem); }
.about-hero .btn { margin-top: 1.4rem; }
.about-wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad) 4rem; }
.about-wrap h2 { font-size: 2.2rem; margin: 2.6rem 0 1rem; }
.about-wrap .summary { font-size: 1.1rem; color: #3a3d45; }
.season { background: var(--card); border-left: 4px solid var(--red); border-radius: 4px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.season .s-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.season .s-no { font-family: var(--font-head); color: var(--red); letter-spacing: .1em; }
.season h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.season .s-date { color: var(--muted); font-size: .85rem; }
.season p.sub { font-size: .85rem; margin: .3rem 0 .6rem; }
.season ul { list-style: disc; margin-left: 1.2rem; color: #3a3d45; font-size: .92rem; }
.season li { margin-bottom: .3rem; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.cast { background: var(--card); border-radius: 6px; padding: 1.1rem .6rem; text-align: center; font-size: .9rem; transition: transform .25s, background .25s; }
.cast:hover { transform: scale(1.06); background: var(--card-hi); }
.cast i { display: block; font-size: 1.6rem; color: var(--red); margin-bottom: .5rem; }
.plain-list { list-style: disc; margin-left: 1.2rem; color: #3a3d45; }
.plain-list li { margin-bottom: .4rem; }
.about-wrap a.lnk { color: var(--text); text-decoration: underline; }

/* 13 CONTACT / FAQ ------------------------------------------------------- */
.contact-hero {
  min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 3rem; position: relative;
  background: linear-gradient(rgba(0,0,0,.7), var(--bg)), url("../assets/images/profile/hero-mountains.jpg") center / cover;
}
.contact-hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin-bottom: .6rem; }
.contact-hero p.sub { color: #ddd; font-size: 1.15rem; max-width: 560px; margin-bottom: 1.5rem; }
.get-started { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; width: 100%; max-width: 640px; }
.get-started input {
  flex: 1 1 280px; padding: 1rem; border-radius: 4px; border: 1px solid #777; background: rgba(22,22,22,.75); color: #fff; font: inherit; font-size: 1rem;
}
.socials { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; font-size: 1.5rem; }
.socials a { width: 52px; height: 52px; border-radius: 50%; background: var(--card-hi); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--red); transform: translateY(-4px); }
.form-msg { margin-top: .8rem; min-height: 1.4rem; font-size: .9rem; color: var(--green); }
.faq { max-width: 820px; margin: 0 auto; padding: 3rem var(--pad) 4rem; }
.faq h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.2rem; text-align: center; }
.faq details { background: var(--card-hi); margin-bottom: 8px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 2rem; font-weight: 300; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 1.2rem 1.5rem; border-top: 1px solid #000; font-size: 1.05rem; }
.faq details > div p { color: #3a3d45; margin-bottom: .6rem; }
.contact-rows { max-width: 820px; margin: 0 auto; padding: 0 var(--pad) 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.contact-rows > div { background: var(--card); border-radius: 6px; padding: 1.1rem 1.2rem; }
.contact-rows h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #777; margin-bottom: .3rem; }
.contact-rows a { color: var(--text); word-break: break-all; }
.contact-rows a:hover { text-decoration: underline; }

/* 14 VIHARASETU PAGE ----------------------------------------------------- */
.v-hero { position: relative; min-height: 80vh; display: flex; align-items: center; overflow: hidden; }
.v-hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide-fade 30s infinite; }
.v-hero .slide:nth-child(1) { animation-delay: 0s; }
.v-hero .slide:nth-child(2) { animation-delay: 6s; }
.v-hero .slide:nth-child(3) { animation-delay: 12s; }
.v-hero .slide:nth-child(4) { animation-delay: 18s; }
.v-hero .slide:nth-child(5) { animation-delay: 24s; }
@keyframes slide-fade { 0% { opacity: 0; } 4%, 20% { opacity: 1; } 28%, 100% { opacity: 0; } }
.v-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(77deg, rgba(0,0,0,.88), rgba(0,0,0,.3) 70%); }
.v-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; z-index: 1; background: linear-gradient(transparent, var(--bg)); }
.v-hero .hero-content { padding-bottom: 4rem; }
.v-section { max-width: 1100px; margin: 0 auto; padding: 3rem var(--pad); }
.v-section h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .3rem 0 1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: 8px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.split p { margin-bottom: .9rem; }
.quote { font-style: italic; color: var(--text) !important; border-left: 3px solid var(--red); padding-left: 1rem; margin-top: 1rem; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.offer { background: var(--card); border-radius: 6px; padding: 1.4rem; transition: transform .3s, background .3s; }
.offer:hover { transform: scale(1.04); background: var(--card-hi); }
.offer i { color: var(--red); font-size: 1.6rem; margin-bottom: .6rem; display: block; }
.offer h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin-bottom: .3rem; color: var(--text); }
.gallery3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .6rem; }
.gallery3 img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery3 img:hover { transform: scale(1.04); }
.band { background: linear-gradient(135deg, #2a0507, #141414); text-align: center; border-radius: 8px; padding: 2.5rem 1.5rem; }
.band p { color: #ddd; max-width: 700px; margin: 0 auto; }

/* 15 STORY PAGES (travel / trekking / inspirations) ----------------------- */
.story-hero, .page-hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.story-hero { height: 70vh; min-height: 420px; }
.page-hero { padding: calc(var(--nav-h) + 3rem) 0 2.5rem; background: linear-gradient(180deg, #2a0507, var(--bg)); }
.story-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.7) 100%); }
.story-hero-content { position: relative; z-index: 1; padding-bottom: 2rem; }
.story-hero h1, .page-hero h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
.page-hero p { max-width: 640px; margin-top: .6rem; color: #ddd; }
.breadcrumb { font-size: .85rem; color: #aaa !important; margin-bottom: .6rem; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.story-meta-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: #ddd; margin-top: .8rem; }
.story-meta-bar i { color: var(--red); margin-right: .3rem; }
.story-body { max-width: 780px; margin: 0 auto; padding: 2rem var(--pad) 4rem; }
.story-body h2, .section h2 { font-size: 2.2rem; margin: 2.2rem 0 .8rem; }
.story-body p, .section p { margin-bottom: .9rem; font-size: 1.05rem; }
.story-body ul { list-style: disc; margin: .6rem 0 1rem 1.3rem; color: #3a3d45; }
.story-body li { margin-bottom: .4rem; }
.info-box { background: var(--card); border-left: 4px solid var(--red); border-radius: 4px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.info-box h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: .5rem; color: var(--text); }
.info-box ul { list-style: disc; margin-left: 1.2rem; color: #3a3d45; }
.info-box li { margin-bottom: .5rem; }
.quick-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; background: var(--card); border-radius: 6px; padding: 1.2rem; margin-bottom: 1.5rem; }
.quick-fact { text-align: center; }
.quick-fact i { color: var(--red); font-size: 1.3rem; margin-bottom: .4rem; display: block; }
.fact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.fact-value { font-weight: 700; color: var(--text); }
.day-block { border-left: 2px solid var(--red); padding-left: 1.2rem; margin: 1.2rem 0; }
.day-block h3 { font-size: 1.7rem; color: var(--text); }
.story-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; margin: 1rem 0; }
.story-gallery img { border-radius: 4px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.map-embed, .map-placeholder { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #777; margin: 1rem 0; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.story-nav { display: flex; gap: 1rem; margin-top: 3rem; }
.story-nav a { flex: 1; background: var(--card); border-radius: 6px; padding: 1rem 1.2rem; transition: background .2s; }
.story-nav a:hover { background: var(--card-hi); }
.story-nav .next { text-align: right; }
.story-nav-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.story-nav-title { font-weight: 600; }
.section { padding: 2.5rem 0; }
.section-alt { background: var(--card); }
.section-heading { margin-bottom: 1.2rem; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split-section img { border-radius: 8px; width: 100%; }
.profile-photo-contain { max-height: 460px; width: auto !important; margin: 0 auto; object-fit: contain; }
.story-body a, .section p a { text-decoration: underline; }

/* 16 FOOTER -------------------------------------------------------------- */
.site-footer { background: #0b0b0b; padding: 3rem var(--pad) 2rem; color: #808080; font-size: .85rem; margin-top: 2rem; }
.footer-in { max-width: 1000px; margin: 0 auto; }
.footer-social { display: flex; gap: 1.4rem; font-size: 1.4rem; margin-bottom: 1.5rem; }
.footer-social a { color: #b3b3b3; transition: color .2s; }
.footer-social a:hover { color: var(--text); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1rem; margin-bottom: 2rem; }
.footer-cols h4 { font-family: var(--font-body); font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: .7rem; }
.footer-cols li { margin-bottom: .6rem; }
.footer-cols a:hover { text-decoration: underline; color: #ccc; }
.footer-brand { margin-bottom: 1.5rem; }
.footer-bottom { border-top: 1px solid #222; padding-top: 1.2rem; }

/* 17 RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 900px) {
  .modal-body { grid-template-columns: 1fr; }
  .split, .split-section { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0;
    padding: .5rem 0 1rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: .9rem var(--pad); font-size: 1.05rem; }
  .site-nav { gap: .8rem; }
  .site-nav .wordmark { font-size: 1.6rem; }
  .arrow { display: none; }                    /* touch: swipe instead */
  .card { width: 44vw; }
  .card.top10 .thumb { width: 30vw; }
  .card.top10 .panel { width: 30vw; }
  .hero { min-height: 78vh; }
  .hero-content { padding-bottom: 6rem; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.2)); }
  .btn { padding: .65rem 1.3rem; font-size: 1rem; }
  .modal-banner .banner-in { left: 1.2rem; right: 1.2rem; }
  .modal-body { padding-left: 1.2rem; padding-right: 1.2rem; }
  .story-nav { flex-direction: column; }
  #picker .wordmark { position: static; margin-bottom: 1.5rem; }
}
@media (hover: none) {
  /* Touch devices have no hover — tap opens the detail modal instead */
  .card:hover { transform: none; box-shadow: none; }
  .card .panel { display: none; }
  .card:hover .cap { opacity: 1; }
}

/* 18 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; }
  .hero-bg { transform: none !important; }
  .v-hero .slide:first-child { opacity: 1; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* Fade-in on scroll (class added by main.js) */
.fx { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fx.in { opacity: 1; transform: none; }

/* 19 PREMIUM CONTACT ------------------------------------------------------ */
.contact-hero { min-height: 62vh; }
.contact-hero .eyebrow { margin-bottom: .6rem; }
.avail { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; color: #3a3d45; background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: .35rem 1rem; border-radius: 50px; margin-bottom: 1.4rem; backdrop-filter: blur(8px); }
.avail .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(70,211,105,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(70,211,105,0); } 100% { box-shadow: 0 0 0 0 rgba(70,211,105,0); } }

.contact-main { max-width: 1100px; margin: -2rem auto 0; padding: 0 var(--pad) 2rem; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: start; position: relative; z-index: 2; }
.glass-form {
  position: relative; padding: 2.2rem; border-radius: 14px;
  background: linear-gradient(160deg, rgba(40,40,40,.85), rgba(20,20,20,.92));
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.glass-form::before { /* red glow edge */
  content: ''; position: absolute; inset: -1px; border-radius: 14px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(229,9,20,.7), transparent 40%, transparent 70%, rgba(229,9,20,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-form h2 { font-size: 2.4rem; }
.form-sub { margin-bottom: 1.4rem; }
.topics { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.topics label { cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; padding: .4rem 1rem; border-radius: 50px; border: 1px solid #444; font-size: .85rem; color: #3a3d45; transition: all .2s; }
.topics label:hover span { border-color: #fff; color: #fff; }
.topics input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.topics input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field textarea {
  width: 100%; padding: 1.4rem 1rem .55rem; background: rgba(255,255,255,.05); color: #fff; font: inherit; font-size: 1rem;
  border: 1px solid #3d3d3d; border-radius: 8px; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 1rem; top: 1rem; color: #888; font-size: 1rem; pointer-events: none; transition: all .2s ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: .4rem; font-size: .72rem; color: var(--red); letter-spacing: .05em; text-transform: uppercase; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: rgba(229,9,20,.06); box-shadow: 0 0 0 3px rgba(229,9,20,.18); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field .count { position: absolute; right: .8rem; bottom: .5rem; font-size: .7rem; color: #666; }
.btn-block { width: 100%; }
.glass-form .form-msg { text-align: center; }
.form-note { text-align: center; font-size: .78rem; color: #777; margin-top: .4rem; }

.contact-side { display: flex; flex-direction: column; gap: .8rem; }
.info-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: transform .25s, border-color .25s, background .25s; }
.info-card:hover { transform: translateX(6px); border-color: var(--red); background: var(--card-hi); }
.info-card > i { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(229,9,20,.15); color: var(--red); font-size: 1.1rem; }
.info-card div { min-width: 0; flex: 1; }
.info-card h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #777; margin-bottom: .1rem; }
.info-card span { color: var(--text); font-size: .92rem; word-break: break-all; }
.copy { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #aaa; transition: color .2s, background .2s; }
.copy:hover { color: #fff; background: rgba(255,255,255,.1); }
.copy.done { color: var(--green); }
.side-social { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem; }
.side-social h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #777; }
.side-social .socials { justify-content: flex-start; margin-top: .8rem; font-size: 1.2rem; }
.side-social .socials a { width: 44px; height: 44px; }

@media (max-width: 900px) { .contact-main { grid-template-columns: 1fr; margin-top: 0; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .glass-form { padding: 1.4rem; } }

/* 20 WORK / JOURNAL PAGES -------------------------------------------------- */
.page-banner {
  position: relative; min-height: 44vh; display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(var(--nav-h) + 2.5rem) var(--pad) 5rem;
  background: linear-gradient(180deg, rgba(20,20,20,.55), var(--bg)), linear-gradient(77deg, rgba(0,0,0,.8), rgba(0,0,0,.2)), var(--bg-img) center / cover;
}
.page-banner h1 { font-size: clamp(3.2rem, 9vw, 6rem); }
.page-banner .hero-desc { margin: .3rem 0 0; }
#rows.rows-page { margin-top: -3rem; min-height: 50vh; }

/* 21 GALLERY PAGE ----------------------------------------------------------- */
.row-link { margin-left: auto; font-size: .8rem; font-weight: 500; color: var(--muted); }
.row-link:hover { color: var(--text); }
.gallery-wrap { max-width: 1400px; margin: -2.5rem auto 0; padding: 0 var(--pad) 3rem; position: relative; z-index: 2; }
.g-tabs { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.g-tabs button { padding: .9rem 1.2rem; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.g-tabs button:hover { color: var(--text); }
.g-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--red); }
.g-tabs i { margin-right: .4rem; color: var(--red); }
.g-tabs .n { font-size: .75rem; background: var(--card-hi); border-radius: 50px; padding: .1rem .55rem; margin-left: .3rem; color: #3a3d45; }
.g-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip-btn { padding: .35rem .95rem; border-radius: 50px; border: 1px solid #444; font-size: .82rem; color: #3a3d45; transition: all .2s; }
.chip-btn:hover { border-color: #fff; color: #fff; }
.chip-btn.on { background: #fff; color: #000; border-color: #fff; }

.g-grid { columns: 4 240px; column-gap: .6rem; }
.g-item { position: relative; display: block; width: 100%; margin: 0 0 .6rem; break-inside: avoid; border-radius: 6px; overflow: hidden; background: #222; cursor: zoom-in; transition: transform .3s, box-shadow .3s; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .5s; }
.g-item:hover, .g-item:focus-visible { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,.7); z-index: 2; }
.g-item:hover img { transform: scale(1.06); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .6rem; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); opacity: 0; transition: opacity .25s; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; }
.g-cap strong { display: block; font-size: .85rem; }
.g-cap small { color: var(--green); font-size: .72rem; }

.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: 90vw; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 80vh; margin: 0 auto; border-radius: 4px; box-shadow: 0 10px 50px rgba(0,0,0,.8); }
.lightbox figcaption { margin-top: .9rem; color: #3a3d45; }
.lightbox figcaption strong { display: block; font-size: 1.05rem; }
.lightbox figcaption span { font-size: .85rem; color: var(--muted); }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 1rem; } .lb-nav.next { right: 1rem; }
@media (max-width: 700px) {
  .g-grid { columns: 2 140px; }
  .g-cap { display: none; }
  .lb-nav { top: auto; bottom: 1.2rem; transform: none; }
  .lightbox img { max-height: 70vh; }
}

/* 22 INSPIRATIONS PAGE ------------------------------------------------------ */
#rows.insp-wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad) 3rem; position: relative; z-index: 2; }
.insp-grid { display: grid; gap: 1.2rem; }
.insp-card { display: grid; grid-template-columns: 1fr 1.1fr; width: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.insp-card:nth-child(even) { grid-template-columns: 1.1fr 1fr; }
.insp-card:nth-child(even) .insp-img { order: 2; }
.insp-card:hover, .insp-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.7); border-color: var(--red); }
.insp-img { height: 340px; background: #222; overflow: hidden; }
.insp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.insp-card:hover .insp-img img { transform: scale(1.06); }
.insp-body { padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; justify-content: center; }
.insp-body h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.insp-body p { color: #3a3d45; }
@media (max-width: 800px) {
  .insp-card, .insp-card:nth-child(even) { grid-template-columns: 1fr; }
  .insp-card:nth-child(even) .insp-img { order: 0; }
  .insp-img { height: 240px; }
}

/* 23 TREKKING PAGE ------------------------------------------------------------ */
#rows.trek-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad) 3rem; position: relative; z-index: 2; }
.trek-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.trek-card { display: flex; flex-direction: column; width: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.trek-card:hover, .trek-card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.7); border-color: var(--red); }
.trek-img { position: relative; height: 260px; background: #222; overflow: hidden; }
.trek-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.trek-card:hover .trek-img img { transform: scale(1.06); }
.trek-img .diff { position: absolute; top: .8rem; left: .8rem; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 3px; }
.trek-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; flex: 1; }
.trek-body .meta-line { margin: 0; font-size: .85rem; }
.trek-body h2 { font-size: 2.3rem; }
.trek-body p { color: #3a3d45; font-size: .95rem; }
.trek-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; width: 100%; }
.trek-stats li { background: var(--card-hi); border-radius: 8px; padding: .7rem .5rem; text-align: center; display: flex; flex-direction: column; gap: .1rem; }
.trek-stats i { color: var(--red); }
.trek-stats span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.trek-stats strong { font-size: .88rem; }
.trek-body .btn { margin-top: auto; }
@media (max-width: 800px) { .trek-grid { grid-template-columns: 1fr; } .trek-img { height: 220px; } }
@media (max-width: 1150px) and (min-width: 801px) { .nav-links { gap: .9rem; font-size: .85rem; } .site-nav { gap: 1rem; } }

/* 24 MOBILE REFINEMENTS ----------------------------------------------------- */
@media (max-width: 800px), (hover: none) {
  /* No hover panel on touch, so drop the space reserved for it */
  .scroller { padding-bottom: 1.4rem; margin-bottom: 0; }
  .row:hover, .row:focus-within { z-index: auto; }
}
@media (max-width: 800px) {
  #rows { margin-top: -3.5rem; }
  .hero-content { padding-bottom: 7rem; }
  #rows.rows-page, #rows.insp-wrap, #rows.trek-wrap { margin-top: 0; }
  .nav-icon, .hamburger, .profile-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-right { gap: .2rem; }
  .row-title { font-size: 1.1rem; }
  .scroller { gap: .4rem; }
  .card { width: 46vw; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 14px 14px 0 0; max-width: none; }
  .modal-banner { aspect-ratio: 16 / 10; }
  .modal-close { top: .7rem; right: .7rem; width: 42px; height: 42px; }
  .modal-body { padding-bottom: 2.5rem; }
  /* Gallery: tabs and filters scroll sideways instead of stacking */
  .g-tabs, .g-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .g-tabs::-webkit-scrollbar, .g-filters::-webkit-scrollbar { display: none; }
  .g-tabs button, .chip-btn { white-space: nowrap; flex: none; }
  .g-tabs button { padding: .8rem .9rem; font-size: .9rem; }
  .gallery-wrap { margin-top: -1rem; }
  .about-hero { padding-bottom: 2rem; }
  .season .s-head { flex-direction: column; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-nav.prev { left: 25%; } .lb-nav.next { right: 25%; }
}
@media (max-width: 800px) {
  .card .thumb .tile-icon { font-size: 1.9rem; padding-bottom: 1.9rem; }
  .card .thumb .tile-icon span { font-size: 1rem; }
  .card .cap { font-size: .78rem; padding: 1.2rem .6rem .45rem; }
  .card.top10 .thumb .tile-icon { padding-bottom: 0; font-size: 2.2rem; }
}
/* Full-width story cards must not inherit the carousel card width on mobile */
.card.insp-card, .card.trek-card { width: auto; }

/* LIGHT THEME OVERRIDES -------------------------------------------------- */
body { background: #fff; color: var(--text); }
.page-hero { background: linear-gradient(180deg, #fdeaec, var(--bg)); }
.page-hero p, .page-hero .breadcrumb { color: var(--muted) !important; }
.page-hero h1 { color: var(--text); }
.card { box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.card:hover, .card:focus-within { box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.dropdown { background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.dropdown a, .dropdown button { color: #3a3d45; }
.panel .m { color: var(--muted); } .panel .t { color: #3a3d45; } .panel .ttl { color: var(--text); }
.ctrl { border-color: rgba(0,0,0,.35); } .ctrl:hover { border-color: #000; }
.ctrl.play { background: #141414; color: #fff; border-color: #141414; }
.modal-back { background: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.modal { box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-body .main p, .modal-story p, .episodes .tx, .chip { color: #3a3d45; }
.arrow { background: rgba(255,255,255,.7); color: #141414; } .arrow:hover { background: rgba(255,255,255,.95); }
.btn-info { background: rgba(60,60,60,.75); }
.hero, .hero h1, .hero-content, .story-hero, .story-hero h1, .v-hero, .v-hero h1, .band h2, .band h3, .modal-banner h2, .site-footer h4 { color: #fff; }
.site-nav .nav-icon, .site-nav .profile-btn, .site-nav .hamburger { color: #fff; }
.card.top10, .card.top10:hover { box-shadow: none; background: none; }
.page-banner, .page-banner h1, .page-banner p { color: #fff; }
.profile-tile:hover, .profile-tile:focus-visible { color: var(--text); }
.profile-tile:hover .avatar, .profile-tile:focus-visible .avatar { border-color: var(--text); }
.splash-skip { color: #b3b3b3; border-color: rgba(255,255,255,.3); }
.contact-hero { background: linear-gradient(rgba(255,255,255,.82), var(--bg)), url("../assets/images/profile/hero-mountains.jpg") center / cover; }
.contact-hero p.sub { color: #3a3d45; }
.contact-hero input { background: #fff; color: var(--text); border-color: #bbb; }

/* THIN-LINE ANIMATED CARD ART ------------------------------------------- */
.line-art { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg1, #1d2430), var(--bg2, #0d1015)); }
.line-art svg { width: 100%; height: 100%; display: block; stroke: var(--ln, #bfe4ff); stroke-width: 1.4; }
.line-art .ln > * { stroke: #6f8aa3; }
.line-art .draw, .line-art .draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: la-draw 6s cubic-bezier(.5,0,.2,1) var(--d, 0s) infinite; }
.line-art .flow { stroke: #ffb36b; stroke-dasharray: .025 .075; animation: la-flow 2.4s linear infinite; opacity: .9; }
.line-art .pulse { fill: #ffb36b; stroke: none; transform-box: fill-box; transform-origin: center; animation: la-pulse 2s ease-in-out infinite; }
.card:hover .line-art .draw, .card:hover .line-art .draw > * { animation-duration: 3s; }
.card:hover .line-art .flow { animation-duration: 1.1s; }
.modal-banner .line-art { position: absolute; inset: 0; }
@keyframes la-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 45%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes la-flow { to { stroke-dashoffset: -.1; } }
@keyframes la-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.9); opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .line-art .draw, .line-art .draw > *, .line-art .flow, .line-art .pulse { animation: none; stroke-dashoffset: 0; } }

/* ICON TILE TRANSITIONS (skills, top 10, career) — tiles themselves unchanged */
.tile-icon i { display: inline-block; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .4s; animation: ti-in .8s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--n, 0) * 70ms + .15s); }
.tile-icon span { transition: letter-spacing .45s cubic-bezier(.2,.8,.2,1), opacity .3s; animation: ti-label .8s ease backwards; animation-delay: calc(var(--n, 0) * 70ms + .3s); }
.card:hover .tile-icon i, .card:focus-within .tile-icon i { transform: translateY(-6px) scale(1.18) rotate(-6deg); filter: drop-shadow(0 6px 14px rgba(255,255,255,.45)); }
.card:hover .tile-icon span, .card:focus-within .tile-icon span { letter-spacing: .14em; }
.card:hover .tile-icon i.fa-snowflake { transform: scale(1.2) rotate(180deg); }
.card:hover .tile-icon i.fa-python, .card:hover .tile-icon i.fa-aws { transform: translateY(-6px) scale(1.2); }
.card .tile-icon i { animation-fill-mode: backwards; }
.scroller .card:nth-child(1) { --n: 0; } .scroller .card:nth-child(2) { --n: 1; } .scroller .card:nth-child(3) { --n: 2; }
.scroller .card:nth-child(4) { --n: 3; } .scroller .card:nth-child(5) { --n: 4; } .scroller .card:nth-child(6) { --n: 5; }
.scroller .card:nth-child(n+7) { --n: 6; }
@keyframes ti-in { from { opacity: 0; transform: translateY(14px) scale(.5) rotate(-25deg); filter: blur(4px); } }
@keyframes ti-label { from { opacity: 0; letter-spacing: .3em; } }
.tile-icon span::selection, .tile-icon::selection { background: transparent; }
.tile-icon { user-select: none; -webkit-user-select: none; }
@media (prefers-reduced-motion: reduce) { .tile-icon i, .tile-icon span { animation: none; transition: none; } }

/* SKILL FLIP CARDS ------------------------------------------------------- */
.card.flip { background: none; box-shadow: none; }
.card.flip:hover, .card.flip:focus-within { transform: scale(1.04); box-shadow: none; }
.card.flip .thumb { overflow: visible; background: none; perspective: 900px; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .85s cubic-bezier(.2,.8,.2,1); }
.card.flip:hover .flip-in, .card.flip:focus-within .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 4px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.card.flip .tile-icon { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.line-art-svg { width: 78%; height: 74%; stroke: rgba(255,255,255,.92); stroke-width: 1.3; overflow: visible; }
.back-note { position: absolute; left: 0; right: 0; bottom: .55rem; text-align: center; font-size: .7rem; letter-spacing: .06em; color: rgba(255,255,255,.75); padding: 0 .6rem; }
.line-art-svg .draw, .line-art-svg .draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.card.flip:hover .line-art-svg .draw, .card.flip:hover .line-art-svg .draw > * { animation: la-draw 4s cubic-bezier(.5,0,.2,1) var(--d, .35s) infinite; }
.line-art-svg .flow { stroke: #ffd08a; stroke-dasharray: .025 .075; }
.card.flip:hover .line-art-svg .flow { animation: la-flow 1.4s linear infinite; }
.line-art-svg .pulse { fill: #fff; stroke: none; transform-box: fill-box; transform-origin: center; }
.card.flip:hover .line-art-svg .pulse { animation: la-pulse 1.6s ease-in-out infinite; }
.line-art-svg .spin { transform-box: view-box; transform-origin: 80px 50px; }
.card.flip:hover .line-art-svg .spin { animation: sk-spin 9s linear infinite; }
.card.flip:hover .line-art-svg .spin.slow { animation-duration: 14s; }
.line-art-svg .scan { fill: rgba(255,255,255,.22); stroke: none; }
.card.flip:hover .line-art-svg .scan { animation: sk-scan 2.4s ease-in-out infinite; }
.line-art-svg .blink { fill: #fff; stroke: none; }
.card.flip:hover .line-art-svg .blink { animation: sk-blink 1s steps(2) infinite; }
.line-art-svg .bob, .line-art-svg .bob2 { stroke-dasharray: none; }
.card.flip:hover .line-art-svg .bob { animation: sk-up 1.8s ease-in-out infinite; }
.card.flip:hover .line-art-svg .bob2 { animation: sk-down 1.8s ease-in-out infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@keyframes sk-scan { 0%, 100% { transform: translateY(0); } 33% { transform: translateY(18px); } 66% { transform: translateY(34px); } }
@keyframes sk-blink { 50% { opacity: 0; } }
@keyframes sk-up { 0%, 100% { transform: translateY(2px); opacity: .4; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes sk-down { 0%, 100% { transform: translateY(-2px); opacity: .4; } 50% { transform: translateY(5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flip-in { transition: none; } .line-art-svg * { animation: none !important; stroke-dashoffset: 0 !important; } }

/* TOP-10 RANK NUMBERS: red outline, fills + lifts on hover, slides in on load */
.card.top10 .rank {
  color: rgba(229,9,20,0); -webkit-text-stroke: 3px var(--red);
  transition: color .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), -webkit-text-stroke-color .4s, text-shadow .5s;
  animation: rank-in .9s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--n, 0) * 90ms);
}
.card.top10:hover .rank, .card.top10:focus-within .rank {
  color: var(--red); -webkit-text-stroke-color: #ff5a64; transform: translateY(-14px) scale(1.08);
  text-shadow: 0 10px 28px rgba(229,9,20,.45);
}
@keyframes rank-in { from { opacity: 0; transform: translateX(-34px) scale(.8); -webkit-text-stroke-color: rgba(229,9,20,0); } }
@media (prefers-reduced-motion: reduce) { .card.top10 .rank { animation: none; transition: none; } }
.line-art .dot { fill: #fff; stroke: none; }
.line-art .orb { transform-origin: 160px 92px; transform-box: view-box; animation: sk-spin 14s linear infinite; }
.line-art .orb.r { animation-direction: reverse; }

/* VIHARASETU LOGO TILE */
.logo-tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(100% 100% at 50% 40%, #fff, #eaf3ff); }
.logo-tile img { height: 92%; width: auto; max-width: 92%; object-fit: contain; transition: transform .8s cubic-bezier(.2,.8,.2,1); animation: logo-in 1s cubic-bezier(.2,.8,.2,1) backwards; }
.card:hover .logo-tile img { transform: scale(1.08) rotate(-1.5deg); }
@keyframes logo-in { from { opacity: 0; transform: scale(.85); filter: blur(6px); } }
.modal-banner .logo-tile { position: absolute; inset: 0; }
.modal-banner .logo-tile img { height: 78%; }
.modal-banner.logo .banner-in h2 { color: #0b1d5c; text-shadow: none; }
.v-hero .v-logo { width: clamp(120px, 14vw, 190px); background: #fff; border-radius: 16px; padding: .5rem; box-shadow: 0 10px 40px rgba(0,0,0,.35); margin-bottom: 1rem; animation: logo-in 1s cubic-bezier(.2,.8,.2,1) backwards; }

/* STORY LINE ANIMATION (viharasetu.html): one 20s loop = one day, five 4s scenes ---- */
.story-anim { border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(8,20,48,.45); background: #0a1a30; aspect-ratio: 8 / 5; }
.story-anim svg { width: 100%; height: 100%; display: block; stroke: rgba(255,255,255,.92); stroke-width: 1.05; }
.story-anim text { fill: #fff; stroke: none; font: 400 12.5px Inter, sans-serif; letter-spacing: .06em; text-anchor: middle; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.story-anim .q { fill: none; stroke: #ffb36b; stroke-width: 1.2; font: 300 44px Inter, sans-serif; text-shadow: none; }
.story-anim .brand { font: 300 34px "Bebas Neue", Inter, sans-serif; letter-spacing: .32em; fill: rgba(255,255,255,.08); stroke: #fff; stroke-width: .8; }
.story-anim .acc { stroke: #ffb36b; }
.story-anim .sil { fill: rgba(8,22,44,.55); }
.story-anim .land { fill: rgba(224,191,140,.3); stroke-opacity: .6; }
.story-anim .sky { opacity: 0; }
.story-anim .k0 { animation: sk0 20s linear infinite; } .story-anim .k1 { animation: sk1 20s linear infinite; } .story-anim .k2 { animation: sk2 20s linear infinite; }
.story-anim .k3 { animation: sk3 20s linear infinite; } .story-anim .k4 { animation: sk4 20s linear infinite; }
.story-anim .sun { animation: sa-sun 20s linear infinite; }
.story-anim .sun .disc { stroke: currentColor; fill: rgba(255,244,214,.25); stroke-width: 1.2; }
.story-anim .sun { animation: sa-sun 20s linear infinite, sa-suncol 20s linear infinite; }
.story-anim .moon { fill: rgba(255,244,214,.12); stroke: #fff4d6; opacity: 0; animation: sa-moon 20s linear infinite; }
.story-anim .stars circle { fill: #fff; stroke: none; animation: sa-twinkle 2.4s ease-in-out infinite; }
.story-anim .stars circle:nth-child(2n) { animation-delay: -.8s; } .story-anim .stars circle:nth-child(3n) { animation-delay: -1.5s; }
.story-anim .stars { opacity: 0; animation: sa-stars 20s linear infinite; }
.story-anim .wave { stroke: rgba(255,255,255,.55); stroke-width: .9; animation: sa-wave 5s linear infinite; }
.story-anim .w2 { animation-duration: 7s; stroke-opacity: .7; } .story-anim .w3 { animation-duration: 9s; animation-direction: reverse; stroke-opacity: .45; }
.story-anim .sc { opacity: 0; animation: sa-scene 20s linear infinite; animation-delay: var(--s); }
.story-anim .dr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sa-draw 20s linear infinite; animation-delay: calc(var(--s, 0s) + var(--d, 0s)); }
.story-anim .sc text { opacity: 0; animation: sa-fade 20s linear infinite; animation-delay: calc(var(--s, 0s) + 1.2s); }
.story-anim .bob { animation: sa-bob 1.1s ease-in-out infinite alternate; animation-delay: var(--b); }
.story-anim .float { animation: sa-bob 1.8s ease-in-out infinite alternate; animation-delay: var(--b); }
.story-anim .bird { fill: none; stroke-width: 1; animation: sa-fly 9s linear infinite; animation-delay: var(--f, 0s); transform: translate(-30px, var(--y, 60px)); }
.story-anim .flow { stroke: #fff; stroke-dasharray: .015 .045; animation: sa-flow 2s linear infinite; opacity: .85; }
.story-anim .trav, .story-anim .rider, .story-anim .plane { fill: #ffb36b; stroke: none; offset-rotate: 0deg; }
.story-anim .trav { offset-path: path("M70 165 Q200 35 330 165"); animation: sa-travel 3.2s linear infinite; }
.story-anim .trav.t2 { animation-delay: -1.1s; } .story-anim .trav.t3 { animation-delay: -2.1s; }
.story-anim .rider { offset-path: path("M70 236 C120 208 150 240 200 214 S290 196 316 170"); animation: sa-travel 3.4s ease-in-out infinite; }
.story-anim .plane { fill: #fff; offset-path: path("M20 80 C110 40 210 52 380 24"); offset-rotate: auto; animation: sa-travel 3.8s ease-in-out infinite; }
.story-anim .trail { stroke: rgba(255,255,255,.35); stroke-dasharray: .01 .03; }
.story-anim .lantern { fill: rgba(255,179,107,.25); stroke: #ffb36b; animation: sa-lantern 6s ease-in infinite; }
.story-anim .lantern.l2 { animation-delay: -2s; } .story-anim .lantern.l3 { animation-delay: -4s; }
.story-anim .prog { stroke: #ffb36b; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sa-prog 20s linear infinite; }
@keyframes sk0 { 0%, 17% { opacity: 1; } 22% { opacity: 0; } 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sk1 { 0%, 17% { opacity: 0; } 22%, 37% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes sk2 { 0%, 37% { opacity: 0; } 42%, 52% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes sk3 { 0%, 52% { opacity: 0; } 58%, 77% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes sk4 { 0%, 77% { opacity: 0; } 82%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sa-sun { 0% { transform: translate(60px, 182px); opacity: 0; } 2% { opacity: 1; } 10% { transform: translate(86px, 140px); } 20% { transform: translate(120px, 96px); } 30% { transform: translate(170px, 58px); } 40% { transform: translate(215px, 50px); } 50% { transform: translate(250px, 86px); } 58% { transform: translate(268px, 118px); } 65% { transform: translate(285px, 150px); } 72% { transform: translate(298px, 178px); opacity: 1; } 76% { transform: translate(300px, 215px); opacity: 0; } 100% { transform: translate(60px, 215px); opacity: 0; } }
@keyframes sa-suncol { 0% { color: #ffd08a; } 25% { color: #fff3c4; } 40% { color: #fff3c4; } 55% { color: #ffb36b; } 70% { color: #ff7a45; } 100% { color: #ff7a45; } }
@keyframes sa-moon { 0%, 76% { opacity: 0; } 84%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sa-stars { 0%, 74% { opacity: 0; } 84%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sa-twinkle { 50% { opacity: .25; } }
@keyframes sa-wave { to { transform: translateX(80px); } }
@keyframes sa-scene { 0% { opacity: 0; } 1.3% { opacity: 1; } 18% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sa-draw { 0% { stroke-dashoffset: 1; } 5.5% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes sa-fade { 0% { opacity: 0; } 1.6% { opacity: 1; } 100% { opacity: 1; } }
@keyframes sa-bob { to { transform: translateY(-3px); } }
@keyframes sa-fly { from { transform: translate(-30px, var(--y, 60px)); } to { transform: translate(430px, calc(var(--y, 60px) - 24px)); } }
@keyframes sa-flow { to { stroke-dashoffset: -.06; } }
@keyframes sa-travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes sa-lantern { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-110px); opacity: 0; } }
@keyframes sa-prog { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .story-anim * { animation: none !important; } .story-anim .sc { opacity: 0; } .story-anim .sc:nth-of-type(3) { opacity: 1; } .story-anim .dr, .story-anim .prog { stroke-dashoffset: 0; } .story-anim .sc text { opacity: 1; } .story-anim .k2 { opacity: 1; } .story-anim .sun { transform: translate(250px, 100px); } }
.story-anim .cloud { fill: rgba(18,60,110,.78); }
.story-anim .lg { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sa-pop 20s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: calc(var(--s) + .5s); filter: drop-shadow(0 4px 12px rgba(255,179,107,.45)); }
@keyframes sa-pop { 0% { opacity: 0; transform: scale(.6); } 2.2% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .story-anim .lg { opacity: 0; } }

/* OFFER CARDS: reveal, hover, and a thin-line icon travelling left to right ---- */
.offer { position: relative; overflow: hidden; }
.offer-grid .offer { opacity: 0; transform: translateY(26px); }
.fx.in .offer-grid .offer { animation: off-in .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + .1s); }
.offer-grid .offer:nth-child(1) { --i: 0; --o: 0s; } .offer-grid .offer:nth-child(2) { --i: 1; --o: -.9s; } .offer-grid .offer:nth-child(3) { --i: 2; --o: -1.8s; }
.offer-grid .offer:nth-child(4) { --i: 3; --o: -2.7s; } .offer-grid .offer:nth-child(5) { --i: 4; --o: -3.6s; } .offer-grid .offer:nth-child(6) { --i: 5; --o: -4.5s; } .offer-grid .offer:nth-child(7) { --i: 6; --o: -5.4s; }
.offer::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.offer:hover::after { transform: scaleX(1); }
.offer:hover { box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.o-track { position: relative; height: 38px; margin-bottom: .8rem; }
.o-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, var(--red), rgba(229,9,20,.15)); transform-origin: left; transform: scaleX(0); animation: o-line 5.4s cubic-bezier(.5,0,.2,1) infinite; animation-delay: var(--o, 0s); }
.o-ico { position: absolute; left: 0; top: 0; width: 38px; height: 38px; padding: 5px; background: var(--card); border-radius: 50%; stroke: var(--red); stroke-width: 1.2; animation: o-move 5.4s cubic-bezier(.5,0,.2,1) infinite; animation-delay: var(--o, 0s); }
.offer:hover .o-ico { background: var(--card-hi); }
.o-ico * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: o-draw 5.4s ease-in-out infinite; animation-delay: var(--o, 0s); }
.o-dot { position: absolute; top: calc(50% - 2.5px); right: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: .55; }
.offer:hover .o-ico, .offer:hover .o-line { animation-duration: 3s; }
.offer:hover .o-ico * { animation-duration: 3s; }
@keyframes off-in { to { opacity: 1; transform: none; } }
@keyframes o-move { 0%, 8% { left: 0; } 70%, 100% { left: calc(100% - 38px); } }
@keyframes o-line { 0%, 8% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 92%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes o-draw { 0% { stroke-dashoffset: 1; } 18%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .offer-grid .offer { opacity: 1; transform: none; animation: none !important; } .o-ico, .o-line, .o-ico * { animation: none !important; } .o-ico * { stroke-dashoffset: 0; } .o-line { transform: none; } }

/* GALLERY: photo cards with reveal, zoom and caption slide ----------------- */
.gallery3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.gallery3 figure { position: relative; margin: 0; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; opacity: 0; transform: translateY(28px) scale(.97); }
.fx.in .gallery3 figure { animation: gal-in .9s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--g, 0) * 120ms + .1s); }
.gallery3 figure:nth-child(2) { --g: 1; } .gallery3 figure:nth-child(3) { --g: 2; } .gallery3 figure:nth-child(4) { --g: 3; }
.gallery3 figure img { height: 100%; aspect-ratio: auto; border-radius: 0; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.gallery3 figure:hover img { transform: scale(1.1); }
.gallery3 figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); transform: translateY(38%); opacity: .9; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.gallery3 figcaption b { display: block; font-size: 1.05rem; font-weight: 600; }
.gallery3 figcaption span { display: block; font-size: .82rem; color: #ddd; opacity: 0; transition: opacity .4s .1s; }
.gallery3 figure:hover figcaption { transform: none; opacity: 1; }
.gallery3 figure:hover figcaption span { opacity: 1; }
.gallery3 figure::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gallery3 figure:hover::after { transform: scaleX(1); }
@keyframes gal-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gallery3 figure { opacity: 1; transform: none; animation: none !important; } .gallery3 figure:hover img { transform: none; } }

/* planned trek badge + drawn art in trek cards / story hero */
.trek-img .diff.plan { left: auto; right: .8rem; background: #0e7490; }
.trek-img .line-art { height: 100%; transition: transform .6s; }
.trek-card:hover .trek-img .line-art { transform: scale(1.04); }
.story-hero > .hero-art { position: absolute; inset: 0; }
.story-hero > .hero-art .line-art { height: 100%; }
.plan-badge { display: inline-block; background: #0e7490; color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 3px; }
.story-hero > .hero-art .line-art svg { stroke-width: .45; }
.story-hero > .hero-art .line-art .flow { stroke-width: .6; }

/* white theme: banners end in a hard dark edge, so content must not overlap them */
.gallery-wrap { margin-top: 1.2rem; }
#rows.rows-page { margin-top: 1rem; }
@media (max-width: 800px) { .gallery-wrap { margin-top: 1rem; } }
.chip-btn.on { background: #141414; color: #fff; border-color: #141414; }

/* GALLERY PASSWORD GATE */
.g-tabs .n.lock { background: none; padding: 0 .2rem; color: var(--muted); }
.g-tabs .n.lock i { margin: 0; color: var(--muted); font-size: .8rem; }
.g-tabs .is-locked { opacity: .85; }
.pw-back { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(255,255,255,.65); backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.pw-back.open { opacity: 1; }
.pw-box { width: min(380px, 100%); background: #141414; color: #fff; border-radius: 14px; padding: 1.8rem 1.6rem 1.4rem; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.4); transform: translateY(16px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.pw-back.open .pw-box { transform: none; }
.pw-ico { font-size: 1.6rem; color: var(--red); margin-bottom: .6rem; }
.pw-box h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; font-size: 1.2rem; margin-bottom: .3rem; color: #fff; }
.pw-box p { color: #b3b3b3; font-size: .92rem; margin-bottom: 1rem; }
.pw-box input { width: 100%; padding: .8rem 1rem; border-radius: 8px; border: 1px solid #555; background: #222; color: #fff; font: inherit; font-size: 1.1rem; letter-spacing: .3em; text-align: center; }
.pw-box input:focus { outline: none; border-color: var(--red); }
.pw-err { min-height: 1.3rem; margin: .5rem 0; color: #ff6b6b; font-size: .85rem; }
.pw-actions { display: flex; gap: .6rem; justify-content: center; }
.pw-actions .btn { padding: .55rem 1.2rem; }
.pw-box.shake { animation: pw-shake .4s; }
@keyframes pw-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* GALLERY: smooth, GPU-friendly photo transitions (transform + opacity only) ---- */
.g-item { color: #fff; --fx: 0px; --fy: 60px; --fr: 0deg; backface-visibility: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease; }
.g-item:nth-child(-n+24) { animation: gi-from .8s cubic-bezier(.16,.9,.24,1) backwards; animation-delay: calc(var(--n, 0) * 35ms); }
.g-item img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.g-item:hover, .g-item:focus-visible { --s: 1.05; will-change: transform; box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.9); z-index: 5; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.08); }
.g-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%); transform: translateX(-110%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.g-item:hover::after, .g-item:focus-visible::after { transform: translateX(110%); }
.g-cap { padding: 3.2rem .9rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.92) 70%); opacity: 0; transform: translateY(40%); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); z-index: 1; }
.g-item:hover .g-cap, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-cap strong { color: #fff; font-size: .98rem; font-weight: 700; letter-spacing: .01em; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.g-cap small { display: inline-block; margin-top: .3rem; padding: .12rem .6rem; border-radius: 50px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#lb-img.pop { animation: lb-pop .5s cubic-bezier(.2,.8,.2,1); }
/* photos burst out of the chip / tab you clicked and land in the grid */
@keyframes gi-from { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.12) rotate(var(--fr)); } 14% { opacity: 1; } }
@keyframes lb-pop   { from { opacity: 0; transform: scale(.9); } }
@media (max-width: 800px) { .g-cap { display: none; } .g-item:hover { --s: 1; } }
@media (prefers-reduced-motion: reduce) { .g-item, .g-item img, #lb-img.pop { animation: none !important; transition: none; } .g-item { transform: none; } }

/* PREMIUM FILTER CHIPS ------------------------------------------------------ */
.g-filters { gap: .6rem; }
.chip-btn { position: relative; overflow: hidden; isolation: isolate; padding: .5rem 1.15rem; border-radius: 50px; border: 1px solid rgba(20,20,20,.18); background: #fff; color: #2b2e35;
  font-size: .84rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: color .35s, border-color .35s, box-shadow .35s, transform .35s cubic-bezier(.2,.8,.2,1); animation: chip-in .6s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--c, 0) * 40ms); }
.chip-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, #141414, #3a1218 55%, var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.chip-btn:hover, .chip-btn:focus-visible { color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(229,9,20,.25); }
.chip-btn:hover::before, .chip-btn:focus-visible::before { transform: scaleX(1); }
.chip-btn:active { transform: translateY(0) scale(.97); }
.chip-btn.on { background: #141414; color: #fff; border-color: #141414; box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.chip-btn.on::before { transform: scaleX(1); }
.chip-btn.on::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--red); box-shadow: 0 0 8px var(--red); }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .chip-btn, .chip-btn::before { animation: none; transition: none; } }

/* CONTACT FORM: clear, high-contrast light card -------------------------------- */
.glass-form { background: #fff; border: 1px solid #d5d9e1; box-shadow: 0 24px 60px rgba(20,30,60,.14); }
.glass-form h2 { color: #141414; }
.glass-form .form-sub { color: #4a4f5a; font-size: 1rem; }
.topics span { border: 1.5px solid #b9bfca; color: #1f2430; font-weight: 600; background: #fff; }
.topics label:hover span { border-color: var(--red); color: var(--red); }
.topics input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.topics input:focus-visible + span { outline: 3px solid #141414; }
.field input, .field textarea { background: #f4f6f9; color: #141414; border: 1.5px solid #b9bfca; font-weight: 500; }
.field input:hover, .field textarea:hover { border-color: #8b93a3; }
.field label { color: #4a4f5a; font-weight: 500; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,9,20,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { color: var(--red); font-weight: 700; }
.field .count { color: #5b6270; }
.field.invalid input, .field.invalid textarea { border-color: #d62828; background: #fff5f5; }
.glass-form .form-note { color: #4a4f5a; font-size: .85rem; }
.glass-form .form-msg { font-weight: 600; }

/* DETAIL POPUP: readable colours on the light card ---------------------------- */
.modal-banner::after { background: linear-gradient(transparent 30%, rgba(8,12,24,.78)); }
.modal-banner.logo::after { background: linear-gradient(transparent 40%, var(--card)); }
.modal-banner .tile-icon { color: rgba(255,255,255,.95); position: relative; overflow: hidden; }
.modal-banner .tile-icon::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; left: 50%; top: 46%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); animation: mb-glow 4s ease-in-out infinite; }
.modal-banner .tile-icon i { position: relative; font-size: 5.5rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); animation: mb-float 4s ease-in-out infinite; }
.modal-body .meta-line { color: #3a3d45; }
.modal-body .meta-line .match { color: #178a3e; }
.modal-body .age-badge { border-color: #6b7280; color: #3a3d45; }
.modal-body .main p b { color: #178a3e; }
.modal-body .side { color: #3a3d45; }
.modal-body .side b { color: #5c6068; font-weight: 600; }
.modal-body h3.sec { color: #141414; }
@keyframes mb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mb-glow { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .modal-banner .tile-icon i, .modal-banner .tile-icon::before { animation: none; } }
.modal-banner .ctrl { border-color: rgba(255,255,255,.75); color: #fff; background: rgba(255,255,255,.14); }
.modal-banner .ctrl:hover { background: #fff; color: #141414; border-color: #fff; }
.modal-banner .ctrl.on { border-color: var(--green); color: var(--green); }
.modal-body { padding-top: 1.3rem; }

/* PILLAR CARDS: reveal, thin-line icons, hover ---------------------------------- */
.pillar { position: relative; overflow: hidden; opacity: 0; transform: translateY(30px) scale(.97); }
.fx.in .pillar { animation: pl-in .9s cubic-bezier(.16,.9,.24,1) forwards; animation-delay: calc(var(--i, 0) * 140ms + .15s); }
.pillar:nth-child(1) { --i: 0; } .pillar:nth-child(2) { --i: 1; } .pillar:nth-child(3) { --i: 2; }
.pillar { transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .45s, background .3s; }
.pillar:hover { transform: translateY(-8px); border-color: var(--red); background: #fff; box-shadow: 0 22px 44px rgba(20,30,60,.14); }
.pillar::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.pillar:hover::before { transform: scaleX(1); }
.pillar::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(229,9,20,.14), transparent 70%); transform: scale(0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pillar:hover::after { transform: scale(1.6); }
.p-ico { display: block; width: 46px; height: 46px; margin-bottom: .8rem; }
.p-ico svg { width: 100%; height: 100%; stroke: var(--red); stroke-width: 1.4; overflow: visible; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.p-ico svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx.in .p-ico svg * { animation: pl-draw 1.6s cubic-bezier(.5,0,.2,1) forwards; animation-delay: calc(var(--i, 0) * 140ms + .5s); }
.pillar:hover .p-ico svg { transform: translateY(-4px) scale(1.12) rotate(-4deg); }
.pillar:hover .p-ico svg * { animation: pl-redraw 1.2s cubic-bezier(.5,0,.2,1); }
.pillar h3, .pillar p { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.pillar:hover h3 { transform: translateX(4px); } .pillar:hover p { transform: translateX(4px); transition-delay: .05s; }
@keyframes pl-in { to { opacity: 1; transform: none; } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-redraw { 0% { stroke-dashoffset: 0; } 1% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pillar { opacity: 1; transform: none; animation: none !important; } .p-ico svg * { animation: none !important; stroke-dashoffset: 0; } }

/* round line caps leave a dot on hidden "draw-in" strokes; use flat caps so nothing shows before the line draws */
svg [pathLength] { stroke-linecap: butt; stroke-linejoin: round; }
