:root {
  --cream: #f4efe6;
  --cream-light: #fbf8f2;
  --sand: #e5d9c8;
  --caramel: #a66a42;
  --brown: #70452f;
  --brown-dark: #402a20;
  --ink: #27231f;
  --muted: #716961;
  --white: #fffdf9;
  --text-on-dark: #fffaf3;
  --muted-on-dark: #dfd2c3;
  --success: #49634c;
  --error: #9c443b;
  --border: rgba(64, 42, 32, 0.14);
  --shadow: 0 24px 60px rgba(55, 39, 30, 0.1);
  --shadow-soft: 0 12px 30px rgba(55, 39, 30, 0.07);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1160px;
  --header-height: 76px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --cream: #221c18;
  --cream-light: #181411;
  --sand: #b9a895;
  --caramel: #d08b5d;
  --brown: #d39a72;
  --brown-dark: #100d0b;
  --ink: #f2ebe2;
  --muted: #b9aea4;
  --white: #29221d;
  --text-on-dark: #fffaf3;
  --muted-on-dark: #d5c5b4;
  --success: #91b895;
  --error: #e58f84;
  --border: rgba(236, 218, 197, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.2);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream-light);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: color 220ms ease, background-color 220ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  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='.025'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(166, 106, 66, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--brown-dark);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

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

.section {
  position: relative;
  padding: 120px 0;
}

.section-toned {
  background: var(--cream);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  border-bottom: 1px solid rgba(64, 42, 32, 0.08);
  background: rgba(251, 248, 242, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  flex: 0 0 auto;
  transition: filter 220ms ease, transform 220ms ease;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo {
  filter: drop-shadow(0 0 8px rgba(232, 201, 111, 0.45))
    drop-shadow(0 0 2px rgba(247, 231, 182, 0.55));
  transform: translateY(-1px);
}

.brand-logo-footer {
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--caramel);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--brown);
}

.site-nav a:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--brown);
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.theme-icon {
  position: absolute;
  font-size: 1.08rem;
  line-height: 1;
  transition: opacity 180ms ease, transform 220ms ease;
}

.theme-moon {
  opacity: 0;
  transform: translateY(16px) rotate(30deg);
}

[data-theme="dark"] .theme-sun {
  opacity: 0;
  transform: translateY(-16px) rotate(-30deg);
}

[data-theme="dark"] .theme-moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: calc(100svh - var(--header-height));
  overflow: clip;
  padding-top: calc(var(--header-height) + clamp(16px, 3vh, 36px));
  padding-bottom: clamp(56px, 7vh, 76px);
  isolation: isolate;
}

.hero > .container.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 1420px);
  max-width: 1420px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
  box-sizing: border-box;
}

.hero-ambient {
  position: absolute;
  z-index: 0;
  inset: -8% -4%;
  max-width: none;
  pointer-events: none;
  transform: translate3d(var(--hero-ambient-x, 0px), var(--hero-ambient-y, 0px), 0);
  will-change: transform;
}

.hero-ambient-shift {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(208, 139, 93, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 62%, rgba(166, 106, 66, 0.1), transparent 72%),
    radial-gradient(ellipse 40% 35% at 48% 88%, rgba(229, 217, 200, 0.12), transparent 75%);
  animation: hero-ambient-drift 15s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: 18%;
  left: -220px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(229, 217, 200, 0.38);
  content: "";
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.85;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(56px, 7vw, 120px);
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
}

.hero-copy,
.hero-card-slot,
.developer-card,
.about-grid > *,
.project-card,
.game-layout > * {
  min-width: 0;
}

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

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--caramel);
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--caramel);
  font-weight: 400;
}

