:root {
  --ink: #111111;
  --muted: #686868;
  --line: #ddddda;
  --paper: #ffffff;
  --soft: #f4f4f1;
  --radius-action: 8px;
  --max: 1240px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; letter-spacing: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(17,17,17,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.025) 1px, transparent 1px); background-size: 72px 72px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; border-radius: var(--radius-action); background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 10px var(--pad); border-bottom: 1px solid rgba(17,17,17,.1); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.brand, .footer-brand { display: inline-flex; align-items: center; }
.site-logo { width: 118px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .88rem; font-weight: 700; }
.site-nav a:not(.nav-cta) { border-bottom: 1px solid transparent; }
.site-nav a:not(.nav-cta):hover { border-color: var(--ink); }
.nav-cta { padding: 10px 18px; border-radius: var(--radius-action); background: var(--ink); color: white; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-action); background: white; }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 6px 0; background: var(--ink); }

.eyebrow { font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; padding: clamp(74px, 9vw, 124px) 0 clamp(54px, 7vw, 88px); }
.hero h1 { max-width: 1160px; margin-top: 18px; font-size: clamp(3.2rem, 6.5vw, 6.2rem); line-height: .98; text-wrap: balance; }
.hero-bottom { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(220px, .7fr) minmax(230px, .55fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-top: clamp(46px, 7vw, 82px); padding-top: 24px; border-top: 1px solid var(--line); }
.hero-message > p { font-family: Georgia, serif; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.2; }
.hero-message > span { display: block; max-width: 570px; margin-top: 10px; color: var(--muted); }
.hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-action); font-weight: 800; line-height: 1.2; transition: transform 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #353535; }
.button-light { border-color: white; background: white; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-weight: 800; }
.hero-signature { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.hero-signature img { width: 52px; height: 52px; object-fit: cover; object-position: 50% 35%; border-radius: 50%; }
.hero-signature div { display: grid; }
.hero-signature span { color: var(--muted); font-size: .83rem; }

.projects { padding: clamp(78px, 9vw, 120px) var(--pad); background: var(--soft); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr); column-gap: clamp(42px, 8vw, 120px); align-items: end; width: min(var(--max), 100%); margin: 0 auto clamp(46px, 6vw, 74px); }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 18px; }
.section-heading h2 { max-width: 850px; font-size: clamp(2.8rem, 5vw, 5.1rem); line-height: .97; }
.section-heading > p:last-child { max-width: 480px; color: var(--muted); }
.project-grid { display: grid; width: min(var(--max), 100%); margin-inline: auto; }
.project-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(52px, 6vw, 80px) clamp(24px, 3.5vw, 48px); }
.project-card a { display: block; height: 100%; }
.project-card figure { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid #d1d1cd; background: white; }
.project-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 380ms ease; }
.project-card a:hover figure img { transform: scale(1.018); }
.project-meta { display: flex; gap: 20px; margin-top: 16px; color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.project-logo { display: flex; align-items: center; width: 220px; max-width: 100%; height: 64px; margin-top: 16px; }
.project-logo img { display: block; width: auto; max-width: 200px; max-height: 50px; object-fit: contain; object-position: left center; }
.project-logo-dark { padding: 12px 15px; background: #111; }
.project-logo-dark img { max-width: 190px; max-height: 40px; }
.project-logo-sbelta { position: relative; overflow: hidden; }
.project-logo-sbelta img { position: absolute; top: 50%; left: 50%; width: 360px; max-width: none; max-height: none; transform: translate(-50%, -50%); }
.project-logo-vertical img { max-height: 58px; }
.project-card h3 { margin-top: 9px; font-size: clamp(2rem, 2.8vw, 2.8rem); line-height: 1; }
.project-card p { max-width: 390px; margin-top: 14px; color: var(--muted); font-size: .94rem; }
.project-card-featured p { max-width: 520px; font-size: 1rem; }
.more-projects { width: min(var(--max), 100%); margin: clamp(64px, 8vw, 108px) auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-projects > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; }
.more-projects > summary::-webkit-details-marker { display: none; }
.more-projects > summary span { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; }
.more-projects > summary span::after { content: "+"; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; line-height: 1; }
.more-projects[open] > summary span::after { content: "−"; }
.more-projects > summary small { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.secondary-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; padding: 28px 0 64px; }
.project-card-secondary .project-logo { height: 54px; margin-top: 13px; }
.project-card-secondary .project-logo img { max-height: 44px; }
.project-card-secondary p { margin-top: 10px; font-size: .88rem; }

.about, .services, .faq { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; }
.about { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(48px, 8vw, 120px); align-items: center; padding: clamp(86px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
.about-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 11px; background: rgba(17,17,17,.9); color: white; font-size: .72rem; font-weight: 800; }
.about-copy .eyebrow { margin-bottom: 18px; }
.about-copy h2 { max-width: 850px; font-size: clamp(2.8rem, 5.2vw, 5.3rem); line-height: .96; }
.about-copy p { max-width: 700px; margin-top: 22px; color: var(--muted); font-size: 1.03rem; }

.services { padding: clamp(84px, 10vw, 140px) 0; }
.section-heading.compact { grid-template-columns: minmax(0, 1fr); max-width: 880px; margin-left: 0; }
.section-heading.compact h2 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { display: flex; flex-direction: column; padding: clamp(22px, 2.5vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 3px 12px rgba(17,17,17,.025); transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease; }
.service-card-top { display: flex; justify-content: flex-end; align-items: center; }
.service-card-top svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.service-list h3 { margin-top: 36px; font-family: inherit; font-size: 1.25rem; font-weight: 750; }
.service-list p { margin-top: 12px; margin-bottom: 30px; color: var(--muted); font-size: .94rem; }
.service-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; padding-top: 15px; border-top: 1px solid #e9e9e5; font-size: .8rem; font-weight: 750; }
.service-link span { flex: none; font-size: 1.15rem; transition: transform 280ms ease; }
.service-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 3px; }
.service-card:focus-within { border-color: #777; box-shadow: 0 12px 30px rgba(17,17,17,.08); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card:hover { transform: translateY(-5px); border-color: #999; box-shadow: 0 18px 38px rgba(17,17,17,.09); }
  .service-card:hover .service-link span, .service-link:focus-visible span { transform: translateX(4px); }
}

.cta { display: grid; justify-items: start; padding: clamp(72px, 10vw, 132px) var(--pad); background: var(--ink); color: white; }
.cta .eyebrow { color: rgba(255,255,255,.7); }
.cta h2 { max-width: 1040px; margin-top: 20px; font-size: clamp(3rem, 6.6vw, 6.6rem); line-height: .94; }
.cta > p:not(.eyebrow) { max-width: 650px; margin-top: 24px; color: rgba(255,255,255,.68); font-size: 1.05rem; }
.cta .button { margin-top: 32px; }

.faq { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(48px, 8vw, 120px); padding: clamp(84px, 10vw, 140px) 0; }
.faq .section-heading { display: grid; align-content: start; grid-template-columns: 1fr; margin: 0; }
.faq .section-heading h2 { font-size: clamp(2.6rem, 4.8vw, 4.7rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 650px; padding: 0 42px 24px 0; color: var(--muted); }

.site-footer { display: grid; justify-items: center; gap: 20px; padding: 58px var(--pad) 26px; background: #090909; color: rgba(255,255,255,.62); text-align: center; }
.footer-brand .site-logo { width: 176px; }
.site-footer p { max-width: 540px; }
.site-footer address { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-style: normal; font-size: .86rem; }
.site-footer address a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; width: 100%; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .81rem; }
.footer-bottom strong { display: inline-flex; align-items: center; gap: 8px; color: white; }
.py-flag { position: relative; display: inline-block; width: 24px; height: 16px; border: 1px solid rgba(255,255,255,.4); background: linear-gradient(180deg,#d52b1e 0 33.33%,white 33.33% 66.66%,#0038a8 66.66%); }
.py-flag::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; border: 1px solid #cba43b; border-radius: 50%; background: white; transform: translate(-50%,-50%); }
.hero-origin { white-space: nowrap; }
.hero .eyebrow .py-flag { width: 20px; height: 14px; margin-left: 5px; vertical-align: -2px; overflow: hidden; font-size: 0; line-height: 0; letter-spacing: 0; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 480ms ease var(--reveal-delay,0ms), transform 480ms ease var(--reveal-delay,0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .hero-signature { grid-column: 1 / -1; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .project-grid-featured, .secondary-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faq { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  body::before { background-size: 44px 44px; }
  .site-header { min-height: 64px; }
  .site-logo { width: 106px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; display: none; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); background: white; box-shadow: 0 18px 45px rgba(0,0,0,.12); }
  .nav-open .site-nav { display: grid; }
  .site-nav a { padding: 13px 14px; }
  .nav-cta { text-align: center; }
  .hero { padding: 58px 0 50px; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.4rem); }
  .hero-bottom { grid-template-columns: 1fr; gap: 30px; margin-top: 42px; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero-signature { grid-column: auto; }
  .projects { padding-top: 72px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2 { font-size: clamp(2.75rem, 12.5vw, 4rem); }
  .project-grid-featured, .secondary-project-grid { grid-template-columns: 1fr; gap: 54px; }
  .more-projects { margin-top: 72px; }
  .more-projects > summary { padding: 20px 0; }
  .secondary-project-grid { padding: 28px 0 54px; }
  .project-card h3 { font-size: 2.35rem; }
  .about { grid-template-columns: 1fr; gap: 36px; padding: 84px 0; }
  .about-copy h2 { font-size: clamp(2.75rem, 12.5vw, 4rem); }
  .service-list { grid-template-columns: 1fr; }
  .service-list article { padding: 26px; }
  .service-list h3 { margin-top: 20px; }
  .cta { padding-block: 76px; }
  .cta h2 { font-size: clamp(2.9rem, 13vw, 4.3rem); }
  .faq { padding: 84px 0; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.project-identity-gastronomia { display:flex; align-items:center; gap:12px; margin-top:16px; min-height:54px; }
.project-identity-gastronomia > span { font-size:36px; line-height:1; color:#746821; }
.project-card .project-identity-gastronomia h3 { margin:0; font-family:var(--font-body, sans-serif); font-size:1.05rem; font-weight:650; line-height:1.25; letter-spacing:-.02em; }

/* Local review: preserve the portfolio's editorial type, palette and real assets. */
.portfolio-home {
  --motion-quick: 180ms;
  --motion-panel: 220ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
.portfolio-home ::selection { background: #f4c4d7; color: var(--ink); }
.portfolio-home :is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.portfolio-home :is(.cta, .site-footer) a:focus-visible { outline-color: white; }
.portfolio-home section[id] { scroll-margin-top: 96px; }
.portfolio-home .reveal { opacity: 1; transform: none; transition: none; }
.portfolio-home .hero { padding-block: clamp(64px, 7vw, 100px) clamp(48px, 6vw, 76px); }
.portfolio-home .hero h1 { margin-top: 24px; font-size: clamp(3.1rem, 6.1vw, 5.5rem); line-height: 1.04; text-wrap: balance; }
.portfolio-home .hero-bottom { margin-top: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .7fr); gap: 36px; }
.portfolio-home .hero-message > p { max-width: 42ch; font-family: inherit; font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
.portfolio-home .hero-actions { gap: 10px; }
.portfolio-home .text-link { min-height: 44px; align-items: center; font-size: .9rem; }
.portfolio-home .hero-signature { align-self: center; }
.portfolio-home .projects { padding-top: clamp(64px, 7vw, 96px); }
.portfolio-home .projects .section-heading h2 { max-width: 800px; font-size: clamp(2.6rem, 4.8vw, 4.6rem); line-height: 1.05; }
.portfolio-home .project-card-featured h3 { margin-top: 18px; max-width: 22ch; font-size: clamp(1.8rem, 2.8vw, 2.55rem); line-height: 1.12; text-wrap: balance; }
.portfolio-home .project-card-featured p { max-width: 50ch; margin-top: 18px; }
.portfolio-home .project-meta { font-size: .72rem; }
.portfolio-home .project-card-lead { grid-column: 1 / -1; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.portfolio-home .project-card-lead > a { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.portfolio-home .project-card-lead .project-meta { margin-top: 0; }
.portfolio-home .project-card-lead figure { aspect-ratio: 8 / 5; }
.portfolio-home .project-card-lead h3 { font-size: clamp(2rem, 3.1vw, 2.8rem); }
.portfolio-home .project-case-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 20px; border-bottom: 1px solid currentColor; font-size: .88rem; font-weight: 750; }
.portfolio-home :is(.project-case-link, .text-link) > span { display: inline-block; transition: transform var(--motion-quick) var(--ease-out); }
.portfolio-home .process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; padding: 0 0 clamp(84px, 10vw, 132px); }
.portfolio-home .process-intro h2 { font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1.05; text-wrap: balance; }
.portfolio-home .process-intro > p { max-width: 40ch; margin-top: 24px; color: var(--muted); }
.portfolio-home .process-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.portfolio-home .process-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.portfolio-home .process-number { padding-top: 4px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.portfolio-home .process-steps h3 { font-family: inherit; font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.portfolio-home .process-steps p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.portfolio-home .faq-answer { overflow: hidden; }
.portfolio-home .faq-list summary::after { content: "+"; transition: transform var(--motion-panel) var(--ease-out); }
.portfolio-home .faq-list details[open] summary::after { content: "+"; transform: rotate(45deg); }
.portfolio-home .button { transition: transform var(--motion-quick) var(--ease-out), background var(--motion-quick) var(--ease-out); }
.portfolio-home .nav-toggle span:not(.sr-only) { transition: transform var(--motion-panel) var(--ease-out); }
.portfolio-home .nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.portfolio-home .nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .portfolio-home :is(.project-card a:hover .project-case-link, .text-link:hover) > span { transform: translate(3px, -3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-home .hero h1 { animation: portfolio-title-in 550ms var(--ease-out) both; }
  @keyframes portfolio-title-in { from { transform: translateY(10px); } to { transform: translateY(0); } }
}
@media (max-width: 980px) {
  .portfolio-home .hero-bottom { grid-template-columns: 1fr 1fr; }
  .portfolio-home .hero-signature { grid-column: 1 / -1; }
  .portfolio-home .project-card-lead > a { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
  .portfolio-home .project-card-lead h3 { font-size: 2rem; }
  .portfolio-home .process { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .portfolio-home section[id] { scroll-margin-top: 82px; }
  .portfolio-home .hero { padding-block: 48px; }
  .portfolio-home .hero .eyebrow { max-width: 42ch; font-size: .7rem; }
  .portfolio-home .hero h1 { font-size: clamp(2.1rem, 9.2vw, 3.5rem); line-height: 1.08; }
  .portfolio-home .hero-bottom { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
  .portfolio-home .hero-signature { grid-column: auto; }
  .portfolio-home .hero-actions { gap: 8px 18px; }
  .portfolio-home .hero-message > p { font-size: 1rem; }
  .portfolio-home .project-card-lead > a { grid-template-columns: 1fr; gap: 0; }
  .portfolio-home .project-card-lead .project-meta { margin-top: 16px; }
  .portfolio-home .project-card-featured h3, .portfolio-home .project-card-lead h3 { font-size: 2rem; }
  .portfolio-home .project-card-lead { padding-bottom: 40px; }
  .portfolio-home .project-grid-featured { gap: 40px; }
  .portfolio-home .process-intro h2 { font-size: 2.6rem; }
  .portfolio-home .process-steps li { gap: 12px; }
  .portfolio-home .site-nav { display: grid; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity var(--motion-panel) var(--ease-out), transform var(--motion-panel) var(--ease-out), visibility var(--motion-panel); }
  .portfolio-home .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
}

/* Second local direction: the work leads, within the existing brand. */
.portfolio-home { --brand-pink: #f4c4d7; }
.portfolio-home::before { display: none; }
.portfolio-home .hero-showcase { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px 48px; padding-block: 64px 28px; }
.portfolio-home .hero-showcase h1 { margin: 0; font-size: clamp(3.6rem, 6.2vw, 5.75rem); line-height: .99; text-wrap: initial; letter-spacing: -.035em; animation: none; }
.portfolio-home .hero-showcase h1 em { position: relative; z-index: 0; font-weight: inherit; white-space: nowrap; }
.portfolio-home .hero-showcase h1 em::before { content: ""; position: absolute; z-index: -1; inset: 51% -3% 3%; background: var(--brand-pink); transform: rotate(-3deg); }
.portfolio-home .hero-description { max-width: 39ch; margin-top: 30px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.portfolio-home .hero-showcase .hero-actions { flex-direction: row; align-items: center; gap: 28px; margin-top: 30px; }
.portfolio-home .hero-showcase .button { min-height: 54px; gap: 24px; }
.portfolio-home .hero-work { min-width: 0; padding-top: 10px; }
.portfolio-home .work-stack { position: relative; height: clamp(360px, 33vw, 470px); isolation: isolate; }
.portfolio-home .work-stack::before { content: ""; position: absolute; inset: 10% 2% 9% 7%; background: var(--brand-pink); transform: rotate(-7deg); }
.portfolio-home .work-preview { position: absolute; inset: 70px 25px auto 0; aspect-ratio: 8 / 5; background: white; box-shadow: 0 20px 45px rgba(17,17,17,.16); transition: transform 650ms var(--ease-out), filter 650ms var(--ease-out); transform-origin: center; }
.portfolio-home .work-preview a { display: block; height: 100%; }
.portfolio-home .work-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portfolio-home .work-preview[data-position="front"] { z-index: 3; transform: translate(-1%, 34px) rotate(-5deg); }
.portfolio-home .work-preview[data-position="middle"] { z-index: 2; transform: translate(5%, -10px) rotate(3deg) scale(.94); filter: brightness(.92); }
.portfolio-home .work-preview[data-position="back"] { z-index: 1; transform: translate(9%, -52px) rotate(9deg) scale(.88); filter: brightness(.85); }
.portfolio-home .work-selector { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.portfolio-home .work-selector button { position: relative; min-height: 44px; padding: 9px 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .9rem; font-weight: 700; transition: color 180ms ease, background 180ms ease; }
.portfolio-home .work-selector button[aria-selected="true"] { background: var(--ink); color: white; }
.portfolio-home .work-selector button:hover:not([aria-selected="true"]) { background: var(--soft); color: var(--ink); }
.portfolio-home .work-hint { margin-top: 12px; text-align: center; color: var(--muted); font-size: .78rem; }
.portfolio-home .hero-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); }
.portfolio-home .hero-footnote > p { font-size: .82rem; font-weight: 600; }
.portfolio-home .hero-footnote > p > span { margin-inline: 10px; color: var(--muted); }
.portfolio-home .hero-footnote .hero-signature { grid-template-columns: 40px 1fr; }
.portfolio-home .hero-footnote .hero-signature img { width: 40px; height: 40px; }
.portfolio-home .hero-footnote .hero-signature strong { font-size: .85rem; }
.portfolio-home .hero-footnote .hero-signature span { font-size: .75rem; }
/* Showcase: neutral editorial stage, consistent product framing. */
.portfolio-home .projects { margin-top: 32px; padding-block: 96px 72px; background: #f7f7f4; color: var(--ink); }
.portfolio-home .projects .section-heading { align-items: end; margin-bottom: 64px; }
.portfolio-home .projects .section-heading h2 { font-size: clamp(3.5rem, 6.5vw, 6rem); line-height: .98; letter-spacing: -.03em; }
.portfolio-home .projects .section-heading > p { color: var(--muted); max-width: 36ch; }
.portfolio-home .project-grid-featured { grid-template-columns: minmax(0, 1fr); gap: 56px; }
.portfolio-home .project-card-featured { width: 100%; margin: 0; padding: 0; border: 0; border-top: 1px solid #d8d8d2; background: #f7f7f4; color: var(--ink); overflow: visible; }
.portfolio-home .project-card-featured > a { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.45fr); grid-template-areas: "copy image"; align-items: center; gap: clamp(32px, 5vw, 72px); min-height: 560px; padding: 44px 0; }
.portfolio-home .project-card-featured .project-content { grid-area: copy; }
.portfolio-home .project-card-featured figure { grid-area: image; margin: 0; padding: clamp(18px, 2.4vw, 36px); aspect-ratio: 1.36; display: grid; align-items: center; border: 1px solid #e0e0da; background: #eeeeea; box-shadow: none; transform: none; overflow: hidden; }
.portfolio-home .project-card-featured figure img { height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border: 1px solid rgba(17,17,17,.08); box-shadow: 0 8px 24px rgba(17,17,17,.06); transform: none; transition: none; }
.portfolio-home .project-card-featured .project-meta { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.portfolio-home .project-card-featured .project-logo { margin-top: 22px; height: 48px; }
.portfolio-home .project-card-featured .project-logo img { max-width: 150px; max-height: 42px; }
.portfolio-home .project-card-featured h3 { max-width: 17ch; margin-top: 26px; font-size: clamp(2rem, 3.1vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.portfolio-home .project-card-featured p { max-width: 35ch; margin-top: 20px; color: #5d5d58; font-size: .95rem; line-height: 1.7; }
.portfolio-home .project-card-featured .project-case-link { margin-top: 24px; }
.portfolio-home .project-sbelta .project-logo-sbelta { width: 160px; }
.portfolio-home .project-sbelta .project-logo-sbelta img { width: 300px; max-width: none; max-height: none; }
.portfolio-home .more-projects { margin-top: 48px; border-color: #d8d8d2; }
.portfolio-home .more-projects > summary small { color: var(--muted); }
.portfolio-home .projects summary:focus-visible { outline-color: var(--ink); }
.portfolio-home .secondary-project-grid { color: var(--ink); }
.portfolio-home .project-card-secondary { background: transparent; padding: 0; }
/* Native scroll supplies the hand-off; no wheel interception or hidden content. */
@media (min-width: 1101px) and (min-height: 800px) and (prefers-reduced-motion: no-preference) {
  .portfolio-home .project-grid-featured { gap: 120px; }
  .portfolio-home .project-card-featured { position: sticky; top: 100px; }
  .portfolio-home .project-card-featured:nth-child(2) { top: 112px; }
  .portfolio-home .project-card-featured:nth-child(3) { top: 124px; }
}
@media (hover: hover) and (pointer: fine) {
  .portfolio-home .work-stack:hover .work-preview[data-position="front"] { transform: translate(-3%, 25px) rotate(-3deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .portfolio-home .hero-work { animation: work-arrives 850ms var(--ease-out) both; }
  @keyframes work-arrives { from { transform: translateY(24px) rotate(3deg); clip-path: inset(0 0 10% 0); } to { transform: none; clip-path: inset(-15% -15% -15% -15%); } }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .portfolio-home .hero-showcase { gap: 28px; }
  .portfolio-home .hero-showcase h1 { font-size: clamp(3.3rem, 6.4vw, 4.5rem); }
  .portfolio-home .work-stack { height: 360px; }
  .portfolio-home .work-preview { top: 60px; right: 12px; }
  .portfolio-home .project-card-featured > a { gap: 32px; min-height: 480px; }
}
@media (max-width: 700px) {
  .portfolio-home .hero-showcase { grid-template-columns: minmax(0, 1fr); padding-block: 40px 22px; gap: 25px; }
  .portfolio-home .hero-showcase h1 { font-size: clamp(3.05rem, 12.9vw, 5rem); line-height: .99; }
  .portfolio-home .hero-description { margin-top: 24px; font-size: .98rem; max-width: 38ch; }
  .portfolio-home .hero-showcase .hero-actions { margin-top: 24px; }
  .portfolio-home .hero-work { padding-top: 0; }
  .portfolio-home .work-stack { height: clamp(295px, 78vw, 480px); margin-inline: 10px; }
  .portfolio-home .work-preview { top: 60px; right: 18px; }
  .portfolio-home .work-preview[data-position="front"] { transform: translate(-1%, 20px) rotate(-5deg); }
  .portfolio-home .work-preview[data-position="middle"] { transform: translate(4%, -8px) rotate(3deg) scale(.94); }
  .portfolio-home .work-preview[data-position="back"] { transform: translate(8%, -36px) rotate(9deg) scale(.88); }
  .portfolio-home .work-selector button { padding-inline: 18px; font-size: .85rem; }
  .portfolio-home .work-selector { margin-top: 0; }
  .portfolio-home .hero-footnote { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 18px; }
  .portfolio-home .hero-footnote > p { font-size: .78rem; }
  .portfolio-home .hero-footnote > p > span { margin-inline: 5px; }
  .portfolio-home .projects { margin-top: 20px; padding-block: 64px 40px; }
  .portfolio-home .projects .section-heading { gap: 24px; margin-bottom: 36px; }
  .portfolio-home .projects .section-heading h2 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .portfolio-home .projects .section-heading > p { font-size: .95rem; }
  .portfolio-home .project-grid-featured { gap: 30px; }
  .portfolio-home .project-card-featured { width: 100%; }
  .portfolio-home .project-card-featured > a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "image" "copy"; padding: 24px 0 32px; gap: 26px; min-height: 0; }
  .portfolio-home .project-card-featured figure { grid-area: image; aspect-ratio: 1.36; padding: 18px; transform: none; }
  .portfolio-home .project-card-featured .project-content { grid-area: copy; }
  .portfolio-home .project-card-featured .project-logo { margin-top: 16px; }
  .portfolio-home .project-card-featured h3 { margin-top: 18px; max-width: 18ch; font-size: clamp(1.9rem, 8.3vw, 2.2rem); }
  .portfolio-home .project-card-featured p { font-size: .94rem; }
  .portfolio-home .project-card-featured .project-case-link { margin-top: 18px; }
  .portfolio-home .more-projects { margin-top: 40px; }
}

.portfolio-home .project-card-featured .project-name { display: flex; align-items: center; font-size: 1.1rem; line-height: 1.25; letter-spacing: -.02em; }

/* A quiet, shared language control for the homepage and case studies. */
.language-toggle { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-left: 24px; padding: 8px 0; border: 0; background: transparent; color: #73736d; font: inherit; font-size: .72rem; cursor: pointer; }
.language-toggle .is-active { color: var(--ink); font-weight: 750; }
.language-divider { color: #b0b0aa; }
.language-toggle:hover { color: var(--ink); }
.language-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.portfolio-home .site-nav { margin-left: auto; }
.case-header .case-back { margin-left: auto; }
@media (max-width: 700px) {
  .site-header { gap: 12px; }
  .language-toggle { order: 2; margin-left: auto; }
  .portfolio-home .nav-toggle { order: 3; }
  .case-header .case-back { max-width: 13ch; margin-left: auto; }
  .case-header .language-toggle { margin-left: 0; }
}
