:root {
  --bg: #10110f;
  --surface: #181a17;
  --surface-2: #20221e;
  --text: #f2f1ea;
  --muted: #a5a79f;
  --line: rgba(242, 241, 234, 0.17);
  --accent: #d9ff43;
  --accent-ink: #10110f;
  --orange: #ff6b35;
  --header-bg: rgba(16, 17, 15, 0.82);
  --font-display: "Manrope", Arial, sans-serif;
  --font-mono: "DM Mono", Consolas, monospace;
  --page-pad: clamp(1.25rem, 4vw, 4.5rem);
  --radius: 0.4rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #efeee8;
  --surface: #e4e2da;
  --surface-2: #d8d6cc;
  --text: #171815;
  --muted: #666860;
  --line: rgba(23, 24, 21, 0.2);
  --accent: #3c5bff;
  --accent-ink: #ffffff;
  --orange: #e24b1a;
  --header-bg: rgba(239, 238, 232, 0.85);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.6;
  transition: background 300ms ease, color 300ms ease;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

.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: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition: top 180ms ease;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 68%);
  opacity: 0;
  transition: opacity 300ms ease;
}

@media (pointer: fine) {
  body:hover .cursor-glow {
    opacity: 1;
  }
}

.section-shell {
  width: min(100%, 100rem);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.section-pad {
  padding-top: clamp(6.5rem, 11vw, 11rem);
  padding-bottom: clamp(6.5rem, 11vw, 11rem);
  border-top: 1px solid var(--line);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--page-pad);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: transform 350ms var(--ease), border-color 250ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.4rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--text);
}

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

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.75rem;
}

.icon-button,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--text);
  background: var(--surface);
}

.theme-toggle svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.moon-icon,
[data-theme="light"] .sun-icon {
  display: none;
}

[data-theme="light"] .moon-icon {
  display: block;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  width: 0.9rem;
  height: 1px;
  background: currentColor;
  transition: transform 250ms ease;
}

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

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

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

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--page-pad) 3rem;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-1rem);
  transition: opacity 250ms ease, transform 400ms var(--ease), visibility 250ms;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

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

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.5rem, 12vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.mobile-menu nav span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}

.mobile-menu > p {
  margin-top: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 5rem var(--page-pad) 0;
  z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 25%;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, transparent 90%);
}

.hero-meta,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.55rem transparent; }
}

.hero-title {
  margin: clamp(1.5rem, 4vh, 3rem) 0 1rem;
  font-size: clamp(5rem, 16vw, 15rem);
  font-weight: 600;
  line-height: 0.73;
  letter-spacing: -0.09em;
}

.title-line {
  display: block;
}

.title-line-offset {
  margin-left: 17%;
}

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

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(18rem, 34rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin: clamp(2rem, 6vh, 5rem) 0 0 17%;
}

.hero-intro {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-width: 12rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 100vw;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 250ms var(--ease), background 250ms ease;
}

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

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.text-link,
.contact-email {
  position: relative;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-link::after,
.contact-email::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.25rem;
  height: 1px;
  background: currentColor;
  transition: transform 300ms var(--ease);
  transform-origin: left;
}

.text-link:hover::after,
.contact-email:hover::after {
  transform: scaleX(0.35);
}

.hero-orbit {
  position: absolute;
  right: max(var(--page-pad), 5vw);
  top: 24%;
  width: clamp(8rem, 12vw, 12rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}

.orbit-copy {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0;
  white-space: nowrap;
  overflow: visible;
  animation: rotate 16s linear infinite;
}

.orbit-copy::before,
.orbit-copy::after {
  content: "DESIGN · LOGOS · IDENTITIES";
  position: absolute;
  left: 50%;
  top: -0.45rem;
  padding: 0 0.5rem;
  background: var(--bg);
  font-size: 0.55rem;
  white-space: nowrap;
  transform: translateX(-50%);
}

.orbit-copy::after {
  top: auto;
  bottom: -0.45rem;
  transform: translateX(-50%) rotate(180deg);
}

.orbit-center {
  display: grid;
  place-items: center;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.2vw, 1.1rem);
}

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

.scroll-cue {
  position: absolute;
  left: var(--page-pad);
  bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  transform: rotate(-90deg) translateY(100%);
  transform-origin: left bottom;
}

