/* ------------------------------------------------------------------
   Adrian Notö — shared foundation
   Palette drawn from the Voidbreaker artwork: near-black void, warm
   white starlight, dark teal and a restrained, dimmed gold.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07090b;
  --bg-raise: #0b0f12;
  --surface: #0d1216;
  --line: #1a2227;
  --line-strong: #27333a;

  --text: #f4efe6;
  --text-2: #c2c7c8;
  --text-3: #8f9799;

  --teal: #63c6b8;
  --teal-deep: #2c6f69;
  --teal-wash: rgba(99, 198, 184, 0.09);

  --gold: #d3b071;
  --gold-deep: #7d6435;
  --gold-wash: rgba(211, 176, 113, 0.09);

  --focus: #9adcd0;

  --font-display: "Space Grotesk", "Segoe UI Variable Display", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 74rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(5rem, 11vw, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Ambient void wash — fixed, non-interactive, never creates overflow. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 12% -8%, rgba(44, 111, 105, 0.2), transparent 62%),
    radial-gradient(46rem 34rem at 96% 4%, rgba(125, 100, 53, 0.13), transparent 60%),
    radial-gradient(70rem 50rem at 50% 104%, rgba(44, 111, 105, 0.1), transparent 66%);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

::selection {
  background: var(--teal-deep);
  color: #fff;
}

/* ---------- layout helpers ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--teal-deep);
  padding: 0.75rem 1.15rem;
  font-size: 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    var(--teal-deep),
    var(--gold-deep) 42%,
    var(--line) 78%,
    transparent
  );
  opacity: 0.75;
}

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

/* Not position:relative — the open mobile panel is positioned against the
   sticky .masthead so it spans the viewport exactly, never wider. */
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.brand:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--teal-deep);
}

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.1rem);
}

.nav__link {
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-2);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--teal-deep);
  background: var(--teal-wash);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__cta:hover {
  background: rgba(99, 198, 184, 0.16);
  border-color: var(--teal);
}

@media (max-width: 47.99em) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #090c0f;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5);
    padding: 0.25rem var(--gutter) 1.5rem;
    display: none;
  }

  .js .nav[data-open="true"] {
    display: block;
  }

  .js .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .nav__list > li + li {
    border-top: 1px solid var(--line);
  }

  .js .nav__link {
    display: block;
    padding: 0.95rem 0;
    font-size: 1.0625rem;
    border-bottom: 0;
  }

  .js .nav__cta {
    margin-top: 1rem;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  /* No-JS fallback: the links simply stay visible and wrap. */
  .no-js .nav__list {
    flex-wrap: wrap;
    gap: 0.6rem 1.15rem;
  }
}

/* ---------- links & buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--teal-deep);
  color: var(--text);
  background: var(--teal-wash);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  background: rgba(99, 198, 184, 0.17);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.btn .icon {
  flex: none;
}

.icon--stroke {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon--stroke {
  transform: translateX(3px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-2);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--gold-deep);
  background: var(--gold-wash);
}

.textlink {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 198, 184, 0.35);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.textlink:hover {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(4rem, 9vw, 7rem);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.site-footer p {
  color: var(--text-3);
  font-size: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.6rem;
}

.site-footer__links a {
  font-size: 1rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-footer__links a:hover {
  color: var(--text);
  border-bottom-color: var(--teal-deep);
}

/* ---------- motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Printing never runs the scroll observer, so nothing may stay faded out. */
@media print {
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ------------------------------------------------------------------
   adriannoto.com — main site
   ------------------------------------------------------------------ */

/* ---------- section scaffolding ---------- */

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 62em) {
  .section__grid {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.section__label {
  min-width: 0;
}

.section__label .eyebrow {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.22em;
}

.section__label .rule {
  margin-top: 0.9rem;
  max-width: 7rem;
}

@media (min-width: 62em) {
  .section__label {
    position: sticky;
    top: 7rem;
  }

  .section__label .rule {
    max-width: none;
  }
}

.section__body {
  min-width: 0;
}

.section__title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 300;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(4.5rem, 13vh, 9rem) clamp(4rem, 10vh, 7rem);
  display: flex;
  align-items: center;
  min-height: min(86svh, 54rem);
}

.hero__inner {
  position: relative;
  width: 100%;
}

.hero__mark {
  display: none;
}

@media (min-width: 62em) {
  .hero__mark {
    display: block;
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent,
      var(--teal-deep) 18%,
      var(--gold-deep) 62%,
      transparent
    );
  }
}