.hero h1 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(2.55rem, 4.6vw, 4.75rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.hero-title-plain {
  color: var(--ink);
}

.hero-accent {
  background-image: linear-gradient(
    115deg,
    #8f6a24 0%,
    #7a581c 38%,
    #6a4c18 72%,
    #5a4014 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero-title-plain {
  color: #f3efe8;
}

[data-theme="dark"] .hero-accent {
  background-image: linear-gradient(
    115deg,
    #f6e7c1 0%,
    #e8c97a 38%,
    #d6a74e 72%,
    #b9872d 100%
  );
}

.hero-text {
  max-width: 590px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 2px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  padding: 14px 24px;
  color: var(--white);
  background: var(--brown-dark);
  box-shadow: 0 12px 24px rgba(64, 42, 32, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--brown);
  box-shadow: 0 16px 28px rgba(64, 42, 32, 0.22);
}

.button-secondary {
  padding: 14px 24px;
  border-color: var(--border);
  color: var(--brown);
  background: var(--white);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--caramel);
  box-shadow: var(--shadow-soft);
}

.hero .button {
  transition:
    transform 210ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 210ms ease,
    background 210ms ease,
    background-image 210ms ease,
    border-color 210ms ease;
}

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

.hero .button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.hero .button-primary {
  background-image: linear-gradient(
    160deg,
    rgba(255, 244, 210, 0.14),
    transparent 42%,
    transparent 100%
  );
  background-color: var(--brown-dark);
  background-blend-mode: soft-light;
}

.hero .button-primary:hover:not(:disabled) {
  background-image: linear-gradient(
    160deg,
    rgba(255, 244, 210, 0.22),
    transparent 48%,
    transparent 100%
  );
}

.hero .button:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.55);
  outline-offset: 4px;
}

.button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-link {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
}

.hero-animate {
  opacity: 0;
  animation: hero-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.developer-card.hero-animate {
  animation-delay: 140ms;
}

.js.brand-revealing .hero-animate,
.js.brand-revealing .hero-copy > .eyebrow,
.js.brand-revealing .hero-copy > h1,
.js.brand-revealing .hero-copy > .hero-text,
.js.brand-revealing .hero-copy > .hero-actions {
  opacity: 0;
  animation: none;
}

.js.brand-reveal-done .hero-copy.hero-animate {
  opacity: 1;
  animation: none;
}

.js.brand-reveal-done .hero-copy > .eyebrow,
.js.brand-reveal-done .hero-copy > h1,
.js.brand-reveal-done .hero-copy > .hero-text,
.js.brand-reveal-done .hero-copy > .hero-actions,
.js.brand-reveal-done .hero-card-slot.hero-animate {
  opacity: 0;
  animation: hero-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.js.brand-reveal-done .hero-copy > .eyebrow {
  animation-delay: 0ms;
}

.js.brand-reveal-done .hero-copy > h1 {
  animation-delay: 90ms;
}

.js.brand-reveal-done .hero-copy > .hero-text {
  animation-delay: 190ms;
}

.js.brand-reveal-done .hero-copy > .hero-actions {
  animation-delay: 290ms;
}

.js.brand-reveal-done .hero-card-slot.hero-animate {
  animation-delay: 390ms;
}

.hero-card-slot {
  width: min(100%, 470px);
  max-width: 520px;
  justify-self: end;
  margin-top: 24px;
}

.hero-card-tilt {
  width: 100%;
  transform:
    perspective(900px)
    rotate(1deg)
    rotateX(var(--parallax-rx, 0deg))
    rotateY(var(--parallax-ry, 0deg))
    translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--card-lift, 0px)), 0);
  transform-style: preserve-3d;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  will-change: transform;
}

.developer-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 44%),
    var(--brown-dark);
  box-shadow: var(--shadow);
  color: var(--cream-light);
}

.active-project-panel {
  border-color: rgba(208, 139, 93, 0.28);
  background:
    radial-gradient(circle at 85% 10%, rgba(208, 139, 93, 0.16), transparent 32%),
    linear-gradient(145deg, #211915, #100d0b);
}

@media (hover: hover) and (pointer: fine) {
  .hero-card-slot:hover .hero-card-tilt {
    --card-lift: -4px;
  }

  .hero-card-slot:hover .active-project-panel {
    border-color: rgba(208, 139, 93, 0.42);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(212, 175, 55, 0.08);
    transition: border-color 220ms ease, box-shadow 220ms ease;
  }
}

.hero .availability i {
  display: block;
  animation: hero-status-pulse 2.8s ease-in-out infinite;
}

.developer-card::before,
.developer-card::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  pointer-events: none;
}

.developer-card::before {
  top: -48px;
  right: -42px;
  width: 96px;
  height: 96px;
  border: 1px solid var(--sand);
}

.developer-card::after {
  bottom: -36px;
  left: -18px;
  width: 72px;
  height: 72px;
  background: var(--caramel);
  opacity: 0.18;
}

.developer-card-top,
.developer-profile,
.floating-stack {
  display: flex;
  align-items: center;
}

.developer-card-top {
  margin-bottom: 34px;
  justify-content: space-between;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability i,
.game-status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fc191;
  box-shadow: 0 0 0 5px rgba(143, 193, 145, 0.12);
}

.card-dots {
  color: var(--sand);
  letter-spacing: 0.15em;
}

