/* =========================================================
   Studio East — shared design system
   Fonts: Paperlogy (self-hosted). Palette drawn from the Studio East mark.
   ========================================================= */

@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-3Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-4Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-5Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-6SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-7Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-8ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-9Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #0b2345;
  --navy-deep: #081a34;
  --ink: #1a1a1a;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --line: #e7e7e4;
  --accent: #b69b6b;
  --white: #ffffff;
  --card: #f5f6f5;
  --card-2: #eeefec;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Paperlogy", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: clamp(1160px, 62vw, 1760px); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.brand span { font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 10px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--card); color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 700; }

.nav-cta {
  margin-left: 12px; padding: 10px 20px; background: var(--navy) !important; color: var(--white) !important;
  border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-deep) !important; color: var(--white) !important; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

.main-nav-mobile { display: none; }

@media (max-width: 900px) {
  .main-nav-desktop { display: none; }
  .main-nav-mobile {
    display: flex; position: fixed; top: 76px; right: 0; bottom: 0; left: 0; z-index: 99;
    background: var(--white); flex-direction: column;
    align-items: stretch; padding: 12px var(--pad) 24px; gap: 0; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; overflow-y: auto;
  }
  .main-nav-mobile.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav-mobile a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .main-nav-mobile .nav-cta { margin: 16px 4px 0; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  min-height: 78vh; display: flex; align-items: flex-end;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,52,0.55) 0%, rgba(8,26,52,0.72) 55%, rgba(8,26,52,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 96px 0 72px; width: 100%; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.18; max-width: 820px; }
.hero .lede { margin-top: 22px; font-size: 17px; color: #e3e7ed; max-width: 560px; font-weight: 400; }
.hero-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--navy-deep); }
.btn-primary:hover { background: #c7ac7c; }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-deep); }

/* Page header (non-home pages) */
.page-hero {
  background: var(--navy); color: var(--white); padding: 168px 0 64px;
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.page-hero .lede { color: #dbe1ea; max-width: 640px; margin-top: 16px; font-size: 16px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); }
.section-head p { margin-top: 14px; color: var(--gray); font-size: 15.5px; }
.bg-alt { background: var(--card); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy .section-head h2 { color: var(--white); }
.bg-navy .section-head p { color: #c7d0dd; }

/* ---------- Grids / cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px;
}
.card-photo { border-radius: 14px; overflow: hidden; }
.card-photo img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-photo .cap { padding: 18px 20px 22px; }
.card-photo.dark { background: var(--navy); color: var(--white); }
.card-num { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 14.5px; }

.stat { }
.stat .num { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stat .label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.stat .note { font-size: 12.5px; color: var(--gray); margin-top: 3px; }

.tag {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
  color: var(--ink); margin: 0 8px 8px 0;
}

.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; }
.step.active { background: var(--navy); color: var(--white); }
.step .n { font-size: 26px; font-weight: 800; color: var(--navy); }
.step.active .n { color: var(--accent); }
.step h4 { font-size: 15.5px; margin: 14px 0 8px; color: var(--navy); }
.step.active h4 { color: var(--white); }
.step p { font-size: 13px; color: var(--gray); }
.step.active p { color: #d8dee8; }

/* ---------- Gallery / masonry ---------- */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.gallery-filter button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 13.5px; font-weight: 500; color: var(--gray); transition: all 0.15s;
}
.gallery-filter button.active, .gallery-filter button:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Category jump-nav (video page) ---------- */
.jumpnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.jumpnav a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--navy); transition: all 0.15s;
}
.jumpnav a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.video-category { scroll-margin-top: 96px; }

.masonry { columns: 3 260px; column-gap: 18px; }
.masonry figure { break-inside: avoid; margin: 0 0 18px; border-radius: 12px; overflow: hidden; position: relative; }
.masonry figure a { display: block; }
.masonry img { width: 100%; display: block; }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(8,26,52,0.85));
  color: var(--white); font-size: 12.5px; font-weight: 500; opacity: 0; transition: opacity 0.2s;
}
.masonry figure:hover figcaption { opacity: 1; }
.masonry .cat { display: none; }
@media (max-width: 700px) { .masonry { columns: 1 100%; } }

