:root {
  --bg: #f2efe6;
  --bg-soft: #e8e3d8;
  --surface: #fffdf7;
  --surface-solid: #fffdf7;
  --line: #c9c2b5;
  --line-strong: #9e9688;
  --text: #1b1d19;
  --muted: #66685f;
  --muted-strong: #3f423b;
  --violet: #b5482e;
  --violet-light: #9f3d27;
  --cyan: #1d6253;
  --green: #1d6253;
  --shadow: 0 10px 26px rgba(48, 42, 34, 0.09);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container: 1180px;
  --header-height: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: none;
}

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

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

p,
h1,
h2,
h3,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
.brand {
  text-wrap: balance;
}

::selection {
  color: #fffdf7;
  background: var(--violet);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fffdf7;
  background: var(--violet);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(88px, 10vw, 148px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(8, 10, 18, 0.68);
  backdrop-filter: blur(18px) saturate(130%);
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(8, 10, 18, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(189, 164, 255, 0.35);
  border-radius: 13px;
  color: var(--violet-light);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(53, 215, 223, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 650;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 8px;
}

.site-nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--text);
}

.site-nav > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease);
}

.nav-cta:hover {
  border-color: rgba(53, 215, 223, 0.5);
  background: rgba(53, 215, 223, 0.08);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 200ms ease;
}

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

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

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(70px, 8vw, 112px) 44px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-glow-one {
  top: 2%;
  left: -18%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 68%);
}

.hero-glow-two {
  right: -12%;
  bottom: -24%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(53, 215, 223, 0.09), transparent 68%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.8fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.project-meta,
.case-eyebrow {
  color: var(--violet-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 9px 13px;
  border: 1px solid rgba(189, 164, 255, 0.18);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.07);
}

.eyebrow-dot,
.status-pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(113, 230, 180, 0.7);
}

.eyebrow-dot::after,
.status-pulse::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(113, 230, 180, 0.45);
  border-radius: inherit;
  content: "";
  animation: status-pulse 2.2s ease-out infinite;
}

