/* ===================================================================
   GLENN DASMARIÑAS — PORTFOLIO
   Design tokens
   =================================================================== */
:root{
  --bg:        #0a0a0c;
  --bg-soft:   #101013;
  --surface:   #17171b;
  --surface-2: #1e1e23;
  --border:    #2a2a30;
  --text:      #f2f2ee;
  --text-dim:  #b7b7bd;
  --text-mute: #77777e;
  --accent:    #d7ff3f;
  --accent-dim:#a8c72f;
  --accent-ink:#12140a;

  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

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

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

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:400; letter-spacing:0.2px; }
p{ margin:0; }

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

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

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

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--text-mute);
  font-weight:600;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background:var(--accent);
  flex:none;
}

.script{
  font-family:"Caveat", cursive;
  color:var(--accent);
  font-size:1.15em;
  font-weight:600;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  transition:transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--accent);
  color:var(--accent-ink);
}
.btn-primary:hover{ transform:translateY(-2px); background:#e6ff77; }
.btn-ghost{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
.btn svg{ width:16px; height:16px; transition:transform .25s ease; }
.btn:hover svg{ transform:translate(3px,-3px); }

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(10,10,12,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 24px;
  max-width:var(--container);
  margin:0 auto;
}
.logo{
  font-family:var(--font-display);
  font-size:20px;
  letter-spacing:0.5px;
  display:flex; align-items:center; gap:4px;
}
.logo .dot{ color:var(--accent); }

.nav-links{
  display:flex;
  gap:34px;
  font-size:13px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--text-dim);
}
.nav-links a{ position:relative; padding:6px 0; transition:color .2s ease; }
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--accent);
}

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

.burger{
  display:none;
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid var(--border);
  background:transparent;
  align-items:center; justify-content:center;
  flex-direction:column; gap:5px;
}
.burger span{ width:16px; height:2px; background:var(--text); transition:transform .25s ease, opacity .25s ease; }
.burger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-panel{
  display:none;
  position:fixed; inset:0 0 0 auto;
  width:min(78vw,320px);
  height:100vh;
  background:var(--bg-soft);
  border-left:1px solid var(--border);
  z-index:200;
  padding:100px 30px 30px;
  transform:translateX(100%);
  transition:transform .35s cubic-bezier(.7,0,.2,1);
}
.mobile-panel.open{ transform:translateX(0); }
.mobile-panel a{
  display:block;
  padding:16px 0;
  border-bottom:1px solid var(--border);
  font-size:16px; font-weight:600;
  text-transform:uppercase; letter-spacing:0.05em;
}
.scrim{
  display:none;
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  z-index:150; opacity:0; transition:opacity .3s ease;
}
.scrim.open{ opacity:1; }

@media (max-width:900px){
  .nav-links{ display:none; }
  .nav-cta .btn-primary{ display:none; }
  .burger{ display:flex; }
}

/* ===================================================================
   REVEAL ANIMATION (scroll)
   =================================================================== */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ transition-delay:calc(var(--i,0) * 90ms); }

/* ===================================================================
   HERO (home)
   =================================================================== */
.hero{
  padding:64px 0 40px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:40px;
  align-items:center;
}
.hero-copy h1{
  font-size:clamp(48px,7vw,86px);
  line-height:0.94;
  letter-spacing:-0.5px;
  text-transform:uppercase;
}
.hero-copy .role-line{
  margin-top:16px;
  font-size:13px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--text-mute);
  font-weight:600;
  display:flex; flex-wrap:wrap; gap:10px; align-items:center;
}
.hero-copy .role-line span:not(:last-child)::after{ content:"•"; margin-left:10px; color:var(--border); }
.hero-copy .lede{
  margin-top:22px;
  font-size:18px;
  color:var(--text-dim);
  max-width:46ch;
}
.hero-copy .lede strong{ color:var(--accent); font-weight:700; }
.hero-actions{ margin-top:30px; display:flex; gap:16px; flex-wrap:wrap; align-items:center; }

