/* =========================================================
   ULTRIS 1 — NETWORK DESIGN SYSTEM
   A studio/network shell (think Warner/HBO/ESPN) housing
   its productions. Daily Upwake is the flagship property.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Bebas+Neue&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root{
  /* ---- palette: pulled from the seal (ivory / aged gold / tribal purple / void) ---- */
  --void:        #07060a;
  --void-2:      #0d0b12;
  --ink:         #131019;
  --ink-2:       #1b1624;
  --line:        #2c2536;

  --gold:        #c9a24b;
  --gold-hi:     #eccf87;
  --gold-dim:    #8c7538;

  --bone:        #ece6d6;
  --bone-dim:    #a89f8b;

  --purple:      #4a2f78;
  --purple-deep: #24163d;
  --purple-glow: #7b52c4;

  --void-rgb: 7,6,10;

  /* ---- frost/ice accent layer — translucent glass panels ---- */
  --frost: 207,232,255;
  --frost-border: rgba(207,232,255,.16);
  --frost-glow: rgba(180,215,255,.10);

  /* ---- GTS sub-zone (military / decepticon energy, used ONLY inside GTS blocks) ---- */
  --gts-bg:      #0b0a08;
  --gts-olive:   #4b4a30;
  --gts-steel:   #9aa0a6;
  --gts-red:     #b3272c;
  --gts-red-hi:  #e2483f;

  --radius: 2px;
  --ease: cubic-bezier(.16,.8,.28,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--void);
  color:var(--bone);
  font-family:'Barlow', sans-serif;
  font-size:16px;
  line-height:1.6;
  -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{ margin:0; font-weight:600; }
p{ margin:0; }

::selection{ background:var(--gold); color:var(--void); }

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

.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--gold);
}

.display{
  font-family:'Cinzel', serif;
  letter-spacing:.02em;
}

.container{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:0 clamp(20px, 4vw, 56px);
}

/* =========================================================
   TEXTURE — tribal ring pattern, used as ambient watermark
   ========================================================= */
.ring-motif{
  position:absolute;
  border-radius:50%;
  border:1px solid var(--gold-dim);
  opacity:.18;
  pointer-events:none;
}
/* ring-of-ticks: rhymes with the seal logo's tribal border without copying it */
.ring-ticks{
  border-radius:50%;
  background:repeating-conic-gradient(var(--gold-dim) 0deg 2.2deg, transparent 2.2deg 9deg);
  -webkit-mask:radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
  mask:radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
}
.ring-ticks.purple{
  background:repeating-conic-gradient(var(--purple-glow) 0deg 2.2deg, transparent 2.2deg 9deg);
}

/* =========================================================
   GLASS — translucent frosted panels (ice accent layer)
   ========================================================= */
.glass{
  background:
    linear-gradient(155deg, rgba(255,255,255,.05), rgba(255,255,255,.01) 40%, transparent 70%),
    rgba(20,17,27,.42);
  backdrop-filter:blur(18px) saturate(120%);
  -webkit-backdrop-filter:blur(18px) saturate(120%);
  border:1px solid var(--frost-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 20px 60px -30px rgba(0,0,0,.6);
  position:relative;
}
.glass::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(115deg, transparent 30%, var(--frost-glow) 48%, transparent 66%);
  background-size:220% 220%;
  background-position:120% -20%;
  pointer-events:none;
  opacity:.7;
}

/* =========================================================
   MOTION — reveal on scroll, tilt on hover, parallax layers
   ========================================================= */
.reveal{
  opacity:0;
  transform:translateY(46px);
  transition:opacity .9s cubic-bezier(.16,.8,.28,1), transform .9s cubic-bezier(.16,.8,.28,1);
  transition-delay:var(--reveal-delay, 0s);
}
.reveal.left{ transform:translate(-52px, 0); }
.reveal.right{ transform:translate(52px, 0); }
.reveal.in-view{ opacity:1; transform:translate(0,0); }

.tilt{
  transform-style:preserve-3d;
  transition:transform .35s cubic-bezier(.16,.8,.28,1);
  will-change:transform;
}

.parallax{
  will-change:transform;
}

/* =========================================================
   ICE PLATES — drifting translucent shards for depth.
   Structure: .ice-field (container, per section)
     > .ice-plate (JS-positioned, cursor-parallax transform)
       > .ice-plate-inner (shape + glass finish + ambient float)
   ========================================================= */
