/* ============================================================================
   styles.css — layout, design & animation. Content lives in content.js.
   (You should rarely need to edit this file.)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #dbdbdb;            /* page background */
  --bg-soft: #eaeaea;       /* lighter panel background */
  --ink: #333333;           /* main text */
  --ink-deep: #141617;      /* deepest ink (nav, preloader) */
  --muted: #6d6d6d;         /* secondary text */
  --line: #c7c7c7;          /* borders / dividers */
  --card: #ffffff;          /* card background */
  --card-alt: #efefef;      /* testimonial card */
  --accent: #e27500;        /* THE orange */
  --accent-soft: #ef8700;

  /* His type system: General Sans everywhere (Medium for titles, Regular for
     body); Clash Display reserved ONLY for his name (hero + giant footer);
     Gloria Hallelujah for the handwritten eyebrows. */
  --font-display: "General Sans", "DM Sans", sans-serif;   /* titles/headings — General Sans Medium */
  --font-name: "Clash Display", "Space Grotesk", sans-serif; /* his name only */
  --font-body: "General Sans", "DM Sans", sans-serif;
  --font-hand: "Gloria Hallelujah", "Caveat", cursive;

  --r-pill: 50px;
  --r-card: 35px;
  --r-img: 24px;

  --pad-x: clamp(20px, 6vw, 100px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

section { padding: clamp(90px, 13vh, 150px) var(--pad-x); max-width: 1480px; margin: 0 auto; }

/* ---------- Shared headings ---------- */
.section-heading {
  font-family: var(--font-display); /* General Sans - Medium */
  font-weight: 500;
  font-size: clamp(2.3rem, 4.8vw, 3.5rem); /* ~56px cap, matching his */
  letter-spacing: -0.035em; /* his -2px @ 56px */
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: clamp(30px, 5vh, 56px);
}
.section-heading .accent { color: var(--accent); }

/* handwritten eyebrow above sections ("/ Portfolio Projects" style) */
.hand-eyebrow {
  font-family: var(--font-hand); font-weight: 400;
  font-size: 1.05rem; color: var(--ink);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 500; font-size: .88rem;
  border: 1px solid var(--line);
  transition: transform .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: #9a9a9a; }
.btn-outline:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn-ghost { background: #d2d2d2; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--ink-deep); color: #fff; }

/* ---------- Preloader (matched to his: black bg, white 3rem/700, letters rise, opacity fade-out) ---------- */
#preloader {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000; color: #fff;
  font-family: var(--font-display); /* General Sans */
  font-size: 3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 999999; opacity: 1; transition: opacity .5s ease;
  pointer-events: all;
}
#preloader.done { opacity: 0; pointer-events: none; }
#preloader-word span {
  opacity: 0; transform: translateY(20px); display: inline-block;
  animation: riseUpFade .25s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes riseUpFade { to { opacity: 1; transform: translateY(0); } }

/* ---------- Bottom pill navbar (desktop) ---------- */
#navbar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 900;
  display: flex; align-items: center; gap: 2px;
  /* His pill: near-black vertical gradient, subtle light edge, full-round, tight padding */
  background: linear-gradient(180deg, #0a0a0a 0%, #232323 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 16px 46px rgba(0,0,0,.42);
}
#navbar a {
  color: #d6d6d6; font-size: .92rem; font-weight: 500;
  padding: 12px 17px; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
#navbar a { transition: color .3s ease, background .3s ease; }
#navbar a:hover { color: #fff; }
#navbar a.active { color: #fff; }
#navbar a.nav-home svg { width: 17px; height: 17px; fill: currentColor; }
#navbar a.nav-cta {
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 12px 22px; margin-left: 6px; white-space: nowrap;
}
#navbar a.nav-cta span { white-space: nowrap; }
#navbar a.nav-cta:hover { background: var(--accent-soft); }

/* ---------- Mobile top bar ---------- */
#mobile-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 950;
  padding: 9px var(--pad-x); /* slimmer bar (~25% shorter), same font sizes */
  justify-content: space-between; align-items: center;
  background: rgba(219,219,219,.85); backdrop-filter: blur(8px);
}
.mobile-logo { font-family: var(--font-name); font-weight: 600; font-size: 1.1rem; color: var(--ink-deep); }
#hamburger { background: none; border: 0; display: flex; align-items: center; gap: 10px; padding: 6px; }
#hamburger .hb-lines { display: flex; flex-direction: column; gap: 5px; }
#hamburger .hb-lines span { width: 24px; height: 2px; background: var(--ink-deep); transition: transform .3s, opacity .3s; }
#hamburger .hb-label { font-weight: 500; font-size: 1rem; color: var(--ink-deep); }
#hamburger.open .hb-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open .hb-lines span:nth-child(2) { opacity: 0; }
#hamburger.open .hb-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#mobile-menu {
  position: fixed; inset: 0; z-index: 940;
  background: var(--ink-deep);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--pad-x);
  transform: translateX(100%); transition: transform .45s cubic-bezier(.76,0,.24,1);
}
#mobile-menu.open { transform: none; }
#mobile-menu a {
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: 2rem; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh; max-width: none;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  /* subtle embossed hexagon texture, fading toward the bottom */
  background-image:
    linear-gradient(180deg, rgba(219,219,219,.25) 0%, rgba(219,219,219,0) 30%, var(--bg) 82%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='97' viewBox='0 0 168 97'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' stroke-opacity='0.35'%3E%3Cpath d='M42 0l42 24.25v48.5L42 97 0 72.75v-48.5z'/%3E%3Cpath d='M126 0l42 24.25v48.5L126 97l-42-24.25v-48.5z' stroke='%23cccccc' stroke-opacity='0.28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 230px;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 270px 1fr;
  align-items: center; gap: clamp(24px, 4vw, 70px);
  padding: 0 var(--pad-x);
}
.hero-side { display: flex; flex-direction: column; gap: 4px; }
.hero-left { align-items: flex-start; text-align: left; }
.hero-right { align-items: flex-end; text-align: right; }
.hero-eyebrow { color: var(--muted); font-size: clamp(.95rem, 1.25vw, 1.5rem); }
.hero-name-part {
  /* matched to reference: Clash Display Semibold, 86.4px, -0.5px, lh 0.95 */
  font-family: var(--font-name); font-weight: 600;
  font-size: clamp(3.5rem, 6.6vw, 10.5rem); /* scales with viewport like his (no ~88px cap) */
  letter-spacing: -0.5px; line-height: 0.95;
  color: #2e2e2e; text-transform: uppercase;
}
.hero-time { color: var(--muted); font-size: clamp(.85rem, 1.2vw, 1.05rem); margin-top: 10px; }
.hero-card-wrap {
  /* his card is a fixed 270 x 380 (ratio 0.711) */
  width: 270px; height: 380px;
  perspective: 1400px; z-index: 20; /* his perspective; floats over Skills/About when pinned, under nav pill */
}
.hero-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.hero-card-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 24px; overflow: hidden;
  /* his exact card shadow */
  box-shadow: 0 6px 32px rgba(0,0,0,0.15);
}
.hero-card-front img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-back {
  transform: rotateY(180deg);
  background: #0d0d0d; /* dark fallback matching the steam clip's black background */
}
.hero-card-back img,
.hero-card-back video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scroll-hint {
  position: absolute; bottom: 26px; left: var(--pad-x);
  font-family: var(--font-hand); font-size: 1rem; color: var(--muted);
}