.scroll-line {
  width: 2.5rem;
  height: 1px;
  background: var(--muted);
  transform-origin: left;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  50% { transform: scaleX(0.4); }
}

.section-kicker span {
  color: var(--accent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.72fr;
  gap: clamp(4rem, 10vw, 10rem);
  margin-top: clamp(3rem, 6vw, 6rem);
}

.display-copy {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 6.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.display-copy em,
.skills-intro em,
.contact-title em {
  color: var(--accent);
  font-family: Georgia, serif;
  font-weight: 400;
}

.about-copy {
  align-self: end;
}

.about-copy > p {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.about-copy > p:first-child {
  color: var(--text);
  font-size: clamp(1.2rem, 1.55vw, 1.5rem);
}

.fact-list {
  margin: 3rem 0 0;
}

.fact-list > div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.fact-list dt,
.fact-list dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fact-list dt {
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr;
  align-items: end;
  gap: 4rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading h2,
.skills-intro h2 {
  margin: 1.5rem 0 0;
  font-size: clamp(3rem, 7vw, 7.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.section-heading > p,
.skills-intro > p {
  margin: 0;
  color: var(--muted);
  max-width: 31rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-button {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter-button sup {
  margin-left: 0.25rem;
  font-size: 0.5rem;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem);
}

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

.project-card.is-filtered-out {
  display: none;
}

.project-card-wide {
  grid-column: 1 / -1;
}

.project-visual {
  position: relative;
  min-height: clamp(22rem, 42vw, 44rem);
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  transform: translateZ(0);
}

.project-card:not(.project-card-wide) .project-visual {
  min-height: clamp(24rem, 48vw, 43rem);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,0.12) 50%, transparent 55%);
  transform: translateX(-100%);
  transition: transform 800ms var(--ease);
}

.project-card a:hover .project-visual::after {
  transform: translateX(100%);
}

.project-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 850ms var(--ease), filter 450ms ease;
}

.project-card a:hover .project-cover {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.project-cover-portrait {
  object-position: center 42%;
}

.project-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: currentColor;
}

.visual-northstar {
  display: grid;
  place-items: center;
  background: #cdd8d8;
  color: #173b42;
}

.visual-northstar::before {
  content: "";
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff704d;
  filter: blur(1px);
  right: 3%;
  top: -20%;
}

.mock-window {
  position: relative;
  z-index: 1;
  width: min(78%, 62rem);
  aspect-ratio: 16 / 8;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: #f5f7f3;
  box-shadow: 0 2.5rem 5rem rgba(23,59,66,0.2);
  border-radius: 0.5rem;
  transform: rotate(-2deg);
  transition: transform 700ms var(--ease);
}

.project-card a:hover .mock-window {
  transform: rotate(0deg) scale(1.015);
}

.mock-logo {
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.mock-chart {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  height: 44%;
  display: flex;
  align-items: flex-end;
  gap: 5%;
  border-bottom: 1px solid #abc0c0;
}

.mock-chart i {
  flex: 1;
  height: 40%;
  background: #173b42;
  border-radius: 0.25rem 0.25rem 0 0;
}

.mock-chart i:nth-child(2) { height: 65%; }
.mock-chart i:nth-child(3) { height: 55%; background: #ff704d; }
.mock-chart i:nth-child(4) { height: 82%; }
.mock-chart i:nth-child(5) { height: 100%; }

.mock-stat {
  position: absolute;
  right: 8%;
  top: 16%;
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.07em;
}

.mock-stat small {
  display: block;
  margin-top: 0.3rem;
  color: #6b8587;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.visual-nawa {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #182e22;
  color: #f4eccf;
}

.visual-nawa::before {
  content: "";
  position: absolute;
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid #f4eccf;
  border-radius: 50% 50% 10% 50%;
  transform: rotate(45deg);
  opacity: 0.35;
  transition: transform 700ms var(--ease);
}

.project-card a:hover .visual-nawa::before {
  transform: rotate(135deg) scale(1.1);
}

.nawa-word {
  z-index: 1;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.nawa-arabic {
  z-index: 1;
  margin-top: 1rem;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.8rem);
}

.visual-afterdark {
  background: #361cff;
  color: #ecff4d;
}

.afterdark-a {
  position: absolute;
  left: -4%;
  top: -15%;
  font-size: clamp(20rem, 40vw, 40rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.12em;
  opacity: 0.18;
  transition: transform 800ms var(--ease);
}

.project-card a:hover .afterdark-a {
  transform: rotate(-5deg) scale(1.04);
}

.afterdark-title {
  position: absolute;
  left: 8%;
  bottom: 9%;
  z-index: 1;
  font-size: clamp(3.3rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.1em;
}

.afterdark-code {
  position: absolute;
  right: 7%;
  top: 8%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  writing-mode: vertical-rl;
}

.visual-tidal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 5vw, 5rem);
  background: #d0f0e6;
  color: #0e362e;
}

.visual-tidal::before {
  content: "";
  position: absolute;
  width: 68%;
  height: 150%;
  border: 1px solid rgba(14,54,46,0.2);
  border-radius: 50%;
  transform: rotate(-35deg);
}

.phone {
  position: relative;
  z-index: 1;
  width: clamp(8rem, 18vw, 17rem);
  aspect-ratio: 9 / 18;
  padding: clamp(1rem, 2.2vw, 2rem);
  border: clamp(0.3rem, 0.7vw, 0.65rem) solid #0e1815;
  border-radius: clamp(1.4rem, 3vw, 2.8rem);
  background: #f3f4ec;
  box-shadow: 0 2rem 3rem rgba(14,54,46,0.16);
  transition: transform 700ms var(--ease);
}

.phone-one { transform: rotate(-8deg) translateY(6%); }
.phone-two { transform: rotate(6deg) translateY(-5%); }
.project-card a:hover .phone-one { transform: rotate(-4deg) translateY(3%); }
.project-card a:hover .phone-two { transform: rotate(3deg) translateY(-3%); }

.phone span,
.phone small {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.4rem, 0.7vw, 0.65rem);
  color: #61756f;
}

.phone b {
  display: block;
  margin-top: 1rem;
  font-size: clamp(0.8rem, 1.5vw, 1.4rem);
  line-height: 1.05;
}

.phone-one i {
  position: absolute;
  inset: auto 10% 10%;
  height: 42%;
  border-radius: 100% 20% 30% 50%;
  background: #76d9a9;
}

.phone-two b {
  margin-top: 2rem;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.1em;
}

.phone-ring {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 12%;
  aspect-ratio: 1;
  border: clamp(0.35rem, 1vw, 0.8rem) solid #76d9a9;
  border-top-color: #0e362e;
  border-radius: 50%;
}

.tidal-type {
  position: absolute;
  left: 3%;
  bottom: 4%;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.visual-weather {
  background: #ffb62e;
  color: #2a2100;
}

.weather-sun {
  position: absolute;
  left: 12%;
  top: 15%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff2c5;
  box-shadow: 0 0 0 2rem rgba(255,242,197,0.15), 0 0 0 4rem rgba(255,242,197,0.08);
  transition: transform 1s var(--ease);
}

.project-card a:hover .weather-sun {
  transform: translate(8%, -5%) scale(1.08);
}

.weather-temp {
  position: absolute;
  right: 8%;
  bottom: 8%;
  font-size: clamp(7rem, 17vw, 17rem);
  font-weight: 600;
  line-height: 0.7;
  letter-spacing: -0.12em;
}

.weather-place {
  position: absolute;
  left: 8%;
  bottom: 8%;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.visual-common {
  background: #ef5b47;
  color: #24180f;
}

.visual-common::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(36,24,15,0.08) 9% 9.2%);
}

.common-one,
.common-two {
  position: absolute;
  z-index: 1;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.common-one { left: 7%; top: 12%; }
.common-two { right: 7%; bottom: 10%; }

.common-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid #24180f;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 500ms ease, transform 700ms var(--ease);
}

.project-card a:hover .common-circle {
  background: #d9ff43;
  transform: translate(-50%, -50%) scale(0.92);
}

.project-info {
  display: grid;
  grid-template-columns: 1fr minmax(10rem, 0.7fr) auto;
  gap: 2rem;
  align-items: start;
  padding-top: 1.25rem;
}

.project-card:not(.project-card-wide) .project-info {
  grid-template-columns: 1fr auto;
}

.project-info h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.project-info p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.project-description {
  line-height: 1.5;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}

.project-card a:hover .project-arrow {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100vw;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 0.55fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date,
.timeline-item > div p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.timeline-item > div p,
.timeline-item > p {
  margin: 0.35rem 0 0;
}

.timeline-item > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(4rem, 10vw, 10rem);
  margin-top: 3rem;
}

.skills-intro h2 {
  margin-top: 0;
}

.skills-intro > p {
  margin-top: 2rem;
}

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

.skill-group {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.skill-group > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.skill-group h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.skill-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 24rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 300ms ease, color 300ms ease, transform 400ms var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -35%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
  transition: transform 600ms var(--ease);
}

.service-card:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-0.5rem);
}

.service-card:hover::before {
  transform: scale(1.4);
}

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

.service-card h3 {
  margin: auto 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 300ms ease;
}

.service-card:hover p {
  color: currentColor;
  opacity: 0.75;
}

.service-icon {
  position: absolute;
  right: 2rem;
  top: 1.6rem;
  font-size: 2rem;
}

.testimonials {
  background: var(--surface);
}

.testimonial-stage {
  max-width: 75rem;
  margin: clamp(3rem, 7vw, 7rem) auto 0;
  text-align: center;
}

.testimonial {
  display: none;
  margin: 0;
}

.testimonial.is-active {
  display: block;
  animation: testimonialIn 500ms var(--ease);
}

@keyframes testimonialIn {
  from { opacity: 0; transform: translateY(1rem); }
}

.testimonial blockquote {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 5.3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.testimonial figcaption {
  margin-top: 2.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.testimonial figcaption span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.testimonial-controls button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease;
}

.testimonial-controls button:hover,
.testimonial-controls button:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
}

.testimonial-controls span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.testimonial-controls b {
  color: var(--text);
  font-weight: 400;
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: "JP";
  position: absolute;
  right: -2%;
  bottom: -15%;
  z-index: -1;
  color: var(--surface);
  font-size: clamp(15rem, 35vw, 35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.12em;
}

.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.contact-top > p {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
}

.contact-title {
  margin: clamp(4rem, 9vw, 8rem) 0;
  font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.085em;
}

.contact-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}

.contact-email {
  font-size: clamp(1rem, 2vw, 1.6rem);
  text-transform: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5rem;
}

.social-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

.site-footer > a {
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 120;
  padding: 0.8rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 350ms var(--ease), opacity 250ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

.title-line.reveal:first-child { transition-delay: 80ms; }
.title-line.reveal:nth-child(2) { transition-delay: 160ms; }
.hero-bottom.reveal { transition-delay: 240ms; }

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    justify-content: center;
  }

  .hero-title {
    line-height: 0.82;
  }

  .title-line-offset {
    margin-left: 8%;
  }

  .hero-bottom {
    margin-left: 8%;
  }

  .hero-orbit {
    top: 18%;
  }

  .about-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-copy {
    max-width: 38rem;
    margin-left: auto;
  }

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

  .service-card {
    min-height: 18rem;
  }
}

@media (max-width: 700px) {
  :root {
    --page-pad: 1.25rem;
  }

  .site-header {
    height: 4.4rem;
  }

  .wordmark-name {
    display: none;
  }

  .hero {
    min-height: 50rem;
    padding-top: 7rem;
  }

  .hero::before {
    inset-top: 4.4rem;
    background-size: 50% 20%;
  }

  .hero-title {
    margin-top: 3rem;
    font-size: clamp(4rem, 24vw, 7.2rem);
    line-height: 0.77;
  }

  .title-line-offset {
    margin-left: 0;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3.5rem 0 0;
  }

  .hero-intro {
    max-width: 22rem;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero-orbit {
    right: -2rem;
    top: 27%;
    width: 7rem;
    opacity: 0.75;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-heading h2,
  .skills-intro h2 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

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

  .project-card-wide {
    grid-column: auto;
  }

  .project-visual,
  .project-card:not(.project-card-wide) .project-visual {
    min-height: 27rem;
  }

  .project-info,
  .project-card:not(.project-card-wide) .project-info {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .project-description {
    display: none;
  }

  .mock-window {
    width: 88%;
    aspect-ratio: 4 / 3;
  }

  .visual-tidal {
    gap: 0.5rem;
  }

  .phone {
    width: 38%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-item > p {
    max-width: 30rem;
  }

  .testimonial blockquote {
    font-size: clamp(2rem, 9vw, 3.6rem);
  }

  .contact-top,
  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .social-links {
    justify-content: flex-start;
  }

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

  .site-footer > p {
    display: none;
  }
}

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

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

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