/* =========================================================
   Merith Decks — Especialista em Decks e Pergolados
   ========================================================= */

:root {
  /* palette */
  --cream: #F4EEE4;
  --cream-2: #EAE1D3;
  --ink: #1B1D1B;
  --ink-soft: #55574F;
  --charcoal: #141715;
  --charcoal-2: #1D211E;
  --walnut: #3B2417;
  --wood: #A4622E;
  --wood-light: #D49A5E;

  /* live theme (tweened by JS) */
  --page-bg: var(--cream);
  --page-fg: var(--ink);
  --page-muted: rgba(27, 29, 27, .62);
  --page-line: rgba(27, 29, 27, .09);
  --accent: var(--wood);

  /* type */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  /* layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 84px;
  --radius: 4px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.01em; }

::selection { background: var(--wood); color: var(--cream); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- shared atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--page-muted);
}
.lead {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--page-muted);
  margin: 0;
  max-width: 34ch;
}
.section-title {
  margin: 0;
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.section-title em { color: var(--accent); }

.asterisk {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(20, 23, 21, .82);
  color: var(--cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* underline link */
.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 10px 0 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  transition: transform .6s var(--ease-out), background .5s;
}
.btn__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__icon { transform: rotate(-45deg); }

.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid::before { background: var(--wood); }
.btn--solid .btn__icon { background: var(--cream); color: var(--ink); }

.btn--ghost { padding: 0 28px; box-shadow: inset 0 0 0 1px rgba(27,29,27,.22); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }

.btn--light { background: var(--cream); color: var(--ink); }
.btn--light::before { background: var(--wood-light); }
.btn--light .btn__icon { background: var(--ink); color: var(--cream); }

