/* ImoCompra — brand: deep teal (#2f5a62) from the logo, white, warm sand accent */
:root {
  --teal: #2f5a62;
  --teal-700: #234449;
  --teal-900: #13292d;
  --teal-50: #eef4f4;
  --teal-100: #dbe8e9;
  --sand: #d9b382;
  --sand-600: #c49a64;
  --ink: #0f1d20;
  --muted: #5f7175;
  --line: #e3eaeb;
  --bg: #ffffff;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 30px 60px -30px rgba(19, 41, 45, .45);
  --shadow-sm: 0 10px 30px -14px rgba(19, 41, 45, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.container { width: min(1240px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .2em;
  background: var(--sand); opacity: .55; z-index: -1; border-radius: 4px;
}
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 1.6rem 0 2.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--teal); color: #fff; box-shadow: 0 14px 30px -14px rgba(47,90,98,.9); }
.btn--accent:hover { background: var(--teal-700); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--teal-900); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--sm { padding: .62rem 1.15rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--teal); }
.logo__mark { width: 40px; height: 40px; }
.logo__word { font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
.logo--light, .logo--light .logo__word { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; font-weight: 600; font-size: .94rem; }
.nav__links a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--teal); transition: right .3s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { right: 0; }
.nav__toggle { display: none; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; margin: 7px 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 100px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 500px at 85% 10%, var(--teal-100), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, #f6ecdf, transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; margin-bottom: 1.6rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .86rem; font-weight: 600; color: var(--teal-700);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__stats { display: flex; gap: 2.8rem; margin-top: 3.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero__stats strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--teal); }
.hero__stats span { font-size: .88rem; color: var(--muted); font-weight: 500; }
.hero__visual { position: relative; }

/* Before / after slider */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4/4.4;
  box-shadow: var(--shadow); user-select: none; background: var(--teal-50);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: saturate(.75); }
.ba__label {
  position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; backdrop-filter: blur(8px); pointer-events: none; z-index: 2;
}
.ba__label--before { left: 1rem; background: rgba(15,29,32,.6); color: #fff; }
.ba__label--after { right: 1rem; background: rgba(255,255,255,.88); color: var(--teal-700); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; z-index: 2; }
.ba__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--teal); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; letter-spacing: .1em;
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }

.float-card {
  position: absolute; left: -32px; bottom: 36px; z-index: 4; display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.15rem; border-radius: 18px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.float-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-50); font-size: 1.2rem; }