.developer-profile {
  gap: 16px;
}

.active-project-heading {
  display: flex;
  align-items: center;
  gap: 18px;
}

.active-project-heading small,
.active-project-heading strong {
  display: block;
}

.active-project-heading small {
  margin-bottom: 3px;
  color: var(--muted-on-dark);
  font-size: 0.7rem;
}

.active-project-heading strong {
  color: var(--text-on-dark);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
}

.active-project-mark {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 24px;
  color: #211915;
  background: linear-gradient(145deg, #ead8c1, #c99a79);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.12);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.profile-monogram {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: var(--brown-dark);
  background: var(--sand);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.developer-profile strong,
.developer-profile span {
  display: block;
}

.developer-profile strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.developer-profile span {
  margin-top: 4px;
  color: var(--sand);
  font-size: 0.75rem;
}

.code-window {
  display: grid;
  margin: 28px 0;
  padding: 22px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #c9b9a8;
  background: rgba(0, 0, 0, 0.18);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.65rem, 1.8vw, 0.76rem);
  overflow-wrap: anywhere;
}

.code-window b {
  color: #d9a27c;
  font-weight: 500;
}

.code-window i {
  color: #e7d7c6;
  font-style: normal;
}

.project-status-lines span {
  animation: status-breathe 4.8s ease-in-out infinite;
}

.project-status-lines span:nth-child(2) {
  animation-delay: 0.8s;
}

.project-status-lines span:nth-child(3) {
  animation-delay: 1.6s;
}

.floating-stack {
  flex-wrap: wrap;
  gap: 9px;
}

.floating-stack span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  font-weight: 700;
}

.monogram {
  position: relative;
  z-index: 2;
  display: flex;
  width: 64%;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 249, 0.32);
  border-radius: 50%;
  color: var(--cream-light);
  background: var(--brown-dark);
  box-shadow: var(--shadow);
}

.monogram span {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 8vw, 7rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.monogram small {
  margin-top: 16px;
  color: var(--sand);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  border: 1px solid var(--sand);
  border-radius: 50%;
}

.orbit-one {
  inset: 4%;
  animation: rotate 24s linear infinite;
}

.orbit-one::after {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--caramel);
  content: "";
}

.orbit-two {
  inset: 16%;
  border-style: dashed;
}

.visual-note {
  position: absolute;
  z-index: 3;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brown);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
}

.note-top {
  top: 13%;
  right: 0;
  transform: rotate(5deg);
}

.note-bottom {
  bottom: 15%;
  left: -2%;
  transform: rotate(-6deg);
}

.section-heading {
  display: flex;
  margin-bottom: 58px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  letter-spacing: -0.04em;
}

.section-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.15fr 0.85fr;
}

.about-card,
.skills-card,
.project-card,
.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow-soft);
}

.about-card {
  padding: clamp(32px, 5vw, 58px);
}

.about-card .lead {
  margin-bottom: 30px;
  color: var(--brown-dark);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.about-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.skills-card {
  padding: clamp(28px, 4vw, 42px);
  background: var(--brown-dark);
}

.about-side {
  display: grid;
  gap: 18px;
}

.status-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.focus-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.focus-card small,
.focus-card strong {
  display: block;
}

.focus-card small {
  margin: 22px 0 7px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-card strong {
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}

.focus-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--caramel);
  font-size: 0.8rem;
}

.card-label {
  display: flex;
  margin-bottom: 34px;
  align-items: center;
  justify-content: space-between;
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.skill-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.skill-list li {
  padding: 10px 17px;
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 999px;
  color: var(--cream-light);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
}

.projects-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 28px;
  flex-direction: column;
  overflow: hidden;
  border-color: rgba(208, 139, 93, 0.2);
  color: var(--text-on-dark);
  background:
    linear-gradient(180deg, rgba(208, 139, 93, 0.07), transparent 25%),
    #1b1613;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.project-featured {
  color: var(--text-on-dark);
  background:
    linear-gradient(150deg, rgba(208, 139, 93, 0.14), transparent 42%),
    #100d0b;
}

