:root {
  --paper: #f2efe8;
  --paper-deep: #e5e0d5;
  --ink: #171713;
  --ink-soft: #55554d;
  --acid: #dfff45;
  --blue: #536de8;
  --orange: #f3794e;
  --red: #dc594d;
  --line: rgba(23, 23, 19, 0.18);
  --display: "Syne", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --page: min(1440px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

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

button,
input,
textarea {
  font: inherit;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(223, 255, 69, 0.2);
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.4s ease;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--acid);
  z-index: 110;
  transform: scaleX(0);
  transform-origin: left;
}

.section-shell {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 90;
  width: min(1240px, calc(100vw - 36px));
  height: 74px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  background: rgba(242, 239, 232, 0.82);
  border: 1px solid rgba(23, 23, 19, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  transition:
    background 0.35s ease,
    padding 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(242, 239, 232, 0.94);
  box-shadow: 0 16px 36px rgba(23, 23, 19, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  width: 43px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.86rem;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}

.desktop-nav a:hover::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-cta svg {
  width: 16px;
  transition: transform 0.3s ease;
}

.header-cta:hover svg {
  transform: translate(2px, -2px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
}

.menu-button span {
  position: absolute;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.menu-button span:first-child {
  transform: translateY(-3px);
}

.menu-button span:last-child {
  transform: translateY(3px);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 120px 7vw 40px;
  background: var(--acid);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(23, 23, 19, 0.25);
  font-family: var(--display);
  font-size: clamp(2.7rem, 10vw, 5rem);
  font-weight: 600;
  line-height: 1;
}

.mobile-menu nav span {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
}

.mobile-menu-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #42a65a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(66, 166, 90, 0.12);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(66, 166, 90, 0);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 58px;
  padding: 0 25px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.button svg {
  width: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.text-link svg {
  width: 16px;
  transition: transform 0.3s ease;
}

.text-link:hover svg {
  transform: translate(2px, -2px);
}

.intro {
  padding: 150px 0 120px;
}

.intro-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: clamp(50px, 11vw, 180px);
  margin: 65px 0 100px;
  align-items: end;
}

.statement {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.statement span {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.intro-detail {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.metric-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card strong {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card > span:last-child {
  max-width: 190px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.metric-card-accent {
  background: var(--acid);
}

.metric-symbol {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
}

.metric-card-accent > span:last-child {
  color: var(--ink);
}

.marquee {
  overflow: hidden;
  padding: 23px 0;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1deg) scale(1.01);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.marquee-track i {
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
}

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

.work {
  padding: 170px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 80px;
  align-items: end;
  margin-bottom: 75px;
}

.section-heading h2,
.about-sticky h2,
.credentials-copy h2 {
  margin: 27px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-heading > p {
  margin: 0;
  color: var(--ink-soft);
}

.project-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.project-filters button {
  padding: 10px 17px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.project-filters button.is-active,
.project-filters button:hover {
  background: var(--ink);
  color: var(--paper);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 28px;
}

.project-card {
  min-width: 0;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.project-card.is-hidden {
  display: none;
}

.project-featured {
  grid-column: 1 / -1;
}

.project-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--ink);
  border-radius: 6px;
}

.project-featured .project-visual {
  aspect-ratio: 2 / 1;
}

.project-visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(23, 23, 19, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.3) 1px, transparent 1px);
  background-size: 38px 38px;
}

.project-visual-copy {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 55px);
  top: clamp(24px, 5vw, 65px);
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.project-visual-copy span,
.project-visual-metric span {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-visual-copy strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.project-visual-metric {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 55px);
  bottom: clamp(22px, 4vw, 48px);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.project-visual-metric strong {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 5.5rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.project-device {
  position: absolute;
  z-index: 2;
  right: 8%;
  top: 12%;
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 16px 18px 0 rgba(23, 23, 19, 0.16);
  transform: rotate(4deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.project-visual:hover .project-device {
  transform: rotate(0) translateY(-4px);
}

/* Mobile */
.device-mobile {
  width: 36%;
  height: 76%;
}

.device-mobile .device-bar,
.device-web .device-bar {
  display: flex;
  gap: 5px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.device-mobile .device-bar i {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  opacity: 0.5;
}

.device-mobile .device-content {
  display: grid;
  gap: 11px;
  padding-top: 18px;
}

.device-mobile .device-content > span {
  display: block;
  height: 9px;
  background: var(--paper-deep);
  border-radius: 999px;
}

.device-mobile .device-content > span:nth-child(1) {
  width: 65%;
  height: 22px;
  background: var(--ink);
}

.device-mobile .device-content > span:nth-child(3) {
  width: 78%;
}

.device-mobile .device-content > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.device-mobile .device-content > div i {
  aspect-ratio: 1;
  background: var(--acid);
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* Web */
.device-web {
  width: 48%;
  height: 48%;
  right: -2%;
  top: 32%;
  border-radius: 12px;
  padding: 14px;
}

.device-web .device-bar {
  padding-bottom: 10px;
}

.device-web .device-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 1;
}

.device-web .device-bar i:nth-child(1) { background: var(--red); }
.device-web .device-bar i:nth-child(2) { background: var(--orange); }
.device-web .device-bar i:nth-child(3) { background: var(--acid); }

.device-web .device-content {
  padding-top: 14px;
}

.device-web .device-content > span {
  display: block;
  width: 40%;
  height: 12px;
  background: var(--ink);
  border-radius: 999px;
}

.device-web .web-layout {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.device-web .web-layout span {
  height: 48px;
  background: var(--paper-deep);
  border-radius: 6px;
}

.device-web .web-layout span:first-child { flex: 1; }
.device-web .web-layout span:last-child { flex: 2.5; background: var(--acid); border: 1px solid var(--line); }

/* Backend */
.device-backend {
  width: 32%;
  height: 68%;
  right: 10%;
  top: 16%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.device-backend .server-unit {
  flex: 1;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 10px 12px 0 rgba(23, 23, 19, 0.16);
}

.device-backend .server-unit i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.3;
}

.device-backend .server-unit i:nth-child(2) {
  background: var(--acid);
  opacity: 1;
}

.device-backend .server-unit span {
  flex: 1;
  height: 6px;
  background: var(--paper-deep);
  border-radius: 999px;
  margin-left: auto;
  max-width: 40%;
}

.project-blue {
  background: var(--blue);
}

.project-orange {
  background: var(--orange);
}

.project-sand {
  background: #d5c6ad;
}

.project-ink {
  background: #212522;
  color: var(--paper);
}

.project-red {
  background: var(--red);
}

.project-lime {
  background: var(--acid);
}

.project-arrow {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  transform: rotate(0);
  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.project-arrow svg {
  width: 22px;
}

.project-visual:hover .project-arrow {
  background: var(--acid);
  transform: rotate(45deg);
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 0.65fr) auto;
  gap: 24px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.project-meta > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.project-number {
  font-family: var(--mono);
  font-size: 0.62rem;
}

.project-meta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.tag-list span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.code-window {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 70%;
  padding: 26px;
  background: #1e211f;
  color: #f2efe8;
  border-radius: 15px;
  box-shadow: 0 25px 55px rgba(23, 23, 19, 0.28);
  transform: translate(-50%, -50%) rotate(-3deg);
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.project-code:hover .code-window {
  transform: translate(-50%, -50%) rotate(0) scale(1.02);
}

.code-top {
  display: flex;
  gap: 7px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(242, 239, 232, 0.14);
}

.code-top i {
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
  opacity: 0.7;
}

.code-window pre {
  margin: 30px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1.5vw, 1rem);
  line-height: 1.7;
}

.code-window pre span {
  color: var(--acid);
}

.experience {
  padding: 160px 0;
  background: var(--ink);
  color: var(--paper);
}

.section-heading-light > p {
  color: rgba(242, 239, 232, 0.58);
}

.experience-list {
  border-top: 1px solid rgba(242, 239, 232, 0.3);
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.4fr 0.8fr 1.2fr 50px;
  gap: 40px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.2);
  transition: padding 0.35s ease;
}

.experience-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
}

.experience-item:hover {
  padding-inline: 25px;
  color: var(--ink);
}

.experience-item:hover::before {
  transform: scaleY(1);
}

.experience-item > * {
  position: relative;
  z-index: 1;
}

.experience-date,
.experience-role span {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.experience-role h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.2;
}

.experience-role span {
  color: rgba(242, 239, 232, 0.54);
}

.experience-item:hover .experience-role span {
  color: rgba(23, 23, 19, 0.6);
}

.experience-item p {
  max-width: 630px;
  margin: 0;
  color: rgba(242, 239, 232, 0.64);
  font-size: 0.88rem;
}

.experience-item:hover p {
  color: rgba(23, 23, 19, 0.75);
}

.experience-mark {
  justify-self: end;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.about {
  padding: 170px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 12vw, 180px);
}

.about-sticky {
  position: sticky;
  top: 130px;
  align-self: start;
}

.about-sticky h2 {
  font-size: clamp(3rem, 5vw, 6rem);
}

.about-sticky > p {
  max-width: 470px;
  margin: 35px 0;
  color: var(--ink-soft);
}

.principles {
  border-top: 1px solid var(--ink);
}

.principle-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 70px;
  gap: 24px;
  min-height: 230px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.principle-card > span {
  font-family: var(--mono);
  font-size: 0.65rem;
}

.principle-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.7vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.principle-card p {
  max-width: 480px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.principle-card > svg {
  width: 58px;
  opacity: 0.75;
  transition:
    transform 0.4s ease,
    color 0.4s ease;
}

.principle-card:hover > svg {
  color: #88a500;
  transform: rotate(-7deg) scale(1.08);
}

.toolkit {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 80px;
  margin-top: 140px;
  padding: 50px;
  background: var(--paper-deep);
  border-radius: 8px;
}

.toolkit-heading > span {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.toolkit-heading p {
  max-width: 300px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.tool-list span {
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.credentials {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(70px, 10vw, 150px);
  padding-bottom: 170px;
}

.credentials-copy h2 {
  font-size: clamp(3rem, 4.7vw, 5.6rem);
}

.credentials-copy p {
  margin: 28px 0 0;
  color: var(--ink-soft);
}

.certificate-list {
  border-top: 1px solid var(--ink);
}

.certificate-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 42px;
  gap: 20px;
  align-items: center;
  min-height: 94px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.3s ease,
    background 0.3s ease;
}

.certificate-item:hover {
  padding-inline: 18px;
  background: var(--acid);
}

.certificate-number,
.certificate-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.certificate-name {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
}

.certificate-meta {
  color: var(--ink-soft);
  text-align: right;
}

.certificate-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.certificate-arrow svg {
  width: 17px;
}

.certificate-item:hover .certificate-arrow {
  transform: rotate(45deg);
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--acid);
}

.contact-inner {
  position: relative;
  z-index: 2;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 50px;
}

.contact-kicker {
  margin: 80px 0 20px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(5rem, 13vw, 14rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.075em;
}

.contact-title > span {
  display: flex;
  align-items: center;
}

.contact-title svg {
  width: clamp(50px, 8vw, 120px);
  margin-left: 30px;
  transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.contact-title:hover svg {
  transform: translate(15px, -15px);
}

.contact-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(23, 23, 19, 0.35);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.social-row {
  display: flex;
  gap: 28px;
}

.back-to-top {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-to-top svg {
  width: 16px;
}

.contact-shape {
  position: absolute;
  border: 1px solid rgba(23, 23, 19, 0.18);
  border-radius: 50%;
}

.shape-one {
  width: 620px;
  height: 620px;
  right: -240px;
  top: -170px;
}

.shape-two {
  width: 220px;
  height: 220px;
  right: 25%;
  bottom: 12%;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.title-line.reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.metric-card:nth-child(2),
.principle-card:nth-child(2) {
  transition-delay: 0.08s;
}

.metric-card:nth-child(3),
.principle-card:nth-child(3) {
  transition-delay: 0.16s;
}

.metric-card:nth-child(4),
.principle-card:nth-child(4) {
  transition-delay: 0.24s;
}

@media (max-width: 1180px) {
  :root {
    --page: calc(100vw - 64px);
  }

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

  .tag-list {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .experience-item {
    grid-template-columns: 0.35fr 0.8fr 1.2fr 30px;
    gap: 25px;
  }
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 40px);
  }

  .site-header {
    height: 72px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .mobile-menu {
    display: flex;
  }

  .intro-statement,
  .section-heading,
  .about-grid,
  .credentials {
    grid-template-columns: 1fr;
  }

  .intro-statement {
    gap: 35px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    gap: 30px;
  }

  .project-grid {
    gap: 70px 20px;
  }

  .project-featured .project-visual {
    aspect-ratio: 4 / 3;
  }

  .experience-item {
    grid-template-columns: 0.4fr 1fr;
  }

  .experience-item p {
    grid-column: 2;
  }

  .experience-mark {
    display: none;
  }

  .about-sticky {
    position: static;
  }

  .toolkit {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px;
  }

  .credentials {
    gap: 50px;
  }

  .contact-footer {
    grid-template-columns: 1fr auto;
  }

  .social-row {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100vw - 28px);
  }

  .site-header.is-scrolled {
    width: calc(100vw - 20px);
    padding-inline: 14px;
  }

  .brand-copy {
    display: none;
  }

  .mobile-menu-footer {
    flex-direction: column;
    gap: 8px;
  }

  .eyebrow {
    max-width: 300px;
    line-height: 1.5;
  }

  .intro,
  .work,
  .about,
  .experience {
    padding: 105px 0;
  }

  .intro-statement {
    margin: 45px 0 70px;
  }

  .statement {
    font-size: 2.55rem;
  }

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

  .metric-card {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .section-heading h2,
  .about-sticky h2,
  .credentials-copy h2 {
    font-size: 3.2rem;
  }

  .project-filters {
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .project-filters button {
    flex: 0 0 auto;
  }

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

  .project-featured {
    grid-column: auto;
  }

  .project-visual,
  .project-featured .project-visual {
    aspect-ratio: 1 / 0.86;
  }

  .project-visual-copy {
    width: 54%;
  }

  .project-visual-copy strong {
    font-size: 1.65rem;
  }

  .project-device {
    right: 6%;
    top: 18%;
    width: 38%;
    height: 67%;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 9px 10px 0 rgba(23, 23, 19, 0.16);
  }

  .device-content {
    gap: 7px;
    padding-top: 12px;
  }

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

  .tag-list {
    grid-column: auto;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-item p {
    grid-column: auto;
  }

  .experience-item:hover {
    padding-inline: 15px;
  }

  .principle-card {
    grid-template-columns: 30px 1fr;
  }

  .principle-card > svg {
    display: none;
  }

  .toolkit {
    margin-top: 90px;
    padding: 25px;
  }

  .credentials {
    padding-bottom: 120px;
  }

  .certificate-item {
    grid-template-columns: 30px 1fr 36px;
    gap: 12px;
    min-height: 105px;
  }

  .certificate-meta {
    grid-column: 2;
    text-align: left;
  }

  .certificate-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .contact-inner {
    min-height: 760px;
    padding-top: 90px;
  }

  .contact-kicker {
    margin-top: 90px;
  }

  .contact-title {
    font-size: clamp(4.6rem, 22vw, 7rem);
  }

  .contact-title svg {
    margin-left: 15px;
  }

  .contact-footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .social-row {
    grid-column: auto;
    grid-row: auto;
    flex-wrap: wrap;
  }

  .back-to-top {
    justify-self: start;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