/* hand-drawn scribbles */
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- grid lines (e2-style) ---------- */
.gridlines {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.gridlines span { border-left: 1px solid var(--page-line); }
.gridlines span:last-child { border-right: 1px solid var(--page-line); }

main, .footer, .header { position: relative; z-index: 2; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.loader__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0 var(--gutter);
  gap: clamp(16px, 4vw, 64px);
}
.loader__word {
  overflow: hidden;
  font-size: clamp(48px, 9vw, 150px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  padding-bottom: .08em;
}
.loader__word > span { display: inline-block; }
.loader__word--l { justify-self: start; }
.loader__word--r { justify-self: end; font-family: var(--serif); font-style: italic; font-weight: 300; }
.loader__frame {
  position: relative;
  width: clamp(130px, 17vw, 260px);
  aspect-ratio: 762 / 1098;
  overflow: hidden;
  background: var(--cream-2);
}
.loader__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.loader__frame img:first-child { opacity: 1; }
.loader__meta {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 32px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(27, 29, 27, .55);
}
.loader__count { font-variant-numeric: tabular-nums; }

html:not(.js) .loader { display: none; }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 90;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--cream);
  display: grid; place-items: center;
  pointer-events: none;
  transform: scale(0);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--page-fg);
  background: var(--page-bg);
  background: color-mix(in srgb, var(--page-bg) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: transform .7s var(--ease-out), color .5s, background-color .5s;
}
.header::after {
  content: "";
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .14;
}
.header.is-hidden { transform: translateY(-100%); }
.header.is-menu { color: var(--cream); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header.is-menu::after { opacity: .2; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand__name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__name em { font-weight: 400; }

.header__nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; transition: opacity .4s; }
.header.is-menu .header__nav { opacity: 0; pointer-events: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.menu-btn__text {
  display: grid;
  height: 1.3em;
  overflow: hidden;
  line-height: 1.3;
}
.menu-btn__text span { grid-area: 1 / 1; transition: transform .6s var(--ease-out); }
.menu-btn__text span:last-child { transform: translateY(110%); }
.menu-btn[aria-expanded="true"] .menu-btn__text span:first-child { transform: translateY(-110%); }
.menu-btn[aria-expanded="true"] .menu-btn__text span:last-child { transform: translateY(0); }
.menu-btn .asterisk { width: 22px; height: 22px; transition: transform .8s var(--ease-out); }
.menu-btn:hover .asterisk { transform: rotate(90deg); }
.menu-btn[aria-expanded="true"] .asterisk { transform: rotate(135deg); }

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu {
  position: fixed; inset: 0;
  z-index: 55;
  background: var(--charcoal);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  overflow-y: auto;
}
.menu__inner {
  min-height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 6vh) var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(244, 238, 228, .1);
  overflow: hidden;
}
.menu__row { display: flex; align-items: baseline; gap: 24px; will-change: transform; }
.menu__num {
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(244, 238, 228, .45);
  width: 2.2em;
}
.menu__txt {
  display: inline-block;
  font-size: clamp(38px, 6.4vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  transition: transform .7s var(--ease-out), color .5s;
}
.menu__nav a:hover .menu__txt { transform: translateX(24px); color: var(--wood-light); font-family: var(--serif); font-style: italic; font-weight: 300; }
.menu__aside { display: grid; gap: 32px; font-size: 16px; line-height: 1.7; color: rgba(244, 238, 228, .82); }
.menu__aside p { margin: 0; }
.menu__aside .label { color: rgba(244, 238, 228, .45); margin-bottom: 10px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) 0 clamp(48px, 8vh, 96px);
  display: flex;
  align-items: stretch;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  row-gap: 32px;
}
.hero__eyebrow { grid-column: 1 / 9; grid-row: 1; margin: 0; align-self: start; }
.hero__title {
  grid-column: 1 / 9;
  grid-row: 2;
  align-self: center;
  margin: 0;
  font-size: clamp(48px, min(8.4vw, 11vh), 136px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.hero__title .hl {
  position: relative;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--accent);
  padding: 0 .08em;
}
.scribble--circle { left: -8%; top: -6%; width: 116%; height: 118%; }

.hero__media {
  grid-column: 9 / 13;
  grid-row: 1 / 4;
  align-self: start;
  position: relative;
}
.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 762 / 1098;
  max-height: calc(100svh - var(--header-h) - 150px);
  overflow: hidden;
  background: var(--cream-2);
}
.hero__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.hero__frame img.is-active { opacity: 1; }
.hero__media-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--page-muted);
}
.hero__media-meta .chip { background: transparent; color: var(--page-muted); padding: 0; height: auto; backdrop-filter: none; }
.hero__media-count b { color: var(--page-fg); font-weight: 600; }

.hero__aside {
  grid-column: 1 / 7;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.5vh, 32px);
}
.hero__aside .lead { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  grid-column: 7 / 9;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--page-muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  position: relative;
  width: 1px; height: 64px;
  background: var(--page-line);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--page-fg);
  animation: scrollLine 2.2s var(--ease-io) infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* split-line helpers */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > .line__in { display: block; will-change: transform; }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  position: relative;
  padding: clamp(120px, 22vh, 220px) 0 clamp(100px, 16vh, 170px);
  overflow: hidden;
}
.manifesto__inner { position: relative; z-index: 2; }
.manifesto__text {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(38px, 6vw, 96px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.manifesto__text .word { display: inline-block; opacity: .14; }

.manifesto__big {
  position: relative;
  display: inline-block;
  margin: clamp(48px, 10vh, 120px) 0 0;
  font-weight: 300;
  line-height: .9;
}
.manifesto__small {
  display: block;
  font-size: clamp(22px, 2.4vw, 34px);
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 238, 228, .6);
  margin-bottom: 10px;
  padding-left: .2em;
}
.scatter {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(88px, 19vw, 300px);
  letter-spacing: -0.04em;
  color: var(--cream);
  white-space: nowrap;
}
.scatter .char { display: inline-block; will-change: transform; }
.scribble--line { left: 2%; bottom: -4%; width: 96%; height: 14%; }
.scribble--line path { stroke: var(--wood-light); stroke-width: 4; }

.manifesto__sign {
  margin: 56px 0 0;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244, 238, 228, .55);
}

