/* MAEDA, site vitrine. Mobile first. Colors read from the official letterhead PDF. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --violet: #7F3F98;
  --violet-dark: #5E2C72;
  --violet-light: #CBB2D6;
  --violet-pale: #F3ECF6;
  --night: #24122F;
  --green: #1DB34B;
  --green-dark: #138A38;
  --green-pale: #A8E2BA;
  --ink: #1F1A24;
  --muted: #5A5262;
  --line: #E4DEE8;
  --bg: #F6F4F1;
  --white: #FFFFFF;
  --wa: #12823A;
  --green-text: #11803A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(36, 18, 47, .06), 0 8px 24px rgba(36, 18, 47, .08);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 var(--s3); letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); color: var(--night); }
h3 { font-size: 1.45rem; color: var(--night); }
p { margin: 0 0 var(--s3); }
svg { fill: currentColor; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 2 * 20px); margin-inline: auto; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-dark); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0E6B30; color: #fff; }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--violet-pale); color: var(--night); }
.btn--outline { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn--outline:hover { background: var(--violet); color: #fff; }

.eyebrow { font: 600 .82rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: var(--s2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--green); }
.eyebrow--light { color: #fff; }
@media (max-width: 520px) { .hero .eyebrow { letter-spacing: .1em; font-size: .76rem; } .hero .eyebrow::before { display: none; } }
.eyebrow--green { color: var(--green-pale); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(36, 18, 47, .07); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; padding: 6px 0; }
.brand__logo { height: 30px; width: auto; }
.burger { width: 48px; height: 48px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm); }
.burger span { width: 24px; height: 2.5px; background: var(--night); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-top: 1px solid var(--line); padding: var(--s3) 20px var(--s4); box-shadow: 0 18px 30px rgba(36, 18, 47, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav ul { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.nav li a { display: block; padding: 14px 4px; font: 600 1.2rem var(--head); letter-spacing: .02em; color: var(--night); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav li a:hover { color: var(--violet); }
.nav__cta { width: 100%; }

/* Hero */
.hero { position: relative; min-height: min(88svh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36, 18, 47, .25) 0%, rgba(36, 18, 47, .55) 40%, rgba(36, 18, 47, .93) 100%); }
.hero__in { padding: var(--s7) 0 var(--s6); }
.hero h1 { font-size: clamp(2.2rem, 8.4vw, 4.2rem); max-width: 20ch; text-wrap: balance; margin-bottom: var(--s3); }
.hero__lead { font-size: 1.15rem; max-width: 52ch; color: rgba(255, 255, 255, .9); }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: var(--s4); max-width: 560px; }
.hero__actions .btn--primary { grid-column: 1 / -1; }
.hero__slogan { margin: var(--s4) 0 0; font: 600 1.05rem var(--head); letter-spacing: .08em; color: var(--green-pale); }

.band { background: var(--violet); color: #fff; position: relative; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--green); }
.band__list { list-style: none; margin: 0 auto; padding: 16px 0 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font: 600 1.05rem var(--head); letter-spacing: .06em; text-transform: uppercase; }
.band__list li { display: flex; align-items: center; gap: 22px; }
.band__list li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: -14px; }

/* Sections */
.section { padding: var(--s7) 0; }
.section__head { margin-bottom: var(--s5); }
.section--dark { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, .78); }