/* ---------- Timeline (profile page) ---------- */
.timeline { display: grid; grid-template-columns: 96px 1fr; gap: 0 20px; }
.timeline .year { font-weight: 800; color: var(--accent); font-size: 16px; padding-top: 2px; }
.timeline .items { border-left: 1px solid var(--line); padding: 0 0 36px 20px; margin-left: 4px; }
.timeline .items:last-child { padding-bottom: 0; }
.timeline .item { padding-bottom: 14px; }
.timeline .item:last-child { padding-bottom: 0; }
.timeline .item .proj { font-size: 14.5px; color: var(--ink); }
.timeline .item .role { font-size: 12px; color: var(--gray); margin-top: 2px; }
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } .timeline .items { border-left: none; padding-left: 0; margin-left: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.contact-info-card { background: var(--navy); color: var(--white); border-radius: 16px; padding: 40px 34px; }
.contact-info-card h3 { color: var(--white); font-size: 20px; margin-bottom: 22px; }
.contact-info-card .row { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .k { font-size: 12px; color: #9cb0cc; font-weight: 600; letter-spacing: 0.04em; }
.contact-info-card .v { font-size: 16.5px; font-weight: 700; margin-top: 5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aeb8c6; padding: 56px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand .brand span { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 13.5px; max-width: 320px; color: #93a1b4; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12.5px; color: var(--white); letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #93a1b4; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.eyebrow-wrap { display: flex; align-items: center; gap: 10px; }

/* =========================================================
   Homepage: video showreel hero, parallax layers, 3D scroll reveal
   ========================================================= */

/* ---------- Hero: full-bleed 16:9 video, no text/buttons, black letterbox ---------- */
.hero-video { background: #000; padding: 0; }
.hero-video-frame {
  position: relative; width: 100%; max-width: 1920px; margin: 0 auto;
  aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  transform-style: preserve-3d; will-change: transform, opacity; transition: transform 0.1s linear;
}
.hero-video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Parallax background blobs on content sections ---------- */
.has-blob { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.blob-navy { width: 460px; height: 460px; top: -120px; right: -100px; background: radial-gradient(circle, rgba(11,35,69,0.10), transparent 70%); }
.blob-gold { width: 420px; height: 420px; bottom: -140px; left: -100px; background: radial-gradient(circle, rgba(182,155,107,0.16), transparent 70%); }
.blob-white { width: 500px; height: 500px; top: -160px; left: 50%; margin-left: -250px; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%); }
.has-blob .wrap { position: relative; z-index: 1; }

/* ---------- 3D scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(46px) rotateX(9deg); transform-origin: 50% 100%;
  transition: opacity 0.85s cubic-bezier(.16,.84,.44,1), transform 0.85s cubic-bezier(.16,.84,.44,1);
  will-change: transform, opacity;
}
.reveal.in-view { opacity: 1; transform: none; }

.reveal-group { perspective: 1500px; }
.reveal-group .reveal-item {
  opacity: 0; transform: translateY(54px) rotateX(14deg) scale(0.94); transform-origin: 50% 100%;
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
  will-change: transform, opacity;
}
.reveal-group.in-view .reveal-item { opacity: 1; transform: none; }
.reveal-group.in-view .reveal-item:nth-child(1) { transition-delay: .02s; }
.reveal-group.in-view .reveal-item:nth-child(2) { transition-delay: .10s; }
.reveal-group.in-view .reveal-item:nth-child(3) { transition-delay: .18s; }
.reveal-group.in-view .reveal-item:nth-child(4) { transition-delay: .26s; }
.reveal-group.in-view .reveal-item:nth-child(5) { transition-delay: .34s; }

/* image parallax inside recent-work cards */
.parallax-card { position: relative; }
.parallax-img-mask { overflow: hidden; border-radius: 14px; aspect-ratio: 4/3; }
.parallax-img-mask img { width: 100%; height: 130%; aspect-ratio: auto; object-fit: cover; display: block; will-change: transform; }
.card-photo .parallax-img-mask + .cap { padding: 18px 4px 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-video-frame { transition: none !important; }
  .parallax-img-mask img { transform: none !important; }
}

/* =========================================================
   Client / project logo strip (monotone, ready for real PNGs)
   ========================================================= */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 44px; }
.logo-strip .logo-mono {
  height: 28px; width: auto; max-width: 130px; display: block; object-fit: contain;
  filter: grayscale(100%) opacity(0.55) brightness(0.65);
  transition: filter 0.2s;
}
.logo-strip .logo-text {
  font-family: "Paperlogy", sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: 0.01em;
  color: #9aa1ac; opacity: 0.85; white-space: nowrap;
}

/* =========================================================
   Portfolio thumbnail grids (video / photo / web-marketing)
   ========================================================= */
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.thumb-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.thumb-grid .card-num { margin-bottom: 6px; }
@media (max-width: 860px) {
  .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .thumb-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

.placeholder-card {
  border: 1.5px dashed var(--line); border-radius: 14px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  color: var(--gray-light); background: var(--card);
}
.placeholder-card svg { opacity: 0.5; }
.placeholder-card span { font-size: 12.5px; font-weight: 600; }

/* =========================================================
   Lightbox / carousel (photo page)
   ========================================================= */
.gallery-trigger { display: block; cursor: pointer; text-align: left; background: none; border: none; padding: 0; width: 100%; font-family: inherit; }
.gallery-trigger:hover .card-photo-inner img { transform: scale(1.03); }
.gallery-trigger:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 14px; }
.card-photo-inner { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.card-photo-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4, 12, 26, 0.92);
  display: none; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-stage { position: relative; width: min(1000px, 100%); }
.lightbox-img-wrap { width: 100%; aspect-ratio: 4/3; max-height: 78vh; border-radius: 12px; overflow: hidden; background: #000; }
.lightbox-img-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.lightbox-caption { color: #dbe1ea; font-size: 13.5px; text-align: center; margin-top: 16px; }
.lightbox-counter { color: #8c9aaf; font-size: 12px; text-align: center; margin-top: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: var(--white); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev { left: -56px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -56px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .lightbox-close { top: -50px; right: 0; width: 38px; height: 38px; }
  .lightbox-prev { left: 4px; top: auto; bottom: -50px; transform: none; width: 38px; height: 38px; }
  .lightbox-next { right: 4px; top: auto; bottom: -50px; transform: none; width: 38px; height: 38px; }
}

/* =========================================================
   Navy-section randomized photo-mosaic overlay (JS-injected)
   ========================================================= */
.bg-navy, .page-hero { position: relative; overflow: hidden; }
.bg-navy > .wrap, .page-hero > .wrap { position: relative; z-index: 2; }
.bg-navy .blob, .page-hero .blob { z-index: 0; }
.navy-photo-overlay {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fill, 90px); grid-auto-rows: 90px;
}
.navy-photo-overlay img {
  width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%;
  object-fit: cover; opacity: 0.2; display: block;
}
@media (min-width: 900px) {
  .navy-photo-overlay { grid-template-columns: repeat(auto-fill, 170px); grid-auto-rows: 170px; }
}

/* =========================================================
   AI portfolio: self-built software showcase cards
   ========================================================= */
.software-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; background: var(--white);
}
.software-card .sc-media { position: relative; background: #0c1420; }
.software-card .sc-media img.main { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 260px; }
.software-card .sc-media img.detail {
  position: absolute; right: 14px; bottom: 14px; width: 42%; border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.software-card .sc-body { padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; }
.software-card .sc-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.software-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.software-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.software-card ul.sc-points { margin-top: 16px; padding: 0; list-style: none; }
.software-card ul.sc-points li {
  font-size: 13px; color: var(--ink); padding-left: 18px; position: relative; margin-bottom: 8px;
}
.software-card ul.sc-points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 820px) {
  .software-card { grid-template-columns: 1fr; }
  .software-card .sc-media img.main { min-height: 220px; }
}

/* =========================================================
   Web portfolio link cards (web-marketing.html)
   ========================================================= */
.webproject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .webproject-grid { grid-template-columns: 1fr; } }
.webproject-card {
  display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--white); transition: transform 0.2s, box-shadow 0.2s;
}
.webproject-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(11,35,69,0.14); }
.webproject-card .wp-shot { aspect-ratio: 16/11; overflow: hidden; background: var(--card); }
.webproject-card .wp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.webproject-card .wp-body { padding: 20px 22px 24px; }
.webproject-card h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 6px; }
.webproject-card p { font-size: 12.5px; color: var(--gray); }
.webproject-card .wp-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--navy); }