.hero-photo{ position:relative; }
.hero-photo .frame{
  position:relative;
  aspect-ratio:4/5;
  border-radius:var(--radius);
  background:linear-gradient(160deg,#1c1c22,#0d0d0f 70%);
  border:1px solid var(--border);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.hero-photo .frame .initials{
  font-family:var(--font-display);
  font-size:clamp(90px,14vw,170px);
  color:var(--surface-2);
  letter-spacing:-4px;
}
.badge-orbit{
  position:absolute; top:18px; right:-14px;
  width:96px; height:96px;
}
.badge-orbit svg{ width:100%; height:100%; animation:spin 14s linear infinite; }
.badge-orbit .core{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:20px; color:var(--accent);
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.info-card{
  position:absolute; left:-18px; bottom:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:16px 20px;
  font-size:13px;
  box-shadow:0 20px 40px rgba(0,0,0,.35);
}
.info-card .label{ text-transform:uppercase; font-size:10px; letter-spacing:.12em; color:var(--text-mute); margin-bottom:4px; }
.info-card .value{ font-weight:700; display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.info-card .value:last-child{ margin-bottom:0; }
.info-card .dot-live{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(215,255,63,.18); }

@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-photo{ order:-1; max-width:280px; margin:0 auto 20px; }
  .info-card{ position:static; margin-top:14px; display:inline-flex; flex-direction:column; }
  .badge-orbit{ right:-6px; }
}

/* ---------- logo strip ---------- */
.logo-strip{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:22px 0;
  overflow:hidden;
}
.logo-track{
  display:flex; gap:64px; align-items:center;
  animation:marquee 26s linear infinite;
  width:max-content;
}
.logo-strip:hover .logo-track{ animation-play-state:paused; }
.logo-track span{
  font-family:var(--font-display);
  font-size:20px;
  color:var(--text-mute);
  white-space:nowrap;
}
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- stats ---------- */
.stats{ padding:56px 0; }
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.stat{
  background:var(--surface);
  padding:34px 20px;
  text-align:center;
}
.stat .num{
  font-family:var(--font-display);
  font-size:clamp(32px,4vw,44px);
  color:var(--accent);
}
.stat .lbl{
  margin-top:8px;
  font-size:12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-mute);
}
@media (max-width:700px){ .stats-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- section heading ---------- */
.section{ padding:70px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:36px; gap:20px; flex-wrap:wrap;
}
.section-head h2{
  font-size:clamp(30px,4.2vw,46px);
  text-transform:uppercase;
  letter-spacing:-0.5px;
}
.arrow-nav{ display:flex; gap:10px; }
.arrow-nav button{
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--border); background:transparent; color:var(--text);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s ease, color .2s ease;
}
.arrow-nav button:hover{ border-color:var(--accent); color:var(--accent); }

/* ---------- category / work cards ---------- */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:18px;
}
.cat-card{
  position:relative;
  aspect-ratio:3/4;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
  border:1px solid var(--border);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:18px;
  transition:transform .35s ease, border-color .35s ease;
}
.cat-card:hover{ transform:translateY(-6px); border-color:var(--accent); }
.cat-card .tag{
  position:absolute; top:16px; left:16px;
  font-size:26px;
}
.cat-card::before{
  content:"";
  position:absolute; inset:0;
  background:var(--cat-bg, radial-gradient(circle at 70% 20%, #2a2a30, transparent 70%));
  opacity:.9; z-index:0;
}
.cat-card h3, .cat-card .meta{ position:relative; z-index:1; }
.cat-card h3{ font-size:16px; text-transform:uppercase; letter-spacing:.3px; }
.cat-card .meta{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:6px; font-size:12px; color:var(--text-mute);
}
.cat-card .meta .go{
  width:28px; height:28px; border-radius:50%; border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, border-color .25s ease;
}
.cat-card:hover .meta .go{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }

/* ---------- project cards ---------- */
.proj-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}
.proj-card{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:var(--surface);
  transition:transform .35s ease, border-color .35s ease;
}
.proj-card:hover{ transform:translateY(-6px); border-color:var(--accent); }
.proj-thumb{
  aspect-ratio:4/3;
  background:var(--cat-bg,linear-gradient(145deg,#1e1e24,#101012));
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display);
  color:var(--surface-2);
  font-size:15px;
  letter-spacing:.5px;
  text-align:center;
  padding:14px;
}
.proj-body{ padding:16px 18px 20px; }
.proj-body .k{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:6px; }
.proj-body h3{ font-size:16px; text-transform:none; font-family:var(--font-body); font-weight:700; }
.proj-body p{ margin-top:6px; font-size:13px; color:var(--text-dim); }
.proj-body .link{
  margin-top:12px; display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700; color:var(--text-dim);
  transition:color .2s ease, gap .2s ease;
}
.proj-card:hover .link{ color:var(--accent); gap:9px; }

/* ---------- testimonials ---------- */
.testi-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}
.testi{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px 22px;
}
.testi .quote-mark{ font-family:var(--font-display); font-size:36px; color:var(--accent); line-height:1; }
.testi p{ margin-top:10px; font-size:14px; color:var(--text-dim); }
.testi .who{ margin-top:16px; display:flex; align-items:center; gap:10px; }
.testi .avatar{
  width:38px; height:38px; border-radius:50%;
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:13px; color:var(--accent);
  flex:none;
}
.testi .who .n{ font-size:13px; font-weight:700; }
.testi .who .r{ font-size:11px; color:var(--text-mute); }

/* ---------- footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:56px 0 26px;
  position:relative;
  overflow:hidden;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:30px;
  margin-bottom:40px;
}
.footer-grid h4{
  font-size:12px; text-transform:uppercase; letter-spacing:.12em;
  color:var(--text-mute); margin-bottom:16px; font-family:var(--font-body); font-weight:700;
}
.footer-grid a, .footer-grid p{ font-size:14px; color:var(--text-dim); }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid ul a:hover{ color:var(--accent); }
.footer-brand .logo{ margin-bottom:12px; }
.footer-brand p{ max-width:32ch; margin-bottom:18px; }
.social-row{ display:flex; gap:10px; }
.social-row a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s ease, color .2s ease, transform .2s ease;
}
.social-row a:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-3px); }
.contact-line{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:22px; border-top:1px solid var(--border);
  font-size:12px; color:var(--text-mute); flex-wrap:wrap; gap:10px;
}
@media (max-width:800px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ===================================================================
   INNER PAGE HEADER (about/portfolio/contact)
   =================================================================== */
.page-hero{
  padding:56px 0 46px;
  border-bottom:1px solid var(--border);
}
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{
  font-size:clamp(38px,6vw,64px);
  text-transform:uppercase;
  letter-spacing:-0.5px;
}
.page-hero .sub{ margin-top:16px; color:var(--text-dim); max-width:60ch; font-size:16px; }
.crumb{ font-size:12px; color:var(--text-mute); margin-bottom:18px; }
.crumb span{ color:var(--accent); }

/* ---------- filter tabs (portfolio) ---------- */
.filter-row{
  display:flex; flex-wrap:wrap; gap:10px;
  margin:34px 0 34px;
}
.filter-btn{
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-dim);
  font-size:13px; font-weight:600;
  transition:all .25s ease;
}
.filter-btn:hover{ border-color:var(--accent); color:var(--text); }
.filter-btn.active{ background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }

.portfolio-card{ display:none; }
.portfolio-card.show{ display:flex; flex-direction:column; }

/* ---------- about page ---------- */
.about-layout{
  display:grid;
  grid-template-columns:0.9fr 1.4fr;
  gap:50px;
}
@media (max-width:900px){ .about-layout{ grid-template-columns:1fr; } }

.skill-block{ margin-bottom:26px; }
.skill-block h3{
  font-size:13px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent); font-family:var(--font-body); font-weight:800; margin-bottom:12px;
}
.tag-row{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  padding:8px 14px; border-radius:999px; border:1px solid var(--border);
  font-size:12.5px; color:var(--text-dim); background:var(--surface);
  transition:border-color .2s ease, color .2s ease;
}
.tag:hover{ border-color:var(--accent); color:var(--text); }

