@font-face {
  font-family: Poppins;
  src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

:root {
  color-scheme: light;
  --brown: #8B5440;
  --brown-deep: #6B3E2E;
  --sage: #E1EBE8;
  --paper: #F4F7F6;
  --white: #FFFFFF;
  --ink: #0A0A0A;
  --warm-brown: #D2A28C;

  --text: #242824;
  --muted: #505853;
  --line: #D2DCD7;
  --line-strong: #BDCCC4;
  --surface: var(--white);
  --surface-subtle: #F7FAF8;
  --ground: var(--paper);
  --accent: var(--brown);
  --accent-strong: #764533;
  --soft: var(--sage);
  --button: var(--brown);
  --button-text: var(--white);
  --header: rgba(255, 255, 255, 0.9);
  --header-scrolled: rgba(255, 255, 255, 0.97);

  --shadow-sm: 0 2px 6px rgba(24, 30, 26, 0.03), 0 1px 2px rgba(24, 30, 26, 0.02);
  --shadow: 0 10px 28px -8px rgba(24, 30, 26, 0.05), 0 3px 10px -2px rgba(24, 30, 26, 0.03);
  --shadow-raised: 0 18px 40px -12px rgba(24, 30, 26, 0.1), 0 6px 16px -4px rgba(24, 30, 26, 0.05);

  --scroll-thumb: var(--brown);
  --scroll-track: var(--sage);
  --radius-control: 12px;
  --radius-card: 20px;
  --radius-project: 24px;
  --gutter: 20px;
  --section-space: 64px;
  --card-space: 24px;
  --header-offset: 120px;

  --spring-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-bounce: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);

  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --text: #F4F7F6;
  --muted: #BDC9C2;
  --line: #2E3B33;
  --line-strong: #415147;
  --surface: #151E19;
  --surface-subtle: #19241E;
  --ground: #0A0A0A;
  --accent: var(--warm-brown);
  --accent-strong: var(--warm-brown);
  --soft: #1B2620;
  --button: var(--brown);
  --button-text: var(--white);
  --header: rgba(21, 30, 25, 0.9);
  --header-scrolled: rgba(21, 30, 25, 0.98);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.38), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
  --shadow-raised: 0 20px 44px -12px rgba(0, 0, 0, 0.55), 0 8px 20px -4px rgba(0, 0, 0, 0.35);

  --scroll-thumb: #E1EBE8;
  --scroll-track: #151E19;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --text: #F4F7F6;
    --muted: #BDC9C2;
    --line: #2E3B33;
    --line-strong: #415147;
    --surface: #151E19;
    --surface-subtle: #19241E;
    --ground: #0A0A0A;
    --accent: var(--warm-brown);
    --accent-strong: var(--warm-brown);
    --soft: #1B2620;
    --button: var(--brown);
    --button-text: var(--white);
    --header: rgba(21, 30, 25, 0.9);
    --header-scrolled: rgba(21, 30, 25, 0.98);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
    --shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.38), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
    --shadow-raised: 0 20px 44px -12px rgba(0, 0, 0, 0.55), 0 8px 20px -4px rgba(0, 0, 0, 0.35);
    --scroll-thumb: #E1EBE8;
    --scroll-track: #151E19;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: var(--header-offset);
}

body {
  margin: 0;
  background-color: var(--ground);
  color: var(--text);
  font: 400 1rem/1.75 Poppins, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, h1, h2, h3, h4, figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

button:disabled {
  cursor: wait;
}

::selection {
  background: var(--brown);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}
::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.22s var(--spring-easing);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background-color: var(--button);
  color: var(--button-text);
  border-radius: var(--radius-control);
}
.skip-link:focus {
  top: 8px;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.65rem, 1.25rem + 1.5vw, 2.4rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.lead {
  max-width: 620px;
  font-size: 1.125rem;
  line-height: 1.75;
}

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

/* Header & Floating Glass Dock */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(1160px, calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: var(--surface);
  background: var(--header);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--spring-easing), border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: var(--surface);
  background: var(--header-scrolled);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-light {
  font-weight: 400;
  color: var(--muted);
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px solid var(--soft);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.25s var(--spring-easing);
}

.brand:hover img {
  transform: scale(1.04);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  order: 2;
}

.theme-toggle, .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background-color: var(--surface);
  color: var(--text);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--spring-easing);
}

