:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5e6a62;
  --paper: #f6f2ea;
  --paper-strong: #fffaf0;
  --line: rgba(23, 33, 28, 0.14);
  --teal: #0f766e;
  --teal-dark: #0d4f49;
  --amber: #d18a26;
  --clay: #b75d3b;
  --shadow: 0 24px 70px rgba(23, 33, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.09) 0 18%, transparent 18% 100%),
    linear-gradient(245deg, transparent 0 64%, rgba(183, 93, 59, 0.09) 64% 100%),
    repeating-linear-gradient(90deg, rgba(23, 33, 28, 0.035) 0 1px, transparent 1px 84px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
  font-weight: 900;
  transform: translateY(calc(-100% - 24px));
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(246, 242, 234, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-strong);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
  stroke-width: 2.4;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 76px));
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(209, 138, 38, 0.28) 48% 49%, transparent 49% 100%),
    linear-gradient(103deg, transparent 0 63%, rgba(15, 118, 110, 0.34) 63% 65%, transparent 65% 100%),
    linear-gradient(180deg, transparent 0 72%, rgba(246, 242, 234, 0.36) 100%);
  mix-blend-mode: screen;
  opacity: 0.78;
}

.hero::after {
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 250, 240, 0.08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.06) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, rgba(12, 21, 18, 0.18), rgba(12, 21, 18, 0.46));
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34) 62%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.34) 62%, transparent 100%);
  opacity: 0.5;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 15, 13, 0.94) 0%, rgba(12, 21, 18, 0.72) 43%, rgba(12, 21, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(246, 242, 234, 0.44), transparent 27%),
    linear-gradient(155deg, rgba(15, 118, 110, 0.28), transparent 38%),
    linear-gradient(20deg, transparent 0 64%, rgba(209, 138, 38, 0.24) 100%);
}

.rotating-circle {
  position: absolute;
  top: 50%;
  right: clamp(28px, 8vw, 128px);
  z-index: 0;
  width: clamp(170px, 24vw, 310px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  opacity: 0.86;
  pointer-events: none;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.28));
}

.rotating-circle::before,
.rotating-circle-ring,
.rotating-circle-core,
.rotating-circle-dot {
  position: absolute;
  border-radius: 50%;
}

.rotating-circle::before {
  inset: 0;
  content: "";
  background: conic-gradient(
    from 18deg,
    transparent 0 15%,
    rgba(255, 250, 240, 0.86) 15% 23%,
    transparent 23% 42%,
    rgba(209, 138, 38, 0.92) 42% 52%,
    transparent 52% 74%,
    rgba(15, 118, 110, 0.95) 74% 84%,
    transparent 84% 100%
  );
  -webkit-mask-image: radial-gradient(circle, transparent 0 66%, #000 67% 100%);
  mask-image: radial-gradient(circle, transparent 0 66%, #000 67% 100%);
  animation: rotate-circle 8s linear infinite;
}

.rotating-circle-ring {
  inset: 14%;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-top-color: rgba(209, 138, 38, 0.92);
  border-left-color: rgba(15, 118, 110, 0.86);
  animation: rotate-circle 12s linear infinite reverse;
}

.rotating-circle-core {
  inset: 38%;
  border: 1px solid rgba(255, 250, 240, 0.36);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 250, 240, 0.72), transparent 0 18%),
    rgba(15, 118, 110, 0.34);
  box-shadow:
    0 0 0 12px rgba(15, 118, 110, 0.1),
    inset 0 0 26px rgba(255, 250, 240, 0.16);
}

.rotating-circle-dot {
  inset: 7px;
  animation: rotate-circle 5.6s linear infinite;
}

.rotating-circle-dot::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(209, 138, 38, 0.18);
  content: "";
  transform: translateX(-50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: clamp(84px, 13vw, 156px) clamp(20px, 5vw, 64px) clamp(84px, 10vw, 132px);
  color: var(--paper-strong);
}

@keyframes rotate-circle {
  to {
    transform: rotate(1turn);
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.process-panel h2,
.contact-section h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.55rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button svg,
.site-footer svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

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

.button.primary {
  background: var(--amber);
  color: #1a1308;
}

.button.secondary {
  border-color: rgba(255, 250, 240, 0.54);
  color: var(--paper-strong);
}

.section .button.secondary,
.contact-section .button.secondary {
  border-color: var(--line);
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 112px) 0;
}

.page-main {
  min-height: calc(100svh - 76px);
  padding-top: clamp(28px, 4vw, 56px);
}

.page-main .section:first-child {
  padding-top: clamp(48px, 7vw, 84px);
}

.section-heading h2,
.process-panel h2,
.process-content h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

.section-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.overview-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.overview-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

.overview-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.overview-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
}

.overview-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--teal-dark);
  font-weight: 900;
}

.overview-card a:hover,
.overview-card a:focus-visible {
  color: var(--teal);
}

.home-summary-section,
.home-cta-section {
  padding-top: 24px;
}

.home-cta {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 8px;
  background: #19231f;
  color: var(--paper-strong);
  box-shadow: var(--shadow);
}

.home-cta h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.home-cta .button.secondary {
  border-color: rgba(255, 250, 240, 0.54);
  color: var(--paper-strong);
}