@keyframes status-pulse {
  0% { opacity: 1; transform: scale(0.55); }
  70%, 100% { opacity: 0; transform: scale(1.6); }
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.35rem, 6.3vw, 6.35rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.gradient-text {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #bda4ff 2%, #8b5cf6 45%, #4ce1e7 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

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

.button-primary {
  color: #0a0912;
  background: linear-gradient(110deg, var(--violet-light), #9d7bf7 48%, var(--cyan));
  box-shadow: 0 14px 38px rgba(139, 92, 246, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 48px rgba(139, 92, 246, 0.32);
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.button-ghost:hover {
  border-color: rgba(53, 215, 223, 0.45);
  background: rgba(53, 215, 223, 0.07);
}

.hero-links {
  display: flex;
  gap: 26px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-links a {
  transition: color 180ms ease;
}

.hero-links a:hover {
  color: var(--cyan);
}

.hero-visual {
  position: relative;
  min-height: 510px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13), rgba(8, 10, 18, 0.05) 60%, transparent 72%);
  transform: translate(-50%, -50%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}

.three-ready #hero-canvas {
  opacity: 0.9;
}

.visual-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 390px;
  height: 390px;
  border: 1px dashed rgba(189, 164, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.visual-orbit::before,
.visual-orbit::after {
  position: absolute;
  border: 1px solid rgba(53, 215, 223, 0.12);
  border-radius: 50%;
  content: "";
}

.visual-orbit::before {
  inset: 54px -36px;
  transform: rotate(62deg);
}

.visual-orbit::after {
  inset: -24px 78px;
  transform: rotate(-48deg);
}

.code-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(86%, 330px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(11, 14, 24, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.code-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
}

.window-dots i:nth-child(2) { background: var(--cyan); }
.window-dots i:nth-child(3) { background: var(--green); }

.code-lines {
  display: grid;
  gap: 14px;
  padding: 25px 20px 27px;
  color: #d8dced;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.code-lines i {
  color: var(--violet-light);
  font-style: normal;
}

.code-lines b {
  color: var(--cyan);
  font-weight: 500;
}

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(11, 14, 24, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.floating-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(113, 230, 180, 0.8);
}

.floating-chip-top {
  top: 19%;
  right: 1%;
  animation: float-chip 5s ease-in-out infinite;
}

.floating-chip-bottom {
  bottom: 19%;
  left: 2%;
  animation: float-chip 5s 1.2s ease-in-out infinite;
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.credibility-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(58px, 8vw, 108px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.credibility-item {
  display: grid;
  gap: 3px;
  padding-inline: 22px;
  border-right: 1px solid var(--line);
}

.credibility-item:first-child { padding-left: 0; }
.credibility-item:last-child { border-right: 0; }

.credibility-item strong {
  font-size: 0.97rem;
  letter-spacing: -0.02em;
}

.credibility-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.section-kicker {
  margin-bottom: 18px;
}

.section-heading h2,
.contact-copy h2,
.case-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.4vw, 4.5rem);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.section-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.section-heading-row > div {
  max-width: 780px;
}

.heading-note {
  max-width: 350px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.about-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 30%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 9vw, 124px);
  align-items: center;
}

.portrait-wrap {
  position: relative;
  max-width: 410px;
  margin-inline: auto;
}

.portrait-wrap::before {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 96px;
  height: 96px;
  border-top: 1px solid var(--violet-light);
  border-right: 1px solid var(--violet-light);
  border-radius: 0 24px 0 0;
  content: "";
  opacity: 0.6;
}

.portrait-halo {
  position: absolute;
  inset: 12% -12% -9% 18%;
  z-index: -1;
  border-radius: 40%;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(53, 215, 223, 0.1));
  filter: blur(38px);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 0.95;
  border: 1px solid var(--line-strong);
  border-radius: 34% 34% 26px 26px;
  object-fit: cover;
  object-position: center 27%;
  box-shadow: var(--shadow);
  filter: saturate(0.86) contrast(1.04);
}

.portrait-caption {
  position: absolute;
  right: -26px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 15, 25, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-size: 0.73rem;
  font-weight: 750;
}

.about-copy > p {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.about-copy .about-intro {
  color: var(--text);
  font-size: clamp(1.22rem, 2.2vw, 1.72rem);
  font-weight: 590;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.value-grid article {
  min-height: 175px;
  padding: 24px 20px;
  background: var(--bg-soft);
}

.value-grid article > span {
  color: var(--violet-light);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
}

.value-grid h3 {
  margin: 24px 0 8px;
  font-size: 0.94rem;
}

.value-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.projects-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 12%, rgba(53, 215, 223, 0.07), transparent 28rem),
    var(--bg-soft);
}

.projects-list {
  display: grid;
  gap: clamp(78px, 9vw, 122px);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.72fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
}

.project-card:nth-child(even) {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.18fr);
}

.project-card:nth-child(even) .project-image {
  order: 2;
}

.project-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.16), rgba(53, 215, 223, 0.06));
  box-shadow: var(--shadow);
  transition: border-color 300ms ease, transform 450ms var(--ease), box-shadow 450ms ease;
}

.project-card:nth-child(2) .project-image {
  background: linear-gradient(145deg, rgba(53, 215, 223, 0.12), rgba(139, 92, 246, 0.09));
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.09), transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease);
}

.project-image img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  transition: transform 650ms var(--ease), filter 350ms ease;
}

.project-image:hover {
  border-color: rgba(189, 164, 255, 0.36);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(-8px);
}

.project-image:hover::after {
  transform: translateX(110%);
}

.project-image:hover img {
  transform: scale(1.025);
}

.project-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 10, 18, 0.78);
  backdrop-filter: blur(10px);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.project-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 800;
}

.project-view i,
.contact-direct i {
  color: var(--cyan);
  font-style: normal;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.project-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(189, 164, 255, 0.16);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.07);
}

.project-meta span:last-child {
  color: var(--green);
  border-color: rgba(113, 230, 180, 0.17);
  background: rgba(113, 230, 180, 0.05);
}

.project-content h3 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.project-content {
  max-width: 410px;
}

.project-card:nth-child(even) .project-content {
  justify-self: end;
}

.project-content h3 a {
  transition: color 180ms ease;
}

.project-content h3 a:hover {
  color: var(--violet-light);
}

.project-content > p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.69rem;
  font-weight: 700;
}

.skills-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 9vw, 130px);
}

.skills-grid .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 50px);
  align-self: start;
  margin-bottom: 0;
}

.skills-grid .heading-note {
  margin-top: 25px;
}

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

