/* ==========================================================================
   DICE / Diana Centurion | design system
   Palette: navy #16273a, off-white #fbf3e2, sand #e4d4b4, terracotta #bf5c37, cyan accent
   Type: Jost (sans) + Cormorant Garamond (serif)
   ========================================================================== */

:root {
  --navy: #16273a;
  --navy-dark: #13202e;
  --cream: #fbf3e2;
  --sand: #e4d4b4;
  --sand-2: #f3e8d2;
  --sand-line: #e0cfa9;
  --sand-line-2: #dcc9a3;
  --terracotta: #bf5c37;
  --terracotta-light: #d5814f;
  --cyan: #3f97a6;
  --cyan-light: #6cbccb;
  --text: #21303f;
  --text-muted: #4c5666;
  --text-soft: #8a7d63;
  --text-soft-2: #6b6450;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--terracotta); color: var(--cream); }
input, textarea { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: 'Cormorant Garamond', serif; }

/* ---------- keyframes ---------- */
@keyframes archDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes archDrift2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(22px); } }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- scroll reveal (GSAP handles animation) ---------- */
[data-reveal] { opacity: 0; }
[data-reveal].is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--terracotta); opacity: 0; transition: opacity .2s, background .25s; }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(191, 92, 55, 0.5); opacity: 0;
  transition: opacity .2s, width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s;
}
.cursor-dot.is-active, .cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hovering { width: 58px; height: 58px; background: rgba(63, 151, 166, 0.12); border-color: var(--cyan); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor input, body.has-custom-cursor textarea {
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 70;
  background: linear-gradient(90deg, var(--terracotta), var(--cyan-light));
  transition: width .12s linear;
}

/* ---------- layout helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; }
.wrap-narrow { max-width: 1120px; margin: 0 auto; }
.wrap-prose { max-width: 900px; margin: 0 auto; }
.wrap-copy { max-width: 760px; margin: 0 auto; }
.section { padding: clamp(70px, 8vw, 120px) clamp(20px, 5vw, 64px); }
.section-tight { padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(70px, 8vw, 120px); }
.bg-navy { background: var(--navy); color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-sand2 { background: var(--sand-2); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta-light);
  margin-bottom: 22px;
}
.eyebrow-dark { color: var(--terracotta); }
.eyebrow-rule { width: 34px; height: 1px; background: var(--terracotta); flex: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: rgba(19, 32, 46, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(251, 243, 226, 0.10);
}
.site-header .brand { display: flex; align-items: center; gap: 12px; }
.site-header .brand img { height: 26px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-nav .nav-link {
  position: relative; color: var(--cream); font-size: 12.5px; letter-spacing: 2.4px;
  text-transform: uppercase; padding: 6px 0; opacity: 0.82; transition: opacity .25s;
}
.site-nav .nav-link:hover { opacity: 1; }
.site-nav .nav-link.active { opacity: 1; }
.site-nav .nav-link::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1.5px;
  background: var(--cyan-light); transition: left .3s cubic-bezier(.2,.7,.2,1), right .3s cubic-bezier(.2,.7,.2,1), background .25s;
}
.site-nav .nav-link:hover::after { left: 0; right: 0; }
.site-nav .nav-link.active::after { left: 0; right: 0; background: var(--terracotta); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 6px; z-index: 70;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--cream); transition: transform .25s, opacity .25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 32px; border-radius: 999px; transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, box-shadow .35s;
  will-change: transform;
}
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-light); box-shadow: 0 14px 30px -12px rgba(191,92,55,0.55); }
.btn-outline { border: 1px solid rgba(251, 243, 226, 0.4); color: var(--cream); backdrop-filter: blur(6px); }
.btn-outline:hover { background: rgba(251, 243, 226, 0.1); border-color: var(--cyan-light); }
.btn-dark { background: var(--navy); color: var(--cream); padding: 17px 38px; }
.btn-dark:hover { box-shadow: 0 14px 30px -12px rgba(22,39,58,0.55); }

/* shine sweep */
.btn::before, .chip-btn::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left .7s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.btn:hover::before, .chip-btn:hover::before { left: 130%; }
@media (prefers-reduced-motion: reduce) {
  .btn, .chip-btn { transition: background .3s, border-color .3s; }
  .btn::before, .chip-btn::before { display: none; }
}

/* click ripple */
.ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55);
  transform: scale(0); animation: rippleAnim .6s ease-out forwards; pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(3.2); opacity: 0; } }
