/* ============================================================
   BRESKO — Global CSS
   Design System · Reset · Typography · Cursor · Grain · Utils
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=garet@400,700,800,900&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg:              #050505;
  --bg-secondary:    #0B0B0B;
  --bg-card:         #111111;
  --text:            #F5F1EA;
  --text-muted:      rgba(245, 241, 234, 0.45);
  --text-subtle:     rgba(245, 241, 234, 0.15);
  --accent:          #FF2D55;
  --accent-glow:     rgba(255, 45, 85, 0.18);
  --accent-warm:     #E8D5B0;
  --accent-burgundy: #7A1E35;
  --border:          rgba(245, 241, 234, 0.08);
  --border-hover:    rgba(245, 241, 234, 0.2);

  --font-heading:    'Garet', sans-serif;
  --font-editorial:  'Instrument Serif', serif;
  --font-body:       'Inter', sans-serif;

  --ease-out:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:   cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-circ: cubic-bezier(0.76, 0, 0.24, 1);

  --z-loader:  9999;
  --z-cursor:  9998;
  --z-menu:     500;
  --z-navbar:   100;
  --z-grain:     50;
  --z-overlay:   10;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { background: none; border: none; cursor: none; font-family: inherit; }

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ── Grain Overlay ──────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainMove 0.5s steps(2) infinite;
}
@keyframes grainMove {
  0%,100%{transform:translate(0,0)}
  10%{transform:translate(-2%,-3%)}
  20%{transform:translate(3%,2%)}
  30%{transform:translate(-1%,4%)}
  40%{transform:translate(2%,-2%)}
  50%{transform:translate(-3%,1%)}
  60%{transform:translate(1%,-4%)}
  70%{transform:translate(-2%,3%)}
  80%{transform:translate(3%,-1%)}
  90%{transform:translate(-1%,2%)}
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s ease;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,45,85,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out),
              border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.cursor-hover .cursor { width: 5px; height: 5px; }
body.cursor-hover .cursor-follower {
  width: 56px; height: 56px;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255,45,85,0.3);
}
body.cursor-btn .cursor { width: 3px; height: 3px; }
body.cursor-btn .cursor-follower {
  width: 72px; height: 72px;
  border-color: var(--accent);
  background: rgba(255,45,85,0.07);
  box-shadow: 0 0 28px rgba(255,45,85,0.25);
}
body.cursor-card .cursor-follower {
  width: 90px; height: 90px;
  border-color: rgba(255,45,85,0.5);
  background: rgba(255,45,85,0.04);
}

/* ── Typography Utilities ───────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-accent    { color: var(--accent); }
.text-warm      { color: var(--accent-warm); }
.text-burgundy  { color: var(--accent-burgundy); }
.text-muted     { color: var(--text-muted); }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 64px;
}

.section { padding: 10rem 0; }

/* ── Reveal Animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(56px);
}
.reveal.in-view {
  animation: revealUp 0.9s var(--ease-out) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}
.reveal-left.in-view {
  animation: revealLeft 0.9s var(--ease-out) forwards;
}
@keyframes revealLeft {
  to { opacity: 1; transform: translateX(0); }
}

.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }
.delay-6 { animation-delay: 0.6s !important; }
.delay-7 { animation-delay: 0.7s !important; }
.delay-8 { animation-delay: 0.8s !important; }

/* ── Page Transition ────────────────────────────────────────── */
#pageTransition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9995;
  transform: translateY(100%);
  pointer-events: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.15rem 2.4rem;
  border: 1px solid var(--border-hover);
  color: var(--text);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
  cursor: none;
}
.btn .btn-text { position: relative; z-index: 1; }
.btn .btn-arrow { position: relative; z-index: 1; transition: transform 0.3s ease; }
.btn:hover .btn-arrow { transform: translateX(6px); }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: #fff; border-color: var(--accent); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-accent::before { background: #fff; }
.btn-accent:hover { color: var(--accent); border-color: #fff; }

.btn-ghost {
  border-color: var(--text-subtle);
}

/* ── Accent Line ────────────────────────────────────────────── */
.accent-line {
  display: block;
  width: 48px; height: 1px;
  background: var(--accent);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 100%; height: 1px;
  background: var(--border);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 6rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 1.2rem;
  transition: color 0.3s ease;
}
.footer-logo:hover { color: var(--accent); }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.75;
}
.footer-col-title {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(245,241,234,0.7);
  transition: color 0.3s ease;
  font-family: var(--font-body);
}
.footer-col ul a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 0.88rem;
  color: rgba(245,241,234,0.7);
  line-height: 2;
  font-family: var(--font-body);
}
.footer-contact a:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.footer-social-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.footer-social-icon:hover {
  border-color: var(--accent);
  background: rgba(255,45,85,0.06);
  box-shadow: 0 0 12px var(--accent-glow);
}
.footer-social-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.footer-bottom-tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) { .container { padding: 0 40px; } }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 6rem 0; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}
