/* =========================================================
   DC Web styles
   Charcoal + gold + DM Sans, laid out editorially: big statement
   headlines, open space and thin-line lists instead of boxes.
   Mobile-first: base styles are for phones, media queries
   add tablet (48em / 768px) and desktop (64em / 1024px).
   ========================================================= */

/* ===== Design tokens: change colors & fonts here ===== */
:root {
  /* Colors */
  --color-bg: #1C1C1F;           /* page background (charcoal) */
  --color-panel: #26262A;        /* panels */
  --color-line: rgba(255, 255, 255, 0.1);   /* thin divider lines */
  --color-text: #F2F2F2;         /* main text */
  --color-muted: #9A9AA2;        /* secondary text (AA on charcoal) */
  --color-gold: #D9AE5F;         /* accent */
  --color-gold-dark: #C29848;    /* hover gold */

  /* Font */
  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 1.25rem;
  --edge: clamp(1.25rem, 4vw, 3rem);   /* side padding for header + hero */
  --header-height: 4.75rem;
  --section-space: clamp(5.5rem, 11vw, 9rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition: 200ms ease;
}

/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-height); /* anchors don't hide under the sticky header */
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  font-weight: 500;
  line-height: 1.1;
}

p { margin: 0 0 1rem; }

a { color: inherit; }

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

button { font: inherit; }

::selection {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-gold);
  color: var(--color-bg);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Tiny spaced uppercase text (corner labels, captions) */
.micro {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Section label: gold number in brackets + name, e.g. "(01) WHY A WEBSITE" */
.label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
}
.label-num { color: var(--color-gold); }

/* Big statement headline */
.statement {
  max-width: 16em;
  margin: 0;
  font-size: clamp(2.25rem, 5.6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

/* Muted side paragraph next to a statement */
.intro-side {
  max-width: 26rem;
  color: var(--color-muted);
}
.intro-side .line-link {
  margin-top: 1.5rem;
  color: var(--color-text);
}

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--color-gold);
  color: var(--color-bg);
}
.btn-gold:hover { background: var(--color-gold-dark); }

/* Underlined link with an arrow ("Meet Azul ↗" in the reference) */
.line-link {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.line-link span { transition: transform var(--transition); }
.line-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.line-link:hover span { transform: translateX(4px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(28, 28, 31, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-height);
  padding-inline: var(--edge);
}

/* Placeholder text logo */
.logo {
  white-space: nowrap;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.primary-nav { display: none; }
.header-contact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  background: var(--color-gold);
  color: var(--color-bg);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(217, 174, 95, 0.55);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
/* Soft gold ring that pulses outward every few seconds */
.header-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(217, 174, 95, 0.55);
  animation: cta-pulse 3.2s ease-out 2s infinite;
  pointer-events: none;
}
.header-contact:hover {
  background: #E6BE73;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(217, 174, 95, 0.7);
}
/* Already on the contact page: no pulse */
.header-contact[aria-current="page"]::after { animation: none; }
.header-contact + .menu-button { margin-left: 0; }
/* Very small phones: slimmer button so the header fits on one line */
@media (max-width: 23.5em) {
  .header-contact { padding-inline: 0.85rem; }
}

/* Menu button (phones and tablets) */
.menu-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--color-text);
  cursor: pointer;
}
.menu-lines {
  display: grid;
  justify-items: end;
  gap: 5px;
  width: 1.4rem;
}
.menu-lines i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.menu-lines i:nth-child(1) { width: 100%; }
.menu-lines i:nth-child(2) { width: 70%; }
.menu-lines i:nth-child(3) { width: 45%; }
.menu-button[aria-expanded="true"] .menu-lines i { width: 100%; }
.menu-button[aria-expanded="true"] .menu-lines i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-lines i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen menu */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-content: center;
  gap: 2.5rem;
  padding: 6rem var(--edge) 3rem;
  background: rgba(22, 22, 24, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: fade-in 250ms ease both;
}
.site-menu[hidden] { display: none; }
.site-menu-list {
  display: grid;
  gap: 0.5rem;
}
.site-menu-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: color var(--transition);
}
.site-menu-list span {
  font-size: 0.8125rem;
  color: var(--color-gold);
}
.site-menu-list a:hover { color: var(--color-gold); }
.site-menu-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  min-height: min(100svh, 62rem);
  padding: calc(var(--header-height) + 2.5rem) var(--edge) 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, #2C2C31 0%, rgba(44, 44, 49, 0) 70%),
    var(--color-bg);
}