/* Expertise cards */
.cards { display: grid; gap: var(--s4); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img picture, .tile__link picture { height: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: var(--s4); border-top: 4px solid var(--green); }
.card__body p { color: var(--muted); margin: 0; }

/* Method */
.method { position: relative; }
.section--dark::before { content: ""; position: absolute; right: -180px; top: -120px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(127, 63, 152, .28); pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); counter-reset: s; }
.step { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: var(--s4); }
.method__img { margin-top: var(--s4); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.method__img img { width: 100%; height: 100%; object-fit: cover; }
.step__num { display: block; font: 700 2.6rem/1 var(--head); color: var(--green); margin-bottom: var(--s2); }
.step p { color: rgba(255, 255, 255, .78); margin: 0; }

/* Gallery */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -20px var(--s3); padding-inline: 20px; scrollbar-width: thin; }
.filter { flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--night); font: 600 .95rem var(--body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filter:hover { border-color: var(--violet); color: var(--violet); }
.filter.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile[hidden] { display: none; }
.tile__link { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); }
.tile__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile__link:hover img { transform: scale(1.05); }
.tile__tag { position: absolute; left: 8px; bottom: 8px; right: 8px; padding: 4px 9px; border-radius: 6px; background: rgba(36, 18, 47, .78); color: #fff; font: 600 .74rem/1.3 var(--body); width: fit-content; max-width: calc(100% - 16px); }
.tile.is-in { animation: tileIn .35s ease both; }
@keyframes tileIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Studio */
.section--studio { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio { display: grid; gap: var(--s5); align-items: start; }
.studio__text .tagband { color: #fff; }
.tagband { display: inline-block; background: var(--green-text); color: #fff; font: 600 .8rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; padding: 9px 14px; margin-bottom: var(--s4); }
.studio__text p { color: var(--muted); max-width: 60ch; }
.studio__text .btn { margin-top: var(--s2); }
.studio__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; border-left: 3px solid var(--violet-light); }
.studio__steps li { counter-increment: st; position: relative; padding: 0 0 var(--s4) var(--s5); }
.studio__steps li:last-child { padding-bottom: 0; }
.studio__steps li::before { content: counter(st); position: absolute; left: -17px; top: -2px; width: 31px; height: 31px; border-radius: 50%; background: var(--violet); color: #fff; font: 700 1rem/31px var(--head); text-align: center; }
.studio__steps strong { display: block; font: 700 1.35rem/1.2 var(--head); color: var(--night); margin-bottom: 4px; }
.studio__steps span { color: var(--muted); }

/* Contact */
.contact { display: grid; gap: var(--s5); }
.infos { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); }
.infos li { display: flex; gap: 14px; align-items: flex-start; }
.infos li > svg { width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 50%; background: var(--violet-pale); color: var(--violet); }
.infos div { display: flex; flex-direction: column; }
.infos__label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.infos a { font-weight: 600; text-decoration: none; padding: 2px 0; }
.infos a:hover { text-decoration: underline; }
.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4); display: grid; gap: var(--s3); border-top: 5px solid var(--violet); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { color: var(--violet); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 3px rgba(127, 63, 152, .18); }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; background: #FFF6F5; }
.field__error { margin: 0; min-height: 0; color: #B03021; font-size: .9rem; font-weight: 500; }
.field__error:empty { display: none; }
.form__note { margin: 0; font-size: .88rem; color: var(--muted); }
.form__actions { display: grid; gap: 10px; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--violet-pale); min-height: 300px; display: flex; position: relative; }
.map__facade { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: var(--s5) var(--s4); background:
  radial-gradient(circle at 20% 30%, rgba(127, 63, 152, .12) 0 2px, transparent 3px) 0 0 / 26px 26px,
  linear-gradient(135deg, #F3ECF6, #EAF7EE); }
.map__facade > svg { width: 48px; height: 48px; color: var(--violet); }
.map__facade p { margin: 0 0 var(--s2); color: var(--night); }
.map__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.map iframe { border: 0; width: 100%; min-height: 340px; flex: 1; }

/* Footer */
.footer { background: var(--night); color: rgba(255, 255, 255, .82); position: relative; margin-top: 40px; }
.footer__curve { position: absolute; left: 0; right: 0; top: -40px; height: 42px; background: var(--night); clip-path: ellipse(80% 100% at 50% 100%); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -45px; height: 47px; background: var(--green); clip-path: ellipse(80% 100% at 50% 100%); }
.footer__in { display: grid; gap: var(--s5); padding: var(--s6) 0 var(--s4); }
.footer__logo { height: 36px; width: auto; margin-bottom: var(--s3); }
.footer__slogan { font: 600 1.15rem var(--head); color: var(--green-pale); letter-spacing: .04em; margin-bottom: var(--s2); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: #fff; text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--green-pale); text-decoration: underline; }
.footer__contact { font-style: normal; display: grid; gap: 6px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding: var(--s3) 0 var(--s4); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; color: rgba(255, 255, 255, .7); }
.footer__legal p { margin: 0; }

/* Mobile action bar */
.actionbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(36, 18, 47, .08); padding-bottom: env(safe-area-inset-bottom); }
.actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; text-decoration: none; color: var(--violet); font: 600 .82rem var(--body); }
.actionbar a svg { width: 22px; height: 22px; }
.actionbar__wa { color: var(--wa) !important; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20, 10, 26, .94); }
.lightbox__figure { position: relative; margin: 0; max-width: min(1200px, 100vw - 24px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #fff; text-align: center; padding: 0 56px; display: flex; flex-direction: column; gap: 2px; font-size: .98rem; }
.lightbox__count { color: rgba(255, 255, 255, .65); font-size: .85rem; }
.lightbox__btn { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn svg { width: 26px; height: 26px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* Toast */
.toast { position: fixed; z-index: 95; left: 50%; bottom: 84px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); background: var(--night); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tablet */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .form { grid-template-columns: 1fr 1fr; padding: var(--s5); }
  .field--full { grid-column: 1 / -1; }
  .form__actions { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1.4fr 1fr 1fr; }
  .hero__actions { display: flex; flex-wrap: wrap; }
}

/* Desktop */
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; font-size: 1.0625rem; }
  .actionbar { display: none; }
  .toast { bottom: 32px; }
  .brand__logo { height: 36px; }
  .burger { display: none; }
  .nav { position: static; display: flex; align-items: center; gap: var(--s4); padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  .nav ul { display: flex; gap: 4px; margin: 0; }
  .nav li a { border: 0; padding: 10px 12px; font: 600 1rem var(--body); letter-spacing: 0; position: relative; }
  .nav li a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
  .nav li a:hover::after, .nav li a.is-current::after { transform: scaleX(1); }
  .nav__cta { width: auto; min-height: 44px; padding: 10px 20px; }
  .section { padding: var(--s8) 0; }
  .hero { align-items: center; min-height: min(86vh, 780px); }
  .hero__shade { background: linear-gradient(90deg, rgba(36, 18, 47, .94) 0%, rgba(36, 18, 47, .78) 38%, rgba(36, 18, 47, .2) 75%, rgba(36, 18, 47, .05) 100%); }
  .hero__bg img { object-position: 60% 45%; }
  .hero__in { padding: var(--s8) 0; }
  .hero__lead { font-size: 1.3rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .method { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--s7); align-items: start; }
  .method .section__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .steps { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .section__head { display: grid; grid-template-columns: 1fr; }
  .filters { margin-inline: 0; padding-inline: 2px; flex-wrap: wrap; overflow: visible; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
  .tile:nth-child(7n + 1) .tile__link { aspect-ratio: auto; height: 100%; }
  .tile:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .studio { grid-template-columns: 1.3fr 1fr; gap: var(--s7); }
  .studio__steps { margin-top: 72px; }
  .contact { grid-template-columns: 1fr 1.25fr; gap: var(--s6) var(--s7); }
  .contact__intro { grid-row: span 2; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
  .lightbox__close { top: 20px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