.btn-link {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy);
  border-bottom: 1px solid var(--terracotta); padding-bottom: 4px; display: inline-block;
}
.btn-link:hover { color: var(--terracotta); }
.btn-link-light {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--cream);
  border-bottom: 1px solid var(--terracotta-light); padding-bottom: 4px; display: inline-block;
}
.btn-link-light:hover { color: var(--terracotta-light); }

/* ---------- arch decorations ---------- */
.arch-bg { position: absolute; pointer-events: none; }
.arch-drift { animation: archDrift 16s ease-in-out infinite; }
.arch-drift2 { animation: archDrift2 20s ease-in-out infinite; }
.arch-spin { animation: spinSlow 90s linear infinite; }

/* ---------- home hero ---------- */
.hero-inicio {
  position: relative; background: var(--navy); color: var(--cream); overflow: hidden;
  padding: 148px clamp(20px, 5vw, 64px) clamp(60px, 7vw, 96px);
  min-height: 100vh; display: flex; align-items: center;
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; }

/* ---------- hero split layout ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 108px);
  align-items: center;
  width: 100%;
}
.hero-split-text { text-align: left; }
.hero-split-text h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(52px, 6.8vw, 112px); line-height: 0.92; letter-spacing: -1px; margin: 0 0 24px;
}
.hero-split-text .lede {
  max-width: 460px; margin: 0 0 38px; font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72; color: rgba(251, 243, 226, 0.72); font-weight: 300;
}
.hero-split-text .cta-row { display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 4; }
.hero-split-visual { display: flex; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: clamp(44px, 8vw, 64px); }
  .hero-split-text { text-align: center; }
  .hero-split-text .lede { margin-left: auto; margin-right: auto; }
  .hero-split-text .cta-row { justify-content: center; }
}

/* legacy centered hero (kept for compatibility) */
.hero-center { text-align: center; max-width: 1080px; margin: 0 auto; }
.hero-center h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(52px, 9vw, 132px); line-height: 0.94; letter-spacing: -1px; margin: 0 0 20px;
}
.hero-center .lede {
  max-width: 560px; margin: 0 auto 40px; font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7; color: rgba(251, 243, 226, 0.72); font-weight: 300;
}
.hero-center .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 52px; position: relative; z-index: 4; }
.hero-trail-hint {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(251, 243, 226, 0.32);
  margin: 0;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.6s;
}
.hero-trail-hint.is-hidden { opacity: 0; }
.cursor-trail-img {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  border-radius: 13px;
  overflow: hidden;
  will-change: transform, opacity;
  box-shadow: 0 16px 48px rgba(22,39,58,0.45), 0 4px 14px rgba(22,39,58,0.22);
}
.cursor-trail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (hover: none), (pointer: coarse) {
  .hero-trail-hint { display: none; }
}
.hero-triptych { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; align-items: end; }
.hero-triptych .tri-a, .hero-triptych .tri-c { aspect-ratio: 3/4; border-radius: 160px 160px 12px 12px; overflow: hidden; opacity: 0.9; }
.hero-triptych .tri-b { aspect-ratio: 4/5; border-radius: 200px 200px 12px 12px; overflow: hidden; }
.hero-triptych img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); will-change: transform;
  animation: kenBurns 16s ease-in-out infinite alternate;
}
.hero-triptych .tri-b img { animation-delay: -3s; }
.hero-triptych .tri-c img { animation-delay: -7s; }
@keyframes kenBurns { from { transform: scale(1.16) translateY(0); } to { transform: scale(1.24) translateY(-2%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-triptych img { animation: none; transform: scale(1.05); }
}
.italic-accent { font-style: italic; color: var(--terracotta-light); }

/* ---------- generic page hero (navy) ---------- */
.page-hero {
  background: var(--navy); color: var(--cream);
  padding: 150px clamp(20px, 5vw, 64px) clamp(50px, 6vw, 80px);
  position: relative; overflow: hidden;
}
.page-hero .wrap-narrow, .page-hero .wrap { position: relative; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(46px, 7vw, 104px); line-height: 0.96; margin: 0 0 24px;
}
.page-hero .lede {
  max-width: 560px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7;
  color: rgba(251, 243, 226, 0.72); font-weight: 300; margin: 0;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(251, 243, 226, 0.7); margin-bottom: 44px; transition: color .25s;
}
.back-link:hover { color: var(--cream); }

/* ---------- section headings ---------- */
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1; margin: 0; color: var(--navy);
}
.section-title-light { color: var(--cream); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 52px;
}

/* ---------- project grid & cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 26px); }
.project-card {
  display: block; text-align: left; background: var(--sand-2); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--sand); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
  width: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(22, 39, 58, 0.5); }
.project-card .cover { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--sand); }
.project-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .cover img { transform: scale(1.06); }
.cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #e7d8b8 0 14px, #e1d0ac 14px 28px);
}
.cover-placeholder svg { width: 58%; opacity: 0.5; }
.cover-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px;
  background: linear-gradient(to top, rgba(22, 39, 58, 0.55), transparent 55%);
  opacity: 0; transition: opacity .4s;
  color: var(--cream); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.project-card:hover .cover-overlay { opacity: 1; }
.project-card .body { padding: 20px 22px 24px; }
.project-card .cat {
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px;
}
.project-card .name {
  font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 600; color: var(--navy); line-height: 1.05;
}
.project-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.project-card .tags span {
  font-size: 10.5px; letter-spacing: 0.5px; color: var(--text-soft); border: 1px solid var(--sand-line-2);
  border-radius: 999px; padding: 4px 11px;
}

/* ---------- services (o que faço) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 22px); }
.service-block {
  background: rgba(251, 243, 226, 0.05); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(251, 243, 226, 0.14); border-radius: 18px; padding: 26px 22px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), background .4s, border-color .4s, box-shadow .45s;
}
.service-block:hover {
  transform: translateY(-6px); background: rgba(251, 243, 226, 0.09);
  border-color: rgba(63, 151, 166, 0.4); box-shadow: 0 26px 50px -30px rgba(0,0,0,0.45);
}
.service-block .num { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--terracotta-light); margin-bottom: 18px; }
.service-block h3 { font-size: 18px; font-weight: 500; letter-spacing: 0.3px; margin: 0 0 12px; }
.service-block p { font-size: 14px; line-height: 1.65; color: rgba(251, 243, 226, 0.66); font-weight: 300; margin: 0; }

/* ---------- filters (projetos page) ---------- */
.filters-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; padding-bottom: 30px;
  border-bottom: 1px solid var(--sand);
}
.filter-pill {
  position: relative; overflow: hidden; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 18px;
  border-radius: 999px; transition: all .35s cubic-bezier(.2,.7,.2,1); border: 1px solid transparent;
  color: var(--text-soft-2);
}
.filter-pill.active { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.filter-pill:not(.active) { border-color: var(--sand-line-2); backdrop-filter: blur(4px); }
.filter-pill:not(.active):hover { border-color: var(--cyan); color: var(--navy); background: rgba(63,151,166,0.08); }
.filter-pill::before {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg); transition: left .6s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.filter-pill:hover::before { left: 130%; }

/* ---------- mini sobre / two-col image blocks ---------- */
.split-2 { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split-medallion {
  aspect-ratio: 1; border-radius: 999px 999px 18px 18px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.split-medallion svg { width: 60%; }
.quote-serif {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 3.1vw, 38px); line-height: 1.28;
  color: var(--navy); margin: 0 0 24px; font-weight: 500;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--terracotta); color: var(--cream);
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 64px);
  position: relative; overflow: hidden; text-align: center;
}
.cta-banner h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(36px, 5.6vw, 74px);
  line-height: 1.02; margin: 0 0 26px;
}
.cta-banner p { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: rgba(251, 243, 226, 0.82); font-weight: 300; margin: 0 0 38px; }