.hero-head {
  text-align: center;
}
.hero-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero-sub {
  margin: 0;
  animation: fade-in 1.4s ease 0.9s both;
  font-size: 0.95rem;
  color: #C4C4CA;
}

/* --- The infinity --- */
.infinity {
  align-self: center;
  justify-self: center;
  width: min(100%, 1000px);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
}
.infinity svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}
.infinity path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Faint gold glow just around the loop */
.loop-shadow {
  stroke: rgba(217, 174, 95, 0.1);
  stroke-width: 86;
  filter: blur(14px);
  animation: fade-in 1.2s ease 1.6s both;   /* glow appears as the loop finishes drawing */
}
/* The thick off-white loop, drawn on when the page loads */
.loop-base {
  stroke: url(#loop-fill);
  stroke-width: 62;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-loop 2.4s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}
/* Glowing gold lines racing around inside it */
.loop-streak {
  stroke: var(--color-gold);
  stroke-width: 14;
  stroke-dasharray: 160 840;
  opacity: 0;
  animation:
    fade-in 0.6s ease 2.4s forwards,
    race 6s linear 2.4s infinite;
}
.loop-streak-2 {
  stroke: #F3D79F;
  stroke-width: 8;
  stroke-dasharray: 70 930;
  animation-delay: 2.4s, -0.6s;
}
/* "Pause animation" freezes everything in the hero */
.hero.is-paused .infinity path { animation-play-state: paused; }

/* ===== Sections ===== */
.section {
  position: relative;
  padding-block: var(--section-space);
}
/* Thin line between sections: fades out at both ends, with a small gold mark in the middle */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 15%, rgba(255, 255, 255, 0.14) 85%, transparent);
  transform: translateX(-50%);
}
.section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 2.5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--color-gold);
  transform: translateX(-50%);
}

.section-intro {
  display: grid;
  gap: 1.5rem;
}

/* ===== Subpages (contact.html) ===== */
/* First section sits below the fixed header and skips the divider line */
.page-top {
  padding-top: calc(var(--header-height) + clamp(3rem, 8vw, 6rem));
}
.page-top::before,
.page-top::after { display: none; }

.about-cta { margin: 4rem 0 0; }