.project-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-index {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-featured .project-index {
  color: var(--sand);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status-progress {
  color: #ead0b3;
  background: rgba(162, 93, 47, 0.22);
  border-color: rgba(208, 139, 93, 0.28);
}

.status-progress::before {
  background: #d08b5d;
}

.status-done {
  color: #35533b;
  background: #dce8dc;
}

.status-done::before {
  background: #4e7655;
}

.status-active {
  color: #d9f1dc;
  background: rgba(82, 130, 89, 0.3);
  border-color: rgba(133, 189, 140, 0.22);
}

.status-active::before {
  background: #85bd8c;
  box-shadow: 0 0 0 4px rgba(133, 189, 140, 0.12);
}

.status-planned {
  color: #dfd2c3;
  background: rgba(255, 250, 243, 0.06);
  border-color: rgba(255, 250, 243, 0.12);
}

.status-planned::before {
  background: var(--caramel);
}

/* Shared preview stage */
.project-preview-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 11;
  margin-bottom: 22px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(208, 139, 93, 0.1), transparent 70%),
    linear-gradient(160deg, #221c18, #14110f);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-preview-stage-soon {
  background:
    radial-gradient(ellipse 50% 45% at 50% 50%, rgba(208, 139, 93, 0.08), transparent 65%),
    #14110f;
}

/* Phone mockup — Yaşam Takibi */
.mock-phone {
  position: relative;
  width: min(42%, 118px);
  aspect-ratio: 9 / 17;
  padding: 7px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 18px;
  background: linear-gradient(160deg, #2a2320, #151210);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 250, 243, 0.04);
}

.mock-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: #0c0a09;
  transform: translateX(-50%);
}

.mock-phone-screen {
  display: flex;
  height: 100%;
  padding: 12px 8px 8px;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1512, #0f0d0b);
}

.mock-phone-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
}

.mock-phone-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8c97a, #b9872d);
}

.mock-phone-header strong {
  display: block;
  width: 36%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.55);
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.mock-task-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-task {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border: 1px solid rgba(255, 250, 243, 0.08);
  border-radius: 6px;
  background: rgba(255, 250, 243, 0.04);
}

.mock-task i {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(208, 139, 93, 0.55);
  border-radius: 50%;
}

.mock-task.is-done i {
  border-color: transparent;
  background: linear-gradient(135deg, #e8c97a, #b9872d);
}

.mock-task span {
  display: block;
  width: 70%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.28);
}

.mock-task.is-done span {
  width: 55%;
  opacity: 0.45;
}

.mock-water {
  padding: 5px;
  border: 1px solid rgba(208, 139, 93, 0.2);
  border-radius: 7px;
  background: rgba(208, 139, 93, 0.08);
}

.mock-water-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mock-water-label span {
  width: 40%;
  height: 3px;
  border-radius: 999px;
  background: rgba(232, 201, 122, 0.7);
}

.mock-water-label em {
  width: 18%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.25);
}

.mock-water-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.08);
}

.mock-water-bar b {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8c97a, #b9872d);
}

.mock-med {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin-top: auto;
  border: 1px solid rgba(255, 250, 243, 0.1);
  border-radius: 7px;
  background: rgba(255, 250, 243, 0.04);
}

.mock-med > i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(232, 201, 122, 0.55), rgba(185, 135, 45, 0.35));
}

.mock-med div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-med span {
  display: block;
  width: 72%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.4);
}

.mock-med em {
  display: block;
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: rgba(208, 139, 93, 0.55);
}

/* Browser mockup — Web Sitemiz */
.mock-browser {
  width: min(88%, 240px);
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: 10px;
  background: #0f0d0b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.mock-browser-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 250, 243, 0.08);
  background: #1a1512;
}

.mock-browser-dots {
  display: flex;
  gap: 4px;
}

.mock-browser-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.22);
}

.mock-browser-dots i:nth-child(1) {
  background: rgba(208, 139, 93, 0.55);
}

.mock-browser-url {
  flex: 1;
  height: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.06);
}

.mock-browser-url span {
  display: block;
  width: 48%;
  height: 3px;
  margin-top: 3.5px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.22);
}

.mock-browser-body {
  display: flex;
  padding: 10px;
  flex-direction: column;
  gap: 8px;
}

.mock-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mock-site-nav > b {
  width: 18px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #e8c97a, #b9872d);
}

.mock-site-nav > div {
  display: flex;
  gap: 4px;
}

.mock-site-nav span {
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.22);
}

.mock-site-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 2px;
}

.mock-site-hero span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.38);
}

.mock-site-hero span:nth-child(1) {
  width: 72%;
}

.mock-site-hero span:nth-child(3) {
  width: 48%;
  height: 4px;
  background: rgba(255, 250, 243, 0.2);
}

