:root {
  --bg: #08111f;
  --surface: #101c2f;
  --surface-strong: #162943;
  --surface-soft: #0c1728;
  --text: #f4f7fb;
  --muted: #a8b5c8;
  --muted-strong: #d3ddeb;
  --muted-dark: #77869c;
  --line: rgba(181, 204, 229, 0.15);
  --line-strong: rgba(181, 204, 229, 0.27);
  --accent: #ff5a60;
  --accent-strong: #db0007;
  --accent-dark: #7a0019;
  --accent-fill: #db0007;
  --accent-fill-hover: #9c102b;
  --on-accent: #ffffff;
  --warm: #f5b77a;
  --danger: #ffacb5;
  --container: 1200px;
  --section-space: clamp(1.5rem, 2.8vw, 2.5rem);
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  --heading-xl: clamp(1.75rem, 2.8vw, 2.5rem);
  --heading-lg: clamp(1.4rem, 2vw, 1.85rem);
  --heading-md: clamp(1.1rem, 1.5vw, 1.3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 5%, rgba(171, 0, 26, 0.11), transparent 27rem),
    radial-gradient(circle at 5% 40%, rgba(75, 111, 190, 0.08), transparent 28rem),
    var(--bg);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font-size: 1rem;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.button,
.nav-link,
.eyebrow,
.project-category,
.project-status,
.section-label,
.resume-kicker,
.footer-label {
  font-family: "Space Grotesk", sans-serif;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--heading-xl);
}

h2 {
  font-size: var(--heading-lg);
}

h3 {
  font-size: var(--heading-md);
}

p {
  color: var(--muted);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--on-accent);
  background: var(--accent-fill);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--on-accent);
  background: var(--accent-fill);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-name {
  letter-spacing: -0.03em;
}

.nav-menu,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-menu {
  gap: 2rem;
}

.nav-links {
  gap: 1.7rem;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 10px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-cta {
  padding: 0.65rem 1rem;
  color: var(--on-accent);
  background: var(--accent-fill);
  font-size: 0.86rem;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--muted-strong);
  border-radius: 3px;
}