.skill-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  gap: 18px;
  align-items: start;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  transition: padding-inline 260ms var(--ease), background 260ms ease;
}

.skill-row:hover {
  padding-inline: 18px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent);
}

.skill-index {
  color: var(--violet-light);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.skill-row h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  letter-spacing: -0.025em;
}

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

.skill-symbol {
  color: var(--cyan);
  font-size: 1.1rem;
  transition: transform 240ms var(--ease);
}

.skill-row:hover .skill-symbol {
  transform: translate(4px, -4px);
}

.contact-section {
  overflow: hidden;
}

.contact-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 900px;
  height: 500px;
  content: "";
  background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(50px, 9vw, 126px);
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 22, 37, 0.91), rgba(11, 14, 23, 0.93));
  box-shadow: var(--shadow);
}

.contact-shell::after {
  position: absolute;
  right: -100px;
  bottom: -170px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(53, 215, 223, 0.1);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 80px rgba(53, 215, 223, 0.05);
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 2;
}

.contact-copy h2 {
  margin-bottom: 24px;
}

.contact-copy > p:not(.section-kicker) {
  max-width: 560px;
  color: var(--muted);
}

.contact-direct {
  display: grid;
  gap: 7px;
  margin-top: 44px;
}

.contact-direct > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(0.84rem, 1.35vw, 1rem);
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label {
  color: var(--muted-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-row input,
.field-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(8, 10, 18, 0.58);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field-row input {
  min-height: 50px;
  padding: 0 15px;
}

.field-row textarea {
  min-height: 116px;
  padding: 13px 15px;
  resize: vertical;
}

.field-row input::placeholder,
.field-row textarea::placeholder {
  color: #6e7588;
}

.field-row input:focus,
.field-row textarea:focus {
  border-color: rgba(53, 215, 223, 0.55);
  background: rgba(8, 10, 18, 0.85);
  box-shadow: 0 0 0 4px rgba(53, 215, 223, 0.07);
}

.button-submit {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  background: #070910;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
}

.footer-inner strong {
  font-size: 1rem;
}

.footer-inner p,
.footer-inner small {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-inner small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* Project detail pages */

.project-page {
  background:
    radial-gradient(circle at 72% 6%, rgba(139, 92, 246, 0.13), transparent 32rem),
    var(--bg);
}

.case-hero {
  position: relative;
  padding-block: clamp(62px, 8vw, 110px) clamp(42px, 5vw, 70px);
  overflow: hidden;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--violet-light);
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: end;
}

.case-intro > *,
.case-details-grid > * {
  min-width: 0;
}

.case-eyebrow {
  margin-bottom: 20px;
}

.case-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6.3vw, 6.4rem);
}

.case-lead {
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.45vw, 1.17rem);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(54px, 7vw, 86px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.case-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 22px 24px;
  background: rgba(13, 16, 26, 0.92);
}

.case-stat span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-stat strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.case-cover {
  aspect-ratio: 16 / 9;
  padding: clamp(10px, 1.4vw, 18px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.13), rgba(53, 215, 223, 0.04));
  box-shadow: var(--shadow);
}

.case-cover img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
}

.case-details {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 45%);
}

.case-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: clamp(60px, 10vw, 140px);
  align-items: start;
}

.case-copy h2,
.gallery-heading h2,
.next-case h2 {
  margin-bottom: 25px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 730;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.case-copy > p {
  color: var(--muted);
  font-size: 1rem;
}

.case-copy > p:first-of-type {
  color: var(--muted-strong);
  font-size: 1.13rem;
}

.case-copy h3 {
  margin: 45px 0 14px;
  font-size: 1.25rem;
}

.case-aside {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 19, 31, 0.72);
}

.case-aside h3 {
  margin-bottom: 20px;
  font-size: 1rem;
}

.case-aside ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-aside li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.case-aside li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 215, 223, 0.6);
}