.mock-site-accent {
  width: 40% !important;
  background: linear-gradient(90deg, #f6e7c1, #d6a74e, #b9872d) !important;
}

.mock-site-card {
  display: flex;
  padding: 7px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(208, 139, 93, 0.22);
  border-radius: 7px;
  background: rgba(255, 250, 243, 0.04);
}

.mock-site-card em {
  display: block;
  width: 28%;
  height: 3px;
  border-radius: 999px;
  background: rgba(208, 139, 93, 0.7);
}

.mock-site-card span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.2);
}

.mock-site-card span:nth-of-type(1) {
  width: 80%;
}

.mock-site-card span:nth-of-type(2) {
  width: 55%;
}

/* Soon mockup — Gelecek Proje */
.mock-soon {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
}

.mock-soon-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(
    rgba(255, 250, 243, 0.18) 1px,
    transparent 1px
  );
  background-size: 14px 14px;
}

.mock-soon-glow {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 201, 122, 0.28) 0%,
    rgba(185, 135, 45, 0.08) 45%,
    transparent 70%
  );
  filter: blur(2px);
  animation: mock-soon-drift 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.mock-soon-label {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border: 1px solid rgba(232, 201, 122, 0.35);
  border-radius: 999px;
  color: #e8c97a;
  background: rgba(16, 13, 11, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes mock-soon-drift {
  from {
    transform: translate(-12%, -8%) scale(0.92);
    opacity: 0.7;
  }

  to {
    transform: translate(14%, 10%) scale(1.08);
    opacity: 1;
  }
}

.project-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-body h3 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.project-body p {
  max-width: 490px;
  margin-bottom: 0;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  line-height: 1.55;
}

.project-featured .project-body p {
  color: var(--muted-on-dark);
}

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

.tech-list li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 999px;
  color: var(--text-on-dark);
  background: rgba(255, 250, 243, 0.06);
  font-size: 0.66rem;
  font-weight: 750;
}

.project-featured .tech-list li {
  border-color: rgba(255, 250, 243, 0.18);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.05);
}

.project-actions {
  display: flex;
  margin-top: auto;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 250, 243, 0.12);
}

