:root {
  --bg: #080807;
  --cream: #f1e8da;
  --soft: #c8b9a5;
  --copper: #d17a47;
  --bright: #efa167;
  --outline: #d6ab8c;
  --line: rgba(218, 169, 132, .55);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--cream);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  overflow-x: hidden;
  overflow-y: auto;
}

button,
a {
  font: inherit;
}

/* ==================================================
   PAGE
   ================================================== */

.scene {
  position: relative;

  min-height: 1450px;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 32%,
      rgba(159, 83, 43, .12),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 50% 72%,
      rgba(235, 185, 145, .035),
      transparent 36%
    ),
    #080807;
}

/* ==================================================
   HEADER
   ================================================== */

.site-header {
  position: absolute;

  z-index: 1000;

  top: 0;
  left: 0;

  width: 100%;

  display: flex;
  justify-content: space-between;

  padding: 25px 4vw;
}

.brand {
  display: flex;
  flex-direction: column;

  color: inherit;
  text-decoration: none;
}

.brand-small {
  font-family: Georgia, serif;

  font-size: 9px;
  letter-spacing: 4px;
}

.brand-main {
  margin-top: 2px;

  color: var(--bright);

  font-family: Georgia, serif;

  font-size: 25px;
  font-weight: 700;
  font-style: italic;

  letter-spacing: 2px;
}

.header-copy {
  color: var(--soft);

  font-size: 8px;
  letter-spacing: 3px;
}

/* ==================================================
   HERO
   ================================================== */

.hero {
  position: relative;

  min-height: 1450px;
}

.hero-copy {
  position: absolute;

  z-index: 300;

  left: 50%;
  top: 455px;

  width: min(680px, 52vw);

  transform: translateX(-50%);

  text-align: center;

  pointer-events: none;
}

.eyebrow {
  margin-bottom: 18px;

  color: var(--copper);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 5px;
}

.hero-copy h1 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      68px,
      6.8vw,
      110px
    );

  line-height: .80;

  font-weight: 400;

  letter-spacing: -.035em;

  text-shadow:
    0 4px 18px
    rgba(0,0,0,.90);
}

.hero-copy h1 > span,
.hero-copy h1 .finesse-word {
  display: inline-block;

  color: transparent;

  font-style: italic;

  background:
    linear-gradient(
      110deg,
      #7c3c22,
      #c56639 28%,
      #f0a06a 46%,
      #ffd0a1 52%,
      #d87642 68%,
      #74351e
    );

  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 550px;

  margin: 29px auto 0;

  color: #ddd3c6;

  font-size: 14px;

  line-height: 1.6;
}

.instruction {
  margin-top: 24px;

  color: var(--copper);

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 3.5px;
}

/* ==================================================
   CHEF HAT WORLD
   ================================================== */

.floating-world {
  position: absolute;

  z-index: 100;

  left: 3%;
  top: 90px;

  width: 94%;
  height: 1240px;

  pointer-events: none;
}

/* ==================================================
   STATIC HAT
   ================================================== */

.hat-guide {
  position: absolute;

  z-index: 1;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;

  pointer-events: none;
}

/*
  One lightweight SVG filter only.
*/

