/* =========================================================================
   Trigger theme v3 — pixel port of "Trigger Landing.dc.html"
   Pure CSS, no framework. Sections are ordered per ADR-v3-theme-redesign.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------------- */
:root {
  --c-bg: #F4F2E9;
  --c-green: #1A3826;
  --c-header: #16301F;
  --c-footer: #0F2316;
  --c-hero-card: #142C1E;
  --c-hero-card-head: #12271A;
  --c-gold: #D5C06E;
  --c-gold-dark: #9C8836;
  --c-cream: #F4F2E9;
  --c-border: #E7E3D2;
  --c-border-2: #ECE8D9;
  --c-text: #22301F;
  --c-text-strong: #1A3826;
  --c-muted: #5C6657;
  --c-muted-2: #8A8878;
  --c-nav: #C9D2C2;
  --c-heading-dark: #FBFAF3;
  --c-lead-dark: #AEBFA8;

  --ff-body: 'Hanken Grotesk', 'Manrope', system-ui, sans-serif;
  --ff-display: 'Alternox', 'Hanken Grotesk', 'Manrope', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: max(40px, calc((100% - 1280px) / 2));
  --radius: 8px;
  --radius-lg: 14px;
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --reveal-delay: 0ms;

  /* Entrance-choreography anchor: 0 by default (plain page load/refresh —
     nothing to wait for), .85s only when the intro curtain is actually
     playing (`html.t-intro`, set by the inline <head> script in
     layouts/main.php before first paint). The header/hero fadeUp delays
     below are expressed relative to this var so they never block on a
     curtain that isn't going to play. */
  --intro-delay: 0s;
}

html[lang="ru-RU"] {
  --ff-body: 'Hanken Grotesk', 'Manrope', system-ui, sans-serif;
}

html.t-intro { --intro-delay: .85s; }

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Safety net only — the actual fixes are the min-width:0 rules below and the
   responsive breakpoints; this just guarantees no stray element can ever
   force a horizontal scrollbar on narrow viewports. */
html, body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--c-green); }
a:hover { color: var(--c-gold-dark); }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
button { font: inherit; }
ul, ol { padding: 0; list-style: none; }

/* -------------------------------------------------------------------------
   2b. @font-face
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Alternox';
  src: url('../fonts/Alternox-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alternox';
  src: url('../fonts/Alternox-SemiBold.otf') format('opentype');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2c. @keyframes (verbatim from design)
   ------------------------------------------------------------------------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes glowDrift { to { transform: translate(-70px, 50px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(213,192,110,.55); } 70% { box-shadow: 0 0 0 8px rgba(213,192,110,0); } 100% { box-shadow: 0 0 0 0 rgba(213,192,110,0); } }
@keyframes riseWord { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes curtainUp { from { transform: translateY(0); } to { transform: translateY(-101%); visibility: hidden; } }
@keyframes logoIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sheen { from { transform: translateX(-180%) skewX(-16deg); } to { transform: translateX(320%) skewX(-16deg); } }
@keyframes floatyRot { 0%, 100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-12px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes svcBar { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }
@keyframes svcBlink { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes svcScroll { 0% { transform: translateY(0); } 100% { transform: translateY(-9px); } }
@keyframes svcPing { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes svcBeat { 0%, 100% { opacity: .22; } 45% { opacity: 1; } }
@keyframes svcSwipe { 0% { transform: translateX(-5px); } 100% { transform: translateX(5px); } }
@keyframes svcDash { to { stroke-dashoffset: -22; } }
@keyframes svcSpin { to { transform: rotate(360deg); } }
@keyframes svcScan { 0%, 100% { transform: translate(-4px, 2px); } 50% { transform: translate(5px, -3px); } }
@keyframes svcDraw { 0% { stroke-dashoffset: 64; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes svcRise { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes svcNod { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.5px) rotate(-2.5deg); } }

/* -------------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------------- */
.t-container { padding-inline: var(--gutter); }
.t-section { padding: 76px var(--gutter); }
.t-section--dark { background: var(--c-green); color: var(--c-heading-dark); }
.t-section--tight-top { padding-top: 0; }

.t-grid { display: grid; gap: 14px; }
.t-grid--2 { grid-template-columns: repeat(2, 1fr); }
.t-grid--3 { grid-template-columns: repeat(3, 1fr); }
.t-grid--4 { grid-template-columns: repeat(4, 1fr); }

