/* ============================================================
   PORTFOLIO THEME — style.css
   Main stylesheet: Variables, Reset, Base, Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --color-bg:       #0A0A0A;
  --color-bg2:      #111111;
  --color-surface:  #1A1A1A;
  --color-border:   rgba(255, 255, 255, 0.07);
  --color-cream:    #F4EFE6;
  --color-muted:    rgba(244, 239, 230, 0.45);
  --color-gold:     #C9A96E;
  --color-gold-dim: rgba(201, 169, 110, 0.18);
  --color-coral:    #E8705A;
  --color-dark:     #0A0A0A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-full: 9999px;

  --transition-fast:   0.2s ease;
  --transition-base:   0.35s ease;
  --transition-slow:   0.6s cubic-bezier(0.22, 1, 0.36, 1);

  --max-width: 1240px;
  --gutter: 64px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}
.display-xl {
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.display-lg {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
.display-md {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
}
.text-italic  { font-style: italic; }
.text-gold    { color: var(--color-gold); }
.text-muted   { color: var(--color-muted); }
.text-outline {
  -webkit-text-stroke: 1.5px var(--color-cream);
  color: transparent;
}

/* ─── Utilities ─────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-pad  { padding: 140px 0; }
.section-pad-sm { padding: 80px 0; }
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,169,110,0.35) 50%, transparent 100%);
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.eyebrow-line {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}
.eyebrow-text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 38px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  cursor: none;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-dark);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-coral);
  transform: translateX(-102%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  border: 1px solid rgba(244,239,230,0.25);
  color: var(--color-muted);
}
.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.btn-text {
  color: var(--color-muted);
  border-bottom: 1px solid rgba(244,239,230,0.25);
  padding: 0 0 4px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-text:hover {
  color: var(--color-cream);
  border-color: var(--color-cream);
}

/* ─── Noise overlay ─────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9990;
}

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.85s var(--transition-slow),
              transform 0.85s var(--transition-slow);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.85s var(--transition-slow),
              transform 0.85s var(--transition-slow);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }
.delay-5 { transition-delay: 0.60s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  .section-pad { padding: 100px 0; }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .section-pad { padding: 70px 0; }
}