.hat-outline {
  fill: none;

  stroke: var(--outline);

  stroke-width: 3.1;

  stroke-opacity: .78;

  vector-effect:
    non-scaling-stroke;

  filter:
    url(#hatSoftGlow);
}

.hat-row {
  fill: none;

  stroke: #d7ae90;

  stroke-width: 1.8;

  stroke-opacity: .57;

  vector-effect:
    non-scaling-stroke;
}

.hat-pleat {
  fill: none;

  stroke: #cba183;

  stroke-width: 1.25;

  stroke-opacity: .33;

  stroke-dasharray: 7 10;

  vector-effect:
    non-scaling-stroke;
}

/* ==================================================
   ICONS
   ================================================== */

.category-node {
  position: absolute;

  z-index: 20;

  left: var(--hat-x);
  top: var(--hat-y);

  width: 78px;

  padding: 0;

  border: 0;

  background: transparent;

  color: inherit;

  cursor: pointer;

  pointer-events: auto;

  transform:
    translate(-50%, -50%)
    scale(var(--hat-scale, 1));

  animation:
    tool-float
    var(--float-duration, 8s)
    ease-in-out
    infinite;

  animation-delay:
    var(--float-delay, 0s);

  will-change: transform;
}

.node-icon {
  display: grid;

  place-items: center;

  width: 74px;
  height: 74px;

  margin: auto;

  color: #e7dac8;

  filter:
    drop-shadow(
      0 3px 4px
      rgba(0,0,0,.75)
    );

  transition:
    color .18s ease,
    transform .18s ease;
}

.category-node:nth-child(4n+1) .node-icon {
  color: #d47844;
}

.category-node:nth-child(4n+2) .node-icon {
  color: #eadcca;
}

.category-node:nth-child(4n+3) .node-icon {
  color: #cdbda8;
}

.category-node:nth-child(4n) .node-icon {
  color: #e18b56;
}

.node-icon svg {
  width: 100%;
  height: 100%;
}

.category-node:hover {
  z-index: 100;
}

.category-node:hover .node-icon {
  color: #f2a069;

  transform:
    scale(1.15);

  filter:
    drop-shadow(
      0 0 8px
      rgba(238,153,96,.55)
    );
}

.node-label {
  position: absolute;

  left: 50%;
  top: calc(100% + 4px);

  width: 112px;

  transform:
    translateX(-50%);

  color: #c5b59e;

  font-size: 6px;
  font-weight: 700;

  line-height: 1.15;

  letter-spacing: 1px;

  text-align: center;

  opacity: .38;

  transition:
    opacity .18s ease,
    color .18s ease;
}

.category-node:hover .node-label {
  color: var(--bright);
  opacity: 1;
}

/*
  Only the icons move.
  The SVG hat never animates.
*/

@keyframes tool-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -7px;
  }
}

/* ==================================================
   PANEL
   ================================================== */

.category-panel {
  position: fixed;

  z-index: 5000;

  inset: 0;

  visibility: hidden;

  pointer-events: none;
}

.category-panel.open {
  visibility: visible;

  pointer-events: auto;
}

.panel-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0,0,0,.74);

  backdrop-filter:
    blur(6px);
}

.panel-card {
  position: absolute;

  top: 0;
  right: 0;

  width:
    min(
      525px,
      94vw
    );

  height: 100%;

  padding:
    100px
    45px
    50px;

  overflow-y: auto;

  background: #12100d;

  border-left:
    1px solid rgba(210,130,76,.25);
}

.panel-close {
  position: absolute;

  top: 25px;
  right: 25px;

  width: 45px;
  height: 45px;

  border:
    1px solid rgba(210,130,76,.3);

  background: #090807;

  color: white;

  font-size: 24px;

  cursor: pointer;
}

.panel-icon {
  width: 92px;
  height: 92px;

  color: var(--bright);
}

.panel-icon svg {
  width: 100%;
  height: 100%;
}

.panel-kicker {
  margin-top: 24px;

  color: var(--copper);

  font-size: 9px;

  letter-spacing: 4px;
}

.panel-card h2 {
  margin:
    13px
    0
    20px;

  font-family:
    Georgia,
    serif;

  font-size:
    clamp(
      44px,
      6vw,
      68px
    );

  line-height: .95;

  font-weight: 400;
}

.panel-card p {
  color: var(--soft);

  font-size: 15px;

  line-height: 1.7;
}

.panel-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 28px;
}

.primary-action,
.secondary-action {
  padding:
    13px
    17px;

  border:
    1px solid var(--copper);

  cursor: pointer;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 2px;
}

.primary-action {
  background: var(--copper);
  color: #111;
}

