@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Instrument+Serif:ital@0;1&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0A0E17;
  --bg-secondary: #0E1420;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --accent: #4B8BBE;
  --accent-light: #6BA3D6;
  --gold: #C9943E;
  --gold-light: #D4A853;
  --gold-glow: rgba(201, 148, 62, 0.12);
  --accent-glow: rgba(75, 139, 190, 0.12);
  --white: #F1F5F9;
  --white-90: rgba(241, 245, 249, 0.9);
  --white-70: rgba(241, 245, 249, 0.7);
  --muted: #94A3B8;
  --dim: #64748B;
  --rule: #1C2637;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-w: 1140px;
  --px: clamp(20px, 5vw, 48px);
}

html { scroll-behavior: smooth; }
body { background: var(--bg-primary); color: var(--muted); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 14, 23, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--rule); }
.nav__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; }
.nav__logo img { height: 36px; width: 36px; object-fit: cover; border-radius: 50%; }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; transition: color 0.2s; }
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--muted); margin: 5px 0; transition: all 0.3s; }
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10, 14, 23, 0.97); backdrop-filter: blur(24px); flex-direction: column; padding: 24px var(--px); gap: 20px; border-bottom: 1px solid var(--rule); }
  .nav__links.open { display: flex; }
}

/* HERO WITH BANNER */
.hero { min-height: 90vh; display: flex; align-items: center; padding-top: 64px; position: relative; overflow: hidden; }
.hero--banner { background: url('img/banner.png') center center / cover no-repeat; }
.hero--banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 14, 23, 0.92) 0%, rgba(10, 14, 23, 0.7) 50%, rgba(10, 14, 23, 0.4) 100%); }
.hero--dark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(201, 148, 62, 0.05) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(75, 139, 190, 0.04) 0%, transparent 50%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; max-width: 780px; }
.hero__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.hero__title { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); line-height: 1.08; color: var(--white); margin-bottom: 28px; font-weight: 400; }
.hero__title--single { white-space: nowrap; font-size: clamp(36px, 5.5vw, 64px); }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__subtitle { font-size: 17px; line-height: 1.8; color: var(--white-70); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: transparent; border: 1px solid rgba(201, 148, 62, 0.4); padding: 14px 28px; cursor: pointer; transition: all 0.3s; }
.hero__cta:hover { border-color: var(--gold); background: var(--gold-glow); color: var(--white); }

/* METRICS */
.metrics { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 36px 0; background: var(--bg-secondary); }
.metrics__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 900px; margin: 0 auto; }
.metric { text-align: center; padding: 0 8px; border-right: 1px solid var(--rule); }
.metric:last-child { border-right: none; }
.metric__value { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); color: var(--white); line-height: 1.1; margin-bottom: 4px; }
.metric__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 768px) { .metrics__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 0; } .metric { border-right: none; } }
@media (max-width: 480px) { .metrics__grid { grid-template-columns: repeat(2, 1fr); } }

/* SECTION HEADERS */
.section__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.section__title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); color: var(--white); font-weight: 400; margin-bottom: 20px; line-height: 1.15; }
.section__subtitle { font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.7; }

/* VERTICAL CARDS */
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.v-card { background: var(--bg-card); border: 1px solid var(--rule); padding: 40px 32px; transition: all 0.3s; position: relative; }
.v-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--accent)); transform: scaleX(0); transition: transform 0.3s; }
.v-card:hover { background: var(--bg-card-hover); border-color: rgba(201, 148, 62, 0.25); }
.v-card:hover::before { transform: scaleX(1); }
.v-card__title { font-family: var(--font-display); font-size: 24px; color: var(--white); margin-bottom: 16px; font-weight: 400; }
.v-card__text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.v-card__link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.v-card__link:hover { color: var(--white); }
@media (max-width: 768px) { .verticals { grid-template-columns: 1fr; } }

/* FOUNDER STRIP */
.founder { background: var(--bg-secondary); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.founder__inner { display: flex; align-items: center; gap: 64px; }
.founder__text { flex: 1; }
.founder__name { font-family: var(--font-display); font-size: 28px; color: var(--white); margin-bottom: 4px; }
.founder__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 20px; }
.founder__bio { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 560px; }
.founder__link { display: inline-block; margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 768px) { .founder__inner { flex-direction: column; gap: 32px; text-align: center; } .founder__bio { max-width: 100%; } }

/* CASE STUDIES */
.case-study { border-bottom: 1px solid var(--rule); padding: 64px 0; }
.case-study:last-child { border-bottom: none; }
.case-study__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 8px; flex-wrap: wrap; }
.case-study__title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); color: var(--white); font-weight: 400; }
.case-study__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim); white-space: nowrap; }
.case-study__client { font-size: 14px; color: var(--gold-light); margin-bottom: 24px; }
.case-study__problem h4, .case-study__built h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.case-study__problem p, .case-study__built p { font-size: 15px; color: var(--muted); line-height: 1.7; }
.case-study__problem { margin-bottom: 24px; }
.case-study__built h4 { margin-bottom: 12px; }
.case-study__built ul { list-style: none; padding: 0; }
.case-study__built li { font-size: 15px; color: var(--muted); line-height: 1.7; padding-left: 20px; position: relative; margin-bottom: 8px; }
.case-study__built li::before { content: '·'; position: absolute; left: 4px; color: var(--dim); }
.case-study__images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; max-width: 680px; }
.case-study__images img { border: 1px solid var(--rule); width: 100%; height: auto; border-radius: 2px; }
.case-study__images--single { grid-template-columns: 1fr; max-width: 560px; }
@media (max-width: 768px) { .case-study__images { grid-template-columns: 1fr; max-width: 100%; } }

