/*
Theme Name: Gajtech Industries
Theme URI: https://gajtechindustries.com
Author: Gajtech Industries
Description: Custom landing-page theme for Gajtech Industries — wood cutting machinery manufacturer. Lead-capture landing page, built for GlobeHost/WordPress.
Version: 1.0
Text Domain: gajtech
*/

/* ============================
   0. Design tokens
   ============================ */
:root{
  --red: #E31E24;
  --red-dark: #B5171C;
  --ink: #1C1C1C;
  --ink-soft: #2A2A2A;
  --steel: #5B5F63;
  --line: #D8D5D0;
  --bg: #F0EEEA;
  --card: #FFFFFF;
  --white: #FFFFFF;

  --font-head: 'Archivo Black', 'Archivo', Arial, sans-serif;
  --font-head-alt: 'Archivo', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
}

/* ============================
   1. Reset & base
   ============================ */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-head-alt); font-weight:800; line-height:1.12; margin:0 0 .5em; }
p{ margin:0 0 1em; color: var(--steel); }
button{ font-family: var(--font-body); cursor:pointer; }

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }

#top, #products, #why-us, #quote{ scroll-margin-top: 84px; }

.eyebrow-none{ /* intentionally unused: no tracked-out eyebrow labels in this design */ }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 15px 30px;
  font-family: var(--font-head-alt);
  font-weight:700;
  font-size: 15px;
  border-radius: 0;
  border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active{ transform: translateY(1px); }
/* Cut-corner motif only on solid-fill buttons — a border can't follow a clipped
   diagonal edge, so outline buttons keep a clean rectangular edge instead. */
.btn--primary{
  background: var(--red);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.btn--primary:hover{ background: var(--red-dark); }
.btn--ghost-dark{ border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost-dark:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--ghost-light{ border-color: var(--ink); color: var(--ink); }
.btn--ghost-light:hover{ background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--block{ width:100%; justify-content:center; }

/* ============================
   2. Header / Nav
   ============================ */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: var(--ink);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 18px rgba(0,0,0,.25); }

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 12px 0;
}
.site-branding{ display:flex; align-items:center; gap:12px; min-width:0; }
.site-branding img.custom-logo{ height:48px; width:auto; }

/* Safety net: any custom-logo placed anywhere must never overflow its container */
img.custom-logo{ max-width:100%; height:auto; }
.footer-brand img.custom-logo{ height:44px; width:auto; margin-bottom:16px; }
.site-branding .brand-fallback{
  font-family: var(--font-head);
  color: var(--white);
  font-size: 20px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.main-nav{ display:flex; align-items:center; gap:32px; }
.main-nav ul{ display:flex; gap:28px; }
.main-nav a{
  color: rgba(255,255,255,.85);
  font-weight:600;
  font-size:15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--white); border-color: var(--red); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.header-phone{ color: var(--white); font-weight:600; font-size:15px; white-space:nowrap; }
.header-phone span{ color: rgba(255,255,255,.55); font-weight:500; margin-right:6px; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width:40px; height:40px;
  position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:'';
  position:absolute; left:8px; right:8px;
  height:2px; background:var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span{ top:19px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after{ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .header-phone{ display:none; }
  .main-nav{
    position:absolute;
    top:100%; left:0; right:0;
    background: var(--ink);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    max-height:0;
    overflow:hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open{ max-height:400px; }
  .main-nav ul{ flex-direction:column; gap:0; padding: 8px 24px 16px; }
  .main-nav ul li{ border-bottom:1px solid rgba(255,255,255,.08); }
  .main-nav a{ display:block; padding: 14px 0; border-bottom:none; }
  .main-nav .header-actions{ padding: 0 24px 20px; }
  .main-nav .btn{ width:100%; justify-content:center; }
}

/* ============================
   3. Hero (diagonal cut)
   ============================ */
.hero{
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 560px;
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 80px 48px 80px 0;
}
.hero-copy .container{ padding:0; max-width:560px; margin-left:auto; }
.hero-kicker{
  color: var(--red);
  font-family: var(--font-head-alt);
  font-weight:800;
  font-size:15px;
  margin-bottom: 18px;
}
.hero h1{
  font-family: var(--font-head);
  font-size: clamp(34px, 4.2vw, 54px);
  color: var(--ink);
  letter-spacing: .2px;
}
.hero .lede{
  font-size: 18px;
  color: var(--steel);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }

.hero-visual{
  position: relative;
  background: var(--ink);
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0% 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 40px;
}
.hero-visual img{
  max-width: 92%;
  max-height: 480px;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.45));
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; min-height:0; }
  .hero-copy{ padding: 56px 24px 40px; order:2; }
  .hero-copy .container{ margin:0; max-width:none; }
  .hero-visual{
    clip-path: none;
    order:1;
    padding: 32px 24px;
  }
  .hero-visual img{ max-height: 320px; }
}

/* ============================
   4. Section heading pattern
   ============================ */
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head h2{ font-size: clamp(26px, 3vw, 36px); color: var(--ink); }
.section-head p{ font-size: 17px; }
.section-head--onlight h2, .section-head--onlight p{ color: var(--white); }
.section-head--onlight p{ color: rgba(255,255,255,.72); }

/* ============================
   5. Product gallery
   ============================ */
.range{ background: var(--bg); }

.range-banner{
  background: var(--ink);
  color: var(--white);
  padding: 40px 44px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
  border-left: 6px solid var(--red);
  overflow:hidden;
  margin-bottom: 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 32px;
  flex-wrap:wrap;
}
.range-banner .kicker{
  font-family: var(--font-head-alt);
  color: var(--red);
  font-weight:700;
  font-size: 14px;
  margin-bottom: 10px;
}
.range-banner h3{
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--white);
  line-height:1.2;
  margin: 0;
  max-width: 42ch;
}
.range-banner .ghost-num{
  font-family: var(--font-head);
  font-size: 130px;
  line-height:1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.12);
  pointer-events:none;
  flex: none;
}
@media (max-width: 700px){
  .range-banner{ padding: 30px 26px; }
  .range-banner .ghost-num{ display:none; }
}

