/* Homepage sections — loaded only on is_front_page().
   Layout driven by tokens.css; this file handles composition and motion only. */

/* Shared section ink */
.nt-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.mono-year {
  font-family: var(--font-mono);
  font-size: 0.95em;
  letter-spacing: 0.04em;
}

.nt-section {
  background: var(--canvas);
}
.nt-section + .nt-section,
.nt-section + .nt-franchise,
.nt-trust + .nt-section {
  /* sections carry own padding, borders sit at boundaries */
}

.nt-section-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 56px 16px;
}
.nt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.nt-section-head-cta { display: none; }
.nt-section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.nt-rail-cta-mobile {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
}
@media (min-width: 900px) {
  .nt-section-inner { padding: 104px 96px; }
  .nt-section-head { margin-bottom: 48px; }
  .nt-section-head-cta { display: inline-flex; }
  .nt-rail-cta-mobile { display: none; }
}

/* ---------- 00 Hero Kinetic ---------- */
.nt-hero--kinetic {
  background: var(--canvas);
  position: relative;
  overflow: hidden;
}
.nt-hero-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}
.nt-hero-eyebrow,
.nt-hero .nt-eyebrow {
  margin-bottom: 20px;
}
.nt-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 11vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.nt-hero-title .kin-line {
  display: block;
  transform: translateY(40%);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 900ms var(--ease-out), opacity 900ms ease;
}
.nt-hero-title .kin-line em {
  font-style: italic;
  color: var(--green);
}
.nt-hero-title .kin-line--accent { color: var(--green); }

.nt-hero-title.is-revealed .kin-line { transform: translateY(0); opacity: 1; }
.nt-hero-title.is-revealed .kin-line:nth-child(1) { transition-delay: 0ms; }
.nt-hero-title.is-revealed .kin-line:nth-child(2) { transition-delay: 140ms; }
.nt-hero-title.is-revealed .kin-line:nth-child(3) { transition-delay: 280ms; }

.nt-hero-body {
  margin-top: 28px;
  display: block;
}
.nt-hero-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
}
.nt-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .nt-hero-inner { padding: 104px 96px 96px; }
  .nt-hero-eyebrow, .nt-hero .nt-eyebrow { margin-bottom: 28px; }
  .nt-hero-body {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .nt-hero-lede { font-size: 20px; }
  .nt-hero-actions { margin-top: 0; }
}

