:root {
  --bg:      #FAF9F7;
  --bg-2:    #F0EFF5;
  --text:    #0D0D1C;
  --text-2:  #40405A;
  --primary: #1E3A5F;
  --accent:  #D4861A;
  --white:   #FFFFFF;
}

[data-theme="dark"] {
  --bg:      #1E2128;
  --bg-2:    #282C35;
  --text:    #EDEEF2;
  --text-2:  #A0A4AE;
  --primary: #4A90D9;
  --accent:  #E09828;
}

[data-theme="dark"] .nav {
  background-color: #1A3050;
}

[data-theme="dark"] .hero--solid,
[data-theme="dark"] .srv-featured,
[data-theme="dark"] .about-sum {
  background: #1E3A5F;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 450;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pageFadeOut { to   { opacity: 0; } }


.main {
  flex: 1;
  padding-top: 72px;
}

/* ── NAV ────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 8rem;
  height: 72px;
  background-color: var(--primary);
  border-bottom: none;
  transition: transform 0.3s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: auto;
}

.nav-logo-img {
  display: block;
  height: 20px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFFFFF;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: #FFFFFF; }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.active { color: #FFFFFF; }

/* casa: outline vs filled */
.nav-home .icon-filled  { display: none; }
.nav-home.active .icon-outline { display: none; }
.nav-home.active .icon-filled  { display: block; }

/* ── TOGGLE SLIDER ──────────────────────── */

.nav-toggle-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: 2rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-sun, .toggle-moon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
}
.toggle-sun  { width: 18px; height: 18px; }
.toggle-moon { width: 16px; height: 16px; }

[data-theme="light"] .toggle-sun  { color: var(--accent); }
[data-theme="light"] .toggle-moon { color: rgba(255,255,255,0.8); }
[data-theme="dark"]  .toggle-sun  { color: rgba(255,255,255,0.8); }
[data-theme="dark"]  .toggle-moon { color: var(--primary); }

.toggle-track {
  width: 52px;
  height: 28px;
  background: var(--bg-2);
  border-radius: 14px;
  border: 2px solid var(--bg-2);
  position: relative;
  display: block;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .toggle-track {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.toggle-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.1s ease;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(24px) translateY(-50%);
}

.toggle-thumb.drop-right { border-radius: 50% 22% 22% 50%; }
.toggle-thumb.drop-left  { border-radius: 22% 50% 50% 22%; }

/* ── HERO ───────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.hero--solid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--primary);
  min-height: 100vh;
  margin-top: -72px;
  padding: calc(5rem + 72px) 8rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

/* ── Círculos orbitais ───────────────────── */

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Canto superior esquerdo — 2 concêntricos */
.hero-orbit--a {
  width: 280px; height: 280px;
  border: 1px solid rgba(255,255,255,0.09);
  left: -100px; top: -100px;
}
.hero-orbit--b {
  width: 160px; height: 160px;
  border: 1.5px solid rgba(255,255,255,0.08);
  left: -44px; top: -44px;
}

/* Canto superior direito — 2 concêntricos */
.hero-orbit--c {
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.08);
  right: -110px; top: -110px;
}
.hero-orbit--d {
  width: 175px; height: 175px;
  border: 1px solid rgba(255,255,255,0.10);
  right: -48px; top: -48px;
}

/* Canto inferior direito — 2 concêntricos */
.hero-orbit--e {
  width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,0.08);
  right: -90px; bottom: -90px;
}
.hero-orbit--f {
  width: 148px; height: 148px;
  border: 1.5px solid rgba(255,255,255,0.09);
  right: -34px; bottom: -34px;
}

/* Canto inferior esquerdo — acento */
.hero-orbit--g {
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.07);
  left: -70px; bottom: -70px;
}

/* ── Scroll indicator ────────────────────── */

.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
  animation: heroScrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.hero-scroll svg {
  color: rgba(255,255,255,0.38);
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(7px); }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.75rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  box-shadow: 0 0 8px #4ADE80;
}

.hero--solid .hero-title {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.hero-em {
  color: #7BAAFF;
  font-style: normal;
}

.hero--solid .hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: none;
  margin: 0 auto 2.25rem;
}

