/* ============================================================
   Fabio Antichi — site
   Aesthetic: anti-Milano rural pop / chunky italian print
   Palette: gradiente magenta→arancio + viola navy + ciano spot
   Fonts:   Bricolage Grotesque (display) / Outfit (body) / Caveat (hand)
============================================================ */

:root {
  /* surfaces */
  --paper:        oklch(0.985 0.012 75);
  --paper-2:      oklch(0.965 0.020 70);
  --paper-3:      oklch(0.93  0.030 65);

  /* ink */
  --ink:          oklch(0.20 0.13 290);   /* viola navy molto scuro, principale */
  --ink-2:        oklch(0.32 0.13 290);
  --ink-soft:     oklch(0.45 0.05 290);

  /* brand pop */
  --magenta:      oklch(0.66 0.27 5);
  --magenta-2:    oklch(0.78 0.18 10);
  --orange:       oklch(0.76 0.18 55);
  --orange-2:     oklch(0.85 0.13 65);
  --cyan:         oklch(0.83 0.10 215);
  --cyan-2:       oklch(0.91 0.06 215);
  --pink-soft:    oklch(0.90 0.06 20);

  --border:       oklch(0.86 0.012 65);
  --border-strong:oklch(0.62 0.05 290);

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-hand:    "Caveat", ui-serif, serif;

  /* rhythm */
  --r-section: clamp(4rem, 9vw, 8rem);
  --r-inner:   clamp(1.25rem, 3.5vw, 2.25rem);

  /* max widths */
  --w-page: 1340px;
}

* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--orange-2); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;            /* 16px */
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit; color: inherit; background: none; border: 0;
  cursor: pointer; padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--magenta);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.18em;
  line-height: 1;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 9999;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; border-radius: 0.4rem; }

/* ============================================================
   HEADER + NAV
============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.brand-logo--lg {
  height: 56px;
  max-width: 200px;
}
@media (min-width: 880px) {
  .brand-logo { height: 44px; max-width: 180px; }
}

/* desktop nav */
.nav-desktop { display: none; }

@media (min-width: 880px) {
  .nav-desktop {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-display); font-weight: 500;
    font-size: 1rem;
  }
  .nav-desktop a {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease;
    min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .nav-desktop a:hover { background: var(--paper-3); }
  .nav-desktop .nav-cta {
    background: var(--ink); color: var(--orange);
    font-weight: 700;
    padding-left: 1.2rem; padding-right: 1.2rem;
  }
  .nav-desktop .nav-cta:hover { background: var(--magenta); color: var(--paper); }
}

/* hamburger */
.nav-toggle {
  width: 44px; height: 44px;
  display: inline-grid; align-content: center; justify-items: center;
  gap: 5px; border-radius: 12px;
  background: var(--ink);
}
.nav-toggle-bar {
  width: 22px; height: 2.4px; background: var(--orange);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
}

/* mobile nav panel */
.nav-mobile {
  position: fixed;
  inset: 64px 0.75rem auto 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 1rem 1rem 1.25rem;
  z-index: 60;
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.4rem; line-height: 1;
  box-shadow: 0 30px 80px -20px rgb(20 8 60 / 0.45);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-mobile.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.nav-mobile a {
  padding: 1rem 0.75rem;
  border-radius: 14px;
  min-height: 56px;
  display: flex; align-items: center;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
}
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile .nav-cta {
  background: var(--orange); color: var(--ink);
  margin-top: 0.5rem; font-weight: 800;
  border-bottom: 0;
  justify-content: center;
}
.nav-mobile-tel {
  margin-top: 0.9rem;
  background: color-mix(in oklab, var(--paper) 10%, transparent);
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.35;
  display: flex; align-items: baseline; gap: 0.5rem;
  flex-wrap: wrap;
}
.nav-mobile-tel span { opacity: 0.75; }
.nav-mobile-tel b {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--orange);
}

@media (min-width: 880px) {
  .nav-mobile { display: none !important; }
}

/* ============================================================
   HERO
============================================================ */

.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }

