/* ============================================================
   TC Energy Ltd — mobile-first stylesheet
   Palette drawn from the install photos: deep forest ink,
   solar amber, warm paper. Fraunces (display) + Sora (body).
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #131a16;
  --ink-soft: #223129;
  --forest: #1d3328;
  --moss: #33523f;
  --amber: #f0a51e;
  --amber-deep: #cf8a0c;
  --paper: #f4efe4;
  --paper-deep: #eae3d1;
  --white: #fffdf8;
  --wa: #1fa855;
  --line: rgba(19, 26, 22, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 18px 50px -18px rgba(19, 26, 22, 0.35);
  --pad: clamp(1.1rem, 4vw, 2rem);
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* film grain over everything, very subtle */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.35rem, 8.5vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 6vw, 3rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--amber); }
.section-head h2 em { color: var(--amber-deep); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber-deep);
  margin-bottom: 0.7rem;
}

/* ---------- layout ---------- */
.container { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 10vw, 7rem); position: relative; }
.section-head { max-width: 620px; margin-bottom: clamp(2.2rem, 6vw, 3.5rem); }
.section-lead { margin-top: 0.9rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 0;
  font: 600 0.95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -10px rgba(31, 168, 85, 0.65); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(31, 168, 85, 0.75); }
.btn-ghost { background: rgba(255, 253, 248, 0.12); color: var(--white); border: 1px solid rgba(255, 253, 248, 0.45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 253, 248, 0.22); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--forest); transform: translateY(-2px); }
.text-link { color: var(--amber-deep); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ============ header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header.is-solid {
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding-inline: var(--pad);
  max-width: 1240px;
  margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--white); }
.site-header.is-solid .brand { color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: 0 0 auto; --ink: #131a16; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1; display: flex; flex-direction: column; gap: 2px; }
.brand-text small { font-family: var(--font-body); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.75; }

.main-nav { display: none; margin-left: auto; gap: 1.5rem; }
.main-nav a { color: inherit; text-decoration: none; font-size: 0.9rem; font-weight: 500; opacity: 0.85; transition: opacity 0.2s; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--amber); transition: width 0.25s; }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { width: 100%; }
.site-header:not(.is-solid) .main-nav { color: var(--white); }
.site-header.is-solid .main-nav { color: var(--ink); }

.header-cta { display: none; margin-left: 0.5rem; padding: 0.55rem 1.1rem; min-height: 42px; font-size: 0.88rem; }

.nav-toggle {
  margin-left: auto;
  width: 48px; height: 48px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 130;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s, background 0.3s; }