.secondary-action {
  background: transparent;
  color: var(--cream);
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
  position: absolute;

  z-index: 1000;

  left: 4vw;
  right: 4vw;
  bottom: 18px;

  display: flex;
  justify-content: space-between;

  color: #81786d;

  font-size: 7px;

  letter-spacing: 1.3px;
}

footer a {
  color: var(--copper);
  text-decoration: none;
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 900px) {

  body {
    overflow: hidden;
  }

  .scene,
  .hero {
    min-height: 100svh;
    height: 100svh;
  }

  .site-header {
    padding:
      13px
      14px;
  }

  .brand-small {
    font-size: 6px;
    letter-spacing: 2px;
  }

  .brand-main {
    font-size: 17px;
  }

  .header-copy {
    display: none;
  }

  .floating-world {
    left: 1%;
    top: 7%;

    width: 98%;
    height: 84%;
  }

  .hero-copy {
    top: 42%;

    width: 62vw;

    transform:
      translate(-50%, -50%);
  }

  .eyebrow {
    margin-bottom: 9px;

    font-size: 6px;

    letter-spacing: 2px;
  }

  .hero-copy h1 {
    font-size:
      clamp(
        38px,
        11vw,
        52px
      );
  }

  .hero-copy p {
    margin-top: 14px;

    font-size: 9px;

    line-height: 1.4;
  }

  .instruction {
    margin-top: 12px;

    font-size: 5px;

    letter-spacing: 1.2px;
  }

  .hat-outline {
    stroke-width: 2.1;
  }

  .hat-row {
    stroke-width: 1.35;
  }

  .hat-pleat {
    stroke-width: 1;
  }

  .category-node {
    width: 41px;
  }

  .node-icon {
    width: 39px;
    height: 39px;
  }

  .node-label {
    display: none;
  }

  .panel-card {
    width: 100%;

    padding:
      88px
      23px
      45px;
  }

  footer {
    left: 14px;
    right: 14px;
    bottom: 8px;

    font-size: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-node {
    animation: none;
  }
}




/* ==========================================
   BBQ FIRE — FULL PAGE WIDTH
   ========================================== */

.bbq-fire {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 125px !important;
}

/* MOBILE */

@media (max-width: 900px) {
  .bbq-fire {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 75px !important;
  }
}



/* ================================================
   REALISTIC BARBECUE FIRE V2
   ================================================ */

.bbq-fire {
  position: absolute !important;
  z-index: 80 !important;

  left: 0 !important;
  right: 0 !important;
  top: 1280px !important;
  bottom: auto !important;

  width: 100% !important;
  max-width: none !important;
  height: 165px !important;

  overflow: hidden !important;
  pointer-events: none !important;

  isolation: isolate;
}

/* Warm illuminated base */

.bbq-fire-glow {
  position: absolute;
  inset: auto 0 0;
  height: 85px;

  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(255,195,65,.45) 0%,
      rgba(255,95,10,.26) 38%,
      rgba(165,28,0,.12) 65%,
      transparent 90%
    );
}

/* Flame field */

.bbq-flame-field {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;

  overflow: hidden;
}

/* Individual flame tongues */

.bbq-flame-field .flame {
  position: relative;

  display: block;
  flex: 1 0 1.7%;

  height: var(--h);
  min-width: 0;

  transform-origin: center bottom;

  background:
    radial-gradient(
      ellipse at 50% 92%,
      #fff3b1 0%,
      #ffd451 14%,
      #ff9817 35%,
      #f34b05 60%,
      #a81c00 78%,
      transparent 95%
    );

  clip-path: polygon(
    50% 0%,
    64% 20%,
    80% 38%,
    91% 63%,
    100% 100%,
    0% 100%,
    9% 65%,
    20% 43%,
    35% 23%
  );

  animation:
    flame-dance var(--dur)
    ease-in-out infinite alternate;

  animation-delay: var(--delay);

  opacity: .92;
}