.hero__eyebrow {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero__name {
  font-size: clamp(3.15rem, 11.5vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: clamp(1.25rem, 3vw, 1.85rem);
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--text);
  max-width: 44ch;
  text-wrap: pretty;
}

/* Phrases in a dot-separated line never break internally. */
.nb {
  white-space: nowrap;
}

.hero__meta {
  margin-top: 0.9rem;
  font-size: 1.0625rem;
  color: var(--text-3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-top: clamp(2rem, 4.5vw, 3rem);
}

.hero__index {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
}

@media (min-width: 48em) {
  .hero__index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

.hero__index a {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.hero__index a:hover {
  color: var(--text);
  border-bottom-color: var(--gold-deep);
}

.hero__index span {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

/* ---------- about ---------- */

.prose {
  max-width: 62ch;
  display: grid;
  gap: 1.4rem;
}

.prose p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-2);
}

.prose p.lead {
  font-size: clamp(1.25rem, 2.1vw, 1.4375rem);
  line-height: 1.6;
  color: var(--text);
}

.aside-note {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-left: 1.25rem;
  border-left: 1px solid var(--gold-deep);
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--text-3);
}

/* ---------- vision ---------- */

.vision__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 62em) {
  .vision__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }
}

.vision__copy {
  min-width: 0;
  display: grid;
  gap: 1.5rem;
}

.vision__copy p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 54ch;
}

.vision__pull {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.625rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.012em;
  padding-left: 1.35rem;
  border-left: 1px solid var(--teal-deep);
  max-width: 30ch;
  text-wrap: balance;
}

.vision__figure {
  position: relative;
  margin: 0;
  min-width: 0;
}

.vision__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  overflow: hidden;
}

.vision__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 6rem rgba(7, 9, 11, 0.55);
}

.vision__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vision__caption {
  margin-top: 0.95rem;
  font-size: 1rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.vision__caption::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--gold-deep);
}

/* ---------- projects ---------- */

.project {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(16, 22, 26, 0.9),
    rgba(9, 12, 15, 0.7)
  );
  padding: clamp(1.6rem, 3.6vw, 2.75rem);
  max-width: 46rem;
}

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.project__name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project__status {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.project__text {
  margin-top: 1.15rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 56ch;
}

.facts {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.facts__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.facts__row dt {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  flex: none;
  min-width: 5.5rem;
}

.facts__row dd {
  font-size: 1.0625rem;
  color: var(--text);
  min-width: 0;
}

.project__note {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 52ch;
  font-size: 1.0625rem;
  color: var(--text-3);
}

/* ---------- contact ---------- */

.contact__intro {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.channels {
  max-width: 46rem;
  border-top: 1px solid var(--line);
}

.channel {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 1.1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.22s var(--ease), padding-inline-start 0.22s var(--ease);
}

.channel:hover {
  color: var(--text);
  padding-inline-start: 0.4rem;
}

.channel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color 0.22s var(--ease);
}

.channel:hover .channel__icon {
  color: var(--teal);
}

.channel__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.9rem;
  min-width: 0;
}

.channel__label {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.005em;
}

.channel__value {
  font-size: 1rem;
  color: var(--text-3);
  min-width: 0;
}

.channel__go {
  color: var(--text-3);
  display: flex;
  align-items: center;
  transition: color 0.22s var(--ease);
}

.channel:hover .channel__go {
  color: var(--gold);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 70svh;
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.notfound h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.notfound p {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: 2rem;
}
