/* ===================================================================
   Dalez Dezign Studioz — Portfolio for Dale Bueckert
   Black & Gold theme
=================================================================== */

:root {
  --bg:        #0a0a0a;
  --bg-alt:    #111111;
  --surface:   #161616;
  --surface-2: #1d1d1d;
  --border:    #2a2a2a;
  --gold:      #d4a24e;
  --gold-soft: #e8c67a;
  --gold-deep: #b6822f;
  --text:      #ece9e2;
  --muted:     #9a958c;
  --white:     #ffffff;
  --radius:    10px;
  --maxw:      1180px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--white); }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-soft); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gold { color: var(--gold); }

section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

/* Particle-wave background behind the "What I Do" section text */
.whatido-bg {
  position: relative;
  background: #0a0a0a url("hero-bg.svg") center / cover no-repeat;
}
.whatido-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(10,10,10,.30), rgba(10,10,10,.45));
  pointer-events: none;
}
.whatido-bg .container { position: relative; z-index: 1; }
.whatido-bg .card {
  background:
    linear-gradient(160deg, rgba(212,162,78,.10), rgba(18,16,12,.28) 45%),
    rgba(16,14,10,.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212,162,78,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px rgba(0,0,0,.35);
}
/* persistent gold accent line, top-left */
.whatido-bg .card::before { width: 42%; background: linear-gradient(90deg, var(--gold), transparent); }
.whatido-bg .card:hover {
  background:
    linear-gradient(160deg, rgba(212,162,78,.17), rgba(24,21,15,.40) 48%),
    rgba(22,19,13,.58);
  border-color: rgba(212,162,78,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 26px 55px rgba(0,0,0,.5),
    0 0 42px rgba(212,162,78,.13);
}
/* decorative swirl in the top-right corner of each card */
.card-deco {
  position: absolute; top: 0; right: 0; width: 160px; height: 160px;
  z-index: 0; pointer-events: none; opacity: .55;
  background: url("hero-bg.svg") no-repeat;
  background-size: 440px auto;
  background-position: right -30px top -34px;
  -webkit-mask-image: radial-gradient(130% 130% at 100% 0%, #000 22%, transparent 72%);
  mask-image: radial-gradient(130% 130% at 100% 0%, #000 22%, transparent 72%);
  transition: opacity .35s ease;
}
.whatido-bg .card:hover .card-deco { opacity: .85; }

/* Swirl background for the Projects section */
.swirl-bg { position: relative; background: #0a0a0a url("hero-bg.svg") center / cover no-repeat; }
.swirl-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(10,10,10,.34), rgba(10,10,10,.50));
  pointer-events: none;
}
.swirl-bg .container { position: relative; z-index: 1; }
/* Frosted-glass resume CTA */
.swirl-bg .resume-cta {
  background: rgba(18,16,12,.42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-color: rgba(212,162,78,.18);
}
/* Upgraded timeline cards: gradient fill, accent line, corner swirl, hover glow */
.swirl-bg .tl-item {
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(212,162,78,.10), rgba(18,16,12,.28) 45%),
    rgba(16,14,10,.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(212,162,78,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 34px rgba(0,0,0,.32);
}
.swirl-bg .tl-item::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 42%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width .35s ease;
}
.swirl-bg .tl-item::after {
  content: ""; position: absolute; top: 0; right: 0; width: 150px; height: 150px;
  z-index: 0; pointer-events: none; opacity: .5;
  background: url("hero-bg.svg") no-repeat; background-size: 420px auto;
  background-position: right -30px top -34px;
  -webkit-mask-image: radial-gradient(130% 130% at 100% 0%, #000 22%, transparent 72%);
  mask-image: radial-gradient(130% 130% at 100% 0%, #000 22%, transparent 72%);
  transition: opacity .35s ease;
}
.swirl-bg .tl-item > * { position: relative; z-index: 1; }
.swirl-bg .tl-item:hover {
  transform: translateY(-4px);
  border-color: rgba(212,162,78,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 46px rgba(0,0,0,.5), 0 0 40px rgba(212,162,78,.12);
}
.swirl-bg .tl-item:hover::before { width: 100%; }
.swirl-bg .tl-item:hover::after { opacity: .8; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 48px; font-size: 17px; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--gold); color: #000; padding: 10px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color:#000; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent; transition: all .22s ease;
}
.btn-primary { background: var(--gold); color: #0a0a0a; }
.btn-primary:hover { background: var(--gold-soft); color: #0a0a0a; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: rgba(212,162,78,.12); color: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10,10,10,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: 2px; color: var(--white); font-weight: 600; }
.brand-sub { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

/* --- Menu trigger --- */
.menu-trigger {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid rgba(212,162,78,.30); border-radius: 999px;
  padding: 11px 22px 11px 17px; color: var(--text);
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .4s ease, color .35s ease, box-shadow .45s ease, transform .35s cubic-bezier(.22,.8,.3,1);
}
.menu-trigger:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.menu-trigger:active { transform: translateY(0) scale(.98); }
.menu-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* gold fill that wipes up from the base */
.menu-trigger::before {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
  background: linear-gradient(180deg, rgba(212,162,78,.16), rgba(212,162,78,.05));
  transform: translateY(101%); transition: transform .45s cubic-bezier(.22,.8,.3,1);
}
.menu-trigger:hover::before, .menu-trigger[aria-expanded="true"]::before { transform: translateY(0); }

/* sheen sweep */
.menu-trigger::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(232,198,122,.35) 50%, transparent 65%);
  transform: translateX(-120%); opacity: 0;
}
.menu-trigger:hover::after { animation: menuSheen .9s ease forwards; }
@keyframes menuSheen {
  0%   { transform: translateX(-120%); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* bars: uneven lengths that even out on hover, then fold into an X */
.menu-bars { display: block; width: 20px; }
.menu-bars span {
  display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  margin: 4.5px 0; transform-origin: center;
  transition: transform .45s cubic-bezier(.22,.8,.3,1), opacity .2s ease, width .4s cubic-bezier(.22,.8,.3,1), background .35s ease;
}
.menu-bars span { background: var(--gold-soft); }
.menu-bars span:nth-child(1) { width: 20px; }
.menu-bars span:nth-child(2) { width: 13px; margin-left: auto; transition-delay: .04s; }
.menu-bars span:nth-child(3) { width: 16px; transition-delay: .08s; }
.menu-trigger:hover .menu-bars span { width: 20px; background: var(--gold); }
.menu-trigger[aria-expanded="true"] .menu-bars span { width: 20px; background: var(--gold); transition-delay: 0s; }
.menu-trigger[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-trigger[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* MENU / CLOSE label swap */
.menu-word { position: relative; display: block; height: 12px; overflow: hidden; }
.menu-word span {
  display: block; line-height: 12px; white-space: nowrap;
  transition: transform .45s cubic-bezier(.22,.8,.3,1), opacity .3s ease;
}
.mw-b { position: absolute; left: 0; top: 0; transform: translateY(100%); opacity: 0; }
.menu-trigger[aria-expanded="true"] .mw-a { transform: translateY(-100%); opacity: 0; }
.menu-trigger[aria-expanded="true"] .mw-b { transform: translateY(0); opacity: 1; }

.menu-trigger[aria-expanded="true"] {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,162,78,.09), 0 6px 22px rgba(212,162,78,.14);
}

@media (prefers-reduced-motion: reduce) {
  .menu-trigger, .menu-trigger::before, .menu-bars span, .menu-word span { transition: none; }
  .menu-trigger:hover::after { animation: none; }
}

/* --- Frosted dropdown panel --- */
.nav-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  background: rgba(12,12,12,.78); backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-top: 1px solid rgba(212,162,78,.28);
  border-bottom: 1px solid rgba(212,162,78,.18);
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-14px);
  transition: opacity .38s ease, transform .45s cubic-bezier(.22,.8,.3,1), visibility .38s;
}
.nav-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-panel-inner {
  display: grid; grid-template-columns: 1fr 300px; gap: 56px;
  padding: 44px 0 48px; align-items: start;
}

.nav-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 40px; }
.nav-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-links a {
  display: grid; grid-template-columns: 30px 1fr; align-items: baseline; gap: 4px 16px;
  padding: 14px 8px; color: var(--text); position: relative;
  opacity: 0; transform: translateY(12px);
  transition: color .25s ease, background .3s ease, padding-left .3s ease;
}
.nav-panel.open .nav-links a { animation: npIn .5s cubic-bezier(.22,.8,.3,1) forwards; }
.nav-panel.open .nav-links li:nth-child(1) a { animation-delay: .06s; }
.nav-panel.open .nav-links li:nth-child(2) a { animation-delay: .11s; }
.nav-panel.open .nav-links li:nth-child(3) a { animation-delay: .16s; }
.nav-panel.open .nav-links li:nth-child(4) a { animation-delay: .21s; }
.nav-panel.open .nav-links li:nth-child(5) a { animation-delay: .26s; }
.nav-panel.open .nav-links li:nth-child(6) a { animation-delay: .31s; }
.nav-panel.open .nav-links li:nth-child(7) a { animation-delay: .36s; }
@keyframes npIn { to { opacity: 1; transform: none; } }
.nav-links a:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(212,162,78,.09), transparent 70%); }
.np-num {
  font-size: 10px; letter-spacing: 2px; color: var(--gold-deep);
  font-variant-numeric: tabular-nums; transition: color .25s ease;
}
.np-label {
  font-family: var(--serif); font-size: 25px; font-weight: 600; color: var(--white);
  letter-spacing: .5px; transition: color .25s ease;
}
.np-desc {
  grid-column: 2; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.nav-links a:hover .np-label, .nav-links a.active .np-label { color: var(--gold); }
.nav-links a:hover .np-num, .nav-links a.active .np-num { color: var(--gold); }
.nav-links a.active { background: linear-gradient(90deg, rgba(212,162,78,.1), transparent 70%); }
.nav-links a.active::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--gold);
}

.np-aside { border-left: 1px solid rgba(255,255,255,.08); padding-left: 40px; }
.np-aside-head {
  display: block; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.np-mail { display: block; font-family: var(--serif); font-size: 16px; color: var(--gold); margin-bottom: 26px; word-break: break-all; }
.np-social { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 28px; }
.np-social a {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  transition: all .25s ease;
}
.np-social a:hover { color: var(--gold); border-color: var(--gold); background: rgba(212,162,78,.08); }
.np-aside-cta { width: 100%; justify-content: center; }

/* --- Scrim behind panel --- */
.nav-scrim {
  position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.nav-scrim.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .nav-panel, .nav-links a, .nav-scrim { transition: none; }
  .nav-panel.open .nav-links a { animation: none; opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 150px 0 110px; position: relative; overflow: hidden;
  background: #0a0a0a url("hero-bg.svg") center right / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 85% at 20% 40%, rgba(10,10,10,.55), transparent 60%),
    radial-gradient(40% 60% at 90% 20%, rgba(232,198,122,.06), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 22px; }
.hero h1 .line2 { color: var(--gold); }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 500px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1;
  background: radial-gradient(58% 58% at 52% 46%, rgba(212,162,78,.14), transparent 72%);
  display: grid; place-items: center;
}
.hero-visual .glow-ring {
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, transparent, rgba(212,162,78,.55), transparent 60%);
  filter: blur(6px); animation: spin 14s linear infinite;
}
.hero-visual .monogram {
  position: absolute; font-family: var(--serif); font-size: clamp(80px,14vw,150px);
  color: var(--gold); font-weight: 700; text-shadow: 0 0 40px rgba(212,162,78,.4);
}
@keyframes spin { to { transform: rotate(360deg); } }
#heroCanvas { position: absolute; inset: 0; z-index: 2; }
#heroCanvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-visual .hint {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  z-index: 3; pointer-events: none; opacity: .7;
}

.stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat .num { font-family: var(--serif); font-size: 34px; color: var(--gold); }
.stat .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.cards .card:nth-child(1) { transition-delay: .05s; }
.cards .card:nth-child(2) { transition-delay: .15s; }
.cards .card:nth-child(3) { transition-delay: .25s; }
.card::before { content:""; position:absolute; top:0; left:0; height:3px; width:0; background:linear-gradient(90deg,var(--gold),var(--gold-soft)); transition:width .35s ease; }
.card::after { content:""; position:absolute; inset:0; background:radial-gradient(120% 80% at 50% -10%, rgba(212,162,78,.10), transparent 60%); opacity:0; transition:opacity .35s ease; pointer-events:none; }
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow:0 24px 50px rgba(0,0,0,.5); transition-delay:0s; }
.card:hover::before { width:100%; }
.card:hover::after { opacity:1; }
.card .num { position:absolute; top:14px; right:22px; font-family:var(--serif); font-size:58px; line-height:1; font-weight:700; color:rgba(212,162,78,.10); pointer-events:none; transition:color .35s ease; }
.card:hover .num { color:rgba(212,162,78,.20); }
.card .icon {
  position:relative; z-index:1; width:56px; height:56px; border-radius:14px;
  background:rgba(212,162,78,.12); border:1px solid rgba(212,162,78,.28);
  display:grid; place-items:center; margin-bottom:20px; color:var(--gold);
  transition:transform .3s ease, background .3s ease, box-shadow .3s ease;
}
.card .icon svg { width:26px; height:26px; }
.card:hover .icon { transform:scale(1.08) translateY(-2px); background:rgba(212,162,78,.2); box-shadow:0 8px 22px rgba(212,162,78,.25); }
.card h3 { position:relative; z-index:1; font-size: 21px; margin-bottom: 10px; }
.card p { position:relative; z-index:1; color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-head { grid-column: 1 / -1; margin-bottom: 4px; }
.about-tagline { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--gold-soft); font-weight: 600; margin-bottom: 18px; }
.about-photo {
  aspect-ratio: 1/1; width: 100%; max-width: 360px; margin: 0 auto;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: radial-gradient(120% 120% at 40% 20%, rgba(212,162,78,.25), transparent 55%), linear-gradient(160deg,#1b1712,#0a0a0a);
  display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 34px rgba(212,162,78,.30), 0 24px 60px rgba(0,0,0,.5);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; border-radius: 50%; }
.about-photo .initials { display: none; font-family: var(--serif); font-size: 96px; color: var(--gold); font-weight: 700; }
.about-photo.no-img .initials { display: block; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.about-text p strong { color: inherit; font-weight: 400; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin-top: 26px; }
.about-facts div { border-left: 2px solid var(--gold); padding-left: 14px; }
.about-facts .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.about-facts .v { color: var(--text); font-weight: 600; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1100px; }
.project {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: transform .18s ease, border-color .25s ease, box-shadow .25s ease;
}
.project:hover { border-color: var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.p-shine {
  position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  opacity: 0; transition: opacity .3s ease; mix-blend-mode: screen; z-index: 3;
}
.project-thumb {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--tint, #1c1811), #0a0a0a);
  border-bottom: 1px solid var(--border);
}
.project-thumb .ptag { font-family: var(--serif); font-size: 40px; color: var(--gold); opacity: .9; }
.project-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
a.project-thumb { text-decoration: none; }
a.project-thumb::after {
  content: "View live ↗"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10,10,10,.55); color: var(--gold); font-family: var(--sans);
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  opacity: 0; transition: opacity .25s ease;
}
a.project-thumb:hover::after { opacity: 1; }
.project-body { padding: 24px; }
.project-body .cat { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.project-body h3 { font-size: 20px; margin: 8px 0 10px; }
.project-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.skill-group h3 { font-size: 19px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.skill-group h3 .dot { display:none; }
.skill-ico { width:28px; height:28px; border-radius:8px; background:rgba(212,162,78,.12); border:1px solid rgba(212,162,78,.28); display:grid; place-items:center; color:var(--gold); flex-shrink:0; transition:background .25s ease, transform .25s ease, box-shadow .25s ease; }
.skill-ico svg { width:15px; height:15px; }
.skill-group:hover .skill-ico { background:rgba(212,162,78,.22); transform:translateY(-2px); box-shadow:0 6px 16px rgba(212,162,78,.20); }
.skill-group .g-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tag {
  font-size: 13.5px; padding: 8px 14px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.skill-group .skill-tag { opacity: 0; }
.skill-group.in .skill-tag { animation: skillIn .5s ease both; }
.skill-group.in .skill-tag:nth-child(1) { animation-delay: .04s; }
.skill-group.in .skill-tag:nth-child(2) { animation-delay: .09s; }
.skill-group.in .skill-tag:nth-child(3) { animation-delay: .14s; }
.skill-group.in .skill-tag:nth-child(4) { animation-delay: .19s; }
.skill-group.in .skill-tag:nth-child(5) { animation-delay: .24s; }
.skill-group.in .skill-tag:nth-child(6) { animation-delay: .29s; }
.skill-tag:hover { transform: translateY(-3px) !important; border-color: var(--gold); color: var(--gold); background: rgba(212,162,78,.12); box-shadow: 0 8px 20px rgba(212,162,78,.22); }
@keyframes skillIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .skill-group .skill-tag { opacity: 1; } .skill-group.in .skill-tag { animation: none; } }

/* ===== Skills ticker (stock-exchange style) ===== */
.skills-ticker { display: flex; flex-direction: column; gap: 18px; }
.ticker-row {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track {
  display: flex; align-items: center; width: max-content; will-change: transform;
  animation: tickerLeft 48s linear infinite;
}
.ticker-track.ticker-rev { animation: tickerRight 48s linear infinite; }
.ticker-row:hover .ticker-track { animation-play-state: paused; }
.ticker-cat {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 30px; border-right: 1px solid var(--border);
}
.ticker-cat .skill-ico { width: 30px; height: 30px; }
.ticker-cat .skill-ico svg { width: 16px; height: 16px; }
.tc-name { font-family: var(--serif); font-size: 17px; color: var(--gold); white-space: nowrap; }
.tc-tags { display: inline-flex; align-items: center; gap: 8px; }
.ticker-cat .skill-tag { opacity: 1; white-space: nowrap; }
@keyframes tickerLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes tickerRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ticker-track.ticker-rev { animation: none; }
  .ticker-row { overflow-x: auto; }
}

/* ---------- Resume ---------- */
.resume-wrap { }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-left: 0; }
.tl-item {
  position: relative; margin: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tl-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.tl-item .when { font-size: 13px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.tl-item h4 { font-size: 18px; color: var(--white); margin: 4px 0; }
.tl-item .where { color: var(--text); font-weight: 600; font-size: 15px; }
.tl-item p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.resume-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; align-self: start; }
.resume-cta h3 { font-size: 22px; margin-bottom: 10px; }
.resume-cta p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info .lead { color: var(--muted); margin-bottom: 28px; }
.contact-line { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-line .ci {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(212,162,78,.12);
  display: grid; place-items: center; color: var(--gold); flex-shrink: 0;
}
.contact-line .cl-k { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact-line .cl-v { color: var(--text); font-weight: 600; }

form.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 1px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 15px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #0a0a0a url("hero-bg.svg") center / cover no-repeat;
  border-top: 1px solid var(--border); padding: 50px 0 30px;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(10,10,10,.36), rgba(10,10,10,.52));
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h5 { color: var(--gold); font-family: var(--sans); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; margin-bottom: 14px; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { color: var(--text); font-size: 14.5px; }
.footer-cols a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Cookie banner ---------- */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 720px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--gold); border-radius: 12px;
  padding: 20px 24px; display: none; gap: 20px; align-items: center; justify-content: space-between;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); flex-wrap: wrap;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { font-size: 14px; color: var(--text); flex: 1 1 320px; }
.cookie-bar p a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 18px; font-size: 12px; }

/* ---------- Legal pages ---------- */
.legal { padding: 140px 0 80px; }
.legal h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); margin-bottom: 40px; font-size: 14px; }
.legal h2 { font-size: 24px; margin: 34px 0 12px; color: var(--gold-soft); }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; font-size: 16px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal a { text-decoration: underline; }

/* ---------- 3D decorative cubes (side gutters) ---------- */
@property --exp {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
.deco-3d {
  position: fixed; top: 0; bottom: 0; width: 150px; z-index: 1;
  pointer-events: none; perspective: 900px; overflow: hidden;
}
.deco-left  { left: 0; }
.deco-right { right: 0; }

.cube {
  position: absolute; left: 50%; width: var(--s); height: var(--s);
  margin-left: calc(var(--s) / -2);
  transform-style: preserve-3d;
  animation: cubeFloat var(--float, 9s) ease-in-out infinite,
             cubeExplode var(--ex, 7s) ease-in-out infinite;
}
.deco-left  .cube:nth-child(2) { animation-delay: 0s, -2.3s; }
.deco-left  .cube:nth-child(3) { animation-delay: 0s, -4.6s; }
.deco-right .cube:nth-child(1) { animation-delay: 0s, -1.1s; }
.deco-right .cube:nth-child(2) { animation-delay: 0s, -3.4s; }
.deco-right .cube:nth-child(3) { animation-delay: 0s, -5.7s; }
.cube-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  animation: cubeSpin var(--spin, 16s) linear infinite;
}
.cube .face {
  position: absolute; width: var(--s); height: var(--s);
  border: 1px solid rgba(212,162,78,.55);
  background: linear-gradient(135deg, rgba(212,162,78,.14), rgba(212,162,78,.02));
  box-shadow: inset 0 0 24px rgba(212,162,78,.12);
}
.cube .f-front  { transform: translateZ(calc(var(--s) / 2 * var(--exp))); }
.cube .f-back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2 * var(--exp))); }
.cube .f-right  { transform: rotateY(90deg)  translateZ(calc(var(--s) / 2 * var(--exp))); }
.cube .f-left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2 * var(--exp))); }
.cube .f-top    { transform: rotateX(90deg)  translateZ(calc(var(--s) / 2 * var(--exp))); }
.cube .f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2 * var(--exp))); }

