/* =========================================
   global.css — shared base for all pages
   ========================================= */

/* Cross-document page transitions (Chrome 126+, Safari 18+; no-op elsewhere) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 220ms ease-out vt-fade-out;
}
::view-transition-new(root) {
  animation: 220ms ease-out vt-fade-in;
}
@keyframes vt-fade-out { to   { opacity: 0; transform: translateY(6px); } }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(6px); } }

:root {
  --bg: #ffffff;
  --ink: #37352f;
  --mid: #787774;
  --border: #e9e9e7;
  --card: #f7f7f5;
  --hover: #f1f1ef;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a, button { touch-action: manipulation; }
input, textarea, select { font-size: 16px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}


/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.tab-panel { animation: fadeUp 0.4s ease forwards; }

/* ── Section base ── */
section { padding: 8rem 4rem; border-top: 1px solid var(--border); }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 3rem;
  background: var(--border);
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin-bottom: 3.5rem;
}

/* ── Contact section ── */
#contact {
  text-align: center;
  padding: 10rem 4rem;
  position: relative;
  overflow: hidden;
}
#contact .section-label { justify-content: center; }
#contact .section-label::after { display: none; }

.contact-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.88;
  margin-bottom: 2.5rem;
}
.contact-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--mid);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.contact-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 3rem;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #37352f;
  transform: translateX(-101%);
  transition: transform 0.35s ease;
}
.contact-btn:hover::before { transform: translateX(0); }
.contact-btn span { position: relative; z-index: 1; }

.contact-bg-text {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 18vw;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.footer-socials { display: flex; gap: 0.6rem; align-items: center; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  color: var(--mid);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.social-icon:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }


/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {
  section { padding: 5rem 1.5rem; }
  #contact { padding: 6rem 1.5rem; }
  .contact-headline { font-size: clamp(2.8rem, 8vw, 6rem) !important; }
  footer { padding: 1.5rem; }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  section { padding: 3.5rem 1.2rem; }
  .section-label { font-size: 0.62rem; }
  .section-title { font-size: clamp(1.8rem, 9vw, 2.8rem) !important; margin-bottom: 1.5rem; }
  #contact { padding: 4rem 1.2rem; }
  .contact-headline { font-size: clamp(2.5rem, 14vw, 5rem) !important; }
  .contact-desc { font-size: 0.88rem; }
  .contact-btn { padding: 1rem 2rem; font-size: 0.7rem; min-height: 44px; }
  .contact-bg-text { display: none; }
  footer { padding: 1.5rem 1.2rem; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .footer-socials { justify-content: center; }
  .social-icon { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: auto; }
  body { cursor: auto; }
}