/* ---------- case page ---------- */
.case-hero .cat { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--terracotta-light); margin-bottom: 20px; }
.case-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(50px, 8vw, 120px); line-height: 0.94; margin: 0 0 22px; }
.case-hero .subtitle {
  max-width: 640px; font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.4; color: rgba(251, 243, 226, 0.82); margin: 0;
}
.case-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); }
.case-label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 16px; }
.case-label-light { color: var(--terracotta-light); }
.case-body-text { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; color: #34404e; margin: 0; font-weight: 300; }
.case-solution { max-width: 900px; margin: 0 auto; text-align: center; }
.case-solution p {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.3; color: var(--navy); margin: 0;
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--sand); display: block;
  border: 1px solid var(--sand); transition: transform .5s cubic-bezier(.2,.7,.2,1); width: 100%; text-align: left;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #e7d8b8 0 16px, #e0cfa9 16px 32px);
}
.gallery-placeholder span { font-family: monospace; font-size: 12px; letter-spacing: 1px; color: var(--navy); opacity: 0.65; }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(22, 39, 58, 0.5), transparent 50%);
  opacity: 0; transition: opacity .4s; color: var(--cream); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.case-deliverables { display: flex; flex-wrap: wrap; gap: 10px; }
.case-deliverables span {
  font-size: 13.5px; letter-spacing: 0.4px; color: var(--cream); border: 1px solid rgba(251, 243, 226, 0.25);
  border-radius: 999px; padding: 9px 18px;
}
.case-result { border-left: 1px solid rgba(251, 243, 226, 0.16); padding-left: clamp(20px, 3vw, 40px); }
.case-result p { font-size: 15.5px; line-height: 1.7; color: rgba(251, 243, 226, 0.78); font-weight: 300; margin: 0 0 20px; }
.case-result .stat { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: var(--terracotta-light); }
.next-case {
  position: relative; overflow: hidden; display: block; width: 100%; text-align: left;
  background: var(--terracotta); color: var(--cream);
  padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px); transition: background .4s;
}
.next-case:hover { background: var(--terracotta-light); }
.next-case::before {
  content: ''; position: absolute; top: 0; left: -30%; width: 22%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg); transition: left .8s cubic-bezier(.2,.7,.2,1); pointer-events: none;
}
.next-case:hover::before { left: 120%; }
.next-case .inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.next-case .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.next-case:hover .arrow { transform: translateX(10px); }
.next-case .label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(251, 243, 226, 0.7); margin-bottom: 12px; }
.next-case .title { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.next-case .arrow { font-size: clamp(30px, 4vw, 52px); }

/* ---------- timeline (experiência) ---------- */
.timeline { position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1.5px; background: var(--sand-line);
}
.timeline-item { position: relative; padding-left: 44px; padding-bottom: 44px; }
.timeline-item .dot {
  position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--terracotta); border: 3px solid var(--cream); box-shadow: 0 0 0 1.5px var(--sand-line);
}
.timeline-item .period { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.timeline-item .head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.timeline-item h3 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: var(--navy); margin: 0; }
.timeline-item .role { font-size: 13px; letter-spacing: 0.5px; color: var(--text-soft); }
.timeline-item p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); margin: 0; font-weight: 300; max-width: 640px; }

