/* ─── Portfolio template — bold, minimal, creative-showcase ───
   Black/white minimalism with one bold accent. Custom display
   (Inter Tight) + monospace accents.
   ----------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;700;800;900&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg:        #fafaf7;
  --bg-alt:    #f0f0eb;
  --bg-deep:   #0a0a0a;
  --fg:        #0a0a0a;
  --fg-soft:   #555555;
  --fg-fade:   #999999;
  --fg-on-dark: #fafaf7;
  --accent:    #ff3b30;
  --border:    #e0e0db;

  --font-display: "Inter Tight", -apple-system, system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --type-xs:   0.75rem;
  --type-sm:   0.9375rem;
  --type-base: 1.0625rem;
  --type-lg:   1.25rem;
  --type-xl:   1.5rem;
  --type-2xl:  2rem;
  --type-3xl:  3rem;
  --type-4xl:  clamp(2.5rem, 6vw, 4.5rem);
  --type-display: clamp(3.5rem, 12vw, 9rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       320ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--type-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: var(--fg); transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--space-8);
  mix-blend-mode: difference;
  color: var(--fg-on-dark);
}
.nav a { color: inherit; text-decoration: none; }
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-base);
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: var(--space-6); font-size: var(--type-sm); font-weight: 500; }
.nav-links a:hover { color: var(--accent); }

.hero {
  min-height: 100vh;
  padding: var(--space-32) var(--space-8) var(--space-16);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: var(--type-display);
  margin-bottom: var(--space-8);
  font-weight: 900;
  letter-spacing: -0.06em;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.hero .lede {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--fg-soft);
  max-width: 720px;
  line-height: 1.4;
}
.hero .scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  color: var(--fg-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.section {
  padding: var(--space-24) var(--space-8);
}
.section.alt   { background: var(--bg-alt); }
.section.dark  { background: var(--bg-deep); color: var(--fg-on-dark); }
.section.dark h2 { color: var(--fg-on-dark); }
.container { max-width: 1280px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }

.section-head {
  margin-bottom: var(--space-16);
}
.section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-size: var(--type-4xl);
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--fg-soft);
  font-size: var(--type-lg);
  max-width: 720px;
  margin: 0;
}

/* Work grid — variable aspect for visual rhythm */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-8);
}
.work-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--fg);
  overflow: hidden;
}
.work-item .img {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  transition: transform var(--dur) var(--ease);
}
.work-item:hover .img { transform: scale(1.02); }
.work-item .info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-4);
  gap: var(--space-3);
}
.work-item h3 {
  font-family: var(--font-body);
  font-size: var(--type-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-item .meta {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  color: var(--fg-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-item .desc {
  color: var(--fg-soft);
  font-size: var(--type-sm);
  margin-top: var(--space-2);
}
.work-item.col-7 { grid-column: span 7; }
.work-item.col-5 { grid-column: span 5; }
.work-item.col-6 { grid-column: span 6; }
.work-item.col-12 { grid-column: span 12; }
.work-item.col-12 .img { aspect-ratio: 16/7; }

/* Stats / numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-12);
  padding: var(--space-12) 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.stat .label {
  font-family: var(--font-mono);
  font-size: var(--type-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: var(--space-3);
}

/* Skills strip */
.skills {
  font-family: var(--font-mono);
  font-size: var(--type-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  color: var(--fg-soft);
}
.skills span::before { content: "—"; color: var(--accent); margin-right: var(--space-2); }

/* Contact CTA */
.cta {
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
  text-decoration: none;
  position: relative;
}
.cta:hover { color: var(--accent); }
.cta::after {
  content: " →";
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.cta:hover::after { transform: translateX(8px); }

footer {
  border-top: 1px solid var(--border);
  padding: var(--space-12) var(--space-8);
}
footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-6);
}
footer .footer-grid p { margin: 0; color: var(--fg-soft); font-size: var(--type-sm); }
footer .footer-grid a { color: var(--fg); text-decoration: none; }
footer .footer-grid a:hover { color: var(--accent); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (max-width: 880px) {
  .nav { padding: var(--space-4); }
  .nav-links { display: none; }
  .hero { padding: var(--space-24) var(--space-4) var(--space-8); }
  .section { padding: var(--space-16) var(--space-4); }
  .work-item.col-7,
  .work-item.col-5,
  .work-item.col-6,
  .work-item.col-12 { grid-column: span 12; }
  .work-item.col-12 .img { aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