.hero-sun {
  position: absolute;
  top: -180px; right: -200px;
  width: min(85vw, 750px);
  height: min(85vw, 750px);
  background:
    radial-gradient(circle at 35% 35%,
      var(--orange) 0%,
      var(--magenta) 45%,
      transparent 72%);
  filter: blur(20px);
  opacity: 0.85;
}
.hero-blob {
  position: absolute;
  bottom: -200px; left: -150px;
  width: min(70vw, 600px);
  height: min(70vw, 600px);
  background: radial-gradient(circle, var(--cyan) 0%, transparent 65%);
  filter: blur(30px);
  opacity: 0.55;
}
.hero-grain {
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.05  0 0 0 0 0.2  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  max-width: var(--w-page); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 1.18fr 0.82fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.kicker {
  display: inline-flex; align-items: flex-start; gap: 0.65rem;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.92rem; line-height: 1.35;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem 0.55rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
  max-width: max-content;
}
.kicker-dot {
  display: inline-block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--magenta);
  margin-top: 6px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--magenta) 18%, transparent);
}
.kicker-light {
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  background: color-mix(in oklab, var(--paper) 12%, transparent);
  border-color: color-mix(in oklab, var(--paper) 25%, transparent);
}
.kicker-light .kicker-dot { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in oklab, var(--orange) 25%, transparent); }

.hero-claim {
  font-size: clamp(2.6rem, 8.5vw, 6.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-claim em {
  font-size: 1em;
  background: var(--ink);
  color: var(--orange);
  font-style: italic;
  font-weight: 800;
  line-height: 0.88;
  padding: 0.06em 0.18em 0.1em;
  border-radius: 0.12em;
  display: inline-block;
  transform: rotate(-1.2deg);
  margin-left: -0.05em;
  vertical-align: -0.04em;
}
.under-magenta {
  position: relative;
  display: inline-block;
}
.under-magenta::after {
  content: "";
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: 0.04em;
  height: 0.22em;
  background: var(--magenta);
  z-index: -1;
  border-radius: 0.1em;
  transform: skewY(-1.2deg);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
  font-weight: 400;
}

.phone-block {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.2rem 1rem;
  align-items: end;
  max-width: max-content;
  padding: 1.1rem 1.4rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  box-shadow: 0 20px 50px -25px rgb(15 4 55 / 0.55);
  position: relative;
}
.phone-block::before {
  content: "☎";
  position: absolute; top: -16px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transform: rotate(8deg);
  box-shadow: 0 6px 16px -4px rgb(255 120 70 / 0.55);
}
.phone-label {
  grid-column: 1 / -1;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.85rem; opacity: 0.7;
  letter-spacing: 0.02em;
}
.phone-number {
  grid-column: 1 / -1;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.phone-aside {
  grid-column: 1 / -1;
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.92rem;
  margin-top: 0.45rem;
  color: color-mix(in oklab, var(--paper) 75%, transparent);
}
.phone-aside .hand { color: var(--magenta-2); font-size: 1.25em; }

.hero-stamps {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.stamp {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  line-height: 1.1;
}
.stamp--alt {
  background: var(--ink);
  color: var(--orange);
  border-color: var(--ink);
}

/* hero visual */
.hero-visual {
  position: relative;
  margin: 0;
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  order: -1;
}
@media (min-width: 980px) {
  .hero-visual { order: initial; }
}

.poster-frame {
  position: relative;
  width: min(90%, 520px);
  padding: 14px 14px 60px;
  background: var(--paper);
  border-radius: 14px;
  transform: rotate(-2.5deg);
  box-shadow:
    0 30px 60px -20px rgb(15 4 55 / 0.35),
    0 0 0 1px var(--border);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.poster-frame:hover { transform: rotate(-1deg); }
.poster-frame img {
  width: 100%; height: auto;
  border-radius: 6px;
  display: block;
}
.poster-pin {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.3) inset, 0 1px 2px rgb(0 0 0 / 0.2);
}
.poster-pin.pin-1 { top: -7px; left: 22px;  background: var(--magenta); }
.poster-pin.pin-2 { top: -7px; right: 28px; background: var(--cyan); }

.poster-caption {
  font-family: var(--font-body);
  font-size: 0.92rem; line-height: 1.4;
  color: var(--ink-soft);
  max-width: 32ch;
  text-align: center;
  margin-top: 0.25rem;
}
.poster-caption .hand { color: var(--magenta); }

/* ============================================================
   SECTIONS — shared
============================================================ */

.section {
  padding: var(--r-section) clamp(1rem, 4vw, 2rem);
  max-width: var(--w-page);
  margin: 0 auto;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 50rem;
}

.section-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-soft);
  display: inline-block;
}

.section h2 {
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  letter-spacing: -0.035em;
}

.section-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-2);
  max-width: 48ch;
  line-height: 1.55;
}
.section-lede b { color: var(--ink); font-weight: 700; }

