/* ======================================================
   TURE POMPIERI — stylesheet
   Design system: night dispatch board.
   Charcoal base, alarm red + amber accents, condensed
   industrial display type, mono utility type for data.
   ====================================================== */

:root{
  --bg:            #14171A;
  --bg-panel:      #1C2023;
  --bg-panel-2:    #20262A;
  --line:          rgba(237,234,228,0.10);
  --line-strong:   rgba(237,234,228,0.20);
  --paper:         #EDEAE4;
  --paper-dim:     #A9ADB0;
  --steel:         #7C8A94;
  --red:           #D8342A;
  --red-dim:       #8C241E;
  --amber:         #F2A93B;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body:    "Source Sans 3", "Segoe UI", sans-serif;
  --f-mono:    "IBM Plex Mono", "Courier New", monospace;

  --container: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; }

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

/* subtle hazard texture used once as a background wash, never as a repeated motif */
.bg-noise{
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(216,52,42,0.10), transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(242,169,59,0.06), transparent 40%);
}

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- nav ---------- */
.site-nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(20,23,26,0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 68px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  text-decoration:none;
  color: var(--paper);
}
.brand-mark{
  width: 34px; height:34px; border-radius: 7px;
  background: linear-gradient(155deg, var(--red), #a8241c);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family: var(--f-mono); font-weight:700; font-size:0.8rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 16px -6px rgba(216,52,42,0.6);
}
.brand-text-sub{ display:block; font-family: var(--f-mono); font-weight:400; font-size:0.62rem; letter-spacing:0.12em; color: var(--steel); margin-top:1px; }

.nav-links{
  display:flex; gap: 6px; list-style:none; margin:0; padding:0;
}
.nav-links a{
  display:inline-block; padding: 8px 14px; border-radius: 6px;
  text-decoration:none; font-size:0.86rem; letter-spacing:0.03em;
  color: var(--paper-dim);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover{ color: var(--paper); background: var(--bg-panel); }
.nav-links a.is-active{ color: var(--paper); background: var(--bg-panel-2); box-shadow: inset 0 0 0 1px var(--line-strong); }

.nav-cta{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--red); color:#fff; text-decoration:none;
  padding: 9px 16px; border-radius: 6px; font-size:0.84rem; font-weight:600;
  letter-spacing:0.02em;
  box-shadow: 0 6px 18px -8px rgba(216,52,42,0.7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(216,52,42,0.85); }

.nav-toggle{ display:none; background:none; border:1px solid var(--line-strong); border-radius:6px; color:var(--paper); width:40px; height:36px; cursor:pointer; }

/* ---------- hero ---------- */
.hero{
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line);
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
  padding: 5px 10px; border: 1px solid rgba(242,169,59,0.35); border-radius: 4px;
  background: rgba(242,169,59,0.06);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.hero h1{
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 22px 0 0;
  max-width: 780px;
}
.hero h1 span{ color: var(--red); }

.hero p.lede{
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--paper-dim);
}

.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top: 30px; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 13px 20px; border-radius: 8px;
  text-decoration:none; font-weight:600; font-size:0.94rem;
  border: 1px solid var(--line-strong);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--red); border-color: var(--red); color:#fff; box-shadow: 0 10px 24px -10px rgba(216,52,42,0.7); }
.btn-primary:hover{ background:#c22a21; }
.btn-ghost{ background: var(--bg-panel); color: var(--paper); }
.btn-ghost:hover{ background: var(--bg-panel-2); border-color: var(--steel); }
.btn small{ display:block; font-weight:400; font-size:0.68rem; color: rgba(255,255,255,0.75); font-family: var(--f-mono); letter-spacing:0.05em; }
.btn-ghost small{ color: var(--steel); }

.disclaimer{
  margin-top:18px; font-size:0.82rem; color: var(--steel);
  max-width: none;
  white-space: nowrap;
}

/* ---------- signature: TURA CYCLE ---------- */
.board{
  margin-top: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-panel);
  overflow:hidden;
}
.board-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size:0.72rem; letter-spacing:0.1em; color: var(--steel);
  text-transform: uppercase;
}
.board-head .live{ display:flex; align-items:center; gap:7px; color: var(--amber); }
.board-head .live .blip{ width:7px; height:7px; border-radius:50%; background: var(--amber); animation: blip 1.8s ease-in-out infinite; }
@keyframes blip{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }

