/* ══════════════════════════════════════════════════════════════
   13 OCTOBRE — Main Stylesheet
   ══════════════════════════════════════════════════════════════ */

/* ── Brand Palette ── */
:root {
  --olive:      #243126;
  --olive-mid:  #2E3D30;
  --charcoal:   #20221E;
  --gold:       #B79243;
  --gold-light: #D4AF6A;
  --ivory:      #F4F1E9;
  --ivory-dim:  #E8E4D8;
  --muted:      rgba(244,241,233,0.42);
  --ink:        var(--charcoal);
  --ink-soft:   var(--olive);
  --cream:      var(--ivory);
  --cream-dim:  var(--ivory-dim);
  --accent:     var(--gold);
}

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

html { font-size: 16px; }

body {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-cursor,
body.no-cursor *,
body.no-cursor a,
body.no-cursor button {
  cursor: none !important;
}

/* ── Typography ── */
.f-display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.f-sans {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.f-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Cursor ── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--ivory);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  mix-blend-mode: difference;
}
#cursor.hover { width: 56px; height: 56px; }

/* ── Line mask ── */
.line-mask { overflow: hidden; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── Nav ── */
.nav-item {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(244,241,233,0.5);
  transition: color 0.4s;
  background: none; border: none; padding: 0;
  cursor: pointer;
}
.nav-item:hover { color: var(--ivory); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--charcoal);
  background: var(--ivory);
  border: none; padding: 16px 32px;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--ivory-dim); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(244,241,233,0.28);
  padding: 16px 32px;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ivory); transform: translateY(-2px); }

/* ── Arrow ── */
.arrow-right {
  display: inline-block; width: 20px; height: 1px;
  background: currentColor; position: relative;
}
.arrow-right::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── Portfolio hover ── */
.work-item { overflow: hidden; position: relative; cursor: pointer; }
.work-item .work-img { transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.work-item:hover .work-img { transform: scale(1.06); }
.work-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(32,34,30,0.92) 0%, transparent 100%);
  transform: translateY(8px); opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}
.work-item:hover .work-info { opacity: 1; transform: translateY(0); }

/* ── Form ── */
.form-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(244,241,233,0.14);
  padding: 16px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 300;
  color: var(--ivory); letter-spacing: 0.03em;
  outline: none; transition: border-color 0.4s;
  border-radius: 0;
}
.form-input:focus { border-bottom-color: var(--ivory); }
.form-input::placeholder {
  color: rgba(244,241,233,0.25);
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
}
.form-input option {
  background: #161614;
  color: var(--ivory);
}

/* ── Noise ── */
.noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px; mix-blend-mode: overlay;
}

section { position: relative; }

/* ── Grid helpers ── */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-span-7  { grid-column: span 7; }
.col-span-5  { grid-column: span 5; }
.col-span-12 { grid-column: span 12; }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .mobile-stack { display: flex; flex-direction: column; gap: 16px; }
}
@media (min-width: 769px) {
  .show-mobile { display: none !important; }
}

/* ── Intro ── */
.intro-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: #F4F1E9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

/* ── Scroll line animation ── */
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0.3; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1;   }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1;   }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12,12,10,0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox-inner {
  max-width: 900px; width: 100%;
}
.lightbox-inner img {
  width: 100%; max-height: 70vh; object-fit: cover; display: block;
}

/* ── Services dial ── */
.sv-num-btn {
  font-family: 'Manrope', sans-serif;
  font-weight: 200;
  background: none; border: none;
  text-align: left;
  line-height: 1;
  padding: 10px 0;
  transition: font-size 0.4s cubic-bezier(0.16,1,0.3,1), color 0.35s;
  cursor: pointer;
}

/* ── About grid hover ── */
.about-cell {
  border: 1px solid rgba(245,240,232,0.16);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  transition: background 0.5s, border-color 0.5s;
}
.navbar.scrolled {
  background: rgba(32,34,30,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(183,146,67,0.15);
}

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--olive);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .mobile-menu { padding: 0 28px; }
}