.t-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.t-section__head-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-muted);
  max-width: 34ch;
  margin: 0;
  font-weight: 400;
}
.t-section--dark .t-section__head-lead { color: var(--c-lead-dark); }

/* "Подробнее" button shown under a home-page grid capped to its max card
   count (see e.g. `_works.php`, `_clients.php`) — leads to the section's
   full listing page. */
.t-section__more { display: flex; justify-content: center; margin-top: 28px; }

.t-eyebrow {
  font: 600 12px var(--ff-mono);
  letter-spacing: .1em;
  color: var(--c-gold-dark);
  text-transform: uppercase;
}
.t-section--dark .t-eyebrow { color: var(--c-gold); }

.t-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 14px 0 0;
  color: var(--c-text-strong);
}
.t-section--dark .t-title { color: var(--c-heading-dark); }

.t-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--c-lead-dark);
  font-weight: 400;
}

/* -------------------------------------------------------------------------
   4. Components
   ------------------------------------------------------------------------- */

/* Curtain */
.t-curtain {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--c-footer);
  /* Hidden unless the intro is actually playing (html.t-intro) — a plain
     CSS rule so there's no flash even before main.js runs. */
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: curtainUp .75s 1.15s cubic-bezier(.76,0,.24,1) both;
  pointer-events: none;
}
html.t-intro .t-curtain { display: flex; }
.t-curtain__logo { height: 30px; display: block; animation: logoIn .6s .1s var(--ease-out) both; }
.t-curtain__line {
  width: 132px;
  height: 2px;
  background: rgba(213,192,110,.9);
  transform-origin: left center;
  animation: lineGrow .85s .3s cubic-bezier(.65,0,.35,1) both;
}

/* Header */
.t-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: var(--c-header);
  gap: 16px;
}
/* No entrance animation by default — the header renders on every page, not
   just the home page's intro. Only follow the curtain when it's actually
   playing (see --intro-delay above). */
html.t-intro .t-header { animation: fadeUp .55s var(--intro-delay) var(--ease-out) both; }
.t-header__logo { height: 22px; display: block; flex: none; }

.t-nav { display: flex; gap: 26px; align-items: center; }
.t-nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-nav);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.t-nav__link:hover { color: #fff; }

.t-header__actions { display: flex; align-items: center; gap: 12px; }

.t-lang { display: flex; align-items: center; gap: 6px; }
.t-lang__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--c-nav);
  font: 600 11px var(--ff-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.t-lang__link:hover { color: #fff; border-color: rgba(213,192,110,.6); }
.t-lang__link[aria-current="true"] {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-header);
}

.t-burger {
  display: none;
  flex: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.t-burger__box { width: 18px; height: 12px; position: relative; }
.t-burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #F3F1E6;
  border-radius: 2px;
  transition: transform .2s var(--ease-out), opacity .2s var(--ease-out), top .2s var(--ease-out);
}
.t-burger__box span:nth-child(1) { top: 0; }
.t-burger__box span:nth-child(2) { top: 5px; }
.t-burger__box span:nth-child(3) { top: 10px; }
.t-nav.is-open ~ .t-burger .t-burger__box span:nth-child(1),
.t-header.is-open .t-burger .t-burger__box span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.t-header.is-open .t-burger .t-burger__box span:nth-child(2) { opacity: 0; }
.t-header.is-open .t-burger .t-burger__box span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Buttons */
.t-btn {
  font-family: var(--ff-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  display: inline-block;
  cursor: pointer;
  padding: 14px 24px;
  transition: filter .15s, transform .15s, background .15s;
}
.t-btn--gold {
  color: var(--c-header);
  background: var(--c-gold);
  box-shadow: 0 12px 26px -12px rgba(213,192,110,.55);
}
.t-btn--gold:hover { filter: brightness(1.07); transform: translateY(-1px); color: var(--c-header); }
.t-btn--ghost-on-dark {
  color: #F3F1E6;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.2);
}
.t-btn--ghost-on-dark:hover { background: rgba(255,255,255,.09); color: #F3F1E6; }
.t-btn--outline-on-light {
  color: var(--c-text);
  background: transparent;
  border: 1px solid rgba(26,56,38,.3);
  text-align: center;
  width: 100%;
  padding: 12px;
  font-size: 13.5px;
}
.t-btn--outline-on-light:hover { background: rgba(26,56,38,.06); color: var(--c-text); }
.t-btn--gold-block {
  color: var(--c-header);
  background: var(--c-gold);
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 13.5px;
}
.t-btn--gold-block:hover { filter: brightness(1.07); color: var(--c-header); }
.t-btn--sm { font-size: 13.5px; padding: 11px 18px; }
.t-btn--header {
  font-size: 13.5px;
  padding: 11px 18px;
}

/* Hero */
.t-hero {
  position: relative;
  overflow: hidden;
  background: var(--c-green);
  color: #F3F1E6;
  padding: 74px var(--gutter) 70px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
}
.t-hero__glow {
  position: absolute;
  top: -200px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(213,192,110,.16), transparent 72%);
  animation: glowDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.t-hero__spec {
  position: absolute;
  background: var(--c-gold);
  opacity: .35;
  pointer-events: none;
  animation: floatyRot 6s .4s ease-in-out infinite;
}
.t-hero__spec--1 { top: 52px; right: 44%; width: 10px; height: 10px; opacity: .35; animation-duration: 6s; animation-delay: .4s; }
.t-hero__spec--2 { top: 38px; right: 9%; width: 6px; height: 6px; opacity: .28; animation-duration: 5s; animation-delay: .1s; }
.t-hero__spec--3 { bottom: 62px; right: 5%; width: 9px; height: 9px; background: transparent; border: 1px solid var(--c-gold); opacity: .45; animation-duration: 7.5s; animation-delay: 1s; }
.t-hero__spec--4 { bottom: 110px; left: 46%; width: 7px; height: 7px; opacity: .22; animation-duration: 6.8s; animation-delay: .7s; }

.t-hero__col { position: relative; }
.t-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(213,192,110,.4);
  border-radius: 999px;
  font: 600 11.5px var(--ff-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-gold);
  animation: fadeUp .6s calc(var(--intro-delay) + .1s) var(--ease-out) both;
}
.t-hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  transform: rotate(45deg);
  flex: none;
  animation: pulse 2.6s ease-out infinite;
}

.t-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.6vw, 45px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 22px 0 0;
  color: var(--c-heading-dark);
}
.t-hero__word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}
.t-hero__word {
  display: inline-block;
  animation: riseWord .7s var(--ease-out) both;
  animation-delay: var(--word-delay, calc(var(--intro-delay) + .15s));
}
.t-hero__word--accent { color: var(--c-gold); }

