:root {
  --ink: #171816;
  --muted: #64665f;
  --paper: #f5f2ea;
  --white: #fffefa;
  --line: #d8d3c8;
  --green: #164c3b;
  --lime: #d8f57a;
  --orange: #ff6b35;
  --max: 1180px;
  --serif: 'Manrope', sans-serif;
  --sans: 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

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

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  top: 20px;
}

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: auto;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
  /* border-bottom: 1px solid var(--line); */
}

.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  min-width: 215px;
  /* Reserves layout width so nav links never shift during typing */
  white-space: nowrap;
}

.wordmark-text {
  color: #ffffff;
}

.wordmark-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background-color: var(--lime);
  margin-left: 2px;
  animation: wordmarkBlink 0.8s infinite;
  vertical-align: middle;
}

@keyframes wordmarkBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
}

nav a,
.footer-links a,
.text-link {
  position: relative;
}

nav a:after,
.footer-links a:after,
.text-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: 0.25s;
}

nav a:hover:after,
.footer-links a:hover:after,
.text-link:hover:after {
  width: 100%;
}

.header-cta {
  font-size: 14px;
  font-weight: 600;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 100px;
}

.section-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 26px;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.65fr;
  gap: 9vw;
  min-height: 670px;
  align-items: center;
  padding-top: 1px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33a06f;
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(51, 160, 111, 0.12);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(46px, 6vw, 84px);
  letter-spacing: -0.055em;
  max-width: 870px;
}

h2 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.045em;
}

