/* ==========================================================================
   @manhwa.60sec — Portfolio
   Design language: comic panel grid. Sections are drawn as panels with
   visible gutters (borders), echoing manhwa page layout, instead of
   generic rounded cards / soft shadows.
   ========================================================================== */

:root {
  /* Color */
  --ink: #0b0c10;          /* base background */
  --panel: #15171f;        /* panel surface */
  --panel-raised: #1b1e28; /* slightly lighter panel */
  --paper: #f2eee4;        /* primary text, "paper" off-white */
  --paper-dim: #a9a79e;    /* secondary text */
  --paper-faint: #6f6d66;  /* tertiary text */
  --gold: #d8a94e;         /* premium accent */
  --gold-soft: #b9944a;
  --crimson: #c13b3b;      /* sparing action accent */
  --line: rgba(242, 238, 228, 0.14);
  --line-strong: rgba(242, 238, 228, 0.28);

  /* Type */
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --gutter: 1px;
  --radius: 3px;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Panel grid texture on the whole page */
body {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 1px, 1px 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.4rem; }

p { margin: 0; }

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--paper-dim);
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: #14120b;
}
.btn-primary:hover { background: #e6bd6a; }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper);
}
.brand span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--paper-dim);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--paper); }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  color: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 860px) {
  .nav-cta { display: inline-flex; }
}

@media (max-width: 859px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero — asymmetric panel: headline panel + tall video panel
   ========================================================================== */

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border: 1px solid var(--line);
}

.hero-copy {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  text-transform: uppercase;
}

.hero-sub {
  color: var(--paper-dim);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-handle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--paper-faint);
  margin-top: 4px;
}
.hero-handle strong { color: var(--paper-dim); font-weight: 600; }

.hero-video-panel {
  position: relative;
  background: var(--panel);
  min-height: 420px;
}

.hero-video-panel video,
.hero-video-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}

.panel-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 12, 16, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: none; border-bottom: 1px solid var(--line); padding: 40px 28px; }
  .hero-video-panel { min-height: 360px; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head p {
  color: var(--paper-dim);
  max-width: 46ch;
}

.section-num {
  font-family: var(--font-display);
  color: var(--paper-faint);
  font-size: 0.95rem;
}

/* ==========================================================================
   Featured Work
   ========================================================================== */

.featured-panel {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 1px;
}

.featured-media {
  position: relative;
  background: #000;
}

.featured-media video,
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 16;
  max-height: 620px;
}

.play-affordance {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-affordance svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

.featured-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid var(--line);
}

.featured-info .eyebrow-tag { align-self: flex-start; }

.featured-info h3 {
  font-size: 1.9rem;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--paper-dim);
  font-size: 0.9rem;
}
.meta-row span { display: flex; align-items: center; gap: 6px; }

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}
.tech-list li {
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .featured-panel { grid-template-columns: 1fr; }
  .featured-info { border-left: none; border-top: 1px solid var(--line); }
  .featured-media video, .featured-media img { max-height: 460px; }
}

/* Project grid */

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.project-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.project-thumb {
  position: relative;
  background: #000;
}
.project-thumb img, .project-thumb video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.project-thumb .play-affordance svg { width: 38px; height: 38px; }

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.project-body h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
}
.project-duration { color: var(--gold); font-size: 0.8rem; font-weight: 600; }
.project-desc { color: var(--paper-dim); font-size: 0.85rem; }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--paper-dim); font-size: 1.02rem; max-width: 58ch; }

.about-skills {
  border: 1px solid var(--line);
}
.about-skills li {
  list-style: none;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--paper);
}
.about-skills li:last-child { border-bottom: none; }
.about-skills li span:last-child { color: var(--paper-faint); font-size: 0.82rem; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.service-card {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.service-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}
.service-card p { color: var(--paper-dim); font-size: 0.87rem; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Creator Results
   ========================================================================== */

.results-panel {
  border: 1px solid var(--line);
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
}
.stat .label {
  color: var(--paper-dim);
  font-size: 0.85rem;
  margin-top: 6px;
}
.stat .platform {
  color: var(--paper-faint);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.results-note {
  padding: 16px 24px;
  color: var(--paper-faint);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.screenshot-slot {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.screenshot-slot:last-child { border-right: none; }
.screenshot-slot img {
  border: 1px dashed var(--line-strong);
  width: 100%;
}
.screenshot-slot .slot-label {
  font-size: 0.8rem;
  color: var(--paper-faint);
  margin-top: 10px;
}

@media (max-width: 800px) {
  .results-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-slot { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Follow / creator accounts
   ========================================================================== */

.follow-panel {
  border: 1px solid var(--line);
  padding: 56px 48px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  background: var(--panel);
}
.follow-panel p { color: var(--paper-dim); max-width: 52ch; }
.follow-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   How I Work
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.step {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.step p { color: var(--paper-dim); font-size: 0.92rem; }

.revision-note {
  margin-top: 22px;
  color: var(--paper-faint);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact / final CTA
   ========================================================================== */

.cta-section {
  border-bottom: none;
  padding: 100px 0 90px;
}

.cta-panel {
  border: 1px solid var(--line);
  padding: 64px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 169, 78, 0.08), transparent 60%),
    var(--panel);
}

.cta-panel h2 {
  text-transform: uppercase;
  max-width: 18ch;
}
.cta-panel .hero-sub { text-align: center; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 32px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--paper-faint);
  font-size: 0.82rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--paper-dim); }

/* ==========================================================================
   Utility
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