.js .theme-toggle {
  display: inline-flex;
}

.js .menu-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.theme-toggle:hover, .menu-toggle:hover {
  background-color: var(--soft);
  border-color: var(--accent);
}

.theme-toggle:active, .menu-toggle:active {
  transform: translateY(1px);
}

.theme-light-icon {
  display: none;
}
:root[data-theme='dark'] .theme-light-icon {
  display: inline;
}
:root[data-theme='dark'] .theme-dark-icon {
  display: none;
}

.menu-close-icon {
  display: none;
}
.menu-toggle[aria-expanded='true'] .menu-open-icon {
  display: none;
}
.menu-toggle[aria-expanded='true'] .menu-close-icon {
  display: inline;
}

.site-header nav {
  width: 100%;
  order: 3;
  padding-top: 10px;
  font-size: 0.875rem;
}

.site-header nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 400;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--accent);
  background-color: var(--soft);
  font-weight: 600;
}

.site-header nav .nav-contact {
  font-weight: 600;
  color: var(--accent);
}

.site-header nav .nav-contact:hover .icon {
  transform: translate(2px, -2px);
}

.js .site-header nav:not(.is-open) {
  display: none;
}

.js .site-header nav.is-open {
  display: block;
  max-height: calc(100dvh - 112px);
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

:root:not(.js) .site-header {
  position: static;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-block: 40px 56px;
}

.hero-copy {
  order: 2;
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.hero h1 span {
  color: var(--accent);
}

.hero .lead {
  margin: 20px auto 0;
}

.hero-note {
  max-width: 48ch;
  margin: 12px auto 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero .actions {
  justify-content: center;
}

.hero-portrait {
  order: 1;
  width: 160px;
  flex-shrink: 0;
  text-align: center;
}

.hero-portrait > img {
  width: 160px;
  height: 160px;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-raised);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 32%;
}

/* Actions & Interactive Buttons */
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 14px 20px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--button);
  border-radius: var(--radius-control);
  background-color: var(--button);
  color: var(--button-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(139, 84, 64, 0.22);
  transition: transform 0.22s var(--spring-easing), box-shadow 0.22s var(--spring-easing), background-color 0.18s ease;
}

@supports (transition-timing-function: linear(0, 1)) {
  .button {
    transition-timing-function: var(--spring-bounce);
  }
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 84, 64, 0.3);
}

.button:hover .icon {
  transform: translate(2px, -2px);
}

.button:active {
  transform: translateY(0);
}

.button-outline {
  color: var(--accent);
  border-color: var(--line-strong);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button-outline:hover {
  border-color: var(--accent);
  background-color: var(--soft);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.18s ease, transform 0.2s var(--spring-easing);
}

.text-link:hover {
  transform: translateY(-1px);
}

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

.hero .text-link:hover .icon {
  transform: translateY(2px);
}

/* Credibility Strip */
.credibility {
  border-block: 1px solid var(--line);
  background-color: var(--surface);
}

.credibility-inner {
  display: grid;
  gap: 14px;
  padding-block: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.credibility strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.credibility a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
}

.credibility a:hover .icon {
  transform: translateY(2px);
}

/* Section Base */
.section {
  padding-block: var(--section-space);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading > p:last-child:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
}

.services-section .section-heading {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.services-section .section-heading > p:last-child {
  max-width: 62ch;
  margin-inline: auto;
}

.services-section #services-title span {
  color: var(--accent);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--card-space);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring-easing), box-shadow 0.25s var(--spring-easing), border-color 0.22s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-raised);
}

.service-illustration {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 18px;
  transition: transform 0.28s var(--spring-easing);
}

.service:hover .service-illustration {
  transform: scale(1.05);
}

.service p {
  color: var(--muted);
  margin-top: 12px;
}

.section-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}

.services-section .section-note {
  max-width: 62ch;
  margin: 24px auto 0;
  text-align: center;
}

/* Selected Work Section */
.work-section {
  background-color: var(--soft);
  border-block: 1px solid var(--line);
}

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.featured-work, .secondary-work {
  min-width: 0;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-project);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s var(--spring-easing), box-shadow 0.25s var(--spring-easing), border-color 0.22s ease;
}