main {
  min-height: 0;
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section-border {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-tint {
  background: linear-gradient(180deg, rgba(15, 29, 49, 0.72), rgba(12, 23, 40, 0.92));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow-dot,
.status-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--accent-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(219, 0, 7, 0.11);
}

.page-hero {
  max-width: var(--container);
  padding-top: var(--section-space);
  padding-bottom: 1rem;
}

.page-hero h1 {
  max-width: 830px;
  margin-bottom: 1rem;
  font-size: var(--heading-xl);
}

.page-lede {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  line-height: 1.65;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 0;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.hero h1 {
  max-width: 730px;
  margin-bottom: 1.15rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 2rem;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button {
  min-height: 3.1rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.button-primary {
  color: var(--on-accent);
  background: var(--accent-fill);
}

.button-primary:hover {
  background: var(--accent-fill-hover);
}

.button-ghost {
  color: var(--muted-strong);
  background: transparent;
  border-color: var(--line-strong);
}

.button-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent);
}

.button-small {
  min-height: 2.55rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: var(--muted-dark);
  font-size: 0.85rem;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  min-height: 0;
  isolation: isolate;
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.68;
  pointer-events: none;
}

.visual-glow-one {
  top: 7%;
  right: 3%;
  width: 18rem;
  height: 18rem;
  background: rgba(219, 0, 7, 0.18);
  filter: blur(45px);
}

.visual-glow-two {
  bottom: 12%;
  left: 7%;
  width: 12rem;
  height: 12rem;
  background: rgba(91, 126, 221, 0.16);
  filter: blur(42px);
}

.profile-card {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: min(100%, 360px);
  z-index: 1;
  overflow: hidden;
  background: rgba(16, 28, 47, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: none;
}

.profile-image-wrap {
  height: 400px;
  overflow: hidden;
  background: var(--surface-strong);
  filter:
        brightness(1.1)
        contrast(1.15)
        saturate(1.3);
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.9) contrast(1.04);
}

.profile-card-body {
  padding: 1.1rem;
}

.card-kicker {
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card-body h2 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.profile-card-body p:not(.card-kicker) {
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.code-card {
  position: static;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: min(100%, 320px);
  padding: 0.75rem 1rem;
  background: #07101d;
  border: 1px solid rgba(255, 90, 96, 0.28);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transform: none;
}

.code-card p {
  margin: 0.25rem 0;
  color: #c6d2e5;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
}

.code-purple {
  color: #c6a8ff;
}

.code-yellow {
  color: #ffd28a;
}

.code-comment {
  color: #6b829f !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-item strong {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.narrow-heading {
  align-items: end;
}

.section-intro {
  max-width: 360px;
  margin-bottom: 0.25rem;
  font-size: 0.97rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: #ffb3b5;
}

.featured-project {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.featured-art,
.project-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 90, 96, 0.78), rgba(113, 25, 57, 0.78) 45%, rgba(11, 34, 60, 0.96)),
    var(--surface-strong);
}

.featured-art {
  min-height: 240px;
}

.featured-art::before,
.project-visual::before {
  position: absolute;
  top: 12%;
  right: -5%;
  width: 73%;
  height: 73%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  content: "";
  transform: rotate(-25deg);
}

.featured-art::after,
.project-visual::after {
  position: absolute;
  right: 16%;
  bottom: -22%;
  width: 70%;
  height: 70%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
  transform: rotate(25deg);
}

.featured-number,
.project-index {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  color: rgba(255, 244, 247, 0.85);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.featured-mark,
.project-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  color: rgba(255, 244, 247, 0.9);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.featured-art-label,
.project-visual-label {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  color: rgba(255, 244, 247, 0.85);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.featured-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.project-meta,
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.4rem;
}

.project-category,
.project-status,
.blog-meta time {
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: none;
}

.project-status .status-dot {
  width: 0.38rem;
  height: 0.38rem;
  box-shadow: none;
}

.featured-content h3 {
  margin-bottom: 1rem;
  font-size: var(--heading-lg);
}

.featured-content p {
  max-width: 580px;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}

.featured-content .text-link {
  margin-top: 1rem;
}

.tag-list,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list span,
.skill-cloud span {
  padding: 0.42rem 0.7rem;
  color: var(--muted-strong);
  background: rgba(255, 90, 96, 0.08);
  border: 1px solid rgba(255, 90, 96, 0.18);
  border-radius: 999px;
  font-size: 0.74rem;
}

.capability-grid,
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.capability-card,
.approach-card {
  min-height: 0;
  padding: 1.25rem;
  background: rgba(16, 28, 47, 0.65);
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.capability-card:hover,
.approach-card:hover {
  background: rgba(22, 41, 67, 0.8);
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.capability-index {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.capability-card h3,
.approach-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.capability-card p,
.approach-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.cta-section {
  text-align: center;
}

.cta-section .eyebrow {
  justify-content: center;
}

.cta-section h2 {
  max-width: 700px;
  margin: 0 auto 1rem;
}

.cta-section > p:not(.eyebrow) {
  max-width: 510px;
  margin: 0 auto 1.7rem;
}

.compact-cta {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.centered-row {
  justify-content: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.about-main h2 {
  max-width: 650px;
  margin-bottom: 1.7rem;
}

.about-main > p:not(.section-label) {
  max-width: 700px;
  margin-bottom: 1.35rem;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.65;
}

.quote-card {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 90, 96, 0.06);
  border-left: 2px solid var(--accent);
}

.quote-mark {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 0.8;
}

.quote-card p {
  margin: 0;
  color: var(--muted-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.about-aside {
  display: grid;
  gap: 1rem;
}

.surface-card {
  padding: 1.25rem;
  background: rgba(16, 28, 47, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.fact-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
}

.fact-list div {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list dt {
  color: var(--muted-dark);
  font-size: 0.76rem;
}

.fact-list dd {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.approach-grid .capability-index {
  margin-bottom: 0.75rem;
}

.projects-section {
  padding-top: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.project-visual {
  min-height: 150px;
}

.project-visual-1 {
  background: linear-gradient(145deg, rgba(219, 0, 7, 0.85), rgba(120, 27, 57, 0.9) 55%, rgba(15, 26, 52, 0.98));
}

.project-visual-1 .project-index,
.project-visual-1 .project-visual-label {
  color: rgba(255, 244, 247, 0.85);
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-body h2 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.project-card-body p {
  min-height: 0;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.project-card-body .text-link {
  margin-top: 1rem;
}

.split-callout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.split-callout h2 {
  max-width: 620px;
  margin-bottom: 0;
}

.split-callout p:not(.eyebrow) {
  margin-bottom: 1.4rem;
  font-size: 1.02rem;
}

.empty-state {
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state .eyebrow {
  justify-content: center;
}

.empty-state h2 {
  margin-bottom: 0.8rem;
}

.blog-section {
  padding-top: 1rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

.blog-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(16, 28, 47, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 180ms ease, transform 180ms ease;
}

.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
}

.blog-card-number {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.blog-card-content h2 {
  max-width: 720px;
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.blog-card-content p {
  max-width: 720px;
  margin-bottom: 1.6rem;
  font-size: 1rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-dark);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
}

.muted-link {
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.resume-page {
  padding-top: 2rem;
}

.resume-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.resume-toolbar .eyebrow {
  margin-bottom: 0;
}

.resume-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.resume-photo {
  width: 160px;
  height: 190px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  transform: rotate(-3deg);
}

.resume-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter:
        brightness(1.1)
        contrast(1.15)
        saturate(1.3);
}

.resume-kicker {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-header h1 {
  margin-bottom: 0.8rem;
  font-size: var(--heading-xl);
}

.resume-summary {
  max-width: 720px;
  margin-bottom: 1.2rem;
  color: var(--muted-strong);
}

.resume-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  color: var(--muted-dark);
  font-size: 0.84rem;
}

.resume-contact-list a {
  color: var(--muted-strong);
  text-decoration: none;
}

.resume-contact-list a:hover {
  color: var(--accent);
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 2rem;
  padding-top: 2rem;
}

.resume-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-heading {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.resume-section-heading > span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.resume-section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.resume-section > p {
  max-width: 720px;
  color: var(--muted-strong);
}

.resume-entry {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.resume-entry-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.resume-entry h3 {
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.resume-entry-top span {
  color: var(--muted-dark);
  font-size: 0.78rem;
  white-space: nowrap;
}

.resume-entry p,
.resume-entry li {
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-entry p {
  margin-bottom: 0;
}

.resume-entry ul {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
}

.resume-entry li + li {
  margin-top: 0.35rem;
}

.resume-side-card {
  padding: 1.45rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resume-side-card .resume-section-heading {
  margin-bottom: 1.2rem;
}

.credential-list {
  display: grid;
  gap: 0.8rem;
}

.credential {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.8rem 0;
  color: var(--muted-strong);
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.credential:first-child {
  border-top: 0;
}

.credential strong,
.credential small {
  display: block;
}

.credential strong {
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
}

.credential small {
  color: var(--muted-dark);
  font-size: 0.74rem;
}

.credential > span:last-child {
  color: var(--accent);
}

.credential:hover strong {
  color: var(--accent);
}

.resume-focus-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-top: 1rem;
}

.contact-details {
  display: grid;
  gap: 1.35rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  background: rgba(255, 90, 96, 0.08);
  border: 1px solid rgba(255, 90, 96, 0.2);
  border-radius: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.contact-detail .section-label {
  margin-bottom: 0.25rem;
}

.contact-detail p,
.contact-detail a {
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  text-decoration: none;
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-note .status-dot {
  flex: 0 0 auto;
  margin-top: 0.45rem;
}

.contact-note p {
  margin: 0;
  font-size: 0.88rem;
}

.contact-form-card {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.form-heading h2 {
  margin-bottom: 1.8rem;
  font-size: var(--heading-lg);
}

.form-alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1.3rem;
  border-radius: 10px;
  font-size: 0.87rem;
}

.form-alert-success {
  color: darkgreen;
  background: rgba(255, 90, 96, 0.1);
  border: 1px solid rgba(255, 90, 96, 0.25);
}

.form-alert-error {
  color: var(--danger);
  background: rgba(255, 172, 181, 0.08);
  border: 1px solid rgba(255, 172, 181, 0.22);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  color: var(--muted-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--text);
  background: rgba(8, 17, 31, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-dark);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 96, 0.1);
}

.form-field small {
  color: var(--muted-dark);
  font-size: 0.73rem;
}

.contact-form .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.error-page {
  max-width: 740px;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.error-page .eyebrow {
  justify-content: center;
}

.error-code {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.85;
}

.error-page h1 {
  margin-bottom: 1rem;
  font-size: var(--heading-xl);
}

.error-page .page-lede {
  margin: 0 auto 1.8rem;
}

.site-footer {
  padding-top: 2rem;
  background: #060d18;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-copy {
  max-width: 310px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-label {
  margin-bottom: 0.25rem;
  color: var(--muted-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: var(--muted-strong);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: var(--section-space);
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    width: min(620px, 100%);
    min-height: 0;
    margin-inline: auto;
  }

  .about-layout,
  .resume-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-callout {
    gap: 2rem;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.35rem;
    background: rgba(8, 17, 31, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-link {
    padding: 0.7rem 0;
  }

  .nav-cta {
    text-align: center;
  }

  .section {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
  }

  .page-hero {
    padding-top: var(--section-space);
    padding-bottom: 1rem;
  }

  .stats-grid,
  .capability-grid,
  .approach-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .featured-project,
  .split-callout {
    grid-template-columns: 1fr;
  }

  .featured-art {
    min-height: 200px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card-body p {
    min-height: auto;
  }

  .footer-main {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: 1.5rem;
    --heading-xl: clamp(1.625rem, 5vw, 1.875rem);
    --heading-lg: clamp(1.3rem, 4.5vw, 1.5rem);
  }

  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .brand-name {
    font-size: 0.95rem;
  }

  h1 {
    font-size: var(--heading-xl);
  }

  .hero {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
  }

  .hero-visual {
    min-height: 0;
  }

  .profile-card {
    top: auto;
    right: auto;
    left: auto;
  }

  .profile-image-wrap {
    height: 230px;
  }

  .profile-card-body {
    padding: 1.05rem;
  }

  .profile-card-body h2 {
    font-size: 1.2rem;
  }

  .code-card {
    right: 0;
    bottom: 0;
    width: 235px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .about-aside {
    grid-template-columns: 1fr;
  }

  .capability-card,
  .approach-card {
    min-height: auto;
  }

  .capability-index {
    margin-bottom: 0.75rem;
  }

  .blog-card {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 1.1rem;
  }

  .blog-card-number {
    font-size: 0.88rem;
  }

  .resume-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .resume-photo {
    width: 130px;
    height: 155px;
  }

  .resume-entry-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form .button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Simple content forms and text */
.content-form-page { max-width: 760px; }
.content-form-page h1 { margin: 12px 0 16px; }
.content-form-page .contact-form { margin-top: 16px; }
.post-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.blog-card-content { min-width: 0; }
.content-form-page button { cursor: pointer; }

/* Compact controls for editing and deleting personal content. */
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.entry-actions .text-link { margin-top: 0; }
.content-form-actions .button { width: auto; }
