/* ── Nav: fixed bar, lockup / centre links with dropdowns / Projects pill ──
   Values measured off the reference at 1920/1440/1280/1200/1000/991/767/479/390. */
.st-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding-top: 18px;
  font-size: 10px; line-height: 12.5px; color: #fff;
  background-color: rgba(11, 11, 11, 0);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transform: translateY(0);
  transition: all .4s ease;
  will-change: background;
}
.st-nav.is-scrolled { background-color: rgba(11, 11, 11, .6); }
.st-nav.is-hidden { transform: translateY(-100%); }

.st-nav__container {
  position: relative; z-index: 5;
  max-width: 1460px; margin: 0 auto; padding: 0 64px;
}
.st-nav__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; min-height: 68px;
}

/* lockup */
.st-nav__logo { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; text-decoration: none; flex: none; }
.st-nav__mark { display: block; flex: none; width: 36px; height: 38px; }
.st-nav__word {
  font: 700 32px/1 var(--sans); letter-spacing: -0.035em; white-space: nowrap; color: var(--cream);
}

/* centre links */
.st-nav__links { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.st-nav__item { position: relative; display: flex; align-items: center; }
.st-nav__link {
  display: flex; align-items: center; gap: 7px;
  font: 400 17px/12.5px var(--sans); letter-spacing: -0.01em; white-space: nowrap;
  color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .18s ease;
}
.st-nav__link:hover { color: #fff; }
.st-nav__chev { flex: none; opacity: .65; transition: transform .18s ease, opacity .18s ease; }
.st-nav__link:hover .st-nav__chev { opacity: 1; transform: translateY(1px); }

/* dropdown — the 18px top padding is the hover bridge from link to panel */
.st-nav__menu {
  position: absolute; top: 100%; left: -28px; z-index: 1200;
  padding-top: 18px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.st-nav__item--menu:hover .st-nav__menu,
.st-nav__item--menu:focus-within .st-nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.st-nav__panel {
  display: flex; gap: 48px; padding: 30px 34px;
  background: #121517; border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.st-nav__col { min-width: 232px; }
.st-nav__label {
  margin: 0 0 18px;
  font: 400 11px/27px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(246, 240, 228, .42);
}
.st-nav__entry {
  display: block; margin: 0 -10px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; transition: background .15s ease;
}
.st-nav__entry:hover { background: rgba(255, 255, 255, .05); }
.st-nav__entry-title { display: block; font: 600 16px/12.5px var(--sans); letter-spacing: -0.015em; color: var(--cream); }
.st-nav__entry-desc { display: block; margin-top: 3px; font: 400 13.5px/12.5px var(--sans); color: rgba(246, 240, 228, .5); }

/* right side */
.st-nav__actions { display: flex; align-items: center; gap: 14px; }
.st-nav__projects {
  display: flex; align-items: center; height: 50px; padding: 0 26px 0 8px;
  border-radius: 100px; background: var(--ice); box-shadow: var(--ice-shadow);
  color: #0A1315; font: 500 16px/24px var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .25s ease, filter .25s ease;
}
.st-nav__projects:hover { transform: translateY(-1px); filter: brightness(1.05); }
.st-nav__projects-arrow { display: flex; align-items: center; justify-content: center; width: 38px; height: 50px; flex: none; }
.st-nav__projects-arrow svg { display: block; width: 21px; height: 21px; transition: transform .45s var(--ease-out); }
.st-nav__projects:hover .st-nav__projects-arrow svg { transform: rotate(-135deg); }
.st-nav__projects-text { padding-left: 4px; font-size: 14px; line-height: 24px; }

/* burger (phones) */
.st-nav__burger {
  display: none; position: relative; z-index: 1002; flex: none;
  width: 44px; height: 44px; margin-left: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.st-nav__burger span {
  position: absolute; left: 13px; right: 13px; height: 1.8px; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.st-nav__burger span:first-child { top: 17px; }
.st-nav__burger span:last-child { top: 25px; }
.st-sheet-open .st-nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.st-sheet-open .st-nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ── mobile sheet ───────────────────────────────────────────────────────── */
.st-sheet {
  position: fixed; inset: 0; z-index: 1001; display: none;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(88px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  background: #0A0D0E; color: #fff; font-size: 10px; line-height: 12.5px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
}
.st-sheet-open .st-sheet { opacity: 1; transform: none; }
.st-sheet-open, .st-sheet-open body { overflow: hidden; }
.st-sheet__inner { display: flex; flex-direction: column; min-height: 100%; font-family: var(--sans); }
.st-sheet__group { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.st-sheet__summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  list-style: none; cursor: pointer;
  font: 500 22px/12.5px var(--sans); letter-spacing: -0.02em; color: #fff;
}
.st-sheet__summary::-webkit-details-marker { display: none; }
.st-sheet__summary svg { flex: none; opacity: .6; transition: transform .25s var(--ease-out); }
.st-sheet__group[open] .st-sheet__summary svg { transform: rotate(180deg); }
.st-sheet__links { display: flex; flex-direction: column; padding-bottom: 16px; }
.st-sheet__links a {
  display: flex; align-items: center; min-height: 44px;
  font: 400 17px/12.5px var(--sans); color: rgba(255, 255, 255, .72); text-decoration: none;
}
.st-sheet__links a:active { color: #fff; }
.st-sheet__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: auto; padding-top: 32px; }
.st-sheet__cta { width: 100%; font-size: 16px; line-height: 27px; }
.st-sheet__cta .st-btn__arrow { width: 61px; height: 61px; }
.st-sheet__cta .st-btn__text { flex: 1; }
.st-sheet__cta:hover .st-btn__arrow { border-radius: 50% 50% 50% 0; }
.st-sheet__mail { font: 400 14px/12.5px var(--mono); color: rgba(255, 255, 255, .6); text-decoration: none; }

/* ── breakpoints ────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .st-nav__container { max-width: 1560px; }
  .st-nav__projects-text { font-size: 18px; }
}
@media (max-width: 1279px) {
  .st-nav { padding-top: 24px; }
  .st-nav__bar { padding-bottom: 24px; min-height: 74px; }
}
@media (max-width: 1240px) {
  .st-nav__mark { width: 28px; height: 30px; }
  .st-nav__word { font-size: 23px; }
  .st-nav__links { gap: 17px; }
  .st-nav__link { font-size: 15px; }
}
@media (max-width: 1020px) {
  .st-nav__mark { width: 24px; height: 26px; }
  .st-nav__word { font-size: 19px; }
  .st-nav__links { gap: 11.5px; }
  .st-nav__link { font-size: 14px; gap: 5px; }
}
@media (max-width: 991px) {
  .st-nav { display: flex; align-items: center; height: 96px; padding-top: 0; }
  .st-nav__container { width: 100%; padding: 0 48px; }
  .st-nav__bar { padding-bottom: 0; min-height: 0; }
}
@media (max-width: 767px) {
  .st-nav__container { padding: 0 16px; }
  .st-nav__links { display: none; }
  .st-nav__actions { margin-left: auto; }
  .st-nav__burger { display: inline-block; }
  .st-sheet { display: block; visibility: hidden; pointer-events: none; }
  .st-sheet-open .st-sheet { visibility: visible; pointer-events: auto; }
  .st-sheet-open .st-nav { z-index: 1003; background-color: #0A0D0E; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 479px) {
  .st-nav__projects { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .st-nav, .st-sheet, .st-nav__burger span, .st-nav__menu { transition: none; }
}

/* ── Dropdown as a card (2026-09-27, his reference): a lighter outer panel with
   the first group sitting in its own darker rounded card; items are big title +
   plain description, sentence-case label; the first group lays out 2-up. ── */
.st-nav__panel {
  display: flex; gap: 0 !important; padding: 0 !important; overflow: hidden;
  background: #262626 !important; border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 24px !important; box-shadow: 0 30px 80px rgba(0,0,0,.55) !important;
}
.st-nav__col { min-width: 0 !important; padding: 38px 40px 42px; display: flex; flex-direction: column; gap: 22px; }
.st-nav__col:first-child {
  display: grid; grid-template-columns: repeat(2, minmax(210px, auto)); column-gap: 72px; row-gap: 22px; align-content: start;
  background: #1C1C1C; border-radius: 24px; box-shadow: 1px 0 0 rgba(255,255,255,.05);
}
.st-nav__col:first-child .st-nav__label { grid-column: 1 / -1; }
.st-nav__col + .st-nav__col { min-width: 250px !important; }
.st-nav__label {
  margin: 0 0 6px !important; font: 400 15px/1.4 var(--sans, 'Onest', sans-serif) !important;
  letter-spacing: 0 !important; text-transform: none !important; color: rgba(255,255,255,.55) !important;
}
.st-nav__entry { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important; text-decoration: none; }
.st-nav__entry-title { font: 600 20px/1.3 var(--sans, 'Onest', sans-serif) !important; letter-spacing: -0.01em !important; color: #fff !important; transition: opacity .15s ease; }
.st-nav__entry-desc { margin-top: 4px !important; font: 400 16px/1.4 var(--sans, 'Onest', sans-serif) !important; color: rgba(255,255,255,.6) !important; }
.st-nav__entry:hover .st-nav__entry-title { opacity: .8; }
.st-nav__entry:hover .st-nav__entry-desc { color: rgba(255,255,255,.8) !important; }

/* one line per title/description, like the reference */
.st-nav__entry-title, .st-nav__entry-desc { white-space: nowrap; }
.st-nav__col:first-child { column-gap: 64px; }