/* Smaller yellow inner flame */

.bbq-flame-field .flame::after {
  content: '';

  position: absolute;
  left: 30%;
  bottom: 0;

  width: 40%;
  height: 65%;

  background:
    linear-gradient(
      to top,
      #fff8ce,
      #ffe77b 35%,
      #ffae22 70%,
      transparent
    );

  clip-path: polygon(
    50% 0%,
    80% 35%,
    100% 100%,
    0% 100%,
    20% 35%
  );

  opacity: .75;
}

/* Alternating flame sizes */

.bbq-flame-field .flame:nth-child(3n) {
  height: calc(var(--h) * .72);
  opacity: .78;
}

.bbq-flame-field .flame:nth-child(5n) {
  height: calc(var(--h) * 1.15);
}

.bbq-flame-field .flame:nth-child(7n) {
  opacity: .65;
}

/* Natural flickering */

@keyframes flame-dance {
  0% {
    transform:
      scaleY(.78)
      skewX(-5deg);
    opacity: .75;
  }

  35% {
    transform:
      scaleY(1.08)
      skewX(3deg);
    opacity: .96;
  }

  70% {
    transform:
      scaleY(.88)
      skewX(-3deg);
    opacity: .84;
  }

  100% {
    transform:
      scaleY(1.18)
      skewX(5deg);
    opacity: 1;
  }
}

/* Ember particles */

.bbq-ember-field {
  position: absolute;
  inset: 0;
}

.bbq-ember-field .ember {
  position: absolute;

  left: var(--x);
  bottom: 8px;

  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: #ffca4d;

  box-shadow:
    0 0 4px rgba(255,135,20,.65);

  animation:
    ember-rise var(--dur)
    linear infinite;

  animation-delay: var(--delay);
}

@keyframes ember-rise {
  0% {
    transform:
      translate3d(0,0,0);
    opacity: 0;
  }

  15% {
    opacity: .9;
  }

  65% {
    opacity: .55;
  }

  100% {
    transform:
      translate3d(14px,-145px,0);
    opacity: 0;
  }
}

/* Glowing coal line */

.bbq-embers {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 12px;

  background:
    linear-gradient(
      to top,
      #8b1c00,
      #ed5005 40%,
      #ffad25 75%,
      transparent
    );

  opacity: .9;
}

/* Mobile */