/* Mobile hero (shown under 900px): circular avatar + stacked name */
.hero-mobile { display: none; padding: 0 var(--pad-x); }
.hero-avatar {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  object-position: top; margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.hero-name-stacked {
  font-family: var(--font-name); font-weight: 600;
  font-size: clamp(2.6rem, 12vw, 4rem); letter-spacing: -0.5px; line-height: 1.05;
  color: #2e2e2e; margin: 6px 0 14px;
}
.hero-sub-mobile { color: var(--muted); font-size: 1.12rem; }
@media (max-width: 900px) {
  .hero-mobile .hero-eyebrow { font-size: 1.08rem; } /* readable without squinting */
}

/* ---------- Skills: stacked cards + sticky side photo ---------- */
.skills-layout {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(30px, 5vw, 90px); align-items: start;
}
.skill-stack { display: flex; flex-direction: column; gap: 28px; }
.skill-card {
  position: sticky;
  background: var(--card);
  border-radius: var(--r-card);
  padding: clamp(30px, 4vw, 52px);
  /* His stacked-card glow: soft light halo (70px blur, 33px spread) in his
     #eaeaea that lifts the white card off the #dbdbdb background. */
  box-shadow: 2px 2px 70px 33px #eaeaea;
  transition: transform .45s ease, box-shadow .45s ease;
}
/* His stacked cards are each nudged ±1° + translated so the stack looks
   hand-placed, then straighten and grow slightly on hover. The .skill-stack
   prefix raises specificity above the reveal system's ".anim.shown{transform:none}"
   so the tilt survives after a card fades into view. */
.skill-stack .skill-card:nth-child(odd)  { transform: rotate(-1deg) translateX(4px); }
.skill-stack .skill-card:nth-child(even) { transform: rotate(1deg) translateX(-4px); }
.skill-stack .skill-card:hover {
  transform: rotate(0deg) translateX(0) scale(1.03);
  z-index: 4;
}
.skill-eyebrow { font-family: var(--font-hand); font-size: .95rem; color: var(--ink); margin-bottom: 14px; }
.skill-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); letter-spacing: -0.5px;
  color: var(--ink); margin-bottom: 14px;
}
.skill-card h3 .skill-num { color: var(--ink); }
.skill-card p { color: var(--muted); max-width: 560px; margin-bottom: 16px; }
.skill-tools { list-style: none; color: var(--muted); font-size: .95rem; }
.skill-tools li { padding: 3px 0 3px 20px; position: relative; }
.skill-tools li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.skills-side { min-height: 1px; } /* dock space for the traveling card */

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; }
.about-body { max-width: 620px; } /* card docks in the open right space, like the reference */
.about-identity { color: var(--muted); margin-bottom: 18px; }
.about-education { margin: 6px 0 22px; }
.about-education-label {
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px;
}
.about-education-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.edu-degree { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.edu-school { color: var(--muted); }
.edu-dates { color: var(--accent); font-weight: 500; font-size: .9rem; margin-left: auto; }
@media (max-width: 560px) { .edu-dates { margin-left: 0; width: 100%; } }
.about-body p { margin-bottom: 18px; font-size: 1.02rem; }
.about-photo-wrap { border-radius: var(--r-img); overflow: hidden; position: sticky; top: 90px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.about-photo-wrap img { width: 100%; aspect-ratio: 0.72; object-fit: cover; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.about-stars { color: var(--accent); letter-spacing: 2px; font-size: .85rem; }
.about-trusted {
  font-family: var(--font-display); font-weight: 500;
  color: var(--ink); font-size: 1.25rem; margin-bottom: 22px !important;
}
.socials-row { display: flex; flex-wrap: wrap; gap: 10px; }
.socials-row a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #9a9a9a; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.socials-row a:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.socials-row a svg { width: 19px; height: 19px; display: block; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 30px 0; }
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.45rem); color: var(--muted);
  white-space: nowrap;
}
.marquee-track span { padding: 0 14px; }
.marquee-track .sep { color: var(--muted); padding: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Certifications table ---------- */
.cert-table { border-top: 1px solid var(--line); }
.cert-row {
  display: grid; grid-template-columns: 2fr 1.4fr auto; gap: 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cert-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.6rem); letter-spacing: -0.3px; color: var(--ink); }
.cert-org { color: var(--muted); }
.cert-year { color: var(--muted); }

/* ---------- Statement ---------- */
.statement-text {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1.7rem, 3.9vw, 3rem); letter-spacing: -0.5px; line-height: 1.28;
  max-width: 1100px;
}
.statement-text .word { color: #b5b5b5; transition: color .3s; }
.statement-text .word.lit { color: var(--ink-deep); }
.statement-text .word.lit.key { color: var(--accent); }

/* ---------- Portfolio ---------- */
.portfolio-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 5vh, 56px);
}
.portfolio-head .section-heading { margin-bottom: 10px; }
.portfolio-sub { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.project-card {
  background: #e3e3e3; border-radius: var(--r-card); overflow: hidden;
  padding: clamp(22px, 2.6vw, 40px);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.14); background: #e9e9e9; }
.project-thumb { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; box-shadow: 0 16px 40px rgba(0,0,0,.18); background: #cfcfcf; }
.project-thumb img, .project-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.project-card:hover .project-thumb img, .project-card:hover .project-thumb video { transform: scale(1.04); }

/* ---------- Render/Viewport compare slider (portfolio 3D Work tab) ---------- */
.cmp-slider {
  position: relative; border-radius: var(--r-img); overflow: hidden;
  aspect-ratio: 16/9; margin: 6px 0 42px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
  user-select: none; cursor: ew-resize; touch-action: pan-y;
}
.cmp-slider .cmp-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.cmp-clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.cmp-label {
  position: absolute; top: 14px; z-index: 3;
  background: rgba(10,10,10,.78); color: #fff;
  font-size: .78rem; font-weight: 500; letter-spacing: .3px;
  padding: 5px 12px; border-radius: 6px; pointer-events: none;
}
.cmp-label-l { left: 14px; }
.cmp-label-r { right: 14px; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2;
  width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 12px rgba(0,0,0,.45);
}
.cmp-handle .cmp-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.cmp-handle .cmp-grip::before {
  content: "◂ ▸"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: .7rem; color: #141617; letter-spacing: 1px;
}
.project-body { padding: 22px 4px 4px; }
.project-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.3px; color: var(--ink); }
.project-tags { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.project-metric { color: var(--accent); font-weight: 500; font-size: .9rem; margin-top: 10px; }
.project-cat {
  color: var(--accent); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.project-link {
  display: inline-block; margin-top: 12px; font-weight: 500; font-size: .9rem;
  color: var(--ink); border-bottom: 1.5px solid var(--accent);
}
.project-link:hover { color: var(--accent); }

/* ---------- Experience ---------- */
.exp-table { border-top: 1px solid var(--line); }
.exp-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "role dates" "company dates";
  gap: 6px 20px;
  padding: 26px 4px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.exp-role { grid-area: role; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.7rem); letter-spacing: -0.3px; color: var(--ink); }
.exp-company { grid-area: company; color: var(--muted); }
.exp-dates { grid-area: dates; color: var(--muted); white-space: nowrap; }

/* ---------- Testimonials ---------- */
/* His reviews: a 3-column masonry inside a .faded-cards wrapper whose bottom
   fades into the page background (his "blur on the last set of reviews"). */
.faded-cards { position: relative; }
.faded-cards::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%;
  height: 360px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, rgba(219, 219, 219, 0) 0%, var(--bg) 90%);
}
.testimonial-grid { columns: 3; column-gap: 24px; }
.testimonial-card {
  break-inside: avoid; margin: 0 0 24px;
  background: var(--card-alt); border-radius: 22px;
  padding: 30px;
}
.testimonial-stars { color: var(--accent); letter-spacing: 3px; font-size: .8rem; margin-bottom: 14px; }
.testimonial-quote { font-size: 1.02rem; color: var(--ink); margin-bottom: 18px; }
.testimonial-name { font-weight: 600; color: var(--ink-deep); font-size: .95rem; }
.testimonial-title { color: var(--muted); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 940px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: -0.3px; color: var(--ink);
}
.faq-q .faq-icon { color: var(--accent); font-size: 1.6rem; font-weight: 400; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; color: var(--muted); }
.faq-a p { padding: 0 4px 26px; max-width: 780px; }

