/* ============ ROBERTODIAZ Portfolio — Nesh-style ============ */
:root {
  --bg: #D5CFBE;
  --card: #E0DFC5;
  --card-2: #EBEADA;
  --card-soft: rgba(223, 222, 206, 0.8);
  --ink: #0f0f0e;
  --ink-soft: rgba(0, 0, 0, 0.72);
  --ink-faint: rgba(0, 0, 0, 0.5);
  --yellow: #FFFF23;
  --glass-dark: rgba(20, 20, 18, 0.55);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(20, 20, 15, 0.10), 0 2px 8px rgba(20, 20, 15, 0.06);
  --shadow-lift: 0 22px 50px rgba(20, 20, 15, 0.16), 0 6px 14px rgba(20, 20, 15, 0.08);
  --font-display: "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --sidebar-w: 300px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- preloader ---------- */
@keyframes preLogo { 0% { transform: scale(.6) rotate(-4deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes preBar { from { width: 0; } to { width: 100%; } }
@keyframes preFade { to { opacity: 1; transform: translateY(0); } }
@keyframes preWipe { to { transform: translateY(-100%); } }
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: #111110;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  animation: preWipe .7s var(--ease) 1.55s forwards;
}
.preloader .pre-logo {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 4vw, 40px); letter-spacing: .06em;
  background: var(--yellow); color: #000; padding: 12px 26px; border-radius: 16px;
  animation: preLogo .7s var(--spring) both;
}
.preloader .pre-logo span { font-size: .45em; vertical-align: super; }
.preloader .pre-tag {
  color: rgba(255,255,255,.7); font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); animation: preFade .5s ease .45s forwards;
}
.preloader .pre-bar { width: 180px; height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; }
.preloader .pre-bar i { display: block; height: 100%; background: var(--yellow); animation: preBar 1.3s ease .15s both; }
.preloader.gone { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.bounce { transform: translateY(44px) scale(.94); transition: opacity .7s ease, transform .9s var(--spring); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
.d-1 { transition-delay: .1s; } .d-2 { transition-delay: .2s; } .d-3 { transition-delay: .3s; }

/* ---------- intro (page load, after preloader) ---------- */
@keyframes letterRise { from { transform: translateY(105%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes portraitRise { from { transform: translateY(60px) scale(1.04); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes popIn { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes riseIn { from { transform: translateY(44px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-giant .g { display: inline-block; animation: letterRise .9s var(--ease) both; }
.hero-giant .g1 { animation-delay: 1.5s; }
.hero-giant .g2 { animation-delay: 1.59s; }
.hero-giant .g3 { animation-delay: 1.68s; }
.hero-giant .g4 { animation-delay: 1.77s; }
.intro-portrait { animation: portraitRise 1s var(--ease) 1.7s both; }
.intro-rise { animation: riseIn .9s var(--spring) 2s both; }
.intro-pop { animation: popIn .8s var(--spring) 2.25s both; }
.intro-pop-2 { animation: popIn .8s var(--spring) 2.4s both; }
.intro-late { opacity: 0; animation: fadeIn 1s ease 2.6s forwards; }
.float-1 > div, .float-2 > div { animation: floatBob 5.5s ease-in-out 3.4s infinite; }
.float-2 > div { animation-duration: 6.5s; }

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .reveal, .reveal.bounce { opacity: 1; transform: none; transition: none; }
  .hero-giant .g, .intro-portrait, .intro-rise, .intro-pop, .intro-pop-2, .intro-late { animation: none; opacity: 1; }
  .float-1 > div, .float-2 > div { animation: none; }
  .marquee-track, .ticker-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- shared bits ---------- */
.tilt { transition: transform .45s var(--ease), box-shadow .45s ease; will-change: transform; }
.btn-yellow {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #000;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  padding: 14px 30px; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(120, 118, 0, 0.25);
  transition: transform .3s var(--spring), box-shadow .3s ease;
  overflow: hidden;
}
.btn-yellow:hover { transform: translateY(-3px) scale(1.03) rotate(-.5deg); box-shadow: 0 14px 30px rgba(120,118,0,.35); }
.btn-big { padding: 20px 46px; font-size: 19px; border-radius: 18px; }

/* text roll hover */
.roll { display: inline-grid; overflow: hidden; line-height: 1.25; }
.roll > span { grid-area: 1 / 1; transition: transform .45s var(--ease), opacity .3s ease; white-space: nowrap; }
.roll > span:last-child { transform: translateY(110%); opacity: 0; }
.roll-btn:hover .roll > span:first-child { transform: translateY(-110%); opacity: 0; }
.roll-btn:hover .roll > span:last-child { transform: translateY(0); opacity: 1; }

.logo-pill {
  display: inline-flex; align-items: center;
  background: var(--yellow); color: #000;
  font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: .06em;
  padding: 10px 14px; border-radius: 12px;
  transition: transform .3s var(--spring);
}
.logo-pill:hover { transform: scale(1.05) rotate(-2deg); }
.logo-pill span { font-size: 9px; vertical-align: super; margin-left: 1px; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: var(--card-2); border: 1px solid rgba(0,0,0,.08);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .amp { color: var(--ink-faint); }
.h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.03em; }
.section-intro { max-width: 540px; margin-top: 22px; font-size: 17px; color: var(--ink-soft); }

/* ---------- mobile topbar ---------- */
.topbar { display: none; }

/* ---------- hero (full-bleed landing) ---------- */
.hero {
  position: relative; min-height: max(640px, 100vh); width: 100%;
  overflow: hidden;
  background:
    radial-gradient(1100px 650px at 50% -5%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 550px at 85% 80%, rgba(190, 182, 155, .5), transparent 60%),
    var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.hero-giant {
  position: absolute; top: 2vh; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 900;
  font-size: min(26vw, 62vh, 30rem);
  line-height: .84; letter-spacing: -.01em;
  color: var(--yellow); white-space: nowrap; user-select: none; z-index: 1;
  text-shadow: 0 4px 60px rgba(255,255,35,.25);
}
.hero-portrait-wrap { position: relative; z-index: 2; display: flex; justify-content: center; width: 100%; }
.hero-portrait {
  height: min(74vh, 760px); max-width: 94%;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 24px 50px rgba(20,20,15,.35));
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

.hero-nav {
  position: absolute; top: 47vh; z-index: 4;
  display: flex; align-items: center; gap: 14px;
}
.hero-nav-left { left: 44px; }
.hero-nav-right { right: 44px; }
.hero-nav a {
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 4px 0;
}
.hero-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--yellow); transition: width .35s var(--ease);
}
.hero-nav a:hover::after { width: 100%; }
.hero-nav i { font-style: normal; color: var(--ink-faint); font-size: 12px; }

.hero-tagline {
  position: absolute; left: 44px; bottom: 44px; z-index: 4;
  font-size: 16px; font-weight: 500; color: var(--ink-soft); line-height: 1.5;
}
.hero-tagline strong { color: var(--ink); font-weight: 700; }
.glass-dark {
  background: var(--glass-dark);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); color: #fff;
  box-shadow: 0 16px 40px rgba(20,20,15,.25);
}
.hero-card { position: absolute; z-index: 3; }
.hc-traits { right: 6%; top: 52%; }
.hero-traits { padding: 20px 24px; }
.hero-traits ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.hero-traits li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.hero-traits svg { flex-shrink: 0; }
.hc-stat { left: 7%; top: 56%; }
.hero-stat { padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num { font-family: var(--font-display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--yellow); }
.hero-stat-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.25; }

.hero-center { position: relative; z-index: 4; text-align: center; margin-bottom: 9vh; padding: 0 20px; }
.hero-headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(38px, 4.8vw, 76px); line-height: 1; letter-spacing: -.03em;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero-btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-support {
  position: absolute; right: 44px; bottom: 44px; z-index: 4;
  max-width: 300px; font-size: 14.5px; color: var(--ink-soft); text-align: left;
}
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; }
.scroll-cue span {
  display: block; width: 2px; height: 38px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: floatBob 2s ease-in-out infinite;
}

/* ---------- sidebar (slides in after hero) ---------- */
.sidebar {
  position: fixed; top: 14px; left: 14px; bottom: 14px; width: var(--sidebar-w);
  display: flex; flex-direction: column; gap: 10px; z-index: 50;
  overflow-y: auto; scrollbar-width: none;
  transform: translateX(-115%); opacity: 0;
  transition: transform .7s var(--spring), opacity .4s ease;
}
.sidebar.show { transform: translateX(0); opacity: 1; }
.sidebar::-webkit-scrollbar { display: none; }
.side-card {
  background: var(--card-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius); padding: 16px;
  box-shadow: 0 2px 10px rgba(20,20,15,.05);
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-socials { display: flex; gap: 7px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: #111; color: #fff;
  transition: transform .3s var(--spring), background .3s ease, color .3s ease;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg) scale(1.08); background: var(--yellow); color: #000; }
.side-blurb { font-size: 13.5px; color: var(--ink-soft); }
.side-blurb strong { color: var(--ink); }

.side-stats { display: flex; align-items: center; gap: 14px; }
.side-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.stat-big { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1; color: var(--ink); }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.side-stat-divider { width: 1px; align-self: stretch; background: rgba(0,0,0,.12); }

.side-nav { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 12px; border-radius: 11px;
  color: var(--ink-soft); transition: background .3s ease, color .3s ease, transform .3s var(--spring);
}
.side-link svg { opacity: .8; }
.side-link:hover { background: rgba(255,255,255,.5); color: var(--ink); transform: translateX(4px); }
.side-link.active { background: var(--yellow); color: #000; }

.side-ticker { padding: 12px 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent); mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 16px; width: max-content; animation: marquee 26s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-weight: 900; font-size: 13px; letter-spacing: .05em; white-space: nowrap; color: var(--ink); }
.ticker-track i { font-style: normal; color: #111; font-size: 10px; opacity: .5; }

.side-email {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .3s ease;
  text-align: left;
}
.side-email:hover { background: var(--card-2); }
.side-cta { width: 100%; margin-top: 2px; flex-shrink: 0; }

/* ---------- main ---------- */
.main { margin-left: calc(var(--sidebar-w) + 28px); padding: 14px 22px 0 8px; }

/* ---------- marquee ---------- */
.marquee-wrap { padding: 60px 0 8px; }
.marquee-label { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; padding: 0 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.6vw, 50px); letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.marquee-track i { font-style: normal; color: #9b9800; font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 34px 30px; max-width: 1060px; }

/* ---------- about flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.flip { perspective: 1100px; height: 300px; cursor: pointer; }
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s var(--spring);
}
.flip:hover .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column;
}
.flip-front {
  background: var(--card-soft); border: 1px solid rgba(255,255,255,.4);
  box-shadow: var(--shadow);
}
.flip-icn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: #111; color: var(--yellow); margin-bottom: auto;
}
.flip-front h3 { font-family: var(--font-display); font-weight: 900; font-size: 21px; letter-spacing: -.01em; margin-top: 16px; }
.flip-front p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.flip-hint { margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.flip-back {
  background: var(--yellow); color: #000; transform: rotateY(180deg);
  justify-content: center; box-shadow: var(--shadow-lift);
}
.flip-back p { font-size: 14.5px; font-weight: 500; line-height: 1.55; }

/* ---------- work list ---------- */
.work-list { margin-top: 60px; border-top: 1px solid rgba(0,0,0,.14); }
.work-row {
  display: flex; gap: 34px; padding: 34px 10px;
  border-bottom: 1px solid rgba(0,0,0,.14);
  border-radius: 6px; position: relative;
  transition: background .35s ease, padding .35s ease;
}
.work-row:hover { background: var(--card-soft); padding-left: 26px; }
.work-row::after {
  content: "→"; position: absolute; right: 26px; top: 50%;
  font-family: var(--font-display); font-weight: 900; font-size: 30px;
  transform: translate(14px, -50%); opacity: 0;
  transition: transform .4s var(--spring), opacity .3s ease;
}
.work-row:hover::after { transform: translate(0, -50%); opacity: 1; }
.work-num { font-family: var(--font-display); font-weight: 900; font-size: 17px; color: var(--ink-faint); min-width: 34px; padding-top: 6px; }
.work-tags { display: flex; gap: 14px; margin-bottom: 8px; }
.work-tags span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.work-body h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.02em; margin-bottom: 8px; transition: transform .4s var(--spring); }
.work-row:hover h3 { transform: translateX(5px); }
.work-ext { font-size: .55em; color: var(--ink-faint); vertical-align: middle; }
a.work-row { display: flex; }
.work-body p { max-width: 620px; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- capabilities ---------- */
.cap-list { margin-top: 60px; display: flex; flex-direction: column; }
.cap-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start;
  padding: 30px 10px; border-top: 1px solid rgba(0,0,0,.14);
  transition: background .35s ease, transform .35s var(--spring);
}
.cap-row:last-child { border-bottom: 1px solid rgba(0,0,0,.14); }
.cap-row:hover { background: var(--card-soft); border-radius: 6px; transform: translateX(6px); }
.cap-row h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.01em; }
.cap-row p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 60px; }
.svc-card {
  background: var(--card-soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.svc-card:hover { box-shadow: var(--shadow-lift); }
.svc-card h3 { font-family: var(--font-display); font-weight: 900; font-size: 24px; letter-spacing: -.01em; line-height: 1.15; }
.svc-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  background: var(--yellow); padding: 6px 14px; border-radius: 9px; margin: 14px 0 14px;
}
.svc-desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.svc-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.svc-card li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); }
.svc-card li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--ink); font-size: 11px; }
.svc-for { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink-faint); border-top: 1px solid rgba(0,0,0,.1); padding-top: 14px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.faq-item {
  background: var(--card-soft); border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius); overflow: hidden; align-self: start;
  box-shadow: 0 2px 10px rgba(20,20,15,.05);
  transition: transform .35s var(--spring);
}
.faq-item:hover { transform: translateY(-2px); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; letter-spacing: -.01em;
  padding: 22px 24px;
}
.faq-q span { font-size: 22px; font-weight: 700; color: var(--ink-faint); transition: transform .4s var(--spring); }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.faq-a p { padding: 0 24px 22px; font-size: 15px; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 280px; }

/* ---------- contact ---------- */
.contact { text-align: center; max-width: none; padding-bottom: 60px; }
.contact-h { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 6.5vw, 92px); line-height: .98; letter-spacing: -.03em; margin-bottom: 36px; }
.contact-links { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-2); border: 1px solid rgba(0,0,0,.1);
  font-weight: 600; font-size: 14.5px; padding: 12px 22px; border-radius: 999px;
  transition: background .3s ease, transform .3s var(--spring);
}
.contact-pill:hover { background: var(--yellow); transform: translateY(-3px) rotate(-1deg); }
.contact-meta { margin-top: 30px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 34px 26px; font-size: 13.5px; color: var(--ink-faint);
  border-top: 1px solid rgba(0,0,0,.12);
}
.footer a:hover { color: var(--ink); }

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); color: #000;
  font-family: var(--font-display); font-weight: 900; font-size: 18px;
  box-shadow: 0 10px 24px rgba(120,118,0,.3);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--spring);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) rotate(-6deg); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 80px);
  background: #111; color: var(--yellow);
  font-family: var(--font-display); font-weight: 800; font-size: 14px;
  padding: 13px 26px; border-radius: 12px; z-index: 200;
  opacity: 0; transition: transform .45s var(--spring), opacity .45s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hc-traits { right: 3%; }
  .hc-stat { left: 3%; }
}
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 14px 14px 0; }
  .hero { min-height: 100svh; }
  .hero-nav { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    padding: 12px 16px;
    background: rgba(213, 207, 190, .8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .topbar-right { display: flex; align-items: center; gap: 10px; }
  .topbar-right .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: #111; color: #fff;
    transition: transform .3s var(--spring), background .3s ease, color .3s ease;
  }
  .topbar-right .icon-btn:hover { transform: translateY(-2px) rotate(-6deg) scale(1.08); background: var(--yellow); color: #000; }
  .topbar-cta { padding: 10px 20px; font-size: 13px; }
  .svc-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 8px; }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hc-traits { display: none; }
  .hero { justify-content: flex-start; padding: 74px 0 30px; }
  .hero-portrait { height: min(52vh, 480px); }
  .hero-tagline { position: static; order: 5; text-align: center; margin-top: 26px; }
  .hero-support { position: static; max-width: 480px; text-align: center; margin: 18px auto 0; padding: 0 18px; }
  .hero-center { margin: -8vh 0 0; }
  .hc-stat { position: absolute; left: auto; right: 5%; top: 13%; }
  .hero-stat { padding: 16px 20px; }
  .hero-stat-num { font-size: 38px; }
  .hero-stat-label { font-size: 13px; }
  .flip-grid { grid-template-columns: 1fr; }
  .flip { height: 260px; }
  .work-row { flex-direction: column; gap: 10px; padding: 26px 6px; }
  .work-row::after { display: none; }
  .section { padding: 80px 6px 20px; }
  .footer { padding: 20px 10px 24px; }
}