/* WORK GALLERY / COLLAGE */
.gallery { margin-top: 56px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery__grid img { width: 100%; height: 160px; object-fit: cover; border: 1px solid var(--rule); border-radius: 2px; transition: all 0.3s; cursor: default; }
.gallery__grid img:hover { border-color: rgba(201, 148, 62, 0.35); transform: scale(1.02); }
@media (max-width: 768px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } .gallery__grid img { height: 130px; } }
@media (max-width: 480px) { .gallery__grid img { height: 100px; } }

/* CV DOWNLOAD */
.cv-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 24px; padding: 10px 20px; border: 1px solid rgba(201, 148, 62, 0.3); transition: all 0.3s; }
.cv-link:hover { background: var(--gold-glow); border-color: var(--gold); color: var(--white); }

/* YOUTUBE BANNER */
.yt-banner { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--rule); padding: 20px 28px; margin-top: 32px; transition: border-color 0.3s; }
.yt-banner:hover { border-color: rgba(201, 148, 62, 0.35); }
.yt-banner__icon { width: 40px; height: 40px; background: #FF0000; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yt-banner__icon svg { width: 20px; height: 20px; fill: white; }
.yt-banner__text { flex: 1; }
.yt-banner__title { font-family: var(--font-body); font-size: 14px; color: var(--white); font-weight: 500; }
.yt-banner__sub { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin-top: 2px; }
.yt-banner__cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); flex-shrink: 0; }
@media (max-width: 480px) { .yt-banner { flex-wrap: wrap; } }

/* SKILLS GRID */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.skill-block__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.skill-block__items { font-size: 13px; color: var(--dim); line-height: 1.8; }
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .skills-grid { grid-template-columns: 1fr; } }

/* IP CARDS */
.ip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.ip-card { background: var(--bg-card); border: 1px solid var(--rule); padding: 36px 32px; transition: all 0.3s; }
.ip-card:hover { border-color: rgba(201, 148, 62, 0.25); }
.ip-card__title { font-family: var(--font-display); font-size: 22px; color: var(--white); margin-bottom: 12px; }
.ip-card__text { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 768px) { .ip-grid { grid-template-columns: 1fr; } }

/* PIPELINE */
.pipeline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pipeline-item { padding: 24px; border: 1px solid var(--rule); background: var(--bg-card); }
.pipeline-item__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.pipeline-item__text { font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 768px) { .pipeline-grid { grid-template-columns: 1fr; } }

/* VISUAL SHOWCASE */
.showcase { margin-top: 40px; }
.showcase img { width: 100%; border: 1px solid var(--rule); }
.showcase__caption { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-top: 12px; }

/* BIO */
.bio { max-width: 700px; }
.bio p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.bio p:first-of-type { font-family: var(--font-display); font-size: 22px; color: var(--white-90); line-height: 1.5; }

/* EDUCATION */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.edu-item__degree { font-family: var(--font-display); font-size: 20px; color: var(--white); margin-bottom: 4px; }
.edu-item__school { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.edu-item__year { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
@media (max-width: 768px) { .edu-grid { grid-template-columns: 1fr; gap: 32px; } }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.contact-info__item { margin-bottom: 28px; }
.contact-info__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.contact-info__value { font-size: 16px; color: var(--white); }
.contact-info__value a { color: var(--white); }
.contact-info__value a:hover { color: var(--gold-light); }
.contact-form input, .contact-form textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--rule); color: var(--white); font-family: var(--font-body); font-size: 14px; padding: 14px 16px; margin-bottom: 16px; outline: none; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: transparent; border: 1px solid rgba(201, 148, 62, 0.4); padding: 14px 32px; cursor: pointer; transition: all 0.3s; }
.contact-form button:hover { border-color: var(--gold); background: var(--gold-glow); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* SOCIALS */
.socials { display: flex; gap: 20px; margin-top: 16px; }
.socials a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; }
.socials a:hover { color: var(--gold-light); }

/* FOOTER */
.footer { border-top: 1px solid var(--rule); padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__copy { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.footer__links { display: flex; gap: 24px; list-style: none; }
.footer__links a { font-family: var(--font-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.footer__links a:hover { color: var(--gold-light); }

/* CTA BANNER */
.cta-banner { background: var(--bg-secondary); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; padding: 60px 0; }
.cta-banner__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--white); margin-bottom: 16px; font-weight: 400; }
.cta-banner__text { font-size: 16px; color: var(--muted); margin-bottom: 32px; }

/* DIVIDER */
.divider { height: 1px; background: var(--rule); margin: 0; border: none; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