/* ---------- Contact ---------- */
.contact-sub { color: var(--muted); margin-top: -24px; margin-bottom: 46px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
#contact-form { display: flex; flex-direction: column; gap: 22px; }
#contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: .95rem; color: var(--ink); }
#contact-form input, #contact-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid #a8a8a8;
  padding: 10px 2px; resize: vertical; border-radius: 0;
}
#contact-form input::placeholder, #contact-form textarea::placeholder { color: #a0a0a0; }
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
#contact-status { border: 0; display: flex; flex-wrap: wrap; gap: 18px; }
#contact-status legend { font-weight: 500; font-size: .95rem; color: var(--ink); margin-bottom: 12px; }
#contact-status label {
  flex-direction: row; align-items: center; gap: 8px;
  font-weight: 400; color: var(--muted); cursor: pointer;
}
#contact-status input { accent-color: var(--accent); width: 16px; height: 16px; }
.btn-submit { justify-content: center; width: 100%; padding: 16px; font-size: 1rem; margin-top: 8px; }
.form-note { color: var(--muted); font-size: .82rem; min-height: 1em; }
.contact-photo-wrap { position: relative; border-radius: var(--r-img); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); margin-top: -120px; }
.contact-photo-wrap img { width: 100%; aspect-ratio: 0.72; object-fit: cover; }
.contact-photo-name {
  position: absolute; left: 22px; bottom: 16px;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
/* "Top Rated" laurel badge over the contact photo */
.rated-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 84px; height: 84px; display: grid; place-items: center;
  color: #dca828; /* golden laurel */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  pointer-events: none;
}
.rated-laurel { position: absolute; inset: 0; width: 100%; height: 100%; }
.rated-inner { position: relative; display: grid; justify-items: center; line-height: 1; }
.rated-star { color: #dca828; font-size: .78rem; }
.rated-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: .6rem; letter-spacing: .4px; text-transform: uppercase;
  color: #fff; text-align: center; margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ---------- Footer (light, giant name) ---------- */
#footer { background: var(--bg); padding: 20px 0 110px; }
/* His footer marquee sits directly under the giant name: large (64px),
   General Sans Medium, dark ink, borderless. */
.footer-marquee { padding: 4px 0 46px; }
.footer-marquee .marquee-track {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -1px;
}
.footer-giant {
  font-family: var(--font-name); font-weight: 500; /* Clash Display - Medium */
  font-size: 16vw; letter-spacing: -0.5px; line-height: 1.15; /* his 16vw — spans the window edge to edge */
  text-align: center; padding: clamp(20px, 5vh, 60px) 0 10px;
  white-space: nowrap;
  /* transparent fill + gray outline (per Tashii's preference) */
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #c6c6c6;
  text-stroke: 2px #c6c6c6;
}

/* Back-to-top tab — his exact spec: fixed near-black tab flush to the
   bottom-right edge, rounded top corners, hidden until you scroll down. */
#to-top {
  position: fixed; right: 75px; bottom: 0; z-index: 850;
  width: 48px; height: 35px;
  background: var(--ink-deep); /* #141617 */
  border-radius: 6px 6px 0 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
#to-top.show { opacity: 1; pointer-events: auto; }
#to-top:hover { background: #000; }
#to-top .to-top-arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #fff;
  margin-top: -1px;
}
@media (max-width: 900px) { #to-top { right: 18px; } }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 20px 46px; }
.footer-link { color: var(--ink); font-size: 1.05rem; transition: color .2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 26px var(--pad-x) 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9rem;
}

/* ---------- Subpage (portfolio.html) ---------- */
.subpage-bar {
  position: sticky; top: 0; z-index: 900;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--pad-x);
  background: rgba(219,219,219,.85); backdrop-filter: blur(8px);
}
.back-link { font-weight: 500; color: var(--ink-deep); }
.back-link:hover { color: var(--accent); }
.btn-small { padding: 9px 20px; font-size: .85rem; }
.pf-eyebrow { font-family: var(--font-hand); font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -18px 0 44px; }
.pf-tab {
  border: 1px solid #9a9a9a; background: transparent; color: var(--ink);
  border-radius: var(--r-pill); padding: 10px 20px;
  font-weight: 500; font-size: .9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.pf-tab:hover { border-color: var(--ink-deep); }
.pf-tab.active { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.pf-tab.active .pf-count { color: var(--accent-soft); }
.pf-count { color: var(--accent); margin-left: 4px; }
/* filter reflow: grid fades out, new cards fade/rise in with a slight stagger */
#pf-grid.pf-fading { opacity: 0; transition: opacity .18s ease; }
#pf-grid .project-card { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
#pf-grid .project-card.pf-in { opacity: 1; transform: none; }
.pf-download {
  margin-top: 60px; padding: 36px; background: var(--ink-deep); color: #fff;
  border-radius: var(--r-card);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.pf-download .btn-solid:hover { background: #fff; border-color: #fff; color: var(--ink-deep); }
.subpage-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 30px var(--pad-x); border-top: 1px solid var(--line); color: var(--muted);
}
.subpage-footer .socials-row a { width: 40px; height: 40px; }

/* ---------- Background video layer (hero & statement) ---------- */
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1; opacity: 0;
  transition: opacity 1.2s ease;
}
/* his hero video is opacity 1, no filter — a bright high-key clip. Ours is
   played full-strength and lightened slightly so the shadows read as airy
   as his rather than gray. */
.bg-video.playing { opacity: 1; }
/* hero must NOT clip: the traveling card leaves the section. z-index keeps
   the card painting above the sections it passes over. */
#hero { position: relative; z-index: 5; }
#statement { position: relative; overflow: hidden; }
#statement .bg-video.playing { opacity: .14; filter: none; }

/* Static progressive-blur bar, fixed to the bottom of the viewport — his exact
   180px spec. */
#bottom-blur {
  position: fixed; left: 0; right: 0; bottom: 0; height: 180px;
  pointer-events: none; z-index: 800;
}
#bottom-blur .blur-layer { position: absolute; inset: 0; will-change: backdrop-filter; }
/* His hero "fullwidth-overlay": a light wash over the whole video — 70% opaque
   #f0f0f0 at the top hazing the hexagons, fading to solid #eaeaea at the bottom.
   THIS is what softens his hexagons (reads like a blur but is a light overlay). */
#hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* his wash, but ending at OUR page bg so the hero blends seamlessly into
     the next section (no visible line/color step at the boundary) */
  background: linear-gradient(180deg, rgba(240, 240, 240, 0.7) 0%, rgba(234, 234, 234, 0.9) 82%, var(--bg) 100%);
}
#statement::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, var(--bg) 97%);
}
#hero > *, #statement > * { position: relative; z-index: 1; }
#hero > .bg-video, #statement > .bg-video {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; z-index: -1;
}
#hero > .hero-scroll-hint { position: absolute; }
/* the traveling card floats above section content */
#hero > .hero-grid { z-index: 2; }