.t-hero__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--c-lead-dark);
  margin: 22px 0 0;
  max-width: 42ch;
  font-weight: 400;
  animation: fadeUp .65s calc(var(--intro-delay) + .35s) var(--ease-out) both;
}
.t-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  animation: fadeUp .65s calc(var(--intro-delay) + .47s) var(--ease-out) both;
}
.t-hero__cta .t-btn--gold { padding: 14px 24px; }
.t-hero__cta .t-btn--ghost-on-dark { padding: 14px 22px; }

.t-hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  animation: fadeUp .65s calc(var(--intro-delay) + .59s) var(--ease-out) both;
}
.t-hero__trust-line { width: 44px; height: 1px; background: rgba(213,192,110,.5); flex: none; }
.t-hero__trust-text { font-size: 13.5px; color: var(--c-lead-dark); font-weight: 400; }
.t-hero__trust-text b { color: #F3F1E6; font-weight: 600; }

.t-hero__mock {
  position: relative;
  animation: fadeUp .8s calc(var(--intro-delay) + .53s) var(--ease-out) both;
  /* explicit width: auto margins on a grid item would otherwise shrink-wrap the card */
  width: 100%;
}

/* Terminal */
.t-terminal {
  background: var(--c-hero-card);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -26px rgba(6,16,10,.8);
  transition: transform .18s ease-out;
  will-change: transform;
}
.t-terminal__head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: var(--c-hero-card-head);
}
.t-terminal__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.t-terminal__dot--gold { background: var(--c-gold); }
.t-terminal__head-label { margin-left: 10px; font: 500 12px var(--ff-mono); color: #7E9179; }
.t-terminal__body { padding: 20px 20px 22px; font-family: var(--ff-mono); }
.t-terminal__line { font-size: 12.5px; line-height: 1.6; color: var(--c-lead-dark); }
.t-terminal__prompt { color: var(--c-gold); }
.t-terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--c-gold);
  margin-left: 2px;
  transform: translateY(2px);
  animation: blink 1s step-end infinite;
}
.t-terminal__steps { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.t-terminal__step { display: flex; align-items: center; gap: 11px; font-size: 12.5px; }
.t-terminal__glyph { display: inline-block; width: 14px; text-align: center; color: var(--c-gold); }
.t-terminal__label { color: #E9E6D6; }
.t-terminal__tag { margin-left: auto; color: #5f7466; font-size: 11px; }
.t-terminal__done { margin-top: 16px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--c-nav); }
.t-terminal__done-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 10px 1px rgba(213,192,110,.7); flex: none; }

.t-hero__uptime {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--c-gold);
  color: var(--c-header);
  padding: 14px 18px;
  border-radius: 11px;
  box-shadow: 0 18px 34px -12px rgba(213,192,110,.5);
  animation: floaty 5.5s ease-in-out infinite;
}
.t-hero__uptime-value { font-family: var(--ff-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.t-hero__uptime-label { font-size: 11px; font-weight: 600; margin-top: 1px; opacity: .75; }

/* Marquee */
.t-marquee { padding: 26px 0 24px; border-bottom: 1px solid rgba(26,56,38,.12); overflow: hidden; }
.t-marquee__label {
  text-align: center;
  font: 600 11px var(--ff-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #97917C;
  margin: 0 0 18px;
}
.t-marquee__viewport { position: relative; max-width: 1280px; margin: 0 auto; overflow: hidden; }
.t-marquee__fade { position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.t-marquee__fade--l { left: 0; background: linear-gradient(90deg, var(--c-bg), rgba(244,242,233,0)); }
.t-marquee__fade--r { right: 0; background: linear-gradient(270deg, var(--c-bg), rgba(244,242,233,0)); }
.t-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.t-marquee__track:hover { animation-play-state: paused; }
.t-marquee__item {
  flex: none;
  width: 180px;
  height: 72px;
  margin-right: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 12px 18px;
}
.t-marquee__item img { width: 100%; height: 100%; object-fit: contain; }

/* Service cards */
.t-svc {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 24px 24px 30px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.t-svc:hover { border-color: rgba(156,134,54,.55); transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(26,56,38,.3); }
.t-svc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.t-svc__num { font: 600 12px var(--ff-mono); color: var(--c-gold-dark); }
.t-svc__title { margin: 18px 0 0; font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--c-text); }
.t-svc__desc { margin: 9px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--c-muted); font-weight: 400; }

/* Products */
.t-product {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.t-product:hover { border-color: rgba(156,134,54,.55); transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(26,56,38,.35); }
.t-product__media {
  height: 190px;
  border-bottom: 1px solid var(--c-border-2);
  background: linear-gradient(135deg, var(--c-green), var(--c-hero-card));
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-product__media img { width: 100%; height: 100%; object-fit: cover; }
.t-product__media-name {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: -.01em;
}
.t-product__body { padding: 22px 24px 24px; }
.t-product__tag { font: 500 11px var(--ff-mono); letter-spacing: .08em; color: var(--c-gold-dark); text-transform: uppercase; }
.t-product__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.t-product__title { font-size: 19px; font-weight: 700; color: var(--c-text); margin: 0; }
.t-product__link { font-size: 13px; font-weight: 600; color: var(--c-gold-dark); text-decoration: none; flex: none; transition: color .15s; }
.t-product__link:hover { color: var(--c-text-strong); }
.t-product__desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--c-muted); font-weight: 400; }

/* Work cards */
.t-work {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.t-work:hover { border-color: rgba(156,134,54,.55); transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(26,56,38,.35); }
.t-work__media { height: 150px; border-bottom: 1px solid var(--c-border-2); background: var(--c-border-2); }
.t-work__media img { width: 100%; height: 100%; object-fit: cover; }
.t-work__body { padding: 15px 17px 17px; }
.t-work__title { font-size: 15px; font-weight: 700; color: var(--c-text); margin: 0; }
.t-work__domain { display: inline-block; margin-top: 6px; font: 600 11px var(--ff-mono); color: var(--c-gold-dark); text-decoration: none; transition: color .15s; }
.t-work__domain:hover { color: var(--c-text-strong); }

/* Tech chips */
.t-chipgroup__head {
  font: 600 11.5px var(--ff-mono);
  letter-spacing: .1em;
  color: var(--c-gold);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(213,192,110,.3);
}
.t-chipgroup__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.t-chip {
  font-size: 13px;
  font-weight: 500;
  color: #E9E6D6;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: border-color .15s;
}
.t-chip:hover { border-color: rgba(213,192,110,.6); }

/* Stats */
.t-stats { padding: 72px var(--gutter) 76px; }
.t-stats__grid {
  border-top: 1px solid rgba(156,134,54,.45);
  border-bottom: 1px solid rgba(156,134,54,.45);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.t-stat { padding: 34px 28px; border-left: 1px solid rgba(26,56,38,.1); }
.t-stat__value { font-family: var(--ff-display); font-size: 40px; font-weight: 600; letter-spacing: -.01em; color: var(--c-text-strong); }
.t-stat__label { margin-top: 10px; font-size: 13px; color: var(--c-muted-2); line-height: 1.4; font-weight: 400; }

/* Process steps */
.t-step__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.t-step__num { font: 600 14px var(--ff-mono); color: var(--c-gold-dark); }
.t-step__rule { height: 1px; background: rgba(26,56,38,.14); margin: 14px 0 18px; }
.t-step__title { font-size: 17px; font-weight: 700; color: var(--c-text); margin: 0; }
.t-step__desc { margin: 9px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--c-muted); font-weight: 400; }

/* Client / logo grid card */
.t-logo-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.t-logo-card:hover { border-color: rgba(156,134,54,.55); transform: translateY(-2px); }
.t-logo-card--static { cursor: default; }
.t-logo-card__logo { height: 32px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.t-logo-card__logo img { max-height: 32px; max-width: 120px; width: auto; object-fit: contain; }
.t-logo-card__name { font-weight: 800; font-size: 16px; letter-spacing: .05em; color: #4A5546; text-align: center; }
.t-logo-card__domain { font: 500 11px var(--ff-mono); color: var(--c-gold-dark); }

/* Collaboration cards */
.t-collab__head { text-align: center; margin-bottom: 38px; }
.t-collab__lead { font-size: 14.5px; color: var(--c-muted); margin: 12px auto 0; max-width: 52ch; line-height: 1.6; font-weight: 400; }
.t-collab-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.t-collab-card--featured {
  background: var(--c-green);
  border: 1px solid rgba(213,192,110,.6);
  box-shadow: 0 28px 56px -24px rgba(26,56,38,.55);
}
.t-collab-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c-header);
  background: var(--c-gold);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.t-collab-card__num { font: 600 12px var(--ff-mono); color: var(--c-gold-dark); }
.t-collab-card--featured .t-collab-card__num { color: var(--c-gold); }
.t-collab-card__title { font-size: 17px; font-weight: 700; color: var(--c-text); margin-top: 14px; }
.t-collab-card--featured .t-collab-card__title { color: var(--c-heading-dark); }
.t-collab-card__desc { font-size: 13px; color: var(--c-muted); margin-top: 6px; line-height: 1.6; font-weight: 400; }
.t-collab-card--featured .t-collab-card__desc { color: var(--c-lead-dark); }
.t-collab-card__rule { height: 1px; background: var(--c-border-2); margin: 20px 0; }
.t-collab-card--featured .t-collab-card__rule { background: rgba(213,192,110,.3); }
.t-collab-card__list { display: flex; flex-direction: column; gap: 11px; font-size: 13px; color: #4A5546; font-weight: 400; }
.t-collab-card--featured .t-collab-card__list { color: #E4E7DC; }
.t-collab-card__list-item { display: flex; gap: 10px; }
.t-collab-card__bullet { width: 5px; height: 5px; background: var(--c-gold); transform: rotate(45deg); flex: none; margin-top: 6px; }
.t-collab-card__cta { margin-top: 22px; text-decoration: none; }

/* CTA */
.t-cta {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 52px 48px;
  background: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.t-cta__glow {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(213,192,110,.16), transparent 72%);
  animation: glowDrift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.t-cta__copy { max-width: 32ch; position: relative; }
.t-cta__title { font-family: var(--ff-display); font-size: 29px; font-weight: 600; letter-spacing: -.005em; margin: 0; color: var(--c-heading-dark); }
.t-cta__lead { font-size: 15px; color: var(--c-lead-dark); margin: 14px 0 0; line-height: 1.65; font-weight: 400; }
.t-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.t-cta__actions .t-btn--gold { padding: 15px 26px; }
.t-cta__actions .t-btn--ghost-on-dark { padding: 15px 24px; }

/* Footer */
.t-footer { background: var(--c-footer); padding: 54px var(--gutter) 30px; }
.t-footer__seo { padding-bottom: 40px; }
.t-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.t-footer__brand-logo { height: 22px; display: block; }
.t-footer__brand-text { font-size: 13px; color: #8FA089; line-height: 1.65; margin: 18px 0 0; max-width: 30ch; font-weight: 400; }
.t-footer__col-head { font: 600 11px var(--ff-mono); letter-spacing: .12em; text-transform: uppercase; color: #7E9179; }
.t-footer__col-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 13.5px; font-weight: 400; }
.t-footer__link { color: var(--c-nav); text-decoration: none; transition: color .15s; }
.t-footer__link:hover { color: #fff; }
.t-footer__contact { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--c-nav); font-weight: 400; }
.t-footer__contact a { color: var(--c-nav); text-decoration: none; transition: color .15s; }
.t-footer__contact a:hover { color: #fff; }
.t-footer__social { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.t-footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-nav);
  transition: border-color .15s, color .15s;
}
.t-footer__social-link:hover { border-color: rgba(213,192,110,.6); color: #fff; }
.t-footer__social-link svg { width: 15px; height: 15px; fill: currentColor; }
.t-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px;
  color: #7E9179;
  font-weight: 400;
}
.t-footer__bottom-links { display: flex; gap: 20px; }
.t-footer__bottom-links a { color: #7E9179; text-decoration: none; transition: color .15s; }
.t-footer__bottom-links a:hover { color: #fff; }

/* Modal / dialog */
.t-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  background: #FFFFFF;
  color: var(--c-text);
  box-shadow: 0 40px 80px -30px rgba(6,16,10,.5);
}
.t-modal::backdrop { background: rgba(15,35,22,.55); backdrop-filter: blur(2px); }
.t-modal[open] { display: block; }
.t-modal--fallback { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 70; }
.t-modal--fallback::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(15,35,22,.55);
  z-index: -1;
}
.t-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--c-border-2);
}
.t-modal__title { font-family: var(--ff-display); font-size: 19px; font-weight: 600; color: var(--c-text-strong); margin: 0; }
.t-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex: none;
}
.t-modal__close:hover { background: rgba(26,56,38,.06); color: var(--c-text); }
.t-modal__body { padding: 22px 24px 26px; }

/* Forms */
.t-form { display: flex; flex-direction: column; gap: 16px; }
.t-field { display: flex; flex-direction: column; gap: 7px; }
.t-field__label { font-size: 13px; font-weight: 600; color: var(--c-text); }
.t-field__input {
  font-family: var(--ff-body);
  font-size: 14.5px;
  color: var(--c-text);
  background: #FBFAF3;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.t-field__input:focus {
  outline: none;
  border-color: var(--c-gold-dark);
  box-shadow: 0 0 0 3px rgba(213,192,110,.25);
}
textarea.t-field__input { min-height: 110px; resize: vertical; }
.t-field__error, .help-block {
  font-size: 12px;
  color: #B3452C;
  margin: 0;
}
.t-field--error .t-field__input { border-color: #B3452C; }
.t-form__submit { margin-top: 4px; }

/* Page head (inner pages) */
.t-page-head {
  background: var(--c-green);
  color: var(--c-heading-dark);
  padding: 54px var(--gutter) 48px;
}
.t-page-head__eyebrow { font: 600 12px var(--ff-mono); letter-spacing: .1em; color: var(--c-gold); text-transform: uppercase; }
.t-page-head__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 14px 0 0;
  color: var(--c-heading-dark);
}

/* Prose (CMS HTML) */
.t-prose { max-width: 760px; font-size: 15px; line-height: 1.75; color: var(--c-text); }
.t-prose h2 { font-family: var(--ff-display); font-size: 26px; font-weight: 600; color: var(--c-text-strong); margin: 32px 0 14px; }
.t-prose h3 { font-size: 19px; font-weight: 700; color: var(--c-text); margin: 26px 0 10px; }
.t-prose p { margin: 0 0 16px; color: var(--c-muted); }
.t-prose ul, .t-prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--c-muted); }
.t-prose ul { list-style: disc; }
.t-prose ol { list-style: decimal; }
.t-prose li { margin-bottom: 8px; }
.t-prose a { color: var(--c-gold-dark); text-decoration: underline; }
.t-prose a:hover { color: var(--c-text-strong); }
.t-prose img { border-radius: var(--radius); margin: 18px 0; }
.t-prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.t-prose table th, .t-prose table td { border: 1px solid var(--c-border); padding: 10px 12px; text-align: left; }
.t-prose table th { background: var(--c-cream); font-weight: 700; }
.t-prose blockquote {
  border-left: 3px solid var(--c-gold);
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  color: var(--c-muted);
  font-style: italic;
}

/* Post card */
.t-post-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.t-post-card:hover { border-color: rgba(156,134,54,.55); transform: translateY(-3px); box-shadow: 0 18px 38px -22px rgba(26,56,38,.35); }
.t-post-card__media { height: 190px; background: var(--c-border-2); }
.t-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.t-post-card__body { padding: 20px 22px 24px; }
.t-post-card__title { font-size: 17px; font-weight: 700; color: var(--c-text); margin: 0; }
.t-post-card__excerpt { margin: 9px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--c-muted); font-weight: 400; }

/* Error page */
.t-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter);
  gap: 14px;
}
.t-error__code { font-family: var(--ff-display); font-size: clamp(48px, 10vw, 96px); font-weight: 700; color: var(--c-text-strong); }
.t-error__title { font-size: 20px; font-weight: 700; color: var(--c-text); margin: 0; }
.t-error__message { font-size: 14.5px; color: var(--c-muted); max-width: 46ch; }
.t-error__cta { margin-top: 18px; }

/* -------------------------------------------------------------------------
   4b. Overflow safety (small viewports)
   ------------------------------------------------------------------------- */
/* Flex/grid items default to min-width:auto (= their max-content size), which
   stops them from ever shrinking below their intrinsic width and forces the
   whole row/track — and with it <body> — wider than the viewport. This is
   the actual fix for the 400px horizontal-overflow bug; `overflow-x:hidden`
   above is only a backstop. */
.t-header > *,
.t-header__actions > *,
.t-hero > *,
.t-hero__col,
.t-hero__mock,
.t-grid > *,
.t-stats__grid > *,
.t-footer__grid > *,
.t-terminal__step > *,
.t-collab-card__list-item {
  min-width: 0;
}
.t-hero__word-wrap {
  max-width: 100%;
  white-space: normal;
}
.t-marquee__viewport { max-width: 100%; }

/* -------------------------------------------------------------------------
   5. Motion hooks
   ------------------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease-out) var(--reveal-delay, 0ms),
              transform .75s var(--ease-out) var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   6. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --gutter: 24px; }

  .t-hero { grid-template-columns: 1fr; }
  .t-hero__mock { order: 2; max-width: 560px; margin-inline: auto; }
  .t-hero__col { order: 1; }

  .t-grid--3, .t-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .t-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .t-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .t-stat:nth-child(3) { border-left: none; }

  .t-nav { display: none; }
  .t-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-header);
    padding: 10px var(--gutter) 20px;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .t-nav.is-open .t-nav__link { padding: 10px 0; width: 100%; }
  .t-burger { display: inline-flex; }

  .t-chipgroup { grid-column: span 3; }
  #texnologiyalar .t-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .t-grid--2, .t-grid--3, .t-grid--4 { grid-template-columns: 1fr; }
  .t-footer__grid { grid-template-columns: 1fr; }
  .t-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .t-stat:nth-child(3) { border-left: 1px solid rgba(26,56,38,.1); }
  .t-stat:nth-child(2n+1) { border-left: none; }

  .t-section { padding: 52px var(--gutter); }
  .t-hero { padding: 54px var(--gutter) 50px; }
  .t-hero__title, h1.t-hero__title { font-size: clamp(30px, 8vw, 45px); }
  .t-title { font-size: clamp(24px, 5vw, 32px); }
  .t-section__head { flex-direction: column; align-items: flex-start; }

  .t-marquee__item { width: 140px; height: 60px; }

  .t-logo-card__logo { height: 28px; }
  .t-logo-card__logo img { max-height: 28px; }

  .t-cta { padding: 34px 24px; }

  .t-lang__link { min-width: 28px; padding: 5px 7px; font-size: 10px; }
}

@media (max-width: 480px) {
  .t-header { gap: 8px; padding-inline: 12px; }
  .t-header__actions { gap: 8px; }
  .t-btn--header { padding: 9px 12px; font-size: 11.5px; white-space: normal; text-align: center; }
  .t-lang__link { min-width: 24px; padding: 4px 6px; font-size: 9px; }
}

/* -------------------------------------------------------------------------
   7. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .t-curtain { display: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------------
   8. Inner pages (Phase B: page/view, page/contact, post/category,
   post/view, site/error, site/feedback)
   ------------------------------------------------------------------------- */

/* Inline (non-block) outline button, light background — distinct from
   .t-btn--outline-on-light which is a full-width card CTA. */
.t-btn--outline {
  display: inline-block;
  color: var(--c-text);
  background: transparent;
  border: 1px solid rgba(26,56,38,.3);
  padding: 13px 22px;
}
.t-btn--outline:hover { background: rgba(26,56,38,.06); color: var(--c-text); }

.t-error__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* page/contact two-column layout */
.t-contact-grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 40px;
  align-items: start;
}
.t-contact-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.t-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.t-contact-item__icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(156,134,54,.12);
  color: var(--c-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.t-contact-item__icon svg { width: 18px; height: 18px; }
.t-contact-item__label { font-size: 11.5px; color: var(--c-muted-2); text-transform: uppercase; letter-spacing: .06em; }
.t-contact-item__value { font-size: 14.5px; color: var(--c-text); font-weight: 600; margin-top: 2px; }
.t-contact-item__value a { color: var(--c-text); text-decoration: none; }
.t-contact-item__value a:hover { color: var(--c-gold-dark); }
.t-contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}
.t-contact-form-card--sm { max-width: 560px; }