/* ===== Work: alternating showcase ===== */
.projects { margin-top: 3.5rem; }
.project {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: 3.5rem;
  border-top: 1px solid var(--color-line);
}
/* Each project's brand colours (kept here, not inline, for the CSP) */
.project-bayside { --brand: #2F6FB5; --brand-dark: #0F2238; }
.project-greenline { --brand: #4E8B4A; --brand-dark: #16261A; }
.project-fade-house { --brand: #D9AE5F; --brand-dark: #0E0E0E; }
/* Huge outlined number */
.project-num {
  margin-bottom: 0.5rem;
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  transition: -webkit-text-stroke-color 400ms ease;
}
.project:hover .project-num { -webkit-text-stroke-color: var(--color-gold); }
.project-title {
  margin: 0.75rem 0;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  letter-spacing: -0.03em;
}
.project-desc {
  max-width: 28rem;
  color: var(--color-muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tags li {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  font-size: 0.75rem;
  color: #C4C4CA;
}

/* Browser window holding a mini version of the site */
.browser {
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--brand-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 700ms var(--ease-out), box-shadow 700ms ease;
}
.project:hover .browser {
  transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-6px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--brand);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: #2A2A2E;
}
.browser-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4A4A50;
}
.browser-bar i:first-child { background: var(--color-gold); }
.browser-bar span {
  margin-left: 0.75rem;
  padding: 0.15rem 0.8rem;
  border-radius: 99px;
  background: #1F1F23;
  font-size: 0.6875rem;
  color: var(--color-muted);
}

/* Real screenshot inside the browser frame */
.browser-shot {
  width: 100%;
  height: auto;
}

/* Click-to-expand screenshots */
.browser { position: relative; }
.zoom-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  background: none;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
}
/* Small hint chip that appears on hover */
.zoom-hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  background: rgba(20, 20, 22, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--color-text);
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms var(--ease-out);
}
.zoom-hit:hover .zoom-hint,
.zoom-hit:focus-visible .zoom-hint {
  opacity: 1;
  transform: none;
}

/* Expanded view */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 12, 14, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox .browser {
  width: min(100%, 1200px, calc((100vh - 6rem) * 1.82));
  transform: none;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
  will-change: transform;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(28, 28, 31, 0.8);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lightbox-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* The mini site: everything scales with its width */
.mock {
  container-type: inline-size;
  display: grid;
  gap: 3cqw;
  aspect-ratio: 16 / 10;
  padding: 3.5cqw 4cqw;
  color: #FFFFFF;
}
.mock-nav {
  display: flex;
  align-items: center;
  gap: 2cqw;
}
.mock-nav b { font-size: 2.6cqw; letter-spacing: -0.02em; }
.mock-nav span {
  width: 6cqw;
  height: 0.7cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.3);
}
.mock-nav span:first-of-type { margin-left: auto; }
.mock-hero {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2.5cqw;
  padding: 4.5cqw;
  border-radius: 1.5cqw;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.mock-title {
  margin: 0;
  font-size: 4.6cqw;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.mock-btn {
  padding: 1cqw 2.6cqw;
  border-radius: 99px;
  background: #FFFFFF;
  color: var(--brand-dark);
  font-size: 1.7cqw;
  font-weight: 700;
}
.mock-cards,
.mock-gallery {
  display: grid;
  gap: 2cqw;
}
.mock-cards { grid-template-columns: repeat(3, 1fr); }
.mock-cards span {
  height: 9cqw;
  border-radius: 1cqw;
  border-top: 0.6cqw solid var(--brand);
  background: rgba(255, 255, 255, 0.08);
}
.mock-gallery { grid-template-columns: repeat(4, 1fr); }
.mock-gallery span {
  height: 10cqw;
  border-radius: 1cqw;
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
}
.mock-gallery span:nth-child(even) { opacity: 0.6; }
.mock-prices { display: grid; gap: 1.6cqw; }
.mock-prices span {
  display: flex;
  justify-content: space-between;
  height: 2.6cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.mock-prices span::before,
.mock-prices span::after {
  content: "";
  height: 1cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.35);
}
.mock-prices span::before { width: 22cqw; }
.mock-prices span::after { width: 6cqw; background: var(--brand); }

/* ===== Pricing ===== */
/* Faint star field behind the pricing section */
.pricing {
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 45% 80%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 10% 75%, rgba(255, 255, 255, 0.25), transparent),
    var(--color-bg);
  background-size: 210px 210px, 290px 290px, 170px 170px, 330px 330px, 250px 250px, auto;
}
.pricing-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  padding-bottom: 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}
.pricing-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.pricing-title {
  margin-bottom: 0.75rem;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.pricing-sub {
  margin: 0;
  font-size: 1.0625rem;
  color: #B9B9C0;
}

.plans {
  display: grid;
  gap: 1.5rem;
  max-width: 62rem;
  margin-inline: auto;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 300ms ease, transform 300ms ease;
}
.plan:hover { border-color: rgba(255, 255, 255, 0.18); }
.plan-featured {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
/* "Most popular" pill sitting on the top edge */
.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  background: #2A2A2E;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.plan-badge span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-gold);
}
.plan-name {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin-bottom: 0.5rem;
}
.plan-amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-price s {
  font-size: 1.125rem;
  color: var(--color-muted);
}
.plan-price small {
  font-size: 0.875rem;
  color: var(--color-muted);
}
.plan-for {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}
.plan-list {
  flex-grow: 1;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.plan-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: #D6D6DA;
}
/* Thin checkmark */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 1.5px solid #8E8E96;
  border-bottom: 1.5px solid #8E8E96;
  transform: rotate(-45deg);
}
.plan-btn {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.plan-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}
.plan-btn-light {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}
.plan-btn-light:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg);
}
.plans-note {
  margin: 2.5rem 0 0;
  font-size: 0.875rem;
  text-align: center;
  color: var(--color-muted);
}