.pill-outline-light {
  font-size: 13px; color: var(--cream); border: 1px solid rgba(251, 243, 226, 0.25); border-radius: 999px; padding: 7px 15px;
}
.edu-item { border-top: 1px solid rgba(251, 243, 226, 0.16); padding-top: 14px; }
.edu-item .title { font-size: 16px; font-weight: 500; color: var(--cream); margin-bottom: 4px; }
.edu-item .place { font-size: 13px; color: rgba(251, 243, 226, 0.6); }
.edu-item-dark .title { font-size: 15.5px; color: var(--navy); font-weight: 500; }
.edu-item-dark .place { font-size: 13px; color: var(--text-soft); }
.edu-item-dark { border: none; padding-top: 0; }

/* ---- gravity physics section ---- */
.gravity-wrap {
  position: relative;
  height: 380px;
  background: var(--navy);
  overflow: hidden;
}
.gravity-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 110%, rgba(63,151,166,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.g-pill {
  position: absolute;
  top: 0; left: 0;
  background: var(--bg);
  color: var(--fg);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2), 0 1px 4px rgba(0,0,0,0.1);
  z-index: 1;
}
.g-pill:active { cursor: grabbing; }
@media (max-width: 600px) { .gravity-wrap { height: 300px; } .g-pill { font-size: 13px; padding: 9px 18px; } }

