@charset "UTF-8";

:root {
  --paper: #f5f3ed;
  --paper-soft: #eeece6;
  --ink: #0b1b23;
  --muted: #59636a;
  --line: rgba(11, 27, 35, .12);
  --accent: #f05b3d;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --radius: 2px;
  --content-width: 1440px;
  --reveal-offset: 60px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-lens-color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

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

.site-header {
  position: relative;
  z-index: 100;
  width: min(100% - 8.2%, var(--content-width));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  animation: headerEnter 0.9s var(--ease-out-expo) backwards;
}

@keyframes headerEnter {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font: 700 12px/1.15 var(--font-heading);
  letter-spacing: .19em;
}

.brand-mark {
  display: flex;
  width: 24px;
  height: 26px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transform: skewY(-34deg);
}

.brand-mark i {
  display: block;
  width: 20px;
  height: 4px;
  background: var(--ink);
}

.brand-mark i:first-child {
  width: 15px;
  margin-left: 5px;
}

/* Footer Nav */
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}

.site-footer nav a {
  font-size: 12.5px;
  font-weight: 500;
  position: relative;
}

.site-footer nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--accent);
  bottom: -10px;
  left: 0;
  width: 0;
  transition: width .25s ease;
}

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

/* ==========================================================================
   Focus Lens Navbar (Header Nav)
   ========================================================================== */
.site-header .main-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .main-nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.62;
  filter: blur(0px);
  transform: scale(1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
  will-change: opacity, filter, transform;
}

.site-header .main-nav a .nav-label {
  display: inline-block;
  line-height: 1;
  pointer-events: none;
}

/* Active indicator dot when idle */
.site-header .main-nav a.active {
  opacity: 1;
  font-weight: 600;
}

/* Depth of field blur & dim on non-focused links */
.site-header .main-nav.has-focus a.active::after {
  opacity: 0;
}

.site-header .main-nav.has-focus a {
  opacity: 0.22;
  filter: blur(2px);
  transform: scale(0.97);
}

.site-header .main-nav.has-focus a.is-focused {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
  color: var(--ink);
}

/* Focus Lens Reticle Box */
.focus-lens {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  box-sizing: border-box;
  will-change: transform, width, height, opacity;
}

.focus-lens.is-active {
  opacity: 1;
}

.focus-lens.is-gliding {
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease-out;
}

.focus-lens.is-entering {
  transition: transform 0.26s cubic-bezier(0.18, 0.9, 0.3, 1.15),
    opacity 0.2s ease-out;
}

.focus-lens-corner {
  position: absolute;
  width: 7px;
  height: 7px;
  border-style: solid;
  border-color: var(--focus-lens-color, var(--ink));
  border-width: 0;
  pointer-events: none;
}

.focus-lens-corner.top-left {
  top: 0;
  left: 0;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
  border-top-left-radius: 2px;
}

.focus-lens-corner.top-right {
  top: 0;
  right: 0;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
  border-top-right-radius: 2px;
}

.focus-lens-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
  border-bottom-left-radius: 2px;
}

.focus-lens-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
  border-bottom-right-radius: 2px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.socials>a {
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  width: 18px;
  height: 24px;
}

.socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle .hamburger-svg {
  width: 32px;
  height: 32px;
  display: block;
  transform: rotate(0deg);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle .hamburger-svg .line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  transition:
    stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle .hamburger-svg .line-top-bottom {
  stroke-dasharray: 12 63;
  stroke-dashoffset: 0;
}

.menu-toggle.is-open .hamburger-svg,
.menu-toggle[aria-expanded="true"] .hamburger-svg {
  transform: rotate(-45deg);
}

.menu-toggle.is-open .hamburger-svg .line-top-bottom,
.menu-toggle[aria-expanded="true"] .hamburger-svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 27, 35, 0.03);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--line);
  pointer-events: none;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(240, 91, 61, 0.08);
  color: var(--accent);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.dark .theme-toggle {
  background: rgba(242, 240, 233, 0.05);
  border-color: var(--line);
}

body.dark .theme-toggle:hover {
  border-color: var(--accent);
  background: rgba(240, 91, 61, 0.15);
  color: var(--accent);
}

.section-shell {
  width: min(100% - 10.4%, var(--content-width));
  margin-inline: auto;
}