.manifesto__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.float img { width: 100%; height: 100%; object-fit: cover; }
.float--1 { width: clamp(140px, 15vw, 230px); aspect-ratio: 3 / 4; right: 8%;  top: 12%;  rotate: 5deg; }
.float--2 { width: clamp(120px, 12vw, 190px); aspect-ratio: 3 / 4; right: 30%; top: 58%; rotate: -6deg; }
.float--3 { width: clamp(150px, 16vw, 250px); aspect-ratio: 3 / 4; right: 4%;  top: 66%; rotate: -3deg; }
.float--4 { width: clamp(110px, 10vw, 170px); aspect-ratio: 3 / 4; left: 54%; top: 6%;  rotate: 7deg; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--page-line);
  border-bottom: 1px solid var(--page-line);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  font-size: clamp(42px, 6vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.marquee__track .serif { font-family: var(--serif); font-style: italic; font-weight: 300; }
.marquee__track i { font-style: normal; font-size: .5em; color: var(--accent); }

/* =========================================================
   SPECIALTIES (stacked cards)
   ========================================================= */
.specialties { padding: clamp(110px, 18vh, 180px) 0 clamp(80px, 12vh, 140px); }
.section-head { margin-bottom: clamp(56px, 9vh, 96px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.stack { display: grid; gap: 32px; }
.stack__card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  min-height: min(76vh, 720px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--cream-2);
  color: var(--ink);
  border-radius: var(--radius);
  transform-origin: 50% 0;
  overflow: hidden;
}
.stack__card--dark { background: var(--charcoal-2); color: var(--cream); }
.stack__text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.stack__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--wood);
}
.stack__card--dark .stack__num { color: var(--wood-light); }
.stack__title {
  margin: 0;
  font-size: clamp(56px, 8vw, 128px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: .9;
}
.stack__text p { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); opacity: .78; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  opacity: .72;
}
.stack__media { position: relative; min-height: 360px; }
.stack__img { position: absolute; overflow: hidden; }
.stack__img img { width: 100%; height: 118%; object-fit: cover; }
.stack__img--a { left: 0; top: 0; width: 64%; height: 92%; }
.stack__img--b { right: 0; bottom: 0; width: 46%; height: 62%; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }

/* =========================================================
   PROJECTS (pinned horizontal)
   ========================================================= */
.projects { position: relative; color: var(--cream); }
.projects__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4.5vh, 48px);
  padding: calc(var(--header-h) + 8px) 0 32px;
  overflow: hidden;
}
.projects .section-title { font-size: clamp(36px, 5vw, 80px); }
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.projects .eyebrow { color: rgba(244, 238, 228, .55); }
.projects .section-title em { color: var(--wood-light); }
.projects__progress { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 180px; }
.projects__counter { font-size: 14px; letter-spacing: .1em; color: rgba(244, 238, 228, .55); font-variant-numeric: tabular-nums; }
.projects__counter b { color: var(--cream); font-weight: 600; }
.projects__bar { width: 180px; height: 1px; background: rgba(244, 238, 228, .18); position: relative; overflow: hidden; }
.projects__bar i { position: absolute; inset: 0; background: var(--wood-light); transform-origin: left; transform: scaleX(0); }