/* ===== Process ===== */
.steps {
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}
.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}
.step-num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-gold);
}
.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* ===== About ===== */
.about {
  display: grid;
  gap: 3rem;
}
.about-side img {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  margin-bottom: 2rem;
}
.about-side > p { color: var(--color-muted); }
/* Quiet LinkedIn link tucked under the photo */
.about-linkedin {
  display: block;
  width: fit-content;
  margin: -1.4rem 0 2rem;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.about-linkedin:hover { color: var(--color-gold); }
.fact-list {
  margin-top: 2rem;
  border-top: 1px solid var(--color-line);
}
.fact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9375rem;
}
.fact-list li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--color-gold);
}

/* ===== Contact ===== */
.contact {
  display: grid;
  gap: 3rem;
}
.contact .statement { margin-bottom: 1.5rem; }

.contact-form {
  display: grid;
  gap: 1.75rem;
}
.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.field label span { color: var(--color-gold); }
/* Underline-only fields */
.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0;
  background: transparent;
  color: var(--color-text);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color var(--transition);
}
.field input:hover,
.field textarea:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
  box-shadow: 0 1px 0 var(--color-gold);
}
.field textarea { resize: vertical; }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.form-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.form-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.9375rem;
}

/* Honeypot field: hidden from people */
.hp {
  position: absolute;
  left: -9999px;
}

/* ===== Footer ===== */
.site-footer {
  overflow: hidden;
  padding-top: 3rem;
  border-top: 1px solid var(--color-line);
}
.footer-top {
  display: grid;
  gap: 1.5rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}