/* Filter pills */
.range-filters{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.range-filter{
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--steel);
  font-family: var(--font-head-alt);
  font-weight:600;
  font-size: 13.5px;
  padding: 10px 18px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.range-filter:hover{ border-color: var(--red); color: var(--ink); }
.range-filter.is-active{ background: var(--red); border-color: var(--red); color: var(--white); }

/* Product grid */
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card{
  background: var(--card);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  overflow:hidden;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.1); }
.product-card.is-hidden{ display:none; }
.product-thumb{
  aspect-ratio: 4 / 3;
  background: #fff;
  display:flex; align-items:center; justify-content:center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  overflow:hidden;
}
.product-thumb img{
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit: contain;
  transition: transform .4s ease;
}
.product-card:hover .product-thumb img{ transform: scale(1.06); }
.product-body{ padding: 16px 18px 20px; }
.product-model{
  display:inline-block;
  font-family: var(--font-head-alt);
  font-weight:800;
  font-size: 12.5px;
  color: var(--red);
  letter-spacing: .3px;
  margin-bottom: 6px;
}
.product-name{
  font-family: var(--font-head-alt);
  font-weight:700;
  font-size: 15.5px;
  color: var(--ink);
  line-height:1.3;
  margin:0;
}

@media (max-width: 1080px){
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap:16px; }
  .range-banner{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 480px){
  .product-grid{ grid-template-columns: 1fr; }
}

/* ============================
   5b. Mini info cards (About page category overview)
   ============================ */
.mini-card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mini-card{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.mini-card h3{ color: var(--ink); font-size: 17px; margin-bottom: .5em; }
.mini-card p{ color: var(--steel); font-size: 14.5px; margin:0; }

@media (max-width: 900px){
  .mini-card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .mini-card-grid{ grid-template-columns: 1fr; }
}

/* ============================
   6. Why Gajtech (dark band)
   ============================ */
.why{ background: var(--ink); position:relative; overflow:hidden; }
.why .container{ position:relative; z-index:1; }
.why-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-item .icon{
  width:48px; height:48px;
  margin-bottom:20px;
  color: var(--red);
}
.why-item h3{ color: var(--white); font-size:20px; margin-bottom:.4em; }
.why-item p{ color: rgba(255,255,255,.68); font-size:15px; margin:0; }

@media (max-width: 760px){
  .why-grid{ grid-template-columns:1fr; gap:36px; }
}

/* ============================
   7. Quote / lead form
   ============================ */
.quote{ background: var(--bg); }
.quote-wrap{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items:stretch;
}
.quote-info{ display:flex; flex-direction:column; justify-content:center; }
.quote-info h2{ font-size: clamp(26px,3vw,34px); }
.quote-points{ margin-top: 28px; }
.quote-points li{
  display:flex; gap:12px; align-items:flex-start;
  margin-bottom:16px; color: var(--ink); font-weight:600; font-size:15px;
}
.quote-points li svg{ flex:none; color: var(--red); margin-top:2px; }

.quote-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  padding: 36px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:18px; }
.form-group label{
  display:block;
  font-size:13px;
  font-weight:700;
  color: var(--ink);
  margin-bottom:6px;
  text-transform: none;
}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color: var(--red);
  outline: none;
}
.form-group textarea{ resize: vertical; min-height:100px; }
.form-note{ font-size:13px; color: var(--steel); margin-top:14px; }

