: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;
  }
}
