/* ==========================================================================
   Ashley Miller portfolio — homepage composition
   Loaded only on index.html. All values come from tokens.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header (Solid & High Contrast on Home)
   -------------------------------------------------------------------------- */

body[data-page="home"] .site-header {
  border-bottom: 1.5px solid rgba(26, 47, 107, 0.15);
  background: rgba(245, 246, 250, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(26, 47, 107, 0.06);
}

body[data-page="home"] .site-header.is-scrolled {
  border-bottom: 2px solid #1A2F6B;
  background: rgba(245, 246, 250, 0.98);
  box-shadow: 0 6px 24px rgba(26, 47, 107, 0.12);
}

body[data-page="home"] .site-header .brand-name,
body[data-page="home"] .site-header .brand-role,
body[data-page="home"] .site-header .nav-link {
  color: #1A2F6B;
}

body[data-page="home"] .site-header .brand-name {
  color: #1A2F6B;
  font-weight: 700;
}

body[data-page="home"] .site-header .brand-dot {
  color: #1A2F6B;
}

body[data-page="home"] .site-header .brand-mark {
  border-color: #1A2F6B;
  color: #1A2F6B;
  background: rgba(26, 47, 107, 0.08);
}

body[data-page="home"] .site-header .nav-link:hover,
body[data-page="home"] .site-header .nav-dropdown-toggle:hover {
  background: #1A2F6B !important;
  color: #FFFFFF !important;
}

body[data-page="home"] .site-header .nav-link.is-active,
body[data-page="home"] .site-header .nav-item.has-dropdown.is-active > .nav-dropdown-toggle {
  color: #1A2F6B !important;
  background: rgba(26, 47, 107, 0.1) !important;
  border: 1.5px solid #1A2F6B;
  font-weight: 700;
}

body[data-page="home"] .site-header .nav-link.is-active:hover,
body[data-page="home"] .site-header .nav-item.has-dropdown.is-active > .nav-dropdown-toggle:hover {
  color: #FFFFFF !important;
  background: #1A2F6B !important;
}

body[data-page="home"] .site-header .icon-btn {
  border-color: #1A2F6B;
  background: #F5F6FA;
  color: #1A2F6B;
}

body[data-page="home"] .site-header .icon-btn:hover {
  border-color: #1A2F6B;
  background: #1A2F6B;
  color: #FFFFFF;
}

body[data-page="home"] .site-header .header-cta {
  background: #1A2F6B;
  color: #FFFFFF;
  border: 1.5px solid #1A2F6B;
  box-shadow: none;
  font-weight: 700;
}

body[data-page="home"] .site-header .header-cta:hover {
  background: #122050;
  border-color: #122050;
  color: #FFFFFF;
  transform: translateY(-2px);
}

body.menu-open[data-page="home"] .site-header {
  border-color: #1A2F6B;
  background: #F5F6FA;
  box-shadow: var(--shadow-sm);
}

body.menu-open[data-page="home"] .site-header .brand-name,
body.menu-open[data-page="home"] .site-header .brand-role,
body.menu-open[data-page="home"] .site-header .nav-link,
body.menu-open[data-page="home"] .site-header .icon-btn {
  color: #1A2F6B;
}

body.menu-open[data-page="home"] .site-header .icon-btn {
  border-color: #1A2F6B;
  background: #F5F6FA;
}

/* --------------------------------------------------------------------------
   Hero (Data Science Engineer — Compact Two-Tone #1A2F6B & #F5F6FA)
   -------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: auto;
  padding-top: calc(var(--header-h) + 1.25rem);
  padding-bottom: 2.25rem;
  overflow: clip;
  isolation: isolate;
  background: #F5F6FA;
  color: #1A2F6B;
  border-bottom: 2px solid #1A2F6B;
}

.home-hero-bg {
  display: none;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(26, 47, 107, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 47, 107, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 20%, rgba(26, 47, 107, 0.06), transparent 50%);
  content: "";
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.home-hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(26, 47, 107, 0.25);
  border-radius: var(--radius-full);
  background: rgba(26, 47, 107, 0.08);
  color: #1A2F6B;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-kicker-sep {
  width: 1px;
  height: 10px;
  background: rgba(26, 47, 107, 0.35);
}

.hero-kicker .status-dot {
  background: #1A2F6B;
}

.home-hero .hero-title {
  max-width: 15ch;
  margin-bottom: 0.75rem;
  color: #1A2F6B;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-hero .hero-title em {
  color: #1A2F6B;
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.home-hero .hero-lede {
  max-width: 48ch;
  margin-bottom: 1.25rem;
  color: rgba(26, 47, 107, 0.88);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.home-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.home-hero .btn-primary {
  background: #1A2F6B;
  color: #FFFFFF;
  border: 1.5px solid #1A2F6B;
  box-shadow: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-hero .btn-primary:hover {
  background: #122050;
  border-color: #122050;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.home-hero .btn-ghost {
  border: 1.5px solid #1A2F6B;
  color: #1A2F6B;
  background: transparent;
  box-shadow: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.home-hero .btn-ghost:hover {
  border-color: #1A2F6B;
  color: #FFFFFF;
  background: #1A2F6B;
  transform: translateY(-2px);
}

.home-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(26, 47, 107, 0.82);
  font-size: 0.8rem;
  font-weight: 500;
}

.home-hero .hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.home-hero .hero-meta i {
  color: #1A2F6B;
  font-size: 0.95rem;
}

/* Compact Visual Card */
.home-hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
}

