/* ===== Hub Theme ===== */
:root{
  --bg: #0E1116;
  --panel: #131821;
  --panel-strong: #182030;
  --text: #E6E8EB;
  --muted: #9AA3AD;
  --line: #2A2F36;
  --accent: #4DA3FF;

  --accent-soft: rgba(77,163,255,0.28);
  --accent-glow: rgba(77,163,255,0.22);

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --t-fast: 120ms ease;
  --t-link: 140ms ease;
}

body.portal{
  --accent: #C44545;
  --accent-soft: rgba(196,69,69,0.30);
  --accent-glow: rgba(196,69,69,0.25);
}

/* ===== Base ===== */
*{
  box-sizing: border-box;
}

html,
body{
  min-height: 100%;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.45;
}

/* ===== Focus ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ===== Motion ===== */
a,
button,
.tile,
.card,
.item,
input,
textarea,
select{
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background-color var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast),
    opacity var(--t-fast);
}

/* ===== Links ===== */
a{
  color: inherit;
  text-decoration: none;
  position: relative;
}

a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0;
  height:1px;
  background: var(--accent);
  transition: width var(--t-link);
}

a:hover::after,
a:focus-visible::after{
  width:100%;
}

.tile::after,
.backlink::after,
.hero-action::after,
.portal-dot::after{
  content: none;
}

/* ===== Splash Video ===== */
#video-splash{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

#videoElement{
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
}

#skip-btn{
  position: absolute;
  bottom: 10%;
  z-index: 2;
  width: auto;
  background: rgba(0, 0, 0, 0.6);
  color: #FED444;
  border: 1px solid rgba(254, 212, 68, 0.4);
  padding: 12px 28px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#skip-btn:hover,
#skip-btn:focus-visible{
  background: rgba(254, 212, 68, 0.15);
  border-color: #FED444;
}

.fade-out{
  opacity: 0;
  pointer-events: none;
}

/* ===== Shared Cards ===== */
.tile,
.card,
.item,
.backlink,
.video-wrap{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.tile,
.card,
.item{
  position: relative;
  overflow: hidden;
}

.tile::before,
.card::before,
.item::before{
  content:"";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast);
  pointer-events: none;
}

/* ===== Icons ===== */
.i,
svg.i{
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  stroke-width: 1.8;
}

.card .i,
.item .i,
.backlink .i{
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
}

.section-head .i{
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
}

.i{
  stroke: var(--muted);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.88;
  transition: stroke var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
}

.tile:hover .i,
.tile:focus .i,
.tile:focus-visible .i,
.card:hover .i,
.card:focus-within .i,
.item:hover .i,
.item:focus-within .i{
  stroke: var(--accent);
  opacity: 1;
}

/* ===== Background ===== */
#starfield{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 20% 30%, rgba(77,163,255,0.12), transparent 60%),
    radial-gradient(700px 500px at 82% 68%, rgba(120,90,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 45%);
}

body.portal::before{
  background:
    radial-gradient(900px 600px at 20% 30%, rgba(196,69,69,0.11), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(120,90,255,0.05), transparent 60%);
}

/* ===== Home Layout ===== */
.hub-shell{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
  z-index: 1;
}

.hub-panel{
  width: 100%;
  max-width: var(--maxw);
  background:
    linear-gradient(180deg, rgba(26,34,48,0.92), rgba(16,21,30,0.88));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: panelFadeIn 240ms ease-out both;
}