@keyframes cubeSpin {
  from { transform: rotateX(0) rotateY(0); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}
@keyframes cubeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-26px); }
}
@keyframes cubeExplode {
  0%, 18%   { --exp: 1; }
  50%       { --exp: 2.6; }
  82%, 100% { --exp: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cube, .cube-inner { animation: none; }
}
@media (max-width: 1300px) { .deco-3d { display: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; }
  .cards, .projects-grid, .skills-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .resume-wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 340px; }
}
@media (max-width: 560px) {
  .cards, .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
}

/* ---------- Graphic Design Gallery ---------- */
.gallery-filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
.filter-btn { padding:8px 16px; border-radius:8px; border:1px solid var(--border); background:var(--surface); color:var(--muted); font-family:var(--sans); font-size:12.5px; letter-spacing:.5px; cursor:pointer; transition:all .2s ease; }
.filter-btn:hover { border-color:var(--gold); color:var(--gold); }
.filter-btn.active { background:var(--gold); color:#0a0a0a; border-color:var(--gold); font-weight:600; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.g-item { position:relative; display:block; aspect-ratio:4/3; border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#f2f2f0; }
.g-item img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; transition:transform .4s ease; }
.g-item:hover img { transform:scale(1.05); }
.g-cap { position:absolute; left:0; right:0; bottom:0; padding:13px 14px; background:linear-gradient(transparent, rgba(0,0,0,.82)); opacity:0; transition:opacity .25s ease; }
.g-item:hover .g-cap { opacity:1; }
.g-cap .gt { display:block; font-family:var(--serif); color:#fff; font-size:14.5px; line-height:1.2; }
.g-cap .gc { display:block; font-size:10.5px; color:var(--gold); text-transform:uppercase; letter-spacing:1.5px; margin-top:3px; }
.g-item.hide { display:none; }
@media (max-width:760px){ .gallery-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .gallery-grid { grid-template-columns:1fr; } }