.hero-portrait-card {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border: 2px solid #1A2F6B;
  border-radius: var(--radius-lg);
  background: #1A2F6B;
  box-shadow: 0 16px 36px -10px rgba(26, 47, 107, 0.22);
  transform: none;
}

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

.hero-portrait-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 47, 107, 0) 45%, rgba(26, 47, 107, 0.85) 100%);
  content: "";
  pointer-events: none;
}

.hero-portrait-top {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(245, 246, 250, 0.35);
  border-radius: var(--radius-full);
  background: #1A2F6B;
  color: #F5F6FA;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-chip .status-dot {
  background: #F5F6FA;
}

.hero-portrait-caption {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-portrait-caption .signature {
  color: #F5F6FA;
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1;
}

.hero-portrait-caption span:last-child {
  color: rgba(245, 246, 250, 0.9);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Marquee (Under Hero: #1A2F6B & #F5F6FA)
   -------------------------------------------------------------------------- */

.marquee {
  background: #1A2F6B;
  border-top: 1px solid rgba(245, 246, 250, 0.2);
  border-bottom: 2px solid rgba(245, 246, 250, 0.35);
}

.marquee-group span {
  color: #F5F6FA;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.marquee-group span::after {
  background: #F5F6FA;
}

/* --------------------------------------------------------------------------
   About / capability rings (#1A2F6B bg, #F5F6FA text/elements)
   -------------------------------------------------------------------------- */

.home-about {
  background: #1A2F6B;
  color: #F5F6FA;
  border-bottom: 2px solid rgba(245, 246, 250, 0.3);
}

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.home-about-media {
  position: relative;
  width: min(100%, 470px);
}

.home-about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(245, 246, 250, 0.4);
  border-radius: var(--radius-2xl);
  background: #1A2F6B;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.4);
}

.home-about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-about-media::before {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 42%;
  height: 42%;
  border: 2px solid rgba(245, 246, 250, 0.3);
  border-radius: var(--radius-2xl);
  content: "";
  pointer-events: none;
}

.home-about-badge {
  position: absolute;
  right: -1.25rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(245, 246, 250, 0.35);
  background: #1A2F6B;
  color: #F5F6FA;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-about-badge strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #F5F6FA;
}

.home-about-badge span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #F5F6FA;
}

.home-about-signature {
  position: absolute;
  bottom: 1.1rem;
  left: 1.25rem;
  z-index: 2;
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid rgba(245, 246, 250, 0.35);
  border-radius: var(--radius-sm);
  background: #1A2F6B;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.home-about-signature .signature {
  color: #F5F6FA;
  font-family: var(--font-script);
  font-size: 1.4rem;
  line-height: 1;
}

.home-about-signature span:last-child {
  color: rgba(245, 246, 250, 0.85);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-about .eyebrow {
  color: #F5F6FA;
  font-weight: 700;
}

.home-about-copy h2 {
  max-width: 14ch;
  color: #F5F6FA;
}

.home-about-copy .lead {
  margin-bottom: 1rem;
  color: #F5F6FA;
}

.home-about-copy > p:not(.eyebrow):not(.lead) {
  color: rgba(245, 246, 250, 0.88);
}

.home-about .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: border-color var(--duration-fast) var(--ease);
}

.home-about .text-link:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

.home-skill-rings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 2rem 0 1.75rem;
}

