/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/

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

/**
Use a more readable tab size (opinionated).
*/

:root {
  -moz-tab-size: 4;
  -o-tab-size: 4;
     tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/*
Sections
========
*/

/**
Remove the margin in all browsers.
*/

body {
  margin: 0;
}

/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/

body {
  font-family:
		system-ui,
		-apple-system, /* Firefox supports this but not yet `system-ui` */
		'Segoe UI',
		Roboto,
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';
}

/*
Grouping content
================
*/

/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
}

/*
Text-level semantics
====================
*/

/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr[title] {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/

/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/

button,
select { /* 1 */
  text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='submit'] {
  -webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/

/**
Restore the focus styles unset by the previous rule.
*/

/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/**
 * Manually forked from SUIT CSS Base: https://github.com/suitcss/base
 * A thin layer on top of normalize.css that provides a starting point more
 * suitable for web applications.
 */

/**
 * Removes the default spacing and border for appropriate elements.
 */

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

button {
  background-color: transparent;
  background-image: none;
}

/**
 * Work around a Firefox/IE bug where the transparent `button` background
 * results in a loss of the default `button` focus styles.
 */

button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

fieldset {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/**
 * Tailwind custom reset styles
 */

/**
 * 1. Use the user's configured `sans` font-family (with Tailwind's default
 *    sans-serif font stack as a fallback) as a sane default.
 * 2. Use Tailwind's default "normal" line-height so the user isn't forced
 *    to override it to ensure consistency even when using the default theme.
 */

html {
  font-family: Rubik, system-ui, sans-serif; /* 1 */
  line-height: 1.5; /* 2 */
}

/**
 * Inherit font-family and line-height from `html` so users can set them as
 * a class directly on the `html` element.
 */

body {
  font-family: inherit;
  line-height: inherit;
}

/**
 * 1. Prevent padding and border from affecting element width.
 *
 *    We used to set this in the html element and inherit from
 *    the parent element for everything else. This caused issues
 *    in shadow-dom-enhanced elements like <details> where the content
 *    is wrapped by a div with box-sizing set to `content-box`.
 *
 *    https://github.com/mozdevs/cssremedy/issues/4
 *
 *
 * 2. Allow adding a border to an element by just adding a border-width.
 *
 *    By default, the way the browser specifies that an element should have no
 *    border is by setting it's border-style to `none` in the user-agent
 *    stylesheet.
 *
 *    In order to easily add borders to elements by just setting the `border-width`
 *    property, we change the default border-style for all elements to `solid`, and
 *    use border-width to hide them instead. This way our `border` utilities only
 *    need to set the `border-width` property instead of the entire `border`
 *    shorthand, making our border utilities much more straightforward to compose.
 *
 *    https://github.com/tailwindcss/tailwindcss/pull/116
 */

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

/*
 * Ensure horizontal rules are visible by default
 */

hr {
  border-top-width: 1px;
}

/**
 * Undo the `border-style: none` reset that Normalize applies to images so that
 * our `border-{width}` utilities have the expected effect.
 *
 * The Normalize reset is unnecessary for us since we default the border-width
 * to 0 on all elements.
 *
 * https://github.com/tailwindcss/tailwindcss/issues/362
 */

img {
  border-style: solid;
}

textarea {
  resize: vertical;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: #9ca3af;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
  color: #9ca3af;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

button,
[role="button"] {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/**
 * Reset links to optimize for opt-in styling instead of
 * opt-out.
 */

a {
  color: inherit;
  text-decoration: inherit;
}

/**
 * Reset form element properties that are easy to forget to
 * style explicitly so you don't inadvertently introduce
 * styles that deviate from your design system. These styles
 * supplement a partial reset that is already applied by
 * normalize.css.
 */

button,
input,
optgroup,
select,
textarea {
  padding: 0;
  line-height: inherit;
  color: inherit;
}

/**
 * Use the configured 'mono' font family for elements that
 * are expected to be rendered with a monospace font, falling
 * back to the system monospace stack if there is no configured
 * 'mono' font family.
 */

pre,
code,
kbd,
samp {
  font-family: Space Mono, ui-monospace, monospace;
}

/**
 * Make replaced elements `display: block` by default as that's
 * the behavior you want almost all of the time. Inspired by
 * CSS Remedy, with `svg` added as well.
 *
 * https://github.com/mozdevs/cssremedy/issues/14
 */

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

/**
 * Constrain images and videos to the parent width and preserve
 * their instrinsic aspect ratio.
 *
 * https://github.com/mozdevs/cssremedy/issues/14
 */

img,
video {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

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

.inline {
  display: inline;
}

.table {
  display: table;
}

.hidden {
  display: none;
}

.resize {
  resize: both;
}

* {
  --tw-shadow: 0 0 #0000;
}

* {
  --tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
}

.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.visible {
  visibility: visible;
}

.transform {
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@-webkit-keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@-webkit-keyframes pulse {
  50% {
    opacity: .5;
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

@-webkit-keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    -webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
            animation-timing-function: cubic-bezier(0.8,0,1,1);
  }

  50% {
    transform: none;
    -webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
            animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    -webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
            animation-timing-function: cubic-bezier(0.8,0,1,1);
  }

  50% {
    transform: none;
    -webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
            animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --fg: #0a0a0a;
  --muted: #5c5c57;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.35);
  /* Lime is a FILL colour on light backgrounds; --accent-ink is the readable variant for strokes/text. */
  --accent: #c6ff3d;
  --accent-ink: #4f6f00;
  --on-accent: #0a0a0a;
  --danger: #c2261d;
  --blob-opacity: 0.55;
  --grain-opacity: 0.05;
  --cursor-blend: multiply;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 4rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f2f2ee;
  --muted: #a3a39c;
  --line: rgba(242, 242, 238, 0.12);
  --line-strong: rgba(242, 242, 238, 0.35);
  --accent-ink: #c6ff3d;
  --danger: #ff6b5e;
  --blob-opacity: 0.22;
  --grain-opacity: 0.07;
  --cursor-blend: screen;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

::-moz-selection {
  background: var(--accent);
  color: var(--on-accent);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.01em;
}

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.accent-ink {
  color: var(--accent-ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
}

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

/* Film grain — a fixed noise layer that never intercepts clicks. */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Motion primitives
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease) var(--d, 0ms), transform 0.6s var(--ease) var(--d, 0ms);
}

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

.split__mask {
  display: block;
  overflow: hidden;
  /* room for descenders and the italic overhang */
  padding: 0 0.12em 0.1em 0;
  margin-bottom: -0.1em;
}

.split__line {
  display: block;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease) var(--d, 0ms);
}

.split.is-in .split__line {
  transform: none;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.1em;
  vertical-align: text-bottom;
  background: var(--accent-ink);
}

.caret.is-blinking {
  -webkit-animation: blink 1.1s steps(1) infinite;
          animation: blink 1.1s steps(1) infinite;
}

@-webkit-keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@-webkit-keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@-webkit-keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@-webkit-keyframes drift {
  0% {
    transform: translate(-6%, -4%) scale(1);
  }

  100% {
    transform: translate(6%, 5%) scale(1.12);
  }
}

@keyframes drift {
  0% {
    transform: translate(-6%, -4%) scale(1);
  }

  100% {
    transform: translate(6%, 5%) scale(1.12);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.7);
  }

  100% {
    box-shadow: 0 0 0 10px rgba(198, 255, 61, 0);
  }
}

@-webkit-keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Cursor ring — trails the native cursor, lights up over clickable things. */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cursor.is-visible {
  opacity: 1;
}

.cursor__ring {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  mix-blend-mode: var(--cursor-blend);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.cursor__ring.is-hot {
  transform: scale(1.7);
  background: var(--accent);
  border-color: transparent;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav.is-open {
  background: var(--bg);
}

.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

[data-theme="light"] .nav__progress {
  background: linear-gradient(90deg, var(--accent), #9fdc00);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.nav__brand {
  font-weight: 700;
  font-size: 0.95rem;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.nav__link,
.nav__toggle,
.nav__menu-btn {
  position: relative;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.nav__hash {
  color: var(--muted);
  margin-right: 0.1em;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__toggle {
  color: var(--muted);
  transition: color 0.2s;
}

.nav__toggle:hover {
  color: var(--fg);
}

.nav__mobile-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Mobile overlay */

.overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.nav.is-open .overlay {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease);
}

.overlay__links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 3rem;
}

.overlay__link {
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease) var(--d), transform 0.5s var(--ease) var(--d);
}

.nav.is-open .overlay__link {
  opacity: 1;
  transform: none;
}

.overlay__idx {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__mobile-actions,
  .overlay {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  scroll-margin-top: 0;
}

.hero__blob-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__blob-anchor.is-static {
  left: 72%;
  top: 38%;
}

.hero__blob {
  --s: clamp(320px, 48vmax, 760px);
  position: absolute;
  width: var(--s);
  height: var(--s);
  left: calc(var(--s) * -0.5);
  top: calc(var(--s) * -0.5);
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 62%);
  opacity: var(--blob-opacity);
  -webkit-animation: drift 12s ease-in-out infinite alternate;
          animation: drift 12s ease-in-out infinite alternate;
  transition: opacity 0.6s var(--ease);
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: 1rem;
}

.hero__prompt {
  font-size: 0.95rem;
  margin-bottom: clamp(1.25rem, 3vh, 2.5rem);
}

.hero__tag {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.4em;
  margin-bottom: 1rem;
}

.hero__tag--close {
  text-align: right;
  margin: 1.25rem 0 0;
}

.hero__title {
  font-size: clamp(3rem, min(8vw, 13vh), 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.hero__title .serif {
  letter-spacing: -0.015em;
}

.hero__tagline {
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--muted);
  font-weight: 300;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.25rem, 3vh, 2.5rem);
  font-size: 0.85rem;
}

.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong);
  -webkit-animation: pulse 2s var(--ease) infinite;
          animation: pulse 2s var(--ease) infinite;
}

.clock__colon {
  -webkit-animation: blink 2s steps(1) infinite;
          animation: blink 2s steps(1) infinite;
}

/* Marker highlight on the name: a lime swipe behind the text (light), lime ink + underline (dark). */

.hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  padding: 0 0.04em;
}

.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.06em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease) 0.9s;
}

.split.is-in .hl::before {
  transform: scaleX(1);
}

[data-theme="dark"] .hl {
  color: var(--accent);
}

[data-theme="dark"] .hl::before {
  height: 0.06em;
  bottom: 0.02em;
}

.scroll-cue {
  position: relative;
  z-index: 1;
  align-self: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.5rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.scroll-cue:hover {
  color: var(--fg);
}

.scroll-cue__arrow {
  display: inline-block;
  -webkit-animation: bob 1.8s var(--ease) infinite;
          animation: bob 1.8s var(--ease) infinite;
}

/* ==========================================================================
   Skills marquee
   ========================================================================== */

.skills {
  position: relative;
  z-index: 1;
}

.skills__label {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.marquee {
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
}

.marquee__track {
  display: flex;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-animation: marquee var(--dur, 40s) linear infinite;
          animation: marquee var(--dur, 40s) linear infinite;
}

.marquee:hover .marquee__track {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.skill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0 0.9rem 1.75rem;
}

.skill__logo {
  height: 26px;
  width: auto;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

.skill:hover .skill__logo {
  filter: none;
  transform: scale(1.12) rotate(-4deg);
}

.skill__name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.skill__sep {
  margin-left: 1rem;
  font-size: 0.9rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding-top: clamp(5rem, 12vw, 9rem);
  scroll-margin-top: var(--nav-h);
}

.section-label {
  display: flex;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.section-label__hash {
  color: var(--accent-ink);
}

.section__title {
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Projects -------------------------------------------------------------- */

.projects {
  border-bottom: 1px solid var(--line);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.project::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.project:hover::before,
.project:focus-within::before {
  transform: scaleX(1);
}

.project__idx {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.55rem;
}

.project__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.project__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease);
}

.project:hover .project__title {
  transform: translateX(8px);
}

.project__desc {
  margin-top: 0.75rem;
  max-width: 62ch;
  color: var(--muted);
}

.project__side {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.project:hover .tag-pill {
  border-color: var(--fg);
}

.project__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s;
}

.project__link:hover {
  border-color: var(--accent-ink);
}

.project__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.project__link:hover .project__arrow,
.project:hover .project__arrow {
  transform: translate(3px, -3px);
}

.project__private {
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 4rem minmax(0, 1fr) 15rem;
    gap: 0 2.5rem;
    padding: 2.5rem 0;
  }

  .project__side {
    grid-column: 3;
    margin-top: 0.6rem;
    align-items: flex-end;
    text-align: right;
  }

  .project__tags {
    justify-content: flex-end;
  }
}

/* Contact --------------------------------------------------------------- */

.contact {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
  }
}

.contact__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.contact__email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.contact__email {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 40%;
  background-position: 0 88%;
  transition: background-size 0.45s var(--ease);
  word-break: break-all;
}

.contact__email:hover,
.contact__email:focus-visible {
  background-size: 100% 40%;
}

[data-theme="dark"] .contact__email:hover,
[data-theme="dark"] .contact__email:focus-visible {
  color: var(--on-accent);
  background-size: 100% 100%;
  background-position: 0 0;
}

.contact__copy {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.contact__copy:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.contact__phone {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact__phone:hover {
  color: var(--fg);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact__row {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .contact__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Underline fields with floating labels */

.field {
  position: relative;
  padding-top: 1.1rem;
}

.field__input {
  width: 100%;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  resize: vertical;
}

.field__input:focus-visible {
  outline: none;
}

.field__label {
  position: absolute;
  left: 0;
  top: 1.6rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.field__input:not(:-moz-placeholder-shown) + .field__label {
  transform: translateY(-1.55rem) scale(0.78);
  color: var(--fg);
}

.field__input:not(:-ms-input-placeholder) + .field__label {
  transform: translateY(-1.55rem) scale(0.78);
  color: var(--fg);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-1.55rem) scale(0.78);
  color: var(--fg);
}

.field__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.field--multi .field__line {
  bottom: 6px;
}

.field__input:focus ~ .field__line {
  transform: scaleX(1);
}

.field.is-invalid .field__line {
  background: var(--danger);
  transform: scaleX(1);
}

.field.is-invalid .field__label {
  color: var(--danger);
}

.btn {
  position: relative;
  overflow: hidden;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 11rem;
  height: 3.25rem;
  padding: 0 1.5rem;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 999px;
  font-size: 0.95rem;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}

.btn:hover:not(:disabled)::before,
.btn:focus-visible::before {
  transform: none;
}

.btn:hover:not(:disabled),
.btn:focus-visible {
  color: var(--on-accent);
  border-color: var(--on-accent);
}

.btn:disabled {
  cursor: progress;
}

.btn__label {
  flex: 1;
  display: flex;
  justify-content: center;
}

.btn__arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn__loader {
  width: 2rem;
  height: 2rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid;
  font-size: 0.9rem;
  -webkit-animation: rise 0.4s var(--ease);
          animation: rise 0.4s var(--ease);
}

.alert--ok {
  border-color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.alert--err {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.alert__close {
  font-size: 1.25rem;
  line-height: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Footer ---------------------------------------------------------------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(5rem, 12vw, 9rem);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.footer__top:hover {
  color: var(--accent-ink);
}

/* ==========================================================================
   Reduced motion: everything visible and still.
   ========================================================================== */

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

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

  .reveal,
  .split__line,
  .overlay__link {
    opacity: 1;
    transform: none;
  }

  .hl::before {
    transform: none;
  }

  .marquee__track {
    width: auto;
    -webkit-animation: none;
            animation: none;
  }

  .marquee__group {
    flex-wrap: wrap;
    flex-shrink: 1;
  }

  .marquee__group--clone {
    display: none;
  }
}

@media (min-width: 640px) {
}

@media (min-width: 768px) {
}

@media (min-width: 1024px) {
}

@media (min-width: 1280px) {
}

@media (min-width: 1536px) {
}