/* ---- interactive folder gallery ---- */
.folder-gallery {
  position: relative;
  isolation: isolate;
  display: inline-block;
  width: 260px;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.folder-gallery:focus-visible .fg-body { outline: 2px solid var(--cyan); outline-offset: 3px; }

.fg-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.folder-gallery:hover .fg-icon { transform: translateY(-5px); }
.folder-gallery.is-open .fg-icon { transform: translateY(-4px); }

.fg-tab {
  width: 90px;
  height: 22px;
  background: #c9a87a;
  border-radius: 9px 9px 0 0;
  margin-left: 16px;
}
.fg-body {
  background: var(--sand);
  border-radius: 0 16px 16px 16px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 4px 20px rgba(22,39,58,0.14), 0 1px 4px rgba(22,39,58,0.08);
  transition: box-shadow 0.3s;
}
.folder-gallery:hover .fg-body,
.folder-gallery.is-open .fg-body {
  box-shadow: 0 14px 44px rgba(22,39,58,0.26), 0 2px 8px rgba(22,39,58,0.1);
}
.fg-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
}
.fg-meta {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
}

.fg-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145px;
  height: 192px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 10px 32px rgba(22,39,58,0.30), 0 2px 8px rgba(22,39,58,0.14);
  pointer-events: none;
  transition: cursor 0.1s;
}
.folder-gallery.is-open .fg-card { pointer-events: auto; cursor: grab; }
.folder-gallery.is-open .fg-card:active { cursor: grabbing; }
.fg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fg-hint {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(251, 243, 226, 0.4);
  margin: 12px 0 0;
  text-align: center;
  transition: opacity 0.3s;
  pointer-events: none;
}
.folder-gallery.is-open .fg-hint { opacity: 0; }

/* ---- canvas / shader hero backgrounds ---- */
.exp-hero-canvas,
.brand-shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.exp-hero-canvas { opacity: 0.85; }
.brand-shader-canvas { opacity: 1; }

@media (max-width: 680px) {
  .folder-gallery { width: 220px; }
  .fg-body { padding: 20px 20px 18px; }
  .fg-name { font-size: 22px; }
  .fg-tab { width: 76px; }
  .fg-card { width: 128px; height: 170px; }
}

/* ---- circular gallery ---- */
.circ-gallery-wrap {
  height: 400vh;
  position: relative;
  background: var(--navy);
}
.circ-gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.circ-gallery-label {
  position: absolute;
  top: 40px;
  left: 0; right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}
.circ-stage {
  perspective: 1100px;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circ-track {
  position: relative;
  transform-style: preserve-3d;
  width: 260px;
  height: 340px;
}
.circ-item {
  position: absolute;
  top: 0; left: 0;
  width: 260px;
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.circ-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.circ-item a:hover .circ-item-info { padding-bottom: 24px; }
.circ-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.circ-item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.circ-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 18px 20px;
  background: linear-gradient(to top, rgba(22,39,58,0.92) 0%, transparent 100%);
  transition: padding 0.25s;
}
.circ-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.1;
}
.circ-item-cat {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(228,212,180,0.7);
  margin-top: 5px;
}
.circ-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(251,243,226,0.35);
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .circ-track { width: 200px; height: 268px; }
  .circ-item { width: 200px; height: 268px; border-radius: 12px; }
  .circ-item-name { font-size: 18px; }
}

