.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.studio-opening .icon,
.quick-services .icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.studio-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 68%, #3b2116 0%, #171411 67%);
  color: #fff8ef;
}

.studio-hero-inner {
  width: min(90%, 1520px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(26px, 4.2vw, 70px);
  padding-block: clamp(60px, 6.4vw, 105px) clamp(55px, 5.6vw, 85px);
}

.studio-hero .studio-hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65em;
  margin: 0 0 1.9rem;
  color: #fff0e3;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.studio-hero-kicker span {
  width: 20px;
  height: 1px;
  background: #ff822c;
}

.studio-hero h1 {
  margin: 0;
  color: #fff8ef;
  font: 800 clamp(4.25rem, 10vw, 10rem)/.84 Arial, Helvetica, sans-serif;
  letter-spacing: -.088em;
}

.studio-title-line,
.studio-paint-title {
  display: block;
}

.studio-paint-title {
  position: relative;
  width: fit-content;
  margin-top: .1em;
  color: #ff832d;
  line-height: .98;
}

.studio-title-line { position: relative; z-index: 1; width: fit-content; }
.studio-paint-word { position: relative; z-index: 1; }

.studio-paint-video {
  position: absolute;
  width: min(114%, 750px);
  height: auto;
  left: -5%;
  bottom: -.04em;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to top, transparent, #000 14%);
  pointer-events: none;
}

.studio-hero .studio-hero-intro {
  max-width: 39ch;
  margin: clamp(24px, 3.4vw, 43px) 0 0;
  color: #f7e9dd;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.55;
}

.studio-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-top: 23px;
}

.studio-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 46px;
  font-weight: 700;
  font-size: .95rem;
}

.studio-hero-primary {
  padding: 0 21px;
  border-radius: 999px;
  background: #ff832d;
  text-decoration: none;
  color: #171411;
}

.studio-hero-primary:hover { background: #ffab62; }

.studio-hero-actions a:focus-visible { outline: 2px solid #fff8ef; outline-offset: 5px; }

.opening-links {
  width: min(90%, 1520px);
  margin-inline: auto;
  margin-top: clamp(25px, 3.5vw, 52px);
}

.opening-links + .demo-section { margin-top: clamp(35px, 6vw, 85px); }

.quick-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-services > a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--studio-line);
}

.quick-services > a:first-child { padding-inline-start: 0; }
.quick-services > a:hover { color: var(--studio-orange-ink); }

.quick-services strong,
.quick-services small { display: block; }
.quick-services strong { font-size: .93rem; }
.quick-services small { margin-top: 3px; color: #49423b; font-size: .75rem; }
.quick-services > a > .icon { color: var(--studio-orange-ink); }
.quick-services > a > .icon:first-child { width: 1.35rem; height: 1.35rem; }
.quick-services > a > .icon:last-child { margin-inline-start: auto; }

.home-proof {
  border-bottom: 1px solid var(--studio-line);
  background: #ffeede;
}

.home-proof-inner {
  width: min(90%, 1520px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(22px, 3.3vw, 42px);
}

.home-proof .label { color: var(--studio-orange-ink); }
.home-proof h2 {
  margin-block: 7px 8px;
  font-size: clamp(1.6rem, 3vw, 2.9rem);
  line-height: 1.05;
}

.home-proof-copy > p:last-child {
  max-width: 46ch;
  color: #49423b;
  font-size: .94rem;
  line-height: 1.5;
}

.home-proof-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  font-weight: 700;
}

.home-proof-steps li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-block: .4rem;
  border-bottom: 1px solid #d8bca5;
}

.home-proof-steps span {
  color: var(--studio-orange-ink);
  font-size: .75rem;
}

.home-proof-actions {
  display: grid;
  justify-items: start;
  gap: 3px;
}

.home-proof-actions .icon { color: var(--studio-orange-ink); }
.home-proof-case { padding-block: 10px; font-size: .85rem; }

#lavori { margin-top: clamp(32px, 5vw, 72px); }
#lavori h2 { margin-block: clamp(24px, 3vw, 48px); }