.cycle{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap: 16px; padding: 36px 24px;
}
.cycle-step{
  flex: 1 1 170px; max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 22px 18px;
  text-align:center;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.cycle-step .num{
  display:block; font-family: var(--f-mono); font-size:0.68rem; letter-spacing:0.12em;
  text-transform:uppercase; color: var(--steel);
}
.cycle-step .label{
  display:block; margin-top:10px; font-family: var(--f-display); font-weight:600;
  font-size:1.4rem; letter-spacing:0.02em; color: var(--paper-dim);
}
.cycle-step.is-today{
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(216,52,42,0.4), 0 0 24px -6px rgba(216,52,42,0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
.cycle-step.is-today .label{ color:#fff; }
.cycle-step.is-today .num::after{ content:" · AZI"; color: var(--amber); }
@keyframes pulse{ 0%,100%{ box-shadow: 0 0 0 1px rgba(216,52,42,0.4), 0 0 14px -6px rgba(216,52,42,0.6); } 50%{ box-shadow: 0 0 0 1px rgba(216,52,42,0.4), 0 0 26px -4px rgba(216,52,42,0.9); } }

.cycle-arrow{ color: var(--steel); font-size:1.3rem; flex: 0 0 auto; }
.cycle-arrow.loop{ color: var(--amber); }

/* split (ZI / NOAPTE) variant, used for the 12/24-12/48 cycle */
.cycle--split .cycle-step{ display:flex; flex-direction:column; gap:8px; text-align:left; }
.cycle--split .cycle-step .num{ text-align:center; margin-bottom:2px; }
.half{
  display:flex; align-items:center; justify-content:space-between;
  padding: 9px 12px; border-radius:6px;
  background: rgba(255,255,255,0.03);
}
.half-tag{
  font-family: var(--f-mono); font-size:0.62rem; letter-spacing:0.1em;
  text-transform:uppercase; color: var(--steel);
}
.half-status{ font-family: var(--f-display); font-weight:600; font-size:0.92rem; color: var(--paper-dim); letter-spacing:0.02em; }
.half.is-on{ background: rgba(216,52,42,0.16); box-shadow: inset 0 0 0 1px rgba(216,52,42,0.4); }
.half.is-on .half-status{ color:#fff; }
.half.is-on .half-tag{ color: var(--amber); }

.board-foot{
  padding: 12px 18px; font-size:0.82rem; color: var(--steel);
  border-top: 1px solid var(--line);
}
.board-foot b{ color: var(--paper-dim); font-weight:600; }

/* ---------- sections ---------- */
.section{ padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head{ max-width: 62ch; margin-bottom: 44px; }
.tag{
  display:inline-block; font-family: var(--f-mono); font-size:0.7rem; letter-spacing:0.14em;
  text-transform:uppercase; color: var(--red);
  padding: 4px 9px; border:1px solid rgba(216,52,42,0.4); border-radius:4px;
  background: rgba(216,52,42,0.07);
}
.section-head h2{
  font-family: var(--f-display); text-transform: uppercase; font-weight:600;
  font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing:0.01em;
  margin: 16px 0 10px;
}
.section-head p{ color: var(--paper-dim); margin:0; }

.grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 24px;
}
.card h3{
  font-family: var(--f-body); font-weight:700; font-size:1.02rem; margin:0 0 8px;
  display:flex; align-items:center; gap:9px;
}
.card h3 .ic{ color: var(--amber); font-family:var(--f-mono); font-size:0.9rem; }
.card p{ margin:0; color: var(--paper-dim); font-size:0.94rem; }

/* alt section wash */
.section.alt{ background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); }

/* divider accent — used once */
.hazard-rule{
  height: 6px; border-radius: 3px; margin: 0;
  background: repeating-linear-gradient(135deg, var(--amber) 0 14px, #1a1a1a 14px 28px);
  opacity: 0.9;
}

/* ---------- gallery ---------- */
.gallery{ display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.gallery figure{
  margin:0; border-radius: 14px; overflow:hidden; border: 1px solid var(--line-strong);
  background: var(--bg-panel);
}
.gallery img{ width:100%; height:auto; display:block; }

/* ---------- footer ---------- */
footer{ padding: 46px 0 60px; }
.footer-grid{
  display:flex; flex-wrap:wrap; gap: 28px; justify-content:space-between; align-items:flex-start;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.footer-links{ display:flex; gap:22px; list-style:none; margin:0; padding:0; font-size:0.9rem; }
.footer-links a{ text-decoration:none; color: var(--paper-dim); }
.footer-links a:hover{ color: var(--paper); }
.footer-note{ margin-top: 22px; font-size:0.8rem; color: var(--steel); }

/* ---------- legal / policy pages ---------- */
.legal-hero{ padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.legal-hero .platform-badge{
  display:inline-flex; align-items:center; gap:8px; font-family:var(--f-mono);
  font-size:0.74rem; letter-spacing:0.1em; text-transform:uppercase; color: var(--amber);
  border:1px solid rgba(242,169,59,0.35); border-radius:4px; padding:5px 10px;
  background: rgba(242,169,59,0.06); margin-bottom:18px;
}
.legal-hero h1{
  font-family: var(--f-display); text-transform:uppercase; font-weight:600;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin:0 0 8px; line-height:1.05;
}
.legal-hero .updated{ font-family: var(--f-mono); font-size:0.82rem; color: var(--steel); }
.legal-hero p.intro{ margin-top:18px; max-width: 68ch; color: var(--paper-dim); }

.legal-body{ padding: 48px 0 20px; max-width: 74ch; }
.legal-item{ display:flex; gap:18px; padding: 26px 0; border-top: 1px solid var(--line); }
.legal-item:first-child{ border-top:none; padding-top:0; }
.legal-num{
  flex:0 0 auto; width:38px; height:38px; border-radius:8px;
  background: var(--bg-panel); border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-mono); font-weight:600; color: var(--amber); font-size:0.95rem;
}
.legal-item h3{ margin: 2px 0 8px; font-family: var(--f-body); font-size:1.06rem; }
.legal-item p{ margin:0 0 8px; color: var(--paper-dim); }
.legal-item ul{ margin: 8px 0 0; padding-left: 18px; color: var(--paper-dim); }
.legal-item li{ margin-bottom:6px; }
.legal-item a{ color: var(--amber); text-decoration: underline; text-underline-offset:2px; }

.contact-box{
  margin-top: 30px; padding: 22px; border-radius:10px;
  background: var(--bg-panel); border: 1px solid var(--line-strong);
}
.contact-box a{ color: var(--amber); text-decoration:underline; }

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .grid, .gallery{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px){
  .nav-links, .nav-cta{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .site-nav.is-open .nav-links{
    display:flex; position:absolute; top:68px; left:0; right:0;
    flex-direction:column; background: var(--bg); padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line-strong);
  }
  .site-nav.is-open .nav-cta{ display:none; }
  .grid, .gallery{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 40px; }
  .section{ padding: 54px 0; }
}