.skill-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.5rem 0.85rem;
  border: 1.5px solid rgba(245, 246, 250, 0.35);
  border-radius: var(--radius-md);
  background: rgba(245, 246, 250, 0.08);
  color: #F5F6FA;
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.skill-ring:hover {
  border-color: #F5F6FA;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.skill-ring svg {
  width: 76px;
  height: 76px;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(245, 246, 250, 0.2);
  stroke-width: 8;
}

.ring-value {
  fill: none;
  stroke: #F5F6FA;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.4s var(--ease);
}

.skill-ring:nth-child(2n) .ring-value,
.skill-ring:nth-child(3n) .ring-value {
  stroke: #F5F6FA;
}

.skill-ring.is-visible .ring-value,
html:not(.js) .skill-ring .ring-value {
  stroke-dashoffset: calc(100 - var(--level));
}

.ring-label {
  display: grid;
  gap: 0.1rem;
}

.ring-label strong {
  color: #F5F6FA;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.ring-label span {
  color: rgba(245, 246, 250, 0.82);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.home-values {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.home-values .value-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(245, 246, 250, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(245, 246, 250, 0.08);
  color: #F5F6FA;
  transition: border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.home-values .value-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #F5F6FA;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease);
}

.home-values .value-card:hover {
  border-color: #F5F6FA;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.home-values .value-card:hover::before {
  transform: scaleX(1);
}

.home-values .value-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-sm);
  background: #F5F6FA;
  color: #1A2F6B;
  font-size: 1.1rem;
}

.home-values .value-card h3,
.home-values .value-card p {
  color: #F5F6FA;
}

.home-values .value-card p {
  color: rgba(245, 246, 250, 0.88);
}

/* --------------------------------------------------------------------------
   Selected work (#F5F6FA bg, #1A2F6B text/elements)
   -------------------------------------------------------------------------- */

.home-work {
  background: #F5F6FA;
  color: #1A2F6B;
  border-bottom: 2px solid #1A2F6B;
}

.home-work .section-head {
  margin-bottom: 1.5rem;
}

.home-work .eyebrow {
  color: #1A2F6B;
  font-weight: 700;
}