@media (max-width: 900px) {
  .bbq-fire {
    top: auto !important;
    bottom: 5% !important;

    width: 100% !important;
    height: 105px !important;
  }

  .bbq-flame-field .flame {
    height: calc(var(--h) * .65);
  }

  .bbq-fire-glow {
    height: 55px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .bbq-flame-field .flame,
  .bbq-ember-field .ember {
    animation: none !important;
  }
}

/* END REALISTIC BARBECUE FIRE V2 */

/* BBQ FIRE — SMALLER FLAMES */

.bbq-fire {
  height: 125px !important;
}

.bbq-flame-field .flame {
  height: calc(var(--h) * .75);
}

@media (max-width: 900px) {
  .bbq-fire {
    height: 80px !important;
  }

  .bbq-flame-field .flame {
    height: calc(var(--h) * .48);
  }
}


/* BBQ FIRE — SMALLER MOBILE FLAMES */

@media (max-width: 900px) {

  .bbq-fire {
    height: 50px !important;
    bottom: 5% !important;
  }

  .bbq-flame-field .flame,
  .bbq-flame-field .flame:nth-child(3n),
  .bbq-flame-field .flame:nth-child(5n) {
    height: calc(var(--h) * .29) !important;
  }

  .bbq-fire-glow {
    height: 35px !important;
  }

  .bbq-embers {
    height: 5px !important;
  }

}






/* NRGH FOOTER LAYOUT START */

/* Existing footer */
footer {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 12px !important;

  width: auto !important;
  min-height: 40px !important;
}

/* Center copyright */
.nrgh-footer-center {
  grid-column: 2;
  justify-self: center;

  text-align: center;
  color: #a99a86;
}

/* NRGH Network indicator on right */
footer .nrgh-network-status {
  position: static !important;

  grid-column: 3;
  justify-self: end;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: auto;
  padding: 5px 7px;

  color: #d8e8da;
  background: transparent;

  border: none;
  border-radius: 0;

  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;

  white-space: nowrap;
}

footer .nrgh-network-status:hover {
  color: #ffffff;
  background: transparent;
}

/* Green online light */
footer .nrgh-status-light {
  display: inline-block;
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #39ed69;

  box-shadow:
    0 0 5px rgba(57,237,105,.85),
    0 0 9px rgba(57,237,105,.35);

  animation: nrgh-footer-pulse 2.5s ease-in-out infinite;
}

@keyframes nrgh-footer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

/* Mobile */
@media (max-width: 900px) {
  footer {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;

    grid-template-columns: 1fr auto 1fr !important;
    gap: 4px !important;
  }

  .nrgh-footer-center {
    font-size: 5px;
    letter-spacing: .2px;
  }

  footer .nrgh-network-status {
    font-size: 6px;
    letter-spacing: .2px;
    gap: 4px;
    padding: 2px;
  }

  footer .nrgh-status-light {
    width: 5px;
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer .nrgh-status-light {
    animation: none;
  }
}

/* NRGH FOOTER LAYOUT END */

/* NRGH FOOTER — NETWORK LEFT, COPYRIGHT CENTER */

footer {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
}

footer .nrgh-network-status {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

footer .nrgh-footer-center {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  footer {
    grid-template-columns: 1fr auto 1fr !important;
  }

  footer .nrgh-network-status {
    justify-self: start !important;
  }
}


/* ==========================================
   FOOTER ALIGNMENT — NRGH / COPYRIGHT / CONTACT
   ========================================== */

footer {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 10px !important;
}

/* LEFT — NRGH NETWORK ONLINE */

footer .nrgh-network-status {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;

  position: relative !important;
  top: 5px !important;
}

/* CENTER — COPYRIGHT */

footer .nrgh-footer-center {
  display: contents !important;
}

footer .nrgh-footer-center > :not(a) {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  text-align: center !important;
}

/* RIGHT — CONTACT */

footer .nrgh-footer-center > a {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  text-align: right !important;
}

/* MOBILE */

@media (max-width: 900px) {

  footer {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 4px !important;
  }

  footer .nrgh-network-status {
    top: 4px !important;
  }

  footer .nrgh-footer-center > a {
    font-size: 6px !important;
  }
}


/* ==========================================
   FOOTER — ALL ELEMENTS INLINE
   ========================================== */

footer {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 30px !important;
}

/* Unwrap the existing copyright/contact container */
footer .nrgh-footer-center {
  display: contents !important;
}

/* LEFT — NRGH NETWORK ONLINE */
footer .nrgh-network-status {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* CENTER — COPYRIGHT */
footer .nrgh-footer-center > :not(a) {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* RIGHT — CONTACT */
footer .nrgh-footer-center > a {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
  text-align: right !important;
  line-height: 1.2 !important;
}

/* MOBILE */
@media (max-width: 900px) {
  footer {
    left: 6px !important;
    right: 6px !important;
    gap: 4px !important;
    min-height: 24px !important;
  }

  footer .nrgh-network-status {
    font-size: 5px !important;
    letter-spacing: 0 !important;
    padding: 0 !important;
    gap: 3px !important;
  }

  footer .nrgh-footer-center > :not(a),
  footer .nrgh-footer-center > a {
    font-size: 5px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
}







/* STOVE HALO REVERT */

.floating-world::before,
.floating-world::after {
  display: none !important;
  content: none !important;
}

.floating-world > .hat-guide {
  z-index: 1 !important;
}

.floating-world > .category-node {
  z-index: 20 !important;
}