/* ============================================================
   SERVICES
============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .card-wide { grid-column: span 2; }
}

.service-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 24px;
  min-height: 220px;
  display: flex; flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover { transform: translateY(-4px); }

.service-tag {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0;
  margin-bottom: 0.6rem;
  opacity: 0.7;
  font-style: italic;
}

.service-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 0.95;
  margin-bottom: 0.3rem;
}
.service-card h3 em {
  background: none; padding: 0; color: inherit;
  opacity: 0.7; font-size: 0.7em; font-weight: 600;
  display: inline-block; margin-left: 0.15em;
  transform: none;
}
.service-card p { font-size: 0.98rem; line-height: 1.5; }
.service-card b { font-weight: 700; }

.card-1 { background: var(--magenta);   color: var(--paper); }
.card-1 .service-tag { color: color-mix(in oklab, var(--paper) 80%, transparent); }
.card-2 { background: var(--orange);    color: var(--ink);   }
.card-3 { background: var(--ink);       color: var(--paper); }
.card-3 .service-tag { color: color-mix(in oklab, var(--paper) 75%, transparent); }
.card-4 { background: var(--cyan);      color: var(--ink);   }
.card-5 { background: var(--pink-soft); color: var(--ink);   }

.card-1::after, .card-3::after {
  content: ""; position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: color-mix(in oklab, var(--paper) 12%, transparent);
  bottom: -90px; right: -50px;
  pointer-events: none;
}
.card-2::after {
  content: ""; position: absolute;
  width: 90px; height: 90px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 18%, transparent);
  top: -30px; right: -20px;
}

/* ============================================================
   CREDIT GRID (perché io)
============================================================ */

.credit-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .credit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .credit-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

.credit-card {
  border-radius: 26px;
  padding: 1.6rem 1.4rem 1.8rem;
  display: flex; flex-direction: column;
  gap: 1rem;
  min-height: 250px;
  position: relative; overflow: hidden;
}

.credit-figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  letter-spacing: -0.05em;
  line-height: 0.85;
  display: flex; align-items: baseline; gap: 0.15em;
}
.credit-figure small {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.26em;
  letter-spacing: 0;
  text-transform: lowercase;
  opacity: 0.75;
}
.credit-figure small i {
  font-style: normal; font-weight: 800; font-size: 1.8em;
  vertical-align: -0.15em;
}

.credit-label {
  font-size: 0.96rem;
  line-height: 1.45;
}
.credit-label b { font-weight: 700; }

.credit-card--magenta { background: var(--magenta);    color: var(--paper); }
.credit-card--orange  { background: var(--orange);     color: var(--ink); }
.credit-card--violet  { background: var(--ink);        color: var(--orange); }
.credit-card--violet .credit-label { color: var(--paper); }
.credit-card--violet .credit-label .hand { color: var(--orange-2); }
.credit-card--cyan    { background: var(--cyan);       color: var(--ink); }

/* ============================================================
   NO SECTION (manifesto)
============================================================ */

.section-no {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 2rem);
  position: relative; overflow: hidden;
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.section-no::before {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--magenta);
  opacity: 0.18;
  filter: blur(50px);
}
.section-no::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.14;
  filter: blur(70px);
}

.no-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  position: relative; z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-no h2 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  margin-top: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 22ch;
}

.section-no .kicker { margin-bottom: 0; }
.section-no h2 em {
  background: var(--magenta);
  color: var(--paper);
  padding: 0.05em 0.2em 0.08em;
  border-radius: 0.12em;
  display: inline-block;
  transform: rotate(-1.5deg);
  font-style: italic;
}

.no-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 60rem;
  text-align: left;
}
@media (min-width: 768px) {
  .no-list { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
}

.no-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1.2rem;
  align-items: start;
}
.no-mark {
  color: var(--magenta);
  background: var(--paper);
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.no-mark svg {
  width: 26px;
  height: 26px;
  display: block;
}
.no-list p {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.5;
  color: color-mix(in oklab, var(--paper) 92%, transparent);
}
.no-list b {
  color: var(--orange-2);
  font-weight: 700;
}

.no-foot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  padding-top: 1.5rem;
  border-top: 1px dashed color-mix(in oklab, var(--paper) 25%, transparent);
  max-width: 50rem;
  width: 100%;
}
.no-foot b { color: var(--orange-2); font-weight: 700; font-style: normal; }

/* ============================================================
   PROJECTS
============================================================ */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 880px) {
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.project-card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 28px;
  display: flex; flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  min-height: 360px;
}

.project-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  max-width: max-content;
  background: color-mix(in oklab, var(--ink) 15%, transparent);
  color: var(--ink);
}

.project-card h3 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.55;
}
.project-card em {
  background: none; color: inherit;
  font-style: italic; font-weight: 600;
  padding: 0;
}

.project-otellino {
  background: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 95%);
  color: var(--ink);
}
.project-otellino .project-tag {
  background: color-mix(in oklab, var(--ink) 22%, transparent);
  color: var(--ink);
}