.featured-work:hover, .secondary-work:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-raised);
}

.project-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 200px;
  padding: var(--card-space);
  border-bottom: 1px solid var(--line);
}

.cover-tbm {
  background-color: var(--brown);
  color: var(--white);
}

.cover-tilvo {
  background-color: var(--sage);
  color: #6B3E2E;
}

.project-cover .project-title {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.project-full-name {
  margin-top: 8px;
  max-width: 22ch;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.project-illustration {
  width: 100%;
  max-width: 156px;
  height: 132px;
  object-fit: contain;
  justify-self: end;
  transition: transform 0.28s var(--spring-easing);
}

.featured-work:hover .project-illustration,
.secondary-work:hover .project-illustration {
  transform: scale(1.04) translateY(-2px);
}

.work-intro {
  padding: var(--card-space) var(--card-space) 0;
}

.work-intro > p:not(.eyebrow) {
  margin-bottom: 14px;
  color: var(--muted);
}

.work-detail {
  margin: 22px var(--card-space) var(--card-space);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.work-detail > p {
  margin-top: 14px;
  color: var(--muted);
}

.project-facts {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.project-facts dt {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-facts dd {
  margin: 0;
  color: var(--muted);
}

.secondary-body {
  padding: var(--card-space);
}

.secondary-body .muted {
  margin-top: 12px;
  font-size: 0.875rem;
}

/* Process / How I Work Section */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process li {
  padding: var(--card-space);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring-easing), border-color 0.22s ease, box-shadow 0.25s var(--spring-easing);
}

.process li:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-raised);
}

.item-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 10px;
  background-color: var(--soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.process p {
  color: var(--muted);
  margin-top: 12px;
}

/* About Strip Section */
.about-strip {
  padding-block: var(--section-space);
  background-color: var(--soft);
  border-block: 1px solid var(--line);
}

.about-strip-inner {
  display: grid;
  gap: 28px;
  align-items: start;
}

.about-strip-inner h2 {
  max-width: 16ch;
}

.about-strip-inner > div:last-child > p {
  margin-bottom: 16px;
  color: var(--muted);
}

/* Contact Section */
.contact-section {
  display: grid;
  gap: 28px;
  margin-block: var(--section-space);
  padding: 36px 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-project);
  box-shadow: var(--shadow);
}

.contact-copy .lead {
  margin: 16px 0 12px;
}

.contact-copy > p:not(.lead):not(.eyebrow) {
  max-width: 60ch;
  color: var(--muted);
}

.contact-cta .actions {
  margin-top: 0;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-details a .icon {
  color: var(--accent);
}

.contact-details a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-block: 36px;
}

.footer-top > p {
  color: var(--muted);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 6px 20px;
  font-size: 0.875rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  font-weight: 600;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer-bottom a, .install-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

.install-button {
  padding: 0;
  font-size: inherit;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* About Page Layout */
.page-intro {
  max-width: 1160px;
  padding-block: 44px 36px;
}

.page-intro h1 {
  max-width: 18ch;
}

.page-intro .lead {
  margin-top: 20px;
}

.profile-layout {
  display: grid;
  gap: 32px;
  padding-bottom: var(--section-space);
}

.profile-aside {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.profile-aside img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.profile-aside p {
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.profile-aside strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-body {
  display: grid;
  min-width: 0;
  gap: 24px;
}

.profile-body > section {
  padding: var(--card-space);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.profile-body h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.profile-body h2 .icon {
  color: var(--accent);
}

.profile-body p {
  color: var(--muted);
  margin-top: 14px;
}

.experience + .experience {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.experience .role-meta {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 4px;
}

.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 6px;
}

.qualification {
  padding: 20px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.qualification p {
  font-size: 0.875rem;
  margin-top: 8px;
}

.profile-body ul {
  padding-left: 20px;
  margin: 14px 0 0;
  color: var(--muted);
}

.profile-body li + li {
  margin-top: 10px;
}

.profile-body .text-link {
  margin-top: 14px;
}

.compact-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: var(--section-space);
  padding: 32px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-project);
  box-shadow: var(--shadow);
}

.compact-cta p {
  margin-top: 6px;
  color: var(--muted);
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
  .hero-portrait {
    width: 220px;
  }
  .hero-portrait > img {
    width: 220px;
    height: 220px;
  }
  .project-facts {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .contact-section {
    padding: 44px 40px;
  }
}

@media (min-width: 768px) {
  :root {
    --section-space: 80px;
  }
  .credibility-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }
  .credibility-inner > a {
    justify-self: end;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 40px;
  }
  .site-header {
    top: 16px;
    width: min(1160px, calc(100% - 48px));
    margin-top: 16px;
    border-radius: 9999px;
  }
  .header-inner {
    min-height: 76px;
    padding: 12px 24px;
    column-gap: 24px;
    flex-wrap: nowrap;
  }
  .header-controls {
    order: 3;
    margin-left: 0;
  }
  .js .menu-toggle {
    display: none;
  }
  .site-header nav,
  .js .site-header nav:not(.is-open),
  .js .site-header nav.is-open {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: auto;
    margin-left: auto;
    padding: 0;
    overflow: visible;
    max-height: none;
  }
  .site-header nav a {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 9999px;
  }
  .site-header nav .nav-contact {
    gap: 8px;
  }
  .hero {
    flex-direction: row;
    justify-content: space-between;
    gap: 64px;
    padding-block: 68px 80px;
  }
  .hero-portrait {
    order: 2;
    width: 280px;
  }
  .hero-portrait > img {
    width: 280px;
    height: 280px;
  }
  .hero-copy {
    order: 1;
    flex: 1;
    text-align: left;
  }
  .hero h1, .hero .lead, .hero-note {
    margin-inline: 0;
  }
  .hero .actions {
    justify-content: flex-start;
  }
  .section-heading {
    margin-bottom: 44px;
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .about-strip-inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
  }
  .contact-section {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }
  .profile-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .profile-aside {
    position: sticky;
    top: calc(var(--header-offset) + 8px);
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-aside img {
    width: 180px;
    height: 180px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-space: 96px;
    --card-space: 32px;
  }
}

@media (max-width: 639px) {
  .hero .lead {
    font-size: 1rem;
  }
  .footer-top > .brand,
  .footer-top > p {
    width: 100%;
  }
  .profile-body h2 {
    font-size: 1.375rem;
  }
}

@media (max-width: 479px) {
  .header-inner {
    column-gap: 6px;
    padding-inline: 10px;
  }
  .site-header .brand {
    gap: 6px;
    font-size: 0.875rem;
    letter-spacing: -0.04em;
  }
  .site-header .brand img {
    width: 28px;
    height: 28px;
  }
  .header-controls {
    gap: 6px;
  }
  .js .menu-toggle {
    gap: 5px;
    padding-inline: 8px;
    font-size: 0.78125rem;
  }
  .menu-toggle .icon {
    width: 17px;
    height: 17px;
  }
  .hero .actions {
    align-items: stretch;
    gap: 12px;
  }
  .hero .button {
    flex: 1 0 auto;
  }
  .hero .text-link {
    justify-content: center;
    padding-inline: 8px;
  }
  .contact-section {
    padding: 28px 20px;
  }
  .contact-cta .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-details {
    flex-direction: column;
    gap: 8px;
  }
  .profile-aside {
    align-items: flex-start;
    gap: 14px;
  }
  .profile-aside img {
    width: 80px;
    height: 80px;
  }
}

/* Motion & Progressive Reveal Choreography */
@keyframes portrait-settle {
  from {
    transform: translateY(8px);
  }
  to {
    transform: none;
  }
}

.hero-portrait {
  animation: portrait-settle 0.35s var(--spring-easing) both;
}

[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.32s var(--spring-easing) var(--reveal-delay, 0ms),
    transform 0.32s var(--spring-easing) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal].reveal-instant {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .button:hover,
  .button:active,
  .text-link:hover,
  .service:hover,
  .featured-work:hover,
  .secondary-work:hover,
  .process li:hover,
  .theme-toggle:active,
  .menu-toggle:active {
    transform: none;
  }
  [data-reveal].reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  :root {
    scrollbar-color: auto;
  }
  .button, .theme-toggle, .menu-toggle, .service, .featured-work, .secondary-work {
    border: 1px solid ButtonText;
  }
  .project-cover {
    border-bottom: 1px solid CanvasText;
  }
}