.hero {
  min-height: 485px;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  align-items: center;
  gap: 6%;
  padding-block: 40px 54px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.role-line,
.tag-line,
.section-index,
.skill-group>h3 {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(3.8rem, 6.2vw, 6.4rem);
  line-height: .87;
  letter-spacing: -.065em;
  font-weight: 700;
  margin: 0 0 20px;
}

h1 span {
  color: #596168;
}

.role-line {
  margin: 0 0 20px;
  white-space: normal;
  font-size: clamp(8px, .75vw, 10px);
}

.role-line b,
.tag-line i {
  color: var(--accent);
  padding-inline: 5px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out-smooth),
    color 0.35s var(--ease-out-smooth),
    border-color 0.35s var(--ease-out-smooth),
    box-shadow 0.35s var(--ease-out-smooth),
    transform 0.15s ease;
}

.button span {
  font-size: 17px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}

.button:hover {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.button:hover span {
  transform: translate3d(3px, -3px, 0);
}

.button:active {
  transform: scale(0.97);
}

.tag-line {
  margin: 30px 0 0;
  font-size: 9px;
}

.hero-art {
  position: relative;
  min-height: 355px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-frame {
  width: 80%;
  height: 310px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #26333a;
  box-shadow: 0 10px 30px rgba(11, 27, 35, .12);
  transition: transform 0.95s var(--ease-out-expo), box-shadow 0.6s ease;
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(.72);
}

.frame-corner {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(11, 27, 35, .3);
  width: 65%;
  height: 88%;
  pointer-events: none;
}

.corner-one {
  top: 0;
  right: 8%;
}

.corner-two {
  bottom: 0;
  left: 9%;
}

.orbit,
.orbit.orbit-one {
  position: absolute;
  z-index: 1;
  border: 1.5px solid rgba(11, 27, 35, .4);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  width: 170px;
  height: 170px;
  left: -2%;
  top: 30%;
  transform-origin: center center;
  pointer-events: none;
}

.art-cross {
  position: absolute;
  left: 6%;
  top: 15%;
  font-size: 24px;
  color: #899096;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.art-cross.cross-two {
  left: auto;
  top: auto;
  right: 22%;
  bottom: -1%;
}

.vertical-accent {
  position: absolute;
  right: 1%;
  top: 7%;
  height: 185px;
  width: 3px;
  background: linear-gradient(var(--ink) 0 48%, transparent 48% 55%, var(--accent) 55%);
}

.art-caption {
  position: absolute;
  z-index: 3;
  bottom: 8%;
  right: 9%;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr .95fr;
  gap: 5%;
  align-items: center;
  padding-block: 54px;
}

.section-index {
  margin: 0 0 12px;
  color: var(--muted);
}

.section-index b {
  color: var(--accent);
}

h2 {
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  letter-spacing: -.045em;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 22px;
}

.section-intro>p:not(.section-index),
.skills-intro>p:not(.section-index),
.approach-copy>p:not(.section-index),
.work-intro>p:not(.section-index),
.contact-intro>p:not(.section-index) {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.section-intro .button {
  margin-top: 8px;
}

.services {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  display: grid;
  gap: 22px;
}

.services article {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eeece6;
  font-size: 20px;
  transition: color 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.services article:hover .service-icon {
  color: #f05b3d;
  transform: rotate(14deg);
}

.services h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 3px;
  transition: color 0.4s ease;
}

.services article:hover h3 {
  color: #f05b3d;
}

.services p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.about-art {
  position: relative;
}

.about-art img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(.65);
}

.about-art span {
  position: absolute;
  left: 12%;
  bottom: 12%;
  color: #fff;
  font: italic 20px/1.05 var(--font-heading);
  transform: rotate(-8deg);
  text-shadow: 0 2px 8px #000;
}

.skills {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 3%;
  padding-block: 48px;
}

.skills-intro h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
}

.skills-intro>p:not(.section-index) {
  max-width: 240px;
  margin-bottom: 40px;
}

.text-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  gap: 18px;
  align-items: center;
}

.text-link span {
  font-size: 17px;
  transition: transform .2s;
}

.text-link:hover span {
  transform: translateX(4px);
}

