/*
Theme Name: Furpix Portfolio
Theme URI: https://furpix.dev/
Description: Systems in Motion — an animated developer and IT services portfolio.
Author: Furpix
Template: twentytwentyfive
Version: 1.4.5
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: furpix-portfolio
*/

@font-face {
  font-family: "Manrope";
  src: url("../twentytwentyfive/assets/fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Fira Code";
  src: url("../twentytwentyfive/assets/fonts/fira-code/FiraCode-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --fp-carbon: #080b0f;
  --fp-ink: #0d1117;
  --fp-steel: #151b23;
  --fp-steel-light: #1d2631;
  --fp-frost: #e8edf2;
  --fp-muted: #8e9baa;
  --fp-dim: #5f6c79;
  --fp-accent: #53d8fb;
  --fp-accent-soft: rgba(83, 216, 251, 0.14);
  --fp-amber: #ffb45c;
  --fp-line: rgba(232, 237, 242, 0.11);
  --fp-line-strong: rgba(232, 237, 242, 0.2);
  --fp-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --fp-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --fp-mono: "Fira Code", "SFMono-Regular", Consolas, monospace;
  --fp-max: 1180px;
  --fp-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --fp-radius: 1.15rem;
}

html {
  scroll-behavior: smooth;
}

body.fp-portfolio-active {
  margin: 0;
  background: var(--fp-carbon);
  color: var(--fp-frost);
  font-family: var(--fp-display);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.fp-portfolio-active .wp-site-blocks {
  padding: 0;
}

body.fp-portfolio-active header.wp-block-template-part,
body.fp-portfolio-active footer.wp-block-template-part,
body.fp-portfolio-active .wp-block-post-title {
  display: none;
}

body.fp-portfolio-active main,
body.fp-portfolio-active .wp-block-post-content,
body.fp-portfolio-active .entry-content {
  margin: 0;
  padding: 0;
  max-width: none;
}

body.fp-portfolio-active #wp--skip-link--target > .wp-block-group.alignfull.has-global-padding {
  width: 100%;
  max-width: none;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

/* Remove Twenty Twenty-Five's outer page spacing around the custom homepage. */
body.fp-portfolio-active .wp-site-blocks > main {
  margin-block-start: 0 !important;
}

body.fp-portfolio-active .wp-site-blocks > main > .wp-block-group.alignfull.has-global-padding {
  padding-block: 0 !important;
}

.fp-portfolio-page,
.fp-portfolio-page * {
  box-sizing: border-box;
}

.fp-portfolio-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 8%, rgba(83, 216, 251, 0.08), transparent 28rem),
    linear-gradient(180deg, var(--fp-carbon) 0%, #0a0e13 45%, var(--fp-carbon) 100%);
  color: var(--fp-frost);
  min-height: 100vh;
}

.fp-portfolio-page::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 68%);
}