.home-work .section-title > span,
.home-work .section-title:not(:has(span)) {
  display: inline;
  background-color: #1A2F6B;
  color: #FFFFFF !important;
  padding: 0.08em 0.38em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.home-work .section-subtitle {
  color: rgba(26, 47, 107, 0.85);
}

.home-work .text-link {
  color: #1A2F6B;
  border-color: rgba(26, 47, 107, 0.4);
}

.home-work .text-link:hover {
  color: #122050;
  border-color: #122050;
}

.filter-bar--home {
  margin-bottom: 0.25rem;
}

.filter-bar--home .filter-pill {
  border: 1.5px solid #1A2F6B;
  background: #F5F6FA;
  color: #1A2F6B;
  font-weight: 600;
}

.filter-bar--home .filter-pill:hover {
  border-color: #1A2F6B;
  background: #1A2F6B;
  color: #FFFFFF;
}

.filter-bar--home .filter-pill.is-active {
  border-color: #1A2F6B;
  background: #1A2F6B;
  color: #FFFFFF;
  font-weight: 700;
}

.home-work .filter-status {
  margin-bottom: 1.5rem;
  color: rgba(26, 47, 107, 0.8);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.showcase-card {
  min-width: 0;
}

.showcase-card-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid #1A2F6B;
  border-radius: var(--radius-lg);
  background: #1A2F6B;
  box-shadow: 0 12px 32px rgba(26, 47, 107, 0.16);
  color: #F5F6FA;
  text-decoration: none;
}

.showcase-card-link:hover,
.showcase-card-link:focus-visible {
  border-color: #122050;
  box-shadow: 0 16px 36px rgba(26, 47, 107, 0.28);
  color: #F5F6FA;
}

.showcase-card-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.showcase-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.showcase-shade,
.showcase-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.showcase-shade {
  background: linear-gradient(180deg, rgba(26, 47, 107, 0.05) 15%, rgba(26, 47, 107, 0.65) 55%, rgba(26, 47, 107, 0.98) 100%);
}

.showcase-tint {
  background: rgba(26, 47, 107, 0.88);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.showcase-card-link:hover .showcase-tint,
.showcase-card-link:focus-visible .showcase-tint {
  opacity: 0.92;
}

.showcase-card-link:hover .showcase-card-media img,
.showcase-card-link:focus-visible .showcase-card-media img {
  filter: saturate(1.05);
  transform: scale(1.06);
}

.showcase-index,
.showcase-badge {
  position: absolute;
  top: 1.1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border: 1.5px solid rgba(245, 246, 250, 0.4);
  border-radius: var(--radius-full);
  background: #1A2F6B;
  color: #F5F6FA;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.showcase-index {
  left: 1.1rem;
}

.showcase-badge {
  right: 1.1rem;
}

.showcase-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem;
}

.showcase-category {
  margin: 0;
  color: #F5F6FA;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.showcase-title {
  margin: 0;
  color: #F5F6FA;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.showcase-summary {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(245, 246, 250, 0.92);
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.3s var(--ease),
    margin 0.45s var(--ease);
}

.showcase-card-link:hover .showcase-summary,
.showcase-card-link:focus-visible .showcase-summary {
  max-height: 6rem;
  margin-top: 0.15rem;
  opacity: 1;
}

.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  color: #F5F6FA;
  font-size: 0.74rem;
  font-weight: 600;
}

.showcase-cta i {
  transition: transform var(--duration-fast) var(--ease);
}