@media (prefers-reduced-motion: no-preference) {
  .studio-paint-run .studio-title-line span {
    animation: studio-type-title 1ms steps(1, end) both;
    animation-delay: calc((var(--key) + 1) * 80ms);
  }

  .studio-paint-run .studio-paint-word {
    animation: studio-set-title .85s 1.03s ease-in-out both;
  }

  @keyframes studio-type-title {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes studio-set-title {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 760px) {
  .studio-hero h1 { font-size: clamp(3.35rem, 12vw, 5.5rem); }
  .studio-hero .studio-hero-intro { max-width: 28ch; }
  .studio-hero-inner { padding-block: 52px 59px; }
  .home-proof-inner { grid-template-columns: 1fr; }
  .home-proof-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  .quick-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-services > a:nth-child(odd) { padding-inline-start: 0; }
  .quick-services > a { padding-inline-end: 8px; }
  .quick-services > a > .icon:last-child { display: none; }
}

@media (max-width: 370px) {
  .studio-hero-kicker span { width: 12px; }
  .studio-hero .studio-hero-kicker { letter-spacing: .08em; }
}

.barber-story {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.barber-story-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
}
.barber-story-heading h2 {
  margin: 0;
  font-size: clamp(.65rem, .85vw, .8rem);
  font-weight: 700;
  line-height: 1.35;
}
.barber-story-heading h2 { display: flex; align-items: center; gap: 5px; color: #fff3e7; }
.barber-story-heading h2 svg { color: #ffbc92; flex: none; }
.barber-story-heading h2 span { color: #dec0ae; font-weight: 400; }

.barber-stage {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  aspect-ratio: 1.5;
}
.barber-stage::before {
  content: '';
  position: absolute;
  inset: -9% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at 55% 62%, #a45c394d 0%, #a45c391e 39%, transparent 70%);
  pointer-events: none;
}
.barber-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  color: #fff3e7;
}
.barber-scene[hidden], .barber-next[hidden] { display: none; }

.barber-scene--brand { padding-inline: 3% 0; }
.barber-construction svg {
  display: block;
  width: 100%;
  max-width: 222px;
  height: auto;
  filter: drop-shadow(0 5px 22px #ffab7b32);
}
.barber-wordmark { display: grid; justify-items: start; gap: 9px; }
.barber-wordmark > strong {
  font: 400 clamp(1.8rem, 3.5vw, 3.55rem)/.86 Georgia, serif;
  letter-spacing: -.06em;
}
.barber-wordmark > small {
  color: #f3c8b1;
  font-size: clamp(.66rem, 1.05vw, .83rem);
  line-height: 1.2;
}
.barber-wordmark > small { letter-spacing: .12em; text-transform: uppercase; }

.barber-scene--booking,
.barber-scene--agenda { grid-template-columns: 1fr; }

.barber-device-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.barber-next {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd4b7;
  font: 700 .72rem Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.barber-next:hover { color: #fff8ef; }

.barber-demo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 5px 6px 5px 17px;
  border-radius: 999px;
  background: #fff0e1;
  color: #332018;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.barber-demo-link > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1af83;
  color: #332018;
}
.barber-demo-link:hover { background: #ffe3cd; }

.barber-story :is(a, button):focus-visible { outline: 2px solid #ffb077; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .barber-ink use { stroke-dasharray: 1; animation: barber-draw .9s .12s ease-out both; }
  .barber-ink use + use { animation-delay: .4s; }
  @keyframes barber-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}

@media (max-width: 900px) {
  .studio-hero-inner { grid-template-columns: 1fr; }
  .barber-story { justify-self: start; }
  .barber-story-heading { margin-top: 12px; }
}
@media (max-width: 380px) {
  .barber-stage { min-height: 240px; }
}

.studio-title-slot { position: relative; }
.studio-hero .barber-takeover-caption { display: none; }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .studio-hero-opening .barber-story {
    width: min(54vw, 760px);
    max-width: none;
    visibility: hidden;
    opacity: 0;
    transform: translateX(5%) scale(.94);
    transform-origin: right center;
    transition: opacity .85s .48s ease, transform 1.05s .48s cubic-bezier(.2,.65,.25,1);
  }

  .studio-hero-opening .barber-stage {
    height: clamp(310px, 30vw, 440px);
    aspect-ratio: auto;
  }

  .studio-hero-opening .barber-takeover-caption {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: .12em;
    margin: 0;
    visibility: hidden;
    color: #fff8ef;
    font: 800 clamp(2.15rem, 4.1vw, 4rem)/.97 Arial, Helvetica, sans-serif;
    letter-spacing: -.065em;
    opacity: 0;
    transform: none;
    pointer-events: none;
  }

  .barber-takeover-caption em { color: #ffc197; font: inherit; }

  .studio-hero-opening .takeover-letter { opacity: 0; }
  .studio-hero-opening .takeover-letter.is-typed { opacity: 1; }

  .studio-hero-handoff .studio-title-line span,
  .studio-hero-handoff .studio-paint-word span {
    animation: studio-letter-away .64s calc(var(--key) * 34ms) ease-out both;
  }

  @keyframes studio-letter-away {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  .studio-hero-handoff .barber-story,
  .studio-hero-handoff .barber-takeover-caption {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .studio-hero-opening:not(.studio-hero-handoff) .barber-ink use { animation: none; }
  .studio-hero-handoff .barber-ink use { animation-delay: .54s; }
  .studio-hero-handoff .barber-ink use + use { animation-delay: .78s; }
}

.studio-hero .studio-hero-scope { margin:14px 0 0; color:#ffbc89; font-size:clamp(14px,1.3vw,18px); line-height:1.45; font-weight:600; letter-spacing:0; }
.barber-takeover-caption .barber-example-label { color:#ddc7b5; font:500 12px/1.5 Arial,Helvetica,sans-serif; letter-spacing:.03em; margin-bottom:10px; }