.about-section {
  padding-bottom: clamp(46px, 7vw, 84px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.58fr) minmax(280px, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 38px;
}

.about-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 33, 28, 0.1);
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-photo-card figcaption {
  display: grid;
  gap: 2px;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.about-photo-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.about-copy {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.about-copy p {
  margin: 0;
}

.about-points {
  display: grid;
  gap: 12px;
}

.about-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.about-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

.about-icon svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.3;
}

.about-point strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.interest-section {
  padding-top: 0;
}

.technology-section {
  padding-top: clamp(36px, 5vw, 64px);
}

.technology-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 8px;
  background: #19231f;
  color: var(--paper-strong);
  box-shadow: var(--shadow);
}

.technology-hero h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.technology-hero .section-lead {
  color: rgba(255, 250, 240, 0.8);
}

.technology-snapshot {
  display: grid;
  gap: 12px;
}

.technology-snapshot span {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  color: rgba(255, 250, 240, 0.78);
  font-weight: 700;
}

.technology-snapshot span:last-child {
  border-bottom: 0;
}

.technology-snapshot strong {
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.technology-block {
  padding-top: clamp(56px, 7vw, 86px);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.interest-card {
  min-height: 260px;
  padding: clamp(20px, 2.7vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.interest-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(209, 138, 38, 0.14);
  color: var(--clay);
}

.interest-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.interest-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.14rem, 1.7vw, 1.45rem);
  line-height: 1.2;
}

.interest-card p {
  margin: 0;
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.skill-card,
.project-card,
.blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.skill-card {
  min-height: 290px;
  padding: clamp(22px, 3vw, 32px);
}

.card-kicker,
.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
}

.skill-card h3,
.project-card h3,
.blog-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.18;
}

.skill-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.skill-card h3 svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--teal);
  stroke-width: 2.2;
}

.skill-card p,
.project-card p,
.blog-card p {
  margin: 0;
  color: var(--muted);
}

.project-section {
  padding-top: 24px;
}

.project-list {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 30px);
}

.project-card h3 {
  margin-top: 16px;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.project-card a:hover,
.project-card a:focus-visible {
  border-color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
}

.process-section {
  padding-top: 18px;
}

.process-panel,
.process-content {
  padding: clamp(30px, 6vw, 64px);
  border-radius: 8px;
  background: #19231f;
  color: var(--paper-strong);
  box-shadow: var(--shadow);
}

.process-panel h2,
.process-content h2 {
  max-width: 820px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.process-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
  color: rgba(255, 250, 240, 0.88);
  font-weight: 900;
  text-align: center;
}

.process-steps svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--amber);
  stroke-width: 2.4;
}

.blog-section {
  padding-top: 28px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.blog-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
}

.blog-card.featured {
  grid-column: span 2;
  background: #f1ece0;
  border-color: rgba(15, 118, 110, 0.28);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.blog-meta span,
.blog-meta time,
.blog-meta small {
  color: var(--clay);
}

.blog-meta time,
.blog-meta small {
  color: var(--muted);
}

.blog-card h3 {
  margin-top: 24px;
}

.blog-card.featured h3 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.blog-card a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 28px;
  color: var(--teal-dark);
  font-weight: 900;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  color: var(--teal);
}

.article-page {
  width: min(900px, calc(100% - 40px));
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--teal-dark);
  font-weight: 900;
}

.article-back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.article-header {
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
}

.article-body {
  display: grid;
  gap: 22px;
  margin-top: clamp(30px, 4vw, 44px);
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.14rem);
}

.article-body p,
.article-body h2 {
  margin: 0;
}

.article-body h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.16;
}

.article-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
  font-size: 0.94em;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding-top: 36px;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 18px 42px rgba(23, 33, 28, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--teal);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

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

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  font-weight: 900;
}

.contact-links svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.contact-section .button.primary {
  background: var(--teal);
  color: var(--paper-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
}

@media (max-width: 1080px) {
  .rotating-circle {
    right: 24px;
    width: clamp(150px, 23vw, 230px);
    opacity: 0.58;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    min-height: 44px;
    padding: 10px 12px;
  }

  .hero {
    min-height: 660px;
  }

  .rotating-circle {
    top: 126px;
    right: 50%;
    width: clamp(160px, 44vw, 240px);
    transform: translateX(50%);
    opacity: 0.62;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 15, 13, 0.94) 0%, rgba(12, 21, 18, 0.76) 58%, rgba(12, 21, 18, 0.22) 100%),
      linear-gradient(0deg, rgba(246, 242, 234, 0.38), transparent 22%),
      linear-gradient(140deg, rgba(15, 118, 110, 0.28), transparent 46%),
      linear-gradient(25deg, transparent 0 58%, rgba(209, 138, 38, 0.22) 100%);
  }

  .hero::after {
    -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.38) 68%, transparent 100%);
    mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.38) 68%, transparent 100%);
  }

  .hero-content {
    padding-top: 300px;
  }

  .about-layout,
  .overview-grid,
  .skill-grid,
  .interest-grid,
  .blog-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .blog-card.featured {
    grid-column: auto;
  }

  .home-cta {
    grid-template-columns: 1fr;
  }

  .home-cta-actions {
    justify-content: flex-start;
  }

  .contact-section .contact-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand span:last-child {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    inset: 70px 12px auto;
  }

  .hero {
    min-height: 680px;
  }

  .rotating-circle {
    top: 92px;
    width: clamp(150px, 58vw, 220px);
    opacity: 0.54;
  }

  .hero-content {
    padding: 320px 20px 76px;
  }

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

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .form-actions {
    align-items: stretch;
  }

  .contact-links {
    width: 100%;
    justify-content: center;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1120px);
  }

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

  .project-card a {
    width: 100%;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 16px;
  }
}

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

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

  .rotating-circle::before,
  .rotating-circle-ring,
  .rotating-circle-dot {
    animation: none;
  }
}