.btn-white {
  background: #FFFFFF;
  color: var(--primary);
  border-color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.btn-white:hover {
  background: transparent;
  color: #FFFFFF;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.68);
  border-color: rgba(255,255,255,0.22);
  font-weight: 500;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.45);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
}

.hero-tag, .section-label, .ct-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-tag { display: inline-block; margin-bottom: 1.25rem; }

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-name {
  color: var(--primary);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.hero-skills span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-2);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* ── BUTTONS ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* ── HERO VISUAL ────────────────────────── */

.hero-visual {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 18%, black 38%);
  mask-image:         linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 18%, black 38%);
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}



/* ── 404 ────────────────────────────────── */

.notfound-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 4rem 2rem;
  gap: 1rem;
}

.notfound-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--bg-2);
  letter-spacing: -0.04em;
}

.notfound-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
}

.notfound-sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 340px;
  margin-bottom: 0.5rem;
}

/* ── PRIVACY ────────────────────────────── */

.privacy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.privacy-header {
  margin-bottom: 3rem;
}

.privacy-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.privacy-date {
  font-size: 0.85rem;
  color: var(--text-2);
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.privacy-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.privacy-section p,
.privacy-section li {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
}

.privacy-section p + p { margin-top: 0.75rem; }

.privacy-section ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.privacy-section a {
  color: var(--primary);
  text-decoration: none;
}

.privacy-section a:hover { text-decoration: underline; }

.privacy-section code {
  background: var(--bg-2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text);
}

/* ── FOOTER SOCIAL ──────────────────────── */

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.footer-social-icon:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.social-icon {
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover { transform: translateY(-3px); }
.social-icon[aria-label="LinkedIn"]:hover  { color: #0077B5; background: rgba(0,119,181,0.09); border-color: rgba(0,119,181,0.22); }
.social-icon[aria-label="Instagram"]:hover { color: #E1306C; background: rgba(225,48,108,0.09); border-color: rgba(225,48,108,0.22); }
.social-icon[aria-label="YouTube"]:hover   { color: #FF0000; background: rgba(255,0,0,0.07); border-color: rgba(255,0,0,0.18); }
.social-icon[aria-label="TikTok"]:hover    { color: var(--text); background: var(--bg-2); border-color: var(--bg-2); }
.social-icon[aria-label="Facebook"]:hover  { color: #1877F2; background: rgba(24,119,242,0.09); border-color: rgba(24,119,242,0.22); }

/* ── SECTION SHARED ─────────────────────── */

.section-label { display: block; margin-bottom: 1rem; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

/* ── SKILLS ─────────────────────────────── */

.skills {
  padding: 5rem 8rem;
  border-top: 1px solid var(--bg-2);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.skills-head .section-title { margin-top: 0.75rem; }

.skills-list {
  display: flex;
  flex-direction: column;
}

.skill-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--bg-2);
  transition: color 0.2s ease;
  cursor: default;
}

.skill-row:first-child { border-top: 1px solid var(--bg-2); }

.skill-row:hover .skill-name { color: var(--primary); }

.skill-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
  opacity: 0.4;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s ease;
}

.skill-tools {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

/* ── SERVICES ───────────────────────────── */

.services {
  padding: 5rem 8rem;
}

.services-header {
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  align-items: stretch;
}

.srv-card {
  background: var(--bg-2);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.srv-card:not(.srv-featured):hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.srv-featured {
  background: var(--primary);
  color: #FFFFFF;
}

.srv-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.srv-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.625rem;
  background: rgba(30, 58, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.srv-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.srv-featured .srv-title {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-top: auto;
}

.srv-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.srv-featured .srv-desc {
  color: rgba(255,255,255,0.65);
}

.srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.srv-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

@media (max-width: 900px) {
  .services { padding: 3rem 2rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── PORTFOLIO PREVIEW ──────────────────── */

.proj-preview {
  padding: 5rem 8rem;
  border-top: 1px solid var(--bg-2);
}

.proj-preview-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.proj-see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  padding-bottom: 4px;
}

.proj-see-all:hover { opacity: 1; }

/* ── ABOUT SUMMARY ──────────────────────── */

.about-sum {
  padding: 5rem 8rem;
  background: var(--primary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-sum .section-label { color: var(--accent); }

.about-sum-text .section-title {
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.about-sum-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.about-facts {
  display: flex;
  flex-direction: column;
}

.about-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-fact:first-child { border-top: 1px solid rgba(255,255,255,0.1); }

.about-fact-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-fact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
}


/* ── CONTACT ────────────────────────────── */

.ct-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 5rem 8rem;
  align-items: start;
}

.ct-eyebrow { margin-bottom: 1.5rem; }

.ct-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.ct-title em {
  color: var(--primary);
  font-style: normal;
}

.ct-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.ct-sub {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 38ch;
  margin-bottom: 2.5rem;
}

.quick-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quick:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.quick--ig:hover { border-color: #E1306C; background: rgba(225,48,108,0.06); }
.quick--li:hover { border-color: #0077B5; background: rgba(0,119,181,0.06); }

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  transition: transform 0.2s ease;
}

.quick:hover .quick-icon { transform: scale(1.08); }

.quick--ig .quick-icon { background: #E1306C; }
.quick--li .quick-icon { background: #0077B5; }

.quick-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.quick-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.quick--ig:hover .quick-label { color: #E1306C; }
.quick--li:hover .quick-label { color: #0077B5; }

.quick-sub {
  font-size: 0.78rem;
  color: var(--text-2);
}

.quick-arrow {
  color: var(--text-2);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick:hover .quick-arrow { transform: translate(3px, -3px); }
.quick--ig:hover .quick-arrow { color: #E1306C; }
.quick--li:hover .quick-arrow { color: #0077B5; }

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field-opt {
  font-weight: 400;
  color: var(--text-2);
  font-size: 0.78rem;
  margin-left: 0.35rem;
}

.field-input {
  background: var(--bg-2);
  border: 1.5px solid var(--bg-2);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}

.field-input::placeholder { color: var(--text-2); }
.field-input:focus { border-color: var(--primary); }
.field-input.field-invalid { border-color: #e05252; }

.field-error-msg {
  font-size: 0.72rem;
  color: #e05252;
  margin-top: 0.3rem;
  display: none;
}
.field-error-msg.visible { display: block; }

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

.ct-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ct-submit:hover {
  background: transparent;
  color: var(--primary);
}

.ct-privacy {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}

.ct-privacy a {
  color: var(--primary);
  text-decoration: none;
}

.ct-privacy a:hover { text-decoration: underline; }

.ct-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
  min-height: 420px;
}

.ct-success-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.ct-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.ct-success p {
  color: var(--text-2);
  line-height: 1.65;
  max-width: 32ch;
}

.social-section {
  padding: 3rem 8rem;
  border-top: 1px solid var(--bg-2);
  text-align: center;
}

.social-title {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}


/* ── FOOTER ─────────────────────────────── */

.footer {
  background: #142844;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem 8rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 2;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover { opacity: 1; color: #FFFFFF; transform: translateX(4px); }
.footer-nav a.active { opacity: 1; color: #FFFFFF; }

.footer-nav--active {
  color: #FFFFFF !important;
  opacity: 1;
  position: relative;
}

.footer-nav--active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #FFFFFF;
  opacity: 0.5;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.footer-contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.footer-email {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.5);
}

.footer-cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.footer-cta:hover {
  border-color: rgba(255,255,255,0.55);
  color: #FFFFFF;
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 1.5rem 0;
}

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: #7BAAFF;
  text-decoration: underline;
  text-decoration-color: rgba(123,170,255,0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-bottom a:hover {
  color: #a8c8ff;
  text-decoration-color: rgba(123,170,255,0.75);
}


/* ── ABOUT PAGE ─────────────────────────── */

.aboutp-wrap {
  padding: 5rem 8rem;
}

.aboutp-intro {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
  padding-bottom: 4rem;
}

.aboutp-photo-col { position: relative; }

.aboutp-photo-frame {
  position: relative;
  display: block;
  width: 100%;
}

.aboutp-photo-frame::after {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 2px solid var(--primary);
  border-radius: 1rem;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.aboutp-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-2);
}

.aboutp-placeholder svg { opacity: 0.25; }

.aboutp-placeholder span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.4;
}

.aboutp-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

.aboutp-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.aboutp-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.aboutp-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
}

.aboutp-block {
  padding: 5rem 0;
  border-top: 1.5px solid rgba(201, 168, 60, 0.4);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}


.aboutp-timeline {
  display: flex;
  flex-direction: column;
}

.aboutp-titem {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--bg-2);
}

.aboutp-titem:first-child { border-top: 1px solid var(--bg-2); }

.aboutp-titem-inst {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-2);
  opacity: 0.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}

.aboutp-titem-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.aboutp-titem-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

.aboutp-titem-detail { margin-top: 0.5rem; font-style: italic; }

.aboutp-project {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}

.aboutp-project p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
}

.aboutp-project p a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.aboutp-project p a:hover { text-decoration: underline; }

.aboutp-interests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.aboutp-interest {
  background: var(--bg-2);
  border-radius: 0.875rem;
  padding: 1.75rem;
  border-top: 3px solid var(--primary);
}

.aboutp-interest h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.aboutp-interest p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── PORTFOLIO PAGE ─────────────────────── */

.port-wrap {
  padding: 5rem 8rem;
}

.port-header {
  margin-bottom: 2.5rem;
}

.port-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.port-count {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}

.port-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.port-filter {
  background: var(--bg-2);
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.port-filter:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.port-filter.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.port-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ── PORTFOLIO LIST ──────────────────────── */
.pf-filter-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:0;flex-wrap:wrap;gap:.75rem}
.pf-count-pill{font-size:.75rem;color:var(--text-2);font-weight:500}
.pf-list{display:flex;flex-direction:column;margin-top:1.5rem}
.pf-item{display:grid;grid-template-columns:2.5rem 4px 1fr auto;gap:1.25rem;align-items:center;padding:1.75rem 0;border-bottom:1px solid var(--bg-2);text-decoration:none;transition:background .15s}
.pf-item:first-child{border-top:1px solid var(--bg-2)}
.pf-item:hover{background:var(--bg-2);margin:0 -1.5rem;padding-left:1.5rem;padding-right:1.5rem;border-radius:.5rem;border-top-color:transparent;border-bottom-color:transparent}
.pf-item:hover + .pf-item{border-top-color:transparent}
.pf-item-num{font-size:.62rem;font-weight:800;color:var(--text-2);letter-spacing:.1em;opacity:.5;align-self:flex-start;padding-top:.25rem}
.pf-item-accent{width:4px;height:48px;border-radius:2px;align-self:flex-start;margin-top:.1rem}
.pf-item-body{display:flex;flex-direction:column;gap:.3rem}
.pf-item-top{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.pf-item-title{font-size:1.05rem;font-weight:800;color:var(--text);transition:color .15s}
.pf-item:hover .pf-item-title{color:var(--primary)}
.pf-item-badge{display:inline-flex;padding:.18rem .55rem;border-radius:100px;font-size:.6rem;font-weight:700;letter-spacing:.04em;white-space:nowrap}
.pf-item-badge--wip{background:var(--bg-2);color:var(--text-2);border:1px solid var(--bg-2)}
.pf-item-badge--prod{background:rgba(45,150,74,.1);color:#1d7a3c}
.pf-item-badge--feat{background:rgba(212,134,26,.1);color:#9a5c00}
.pf-item-badge--grade{background:rgba(30,58,95,.1);color:var(--primary)}
.pf-item-cats{font-size:.72rem;color:var(--text-2);font-weight:500}
.pf-item-desc{font-size:.82rem;color:var(--text-2);line-height:1.6;margin:0;max-width:54ch}
.pf-item-cta{font-size:.78rem;font-weight:700;color:var(--primary);white-space:nowrap;display:flex;align-items:center;gap:.3rem;opacity:.7;transition:opacity .15s}
.pf-item:hover .pf-item-cta{opacity:1}
.pf-item--dim .pf-item-title{opacity:.45}
.pf-item--dim .pf-item-cta{display:none}
.pf-item.hidden{display:none}
.pf-summary{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.75rem 0 2.25rem}
.pf-sum-total{font-size:.82rem;font-weight:800;color:var(--text);margin-right:.25rem}
.pf-sum-sep{color:var(--bg-2);font-size:.9rem;margin:0 .1rem;user-select:none}
.pf-sum-item{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .8rem;background:var(--bg-2);border-radius:100px;font-size:.7rem;font-weight:600;color:var(--text-2)}
.pf-sum-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}

/* ── INDEX PORTFOLIO LIST ────────────────── */
.idx-list{display:flex;flex-direction:column;margin-top:2rem}
.idx-item{display:grid;grid-template-columns:2.5rem 4px 1fr auto;gap:1.25rem;align-items:center;padding:1.5rem 0;border-bottom:1px solid var(--bg-2);text-decoration:none;transition:background .15s}
.idx-item:first-child{border-top:1px solid var(--bg-2)}
.idx-item:hover{background:var(--bg-2);margin:0 -2rem;padding-left:2rem;padding-right:2rem;border-radius:.5rem;border-top-color:transparent;border-bottom-color:transparent}
.idx-item:hover + .idx-item{border-top-color:transparent}
.idx-item-num{font-size:.62rem;font-weight:800;color:var(--text-2);letter-spacing:.1em;opacity:.5;align-self:flex-start;padding-top:.2rem}
.idx-item-accent{width:4px;height:44px;border-radius:2px;align-self:flex-start;margin-top:.1rem}
.idx-item-body{display:flex;flex-direction:column;gap:.25rem}
.idx-item-top{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.idx-item-title{font-size:1rem;font-weight:800;color:var(--text);transition:color .15s}
.idx-item:hover .idx-item-title{color:var(--primary)}
.idx-item-badge{display:inline-flex;padding:.15rem .5rem;border-radius:100px;font-size:.6rem;font-weight:700;white-space:nowrap}
.idx-item-badge--prod{background:rgba(45,150,74,.1);color:#1d7a3c}
.idx-item-badge--feat{background:rgba(212,134,26,.1);color:#9a5c00}
.idx-item-badge--wip{background:var(--bg-2);color:var(--text-2);border:1px solid var(--bg-2)}
.idx-item-badge--grade{background:rgba(30,58,95,.1);color:var(--primary)}
.idx-item-cats{font-size:.72rem;color:var(--text-2);font-weight:500}
.idx-item-desc{font-size:.82rem;color:var(--text-2);line-height:1.55;margin:0;max-width:52ch}
.idx-item-cta{font-size:.75rem;font-weight:700;color:var(--primary);white-space:nowrap;opacity:.65;transition:opacity .15s}
.idx-item:hover .idx-item-cta{opacity:1}
.idx-see-all{display:inline-flex;align-items:center;gap:.4rem;margin-top:1.75rem;font-size:.82rem;font-weight:700;color:var(--primary);text-decoration:none;opacity:.75;transition:opacity .15s}
.idx-see-all:hover{opacity:1}

/* ── RESPONSIVE ──────────────────────────── */

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #FFFFFF;
  padding: 0.25rem;
  margin-left: 0.75rem;
  align-items: center;
  position: relative;
  width: 28px;
  height: 28px;
}

.nav-burger .icon-open,
.nav-burger .icon-close {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.nav-burger .icon-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.7);
}

.nav.nav-open .nav-burger .icon-open {
  opacity: 0;
  transform: rotate(45deg) scale(0.7);
}

.nav.nav-open .nav-burger .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (max-width: 900px) {

  /* NAV */
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0 2rem;
    align-items: center;
  }
  .main { padding-top: 64px; }
  .nav-logo { line-height: 64px; }
  .nav-toggle-wrap {
    display: flex;
    align-items: center;
    height: 64px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 0 1.5rem;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-burger { display: flex; }

  /* HERO */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 3rem 2rem 2rem; }
  .hero-visual { height: 320px; }
  .hero--solid { padding: calc(4rem + 64px) 2rem 4rem; min-height: 100vh; margin-top: -64px; text-align: center; }
  .hero-orbit--a { width: 180px; height: 180px; left: -65px; top: -65px; }
  .hero-orbit--b { width: 100px; height: 100px; left: -28px; top: -28px; }
  .hero-orbit--c { width: 190px; height: 190px; right: -70px; top: -70px; }
  .hero-orbit--d { width: 110px; height: 110px; right: -30px; top: -30px; }
  .hero-orbit--e { width: 160px; height: 160px; right: -55px; bottom: -55px; }
  .hero-orbit--f { width: 90px; height: 90px; right: -20px; bottom: -20px; }
  .hero-orbit--g { width: 130px; height: 130px; left: -45px; bottom: -45px; }

  /* SKILLS */
  .skills { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 2rem; }
  .skill-tools { white-space: normal; }

  /* PROJ PREVIEW */
  .proj-preview { padding: 3rem 2rem; }
  .proj-preview-header { align-items: center; }

  /* ABOUT SUMMARY */
  .about-sum { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 2rem; }

  /* CONTACT */
  .ct-wrap { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 2rem; }
  .social-section { padding: 2rem 2rem; }

  /* ABOUT PAGE */
  .aboutp-wrap { padding: 3rem 2rem; }
  .aboutp-intro { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .aboutp-placeholder { aspect-ratio: 4 / 3; max-width: 280px; }
  .aboutp-photo-frame::after { display: none; }
  .aboutp-block { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
  .aboutp-titem { grid-template-columns: 1fr; gap: 0.4rem; }
  .aboutp-interests { grid-template-columns: 1fr; }

  /* PORTFOLIO PAGE */
  .port-wrap { padding: 3rem 2rem; }

  /* FOOTER */
  .footer { padding: 2.5rem 2rem 1.5rem; }
  .footer-top { flex-direction: column; align-items: center; gap: 2rem; }
  .footer-brand { align-items: center; text-align: center; }
  .footer-badge { justify-content: center; }
  .footer-nav { align-items: center; }
  .footer-contact { align-items: center; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-response-time { margin-top: 0.25rem; }
  .footer-cta { align-self: center; }

  /* PRIVACY */
  .privacy-wrap { padding: 3rem 1.5rem; }
}

@media (max-width: 700px) {
  .pf-item{grid-template-columns:2rem 3px 1fr}
  .pf-item-cta{display:none}
  .pf-item:hover{margin:0;padding-left:0;padding-right:0;border-radius:0;border-bottom-color:var(--bg-2)}
  .idx-item{grid-template-columns:2rem 3px 1fr}
  .idx-item-cta{display:none}
  .idx-item:hover{margin:0;padding:1.5rem 0;border-radius:0;border-bottom-color:var(--bg-2)}
}

@media (max-width: 480px) {
  .hero-visual { height: 260px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* ── HERO BG ICONS ───────────────────────── */

.hero-bg-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hbg-icon {
  position: absolute;
  color: rgba(255,255,255,0.09);
  animation: hbgFloat 7s ease-in-out infinite;
  animation-delay: var(--hbg-delay, 0s);
}

@keyframes hbgFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  40%       { transform: translateY(-14px) rotate(3deg); }
  70%       { transform: translateY(-6px) rotate(-2deg); }
}

/* ── ANIMATIONS ──────────────────────────── */

/* Hero load-in */
.hero-in {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.65s ease forwards;
  animation-delay: var(--hi-delay, 0s);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL TO TOP ───────────────────────── */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── BREADCRUMB ──────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb-sep {
  color: var(--text-2);
  opacity: 0.35;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* ── SKIP LINK ───────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS ───────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.field-input:focus-visible { outline: none; }

/* ── EXTERNAL LINKS ──────────────────────── */

a[target="_blank"]:not([class])::after {
  content: ' \2197';
  font-size: 0.75em;
  opacity: 0.5;
}

/* ── PAGE CTA ────────────────────────────── */

.page-cta {
  padding: 5rem 8rem;
  border-top: 1px solid var(--bg-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.page-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
}

.page-cta p:not(.ct-eyebrow) {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 40ch;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .page-cta { padding: 3rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  body, .hero-in, .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