/* post/view */
.t-post-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font: 500 13px var(--ff-mono);
  color: var(--c-lead-dark);
}
.t-post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 0 30px;
}
.t-post-actions { margin-top: 22px; }

/* Alerts (feedback form) */
.t-alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}
.t-alert--success { background: rgba(93,138,74,.08); border-color: rgba(93,138,74,.35); color: #3B5C2E; }
.t-alert--error { background: rgba(179,69,44,.08); border-color: rgba(179,69,44,.35); color: #B3452C; }

/* Empty-state text (post/category with no posts) */
.t-empty { color: var(--c-muted); font-size: 14.5px; padding: 6px 0 30px; }

/* `.t-footer__seo` reuses `.t-prose` (light-background defaults) but sits on
   the dark footer — without this override its text is unreadable. Only
   surfaced once a page actually sets `$this->params['footer_text']` (e.g.
   post/category's `$model->description`, Phase B). */
.t-footer__seo.t-prose,
.t-footer__seo.t-prose p,
.t-footer__seo.t-prose li,
.t-footer__seo.t-prose h2,
.t-footer__seo.t-prose h3 { color: var(--c-nav); }
.t-footer__seo.t-prose a { color: var(--c-gold); }
.t-footer__seo.t-prose a:hover { color: #fff; }

@media (max-width: 1024px) {
  .t-contact-grid { grid-template-columns: 1fr; }
}

/* post/search */
.t-search-count { color: var(--c-muted); font-size: 14.5px; margin: 0 0 26px; }

.t-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.t-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: #FFFFFF;
  color: var(--c-text);
  font: 600 13px var(--ff-mono);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.t-pager__link:hover { border-color: rgba(156,134,54,.55); color: var(--c-gold-dark); }
.t-pager__item--active .t-pager__link {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}
.t-pager__item--disabled span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  color: var(--c-muted-2);
}

/* -------------------------------------------------------------------------
   9. Toasts (server-side session flashes — replaces CustomAlert/sweetalert)
   ------------------------------------------------------------------------- */
.t-toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.t-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-cream);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-gold-dark);
  border-radius: var(--radius);
  padding: 14px 34px 14px 16px;
  box-shadow: 0 18px 34px -18px rgba(26,56,38,.4);
  font-size: 13.5px;
  line-height: 1.5;
  pointer-events: auto;
}
.t-toast--success { border-left-color: #3B5C2E; }
.t-toast--error { border-left-color: #B3452C; }
.t-toast--warning { border-left-color: var(--c-gold-dark); }
.t-toast--info { border-left-color: var(--c-green); }
.t-toast__text { white-space: pre-line; flex: 1; }
.t-toast__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.t-toast__close:hover { background: rgba(26,56,38,.08); color: var(--c-text); }

html.js .t-toast { animation: t-toast-in .35s var(--ease-out) both; }
.t-toast.is-leaving { animation: t-toast-out .25s ease both; }
@keyframes t-toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes t-toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 640px) {
  .t-toast-stack { top: 0; right: 0; left: 0; width: 100%; padding: 10px; gap: 8px; }
  .t-toast { border-radius: 0; }
}
