/* ============================================================
   VINCENZI STUDIO V2 — Global v2.1 (Cream / Orange / Syne + Barlow)
   ============================================================ */

:root {
  /* ── Palette ─────────────────────────────── */
  --cream:       #F5F2EC;
  --cream-dark:  #EAE6DD;
  --white:       #FFFFFF;
  --ink:         #0E0E0E;
  --ink-mid:     #3A3835;
  --ink-light:   #7A7570;
  --orange:      #FF4B00;
  --orange-dim:  rgba(255,75,0,0.1);
  --border:      rgba(14,14,14,0.1);
  --border-dark: rgba(14,14,14,0.22);

  /* ── Spacing ─────────────────────────────── */
  --s1:4px; --s2:8px; --s3:16px; --s4:24px; --s5:32px;
  --s6:48px; --s7:64px; --s8:96px; --s9:130px;

  /* ── Typography ───────────────────────────── */
  --font-display:    'Syne', sans-serif;
  --font-condensed:  'Barlow Condensed', sans-serif;
  --font-body:       'DM Sans', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* ── Geometry ─────────────────────────────── */
  --max-width: 1360px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;

  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --t-fast: 0.15s; --t-normal: 0.3s; --t-slow: 0.55s;
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:16px; scroll-behavior:smooth; scroll-padding-top:100px; }
body {
  font-family: var(--font-body); background: var(--cream);
  color: var(--ink); line-height:1.65; -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
@supports(padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
img { max-width:100%; height:auto; display:block; }
a   { color:inherit; text-decoration:none; }
ul  { list-style:none; }
button,input,textarea,select { font-family:inherit; border:none; background:none; outline:none; }

/* ── Accessibility & Impeccable ──────────────── */
.skip-to-content {
  position:absolute; top:-100px; left:20px; z-index:99999;
  background:var(--orange); color:#fff; padding:12px 24px;
  font-weight:700; border-radius:var(--r-md); transition:top var(--t-fast);
}
.skip-to-content:focus { top:20px; }

:focus-visible { outline:2px solid var(--orange); outline-offset:3px; border-radius:2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Typography ─────────────────────────────── */
h1,.display {
  font-family: var(--font-display); font-weight:800;
  line-height:0.95; letter-spacing:-0.03em;
}
h2 { font-family:var(--font-display); font-weight:700; line-height:1.05; letter-spacing:-0.025em; }
h3 { font-family:var(--font-display); font-weight:600; line-height:1.1; letter-spacing:-0.015em; }
.hero-title { font-family:var(--font-condensed); font-weight:800; text-transform:uppercase; letter-spacing:-0.01em; line-height:0.88; }
.hero-title em { font-style:italic; font-weight:400; color:var(--orange); letter-spacing:0.01em; }
h4,.h4 { font-family:var(--font-body); font-weight:600; line-height:1.3; }

.display     { font-size: clamp(2.2rem, 8vw, 7.5rem); }
h1           { font-size: clamp(2rem, 7vw, 6.5rem); }
h2           { font-size: clamp(1.8rem, 5vw, 4.5rem); }
h3           { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }
.hero-title  { font-size: clamp(4rem, 10vw, 11rem); }

.body-xl     { font-size:1.25rem; line-height:1.65; }
.body-large  { font-size:1.125rem; line-height:1.7; }
.body-small  { font-size:0.875rem; line-height:1.68; }
.caption     { font-size:0.7rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; font-family:var(--font-mono); }

.overline {
  font-family:var(--font-mono); font-size:0.72rem;
  text-transform:uppercase; letter-spacing:0.18em;
  color:var(--orange); display:block;
}

/* ── Layout ─────────────────────────────────── */
.container { max-width:var(--max-width); margin:0 auto; padding:0 24px; }
@media(min-width:768px)  { .container { padding:0 48px; } }
@media(min-width:1200px) { .container { padding:0 72px; } }

/* ── Utilities ───────────────────────────────── */
.text-center   { text-align:center; }
.text-mid      { color:var(--ink-mid); }
.text-light    { color:var(--ink-light); }
.text-orange   { color:var(--orange); }
.white-bg      { background:var(--white); }
.cream-dark-bg { background:var(--cream-dark); }
.ink-bg        { background:var(--ink); }
.w-full        { width:100%; }
.max-w-2xl     { max-width:42rem; }
.max-w-3xl     { max-width:56rem; }
.mx-auto       { margin:0 auto; }
.block         { display:block; }
.truncate      { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.line-clamp-2  { display:-webkit-box; -webkit-line-clamp:2; line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.mt-1{margin-top:var(--s1);} .mt-2{margin-top:var(--s2);}
.mt-3{margin-top:var(--s3);} .mt-4{margin-top:var(--s4);}
.mt-6{margin-top:var(--s6);} .mt-8{margin-top:var(--s8);}
.mb-2{margin-bottom:var(--s2);} .mb-4{margin-bottom:var(--s4);}
.mb-6{margin-bottom:var(--s6);} .mb-8{margin-bottom:var(--s8);}
.ml-4{margin-left:var(--s4);}
.gap-3{gap:var(--s3);}

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

/* ── Highlight word (orange underline) ──────── */
.highlight {
  position:relative; display:inline-block;
}
.highlight::after {
  content:'';
  position:absolute; bottom:-4px; left:0; height:3px;
  background:var(--orange); border-radius:2px;
  width:0; transition:width 0.7s var(--ease) 0.5s;
}
.highlight.active::after { width:100%; }

/* ── PNG icon img ─────────────────────────────── */
img.icon-img { display:inline-block; vertical-align:middle; object-fit:contain;
  filter:brightness(0) saturate(0) opacity(0.5); }
.card img.icon-img   { width:24px; height:24px; }
.badge-tech img.icon-img { width:13px; height:13px; }
.marquee-item img.icon-img { width:16px; height:16px; }

/* ── Cursor ─────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position:fixed; top:0; left:0; pointer-events:none;
  z-index:10005; transform:translate(-50%,-50%);
  border-radius:50%;
}
.cursor-dot  { width:8px; height:8px; background:var(--orange); }
.cursor-ring { width:32px; height:32px; border:1.5px solid rgba(255,75,0,0.4);
  transition:width .25s var(--ease), height .25s var(--ease); }
@media (hover: none) and (pointer: coarse) { .cursor-dot,.cursor-ring{display:none!important;} }
body.cursor-active,body.cursor-active a,body.cursor-active button,
body.cursor-active input,body.cursor-active textarea,body.cursor-active .card{cursor:none;}

/* ── Scroll progress (orange) ──────────────── */
#scroll-progress{
  position:fixed;top:0;left:0;height:2px;z-index:10001;
  background:var(--orange);width:0%;transition:width 0.1s linear;
}