/* ---------- 01 Trust strip ---------- */
.nt-trust {
  background: var(--canvas-ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nt-trust-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nt-trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nt-trust-num {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--green);
}
.nt-trust-label {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}
@media (min-width: 900px) {
  .nt-trust-inner {
    padding: 28px 64px;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }
  .nt-trust-item + .nt-trust-item {
    border-right: 1px solid var(--line-soft);
    padding-right: 40px;
  }
  html[dir="rtl"] .nt-trust-item + .nt-trust-item {
    border-right: none;
    border-left: 1px solid var(--line-soft);
    padding-right: 0;
    padding-left: 40px;
  }
  .nt-trust-num { font-size: 32px; }
  .nt-trust-label { font-size: 13px; }
}

/* ---------- 02 Categories ---------- */
.nt-cats .nt-section-title { margin-bottom: 28px; }
.nt-cats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.nt-cat-card {
  background: var(--raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
.nt-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(28, 31, 26, 0.2);
}
.nt-cat-thumb {
  width: 100%;
  min-height: 160px;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}
.nt-cat-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.nt-cat-sub { color: var(--ink-muted); margin-bottom: 8px; }
.nt-cat-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.nt-cat-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nt-cat-items span {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 10px;
  background: var(--canvas);
  border-radius: var(--r-pill);
  display: inline-block;
}
.nt-cat-more {
  color: var(--green);
  font-size: 14px;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .nt-cats .nt-section-title { margin-bottom: 48px; }
  .nt-cats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .nt-cat-card { flex-direction: row; }
  .nt-cat-thumb { width: 240px; min-height: 260px; aspect-ratio: auto; }
  .nt-cat-body { padding: 28px; }
  .nt-cat-title { font-size: 32px; }
}

/* ---------- 03 Featured rail ---------- */
.nt-featured { background: var(--canvas-ink); }
.nt-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nt-rail::-webkit-scrollbar { display: none; }
.nt-rail-card {
  background: var(--raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-width: 270px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.nt-rail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -20px rgba(28, 31, 26, 0.2);
}
.nt-rail-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--green-pale);
}
.nt-rail-media > .nt-block {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.nt-rail-img,
.nt-rail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.nt-rail-card:hover .nt-rail-img { transform: scale(1.03); }
.nt-rail-tag {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
}
.nt-rail-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nt-rail-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}
.nt-rail-title a { color: inherit; text-decoration: none; }
.nt-rail-title a:hover { color: var(--green); }
.nt-rail-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.nt-rail-price {
  font-size: 14px;
  color: var(--ink-muted);
}
.nt-rail-price .amount { color: var(--ink); font-weight: 600; }
.nt-rail-cta {
  margin-top: 8px;
  align-self: flex-start;
}
@media (min-width: 900px) {
  .nt-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .nt-rail-card { min-width: 0; }
  .nt-rail-body { padding: 20px; }
  .nt-rail-title { font-size: 24px; }
}

/* ---------- 04 Smart Systems parallax band ---------- */
.nt-smart {
  position: relative;
  overflow: hidden;
  background: #1c1f1a;
  color: #faf8f3;
}
.nt-smart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 70% 30%, rgba(61, 107, 134, 0.55), transparent 60%),
              linear-gradient(180deg, #12241c 0%, #0f1b17 100%);
  z-index: 0;
}
.nt-smart-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.nt-smart-leaf {
  position: absolute;
  border-radius: 50% 10% 55% 45%;
  filter: blur(2px);
  will-change: transform;
}
.nt-smart-leaf--a {
  top: -80px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 30% 30%, rgba(74, 122, 79, 0.9), rgba(30, 63, 39, 0.3) 70%, transparent);
  animation: nt-leaf-breathe 9s var(--ease-in-out) infinite;
}
.nt-smart-leaf--b {
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 60% 40%, rgba(228, 185, 59, 0.28), rgba(228, 185, 59, 0) 65%);
  animation: nt-leaf-breathe 12s var(--ease-in-out) infinite reverse;
}
.nt-smart-inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.nt-smart-eyebrow { color: rgba(250, 248, 243, 0.7); margin-bottom: 20px; }
.nt-smart-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  color: #faf8f3;
}
.nt-smart-title em { font-style: italic; color: var(--yellow); }
.nt-smart-lede {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 248, 243, 0.85);
  max-width: 520px;
  margin: 0 0 20px;
}
.nt-smart-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
}
.nt-smart-form .nt-input {
  flex: 1;
  min-width: 0;
  background: rgba(250, 248, 243, 0.08);
  border-color: rgba(250, 248, 243, 0.25);
  color: #faf8f3;
}
.nt-smart-form .nt-input::placeholder { color: rgba(250, 248, 243, 0.5); }
.nt-smart-form .nt-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(228, 185, 59, 0.25);
}
.nt-smart-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 243, 0.5);
  margin: 12px 0 0;
  max-width: 520px;
}
.nt-smart-success {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 12px 0 0;
  text-transform: uppercase;
}
@media (min-width: 900px) {
  .nt-smart-inner {
    padding: 104px 96px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .nt-smart-head { flex: 1.2; }
  .nt-smart-body { flex: 1; max-width: 520px; }
  .nt-smart-eyebrow { margin-bottom: 28px; }
  .nt-smart-lede { font-size: 18px; }
}
@keyframes nt-leaf-breathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-8px, 6px); }
}

/* ---------- 05 Magazine ---------- */
.nt-magazine { background: var(--canvas); }
.nt-mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.nt-mag-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nt-mag-media {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--green-pale);
  position: relative;
}
.nt-mag-media > .nt-block {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.nt-mag-img,
.nt-mag-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nt-mag-cat { align-self: flex-start; }
.nt-mag-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin: 4px 0 0;
}
.nt-mag-title a { color: inherit; text-decoration: none; }
.nt-mag-title a:hover { color: var(--green); }
.nt-mag-date {
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
@media (min-width: 900px) {
  .nt-mag-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .nt-mag-title { font-size: 26px; }
}

/* ---------- Franchise whisper ---------- */
.nt-franchise {
  background: var(--canvas);
  border-top: 1px solid var(--line-soft);
}
.nt-franchise-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 48px 16px;
  display: block;
}
.nt-franchise .nt-eyebrow { margin-bottom: 20px; }
.nt-franchise-pull {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 20px;
  font-weight: 500;
}
.nt-franchise-link {
  color: var(--green);
  font-size: 15px;
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  text-decoration: none;
}
@media (min-width: 900px) {
  .nt-franchise-inner {
    padding: 100px 96px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }
  .nt-franchise .nt-eyebrow { margin-bottom: 0; }
  .nt-franchise-pull { font-size: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nt-hero-title .kin-line {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .nt-smart-leaf { animation: none; }
  .nt-cat-card,
  .nt-rail-card,
  .nt-rail-img { transition: none; }
}