/* ---------- sobre ---------- */
.area-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--sand-line); padding-bottom: 12px; }
.area-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); flex: none; }
.area-row span:last-child { font-size: 16px; color: var(--navy); }
.tool-pill {
  font-size: 14px; color: var(--navy); background: var(--cream); border: 1px solid var(--sand-line-2);
  border-radius: 999px; padding: 9px 18px;
}
.avail-bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.avail-links { display: flex; gap: 12px; flex-wrap: wrap; }
.chip-outline-light {
  font-size: 13px; letter-spacing: 1px; border: 1px solid rgba(251, 243, 226, 0.3); border-radius: 999px; padding: 9px 18px;
}
.chip-btn {
  position: relative; overflow: hidden; font-size: 13px; letter-spacing: 1px; background: var(--terracotta);
  color: var(--cream); border-radius: 999px; padding: 10px 20px; transition: background .25s, transform .3s cubic-bezier(.2,.8,.2,1);
}
.chip-btn:hover { background: var(--terracotta-light); }
.chip-outline-light { transition: background .25s, border-color .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.chip-outline-light:hover { background: rgba(251,243,226,0.1); border-color: var(--cyan-light); }

/* ---------- branding / dice ---------- */
.brand-hero { text-align: center; padding: 160px clamp(20px, 5vw, 64px) clamp(70px, 8vw, 120px); }
.brand-hero img.mark { height: 54px; margin: 0 auto 34px; opacity: 0.95; }
.brand-hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(44px, 8vw, 110px); line-height: 0.98; margin: 0 0 26px; }
.services-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.6vw, 22px); }
.service-card {
  background: rgba(251, 243, 226, 0.62); backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid var(--sand-line); border-radius: 16px; padding: clamp(26px, 3vw, 40px);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(22, 39, 58, 0.4); border-color: var(--cyan); }
.service-card .num { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--terracotta); margin-bottom: 14px; }
.service-card h3 { font-size: 21px; font-weight: 500; color: var(--navy); margin: 0 0 12px; }
.service-card p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0; font-weight: 300; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.5vw, 22px); }
.process-step {
  background: rgba(251, 243, 226, 0.05); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(251, 243, 226, 0.14); border-radius: 18px; padding: 26px 22px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), background .4s, border-color .4s, box-shadow .45s;
}
.process-step:hover {
  transform: translateY(-6px); background: rgba(251, 243, 226, 0.09);
  border-color: rgba(63, 151, 166, 0.4); box-shadow: 0 26px 50px -30px rgba(0,0,0,0.45);
}
.process-step .num { font-family: 'Cormorant Garamond', serif; font-size: 40px; color: var(--terracotta-light); line-height: 1; margin-bottom: 16px; }
.process-step h3 { font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.process-step p { font-size: 14px; line-height: 1.65; color: rgba(251, 243, 226, 0.66); font-weight: 300; margin: 0; }

/* ---------- contato ---------- */
.contact-paths { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px); }
.path-card {
  border-radius: 20px; padding: clamp(30px, 4vw, 48px);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -32px rgba(22, 39, 58, 0.35); }