.float-card strong { display: block; font-size: .92rem; }
.float-card small { color: var(--muted); font-size: .8rem; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--teal-50); }
.section--dark { background: var(--teal); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.section--dark::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -250px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.section__head { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--split { max-width: none; text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section__head--split > div:first-child { max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; color: var(--teal);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section__head:not(.section__head--split) .eyebrow::after { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--sand); }

/* ---------- Paths (Vender / Remodelar) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.path { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.path__media { aspect-ratio: 16/9; overflow: hidden; }
.path__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.path:hover .path__media img { transform: scale(1.05); }
.path__body { padding: 2.2rem; display: flex; flex-direction: column; flex: 1; }
.path__body > p { color: var(--muted); margin-top: .6rem; }
.path__body .btn { margin-top: auto; align-self: flex-start; }
.path__tag {
  display: inline-block; align-self: flex-start; margin-bottom: 1rem; padding: .32rem .8rem; border-radius: 999px;
  background: var(--teal-50); color: var(--teal); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
}
.path--alt .path__tag { background: #f6ecdf; color: #8a6235; }

.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin: 1.6rem 0 2rem; }
.checklist--single { grid-template-columns: 1fr; margin: .8rem 0 1.8rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .94rem; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: .12rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; position: relative; }
.step { position: relative; padding: 2.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.4rem; border-radius: 16px;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.step p { color: var(--muted); margin-top: .5rem; }
.step:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.15rem; top: 3rem; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sand); color: var(--ink); font-weight: 800; font-size: .9rem;
}

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  padding: .6rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--teal); color: var(--teal); }
.filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.filter span { opacity: .6; margin-left: .25rem; font-weight: 600; }

.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--teal-900); color: #fff;
  aspect-ratio: 4/5; animation: fadeUp .5s var(--ease) both; font: inherit;
}
.work--wide { grid-column: span 2; aspect-ratio: auto; }
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.work__before { opacity: 0; }
.work:hover img { transform: scale(1.05); }
.work:hover .work__before { opacity: 1; }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,41,45,0) 40%, rgba(19,41,45,.9) 100%); }
.work__badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; padding: .32rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--teal-700); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.work__hint {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; padding: .32rem .75rem; border-radius: 999px;
  background: rgba(15,29,32,.55); backdrop-filter: blur(6px); font-size: .72rem; font-weight: 700; opacity: 0; transition: opacity .3s;
}
.work:hover .work__hint { opacity: 1; }
.work__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem; }
.work__info h3 { font-size: 1.25rem; }
.work__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .45rem; font-size: .85rem; color: rgba(255,255,255,.78); font-weight: 500; }
.work__open {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--teal); font-size: 1.2rem; font-weight: 800;
  transform: translateY(8px); opacity: 0; transition: transform .35s var(--ease), opacity .3s;
}
.work:hover .work__open, .work:focus-visible .work__open { transform: none; opacity: 1; }
.work:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 2rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15,29,32,.72); backdrop-filter: blur(6px); animation: fade .3s ease; }
.modal__dialog {
  position: relative; width: min(1180px, 100%); max-height: calc(100vh - 4rem); overflow: auto;
  border-radius: var(--radius-lg); background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6);
  animation: pop .4s var(--ease);
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s;
}
.modal__close:hover { transform: rotate(90deg); }
.modal__grid { display: grid; grid-template-columns: 1.45fr 1fr; }
.modal__media { padding: 1.25rem; background: var(--teal-50); }
.modal__viewer { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--teal-100); }
/* Fotografia a preencher a moldura por omissão; o botão .viewer__fit alterna
   para "foto inteira" (útil em fotografias verticais de telemóvel). */
.modal__viewer > img { width: 100%; height: 100%; object-fit: cover; animation: fade .35s ease; }
.modal__viewer.is-contain > img { object-fit: contain; }
.ba--modal { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.viewer__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); transition: background .2s;
}
.viewer__nav:hover { background: #fff; }
.viewer__nav--prev { left: 1rem; }
.viewer__nav--next { right: 1rem; }
.viewer__count { position: absolute; bottom: 1rem; left: 1rem; z-index: 4; padding: .3rem .75rem; border-radius: 999px; background: rgba(15,29,32,.6); color: #fff; font-size: .8rem; font-weight: 700; }
.viewer__fit {
  position: absolute; bottom: 1rem; right: 1rem; z-index: 4; width: 38px; height: 38px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15,29,32,.6); color: #fff; transition: background .2s, transform .2s;
}
.viewer__fit:hover { background: rgba(15,29,32,.88); transform: scale(1.06); }
.viewer__fit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.viewer__fit .ico { width: 17px; height: 17px; }
.viewer__fit .ico--contain { display: none; }
.viewer__fit.is-contain .ico--fill { display: none; }
.viewer__fit.is-contain .ico--contain { display: block; }
.modal__toggle { display: inline-flex; gap: .25rem; margin: 1rem 0 .9rem; padding: .3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.toggle { padding: .5rem 1.1rem; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: .86rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.toggle.is-active { background: var(--teal); color: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: none; opacity: .65; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--teal); }
.modal__info { padding: 2.6rem 2.4rem 2.2rem; display: flex; flex-direction: column; }
.modal__info h3 { font-size: 1.9rem; letter-spacing: -0.03em; }
.modal__info h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-top: .4rem; }
.modal__loc { color: var(--muted); font-weight: 600; margin-top: .4rem; }
.modal__desc { margin: 1.2rem 0 1.5rem; color: #334548; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1.6rem; }
.specs div { padding: .85rem 1rem; border-radius: 14px; background: var(--teal-50); }
.specs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.specs dd { font-weight: 800; font-size: 1.02rem; margin-top: .1rem; }
.modal__pager { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about__copy > p { color: var(--muted); font-size: 1.06rem; margin-bottom: 2rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info { padding: 1.25rem 1.35rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.info span { display: block; margin-bottom: .3rem; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.info strong { display: block; font-weight: 700; font-size: .96rem; }
.quote { position: relative; padding: 3rem; border-radius: var(--radius-lg); background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.quote::before { content: "“"; position: absolute; top: -.1em; right: 2rem; font-size: 9rem; line-height: 1; color: var(--sand); opacity: .7; font-weight: 800; }
.quote blockquote { position: relative; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.quote__author { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; }
.quote__author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.quote__author small { display: block; color: rgba(255,255,255,.7); }
.quote__avatar {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed rgba(255,255,255,.45); background: rgba(255,255,255,.1); font-weight: 800; font-size: 1.2rem;
}
.info-grid--single { grid-template-columns: minmax(0, 320px); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4.5rem; align-items: start; }
.contact__copy > p { color: rgba(255,255,255,.78); font-size: 1.06rem; }
.contact__items { display: grid; gap: .85rem; margin-top: 2.5rem; }
.contact__item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .2s, transform .25s var(--ease); }
.contact__item:hover { background: rgba(255,255,255,.14); transform: translateX(4px); }
.contact__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--teal); font-size: 1.1rem; }
.contact__item small { display: block; font-size: .78rem; color: rgba(255,255,255,.65); }

.form { position: relative; padding: 2.5rem; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label, .field__label { margin-bottom: .45rem; font-size: .86rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: #f7fafa; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(47,90,98,.14); }
.field.has-error input, .field.has-error select { border-color: #d43c3c; }
.field__error { min-height: 1em; margin-top: .3rem; font-size: .8rem; color: #d43c3c; }
.consent__error { display: block; margin: -.5rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .62rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47,90,98,.2); }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; font-size: .86rem; color: var(--muted); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: .2rem; flex-shrink: 0; accent-color: var(--teal); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__error { margin: .2rem 0 0; padding: .7rem .9rem; border-radius: 10px; background: #fdecec; color: #8f2020; font-size: .88rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; border-radius: var(--radius-lg); background: #fff; text-align: center; animation: fade .4s ease; }
.form__success-icon { width: 72px; height: 72px; margin-bottom: 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 2rem; }
.form__success h3 { font-size: 1.7rem; }
.form__success p { max-width: 34ch; margin: .5rem 0 1.5rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 2.2rem 0; background: var(--teal-900); color: rgba(255,255,255,.6); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer .logo__mark { width: 32px; height: 32px; }
.footer .logo__word { font-size: 1.1rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a:hover { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid, .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 560px; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .modal__grid { grid-template-columns: 1fr; }
  .float-card { left: 16px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 80px 0 auto; flex-direction: column; align-items: stretch; gap: 1.3rem; padding: 2rem;
    background: #fff; box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: none; }
  .paths, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: "↓"; right: auto; left: 2.2rem; top: auto; bottom: -1.15rem; }
}
@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .hero { padding-top: 120px; }
  .hero__stats { gap: 1.6rem; flex-wrap: wrap; }
  .portfolio, .form__row, .checklist, .info-grid { grid-template-columns: 1fr; }
  .work--wide { grid-column: auto; aspect-ratio: 4/5; }
  .path__body, .form, .quote { padding: 1.75rem; }
  .modal { padding: 0; }
  .modal__dialog { max-height: 100vh; height: 100%; border-radius: 0; }
  .modal__info { padding: 1.75rem 1.5rem; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .float-card { display: none; }
}