.project-details-toggle,
.project-preview {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 999px;
  color: var(--text-on-dark);
  background: rgba(255, 250, 243, 0.05);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.project-details-toggle:hover,
.project-preview:hover {
  border-color: var(--caramel);
  color: #181411;
  background: var(--caramel);
  transform: translateY(-2px);
}

.project-preview.is-disabled,
.project-preview:disabled {
  border-color: rgba(255, 250, 243, 0.1);
  color: var(--muted-on-dark);
  background: rgba(255, 250, 243, 0.025);
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.project-details-toggle:focus-visible,
.project-preview:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    border-color: rgba(208, 139, 93, 0.42);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-5px);
  }

  .project-card:hover .project-preview-stage {
    transform: scale(1.015);
  }

  .project-card:focus-within {
    border-color: rgba(208, 139, 93, 0.42);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

@media (hover: none), (pointer: coarse) {
  .project-card:hover,
  .project-card:focus-within {
    transform: none;
    box-shadow: var(--shadow-soft);
  }

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

  .project-details-toggle:hover,
  .project-preview:hover {
    transform: none;
  }
}

.project-modal {
  width: min(calc(100% - 32px), 680px);
  max-height: min(86vh, 780px);
  max-height: min(86dvh, 780px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(208, 139, 93, 0.34);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
  background: #181310;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.project-modal::backdrop {
  background: rgba(10, 8, 7, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.project-modal[open] {
  animation: modal-enter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-modal-shell {
  position: relative;
  padding: clamp(28px, 6vw, 52px);
}

.project-modal h2 {
  max-width: calc(100% - 48px);
  margin-bottom: 34px;
  color: var(--text-on-dark);
  font-size: clamp(2.25rem, 6vw, 3.7rem);
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 50%;
  color: var(--text-on-dark);
  background: rgba(255, 250, 243, 0.05);
  font-size: 1.45rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  border-color: var(--caramel);
  background: rgba(208, 139, 93, 0.16);
  transform: rotate(6deg);
}

.modal-section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 250, 243, 0.12);
}

.modal-section h3 {
  margin-bottom: 10px;
  color: var(--caramel);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-section p,
.modal-section > ul:not(.tech-list) {
  margin-bottom: 0;
  color: var(--muted-on-dark);
}

.modal-section > ul:not(.tech-list) {
  display: grid;
  padding-left: 20px;
  gap: 7px;
}

.modal-tech-list {
  margin-bottom: 0;
}

.game-layout {
  display: grid;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  grid-template-columns: 0.8fr 1.2fr;
}

.game-intro > p {
  margin-bottom: 32px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.7vw, 1.8rem);
  line-height: 1.45;
}

.game-intro strong {
  color: var(--brown);
  font-weight: 400;
}

.game-rule {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.game-rule > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--cream-light);
  background: var(--caramel);
  font-family: var(--serif);
}

.game-rule p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.game-card {
  position: relative;
  padding: clamp(28px, 5vw, 50px);
  overflow: hidden;
  background: var(--white);
}

.game-card-head {
  display: flex;
  margin-bottom: 34px;
  padding-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--brown);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.attempts {
  color: var(--muted);
}

.attempts strong {
  color: var(--brown);
}

.game-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.score-board {
  display: grid;
  margin-bottom: 32px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cream-light);
}

.score-board > div {
  padding: 18px 12px;
  text-align: center;
}

.score-board > div + div {
  border-left: 1px solid var(--border);
}

.score-board small,
.score-board strong {
  display: block;
}

.score-board small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-board strong {
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.celebration {
  position: absolute;
  z-index: 5;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.celebration i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: 9px;
  height: 18px;
  border-radius: 3px;
  background: var(--color);
  opacity: 0;
  transform: rotate(var(--rotation));
}

.celebration i:nth-child(1) { --x: 8%; --color: #d08b5d; --rotation: 12deg; }
.celebration i:nth-child(2) { --x: 20%; --color: #e5d9c8; --rotation: -22deg; }
.celebration i:nth-child(3) { --x: 34%; --color: #789276; --rotation: 35deg; }
.celebration i:nth-child(4) { --x: 47%; --color: #b56e54; --rotation: -15deg; }
.celebration i:nth-child(5) { --x: 61%; --color: #e0b46f; --rotation: 45deg; }
.celebration i:nth-child(6) { --x: 73%; --color: #8d6b55; --rotation: -32deg; }
.celebration i:nth-child(7) { --x: 86%; --color: #9bb29a; --rotation: 20deg; }
.celebration i:nth-child(8) { --x: 94%; --color: #d08b5d; --rotation: -8deg; }

.game-card.is-celebrating {
  animation: celebrate-card 520ms ease;
}

.game-card.is-celebrating .celebration i {
  animation: confetti-fall 1200ms ease-out forwards;
}

.game-card.is-celebrating .celebration i:nth-child(even) {
  animation-delay: 90ms;
}

#guess-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.guess-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

#guess-input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream-light);
  font-size: 1.05rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

#guess-input:focus {
  border-color: var(--caramel);
  box-shadow: 0 0 0 4px rgba(166, 106, 66, 0.1);
  outline: none;
}

#guess-input::placeholder {
  color: #aaa097;
}

.guess-controls .button {
  min-width: 132px;
}

.game-message {
  min-height: 30px;
  margin: 22px 0;
  padding-left: 13px;
  border-left: 2px solid var(--sand);
  color: var(--muted);
  font-size: 0.9rem;
}

.game-message.is-error {
  border-color: var(--error);
  color: var(--error);
}

.game-message.is-success {
  border-color: var(--success);
  color: var(--success);
  font-weight: 700;
}

.button-ghost {
  min-height: auto;
  padding: 8px 0;
  border: 0;
  color: var(--brown);
  background: transparent;
}

.site-footer {
  padding: 70px 0 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  color: var(--sand);
  background: var(--brown-dark);
}

.footer-main,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-main {
  padding-bottom: 50px;
}

.footer-copy {
  max-width: 470px;
}

.footer-brand {
  width: fit-content;
  margin-bottom: 22px;
  color: var(--cream-light);
}

.footer-copy p,
.footer-bottom p {
  margin: 0;
}

.footer-copy p {
  color: var(--sand);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.4;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--cream-light);
  font-size: 0.76rem;
  font-weight: 750;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.social-link b,
.social-link i {
  font-style: normal;
  transition: transform 180ms ease;
}

.social-link:hover {
  border-color: var(--caramel);
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.social-link:hover i {
  transform: translateX(3px);
}

.social-link:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
}

.social-link.is-disabled {
  color: var(--muted-on-dark);
  cursor: not-allowed;
  opacity: 0.58;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  font-size: 0.75rem;
}

.footer-bottom a {
  font-size: 0.78rem;
  font-weight: 700;
}


.brand-reveal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0d;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 650ms ease;
}

.brand-reveal.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.brand-reveal.is-done {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.brand-reveal-logo-wrap {
  position: relative;
  width: clamp(120px, 36vw, 200px);
  overflow: hidden;
  line-height: 0;
}

.brand-reveal-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.92);
  filter: blur(6px);
  animation: brand-reveal-logo-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand-reveal-logo-wrap::after {
  position: absolute;
  inset: -30% -45%;
  background: linear-gradient(
    125deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 244, 210, 0.42) 50%,
    rgba(255, 255, 255, 0.12) 56%,
    transparent 62%
  );
  transform: translate(-120%, -120%);
  animation: brand-reveal-shine 2210ms cubic-bezier(0.22, 1, 0.36, 1) 720ms forwards;
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}

html.brand-revealing,
html.brand-revealing body {
  overflow: hidden;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
}

.js.brand-revealing .site-header,
.js.brand-revealing main,
.js.brand-revealing .site-footer {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(12px);
}

.js.brand-reveal-done .site-header,
.js.brand-reveal-done main,
.js.brand-reveal-done .site-footer {
  animation: brand-page-enter 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes brand-reveal-logo-in {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes brand-reveal-shine {
  to {
    transform: translate(120%, 120%);
  }
}

@keyframes brand-page-enter {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .brand-reveal-logo-wrap {
    width: clamp(180px, 16vw, 220px);
  }
}

.quote-section {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60vh;
  margin: 0;
  padding-block: clamp(72px, 9vw, 120px);
  overflow: hidden;
  background: #0b0b0d;
  color: #f5f5f5;
}

.quote-section-frame {
  display: flex;
  width: min(100% - 40px, 920px);
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  text-align: center;
}

.quote-content {
  margin: 0;
  width: 100%;
  max-width: 920px;
}

.quote-text {
  margin: 0 auto;
  min-height: calc(1.12em * 3);
  max-width: 920px;
  color: #f5f5f5;
  font-family: "Cormorant Garamond", "Playfair Display", "EB Garamond", Marcellus, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.2vw, 4.25rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.quote-caret {
  display: none;
  width: 2px;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: #d4af37;
}

.quote-content.is-typing .quote-caret {
  display: inline-block;
  animation: quote-caret-blink 720ms steps(1, end) infinite;
}

.quote-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}

.quote-content.is-complete .quote-meta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.quote-attribution {
  color: #d4af37;
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 20px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes quote-caret-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .brand-reveal-logo {
    animation-duration: 480ms;
  }

  .brand-reveal-logo-wrap::after {
    animation-duration: 1180ms;
    animation-delay: 220ms;
  }

  .js.brand-reveal-done .site-header,
  .js.brand-reveal-done main,
  .js.brand-reveal-done .site-footer {
    animation-duration: 480ms;
  }
}

@media (max-width: 720px) {
  .quote-section-frame {
    width: min(100% - 28px, 920px);
  }

  .quote-text {
    min-height: calc(1.12em * 4);
    font-size: clamp(2.1rem, 7.2vw, 2.6rem);
  }

  .quote-meta {
    gap: 12px;
    margin-top: 1.1rem;
  }


  .quote-attribution {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-caret {
    display: none !important;
    animation: none !important;
  }

  .quote-meta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

[data-theme="dark"] .site-header {
  border-bottom-color: var(--border);
  background: rgba(24, 20, 17, 0.84);
}

[data-theme="dark"] body::before {
  opacity: 0.5;
}

[data-theme="dark"] .about-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .game-card {
  background: rgba(41, 34, 29, 0.82);
}

[data-theme="dark"] .project-featured,
[data-theme="dark"] .skills-card,
[data-theme="dark"] .developer-card {
  background-color: #100d0b;
}

[data-theme="dark"] .button-primary,
[data-theme="dark"] .developer-card,
[data-theme="dark"] .project-featured,
[data-theme="dark"] .skills-card,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .social-links a,
[data-theme="dark"] .footer-brand {
  color: var(--text-on-dark);
}

[data-theme="dark"] .profile-monogram {
  color: #181411;
}

[data-theme="dark"] .about-card .lead {
  color: var(--text-on-dark);
}

[data-theme="dark"] .about-card p:last-child,
[data-theme="dark"] .focus-card small {
  color: var(--muted-on-dark);
}

[data-theme="dark"] .focus-card strong {
  color: #efb084;
}

[data-theme="dark"] .skill-list li {
  border-color: rgba(255, 250, 243, 0.28);
  color: var(--text-on-dark);
  background: rgba(255, 250, 243, 0.08);
}

[data-theme="dark"] .card-label,
[data-theme="dark"] .project-featured .project-body p,
[data-theme="dark"] .project-featured .tech-list li,
[data-theme="dark"] .project-featured .project-details-toggle {
  color: var(--muted-on-dark);
}

[data-theme="dark"] .button-primary:hover:not(:disabled) {
  color: #181411;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ambient-drift {
  0% {
    transform: translate3d(-1.2%, -0.8%, 0) scale(1);
  }

  100% {
    transform: translate3d(1.4%, 1%, 0) scale(1.03);
  }
}

@keyframes hero-status-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(143, 193, 145, 0.12);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(143, 193, 145, 0.06);
  }
}

@keyframes status-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes celebrate-card {
  50% { transform: scale(1.015); }
}

@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(var(--rotation)); }
  100% { opacity: 0; transform: translateY(520px) rotate(420deg); }
}

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

@media (max-width: 1100px) {
  .hero-grid {
    gap: clamp(40px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  }

  .hero-card-slot {
    width: min(100%, 420px);
    margin-top: 18px;
  }
}

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

  .hero-card-slot {
    justify-self: start;
    width: min(100%, 440px);
    max-width: 100%;
    margin-top: 8px;
  }

  .about-grid,
  .game-layout {
    grid-template-columns: 1fr;
  }

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

  .game-intro {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 84px 0;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-logo-footer {
    height: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions {
    gap: 10px;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--cream-light);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

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

  .site-nav a {
    display: flex;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 10px;
    align-items: center;
  }

  .site-nav a:hover {
    background: var(--cream);
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: clamp(2.55rem, 11.5vw, 4.1rem);
  }

  .hero-visual,
  .hero-card-slot,
  .developer-card {
    width: min(100%, 390px);
    justify-self: center;
  }

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

  .section-number {
    width: 44px;
    height: 44px;
  }

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

  .project-preview-stage {
    aspect-ratio: 16 / 10;
  }

  .mock-phone {
    width: min(36%, 108px);
  }

  .mock-browser {
    width: min(86%, 260px);
  }
}

@media (max-width: 520px) {
  .site-header .brand > span:last-child {
    display: none;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .hero-visual {
    width: 100%;
  }

  .visual-note {
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .about-card,
  .skills-card,
  .project-card,
  .game-card {
    border-radius: var(--radius-md);
  }

  .project-card {
    padding: 22px;
  }

  .project-preview-stage {
    aspect-ratio: 16 / 11;
    margin-bottom: 18px;
    border-radius: 14px;
  }

  .mock-phone {
    width: min(38%, 100px);
  }

  .mock-browser {
    width: min(90%, 220px);
  }

  .project-body h3 {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
  }

  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-details-toggle,
  .project-preview {
    width: 100%;
  }

  .project-top {
    align-items: flex-start;
  }

  .status {
    padding: 6px 9px;
  }

  .guess-controls {
    grid-template-columns: 1fr;
  }

  .guess-controls .button {
    width: 100%;
    min-height: 48px;
  }

  #guess-input {
    min-height: 48px;
    font-size: 16px;
  }

  .project-modal {
    width: min(calc(100% - 20px), 680px);
    max-height: min(90dvh, 100%);
    margin: max(12px, env(safe-area-inset-top, 0px)) auto;
  }

  .project-modal-shell {
    padding: 22px 18px 24px;
  }

  .modal-close {
    position: sticky;
    top: 8px;
    float: right;
    margin: 0 0 8px 8px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 9.2vw, 3.4rem);
    overflow-wrap: break-word;
  }

  .status-grid,
  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .score-board strong {
    font-size: 1.2rem;
  }

  .social-link > span {
    display: none;
  }

  .social-link {
    min-width: 44px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-soon-glow {
    animation: none !important;
    transform: none !important;
    opacity: 0.85;
  }

  .project-card:hover,
  .project-card:hover .project-preview-stage {
    transform: none !important;
  }

  .hero-ambient,
  .hero-ambient-shift {
    animation: none !important;
    transform: none !important;
  }

  .hero .availability i {
    animation: none !important;
  }

  .hero .active-project-panel {
    transform: none;
  }

  .hero-card-tilt {
    transform: rotate(1deg);
    transition: none;
  }

  .js.brand-reveal-done .hero-copy > .eyebrow,
  .js.brand-reveal-done .hero-copy > h1,
  .js.brand-reveal-done .hero-copy > .hero-text,
  .js.brand-reveal-done .hero-copy > .hero-actions,
  .js.brand-reveal-done .hero-card-slot.hero-animate,
  .hero-animate {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