.hero-lede {
  font-size: 20px;
  line-height: 1.6;
  max-width: 680px;
  color: var(--muted);
  margin: 30px 0 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-light {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.hero-proof {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}

.proof-kicker {
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 12px;
}

.metric {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.metric strong {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.metric span {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.intro-strip {
  background: var(--ink);
  color: #f9f6ee;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
}

.intro-strip i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
}

.work {
  padding-top: 130px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  margin-top: 4px;
}

.section-heading>p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 7px;
}

.project {
  background: var(--white);
  border: 1px solid var(--line);
}

.project-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 560px;
}

.project-visual {
  padding: 52px;
  background: var(--green);
  display: flex;
  align-items: center;
}

.browser-frame {
  width: 100%;
  background: #f7f7f2;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.27);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.browser-top {
  height: 38px;
  background: #e6e5df;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c6c5be;
}

.browser-top small {
  margin-left: 12px;
  color: #6e6e68;
}

.workflow {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background-image: radial-gradient(#d6d5ce 1px, transparent 1px);
  background-size: 18px 18px;
}

.workflow b {
  font-weight: 400;
  color: #8b8c85;
}

.node {
  font-size: 11px;
  background: white;
  padding: 13px 16px;
  border: 1px solid #d5d5cf;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

.node.trigger {
  border-left: 4px solid #f5a947;
}

.node.result {
  border-left: 4px solid #4aa47a;
}

.prompt-card {
  background: white;
  border-top: 1px solid #deddd6;
  padding: 18px 20px;
}

.prompt-card span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #73746e;
}

.prompt-card p {
  font-size: 12px;
  margin: 5px 0 12px;
}

.prompt-card strong {
  font-size: 10px;
  color: var(--green);
}

.project-copy {
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 28px;
}

.project-copy h3,
.project-card h3 {
  font-size: clamp(30px, 3.5vw, 46px);
  letter-spacing: -0.045em;
}

.project-copy>p,
.project-card-copy>p {
  color: var(--muted);
  font-size: 17px;
  margin: 20px 0;
}

.project-results {
  list-style: none;
  padding: 0;
  margin: 5px 0 28px;
  border-top: 1px solid var(--line);
}

.project-results li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.project-results strong {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.tags span {
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 100px;
}

.text-link {
  font-weight: 700;
  font-size: 14px;
  width: max-content;
}

.text-link span {
  color: var(--orange);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  overflow: hidden;
}

.project-card>img,
.filter-visual {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-card-copy {
  padding: 34px;
}

.project-card h3 {
  font-size: 32px;
}

.filter-visual {
  padding: 34px;
  background: #ece9df;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  background: var(--white);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.filter-head b {
  color: var(--muted);
}

.filter-body {
  height: 180px;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  background: var(--white);
}

.filters {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-right: 1px solid var(--line);
  gap: 11px;
  font-size: 11px;
}

.filters span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 15px;
}

.tiles i {
  display: block;
  background: linear-gradient(135deg, #d4dbd0, #f1e3cc);
  border-radius: 3px;
}

.experience {
  border-top: 1px solid var(--line);
}

.role {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 100px;
  padding: 46px 0;
  border-top: 1px solid var(--ink);
}

.role-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.role-summary h3 {
  font-size: 26px;
  margin: 13px 0 10px;
}

.role-summary>p:last-child {
  color: var(--muted);
}

.role ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.role li {
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: #3e403b;
}

.role li:before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--orange);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  background: var(--green);
  color: #f8f4e9;
  max-width: none;
  padding-left: max(26px, calc((100vw - var(--max))/2 + 26px));
  padding-right: max(26px, calc((100vw - var(--max))/2 + 26px));
}

.about .eyebrow {
  color: #bdd0c5;
}

.about-copy h2 {
  max-width: 620px;
}

.about-copy>p:not(.eyebrow) {
  font-size: 18px;
  color: #d1ded7;
  max-width: 560px;
  margin: 28px 0;
}

.about .button-dark {
  background: var(--lime);
  color: var(--ink);
}

.detail {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.detail h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.detail p {
  margin: 0;
  color: #d1ded7;
  font-size: 14px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 26px 36px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
}

.site-footer h2 {
  font-size: 42px;
  max-width: 700px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
}

.footer-note {
  grid-column: 1/-1;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 800px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .site-header nav {
    display: none;
  }

  .section-shell {
    padding: 80px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 68px;
  }

  .hero-proof {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
  }

  .hero-lede {
    font-size: 18px;
  }

  .intro-strip {
    overflow: hidden;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 18px;
    white-space: nowrap;
  }

  .section-heading,
  .project-featured,
  .role,
  .about,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading>p {
    font-size: 16px;
  }

  .project-visual {
    padding: 28px;
    min-height: 380px;
  }

  .workflow {
    height: 170px;
  }

  .project-copy {
    padding: 32px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card>img,
  .filter-visual {
    height: 230px;
  }

  .role {
    gap: 22px;
  }

  .about {
    gap: 54px;
    padding: 80px 18px;
  }

  .site-footer {
    padding: 70px 18px 30px;
    gap: 45px;
  }

  .site-footer h2 {
    font-size: 34px;
  }

  .footer-note {
    margin-top: 20px;
  }

  h1 {
    font-size: 48px;
  }

  .header-cta {
    padding: 8px 13px;
  }

  .metric strong {
    font-size: 27px;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    display: grid;
  }

  .button {
    justify-content: space-between;
  }

  .project-copy,
  .project-card-copy {
    padding: 26px;
  }

  .project-visual {
    padding: 20px;
    min-height: 320px;
  }

  .prompt-card {
    display: none;
  }

  .browser-frame {
    transform: none;
  }

  .project-card h3 {
    font-size: 28px;
  }

  .metric {
    align-items: center;
  }

  .work {
    padding-top: 90px;
  }
}

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

  .button {
    transition: none;
  }
}

/* Dark edition */
:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: #aaa79f;
  --paper: #0d0f10;
  --white: #151819;
  --line: #303435;
  --green: #172c27;
  --lime: #b9d982;
  --orange: #e79b67;
}

body {
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: rgba(185, 217, 130, 0.28);
  color: var(--ink);
}

.skip-link {
  background: var(--lime);
  color: #111411;
}

.site-header {
  border-color: var(--line);
  background: rgba(13, 15, 16, 0.9);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 20;
}

.text-link span {
  color: var(--orange);
}

nav a,
.footer-links a,
.text-link {
  color: var(--ink);
}

.header-cta,
.button-dark {
  background: var(--lime);
  color: #111411;
}

.header-cta:hover,
.button-dark:hover {
  background: #c9e794;
}

.header-cta:focus-visible,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.button-light {
  border-color: #414647;
  background: #171a1b;
  color: var(--ink);
}

.button-light:hover {
  border-color: #6d7370;
  background: #1d2122;
}

.status-dot {
  background: #73c795;
  box-shadow: 0 0 0 4px rgba(115, 199, 149, 0.12);
}

.hero-proof {
  border-color: var(--line);
}

.intro-strip {
  background: #181b1c;
  color: #e9e5dc;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip i {
  background: var(--lime);
}

.project {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.project-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #4d5351;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.project-visual {
  background: #18322b;
}

.browser-frame {
  background: #eff1eb;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52);
  color: #171a18;
}

.browser-top {
  background: #dfe2db;
}

.browser-top small {
  color: #5e635e;
}

.workflow {
  background-image: radial-gradient(#c7ccc4 1px, transparent 1px);
}

.node {
  background: #fbfcf8;
  border-color: #cbd0c8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
}

.prompt-card {
  background: #fbfcf8;
  border-color: #d3d7cf;
}

.prompt-card span {
  color: #686e68;
}

.prompt-card strong {
  color: #164c3b;
}

.tags span {
  background: #1b1f20;
  border-color: #3a3f40;
  color: #d6d3cb;
}

.filter-visual {
  background: #202425;
}

.filter-head,
.filter-body {
  background: #eceee8;
  color: #171a18;
}

.filter-head,
.filters,
.filters span {
  border-color: #cfd3cd;
}

.filter-head b,
.filters span {
  color: #656a65;
}

.tiles i {
  background: linear-gradient(135deg, #a9b9ae, #d8c8b2);
}

.role {
  border-color: #747874;
}

.role li {
  color: #cecbc3;
}

.role li:before {
  color: var(--orange);
}

.about {
  background: #142720;
  color: #f5f1e8;
  border-top: 1px solid #294239;
  border-bottom: 1px solid #294239;
}

.about .eyebrow {
  color: #9eb8ac;
}

.about-copy>p:not(.eyebrow),
.detail p {
  color: #c3cec8;
}

.about .button-dark {
  background: var(--lime);
  color: #111411;
}

.detail {
  border-color: rgba(255, 255, 255, 0.18);
}

.footer-note {
  border-color: var(--line);
}

@media (max-width: 800px) {
  .site-header {
    background: #0d0f10;
  }

  .hero-proof {
    border-color: var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }
}

/* Grouped project edition */
.portfolio-groups {
  display: grid;
  gap: 22px;
}

.project-group {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 38px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.group-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.group-header>p {
  margin: 0;
  color: var(--muted);
  max-width: 530px;
}

.group-header h3 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.group-number {
  font: 600 11px/1 var(--sans);
  color: var(--orange);
  letter-spacing: 0.12em;
}

.group-kicker {
  margin: 14px 0 7px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  font-weight: 700;
}

.shopify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-project {
  background: #111415;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-project>img,
.mini-project>.filter-visual {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.mini-project-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-label {
  margin: 0 0 8px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  font-weight: 700;
}

.mini-project h4 {
  font: 700 23px/1.15 var(--serif);
  letter-spacing: -0.035em;
  margin: 0;
}

.mini-project-copy>p:not(.project-label) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 15px 0 20px;
}

.mini-project .tags {
  margin-top: auto;
}

.filter-visual.compact {
  padding: 18px;
  background: #202425;
}

.compact .filter-body {
  height: 135px;
}

.compact .filters {
  padding: 10px;
  gap: 7px;
}

.compact .tiles {
  padding: 10px;
}

.secondary-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.secondary-groups .project-group {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.compact-header {
  display: block;
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.compact-header h3 {
  font-size: 30px;
}

.group-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 22px 0;
}

.workflow-panel {
  min-height: 165px;
  background: #0d1210;
  background-image: radial-gradient(#27312d 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  color: #828982;
}

.flow-node {
  padding: 10px 9px;
  background: #181d1b;
  border: 1px solid #3a423e;
  font-size: 10px;
  color: #d4d7d2;
}

.flow-node.active {
  border-color: var(--lime);
  color: var(--lime);
}

.adoption-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  margin: 0 0 22px;
}

.adoption-grid div {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
}

.adoption-grid div:last-child {
  border-right: 0;
}

.adoption-grid strong,
.adoption-grid span {
  display: block;
}

.adoption-grid strong {
  font: 700 20px/1 var(--serif);
  color: var(--lime);
}

.adoption-grid span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.group-image {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.scope-note {
  font-size: 12px;
  line-height: 1.55;
  color: #aaa79f;
  background: #111415;
  border-left: 2px solid var(--orange);
  padding: 12px;
  margin: 0 0 20px;
}

.terminal-panel {
  background: #090c0c;
  border: 1px solid #313736;
  padding: 17px;
  font: 500 10px/1.45 monospace;
  color: #d3d9d5;
}

.terminal-panel span {
  color: var(--lime);
}

.terminal-panel p {
  margin: 2px 0 9px;
  color: #8e9791;
}

.terminal-panel strong {
  color: var(--orange);
  font-weight: 500;
}

.automation-points {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  color: #cbc8c0;
  font-size: 12px;
}

.automation-points li {
  position: relative;
  padding: 9px 0 9px 17px;
  border-top: 1px solid var(--line);
}

.automation-points li:before {
  content: '↳';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.secondary-groups .tags {
  margin-top: auto;
}

.secondary-groups .text-link {
  margin-top: 0;
}

@media (max-width: 980px) {
  .shopify-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shopify-grid .mini-project:last-child {
    grid-column: 1/-1;
  }

  .secondary-groups {
    grid-template-columns: 1fr 1fr;
  }

  .automation-group {
    grid-column: 1/-1;
  }
}

@media (max-width: 680px) {
  .project-group {
    padding: 24px;
  }

  .group-header {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .shopify-grid,
  .secondary-groups {
    grid-template-columns: 1fr;
  }

  .shopify-grid .mini-project:last-child,
  .automation-group {
    grid-column: auto;
  }

  .mini-project>img,
  .mini-project>.filter-visual {
    height: 220px;
  }

  .secondary-groups .project-group {
    padding: 24px;
  }

  .adoption-grid strong {
    font-size: 18px;
  }

  .workflow-panel {
    min-height: 145px;
  }

  .flow-node {
    font-size: 9px;
    padding: 8px 7px;
  }

  .group-image {
    height: 190px;
  }
}

/* Hero anchor navigation + social icon links */
[id] {
  scroll-margin-top: 24px;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.hero-nav a {
  color: var(--muted);
  position: relative;
  padding: 2px 0;
}

.hero-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s;
}

.hero-nav a:hover {
  color: var(--ink);
}

.hero-nav a:hover:after {
  width: 100%;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.hero-top-bar .eyebrow {
  margin: 0;
}

.hero-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #3a3f40;
  background: #151819;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.hero-social a:hover {
  transform: translateY(-2px);
  border-color: #6d7370;
  background: #1d2122;
  color: var(--lime);
}

.hero-social svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 800px) {
  .hero-nav {
    margin-top: 38px;
    gap: 8px 24px;
  }

  .hero-social {
    margin-top: 0;
  }

  .hero-top-bar {
    margin-bottom: 20px;
  }
}

@media (max-width: 430px) {
  .hero-nav {
    gap: 6px 20px;
    font-size: 12px;
  }

  .hero-social a {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-nav a:after {
    transition: none;
  }

  .hero-social a {
    transition: none;
  }

  .hero-social a:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════
   WOW ANIMATIONS & EFFECTS
   ═══════════════════════════════════════════════ */

/* ── Scroll progress bar ── */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  z-index: 60;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ── Sticky header state ── */
.site-header.scrolled {
  background: rgba(13, 15, 16, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.35);
}

/* ── Particle canvas ── */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-copy,
.hero-proof {
  position: relative;
  z-index: 1;
}

/* ── Scroll reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Gradient text shimmer ── */
.gradient-text {
  background: linear-gradient(
    120deg,
    var(--ink) 0%,
    var(--ink) 35%,
    var(--lime) 50%,
    var(--orange) 60%,
    var(--ink) 75%,
    var(--ink) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── Status dot pulse ── */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(115, 199, 149, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(115, 199, 149, 0.25), 0 0 16px rgba(115, 199, 149, 0.15); }
}

.status-dot {
  animation: dotPulse 2.5s ease-in-out infinite;
}

/* ── Infinite marquee ── */
.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  flex-shrink: 0;
  padding: 0 16px;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

/* ── Button micro-animations ── */
.btn-arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover .btn-arrow {
  transform: translate(3px, 3px);
}

.button-dark {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
}

.button-dark:hover {
  box-shadow: 0 0 24px rgba(185, 217, 130, 0.25), 0 0 60px rgba(185, 217, 130, 0.1);
}

.button-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.button-dark:hover::after {
  opacity: 1;
  animation: btnShine 0.6s ease forwards;
}

@keyframes btnShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Project card glow border on hover ── */
.mini-project {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s,
              box-shadow 0.35s;
}

.mini-project:hover {
  border-color: rgba(185, 217, 130, 0.35);
  box-shadow: 0 0 30px rgba(185, 217, 130, 0.08),
              0 20px 60px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(185, 217, 130, 0.1);
}

/* ── 3D tilt card styles ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s;
}

.tilt-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(185, 217, 130, 0.06);
}

.tilt-card .mini-project-copy,
.tilt-card .group-header,
.tilt-card .group-description,
.tilt-card .tags {
  transform: translateZ(20px);
}

/* ── Tag pill hover ── */
.tags span {
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}

.tags span:hover {
  transform: translateY(-2px) scale(1.05);
  background: #232829;
  border-color: rgba(185, 217, 130, 0.3);
  color: var(--lime);
}

/* ── Text link arrow animation ── */
.text-link span {
  display: inline-block;
  transition: transform 0.25s;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* ── Metric counter animated ── */
.metric strong,
.adoption-grid strong {
  transition: color 0.3s;
}

/* ── Section divider line draw ── */
.experience .section-heading,
.work .section-heading {
  position: relative;
}

/* ── Workflow panel animation ── */
.flow-node {
  transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.flow-node:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  color: var(--lime);
}

/* ── Terminal panel typing effect ── */
.terminal-panel span {
  animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
  0% { text-shadow: 0 0 4px rgba(185, 217, 130, 0.3); }
  100% { text-shadow: 0 0 12px rgba(185, 217, 130, 0.6); }
}

/* ── Footer link hover ── */
.footer-links a {
  transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
  color: var(--lime);
  transform: translateX(4px);
}

/* ── Detail stack animation ── */
.detail {
  transition: border-color 0.3s, transform 0.3s;
}

.detail:hover {
  border-color: rgba(185, 217, 130, 0.35);
  transform: translateX(6px);
}

/* ── Group image hover ── */
.group-image {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s;
}

.group-image:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* ── Proof kicker underline draw ── */
.proof-kicker {
  position: relative;
  display: inline-block;
}

.proof-kicker::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-proof.revealed .proof-kicker::after {
  width: 100%;
}

/* ── Metric line reveal ── */
.metric {
  transition: opacity 0.4s, transform 0.4s;
}

/* ── Intro strip dark theme override ── */
.intro-strip {
  position: relative;
}

/* ── Reduced motion overrides ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gradient-text {
    animation: none;
    -webkit-text-fill-color: var(--ink);
  }

  .marquee-content {
    animation: none;
  }

  .status-dot {
    animation: none;
  }

  .tilt-card {
    transform: none !important;
  }

  .btn-arrow {
    transition: none;
  }

  .terminal-panel span {
    animation: none;
  }
}

/* ── Mobile overrides for animations ── */
@media (max-width: 800px) {
  .hero-particles {
    opacity: 0.3;
  }

  .reveal {
    transform: translateY(25px);
  }

  .marquee-content {
    animation-duration: 18s;
  }

  .site-header {
    position: sticky;
    top: 0;
  }
}