.path-card.dark { background: rgba(22, 39, 58, 0.92); backdrop-filter: blur(10px); color: var(--cream); border: 1px solid rgba(251,243,226,0.08); }
.path-card.dark:hover { border-color: rgba(63, 151, 166, 0.4); }
.path-card.light { background: rgba(243, 232, 210, 0.75); backdrop-filter: blur(10px); color: var(--navy); border: 1px solid var(--sand-line); }
.path-card.light:hover { border-color: var(--terracotta); }
.path-card h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 38px); font-weight: 600; margin: 0 0 14px; }
.path-card p { font-size: 15px; line-height: 1.7; font-weight: 300; margin: 0 0 24px; }
.contact-cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 64px); }
.channel-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--sand-line); padding: 16px 0; transition: color .25s;
}
.channel-row .label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-soft); }
.channel-row .value { font-size: 15px; color: var(--navy); }
a.channel-row:hover .value { color: var(--terracotta); }
.contact-form-card {
  background: rgba(22, 39, 58, 0.9); backdrop-filter: blur(12px) saturate(140%); color: var(--cream);
  border: 1px solid rgba(251,243,226,0.1); border-radius: 20px; padding: clamp(28px, 3.5vw, 44px);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  background: rgba(251, 243, 226, 0.06); border: 1px solid rgba(251, 243, 226, 0.2); border-radius: 10px;
  padding: 14px 16px; color: var(--cream); font-size: 14px; outline: none; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field:focus { border-color: var(--cyan-light); background: rgba(251, 243, 226, 0.09); box-shadow: 0 0 0 3px rgba(63,151,166,0.18); }
textarea.field { resize: vertical; font-weight: 300; }
.field-select { appearance: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--cream); padding: clamp(56px, 6vw, 80px) clamp(20px, 5vw, 64px) 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(251, 243, 226, 0.12);
}
.footer-grid img { height: 30px; margin-bottom: 20px; }
.footer-grid .about { max-width: 320px; font-size: 14.5px; line-height: 1.7; color: rgba(251, 243, 226, 0.6); font-weight: 300; margin: 0; }
.footer-col-title { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--terracotta-light); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-links button {
  text-align: left; font-size: 14px; color: rgba(251, 243, 226, 0.78); transition: color .25s;
}
.footer-links a:hover, .footer-links button:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; font-size: 12px; letter-spacing: 0.5px; color: rgba(251, 243, 226, 0.5);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(11, 19, 28, 0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 80px);
  animation: fadeUp .3s ease both;
}
.lightbox[hidden] { display: none; }
.lb-close {
  position: absolute; top: 26px; right: 30px; color: var(--cream); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0.85; padding: 10px 18px; border-radius: 999px;
  background: rgba(251,243,226,0.06); backdrop-filter: blur(10px); border: 1px solid rgba(251,243,226,0.16);
  transition: opacity .25s, background .25s, border-color .25s, transform .3s;
}
.lb-close:hover { opacity: 1; background: rgba(251,243,226,0.12); border-color: var(--cyan-light); transform: translateY(-2px); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); color: var(--cream); font-size: 26px;
  opacity: 0.85; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(251,243,226,0.06); backdrop-filter: blur(10px);
  border: 1px solid rgba(251,243,226,0.16); transition: opacity .25s, background .25s, border-color .25s, transform .3s;
}
.lb-nav:hover { opacity: 1; background: rgba(251,243,226,0.14); border-color: var(--cyan-light); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-content { max-width: 1000px; width: 100%; }
.lb-content img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }
.lb-content img[hidden] { display: none; }
.lb-placeholder {
  width: 100%; aspect-ratio: 16/10; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #21303f 0 18px, #1a2735 18px 36px);
}
.lb-placeholder[hidden] { display: none; }
.lb-placeholder span { font-family: monospace; font-size: 13px; letter-spacing: 1px; color: var(--terracotta-light); }
.lb-caption { text-align: center; margin-top: 18px; color: rgba(251, 243, 226, 0.7); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split-2, .case-cols-2, .contact-cols, .contact-paths, .form-grid-2 { grid-template-columns: 1fr; }
  .services-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid, .services-2x2, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-triptych { grid-template-columns: 1fr 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-result { border-left: none; padding-left: 0; border-top: 1px solid rgba(251,243,226,0.16); padding-top: 24px; }
}
@media (max-width: 640px) {
  .site-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px); background: var(--navy);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 40px;
    transform: translateX(100%); transition: transform .35s ease; box-shadow: -20px 0 60px rgba(0,0,0,0.35); }
  .site-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .services-grid, .process-grid, .project-grid, .services-2x2, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-triptych { grid-template-columns: 1fr; }
  .hero-triptych .tri-a, .hero-triptych .tri-c { display: none; }
}