.ice-field{
  position:absolute; inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:1;
}
.z-content{ position:relative; z-index:2; }

.ice-plate{
  position:absolute;
  pointer-events:none;
  will-change:transform;
}
.ice-plate-inner{
  position:absolute; inset:0;
  background:
    linear-gradient(135deg, rgba(207,232,255,.16), rgba(207,232,255,.02) 55%),
    rgba(255,255,255,.025);
  border:1px solid rgba(207,232,255,.22);
  box-shadow:
    0 30px 70px -36px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(1px);
  -webkit-backdrop-filter:blur(1px);
  transform:rotate(var(--rot, 0deg));
  animation-name:ice-float;
  animation-timing-function:ease-in-out;
  animation-iteration-count:infinite;
  animation-direction:alternate;
}
.ice-plate-inner.tint-gts{
  background:
    linear-gradient(135deg, rgba(226,72,63,.14), rgba(226,72,63,.02) 55%),
    rgba(255,255,255,.02);
  border-color:rgba(226,72,63,.26);
}
@keyframes ice-float{
  0%{ transform:rotate(var(--rot,0deg)) translate(0,0); }
  100%{ transform:rotate(calc(var(--rot,0deg) + 3deg)) translate(var(--dx,10px), var(--dy,-10px)); }
}
.shard-1{ clip-path:polygon(0% 15%, 70% 0%, 100% 55%, 45% 100%, 0% 85%); }
.shard-2{ clip-path:polygon(15% 0%, 100% 10%, 85% 100%, 0% 90%); }
.shard-3{ clip-path:polygon(0 0, 100% 0, 100% 70%, 60% 100%, 0 60%); }
.shard-4{ clip-path:polygon(20% 0%, 100% 30%, 80% 100%, 0% 70%); }
.shard-5{ clip-path:polygon(0% 30%, 60% 0%, 100% 40%, 70% 100%, 0% 100%); }

@media (max-width:700px){
  .ice-field{ opacity:.6; } /* keep depth without crowding small screens */
}

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .tilt{ transition:none !important; }
  .ring-ticks{ animation:none !important; }
  .time-glyph *{ animation:none !important; }
  .ice-plate-inner{ animation:none !important; }
}

/* =========================================================
   TIME GLYPH — the mark that sits over anything not yet
   revealed. A portal/chronometer rune, not a logo.
   ========================================================= */
.time-glyph{
  width:84px; height:84px;
  margin:0 auto;
  filter:drop-shadow(0 0 14px rgba(180,215,255,.25)) drop-shadow(0 0 22px rgba(201,162,75,.15));
}
.time-glyph .g-outer{
  transform-origin:50px 50px;
  animation:spin-cw 22s linear infinite;
}
.time-glyph .g-inner{
  transform-origin:50px 50px;
  animation:spin-ccw 16s linear infinite;
}
.time-glyph .g-core{
  animation:core-pulse 2.4s ease-in-out infinite;
  transform-origin:50px 50px;
}
@keyframes spin-cw{ to{ transform:rotate(360deg); } }
@keyframes spin-ccw{ to{ transform:rotate(-360deg); } }
@keyframes core-pulse{ 0%,100%{ opacity:.55; transform:scale(1);} 50%{ opacity:1; transform:scale(1.18);} }
.grain{
  position:fixed;
  inset:0;
  z-index:2000;
  pointer-events:none;
  opacity:.05;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   TICKER — ESPN-bottom-line-style scrolling quote of the day
   ========================================================= */
.ticker{
  background:var(--ink);
  border-bottom:1px solid var(--line);
  overflow:hidden;
  white-space:nowrap;
  position:relative;
  height:34px;
  display:flex;
  align-items:center;
}
.ticker::before{
  content:"QOTD";
  font-family:'JetBrains Mono',monospace;
  font-size:.65rem;
  letter-spacing:.2em;
  background:var(--gold);
  color:var(--void);
  padding:0 12px;
  height:100%;
  display:flex;
  align-items:center;
  font-weight:700;
  flex-shrink:0;
  z-index:2;
}
.ticker-track{
  display:inline-flex;
  align-items:center;
  gap:3.5rem;
  animation:ticker 34s linear infinite;
  padding-left:100%;
  font-family:'JetBrains Mono', monospace;
  font-size:.78rem;
  letter-spacing:.03em;
  color:var(--bone-dim);
}
.ticker-track span{ color:var(--gold-hi); }
@keyframes ticker{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-100%); }
}
@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation:none; padding-left:16px; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position:sticky; top:0; z-index:100;
  background:rgba(7,6,10,.7);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  border-bottom:1px solid var(--frost-border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px clamp(20px,4vw,56px);
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-family:'Cinzel', serif;
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:.12em;
}
.brand img{ height:36px; width:36px; }
.brand small{
  display:block;
  font-family:'JetBrains Mono', monospace;
  font-weight:400;
  font-size:.6rem;
  letter-spacing:.22em;
  color:var(--bone-dim);
  margin-top:2px;
}
.nav-links{
  display:flex; align-items:center; gap:clamp(18px,2.4vw,36px);
  font-family:'JetBrains Mono', monospace;
  font-size:.76rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.nav-links a{
  position:relative;
  padding:6px 0;
  color:var(--bone-dim);
  transition:color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color:var(--gold-hi); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:1px; background:var(--gold);
}
.nav-cta{
  border:1px solid var(--gold-dim);
  padding:8px 16px;
  font-family:'JetBrains Mono', monospace;
  font-size:.7rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-hi);
  transition:all .25s var(--ease);
}
.nav-cta:hover{ background:var(--gold); color:var(--void); border-color:var(--gold); }
.nav-toggle{ display:none; }