.showcase-card-link:hover .showcase-cta i,
.showcase-card-link:focus-visible .showcase-cta i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Services (#1A2F6B bg, #F5F6FA text/elements)
   -------------------------------------------------------------------------- */

.home-services {
  background: #1A2F6B;
  color: #F5F6FA;
  border-bottom: 2px solid rgba(245, 246, 250, 0.3);
}

.home-services .eyebrow {
  color: #F5F6FA;
  font-weight: 700;
}

.home-services .section-title,
.home-services .section-title > span {
  background-color: transparent;
  color: #F5F6FA !important;
  padding: 0;
  box-decoration-break: none;
  -webkit-box-decoration-break: none;
}

.home-services .section-subtitle {
  color: rgba(245, 246, 250, 0.88);
}

.home-services .text-link {
  color: #F5F6FA;
  border-color: rgba(245, 246, 250, 0.4);
}

.home-services .text-link:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.home-services .service-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(245, 246, 250, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(245, 246, 250, 0.08);
  color: #F5F6FA;
  transition: border-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.home-services .service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #F5F6FA;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease);
}

.home-services .service-card:hover {
  border-color: #F5F6FA;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.home-services .service-card:hover::before {
  transform: scaleX(1);
}

.home-services .service-icon,
.home-services .service-card:nth-child(2) .service-icon,
.home-services .service-card:nth-child(3) .service-icon {
  border: 1.5px solid rgba(245, 246, 250, 0.5);
  background: #F5F6FA;
  color: #1A2F6B;
}

.home-services .service-card h3,
.home-services .service-card p,
.home-services .service-features li,
.home-services .service-features i {
  color: #F5F6FA;
}

.home-services .service-card p {
  color: rgba(245, 246, 250, 0.88);
}

.home-services .service-card .text-link {
  color: #F5F6FA;
  border-color: rgba(245, 246, 250, 0.4);
}

.home-services .service-card .text-link:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.home-services .service-cta {
  color: #F5F6FA;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Working principle (#F5F6FA bg, #1A2F6B text/elements)
   -------------------------------------------------------------------------- */

.home-quote {
  background: #F5F6FA;
  color: #1A2F6B;
  border-bottom: 2px solid #1A2F6B;
}

.home-quote-inner {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border: 2px solid #1A2F6B;
  border-radius: var(--radius-2xl);
  background: #F5F6FA;
  box-shadow: 0 16px 36px -12px rgba(26, 47, 107, 0.15);
}

.home-quote-inner::before {
  position: absolute;
  top: -2.5rem;
  right: 1.5rem;
  color: rgba(26, 47, 107, 0.1);
  content: "\201C";
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 18rem);
  line-height: 1;
  pointer-events: none;
}

.home-quote .eyebrow {
  position: relative;
  z-index: 1;
  color: #1A2F6B;
  font-weight: 700;
}

.home-quote blockquote {
  position: relative;
  z-index: 1;
  max-width: 24ch;
  margin: 0;
  color: #1A2F6B;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.home-quote-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 47, 107, 0.25);
  color: rgba(26, 47, 107, 0.85);
  font-size: 0.85rem;
}

.home-quote-meta cite {
  font-style: normal;
  font-weight: 600;
  color: #1A2F6B;
}

.home-quote .text-link--light {
  border-color: rgba(26, 47, 107, 0.4);
  color: #1A2F6B;
}

.home-quote .text-link--light:hover {
  border-color: #122050;
  color: #122050;
}

/* --------------------------------------------------------------------------
   Journal (#1A2F6B bg, #F5F6FA text/elements)
   -------------------------------------------------------------------------- */

.home-journal {
  background: #1A2F6B;
  color: #F5F6FA;
  border-bottom: 2px solid rgba(245, 246, 250, 0.3);
}

.home-journal .eyebrow {
  color: #F5F6FA;
  font-weight: 700;
}

.home-journal .section-title,
.home-journal .section-title > span {
  background-color: transparent;
  color: #F5F6FA !important;
  padding: 0;
  box-decoration-break: none;
  -webkit-box-decoration-break: none;
}

.home-journal .text-link {
  color: #F5F6FA;
  border-color: rgba(245, 246, 250, 0.4);
}

.home-journal .text-link:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.home-journal .post-card {
  overflow: hidden;
  border: 1.5px solid rgba(245, 246, 250, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(245, 246, 250, 0.08);
  color: #F5F6FA;
  transition: border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}

.home-journal .post-card:hover {
  border-color: #F5F6FA;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.home-journal .post-card-media {
  border: 0;
  border-radius: 0;
}

.home-journal .post-card .badge,
.home-journal .card-badge {
  background: #F5F6FA;
  color: #1A2F6B;
  border: 1px solid #F5F6FA;
}

.home-journal .post-card-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.home-journal .post-card-meta {
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.home-journal .post-card-meta span:first-child {
  padding: 0.24rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(245, 246, 250, 0.2);
  color: #F5F6FA;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-journal .post-card-meta time,
.home-journal .post-card-meta span:last-child {
  color: rgba(245, 246, 250, 0.85);
}

.home-journal .post-card-title {
  margin-top: 0.25rem;
  color: #F5F6FA;
  font-size: 1.16rem;
  line-height: 1.3;
}

.home-journal .post-card-excerpt {
  color: rgba(245, 246, 250, 0.88);
  font-size: 0.83rem;
}

.home-journal .post-card-cta {
  color: #F5F6FA;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-caret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero-copy > * {
    animation: home-rise 0.28s ease-out both;
  }

  .home-hero-copy > :nth-child(1) {
    animation-delay: 0.02s;
  }

  .home-hero-copy > :nth-child(2) {
    animation-delay: 0.05s;
  }

  .home-hero-copy > :nth-child(3) {
    animation-delay: 0.08s;
  }

  .home-hero-copy > :nth-child(4) {
    animation-delay: 0.12s;
  }

  .home-hero-copy > :nth-child(5) {
    animation-delay: 0.16s;
  }

  .home-hero-copy > :nth-child(6) {
    animation-delay: 0.2s;
  }

  .home-hero-visual {
    animation: home-rise 0.32s ease-out 0.06s both;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
  }

  .hero-note--years {
    left: -1rem;
  }

  .hero-note--craft {
    right: -0.75rem;
  }

  .home-skill-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .home-hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-bottom: 2rem;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .home-hero-copy {
    max-width: 720px;
  }

  .home-hero .hero-title {
    max-width: 16ch;
  }

  .home-hero-visual {
    justify-self: center;
    width: min(100%, 280px);
  }

  .home-hero .hero-scroll {
    display: none;
  }

  .home-about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .home-about-media {
    width: min(100%, 470px);
    margin-inline: auto;
  }

  .home-about-media::before {
    display: none;
  }

  .home-about-copy {
    max-width: 720px;
  }

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

  .showcase-card-link {
    aspect-ratio: 4 / 4.6;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.75rem;
  }

  .hero-kicker {
    font-size: 0.62rem;
  }

  .hero-kicker-sep,
  .hero-kicker span:last-child {
    display: none;
  }

  .home-hero .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    line-height: 1.1;
  }

  .hero-note--craft {
    display: none;
  }

  .hero-note--years {
    bottom: 1rem;
    left: 1rem;
  }

  .home-about-badge {
    right: 1rem;
    bottom: 1.25rem;
  }

  .home-about-signature {
    display: none;
  }

  .home-skill-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-values {
    margin-top: 2.5rem;
  }

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

  .showcase-card-link {
    aspect-ratio: 4 / 4.2;
  }

  .showcase-summary {
    max-height: 6rem;
    opacity: 1;
  }

  .showcase-tint {
    opacity: 0.3;
  }

  .showcase-card-link:hover .showcase-tint,
  .showcase-card-link:focus-visible .showcase-tint {
    opacity: 0.9;
  }

  .home-quote-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-journal .post-card-body {
    padding: 1.2rem;
  }
}

@media (max-width: 560px) {
  .hero-kicker {
    padding: 0.5rem 0.7rem;
  }

  .hero-portrait-top {
    top: 0.85rem;
    right: 0.85rem;
    left: 0.85rem;
  }

  .hero-chip {
    font-size: 0.55rem;
  }

  .hero-chip--ghost {
    display: none;
  }

  .hero-portrait-caption {
    right: 0.95rem;
    bottom: 0.95rem;
    left: 0.95rem;
  }

  .hero-note--years {
    padding: 0.65rem 0.75rem;
  }

  .hero-note--years strong {
    font-size: 1.45rem;
  }

  .hero-note--years span {
    max-width: 8ch;
    font-size: 0.52rem;
  }

  .home-skill-rings {
    gap: 0.5rem;
  }

  .skill-ring {
    padding: 0.75rem 0.35rem;
  }

  .skill-ring svg {
    width: 64px;
    height: 64px;
  }

  .ring-label span {
    font-size: 0.54rem;
  }

  .home-about-badge {
    padding: 0.75rem 0.85rem;
  }

  .home-about-badge strong {
    font-size: 1.45rem;
  }

  .home-about-badge span {
    font-size: 0.54rem;
  }

  .showcase-content {
    padding: 1.15rem;
  }

  .showcase-index,
  .showcase-badge {
    top: 0.9rem;
  }

  .showcase-index {
    left: 0.9rem;
  }

  .showcase-badge {
    right: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-caret {
    animation: none;
    opacity: 1;
  }

  .hero-note {
    animation: none;
  }

  .showcase-summary {
    max-height: 6rem;
    opacity: 1;
  }

  .showcase-tint {
    opacity: 0.3;
  }
}

@media print {
  .home-hero {
    min-height: auto;
    padding-block: 1.5rem;
    background: #ffffff;
    color: #000000;
  }

  .home-hero-bg,
  .home-hero-visual,
  .home-hero .hero-scroll,
  .marquee,
  .home-quote {
    display: none !important;
  }

  .home-hero .hero-title,
  .hero-script,
  .home-hero .hero-lede,
  .hero-kicker,
  .home-hero .hero-meta {
    color: #000000;
  }

  .home-skill-rings {
    display: none;
  }
}