.case-aside .tag-list {
  display: flex;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.case-aside .tag-list li {
  padding-left: 10px;
}

.case-aside .tag-list li::before {
  content: none;
}

.gallery-section {
  padding-top: 30px;
  background: var(--bg-soft);
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.gallery-heading h2 {
  margin-bottom: 0;
}

.gallery-heading p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.gallery-item {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 1.25vw, 16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 260ms ease, transform 360ms var(--ease), box-shadow 360ms ease;
}

.gallery-item:hover {
  border-color: rgba(189, 164, 255, 0.3);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #eef1f4;
  object-fit: cover;
  object-position: top center;
}

.gallery-item figcaption {
  align-self: center;
  padding: 14px 5px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.case-cover img,
.gallery-item img {
  cursor: zoom-in;
}

.case-cover img:focus-visible,
.gallery-item img:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

body.lightbox-open {
  overflow: hidden;
}

.project-lightbox[hidden] {
  display: none;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(72px, 8vw, 104px) clamp(70px, 8vw, 126px) clamp(22px, 4vw, 42px);
  background: rgba(5, 7, 13, 0.96);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.project-lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.project-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 170px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  transform: scale(0.985);
  transition: transform 280ms var(--ease);
}

.project-lightbox.is-open .project-lightbox__image {
  transform: scale(1);
}

.project-lightbox__control {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--text);
  background: rgba(17, 20, 32, 0.88);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-lightbox__control:hover,
.project-lightbox__control:focus-visible {
  border-color: rgba(85, 225, 231, 0.65);
  background: rgba(44, 48, 67, 0.96);
  outline: none;
}

.project-lightbox__close {
  top: 20px;
  right: 22px;
  font-size: 1.8rem;
  line-height: 1;
}

.project-lightbox__previous,
.project-lightbox__next {
  top: 50%;
  font-size: 1.35rem;
  transform: translateY(-50%);
}

.project-lightbox__previous {
  left: clamp(14px, 3vw, 42px);
}

.project-lightbox__next {
  right: clamp(14px, 3vw, 42px);
}

.project-lightbox__previous:hover,
.project-lightbox__previous:focus-visible,
.project-lightbox__next:hover,
.project-lightbox__next:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

.project-lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  color: var(--muted);
}

.project-lightbox__caption {
  max-width: 720px;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
  overflow-wrap: anywhere;
}

.project-lightbox__counter {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 750;
}

.next-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, rgba(139, 92, 246, 0.11), rgba(53, 215, 223, 0.04));
}