.timeline{ position:relative; padding-left:28px; }
.timeline::before{
  content:""; position:absolute; left:6px; top:6px; bottom:6px; width:1px; background:var(--border);
}
.tl-item{ position:relative; padding-bottom:38px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{
  content:""; position:absolute; left:-28px; top:4px; width:13px; height:13px; border-radius:50%;
  background:var(--bg); border:2px solid var(--accent);
}
.tl-item .years{ font-size:12px; color:var(--accent); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.tl-item h3{ margin-top:6px; font-size:19px; font-family:var(--font-body); font-weight:800; text-transform:none; }
.tl-item .role{ font-size:13.5px; color:var(--text-dim); margin-top:2px; }
.tl-item .loc{ font-size:12.5px; color:var(--text-mute); margin-top:4px; }

.profile-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px; margin-bottom:26px;
}
.profile-card dl{ display:grid; grid-template-columns:auto 1fr; gap:10px 16px; font-size:13.5px; margin-top:16px; }
.profile-card dt{ color:var(--text-mute); }
.profile-card dd{ margin:0; font-weight:600; }

/* ---------- contact page ---------- */
.contact-layout{
  display:grid; grid-template-columns:1fr 1.15fr; gap:50px;
}
@media (max-width:900px){ .contact-layout{ grid-template-columns:1fr; } }
.contact-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:22px 24px; display:flex; align-items:center; gap:16px; margin-bottom:14px;
  transition:border-color .2s ease, transform .2s ease;
}
.contact-card:hover{ border-color:var(--accent); transform:translateX(4px); }
.contact-card .ic{
  width:44px; height:44px; border-radius:50%; background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; color:var(--accent); flex:none;
}
.contact-card .lbl{ font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-mute); }
.contact-card .val{ font-weight:700; margin-top:2px; font-size:15px; }

.form-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:30px;
}
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-mute); margin-bottom:8px; }
.field input, .field textarea{
  width:100%; background:var(--bg-soft); border:1px solid var(--border); border-radius:10px;
  padding:13px 14px; color:var(--text); font-family:inherit; font-size:14px;
  transition:border-color .2s ease;
}
.field input:focus, .field textarea:focus{ border-color:var(--accent); outline:none; }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12px; color:var(--text-mute); margin-top:14px; }
.form-status{ margin-top:14px; font-size:13px; color:var(--accent); display:none; }
.form-status.show{ display:block; }

/* ---------- CTA band ---------- */
.cta-band{
  margin:0 auto; max-width:var(--container);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:48px 40px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  background:linear-gradient(135deg,var(--surface),var(--bg-soft));
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:clamp(26px,3.6vw,38px); text-transform:uppercase; max-width:14ch; }
.cta-band::after{
  content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%;
  background:radial-gradient(circle,rgba(215,255,63,.14),transparent 70%);
}

@media (max-width:600px){
  .cta-band{ flex-direction:column; align-items:flex-start; }
}