.projects__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 48px);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.project { width: clamp(170px, min(25vw, calc((100vh - 380px) * 0.694)), 400px); flex: none; }
.project:nth-child(even) { margin-top: clamp(24px, 6vh, 72px); }
.project__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 762 / 1098;
  overflow: hidden;
  background: var(--charcoal-2);
  cursor: none;
}
@media (hover: none), (pointer: coarse) { .project__media { cursor: pointer; } }
.project__media img {
  position: absolute; inset: -6% -12%;
  width: 124%; height: 112%;
  max-width: none;
  object-fit: cover;
  translate: var(--px, 0%) 0;
  transition: scale 1.1s var(--ease-out), filter .8s;
}
.project__media:hover img { scale: 1.05; }
.project__media .chip { position: absolute; top: 50%; }
.chip--l { left: 0; }
.chip--r { right: 0; }
.project__cap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.project__cap .asterisk { margin-top: .2em; color: var(--wood-light); }
.project--end {
  align-self: center;
  margin-top: 0 !important;
  width: clamp(280px, 30vw, 460px);
  padding-right: var(--gutter);
}
.project__end-text {
  margin: 0 0 32px;
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.project__end-text em { color: var(--wood-light); }

/* =========================================================
   INFO
   ========================================================= */
.info { padding: clamp(110px, 18vh, 180px) 0 clamp(60px, 10vh, 120px); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--cream-2);
  font-size: 15px;
  font-weight: 500;
}
.status__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #9a9a92; }
.status.is-open .status__dot { background: #3E8E5A; }
.status.is-open .status__dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 1.8s ease-out infinite;
}
.status.is-closed .status__dot { background: #B5533C; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.info__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 24px;
}
.info__card {
  padding: clamp(24px, 2.6vw, 40px);
  border: 1px solid rgba(27, 29, 27, .14);
  border-radius: var(--radius);
  background: rgba(244, 238, 228, .55);
  display: flex;
  flex-direction: column;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(27, 29, 27, .1);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--ink-soft); }
.hours li.is-today { font-weight: 600; color: var(--wood); }
.hours li.is-today span:last-child { color: var(--wood); }
.hours li.is-today span:first-child::after { content: " · hoje"; font-weight: 400; font-family: var(--serif); font-style: italic; }

.info__card address { font-size: 18px; line-height: 1.6; }
.map {
  position: relative;
  margin: 24px 0;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-2);
}
.map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) sepia(.25) contrast(.95);
  transition: filter .6s;
}
.map:hover iframe { filter: none; }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  align-self: flex-start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .4s, gap .4s var(--ease-out);
}
.arrow-link:hover { color: var(--wood); gap: 14px; }