.next-case h2 {
  max-width: 700px;
  margin: 0;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 6.8vw, 5.25rem);
  }

  .hero-visual {
    min-height: 460px;
  }

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

  .value-grid article {
    min-height: 0;
  }

  .project-card {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.72fr);
    gap: 38px;
  }

  .project-card:nth-child(even) {
    grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.15fr);
  }

  .contact-shell {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 101;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    min-height: 100svh;
    padding: 100px 30px 40px;
    color: var(--text);
    background: rgba(8, 10, 18, 0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms var(--ease), visibility 0s linear 220ms;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-nav > a {
    font-size: 1.2rem;
  }

  .nav-cta {
    margin-top: 14px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

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

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 11.5vw, 5.3rem);
  }

  .hero-visual {
    min-height: 390px;
    margin-top: 10px;
  }

  .hero-visual::before {
    width: 370px;
    height: 370px;
  }

  .visual-orbit {
    width: 330px;
    height: 330px;
  }

  .credibility-row {
    margin-top: 40px;
  }

  .about-grid,
  .skills-grid,
  .contact-shell,
  .case-intro,
  .case-details-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    padding-block: clamp(48px, 9vw, 72px) clamp(38px, 8vw, 58px);
  }

  .breadcrumbs {
    flex-wrap: wrap;
    margin-bottom: 34px;
  }

  .case-intro {
    gap: 30px;
  }

  .case-stats {
    margin-top: 42px;
  }

  .case-cover {
    width: 100%;
  }

  .case-aside {
    width: 100%;
    padding: clamp(22px, 6vw, 28px);
    overflow: hidden;
  }

  .portrait-wrap {
    width: min(80%, 390px);
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-image {
    order: 0;
  }

  .project-content {
    display: block;
    max-width: 650px;
  }

  .project-card:nth-child(even) .project-content {
    justify-self: start;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row .heading-note {
    margin-top: 24px;
  }

  .skills-grid .section-heading,
  .case-aside {
    position: static;
  }

  .contact-shell {
    gap: 50px;
  }

  .case-intro {
    align-items: start;
  }

  .case-lead {
    max-width: 650px;
  }

  .gallery-heading {
    display: grid;
    gap: 18px;
  }

  .gallery-heading p {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .section {
    padding-block: 82px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .eyebrow {
    padding: 8px 11px;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.35rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-visual::before {
    width: 310px;
    height: 310px;
  }

  .visual-orbit {
    width: 280px;
    height: 280px;
  }

  .code-card {
    width: 250px;
  }

  .code-lines {
    padding: 20px 14px;
    font-size: 0.64rem;
  }

  .floating-chip-top { right: 0; }
  .floating-chip-bottom { left: 0; }

  .credibility-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .credibility-item,
  .credibility-item:first-child {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credibility-item:last-child {
    border-bottom: 0;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .portrait-wrap {
    width: 88%;
  }

  .portrait-caption {
    right: -12px;
  }

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

  .projects-list {
    gap: 68px;
  }

  .project-card {
    gap: 28px;
  }

  .project-content h3 {
    font-size: 2rem;
  }

  .project-view {
    right: 8px;
    bottom: 8px;
  }

  .skills-grid {
    gap: 44px;
  }

  .skill-row {
    grid-template-columns: 35px 1fr;
  }

  .skill-symbol {
    display: none;
  }

  .contact-shell {
    width: min(calc(100% - 20px), var(--container));
    padding: 28px 20px;
    border-radius: 24px;
  }

  .contact-direct a {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .case-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .case-stats {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  .case-stat {
    padding: 17px 20px;
  }

  .case-cover {
    padding: 8px;
    border-radius: 18px;
  }

  .case-cover img {
    border-radius: 11px;
  }

  .case-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  }

  .case-actions .button {
    min-width: 0;
    padding-inline: 14px;
  }

  .gallery-heading,
  .next-case {
    display: grid;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-item {
    padding: 8px;
    border-radius: 18px;
  }

  .gallery-item img {
    border-radius: 11px;
  }

  .gallery-item figcaption {
    padding: 12px 5px 4px;
  }

  .project-lightbox {
    gap: 12px;
    padding: 68px 12px 88px;
  }

  .project-lightbox__image {
    max-height: calc(100svh - 190px);
    border-radius: 10px;
  }

  .project-lightbox__control {
    width: 46px;
    height: 46px;
  }

  .project-lightbox__close {
    top: 12px;
    right: 12px;
  }

  .project-lightbox__previous,
  .project-lightbox__next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .project-lightbox__previous {
    left: calc(50% - 58px);
  }

  .project-lightbox__next {
    right: calc(50% - 58px);
  }

  .project-lightbox__previous:hover,
  .project-lightbox__previous:focus-visible,
  .project-lightbox__next:hover,
  .project-lightbox__next:focus-visible {
    transform: scale(1.06);
  }

  .project-lightbox__meta {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .project-lightbox__caption {
    font-size: 0.76rem;
  }
}

/* Editorial direction: warm, direct and grounded in real project work. */

h1,
h2,
.project-content h3,
.hero-note-title,
.case-copy h2,
.gallery-heading h2,
.next-case h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.section {
  padding-block: clamp(76px, 8vw, 116px);
}

.site-header {
  border-bottom-color: transparent;
  background: rgba(242, 239, 230, 0.94);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 239, 230, 0.98);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-color: var(--text);
  border-radius: 2px;
  color: #fffdf7;
  background: var(--text);
  box-shadow: none;
}

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

.brand-copy small {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.61rem;
}

.site-nav {
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.site-nav > a:not(.nav-cta)::after {
  height: 2px;
  background: var(--violet);
}

.nav-cta {
  padding: 8px 0 6px;
  border: 0;
  border-bottom: 2px solid var(--violet);
  border-radius: 0;
  color: var(--text);
  background: transparent;
}

.nav-cta:hover {
  color: var(--violet);
  border-color: var(--violet);
  background: transparent;
  transform: none;
}

.menu-toggle {
  border-color: var(--line-strong);
  border-radius: 2px;
  background: transparent;
}

.hero {
  min-height: auto;
  padding-block: clamp(78px, 9vw, 122px) 48px;
  overflow: visible;
  border-bottom: 1px solid var(--line);
}

.hero::after,
.hero-glow {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.65fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.hero-copy {
  max-width: 750px;
}

.eyebrow,
.section-kicker,
.project-meta,
.case-eyebrow {
  color: var(--violet-light);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.eyebrow {
  display: block;
  margin-bottom: 26px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 3px solid var(--violet);
  border-radius: 0;
  background: transparent;
}

.eyebrow-dot,
.portrait-halo {
  display: none;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 5.8vw, 5.75rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.gradient-text {
  display: inline;
  color: var(--violet);
  background: none;
  background-clip: initial;
  -webkit-background-clip: initial;
}

.hero-lead {
  max-width: 650px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}

.button {
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 0.84rem;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: none;
}

.button-primary {
  color: #fffdf7;
  background: var(--violet);
  box-shadow: none;
}

.button-primary:hover {
  background: #93341f;
  box-shadow: none;
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.button-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.hero-links a {
  color: var(--muted-strong);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}

.hero-links a:hover {
  color: var(--violet);
  text-decoration-color: var(--violet);
}

.hero-note {
  margin-top: 34px;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  background: var(--surface);
}

.hero-note-label {
  margin-bottom: 22px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-note-title {
  margin-bottom: 26px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hero-note dl {
  margin: 0;
}

.hero-note dl div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.hero-note dt {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.hero-note dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.hero-note > a {
  display: inline-block;
  margin-top: 22px;
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.credibility-row {
  margin-top: clamp(52px, 7vw, 84px);
  padding-top: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.credibility-item {
  gap: 4px;
  padding: 20px 24px;
  border-right-color: var(--line);
}

.credibility-item:first-child {
  padding-left: 0;
}

.credibility-item strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credibility-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section-heading {
  margin-bottom: clamp(42px, 5vw, 64px);
}

.section-kicker {
  margin-bottom: 15px;
}

.section-heading h2,
.contact-copy h2,
.case-hero h1 {
  font-weight: 400;
  letter-spacing: -0.045em;
}

.about-section,
.case-details {
  background: var(--surface);
}

.about-grid {
  align-items: start;
}

.portrait-wrap {
  max-width: 360px;
}

.portrait-wrap::before {
  top: -14px;
  right: -14px;
  width: 72px;
  height: 72px;
  border-color: var(--violet);
  border-radius: 0;
  opacity: 1;
}

.portrait-wrap img {
  aspect-ratio: 0.9;
  border-color: var(--line-strong);
  border-radius: 2px;
  box-shadow: none;
  filter: saturate(0.78) contrast(1.04);
}

.portrait-caption {
  right: -14px;
  bottom: -14px;
  padding: 10px 12px;
  border: 0;
  border-radius: 2px;
  color: #fffdf7;
  background: var(--cyan);
  box-shadow: none;
  backdrop-filter: none;
}

.status-pulse {
  width: 6px;
  height: 6px;
  background: #fffdf7;
  box-shadow: none;
}

.status-pulse::after {
  content: none;
}

.about-copy .about-intro {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.value-grid {
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.value-grid article {
  min-height: 0;
  padding: 22px 20px 24px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.value-grid article:last-child {
  border-right: 0;
}

.value-grid article > span {
  color: var(--violet);
}

.value-grid h3 {
  margin-top: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.projects-section {
  background: var(--bg-soft);
}

.projects-list {
  gap: clamp(66px, 8vw, 96px);
}

.project-image,
.project-card:nth-child(2) .project-image {
  padding: 8px;
  border-color: var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-image::after {
  content: none;
}

.project-image img {
  border-color: var(--line);
  border-radius: 2px;
  transition: filter 180ms ease;
}

.project-image:hover {
  border-color: var(--text);
  box-shadow: 7px 7px 0 var(--line);
  transform: translate(-3px, -3px);
}

.project-image:hover img {
  transform: none;
  filter: saturate(1.04);
}

.project-number {
  top: 8px;
  left: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  color: #fffdf7;
  background: var(--cyan);
  backdrop-filter: none;
}

.project-view {
  right: 8px;
  bottom: 8px;
  padding: 8px 10px;
  border-color: var(--text);
  border-radius: 2px;
  color: var(--text);
  background: var(--surface);
  backdrop-filter: none;
}

.project-view i,
.contact-direct i {
  color: var(--violet);
}

.project-meta {
  gap: 0;
}

.project-meta span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-meta span:last-child {
  color: var(--cyan);
  border: 0;
  background: transparent;
}

.project-meta span + span::before {
  margin-inline: 8px;
  color: var(--line-strong);
  content: "/";
}

.project-content h3 {
  font-weight: 400;
  letter-spacing: -0.035em;
}

.project-content h3 a:hover {
  color: var(--violet);
}

.tag-list li {
  border-color: var(--line-strong);
  border-radius: 2px;
  color: var(--muted-strong);
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
}

.skill-row {
  transition: color 160ms ease;
}

.skill-row:hover {
  padding-inline: 0;
  color: var(--violet);
  background: transparent;
}

.skill-index,
.skill-symbol {
  color: var(--violet);
}

.skill-row h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.contact-section::before,
.contact-shell::after {
  content: none;
}

.contact-shell {
  border-color: var(--line-strong);
  border-top: 6px solid var(--violet);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
}

.contact-form input,
.contact-form textarea {
  border-color: var(--line-strong);
  border-radius: 2px;
  color: var(--text);
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(29, 98, 83, 0.12);
}

.site-footer {
  color: #fffdf7;
  background: #193f36;
}

.site-footer p,
.site-footer small {
  color: #cdd8d3;
}

.site-footer .footer-inner,
.site-footer .footer-inner small {
  border-color: rgba(255, 255, 255, 0.22);
}

.footer-links a:hover {
  color: #f2b29f;
}

.project-page {
  background: var(--bg);
}

.case-hero {
  padding-block: clamp(58px, 7vw, 94px) clamp(38px, 4vw, 58px);
}

.breadcrumbs a:hover,
.case-copy a:hover {
  color: var(--violet);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--violet);
}

.case-hero h1 {
  font-size: clamp(3rem, 5.7vw, 5.7rem);
}

.case-stats {
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.case-stat {
  border-right: 1px solid var(--line);
  background: transparent;
}

.case-stat:last-child {
  border-right: 0;
}

.case-cover {
  padding: 8px;
  border-color: var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
}

.case-cover img {
  border-color: var(--line);
  border-radius: 2px;
}

.case-copy h2,
.gallery-heading h2,
.next-case h2 {
  font-weight: 400;
  letter-spacing: -0.035em;
}

.case-aside {
  border-color: var(--line-strong);
  border-radius: 4px;
  background: var(--bg-soft);
}

.case-aside li::before {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--violet);
  box-shadow: none;
}

.gallery-section {
  background: var(--bg-soft);
}

.gallery-item {
  border-color: var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  transition: border-color 160ms ease;
}

.gallery-item:hover {
  border-color: var(--text);
  box-shadow: none;
  transform: none;
}

.gallery-item img {
  border-radius: 2px;
}

.next-case {
  border-color: var(--line-strong);
  border-top: 6px solid var(--cyan);
  border-radius: 4px;
  background: var(--surface);
}

.project-lightbox {
  color: #fffdf7;
  background: rgba(21, 24, 21, 0.97);
  backdrop-filter: blur(8px);
}

.project-lightbox__control {
  color: #fffdf7;
  background: rgba(25, 63, 54, 0.94);
  backdrop-filter: none;
}

.project-lightbox__control:hover,
.project-lightbox__control:focus-visible {
  border-color: #f2b29f;
  background: #9f3d27;
}

.project-lightbox__meta {
  color: #d9d7cf;
}

.project-lightbox__counter {
  color: #fffdf7;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 6.5vw, 5.1rem);
  }
}

@media (max-width: 820px) {
  .site-nav {
    color: var(--text);
    background: rgba(242, 239, 230, 0.98);
    backdrop-filter: blur(10px);
  }

  .nav-cta {
    margin-top: 10px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid,
  .about-grid,
  .skills-grid,
  .contact-shell,
  .case-intro,
  .case-details-grid {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 650px;
    margin-top: 0;
  }

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-image {
    order: 0;
  }

  .section-heading-row {
    display: grid;
  }
}

@media (max-width: 620px) {
  .section {
    padding-block: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding-block: 52px 34px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 12.8vw, 4rem);
    line-height: 1;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-note {
    padding: 22px 18px;
  }

  .hero-note dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .credibility-row,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .credibility-item,
  .credibility-item:first-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credibility-item:last-child {
    border-bottom: 0;
  }

  .portrait-caption {
    right: -6px;
  }

  .value-grid article {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-grid article:last-child {
    border-bottom: 0;
  }

  .contact-shell {
    padding: 26px 20px;
  }

  .case-stats {
    grid-template-columns: 1fr;
  }

  .case-stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-stat:last-child {
    border-bottom: 0;
  }

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

@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;
  }

  #hero-canvas {
    display: none;
  }
}