.footer-nav a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--color-muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-gold); }
.copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
/* Giant fading wordmark along the bottom */
.footer-wordmark {
  margin: 2.5rem 0 -0.12em;
  font-size: clamp(4.5rem, 21vw, 18rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Scroll animations (minimalist) =====
   Nothing slides around: things come into focus, lines draw and
   images are wiped in. Everything only hides once JS has loaded
   (html.js), so the page still works with JavaScript off.
   script.js adds .is-visible to .reveal items and .in-view to
   sections as they scroll into view. */
:root { --ease-draw: cubic-bezier(0.65, 0, 0.35, 1); }

/* Default: fade in from soft focus (stagger delay comes from script.js) */
.js .reveal {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 1.1s ease var(--reveal-delay, 0s),
    filter 1.1s ease var(--reveal-delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  filter: none;
}

/* Headlines: each word comes into focus, one after another */
.js .statement.reveal { opacity: 1; filter: none; }
.js .split-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.55s ease calc(var(--i) * 30ms),
    filter 0.55s ease calc(var(--i) * 30ms);
}
.js .is-visible .split-word,
.js .hero.is-loaded .split-word {
  opacity: 1;
  filter: none;
}
.js .hero .split-word { transition-delay: calc(100ms + var(--i) * 40ms); }

/* Section divider: the line draws out from the center, then the gold dash appears */
.js .section::before {
  transform: translateX(-50%) scaleX(0);
  transition: transform 1.6s var(--ease-draw);
}
.js .section.in-view::before { transform: translateX(-50%) scaleX(1); }
.js .section::after {
  width: 0;
  opacity: 0;
  transition: width 700ms var(--ease-draw) 900ms, opacity 300ms ease 900ms;
}
.js .section.in-view::after {
  width: 2.5rem;
  opacity: 1;
}

/* Labels: fade in while the letter spacing tightens into place */
.js .label {
  opacity: 0;
  letter-spacing: 0.55em;
  transition: opacity 1s ease 300ms, letter-spacing 1.4s var(--ease-out) 300ms;
}
.js .in-view .label {
  opacity: 1;
  letter-spacing: 0.18em;
}

/* Process steps: the top line draws in as the step fades in */
.js .step {
  border-top-color: transparent;
  background: linear-gradient(var(--color-line), var(--color-line)) left top / 0 1px no-repeat;
  transition:
    opacity 1.1s ease var(--reveal-delay, 0s),
    filter 1.1s ease var(--reveal-delay, 0s),
    background-size 1.2s var(--ease-draw) var(--reveal-delay, 0s);
}
.js .step.is-visible { background-size: 100% 1px; }

/* Projects: the browser window is wiped in left to right, then the text fades in */
.js .project.reveal { opacity: 1; filter: none; }
.js .project .browser {
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 1.3s cubic-bezier(0.77, 0, 0.18, 1) 150ms,
    transform 700ms var(--ease-out),
    box-shadow 700ms ease;
}
.js .project.is-visible .browser { clip-path: inset(-120px); }   /* larger than the box so its shadow shows */
.js .project .project-info {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 1.1s ease 600ms, filter 1.1s ease 600ms;
}
.js .project.is-visible .project-info {
  opacity: 1;
  filter: none;
}

/* About photo: revealed from the bottom up, like a curtain */
.js .about-side img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(0.77, 0, 0.18, 1);
}
.js .about-side.is-visible img { clip-path: inset(0); }

/* ===== Keyframes ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 174, 95, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(217, 174, 95, 0); }
  100% { box-shadow: 0 0 0 12px rgba(217, 174, 95, 0); }
}
@keyframes draw-loop {
  to { stroke-dashoffset: 0; }
}
@keyframes race {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

/* ===== Respect users who prefer less motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
  .js .reveal,
  .js .split-word,
  .js .label,
  .js .project .project-info {
    opacity: 1;
    filter: none;
  }
  /* Infinity shows fully drawn, with one still gold streak */
  .loop-base { stroke-dashoffset: 0; }
  .loop-streak { opacity: 1; stroke-dashoffset: 300; }
  .loop-streak-2 { display: none; }
  .browser,
  .project:hover .browser { transform: none; }
  .btn:hover { transform: none; }
}

/* ===== Tablet (48em / 768px) ===== */
@media (min-width: 48em) {
  :root { --gutter: 2rem; }


  .section-intro {
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
  }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }

  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ===== Desktop (64em / 1024px) ===== */
@media (min-width: 64em) {
  /* Header: logo + links left, contact right */
  .menu-button { display: none; }
  .primary-nav { display: block; }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
  }
  .nav-list a:hover { color: var(--color-gold); }
  /* Current section gets a small gold dot */
  .nav-list a[aria-current="true"]::before,
  .nav-list a[aria-current="page"]::before {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--color-gold);
  }
  .header-inner { gap: 2rem; }
  .header-contact {
    padding: 0.65rem 1.35rem;
    font-size: 0.875rem;
  }

  /* Work: text and browser side by side, alternating */
  .project {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    padding-block: 5rem;
  }
  .project:nth-child(even) .project-info { order: 2; }
  .project:nth-child(even) .browser { transform: perspective(1400px) rotateY(7deg) rotateX(3deg); }
  .project:nth-child(even):hover .browser { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-6px); }

  .steps { grid-template-columns: repeat(4, 1fr); }

  /* Pricing: three cards, the middle one raised */
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 1.25rem;
  }
  .plan-featured { transform: translateY(-0.5rem); }

  .about {
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
  }
  .contact {
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
  }
}