.site-header.is-solid .nav-toggle span { background: var(--ink); }
body.menu-open .nav-toggle span { background: var(--paper); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 880px) {
  .main-nav, .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* mobile menu */
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: linear-gradient(160deg, var(--ink), var(--forest));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  padding-top: calc(var(--header-h) + 1rem);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
}
.mobile-menu a:not(.btn):hover { color: var(--amber); }
.mobile-menu nav a, .mobile-menu-foot {
  opacity: 0;
  transform: translateY(18px);
}
body.menu-open .mobile-menu nav a,
body.menu-open .mobile-menu-foot {
  animation: menu-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes menu-in { to { opacity: 1; transform: none; } }
.mobile-menu-foot { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.mobile-menu-foot p { color: rgba(244, 239, 228, 0.6); font-size: 0.85rem; }
body.menu-open { overflow: hidden; }

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-media img {
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: 62% 30%;
  will-change: transform;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(200deg, rgba(19, 26, 22, 0) 30%, rgba(19, 26, 22, 0.55) 68%, rgba(19, 26, 22, 0.88) 100%),
    linear-gradient(0deg, rgba(19, 26, 22, 0.25), rgba(19, 26, 22, 0.25));
}
.hero-content {
  padding: 0 var(--pad) clamp(4.5rem, 12vw, 7rem);
  max-width: 780px;
  margin-inline: auto 0;
  width: 100%;
}
@media (min-width: 1160px) { .hero-content { margin-inline: max(calc((100vw - 1160px) / 2), 0px) auto; padding-inline: var(--pad); } }
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 13ch; text-wrap: balance; }
.hero-sub { margin-top: 1.2rem; max-width: 54ch; font-size: clamp(0.98rem, 2.6vw, 1.1rem); color: rgba(255, 253, 248, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-scroll {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 253, 248, 0.5);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 50% { transform: translateY(14px); opacity: 0.2; } }

/* ============ ticker ============ */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 0.85rem;
  border-block: 3px solid var(--amber);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  white-space: nowrap;
  animation: ticker 36s linear infinite;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.ticker-track i { color: var(--amber); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ services ============ */
.card-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(6, 1fr); }
  .card:nth-child(1) { grid-column: span 3; }
  .card:nth-child(2) { grid-column: span 3; }
  .card:nth-child(3) { grid-column: span 2; }
  .card:nth-child(4) { grid-column: span 2; }
  .card:nth-child(5) { grid-column: span 2; }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px -14px rgba(19, 26, 22, 0.25);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s;
  position: relative;
}
.card:hover { box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.93rem; color: var(--ink-soft); }
.card-body .text-link { display: inline-block; margin-top: 0.8rem; }
.card-accent { background: linear-gradient(150deg, var(--amber), #f7c04d); border: 0; display: flex; align-items: flex-end; }
.card-accent .card-body h3 { font-size: 1.45rem; }
.card-accent .card-body p { color: rgba(19, 26, 22, 0.8); }
.card-accent .text-link { color: var(--ink); }

/* ============ diaspora ============ */
.diaspora { background: var(--ink); color: var(--paper); overflow: hidden; }
.diaspora-bg { position: absolute; inset: 0; }
.diaspora-bg img { width: 100%; height: 120%; object-fit: cover; opacity: 0.4; will-change: transform; }
.diaspora::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(19, 26, 22, 0.92) 30%, rgba(19, 26, 22, 0.55) 100%);
}
.diaspora .container { position: relative; }
.diaspora-panel { max-width: 620px; }
.diaspora-panel h2 em { color: var(--amber); }
.diaspora-panel > p { margin-top: 0.4rem; color: rgba(244, 239, 228, 0.85); }
.check-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.85rem; }
.check-list li { padding-left: 2.1rem; position: relative; font-size: 0.95rem; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.12em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23131a16' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.diaspora-actions { margin-top: 1.9rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.phone-hint { font-size: 0.9rem; color: rgba(244, 239, 228, 0.7); letter-spacing: 0.04em; }

/* ============ process ============ */
.process { background: var(--paper-deep); }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.7rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.7rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============ gallery ============ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.chip {
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font: 600 0.88rem var(--font-body);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.chip:hover { border-color: var(--amber-deep); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.masonry { columns: 1; column-gap: 1.1rem; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 960px) { .masonry { columns: 3; } }
.shot {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.35s, opacity 0.4s;
  box-shadow: 0 8px 26px -14px rgba(19, 26, 22, 0.4);
}
.shot:nth-child(3n + 1) { --tilt: -0.5deg; }
.shot:nth-child(3n + 2) { --tilt: 0.4deg; }
.shot:hover { transform: rotate(0deg) translateY(-4px) scale(1.015); box-shadow: var(--shadow); z-index: 2; }
.shot img { width: 100%; }
.shot figcaption {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: 2rem 1rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(0deg, rgba(19, 26, 22, 0.75), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.shot:hover figcaption { opacity: 1; }
.shot.is-hidden { display: none; }

/* ============ about ============ */
.about { background: var(--white); }
.about-grid { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transform-style: preserve-3d;
}
.about-photo img { width: 100%; }
.about-photo figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper);
}
.about-copy > p { margin-top: 0.9rem; color: var(--ink-soft); }
.about-points { list-style: none; margin-top: 1.3rem; display: grid; gap: 0.5rem; font-size: 0.93rem; }
.about-points li { padding-left: 1.4rem; position: relative; }
.about-points li::before { content: "—"; position: absolute; left: 0; color: var(--amber-deep); }
.about-copy .btn { margin-top: 1.7rem; }

/* ============ community / charity ============ */
.community { background: var(--white); padding-block: 0 clamp(4rem, 10vw, 7rem); }
.community-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 5vw, 2.6rem);
  position: relative;
  overflow: hidden;
}
.community-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #C8102E 0 33%, #002868 33% 66%, var(--amber) 66%);
}
.community-logo { width: 118px; height: 113px; flex: 0 0 auto; filter: drop-shadow(0 6px 14px rgba(19, 26, 22, 0.18)); }
.community-copy h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.community-copy h2 em { color: #C8102E; }
.community-copy > p:not(.eyebrow) { margin-top: 0.7rem; max-width: 60ch; color: var(--ink-soft); font-size: 0.95rem; }
.community-copy .btn { margin-top: 1.3rem; }
@media (min-width: 720px) {
  .community-card { flex-direction: row; gap: 2.2rem; align-items: center; }
  .community-logo { width: 150px; height: 144px; }
}

/* ============ contact ============ */
.contact {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.contact-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 1rem; }
.contact-list { list-style: none; display: grid; gap: 0.35rem; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  margin-inline: -0.6rem;
  min-height: 46px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
  overflow-wrap: anywhere;
}
.contact-list a:hover { background: var(--paper); }
.contact-list small { display: block; font-size: 0.72rem; color: var(--ink-soft); font-weight: 400; }
.c-ico { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background-position: center; background-repeat: no-repeat; background-size: 55%; }
.c-ico.wa { background-color: rgba(31, 168, 85, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231fa855' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.7 14.2c-.2.7-1.3 1.3-1.9 1.4-.5.1-1.1.2-3.5-.7-3-1.2-4.9-4.2-5-4.4-.2-.2-1.2-1.6-1.2-3.1s.8-2.2 1-2.5c.3-.3.6-.4.8-.4h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .6l-.4.6-.5.6c-.2.2-.3.4-.1.7.2.3.9 1.4 1.9 2.3 1.3 1.2 2.4 1.5 2.7 1.7.3.2.5.1.7-.1l1.1-1.3c.2-.3.4-.2.7-.1l2.1 1c.3.2.5.3.6.4 0 .1 0 .5-.1.7Z'/%3E%3C/svg%3E"); }
.c-ico.ph { background-color: rgba(240, 165, 30, 0.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23cf8a0c' d='M6.6 10.8a15.6 15.6 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.8 21 3 13.2 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2Z'/%3E%3C/svg%3E"); }
.c-ico.em { background-color: rgba(19, 26, 22, 0.08); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23223129' d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2Zm8 7 8-5H4l8 5Zm0 2.2L4 8.4V18h16V8.4l-8 4.8Z'/%3E%3C/svg%3E"); }
.contact-card-visit p { font-size: 0.95rem; color: var(--ink-soft); }
.visit-note { margin-top: 1rem; font-size: 0.8rem !important; font-style: italic; opacity: 0.75; }

/* ============ footer ============ */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 2.8rem 5.5rem; }
.footer-inner { display: grid; gap: 1.6rem; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-nav { justify-self: center; }
  .footer-legal { text-align: right; }
}
.brand-footer { color: var(--paper); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-nav a { color: rgba(244, 239, 228, 0.75); text-decoration: none; font-size: 0.88rem; }
.footer-nav a:hover { color: var(--amber); }
.footer-legal { font-size: 0.8rem; color: rgba(244, 239, 228, 0.55); line-height: 1.7; }
.probono {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(244, 239, 228, 0.65);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.probono img { border-radius: 8px; }
.probono b { color: rgba(244, 239, 228, 0.9); }
.probono:hover { color: var(--amber); }
.probono:hover b { color: var(--amber); }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: auto 1fr auto auto; }
  .probono { justify-self: end; }
}

/* ============ floating whatsapp ============ */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(31, 168, 85, 0.8);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.1) rotate(6deg); }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ============ lightbox ============ */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(19, 26, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox figure { max-width: min(92vw, 1100px); max-height: 88vh; display: flex; flex-direction: column; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: rgba(244, 239, 228, 0.8); font-size: 0.85rem; text-align: center; padding-top: 0.7rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(244, 239, 228, 0.1);
  color: var(--paper);
  border: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(244, 239, 228, 0.25); }
.lb-close { top: max(0.9rem, env(safe-area-inset-top)); right: 0.9rem; }
.lb-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* ============ reveal animations ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

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