/* ---------- Reveal-on-scroll system (fadeInUp/Down/Left + delays) ---------- */
.reveal, .anim {
  opacity: 0;
  filter: blur(8px); /* his reveal: content clears from an 8px blur into focus */
  transition: opacity 1s cubic-bezier(.39,.575,.565,1), transform 1s cubic-bezier(.39,.575,.565,1), filter 1s cubic-bezier(.39,.575,.565,1);
}
.reveal, .anim-up { transform: translateY(40px); }
.anim-down { transform: translateY(-40px); }
.anim-left { transform: translateX(-40px); }
.anim-d1 { transition-delay: .1s; }
.anim-d2 { transition-delay: .2s; }
.anim-d3 { transition-delay: .3s; }
.anim-d5 { transition-delay: .5s; }
.reveal.shown, .anim.shown { opacity: 1; transform: none; filter: blur(0); }

/* ---------- Nav CTA hover text swap ("Contact me" -> "Hello, it's me") ---------- */
#navbar a.nav-cta { position: relative; overflow: hidden; }
#navbar a.nav-cta .cta-txt { display: block; transition: transform .35s cubic-bezier(.76,0,.24,1); }
#navbar a.nav-cta .cta-alt {
  position: absolute; left: 0; right: 0; top: 100%; text-align: center;
  transition: transform .35s cubic-bezier(.76,0,.24,1);
}
#navbar a.nav-cta:hover .cta-txt { transform: translateY(-160%); }
#navbar a.nav-cta:hover .cta-alt { transform: translateY(-135%); }