.pay { display: grid; gap: 12px; }
.pay li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 2px;
  background: var(--cream);
  border: 1px solid rgba(27, 29, 27, .08);
  font-size: 16px;
  font-weight: 500;
  transition: translate .5s var(--ease-out), background .4s;
}
.pay li:hover { translate: 6px 0; background: #fff9f0; }
.pay svg { width: 24px; height: 24px; fill: none; stroke: var(--wood); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: clamp(80px, 14vh, 160px) 0 clamp(110px, 18vh, 200px); }
.contact__title {
  margin: 0 0 clamp(56px, 9vh, 100px);
  font-size: clamp(48px, 8.6vw, 140px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.05em;
  max-width: 13ch;
}
.contact__title em { color: var(--accent); }
.contact__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.contact__cta {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(170px, 17vw, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.contact__cta::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--wood);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .7s var(--ease-out);
}
.contact__cta:hover::before { transform: scale(1); }
.contact__cta-inner { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 18px; font-weight: 500; line-height: 1.2; }
.contact__cta svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

.contact__list li { border-top: 1px solid rgba(27, 29, 27, .14); }
.contact__list li:last-child { border-bottom: 1px solid rgba(27, 29, 27, .14); }
.contact__list a {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s, padding .6s var(--ease-out);
}
.contact__list a::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.contact__list a:hover { color: var(--cream); padding-left: 24px; padding-right: 24px; }
.contact__list a:hover::before { transform: scaleY(1); }
.contact__k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.contact__v { font-size: clamp(20px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact__arr { font-size: 24px; transition: transform .6s var(--ease-out); }
.contact__list a:hover .contact__arr { transform: rotate(45deg); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  color: var(--cream);
  padding-top: clamp(64px, 10vh, 110px);
  overflow: hidden;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer__clock p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.footer__clock b { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.footer__clock .footer__status { margin-top: 8px; padding-left: 26px; opacity: .6; letter-spacing: .06em; text-transform: none; }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 18px clamp(32px, 6vw, 96px); }
.footer__nav div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__nav a { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }

.footer__giant {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-top: clamp(48px, 10vh, 120px);
  font-size: clamp(90px, 23vw, 380px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: .78;
  color: var(--cream);
}
.footer__giant span { display: inline-block; will-change: transform; }
.footer__giant span:nth-child(2n) { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--wood-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
  margin-top: 28px;
  border-top: 1px solid rgba(244, 238, 228, .14);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 50;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wood);
  color: var(--cream);
  box-shadow: 0 18px 40px -12px rgba(59, 36, 23, .55);
  transform: scale(0);
  transition: background .4s;
}
.wa-float:hover { background: var(--ink); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
html:not(.js) .wa-float { transform: none; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 72px var(--gutter) 40px;
  background: rgba(14, 16, 15, .94);
  color: var(--cream);
  visibility: hidden;
  opacity: 0;
}
.lightbox__figure { display: grid; justify-items: center; gap: 16px; height: 100%; min-height: 0; }
.lightbox__figure img { max-height: calc(100vh - 180px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { font-size: 16px; opacity: .8; text-align: center; }
.lightbox__close { position: absolute; top: 24px; right: var(--gutter); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.lightbox__nav {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(244, 238, 228, .25);
  font-size: 20px;
  transition: background .4s, color .4s;
}
.lightbox__nav:hover { background: var(--cream); color: var(--ink); }

/* =========================================================
   JS initial states (avoid flash before animation)
   ========================================================= */
.js [data-reveal] { opacity: 0; }
.js .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .float--2, .float--4 { display: none; }
}

@media (max-width: 1100px) {
  .header__nav { display: none; }
  .info__grid { grid-template-columns: 1fr 1fr; }
  .info__card--map { grid-column: 1 / -1; grid-row: 1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 32px; }
  .hero__eyebrow, .hero__title, .hero__media, .hero__aside { grid-column: 1; grid-row: auto; }
  .hero__aside { order: 3; }
  .hero__media { order: 4; width: 100%; }
  .hero__frame { aspect-ratio: 4 / 4.6; }
  .hero__scroll { display: none; }
  .lead { max-width: none; }

  .menu__inner { grid-template-columns: 1fr; align-content: start; }

  .stack__card { grid-template-columns: 1fr; min-height: 0; position: relative; top: auto; }
  .stack__media { min-height: 0; aspect-ratio: 4 / 3.4; }

  .manifesto { min-height: auto; }
  .manifesto__floats { display: none; }

  .projects__pin { min-height: 0; padding-top: clamp(90px, 14vh, 140px); padding-bottom: 80px; }
  .projects__head { flex-direction: column; align-items: flex-start; }
  .projects__progress { display: none; }
  .projects__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .projects__track::-webkit-scrollbar { display: none; }
  .project { width: 76vw; scroll-snap-align: center; }
  .project:nth-child(even) { margin-top: 0; }
  .project__media { max-height: none; }
  .project--end { width: 80vw; }

  .contact__row { grid-template-columns: 1fr; }
  .contact__list a { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 4px; }
  .contact__k { grid-column: 1 / -1; }

  .footer__nav { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__name { font-size: 17px; }
  .info__grid { grid-template-columns: 1fr; }
  .info__card--map { grid-row: auto; }
  .btn { height: 54px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }
  .loader__row { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .loader__word--l, .loader__word--r { justify-self: center; }
  .gridlines { grid-template-columns: repeat(4, 1fr); }
  .gridlines span:nth-child(n+5) { display: none; }
  .gridlines span:nth-child(4) { border-right: 1px solid var(--page-line); }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 64px 16px 24px; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: start; }
  .lightbox__nav--next { grid-row: 2; justify-self: end; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .loader { display: none; }
  .js [data-reveal] { opacity: 1; }
  .js .scribble path { stroke-dashoffset: 0; }
  .manifesto__text .word { opacity: 1; }
  .wa-float { transform: none; }
}