.form-alert{
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 14px;
  font-weight:600;
}
.form-alert--success{ background:#E9F6EC; color:#1E6B34; border:1px solid #BFE6C8; }
.form-alert--error{ background:#FCEAEA; color:#A31E22; border:1px solid #F3C6C6; }

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

/* ============================
   8. Footer
   ============================ */
.site-footer{ background: var(--ink-soft); padding: 64px 0 28px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img{ height:44px; margin-bottom:16px; }
.footer-brand p{ color: rgba(255,255,255,.6); font-size:14px; max-width:36ch; }
.footer-col h4{
  color: var(--white); font-size:15px; margin-bottom:18px; font-family: var(--font-head-alt);
}
.footer-col ul li{ margin-bottom:12px; }
.footer-col a, .footer-col span{ color: rgba(255,255,255,.65); font-size:14.5px; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  padding-top: 24px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
}

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

/* ============================
   9. Generic page template
   ============================ */
.page-hero{ background: var(--ink); padding: 72px 0; }
.page-hero h1{ color: var(--white); font-family: var(--font-head); font-size: clamp(30px,4vw,44px); margin:0; }
.page-content{ padding: 72px 0; }
.page-content .container{ max-width: 800px; }
.page-content h2{ font-size:26px; margin-top:1.4em; }
.page-content p, .page-content li{ color: var(--ink); }
.page-content ul{ list-style:disc; padding-left:1.2em; margin-bottom:1em; }

/* ============================
   9b. Scroll-reveal animation
   ============================ */
/* Fail-safe by design: this rule ONLY declares the transition — it never
   sets opacity/transform itself. Hiding elements is done exclusively by
   JS setting inline styles at runtime (see theme.js), and only after JS
   has confirmed it can also reveal them again. That means: no JS running
   = nothing is ever hidden (inline styles are simply never applied), and
   no risk of a stale cached CSS file disagreeing with a newer JS file
   (or vice versa) about which class means what. */
.reveal{
  transition: opacity .6s ease, transform .6s ease;
}

.hero-kicker.reveal,
.hero h1.reveal,
.hero .lede.reveal,
.hero-ctas.reveal{ transition-delay: 0s; }
.hero-copy .hero-kicker{ transition-delay: .05s; }
.hero-copy h1{ transition-delay: .18s; }
.hero-copy .lede{ transition-delay: .32s; }
.hero-copy .hero-ctas{ transition-delay: .46s; }
.hero-visual.reveal{ transition-delay: .2s; }

.why-item.reveal:nth-child(1){ transition-delay: 0s; }
.why-item.reveal:nth-child(2){ transition-delay: .12s; }
.why-item.reveal:nth-child(3){ transition-delay: .24s; }

.product-card.reveal:nth-child(4n+1){ transition-delay: 0s; }
.product-card.reveal:nth-child(4n+2){ transition-delay: .07s; }
.product-card.reveal:nth-child(4n+3){ transition-delay: .14s; }
.product-card.reveal:nth-child(4n+4){ transition-delay: .21s; }

.range-list li.reveal:nth-child(1){ transition-delay: 0s; }
.range-list li.reveal:nth-child(2){ transition-delay: .06s; }
.range-list li.reveal:nth-child(3){ transition-delay: .12s; }
.range-list li.reveal:nth-child(4){ transition-delay: .18s; }
.range-list li.reveal:nth-child(5){ transition-delay: .24s; }
.range-list li.reveal:nth-child(6){ transition-delay: .3s; }
.range-list li.reveal:nth-child(7){ transition-delay: .36s; }
.range-list li.reveal:nth-child(8){ transition-delay: .42s; }


/* ============================
   9c. Hover motion
   ============================ */
.hero-visual{ cursor: zoom-in; }
.hero-visual img{ transition: transform .5s ease; }
.hero-visual:hover img{ transform: scale(1.035); }

.why-item .icon{ transition: transform .35s ease; }
.why-item:hover .icon{ transform: scale(1.12) rotate(-4deg); }

.btn{ transform: translateZ(0); }
.btn--primary:hover{ transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(227,30,36,.35)); }
.btn--ghost-light:hover, .btn--ghost-dark:hover{ transform: translateY(-2px); }

/* ============================
   9d. Marquee strip
   ============================ */
.marquee{
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee-track{
  display:flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee-track span{
  display:flex;
  align-items:center;
  font-family: var(--font-head-alt);
  font-weight:700;
  font-size: 15px;
  letter-spacing:.3px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  padding: 0 28px;
}
.marquee-track span::after{
  content: '\25C6';
  color: var(--red);
  margin-left: 28px;
  font-size: 10px;
}
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ============================
   9d2. Visit us (map + address)
   ============================ */
.visit{ background: var(--white); }
.visit-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:stretch;
}
.visit-card{
  background: var(--ink);
  color: var(--white);
  padding: 40px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.visit-card h3{ color: var(--white); font-size: 24px; margin-bottom:18px; }
.visit-line{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:18px;
  color: rgba(255,255,255,.8);
  font-size:15px;
}
.visit-line svg{ flex:none; color: var(--red); margin-top:2px; }
.visit-line a{ color: rgba(255,255,255,.9); }
.visit-line a:hover{ color: var(--red); }
.visit-map{
  border: 1px solid var(--line);
  overflow:hidden;
  min-height: 320px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.visit-map iframe{ width:100%; height:100%; min-height:320px; border:0; display:block; }

@media (max-width: 860px){
  .visit-grid{ grid-template-columns:1fr; }
  .visit-map{ min-height:260px; }
  .visit-map iframe{ min-height:260px; }
}

/* ============================
   9d3. Zigzag section divider (saw-cut motif, used once)
   ============================ */
.zigzag-divider{
  display:block;
  width:100%;
  height: 22px;
  line-height:0;
}
.zigzag-divider svg{ display:block; width:100%; height:100%; }

/* ============================
   9d4. Ghost watermark texture
   ============================ */
.ghost-watermark{
  position:absolute;
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-head);
  font-size: 22vw;
  white-space:nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.045);
  pointer-events:none;
  z-index:0;
  user-select:none;
}

/* ============================
   9e. Trust strip (real info, not filler counters)
   ============================ */
.trust{ background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-strip{
  display:flex;
  flex-wrap:wrap;
  gap: 18px;
  align-items:stretch;
}
.trust-chip{
  flex: 1 1 220px;
  display:flex;
  align-items:center;
  gap:16px;
  background: var(--card);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 20px 22px;
}
.trust-chip .icon{ flex:none; width:30px; height:30px; color: var(--red); }
.trust-chip .stat-num{
  font-family: var(--font-head);
  font-size: 30px;
  color: var(--ink);
  line-height:1;
  margin:0 0 4px;
}
.trust-chip .stat-label{
  font-family: var(--font-body);
  font-weight:600;
  font-size: 13.5px;
  color: var(--steel);
  margin:0;
}
.trust-chip a{ color: var(--ink); }
.trust-chip a:hover{ color: var(--red); }

@media (max-width: 700px){
  .trust-strip{ flex-direction:column; }
}

/* ============================
   9f. Back to top
   ============================ */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 46px; height:46px;
  border-radius:50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  opacity:0;
  visibility:hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background: var(--ink); color: var(--white); }

@keyframes pulse-ring{
  0%{ transform: scale(1); opacity:.55; }
  100%{ transform: scale(1.7); opacity:0; }
}

/* ============================
   9g. Lightbox
   ============================ */
.lightbox{
  position: fixed;
  inset:0;
  background: rgba(10,10,10,.9);
  z-index: 300;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 32px;
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease, visibility .25s;
}
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close{
  position:absolute;
  top: 24px; right: 28px;
  width:44px; height:44px;
  border-radius:50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border:none;
  display:flex; align-items:center; justify-content:center;
  font-size:22px;
}
.lightbox-close:hover{ background: rgba(255,255,255,.22); }
.lightbox-caption{
  position:absolute;
  bottom: 28px; left:0; right:0;
  text-align:center;
  color: rgba(255,255,255,.8);
  font-family: var(--font-head-alt);
  font-size: 14px;
}

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

/* ============================
   10. Utility
   ============================ */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