/* Nav item hover: label slides up, a duplicate rises into place (his text_slide_up) */
#navbar a.nav-link { position: relative; overflow: hidden; }
#navbar a.nav-link .nav-txt, #navbar a.nav-link .nav-alt {
  display: block; transition: transform .35s cubic-bezier(.76,0,.24,1);
}
#navbar a.nav-link .nav-alt {
  position: absolute; left: 0; right: 0; top: 100%; text-align: center;
}
#navbar a.nav-link:hover .nav-txt { transform: translateY(-160%); }
#navbar a.nav-link:hover .nav-alt { transform: translateY(-135%); }

/* ---------- Masked marquee edges ---------- */
.marquee.masked {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- Testimonials: fewer masonry columns on smaller screens ---------- */
@media (max-width: 1000px) { .testimonial-grid { columns: 2; } }
@media (max-width: 640px)  { .testimonial-grid { columns: 1; } .testimonial-card { padding: 24px; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #navbar { display: none; }
  #mobile-bar { display: flex; }
  body { padding-top: 56px; }

  /* mobile hero: avatar variant replaces the split-name grid + card */
  .hero-grid { display: none; }
  .hero-mobile { display: block; }
  #hero { min-height: 88vh; }
  .hero-scroll-hint { display: none; }

  .skills-layout { grid-template-columns: 1fr; }
  .skills-side { display: none; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static; max-width: 420px; }
  .contact-photo-wrap { margin-top: 0; } /* the desktop -120px lift doesn't apply stacked */
  .project-grid { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 1fr; gap: 4px; }
  .exp-row { grid-template-columns: 1fr; grid-template-areas: "role" "company" "dates"; }
  .footer-giant { white-space: normal; }
  .portfolio-head { flex-direction: column; }

  /* Mobile reviews: single auto-scrolling column (the archived
     testimonials-columns treatment) instead of a long static list */
  .faded-cards {
    max-height: 72vh; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
  }
  .faded-cards::after { display: none; } /* mask replaces the bottom fade */
  .testimonial-grid {
    columns: unset; display: flex; flex-direction: column; gap: 16px;
    width: 100%; animation: testi-mobile-scroll 60s linear infinite;
  }
  .testimonial-grid .testi-dup { display: block; }
  .testimonial-card { margin: 0; }
  @keyframes testi-mobile-scroll { to { transform: translateY(-50%); } }
}
/* duplicated review cards exist only to make the mobile loop seamless */
.testi-dup { display: none; }
@media (prefers-reduced-motion: reduce) {
  .testimonial-grid { animation: none !important; }
}