.skill-group {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.skill-group>h3 {
  margin: 5px 0 22px;
  font-size: 12px;
}

.skill {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
}

.skill small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.skill:hover small {
  color: var(--ink);
}

/* ==========================================================================
   Counter FX (Odometer-Style Animated Number Counter)
   ========================================================================== */
.counter-fx {
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.2em;
  height: 1.2em;
  overflow: hidden;
  user-select: none;
}

.odometer-wheel-wrap {
  display: inline-block;
  position: relative;
  height: 1.2em;
  width: 0.65em;
  overflow: hidden;
  vertical-align: middle;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.odometer-strip {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 1.1s var(--ease-out-expo);
  will-change: transform;
}

.odometer-digit {
  height: 1.2em;
  line-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.odometer-suffix {
  display: inline-block;
  line-height: 1.2em;
  margin-left: 1px;
}

.skill-group.is-visible .skill .odometer-strip {
  transform: translate3d(0, var(--end-y, 0), 0);
}

.skill i {
  position: absolute;
  height: 2px;
  width: 0%;
  bottom: -1px;
  left: 0;
  background-color: var(--ink);
  transition: width 1.1s var(--ease-out-expo), background-color 0.18s ease;
}

.skill:hover i,
.skill-group.is-visible .skill:hover i,
body.dark .skill:hover i {
  background-color: #f05b3d !important;
  transition: background-color 0.2s ease 0s !important;
}

.skill-group.is-visible .skill i {
  width: var(--level);
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(1) i {
  transition-delay: 0.10s;
}

.skill-group.is-visible .skill:nth-of-type(1) .odometer-strip {
  transition-delay: 0.10s;
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(2) i {
  transition-delay: 0.16s;
}

.skill-group.is-visible .skill:nth-of-type(2) .odometer-strip {
  transition-delay: 0.16s;
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(3) i {
  transition-delay: 0.22s;
}

.skill-group.is-visible .skill:nth-of-type(3) .odometer-strip {
  transition-delay: 0.22s;
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(4) i {
  transition-delay: 0.28s;
}

.skill-group.is-visible .skill:nth-of-type(4) .odometer-strip {
  transition-delay: 0.28s;
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(5) i {
  transition-delay: 0.34s;
}

.skill-group.is-visible .skill:nth-of-type(5) .odometer-strip {
  transition-delay: 0.34s;
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(6) i {
  transition-delay: 0.40s;
}

.skill-group.is-visible .skill:nth-of-type(6) .odometer-strip {
  transition-delay: 0.40s;
}

.skill-group.is-visible .skill:not(:hover):nth-of-type(7) i {
  transition-delay: 0.46s;
}

.skill-group.is-visible .skill:nth-of-type(7) .odometer-strip {
  transition-delay: 0.46s;
}

.approach {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10%;
  align-items: center;
  padding-block: 50px;
}

.approach-lead {
  font-size: 18px !important;
  color: var(--ink) !important;
  margin-bottom: 14px;
}

/* ==========================================================================
   Text Block Reveal (Framer Component)
   ========================================================================== */
.text-block-reveal {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 3px 8px;
  margin: -3px -8px;
  border-radius: 2px;
  vertical-align: bottom;
}

/* Base text (black/ink) */
.text-block-reveal .reveal-text {
  display: inline-block;
  color: var(--ink);
  white-space: nowrap;
}

/* Orange reveal block that sweeps across */
.text-block-reveal .reveal-block {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent);
  /* #f05b3d */
  border-radius: 2px;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  padding: 3px 8px;
  box-sizing: border-box;
  z-index: 2;
}

/* White text visible on top of the orange block */
.text-block-reveal .reveal-text-white {
  display: inline-block;
  color: #ffffff !important;
  white-space: nowrap;
  pointer-events: none;
}

/* When triggered, the orange block sweeps in and out */
.text-block-reveal.is-playing .reveal-block {
  animation: tbrOrangeSweep 1.05s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes tbrOrangeSweep {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  44% {
    clip-path: inset(0 0% 0 0);
  }

  56% {
    clip-path: inset(0 0% 0 0);
  }

  100% {
    clip-path: inset(0 0% 0 100%);
  }
}

.approach-copy>p:not(.section-index) {
  max-width: 420px;
}

.approach-copy .button {
  margin-top: 5px;
}

/* ── SwatchAccordion — strip verticali che si aprono verso destra ── */
.approach-art.swatch-accordion {
  display: flex;
  flex-direction: row;
  /* strisce orizzontali */
  gap: 3px;
  height: 380px;
  overflow: hidden;
  border-radius: 3px;
}

/* pannello-striscia collassato */
.sa-item {
  position: relative;
  flex: 0 0 52px;
  /* larghezza minima quando chiuso */
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

/* pannello aperto — si espande verso destra */
.sa-item--open {
  flex: 1 1 0;
}

/* immagine di sfondo */
.sa-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.07);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.sa-item--open .sa-bg {
  transform: scale(1);
}

/* velo scuro */
.sa-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(8, 15, 20, 0.72) 0%,
      rgba(8, 15, 20, 0.40) 50%,
      rgba(8, 15, 20, 0.55) 100%);
  transition: opacity 0.5s ease;
}

.sa-item--open .sa-veil {
  opacity: 0.85;
}

/* contenuto — ancorato in basso a sinistra */
.sa-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px 14px;
  gap: 6px;
  overflow: hidden;
  white-space: break-spaces;
}

/* label verticale — visibile quando la striscia è chiusa */
.sa-label-v {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  /* legge dal basso verso l'alto */
  font: 600 16px/1 var(--font-heading);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.22s ease;
  margin-bottom: 4px;
}

.sa-item--open .sa-label-v {
  opacity: 0;
  transition: opacity 0s;
  /* sparisce subito al click */
  pointer-events: none;
}

/* contenuto espanso — assoluto così non sposta sa-label-v */
.sa-expanded {
  position: absolute;
  bottom: 16px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0s, transform 0s;
  /* chiusura istantanea */
  pointer-events: none;
  min-width: 160px;
}

.sa-item--open .sa-expanded {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.38s ease 0.2s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  /* apertura fluida */
  pointer-events: auto;
}

.sa-index {
  font: 600 9px/1 var(--font-heading);
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .45);
}

.sa-label-h {
  font: 700 20px/1.1 var(--font-heading);
  color: #fff;
  letter-spacing: -.01em;
}

.sa-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
  font-weight: 400;
  letter-spacing: .03em;
}

.work {
  display: grid;
  grid-template-columns: .85fr 2.15fr;
  gap: 6%;
  padding-block: 42px;
  align-items: start;
}

.work-intro h2 {
  margin-bottom: 16px;
}

.work-intro>p:not(.section-index) {
  margin-bottom: 20px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-card {
  min-width: 0;
  height: 250px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  cursor: pointer;
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.project-card:focus-visible .project-card-inner {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateY(0deg) translateZ(0);
  transition: transform 0.72s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.project-card.is-flipped .project-card-inner {
  transform: rotateY(180deg) translateZ(0);
}

.project-card-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11, 27, 35, 0.04);
  transform: translate3d(0, 0, 0);
  transition: border-color 0.25s ease, box-shadow 0.72s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-card-side {
  border-color: rgba(240, 91, 61, 0.35);
  box-shadow: 0 8px 24px rgba(11, 27, 35, 0.08);
}

.project-card.is-flipped .project-card-side {
  box-shadow: 0 12px 30px rgba(11, 27, 35, 0.09);
}

/* FRONT FACE */
.project-card-front {
  transform: rotateY(0deg);
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.project-card.is-flipped .project-card-front {
  z-index: 1;
  pointer-events: none;
}

.project-media {
  position: relative;
  width: 100%;
  height: 148px;
  overflow: hidden;
  background: rgba(11, 27, 35, 0.04);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-front-info {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  background: transparent;
}

.project-front-text {
  min-width: 0;
  padding-right: 8px;
}

.project-front-info h3 {
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 3px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-front-info p {
  font-size: 10.5px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-cue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--accent);
  background: rgba(240, 91, 61, 0.08);
  border: 1px solid rgba(240, 91, 61, 0.2);
  border-radius: 50%;
  transition: transform 0.4s ease, background 0.2s ease, color 0.2s ease;
}

.project-card:hover .project-cue-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: #ffffff;
}

/* BACK FACE */
.project-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  z-index: 1;
  padding: 16px;
  pointer-events: none;
}

.project-card.is-flipped .project-card-back {
  z-index: 2;
  pointer-events: auto;
}

.project-back-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.project-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.project-tag {
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(240, 91, 61, 0.1);
  border: 1px solid rgba(240, 91, 61, 0.2);
  padding: 2px 7px;
  border-radius: var(--radius);
}

.project-flip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.project-flip-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: rotate(-90deg);
}

.project-back-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0 8px;
}

.project-back-title {
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--ink);
}

.project-back-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.project-back-footer {
  margin-top: 6px;
}

.project-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.project-site-link .link-arrow {
  font-size: 12px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.project-site-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.project-site-link:hover .link-arrow {
  transform: translate(2px, -2px);
}

.contact {
  display: grid;
  grid-template-columns: .8fr 1.55fr .85fr;
  gap: 5%;
  padding-block: 40px;
}

.contact-intro h2 {
  margin-bottom: 14px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .4);
  padding: 9px 10px;
  color: var(--ink);
  font-size: 11px;
  outline: none;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
  min-height: 76px;
}

.contact-form .button {
  justify-self: start;
}

.contact-links {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.contact-links h3 {
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 700;
  margin: 0 0 14px;
}

.contact-links>a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 7px 12px;
  margin-inline: -12px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translate3d(16px, 0, 0);
  transition:
    opacity 0.6s var(--ease-out-smooth),
    transform 0.6s var(--ease-out-expo),
    color 0.25s ease,
    background-color 0.25s ease;
}

.contact-links.is-visible>a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.contact-links.is-visible>a:nth-of-type(1) {
  transition-delay: 0.12s;
}

.contact-links.is-visible>a:nth-of-type(2) {
  transition-delay: 0.22s;
}

.contact-links.is-visible>a:nth-of-type(3) {
  transition-delay: 0.32s;
}

.contact-links>a .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.contact-links>a .contact-label {
  flex: 1;
  font-weight: 500;
  transition: transform 0.25s ease;
}

.contact-links>a .contact-arrow {
  font-size: 13px;
  opacity: 0.7;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease, color 0.25s ease;
}

.contact-links>a:hover {
  color: var(--accent);
  background: rgba(240, 91, 61, 0.08);
  transform: translate3d(6px, 0, 0);
}

.contact-links>a:hover .contact-icon {
  transform: rotate(20deg) scale(1.22);
  color: var(--accent);
}

.contact-links>a:hover .contact-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
  color: var(--accent);
}

body.dark .contact-links>a:hover {
  background: rgba(240, 91, 61, 0.15);
  color: var(--accent);
}

.contact-links p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.contact-links p a {
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.contact-links p a:hover {
  color: var(--accent);
}

.site-footer {
  width: min(100% - 8.2%, var(--content-width));
  margin: auto;
  min-height: 80px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
}

.site-footer .brand {
  font-size: 12.5px;
}

.site-footer nav {
  gap: 20px;
}

.site-footer nav a {
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.site-footer>p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.back-top-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-top {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease, color 0.2s ease;
}

.back-top:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

/* ========================================================
   REVEAL & SCROLL ENTRANCE ANIMATIONS (Directional Motion)
   ======================================================== */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.85s var(--ease-out-smooth),
    transform 0.9s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal-left {
  transform: translate3d(calc(-1 * var(--reveal-offset)), 0, 0);
}

.reveal-right {
  transform: translate3d(var(--reveal-offset), 0, 0);
}

.reveal-up {
  transform: translate3d(0, var(--reveal-offset), 0);
}

.reveal-down {
  transform: translate3d(0, calc(-1 * var(--reveal-offset)), 0);
}

.reveal-scale {
  transform: scale(0.93) translate3d(0, calc(var(--reveal-offset) * 0.4), 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Hero Section Subtle Micro-Cascade */
.hero-copy>* {
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
  transition: opacity 0.7s var(--ease-out-smooth), transform 0.7s var(--ease-out-expo);
}

.hero-copy.is-visible>* {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-copy.is-visible>*:nth-child(1) {
  transition-delay: 0.08s;
}

.hero-copy.is-visible>*:nth-child(2) {
  transition-delay: 0.16s;
}

.hero-copy.is-visible>*:nth-child(3) {
  transition-delay: 0.24s;
}

.hero-copy.is-visible>*:nth-child(4) {
  transition-delay: 0.32s;
}

.hero-copy.is-visible>*:nth-child(5) {
  transition-delay: 0.40s;
}

.hero-copy.is-visible>*:nth-child(6) {
  transition-delay: 0.48s;
}

/* Hero Art Frame & Ornaments Entrance */
.hero-art .art-frame {
  transform: scale(0.94);
  transition: transform 0.95s var(--ease-out-expo);
}

.hero-art.is-visible .art-frame {
  transform: scale(1);
}

.hero-art .corner-one {
  transform: translate3d(18px, -18px, 0);
  opacity: 0;
  transition: transform 0.85s var(--ease-out-expo) 0.2s, opacity 0.85s ease 0.2s;
}

.hero-art.is-visible .corner-one {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  animation: cornerOneDrift 6.5s ease-in-out infinite alternate 0.85s;
}

.hero-art .corner-two {
  transform: translate3d(-18px, 18px, 0);
  opacity: 0;
  transition: transform 0.85s var(--ease-out-expo) 0.25s, opacity 0.85s ease 0.25s;
}

.hero-art.is-visible .corner-two {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  animation: cornerTwoDrift 7.5s ease-in-out infinite alternate 0.95s;
}

@keyframes cornerOneDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(5px, -4px, 0);
  }

  100% {
    transform: translate3d(-3px, 4px, 0);
  }
}

@keyframes cornerTwoDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-4px, 5px, 0);
  }

  100% {
    transform: translate3d(4px, -3px, 0);
  }
}

.hero-art .orbit,
.hero-art .orbit-one {
  opacity: 0;
  transition: opacity 0.9s ease 0.2s;
}

.hero-art.is-visible .orbit,
.hero-art.is-visible .orbit.orbit-one,
.orbit.orbit-one {
  opacity: 1;
  animation: orbitLoopRotate 16s linear infinite;
}

@keyframes orbitLoopRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-art .art-cross {
  transform: scale(0) rotate(-45deg);
  opacity: 0;
  transition: transform 0.7s var(--ease-out-expo) 0.35s, opacity 0.7s ease 0.35s;
}

.hero-art.is-visible .art-cross {
  transform: scale(1) rotate(0deg);
  opacity: 0.85;
  animation: crossFlicker 4.4s infinite;
  animation-delay: 1s;
}

@keyframes crossFlicker {

  0%,
  26%,
  30%,
  33%,
  64%,
  68%,
  71%,
  100% {
    opacity: 0.85;
  }

  27% {
    opacity: 0.2;
  }

  28% {
    opacity: 1;
  }

  29% {
    opacity: 0.35;
  }

  31% {
    opacity: 0.95;
  }

  32% {
    opacity: 0.45;
  }

  65% {
    opacity: 0.2;
  }

  66% {
    opacity: 1;
  }

  67% {
    opacity: 0.4;
  }

  69% {
    opacity: 0.9;
  }

  70% {
    opacity: 0.3;
  }
}

.hero-art .vertical-accent {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s var(--ease-out-expo) 0.35s;
}

.hero-art.is-visible .vertical-accent {
  transform: scaleY(1);
}

.hero-art.is-visible .art-cross.cross-two {
  animation-delay: 1.8s;
}

.hero-art .art-caption {
  transform: translate3d(25px, 0, 0);
  opacity: 0;
  transition: transform 0.75s var(--ease-out-expo) 0.45s, opacity 0.75s ease 0.45s;
}

.hero-art.is-visible .art-caption {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Services Cascading Entrance */
.services article {
  opacity: 0;
  transform: translate3d(36px, 0, 0);
  transition: opacity 0.7s var(--ease-out-smooth), transform 0.7s var(--ease-out-expo);
}

.services.is-visible article {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.services.is-visible article:nth-child(1) {
  transition-delay: 0.10s;
}

.services.is-visible article:nth-child(2) {
  transition-delay: 0.20s;
}

.services.is-visible article:nth-child(3) {
  transition-delay: 0.30s;
}

.services.is-visible article:nth-child(4) {
  transition-delay: 0.40s;
}

/* About Art Text Overlay */
.about-art span {
  opacity: 0;
  transform: rotate(-14deg) scale(0.88);
  transition: opacity 0.7s ease 0.3s, transform 0.8s var(--ease-out-expo) 0.3s;
}

.about-art.is-visible span {
  opacity: 1;
  transform: rotate(-8deg) scale(1);
}

/* Approach Words Entrance */
.approach-words {
  opacity: 0;
  transform: translate3d(-20px, 0, 0);
  transition: opacity 0.8s ease 0.25s, transform 0.8s var(--ease-out-expo) 0.25s;
}

.approach-art.is-visible .approach-words {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}



body.dark {
  --paper: #10191e;
  --paper-soft: #19242a;
  --ink: #f2f0e9;
  --muted: #aeb7bb;
  --line: rgba(242, 240, 233, .16);
  --focus-lens-color: #ffffff;
}

body.dark .service-icon {
  background: #19242a;
}

body.dark .frame-corner,
body.dark .corner-one,
body.dark .corner-two {
  border-color: #899096;
}

body.dark .orbit,
body.dark .orbit-one {
  border-color: #899096;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

body.dark .art-caption {
  color: #10191e;
}

body.dark .project-card-side {
  background: #19242a;
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.dark .project-card:hover .project-card-side {
  border-color: rgba(240, 91, 61, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

body.dark .project-card.is-flipped .project-card-side {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

body.dark .project-media {
  background: rgba(0, 0, 0, 0.2);
}

body.dark .project-front-info h3,
body.dark .project-back-title {
  color: var(--ink);
}

body.dark .project-flip-btn {
  background: rgba(25, 36, 42, 0.8);
  border-color: var(--line);
  color: var(--muted);
}

body.dark .project-flip-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

body.dark .project-site-link {
  background: var(--ink);
  color: #10191e;
}

body.dark .project-site-link:hover {
  background: var(--accent);
  color: #ffffff;
}

body.dark .skill i {
  background-color: var(--ink);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #19242a;
}

@media (max-width: 1050px) {
  .site-header {
    width: calc(100% - 48px);
  }

  .section-shell {
    width: calc(100% - 64px);
  }

  .hero {
    gap: 2%;
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: clamp(3.5rem, 7vw, 5.2rem);
  }

  .socials {
    gap: 12px;
  }

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

  .about-art {
    display: none;
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }

  .skills-intro {
    padding-right: 20px;
  }

  .skill-group:nth-of-type(2) {
    border-left: 1px solid var(--line);
  }

  .contact {
    grid-template-columns: .8fr 1.3fr;
  }

  .contact-links {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
  }

  .contact-links h3 {
    width: 100%;
    margin-bottom: 0;
  }

  .contact-links p {
    margin: 0;
  }

  .site-footer nav {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --reveal-offset: 35px;
  }

  html {
    scroll-padding-top: 70px;
  }

  html.menu-open,
  body.menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.menu-open .site-header {
    position: fixed;
    top: 0;
    left: 18px;
    right: 18px;
    width: auto;
  }

  .site-header {
    min-height: 72px;
    width: calc(100% - 36px);
    position: relative;
    z-index: 200;
  }

  .brand {
    font-size: 10px;
    position: relative;
    z-index: 210;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 210;
  }

  .site-header .main-nav {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 200;
    background-color: #f5f3ed;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    padding: 88px 28px 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -14px, 0);
    transition:
      opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.3s;
  }

  body.dark .site-header .main-nav {
    background-color: #10191e;
    border-color: transparent;
    box-shadow: none;
  }

  .site-header .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .site-header .main-nav a,
  .site-header .main-nav.has-focus a,
  .site-header .main-nav.has-focus a.is-focused {
    width: min(100%, 280px);
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.78;
    filter: none;
    transform: none;
    justify-content: center;
    border-radius: 10px;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a.active,
  .site-header .main-nav.has-focus a.active {
    opacity: 1;
    color: var(--accent);
    background: rgba(240, 91, 61, 0.08);
  }

  body.dark .site-header .main-nav a:hover,
  body.dark .site-header .main-nav a.active,
  body.dark .site-header .main-nav.has-focus a.active {
    color: var(--accent);
    background: rgba(240, 91, 61, 0.14);
  }

  .site-header .main-nav a.active::after {
    display: none;
  }

  .site-header .main-nav .focus-lens {
    display: none;
  }

  .socials {
    gap: 10px;
    position: relative;
    z-index: 210;
  }

  .socials>a:nth-child(2),
  .socials>a:nth-child(3) {
    display: none;
  }

  .section-shell {
    width: calc(100% - 40px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 38px 34px;
    gap: 30px;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5.5rem);
  }

  .role-line {
    max-width: 350px;
    line-height: 1.8;
  }

  .hero-description {
    font-size: 16px;
  }

  .desktop-only {
    display: none;
  }

  .hero-art {
    min-height: 290px;
  }

  .art-frame {
    width: 84%;
    height: 260px;
  }

  .orbit {
    left: -2%;
    width: 100px;
    height: 100px;
  }

  .vertical-accent {
    right: 0;
    height: 140px;
  }

  .about {
    grid-template-columns: 1fr;
    padding-block: 38px;
    gap: 30px;
  }

  .about-art {
    display: block;
    max-width: 420px;
    margin-inline: auto;
    width: 90%;
  }

  .about-art img {
    height: 230px;
  }

  .services {
    padding-left: 18px;
    gap: 18px;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .skills {
    grid-template-columns: 1fr;
    padding-block: 38px;
    gap: 28px;
  }

  .skills-intro>p:not(.section-index) {
    margin-bottom: 22px;
  }

  .skill-group,
  .skill-group:nth-of-type(2) {
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }

  .skill-group>h3 {
    margin-bottom: 16px;
  }

  .approach {
    grid-template-columns: 1fr;
    padding-block: 38px;
    gap: 26px;
  }

  .approach-art img {
    height: 220px;
  }

  .approach-art.swatch-accordion {
    flex-direction: column;
    height: 420px;
  }

  .approach-art.swatch-accordion .sa-content {
    justify-content: center;
    padding: 14px 16px;
  }

  .approach-art.swatch-accordion .sa-label-v {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 0;
    font-size: 14px;
  }

  .approach-art.swatch-accordion .sa-expanded {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
    transform: translateY(10px);
  }

  .approach-art.swatch-accordion .sa-item--open .sa-expanded {
    transform: translateY(0);
  }

  .approach-art.swatch-accordion .sa-sub {
    margin: 0;
  }

  .work {
    grid-template-columns: 1fr;
    padding-block: 38px;
    gap: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-card {
    height: 255px;
  }

  .project-card-front {
    display: flex;
    flex-direction: column;
  }

  .project-card-front .project-media {
    height: 165px;
  }

  .project-card-front .project-front-info {
    padding: 14px 16px;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .project-card-front .project-cue-icon {
    display: inline-flex;
  }

  .project-card-back {
    padding: 16px 18px;
  }

  .contact {
    grid-template-columns: 1fr;
    padding-block: 38px;
    gap: 24px;
  }

  .contact-links {
    grid-column: auto;
  }

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

  .site-footer {
    width: calc(100% - 40px);
    padding-block: 18px;
    flex-wrap: wrap;
  }

  .site-footer.reveal {
    opacity: 1;
    transform: none !important;
    will-change: auto;
  }

  .site-footer>p {
    order: 3;
    width: 100%;
  }

  .back-top-slot {
    width: 24px;
    height: 24px;
  }

  .back-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 90;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .back-top.is-docked {
    position: static;
  }

  body.menu-open .back-top {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .site-header {
    animation: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-down,
  .reveal-scale,
  .hero-copy>*,
  .hero-art .art-frame,
  .hero-art .corner-one,
  .hero-art .corner-two,
  .hero-art .orbit,
  .hero-art .art-cross,
  .hero-art .vertical-accent,
  .hero-art .art-caption,
  .services article,
  .about-art span,
  .approach-words,
  .contact-links>a {
    opacity: 1 !important;
    transform: none !important;
  }

  .skill i {
    width: var(--level) !important;
  }

  .odometer-strip {
    transition: none !important;
    transform: translate3d(0, var(--end-y, 0), 0) !important;
  }

  .text-block-reveal .reveal-text {
    opacity: 1 !important;
  }

  .text-block-reveal .reveal-block {
    display: none !important;
  }
}