:root {
  --bg: #0a0a0a;
  --ink: #f2f0ea;
  --dim: #c2bfb7;
  --line: rgba(242, 240, 234, 0.14);
  --orange: #f04e00;
  --blue: #4e00f0;
  --green: #00f04e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  text-transform: uppercase;
  line-height: 0.94;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
}
.eyebrow::before {
  content: "—";
  color: var(--orange);
}

/* underline-draw links, no boxed buttons */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding-bottom: 5px;
  color: var(--ink);
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link:hover::after {
  transform: scaleX(1);
}
.link.accent {
  color: var(--orange);
}
.link.alt {
  color: var(--green);
}
.link.dim {
  color: var(--dim);
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 30px;
  height: 30px;
  display: block;
}
.brand span {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.15s ease;
}
nav a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 4rem);
}
.hero-lines {
  margin-top: 1.5rem;
  display: block;
}
.line-mask {
  overflow: hidden;
}
.line-inner {
  display: block;
  opacity: 0;
  font-weight: 800;
}
.hero h1 .l1 {
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  color: var(--green);
}
.hero h1 .l2 {
  font-size: clamp(3.5rem, 14vw, 9rem);
  color: var(--blue);
  margin-left: clamp(0px, 4vw, 3rem);
}
.hero h1 .l3 {
  font-size: clamp(3rem, 11vw, 7rem);
  color: var(--orange);
}

/* narrow screens: keep the big display lines inside the column so the
   overflow:hidden reveal mask doesn't clip the last glyph (e.g. the "E" in MAKE) */
@media (max-width: 768px) {
  .hero h1 .l1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .hero h1 .l2 {
    font-size: clamp(3rem, 16vw, 5rem);
    margin-left: 0;
    letter-spacing: -0.02em;
  }
  .hero h1 .l3 {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    letter-spacing: -0.02em;
  }
}

.hero-foot {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--dim);
}
.hero-sub b {
  font-weight: 700;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ---------- intro reveal overlay ---------- */
/* hidden by default so no-JS / reduced-motion visitors just get the hero */
.reveal {
  display: none;
}
html.js .reveal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--bg);
  pointer-events: none;
  overflow: hidden;
}
/* ghost + word stack share one centered grid cell so they overlap; GSAP owns
   their transforms during the intro, so no CSS transform / drift here */
.reveal-ghost {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  height: 100dvh;
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}
.reveal-stage {
  max-width: 90dvw;
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  line-height: 0.82;
  perspective: 1000px;
  will-change: transform;
}
.reveal-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.5rem, 5vh, 3rem);
  margin-inline: auto;
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.reveal-cue-arrow {
  animation: reveal-bob 1.5s ease-in-out infinite;
}
@keyframes reveal-bob {
  0%,
  100% {
    transform: translateY(-3px);
    opacity: 0.4;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}
.rword {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.rword--we {
  font-size: clamp(3rem, 13vw, 10rem);
  color: var(--green);
}
.rword--make {
  font-size: clamp(4rem, 19vw, 14rem);
  color: var(--blue);
}
.rword--stuff {
  font-size: clamp(3.4rem, 15vw, 11rem);
  color: var(--orange);
}

.services-list article {
  position: relative;
  background: var(--bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.01);
  padding: 24px;
  z-index: 65;
}

/* narrow screens: the intro words tumble in at up to 21vw (plus a 1.3x
   scale during the animation), which overflows the viewport and clips the
   ends of "MAKE". Rein the sizes in and stop anything spilling past the edge. */
@media (max-width: 768px) {
  .reveal-ghost {
    height: auto;
    width: 100dvw;
  }

  .reveal-stage {
    max-width: 80dvw;
  }
  .rword--we {
    font-size: clamp(2.25rem, 11vw, 10rem);
  }
  .rword--make {
    font-size: clamp(3rem, 16vw, 14rem);
  }
  .rword--stuff {
    font-size: clamp(2.5rem, 12vw, 11rem);
  }
}

/* ---------- services list ---------- */
.services {
  border-bottom: 1px solid var(--line);
}
.services-head {
  padding-block: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem);
}
.services-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-top: 0.6rem;
  font-weight: 700;
  max-width: 32ch;
}
.services-list {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.row {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    padding-left 0.25s ease;
}
.services-list .row:last-child {
  border-bottom: 1px solid var(--line);
}
.row:hover {
  transform: translateX(clamp(6px, 1.5vw, 18px));
}
.row-top {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.row-swatch {
  width: 9px;
  height: 9px;
  background: var(--accent);
  flex: none;
}
.row-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--dim);
  font-size: 0.85rem;
}
.row-title {
  font-size: clamp(1.8rem, 5.5vw, 3.2rem);
  font-weight: 800;
  transition: color 0.2s ease;
}
.row:hover .row-title {
  color: var(--accent);
}
.row-tag {
  margin-left: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: nowrap;
}
.row-desc {
  margin: 0.6rem 0 0;
  max-width: 58ch;
  color: var(--dim);
  font-size: 0.98rem;
  padding-left: calc(9px + 1.1rem + 2.4rem);
}
@media (max-width: 640px) {
  .row-desc {
    padding-left: 0;
  }
}

/* each .row gets its --accent set inline by renderServices() in script.js,
   cycling through the palette so colors alternate no matter how many rows */

/* ---------- about ---------- */
.about {
  border-bottom: 1px solid var(--line);
}
.about .wrap {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.about-statement {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  max-width: 26ch;
  margin: 0;
}
.about-statement b {
  color: var(--orange);
  font-weight: 700;
}
.about p.about-note {
  margin-top: 1.75rem;
  max-width: 56ch;
  color: var(--dim);
  font-size: 1.02rem;
}

/* ---------- contact ---------- */
.contact .wrap {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: left;
}
.contact h2 {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 800;
}
.contact h2 .accent {
  color: var(--orange);
}
.contact .accent-alt {
  color: var(--blue);
}
.contact p {
  margin-top: 1.25rem;
  max-width: 44ch;
  color: var(--dim);
  font-size: 1.05rem;
}

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  text-transform: lowercase;
  text-decoration: none;
  color: var(--green);
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.4rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.contact-email:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
}
footer .wrap {
  padding-block: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}
footer small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--dim);
}
.footer-line {
  width: 100%;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--dim);
  opacity: 0.7;
  margin-top: 0.75rem;
}