.fp-portfolio-page a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.fp-portfolio-page a:focus-visible,
.fp-portfolio-page button:focus-visible {
  outline: 2px solid var(--fp-accent);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

.fp-frame {
  width: min(calc(100% - (2 * var(--fp-gutter))), var(--fp-max));
  margin-inline: auto;
}

/* Elementor draft compatibility: keep native widgets editable while preserving the approved design. */
.fp-elementor-page.e-con {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: clip;
  --flex-direction: column;
}

.fp-elementor-page .e-con {
  --padding-top: 0;
  --padding-right: 0;
  --padding-bottom: 0;
  --padding-left: 0;
  --gap: 0;
}

.fp-elementor-page .fp-nav-inner,
.fp-elementor-page .fp-hero-grid,
.fp-elementor-page .fp-frame,
.fp-elementor-page .fp-footer-inner {
  width: min(calc(100% - (2 * var(--fp-gutter))), var(--fp-max));
  max-width: var(--fp-max);
  margin-inline: auto;
}

.fp-elementor-page .elementor-widget {
  min-width: 0;
  margin: 0;
}

.fp-elementor-page .elementor-widget-text-editor p,
.fp-elementor-page .elementor-widget-text-editor .elementor-widget-container {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.fp-elementor-page .elementor-widget-heading .elementor-heading-title {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.fp-elementor-page .fp-nav-inner,
.fp-elementor-page .fp-nav-links,
.fp-elementor-page .fp-hero-actions,
.fp-elementor-page .fp-footer-inner {
  flex-direction: row;
  --flex-direction: row;
}

.fp-elementor-page .fp-nav-wrap {
  position: sticky !important;
}

.fp-elementor-page .fp-brand,
.fp-elementor-page .fp-nav-links {
  width: auto;
  flex: 0 0 auto;
  --width: auto;
}

.fp-elementor-page .fp-brand,
.fp-elementor-page .fp-brand .elementor-widget-container,
.fp-elementor-page .fp-brand p,
.fp-elementor-page .fp-brand a {
  white-space: nowrap;
}

.fp-elementor-page .fp-nav-links {
  justify-content: flex-end;
}

.fp-elementor-page .fp-kicker,
.fp-elementor-page .fp-section-kicker,
.fp-elementor-page .fp-service-label {
  color: var(--fp-accent);
}

.fp-elementor-page .fp-project-meta {
  color: var(--fp-amber);
}

.fp-elementor-page .fp-scroll-cue {
  width: auto;
}

.fp-elementor-page .fp-hero-grid,
.fp-elementor-page .fp-section-head,
.fp-elementor-page .fp-project-card,
.fp-elementor-page .fp-service-grid,
.fp-elementor-page .fp-about-grid,
.fp-elementor-page .fp-principles,
.fp-elementor-page .fp-contact-inner {
  display: grid;
}

.fp-elementor-page .fp-nav-links,
.fp-elementor-page .fp-hero-actions,
.fp-elementor-page .fp-footer-inner {
  display: flex;
}

.fp-elementor-page .fp-brand .elementor-widget-container,
.fp-elementor-page .fp-map-label .elementor-widget-container,
.fp-elementor-page .fp-map-core .elementor-widget-container,
.fp-elementor-page .fp-map-node .elementor-widget-container {
  display: contents;
}

.fp-elementor-page .fp-nav-links > .elementor-widget-button,
.fp-elementor-page .fp-hero-actions > .elementor-widget-button {
  width: auto;
}

.fp-elementor-page .fp-nav-links .elementor-button {
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.fp-elementor-page .fp-nav-links .elementor-button:hover {
  color: var(--fp-frost);
}

.fp-elementor-page .fp-nav-links > .elementor-widget-button:last-child .elementor-button {
  margin-left: 0.4rem;
  border: 1px solid var(--fp-line-strong);
  border-radius: 999px;
  color: var(--fp-frost);
}

.fp-elementor-page .fp-nav-links > .elementor-widget-button:last-child .elementor-button:hover {
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}

.fp-elementor-page .fp-hero-actions .elementor-button {
  min-width: 10.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--fp-accent);
  border-radius: 999px;
  background: var(--fp-accent);
  color: #061015;
  font-family: var(--fp-mono);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fp-elementor-page .fp-hero-actions .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(83, 216, 251, 0.22);
}

.fp-elementor-page .fp-hero-actions .fp-button-outline .elementor-button {
  border-color: var(--fp-line-strong);
  background: transparent;
  color: var(--fp-frost);
}

.fp-elementor-page .fp-system-map > .elementor-widget-container {
  width: 100%;
  height: 100%;
}

.fp-elementor-page .fp-project-index,
.fp-elementor-page .fp-project-title,
.fp-elementor-page .fp-project-copy,
.fp-elementor-page .fp-project-meta,
.fp-elementor-page .fp-service-label,
.fp-elementor-page .fp-service-title,
.fp-elementor-page .fp-service-copy,
.fp-elementor-page .fp-principle {
  align-self: auto;
}

/* Elementor writes zero spacing and 20px flex gaps after the theme stylesheet.
 * Restore the approved rhythm with scoped, explicit overrides. */
.fp-elementor-page {
  --fp-dim: #75828d;
}

.fp-elementor-page .fp-hero,
.fp-elementor-page .fp-section,
.fp-elementor-page .fp-frame,
.fp-elementor-page .fp-hero-content,
.fp-elementor-page .fp-section-copy,
.fp-elementor-page .fp-project-list,
.fp-elementor-page .fp-service-card,
.fp-elementor-page .fp-about-aside,
.fp-elementor-page .fp-about-content,
.fp-elementor-page .fp-principles,
.fp-elementor-page .fp-contact-heading,
.fp-elementor-page .fp-contact-copy-wrap {
  gap: 0 !important;
  --row-gap: 0;
  --column-gap: 0;
}

.fp-elementor-page .fp-hero {
  display: grid;
  min-height: calc(100vh - 4.5rem) !important;
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(5rem, 9vh, 7rem) !important;
}

.fp-elementor-page .fp-section {
  padding: clamp(6.5rem, 12vw, 11rem) 0 !important;
}

.fp-elementor-page .fp-nav-inner {
  min-height: 4.5rem !important;
  gap: 1.5rem !important;
}

.fp-elementor-page .fp-nav-links { gap: clamp(0.2rem, 1vw, 1rem) !important; }
.fp-elementor-page .fp-hero-grid { gap: clamp(3rem, 7vw, 7rem) !important; }
.fp-elementor-page .fp-hero-actions { gap: 0.75rem !important; }
.fp-elementor-page .fp-section-head { gap: 2rem !important; }
.fp-elementor-page .fp-project-card { gap: clamp(1rem, 3vw, 2.6rem) !important; }
.fp-elementor-page .fp-service-grid { gap: 1rem !important; }
.fp-elementor-page .fp-about-grid { gap: clamp(3rem, 9vw, 9rem) !important; }
.fp-elementor-page .fp-contact-inner { gap: 3rem !important; }
.fp-elementor-page .fp-footer-inner { gap: 1rem !important; }

.fp-elementor-page .fp-project-card {
  padding: clamp(1.7rem, 4vw, 3.2rem) 0 !important;
}

.fp-elementor-page .fp-service-card {
  min-height: 18rem !important;
  padding: clamp(1.6rem, 4vw, 3rem) !important;
  border-radius: var(--fp-radius) !important;
}

.fp-elementor-page .fp-kicker { margin: 0 0 1.4rem !important; }
.fp-elementor-page .fp-hero-copy { margin: 2rem 0 0 !important; }
.fp-elementor-page .fp-hero-actions { margin: 2.25rem 0 0 !important; }
.fp-elementor-page .fp-section-head { margin: 0 0 clamp(3.5rem, 7vw, 6rem) !important; }
.fp-elementor-page .fp-section-intro { margin: 1.2rem 0 0 !important; }
.fp-elementor-page .fp-service-label { margin: 0 0 4.5rem !important; }
.fp-elementor-page .fp-service-title { margin: 0 0 1rem !important; }
.fp-elementor-page .fp-status-line { margin: 1rem 0 0 !important; }
.fp-elementor-page .fp-about-content > .fp-section-kicker { margin: 0 0 1.25rem !important; }
.fp-elementor-page .fp-about-copy { margin: 2rem 0 0 !important; }
.fp-elementor-page .fp-principles { margin: 3rem 0 0 !important; }
.fp-elementor-page .fp-contact-kicker { margin: 0 0 1.25rem !important; }
.fp-elementor-page .fp-contact-copy { margin: 0 !important; }
.fp-elementor-page .fp-contact-note { margin: 1.25rem 0 0 !important; }

.fp-elementor-page .fp-map-label { font-size: clamp(0.6rem, 1vw, 0.68rem) !important; }
.fp-elementor-page .fp-project-index { font-size: 0.72rem; }
.fp-elementor-page .fp-project-meta,
.fp-elementor-page .fp-status-line,
.fp-elementor-page .fp-footer p { font-size: 0.68rem; }
.fp-elementor-page .fp-contact-note { font-size: 0.7rem; }

@media (max-width: 900px) {
  .fp-elementor-page .fp-nav-inner {
    min-height: 4rem !important;
  }

  .fp-elementor-page .fp-hero {
    min-height: auto !important;
  }
}

@media (max-width: 640px) {
  .fp-elementor-page .fp-hero {
    padding-top: 4.2rem !important;
  }

  .fp-elementor-page .fp-section {
    padding-block: 5.5rem !important;
  }

  .fp-elementor-page .fp-section-head {
    margin-bottom: 3rem !important;
  }

  .fp-elementor-page .fp-service-label {
    margin-bottom: 3rem !important;
  }

  .fp-elementor-page .fp-service-card {
    min-height: 15rem !important;
  }

  .fp-elementor-page .fp-principle,
  .fp-elementor-page .fp-principle:nth-child(2),
  .fp-elementor-page .fp-principle:last-child {
    padding: 1rem 0 !important;
  }

  .fp-elementor-page .fp-contact-copy {
    margin-top: 1rem !important;
  }
}

.fp-nav-wrap {
  position: sticky;
  z-index: 30;
  top: 0;
  margin: 0;
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 15, 0.42);
  backdrop-filter: blur(18px) saturate(120%);
  transition: background 220ms ease, border-color 220ms ease;
}

.fp-nav-wrap.is-scrolled {
  border-color: var(--fp-line);
  background: rgba(8, 11, 15, 0.88);
}

.fp-nav-inner {
  display: flex;
  width: min(calc(100% - (2 * var(--fp-gutter))), var(--fp-max));
  min-height: 4.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.fp-brand {
  margin: 0;
  font-family: var(--fp-mono);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fp-brand a {
  text-decoration: none;
}

.fp-brand-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.65rem;
  border-radius: 999px;
  background: var(--fp-accent);
  box-shadow: 0 0 0 5px rgba(83, 216, 251, 0.1), 0 0 20px rgba(83, 216, 251, 0.75);
  animation: fp-pulse 2.8s ease-in-out infinite;
}

.fp-nav-links.wp-block-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.2rem, 1vw, 1rem);
}

.fp-nav-links .wp-block-button__link {
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fp-muted);
  font-family: var(--fp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.fp-nav-links .wp-block-button__link:hover {
  color: var(--fp-frost);
}

.fp-nav-links .wp-block-button:last-child .wp-block-button__link {
  margin-left: 0.4rem;
  border: 1px solid var(--fp-line-strong);
  border-radius: 999px;
  color: var(--fp-frost);
}

.fp-nav-links .wp-block-button:last-child .wp-block-button__link:hover {
  border-color: var(--fp-accent);
  color: var(--fp-accent);
}

.fp-hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  margin: 0;
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(5rem, 9vh, 7rem);
  display: grid;
  align-items: center;
}

.fp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(21rem, 0.82fr);
  width: min(calc(100% - (2 * var(--fp-gutter))), var(--fp-max));
  margin-inline: auto;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.fp-kicker,
.fp-section-kicker,
.fp-project-index,
.fp-project-meta,
.fp-service-label,
.fp-map-label,
.fp-status-line {
  font-family: var(--fp-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fp-kicker {
  margin: 0 0 1.4rem;
  color: var(--fp-accent);
  font-size: clamp(0.72rem, 1vw, 0.84rem);
}

.fp-hero-title {
  max-width: 14ch;
  margin: 0;
  color: var(--fp-frost);
  font-family: var(--fp-display);
  font-size: clamp(3.35rem, 6vw, 5.4rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.fp-hero-title .fp-outline {
  display: block;
  color: #b8c4ce;
  -webkit-text-stroke: 0;
}

.fp-hero-copy {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: var(--fp-muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.75;
}

.fp-hero-actions.wp-block-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.fp-hero-actions .wp-block-button__link {
  min-width: 10.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--fp-accent);
  border-radius: 999px;
  background: var(--fp-accent);
  color: #061015;
  font-family: var(--fp-mono);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fp-hero-actions .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(83, 216, 251, 0.22);
}

.fp-hero-actions .is-style-outline .wp-block-button__link {
  border-color: var(--fp-line-strong);
  background: transparent;
  color: var(--fp-frost);
}

.fp-system-map {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  width: min(100%, 29rem);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border: 1px solid var(--fp-line);
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(83, 216, 251, 0.13), transparent 32%),
    radial-gradient(circle, rgba(83, 216, 251, 0.04) 0 1px, transparent 1px);
  background-size: auto, 19px 19px;
  box-shadow: inset 0 0 80px rgba(83, 216, 251, 0.03), var(--fp-shadow);
}

.fp-system-map::before,
.fp-system-map::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1px solid rgba(83, 216, 251, 0.13);
  border-radius: 50%;
}

.fp-system-map::after {
  inset: 31%;
  border-style: dashed;
  animation: fp-orbit 24s linear infinite;
}

.fp-map-axis-x,
.fp-map-axis-y {
  position: absolute;
  z-index: 0;
  margin: 0;
  background: rgba(83, 216, 251, 0.1);
  pointer-events: none;
}

.fp-map-axis-x {
  top: 50%;
  left: 7%;
  width: 86%;
  height: 1px;
}

.fp-map-axis-y {
  top: 7%;
  left: 50%;
  width: 1px;
  height: 86%;
}

.fp-map-core {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 7.3rem;
  height: 7.3rem;
  margin: 0;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(83, 216, 251, 0.45);
  border-radius: 50%;
  background: rgba(8, 11, 15, 0.92);
  color: var(--fp-frost);
  font-family: var(--fp-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 38px rgba(83, 216, 251, 0.14);
}

.fp-map-node {
  position: absolute;
  z-index: 5;
  margin: 0;
  padding: 0.55rem 0.72rem;
  border: 1px solid var(--fp-line-strong);
  border-radius: 0.55rem;
  background: rgba(13, 17, 23, 0.92);
  color: var(--fp-frost);
  font-family: var(--fp-mono);
  font-size: clamp(0.58rem, 1vw, 0.7rem);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.fp-map-node::before {
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--fp-accent);
  box-shadow: 0 0 12px var(--fp-accent);
  content: "";
}

.fp-node-1 { top: 12%; left: 42%; animation: fp-float 5.2s ease-in-out infinite; }
.fp-node-2 { top: 44%; right: -3%; animation: fp-float 6.2s ease-in-out -1.5s infinite; }
.fp-node-3 { right: 15%; bottom: 10%; animation: fp-float 5.7s ease-in-out -2.4s infinite; }
.fp-node-4 { bottom: 21%; left: -3%; animation: fp-float 6.6s ease-in-out -0.8s infinite; }
.fp-node-5 { top: 27%; left: -7%; animation: fp-float 5.9s ease-in-out -3s infinite; }

.fp-map-label {
  position: absolute;
  right: 2.5rem;
  bottom: 2.1rem;
  margin: 0;
  color: var(--fp-dim);
  font-size: 0.58rem;
}

.fp-scroll-cue {
  position: absolute;
  bottom: 1.65rem;
  left: var(--fp-gutter);
  display: flex;
  margin: 0;
  align-items: center;
  gap: 0.8rem;
  color: var(--fp-dim);
  font-family: var(--fp-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fp-scroll-cue::before {
  width: 2.6rem;
  height: 1px;
  background: var(--fp-line-strong);
  content: "";
}

.fp-section {
  margin: 0;
  padding: clamp(6.5rem, 12vw, 11rem) 0;
  border-top: 1px solid var(--fp-line);
}

.fp-section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  gap: 2rem;
  align-items: end;
}

.fp-section-kicker {
  margin: 0;
  color: var(--fp-accent);
  font-size: 0.7rem;
}

.fp-section-title {
  max-width: 15ch;
  margin: 0;
  color: var(--fp-frost);
  font-size: clamp(2.4rem, 5.5vw, 5.3rem);
  font-weight: 720;
  letter-spacing: -0.052em;
  line-height: 1;
  text-wrap: balance;
}

.fp-section-intro {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  color: var(--fp-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.7;
}

.fp-project-list {
  margin: 0;
  border-top: 1px solid var(--fp-line-strong);
  perspective: 1100px;
}

.fp-project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: 0.22fr 1.1fr 1.25fr 0.48fr;
  margin: 0;
  padding: clamp(1.7rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--fp-line-strong);
  gap: clamp(1rem, 3vw, 2.6rem);
  align-items: center;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: background 220ms ease, transform 180ms ease, padding 220ms ease;
}

.fp-project-card::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(-1 * clamp(1rem, 2.5vw, 2.5rem));
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(83, 216, 251, 0.055), transparent);
  transition: opacity 220ms ease;
}

.fp-project-card:hover::before {
  opacity: 1;
}

.fp-project-index {
  margin: 0;
  color: var(--fp-dim);
  font-size: 0.7rem;
}

.fp-project-title {
  margin: 0;
  color: var(--fp-frost);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.fp-project-copy {
  margin: 0;
  color: var(--fp-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.fp-project-meta {
  margin: 0;
  color: var(--fp-amber);
  font-size: 0.62rem;
  line-height: 1.55;
  text-align: right;
}

.fp-services {
  background: var(--fp-ink);
}

.fp-service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: 0;
  gap: 1rem;
}

.fp-service-card {
  position: relative;
  grid-column: span 6;
  min-height: 18rem;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  background: var(--fp-steel);
}

.fp-service-card:nth-child(2),
.fp-service-card:nth-child(3) {
  background: transparent;
}

.fp-service-card::after {
  position: absolute;
  right: -2.5rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(83, 216, 251, 0.12);
  border-radius: 50%;
  content: "";
}

.fp-service-label {
  margin: 0 0 4.5rem;
  color: var(--fp-accent);
  font-size: 0.64rem;
}

.fp-service-title {
  max-width: 14ch;
  margin: 0 0 1rem;
  color: var(--fp-frost);
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.fp-service-copy {
  max-width: 34rem;
  margin: 0;
  color: var(--fp-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.fp-about-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.fp-about-aside {
  position: sticky;
  top: 7rem;
  margin: 0;
}

.fp-portrait-mark {
  position: relative;
  display: grid;
  width: min(100%, 20rem);
  aspect-ratio: 4 / 5;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--fp-line-strong);
  border-radius: var(--fp-radius);
  background:
    linear-gradient(145deg, rgba(83, 216, 251, 0.12), transparent 46%),
    var(--fp-steel);
  color: var(--fp-frost);
  font-family: var(--fp-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.08em;
}

.fp-portrait-mark::before,
.fp-portrait-mark::after {
  position: absolute;
  content: "";
}

.fp-portrait-mark::before {
  inset: 10%;
  border: 1px solid rgba(232, 237, 242, 0.09);
}

.fp-portrait-mark::after {
  right: 0;
  bottom: 0;
  width: 45%;
  height: 1px;
  transform: rotate(-45deg);
  transform-origin: right;
  background: var(--fp-accent);
}

.fp-status-line {
  margin: 1rem 0 0;
  color: var(--fp-dim);
  font-size: 0.62rem;
}

.fp-about-title {
  max-width: 13ch;
  margin: 0;
  color: var(--fp-frost);
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  font-weight: 720;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.fp-about-copy {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: var(--fp-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.75;
}

.fp-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3rem 0 0;
  border-top: 1px solid var(--fp-line);
}

.fp-principle {
  margin: 0;
  padding: 1.4rem 1.2rem 0 0;
  border-right: 1px solid var(--fp-line);
}

.fp-principle:last-child {
  border-right: 0;
  padding-left: 1.2rem;
}

.fp-principle:nth-child(2) {
  padding-left: 1.2rem;
}

.fp-principle strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--fp-frost);
  font-family: var(--fp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-principle {
  color: var(--fp-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.fp-contact {
  position: relative;
  overflow: hidden;
  background: var(--fp-accent);
  color: #061015;
}

.fp-contact::after {
  position: absolute;
  top: 50%;
  right: -10vw;
  width: 42vw;
  aspect-ratio: 1;
  transform: translateY(-50%);
  border: 1px solid rgba(6, 16, 21, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 5vw rgba(6, 16, 21, 0.04), 0 0 0 10vw rgba(6, 16, 21, 0.025);
}

.fp-contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: end;
}

.fp-contact-kicker {
  margin: 0 0 1.25rem;
  color: rgba(6, 16, 21, 0.67);
  font-family: var(--fp-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fp-contact-title {
  max-width: 12ch;
  margin: 0;
  color: #061015;
  font-size: clamp(2.7rem, 6.7vw, 6.5rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.fp-contact-copy {
  max-width: 29rem;
  margin: 0;
  color: rgba(6, 16, 21, 0.72);
  font-size: 1.02rem;
  line-height: 1.65;
}

.fp-contact-note {
  margin: 1.25rem 0 0;
  color: #061015;
  font-family: var(--fp-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fp-footer {
  margin: 0;
  padding: 1.4rem var(--fp-gutter);
  border-top: 1px solid rgba(6, 16, 21, 0.16);
  background: var(--fp-accent);
  color: rgba(6, 16, 21, 0.7);
}

.fp-footer-inner {
  display: flex;
  width: min(100%, var(--fp-max));
  margin-inline: auto;
  justify-content: space-between;
  gap: 1rem;
}

.fp-footer p {
  margin: 0;
  font-family: var(--fp-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html.fp-js .fp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 680ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.fp-js .fp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.fp-js .fp-project-card.fp-reveal.is-visible {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

@keyframes fp-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes fp-orbit {
  to { transform: rotate(360deg); }
}

@keyframes fp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .fp-nav-inner {
    min-height: 4rem;
  }

  .fp-nav-links .wp-block-button:not(:last-child),
  .fp-elementor-page .fp-nav-links > .elementor-widget-button:not(:last-child) {
    display: none;
  }

  .fp-hero {
    min-height: auto;
    padding-top: 5rem;
  }

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

  .fp-hero-copy {
    max-width: 33rem;
  }

  .fp-system-map {
    width: min(88vw, 28rem);
    margin-top: 2rem;
  }

  .fp-scroll-cue {
    display: none;
  }

  .fp-section-head,
  .fp-about-grid,
  .fp-contact-inner {
    grid-template-columns: 1fr;
  }

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

  .fp-project-meta {
    grid-column: 2 / -1;
    text-align: left;
  }

  .fp-about-aside {
    position: relative;
    top: auto;
  }

  .fp-portrait-mark {
    width: min(70vw, 19rem);
    aspect-ratio: 16 / 10;
  }

  .fp-contact-copy {
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  :root {
    --fp-gutter: 1.15rem;
  }

  .fp-brand {
    font-size: 0.68rem;
  }

  .fp-nav-links .wp-block-button__link {
    padding-inline: 0.65rem;
    font-size: 0.62rem;
  }

  .fp-hero {
    padding-top: 4.2rem;
  }

  .fp-hero-title {
    font-size: clamp(3rem, 13vw, 3.5rem);
    line-height: 1;
  }

  .fp-hero-actions.wp-block-buttons,
  .fp-elementor-page .fp-hero-actions {
    align-items: stretch;
    flex-direction: column;
    --flex-direction: column;
  }

  .fp-hero-actions .wp-block-button,
  .fp-hero-actions .wp-block-button__link,
  .fp-elementor-page .fp-hero-actions > .elementor-widget-button,
  .fp-elementor-page .fp-hero-actions .elementor-button {
    width: 100%;
  }

  .fp-system-map {
    width: min(90vw, 23rem);
  }

  .fp-map-node {
    padding: 0.4rem 0.52rem;
    font-size: 0.52rem;
  }

  .fp-node-2 { right: -1%; }
  .fp-node-3 { bottom: 18%; }
  .fp-node-4 { left: -1%; }
  .fp-node-5 { left: -1%; }
  .fp-map-label {
    right: 50%;
    bottom: 0.75rem;
    width: max-content;
    transform: translateX(50%);
    font-size: 0.5rem;
  }

  .fp-section {
    padding-block: 5.5rem;
  }

  .fp-section-head {
    margin-bottom: 3rem;
  }

  .fp-project-card {
    grid-template-columns: 2rem 1fr;
    gap: 0.8rem 1rem;
  }

  .fp-project-title,
  .fp-project-copy,
  .fp-project-meta {
    grid-column: 2;
  }

  .fp-project-copy {
    margin-top: 0.4rem;
  }

  .fp-service-grid {
    grid-template-columns: 1fr;
  }

  .fp-service-card {
    grid-column: 1;
    min-height: 15rem;
  }

  .fp-service-label {
    margin-bottom: 3rem;
  }

  .fp-principles {
    grid-template-columns: 1fr;
  }

  .fp-principle,
  .fp-principle:nth-child(2),
  .fp-principle:last-child {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--fp-line);
  }

  .fp-principle:last-child {
    border-bottom: 0;
  }

  .fp-contact::after {
    top: auto;
    right: -35vw;
    bottom: -20vw;
    width: 95vw;
    transform: none;
  }

  .fp-footer-inner {
    flex-direction: column;
  }
}

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

  .fp-portfolio-page *,
  .fp-portfolio-page *::before,
  .fp-portfolio-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.fp-js .fp-reveal,
  html.fp-js .fp-reveal.is-visible,
  html.fp-js .fp-project-card.fp-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