/* =========================================================
   Video page: project cards — thumbnail crossfades to a
   second shot on hover; one title + description per project
   ========================================================= */
.video-category { margin-bottom: 52px; }
.video-category:last-child { margin-bottom: 0; }
.video-cat-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 600px) { .project-grid { gap: 16px; } }
.project-card {
  display: block; border-radius: 18px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,35,69,0.05);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s cubic-bezier(.2,.7,.3,1);
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -8px rgba(11,35,69,0.22); }
.project-thumbs { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--navy-deep); }
.project-thumbs img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity 0.55s ease, transform 6s linear;
}
.project-thumbs img.thumb-b { opacity: 0; }
.project-card:hover .project-thumbs img.thumb-a { opacity: 0; }
.project-card:hover .project-thumbs img.thumb-b { opacity: 1; }
.project-card:hover .project-thumbs img { transform: scale(1.08); }
.project-thumbs::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(3,10,22,0.38) 100%);
}
.project-thumbs::after {
  content: "\25B6"; position: absolute; z-index: 2; top: 50%; left: 50%;
  width: 44px; height: 44px; border-radius: 50%; text-indent: 2px;
  background: rgba(8,26,52,0.55); backdrop-filter: blur(3px);
  color: var(--white); font-size: 14px; display: flex; align-items: center; justify-content: center;
  transform: translate(-50%,-50%) scale(0.75); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.project-card:hover .project-thumbs::after { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.project-card .cap { padding: 20px 22px 26px; }
.project-card .card-num {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--accent);
  background: var(--card); padding: 5px 13px; border-radius: 999px; margin-bottom: 13px;
}
.project-card h3 { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.35; }
.project-card .proj-desc { font-size: 13.5px; color: var(--gray); margin-top: 7px; line-height: 1.55; }

/* =========================================================
   Key-strength feature cards (profile.html + video.html)
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-photo-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.feature-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-photo-card .fp-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; background: linear-gradient(180deg, transparent 42%, rgba(3,10,22,0.85) 100%);
}
.feature-photo-card .fp-num { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 8px; }
.feature-photo-card h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.feature-photo-card p { color: #dbe1ea; font-size: 13px; line-height: 1.55; }

/* =========================================================
   Homepage: slow horizontal rolling marquee of all video work
   ========================================================= */
.marquee-wrap { overflow: hidden; padding: 10px 0 6px; }
.marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: marqueeScroll 90s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track .project-card { flex: 0 0 300px; width: 300px; }
.marquee-track .project-thumbs { aspect-ratio: 4/3; }
@media (max-width: 700px) {
  .marquee-track .project-card { flex-basis: 220px; width: 220px; }
  .marquee-track { animation-duration: 55s; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-wrap { overflow-x: auto; }
  .marquee-track { animation: none; }
}