@media (max-width:860px){
  .nav-links{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--void-2); border-bottom:1px solid var(--line);
    padding:6px clamp(20px,4vw,56px) 18px;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding:12px 0; border-bottom:1px solid var(--line); }
  .nav-toggle{
    display:block; background:none; border:1px solid var(--line);
    color:var(--bone); padding:8px 12px; font-family:'JetBrains Mono',monospace;
    font-size:.7rem; letter-spacing:.14em; cursor:pointer;
  }
}
@media (min-width:861px){
  .nav-toggle{ display:none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:'JetBrains Mono', monospace;
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  padding:14px 26px;
  border:1px solid var(--gold);
  color:var(--gold-hi);
  background:transparent;
  transition:all .3s var(--ease);
  cursor:pointer;
}
.btn:hover{ background:var(--gold); color:var(--void); box-shadow:0 0 30px rgba(201,162,75,.35); }
.btn-solid{ background:var(--gold); color:var(--void); }
.btn-solid:hover{ background:var(--gold-hi); box-shadow:0 0 30px rgba(201,162,75,.45); }
.btn-ghost{ border-color:var(--line); color:var(--bone-dim); }
.btn-ghost:hover{ border-color:var(--bone-dim); background:transparent; color:var(--bone); box-shadow:none; }

/* =========================================================
   SEAL — signature element, echoes the tribal ring logo,
   reused as a decorative frame + hover state across cards
   ========================================================= */
.seal{
  width:120px; height:120px;
  border-radius:50%;
  position:relative;
  flex-shrink:0;
}
.seal svg{ width:100%; height:100%; display:block; }

/* =========================================================
   SECTION SCAFFOLDING
   ========================================================= */
.section{ padding:clamp(64px,9vw,120px) 0; position:relative; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; margin-bottom:clamp(32px,5vw,56px);
  border-bottom:1px solid var(--line);
  padding-bottom:20px;
  flex-wrap:wrap;
}
.section-head h2{
  font-family:'Cinzel', serif;
  font-size:clamp(1.6rem, 3vw, 2.4rem);
  color:var(--bone);
}
.section-head .eyebrow{ margin-bottom:10px; display:block; }
.section-note{
  max-width:420px;
  color:var(--bone-dim);
  font-size:.92rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  border-top:1px solid var(--line);
  padding:56px 0 32px;
  background:var(--void-2);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:36px;
}
.footer-grid h4{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--gold); margin-bottom:16px;
}
.footer-grid a{
  display:block; color:var(--bone-dim); font-size:.9rem; padding:5px 0;
  transition:color .2s;
}
.footer-grid a:hover{ color:var(--gold-hi); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; border-top:1px solid var(--line);
  font-family:'JetBrains Mono',monospace; font-size:.68rem;
  color:var(--bone-dim); letter-spacing:.05em; flex-wrap:wrap; gap:10px;
}
@media (max-width:760px){
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.text-gold{ color:var(--gold-hi); }
.mono{ font-family:'JetBrains Mono', monospace; }
.sr-only{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap;
}