.project-d4c {
  background: var(--ink);
  color: var(--paper);
}
.project-d4c .project-tag {
  background: color-mix(in oklab, var(--paper) 14%, transparent);
  color: var(--paper);
}
.project-d4c em { color: var(--orange); }

.project-where {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.project-where .hand { font-size: 1.15em; color: var(--ink-2); }
.project-otellino .project-where span:first-child { font-weight: 700; }

/* ============================================================
   CTA (final phone)
============================================================ */

.section-cta {
  position: relative;
  background: linear-gradient(160deg, var(--magenta) 0%, var(--orange) 85%);
  color: var(--paper);
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem);
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  isolation: isolate;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.cta-blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
}
.cta-blob-1 {
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: var(--cyan);
  top: -20vw; left: -10vw;
}
.cta-blob-2 {
  width: 45vw; height: 45vw; max-width: 500px; max-height: 500px;
  background: var(--ink);
  bottom: -15vw; right: -15vw;
  opacity: 0.35;
}

.cta-inner {
  position: relative; z-index: 2;
  max-width: var(--w-page); margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  margin-top: 1rem; margin-bottom: 1.5rem;
  color: var(--paper);
  max-width: 18ch;
}
.cta-inner h2 em {
  color: var(--ink);
  background: var(--paper);
  padding: 0.02em 0.18em 0.08em;
  border-radius: 0.12em;
  display: inline-block;
  transform: rotate(-1deg);
  font-style: italic;
}

.cta-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  max-width: 50ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  color: color-mix(in oklab, var(--paper) 95%, transparent);
}

.cta-phone {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 1.2rem 1.1rem 1.4rem;
  display: flex; flex-direction: column;
  gap: 0.4rem;
  max-width: 100%;
  width: max-content;
  position: relative;
  box-shadow: 0 50px 100px -30px rgb(20 5 60 / 0.6);
}
@media (min-width: 720px) {
  .cta-phone {
    border-radius: 32px;
    padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 3rem) clamp(1.8rem, 4vw, 2.8rem);
  }
}
.cta-phone::before {
  content: "☎";
  position: absolute;
  top: -22px; right: -22px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 1.8rem;
  transform: rotate(12deg);
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.45);
}
.cta-phone-label {
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.95rem;
  color: color-mix(in oklab, var(--paper) 70%, transparent);
  letter-spacing: 0.02em;
}
.cta-phone-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 8.6vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  user-select: all;
  display: block;
  white-space: nowrap;
}
.cta-phone-aside {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1;
  color: color-mix(in oklab, var(--paper) 75%, transparent);
  margin-top: 0.5rem;
}

.cta-where {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 1rem;
  line-height: 1.5;
  color: color-mix(in oklab, var(--paper) 92%, transparent);
}
.cta-where b { font-weight: 700; }

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 3.5vw, 3rem);
}
.footer-inner {
  max-width: var(--w-page); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
  }
}

.footer-brand {
  display: flex; align-items: center; gap: 1rem;
}
.footer-brand .brand-mark { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
.footer-brand p { font-family: var(--font-body); font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.footer-brand b { color: var(--ink); font-weight: 700; }

.footer-tel {
  font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.footer-tel span {
  font-size: 0.8rem; color: var(--ink-soft);
  letter-spacing: 0;
}
.footer-tel b {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--ink); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}
.footer-credit a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--magenta);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}
.footer-credit a:hover { color: var(--magenta); }

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .poster-frame:hover { transform: rotate(-2.5deg); }
}

/* ============================================================
   FOCUS
============================================================ */

:where(a, button):focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   WEEBY ATTRIBUTION BADGE (sticky, free-tier mandatory)
============================================================ */

.weeby-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, padding 0.25s ease;
  animation: weebyBadgeIn 0.6s ease 1.5s both;
}
.weeby-badge:hover {
  transform: translateY(-2px);
  padding-right: 20px;
}
.weeby-badge img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
.weeby-badge .label { color: rgba(255, 255, 255, 0.9); }
.weeby-badge .label strong { color: #fff; font-weight: 700; }
.weeby-badge .cta {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffb547;
  font-weight: 600;
  margin-left: -6px;
  transition: max-width 0.3s ease, opacity 0.2s ease 0.05s, margin-left 0.3s ease;
}
.weeby-badge:hover .cta {
  max-width: 200px;
  opacity: 1;
  margin-left: 0;
}
@keyframes weebyBadgeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .weeby-badge {
    bottom: 14px;
    right: 14px;
    padding: 6px 14px 6px 6px;
    font-size: 12px;
  }
  .weeby-badge img { width: 22px; height: 22px; border-radius: 6px; }
}