@keyframes panelFadeIn{
  from{
    opacity: 0;
    transform: translateY(6px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Top Bar ===== */
.topbar{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 14px;
}

.brand-mini{
  display: grid;
  gap: 2px;
}

.brand-mini span{
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mini small,
.tag{
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.top-hint{
  text-align: right;
  white-space: nowrap;
}

.top-hint span{
  color: var(--text);
}

/* ===== Logo Hero ===== */
.home-hero{
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 220px at 16% 40%, rgba(77,163,255,0.15), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.logo-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border-radius: 14px;
  background: rgba(4, 8, 14, 0.55);
  overflow: hidden;
}

/* ===== Animated Luke Ralph Logo ===== */
.lr-logo{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  border-radius: 18px;
  background: #020407;
  box-shadow:
    0 16px 34px rgba(0,0,0,.42),
    0 0 0 1px rgba(92,174,255,.14);
}

.lr-logo img{
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transform: scale(1.002);
}

.lr-logo__nebula{
  position: absolute;
  inset: 14% 18% 22%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,126,255,.16), transparent 58%),
    radial-gradient(circle at 40% 58%, rgba(32,210,255,.08), transparent 42%);
  filter: blur(20px);
  mix-blend-mode: screen;
  animation: lr-nebula 16s ease-in-out infinite alternate;
}

.lr-logo__sweep{
  position: absolute;
  z-index: 4;
  top: 18%;
  bottom: 27%;
  left: -38%;
  width: 28%;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.02),
    rgba(188,229,255,.20),
    rgba(255,255,255,.04),
    transparent
  );
  filter: blur(4px);
  mix-blend-mode: screen;
  animation: lr-sweep 10s ease-in-out infinite;
}

.lr-logo__pulse{
  position: absolute;
  z-index: 5;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  background: #dff6ff;
  box-shadow:
    0 0 8px rgba(255,255,255,.95),
    0 0 20px rgba(39,170,255,.85),
    0 0 42px rgba(39,170,255,.55);
  animation: lr-pulse 4.8s ease-in-out infinite;
}

.lr-logo__pulse--top{
  left: 50%;
  top: 13.8%;
  transform: translate(-50%,-50%);
}

.lr-logo__pulse--right{
  right: 24.5%;
  top: 37%;
  transform: translate(50%,-50%);
  animation-delay: 1.2s;
}

.lr-logo__pulse--bottom{
  left: 50%;
  top: 55.3%;
  transform: translate(-50%,-50%);
  animation-delay: 2.4s;
}

.lr-logo__pulse--left{
  left: 24.3%;
  top: 37%;
  transform: translate(-50%,-50%);
  animation-delay: 3.6s;
}

.lr-logo__spark{
  position: absolute;
  z-index: 5;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
  background: white;
  box-shadow: 0 0 8px rgba(75,180,255,.9);
  animation: lr-twinkle 3.6s ease-in-out infinite;
}

.lr-logo__spark--1{
  left: 38%;
  top: 17%;
}

.lr-logo__spark--2{
  left: 65%;
  top: 22%;
  animation-delay: 1.1s;
}

.lr-logo__spark--3{
  left: 31%;
  top: 47%;
  animation-delay: 2.2s;
}

.lr-logo__electrical{
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 67.5%;
  width: clamp(18px, 2.1vw, 30px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .9;
  filter:
    drop-shadow(0 0 5px rgba(88,190,255,.85))
    drop-shadow(0 0 12px rgba(88,190,255,.45));
  animation: lr-electric 5.5s ease-in-out infinite;
}

.lr-logo__electrical svg{
  width: 100%;
  height: 100%;
  fill: #75c9ff;
}

@keyframes lr-nebula{
  from{
    transform: translate3d(-1.5%,1%,0) scale(.98);
    opacity: .55;
  }

  to{
    transform: translate3d(1.5%,-1%,0) scale(1.04);
    opacity: .9;
  }
}

@keyframes lr-sweep{
  0%,
  18%{
    left: -38%;
    opacity: 0;
  }

  28%{
    opacity: .8;
  }

  48%{
    left: 112%;
    opacity: 0;
  }

  100%{
    left: 112%;
    opacity: 0;
  }
}

@keyframes lr-pulse{
  0%,
  100%{
    opacity: .45;
    scale: .72;
  }

  50%{
    opacity: 1;
    scale: 1;
  }
}

@keyframes lr-twinkle{
  0%,
  100%{
    opacity: .15;
    scale: .7;
  }

  45%{
    opacity: 1;
    scale: 1.6;
  }
}

@keyframes lr-electric{
  0%,
  100%{
    opacity: .55;
    transform: translateX(-50%) scale(.94);
  }

  50%{
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

.hero-copy{
  min-width: 0;
}

.hero-copy .eyebrow{
  margin: 0 0 6px;
  color: rgba(77,163,255,0.82);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-copy h1{
  margin: 0;
  max-width: 690px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p{
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.hero-action.primary{
  border-color: rgba(77,163,255,0.48);
  background: rgba(77,163,255,0.11);
}

.hero-action:hover,
.hero-action:focus-visible{
  border-color: var(--accent);
  background: rgba(77,163,255,0.16);
  transform: translateY(-1px);
}

/* ===== Hub Tiles ===== */
.hub{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.hub > *{
  align-self: start;
}

.tile{
  --tile-accent: var(--accent);
  --tile-accent-soft: var(--accent-soft);
  --tile-accent-rgb: 77, 163, 255;

  min-height: 96px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  display: grid;
  gap: 8px;
}

.tile:hover,
.tile:focus,
.tile:focus-visible,
.tile:active{
  border-color: var(--tile-accent);
  background:
    radial-gradient(360px 120px at 18% 0%, rgba(var(--tile-accent-rgb),0.13), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--tile-accent-soft),
    0 12px 28px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.tile:hover::before,
.tile:focus::before,
.tile:focus-visible::before,
.tile:active::before{
  background: var(--tile-accent);
  opacity: 1;
}

.hub .title{
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub .title .i{
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.8;
  transform: translateY(0.5px);
}

.tile:hover .title .i,
.tile:focus .title .i,
.tile:focus-visible .title .i,
.tile:active .title .i{
  stroke: var(--tile-accent);
  transform: translateY(0.5px) scale(1.05);
}

.kicker{
  font-family: var(--mono);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.tile:hover .kicker,
.tile:focus .kicker,
.tile:focus-visible .kicker,
.tile:active .kicker{
  color: rgba(var(--tile-accent-rgb),0.88);
}

.title{
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ===== Active Hub Tiles ===== */
.garden-active{
  --tile-accent: #7ed957;
  --tile-accent-soft: rgba(126,217,87,0.28);
  --tile-accent-rgb: 126, 217, 87;
}

.pond-active{
  --tile-accent: #5dd6e8;
  --tile-accent-soft: rgba(93,214,232,0.30);
  --tile-accent-rgb: 93, 214, 232;
}

.tile-active,
.tile-active:hover,
.tile-active:focus,
.tile-active:focus-visible,
.tile-active:active{
  border-color: rgba(var(--tile-accent-rgb),0.78);
  background:
    radial-gradient(360px 130px at 18% 0%, rgba(var(--tile-accent-rgb),0.22), transparent 70%),
    linear-gradient(180deg, rgba(var(--tile-accent-rgb),0.095), rgba(255,255,255,0.014));
  box-shadow:
    0 0 0 1px rgba(var(--tile-accent-rgb),0.28),
    0 12px 28px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.tile-active::before,
.tile-active:hover::before,
.tile-active:focus::before,
.tile-active:focus-visible::before,
.tile-active:active::before{
  background: var(--tile-accent);
  opacity: 1;
}

.tile-active .i,
.tile-active:hover .i,
.tile-active:focus .i,
.tile-active:focus-visible .i,
.tile-active:active .i{
  stroke: var(--tile-accent);
  opacity: 1;
}

.tile-active .title .i,
.tile-active:hover .title .i,
.tile-active:focus .title .i,
.tile-active:focus-visible .title .i,
.tile-active:active .title .i{
  stroke: var(--tile-accent);
  transform: translateY(0.5px) scale(1.05);
}

.tile-active .kicker,
.tile-active:hover .kicker,
.tile-active:focus .kicker,
.tile-active:focus-visible .kicker,
.tile-active:active .kicker{
  color: rgba(var(--tile-accent-rgb),0.92);
}

.footerhint{
  margin-top: 14px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 12px;
}

/* ===== Section Pages ===== */
.section-head{
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.section-head h1,
.section-head h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head .sub{
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.rule{
  height: 1px;
  background: var(--line);
  width: 100%;
}

.backlink{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  border-radius: 999px;
  padding: 10px 12px;
}

.backlink:hover,
.backlink:focus-visible{
  border-color: var(--accent);
  background: var(--panel);
  color: var(--text);
  transform: translateY(-2px);
}

/* ===== Cards / Lists ===== */
.card{
  padding: 16px;
  background: transparent;
  display: grid;
  gap: 10px;
}

.card:hover{
  border-color: var(--accent);
  background: var(--panel);
  transform: translateY(-2px);
}

.card:hover::before,
.card:focus-within::before{
  background: var(--accent);
  opacity: 1;
}

.meta{
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.list{
  display: grid;
  gap: 12px;
}

.item{
  padding: 14px 16px;
}

.item:hover{
  border-color: var(--accent);
  background: var(--panel);
  transform: translateY(-2px);
}

.item:hover::before,
.item:focus-within::before{
  background: var(--accent);
  opacity: 1;
}

.item.active{
  border-color: var(--accent);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 1px var(--accent-soft),
    0 10px 28px rgba(0,0,0,0.35);
}

/* ===== Links Page ===== */
body.links-page .item .name{
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

body.links-page .item .note{
  font-family: var(--mono);
  font-size: 0.90rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 6px;
}

body.links-page .item.active .note::after{
  content: "";
}

/* ===== Grid ===== */
.grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: start;
}

.grid > *{
  align-self: start;
}

@media (min-width: 721px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px){
  .grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Gallery ===== */
.gallery{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
}

.gallery > *{
  align-self: start;
}

.gallery > .tile{
  grid-column: span 4;
}

@media (max-width: 980px){
  .gallery > .tile{
    grid-column: span 6;
  }
}

@media (max-width: 620px){
  .gallery > .tile{
    grid-column: span 12;
  }
}

body.links-page .grid > .card{
  grid-column: auto !important;
}

body.links-page .grid > .card.full{
  grid-column: 1 / -1 !important;
}

body.contact-page .grid{
  grid-template-columns: 1fr !important;
}

body.contact-page .grid > .card{
  width: min(720px, 100%);
  margin-inline: auto;
}

/* ===== Video ===== */
.video-wrap{
  overflow: hidden;
  background: #0b0e12;
  aspect-ratio: 16 / 9;
}

.video-wrap video{
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  background: #000;
}

.caption{
  margin-top: 10px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

/* ===== Forms ===== */
input,
textarea,
select{
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
}

textarea{
  resize: vertical;
}

input:hover,
textarea:hover,
select:hover{
  background: rgba(19,24,33,0.35);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  border-color: var(--accent);
  background: rgba(19,24,33,0.55);
}

/* ===== Buttons ===== */
button{
  width: 100%;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0.10em;
  -webkit-appearance: none;
  appearance: none;
}

button:hover,
button:focus-visible{
  border-color: var(--accent);
  background: var(--panel);
  transform: translateY(-2px);
}

/* ===== Portal Link ===== */
.portal-dot{
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.04;
  z-index: 10;
}

.portal-dot:hover,
.portal-dot:focus-visible{
  opacity: 0.35;
}

/* ===== Desktop Height Fit ===== */
@media (min-width: 1000px) and (max-height: 880px){
  .hub-shell{
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hub-panel{
    padding: 22px;
  }

  .topbar{
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .home-hero{
    padding: 14px 16px;
    margin-bottom: 12px;
    grid-template-columns: 330px minmax(0, 1fr);
  }

  .logo-wrap{
    min-height: 145px;
  }

  .lr-logo{
    max-width: 330px;
  }

  .hero-copy h1{
    font-size: 31px;
  }

  .hero-copy p{
    margin-top: 8px;
  }

  .hero-actions{
    margin-top: 12px;
  }

  .hub{
    gap: 10px;
  }

  .tile{
    min-height: 84px;
    padding: 12px 14px;
    gap: 6px;
  }

  .footerhint{
    margin-top: 12px;
    padding-top: 10px;
  }
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .home-hero{
    grid-template-columns: 1fr;
  }

  .logo-wrap{
    min-height: 160px;
  }

  .lr-logo{
    max-width: 420px;
  }

  .hub{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .hub-shell{
    align-items: flex-start;
    padding: 18px 12px;
  }

  .hub-panel{
    padding: 18px;
    border-radius: 18px;
  }

  .topbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-hint{
    text-align: left;
    white-space: normal;
  }

  .home-hero{
    padding: 14px;
  }

  .logo-wrap{
    min-height: 130px;
  }

  .lr-logo{
    max-width: 100%;
    border-radius: 14px;
  }

  .hero-copy h1{
    font-size: 27px;
  }

  .hub{
    grid-template-columns: 1fr;
  }

  .tile{
    min-height: auto;
  }

  #starfield{
    display: none;
  }
}

@media (max-width: 420px){
  .hero-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-action{
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  #video-splash,
  #starfield{
    display: none !important;
  }

  .lr-logo *,
  .lr-logo::before,
  .lr-logo::after{
    animation: none !important;
  }
}

.visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===== Compact Section Pages ===== */
body:not(.video-library):not(.photo-library) .hub-shell{
  padding: 18px 14px;
  align-items: flex-start;
}

body:not(.video-library):not(.photo-library) .hub-panel{
  padding: 22px;
}

body:not(.video-library):not(.photo-library) .section-head{
  margin: 14px 0 16px;
  gap: 7px;
}

body:not(.video-library):not(.photo-library) .section-head h1,
body:not(.video-library):not(.photo-library) .section-head h2{
  font-size: 20px;
}

body:not(.video-library):not(.photo-library) .card,
body:not(.video-library):not(.photo-library) .item{
  padding: 14px;
}

body.contact-page .grid > .card,
body.resume-access-page .grid > .card{
  width: min(640px, 100%);
}

body.contact-page label,
body.resume-access-page label{
  display: grid;
  gap: 6px;
}

body.contact-page input,
body.contact-page textarea,
body.resume-access-page input,
body.resume-access-page textarea{
  padding: 10px 12px;
}

body.contact-page textarea,
body.resume-access-page textarea{
  min-height: 110px;
}
