@font-face{
    font-family: "Poppins";
    src: url("Font/Poppins-Regular.woff2") format("woff2");
}


/* ---------- Reset / base ---------- */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: "Poppins", system-ui, sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    font-weight: 300;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

  ::selection { background: #f5f5f5; color: #0a0a0a; }

  /* ---------- Tokens ---------- */
  :root {
    --bg: #0a0a0a;
    --bg-soft: #111;
    --line: rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.16);
    --fg: #f5f5f5;
    --fg-dim: rgba(245,245,245,.6);
    --fg-faint: rgba(245,245,245,.4);
    --accent: oklch(72% 0.15 250);
    --pad-x: clamp(20px, 5vw, 80px);
    --section-y: clamp(80px, 12vw, 160px);
  }

  /* ---------- Grain overlay ---------- */
  body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .035;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
  }

  /* ---------- Nav ---------- */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad-x);
    background: rgba(10,10,10,.6);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, padding .3s ease;
  }
  .nav.scrolled { border-bottom-color: var(--line); padding-block: 14px; }
  .nav__brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  }
  .nav__brand img { height: 70px; width: auto; }
  .nav__links { display: none; gap: 36px; }
  .nav__links a {
    font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
    color: var(--fg-dim); position: relative; padding: 6px 0;
    transition: color .25s ease;
  }
  .nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--fg);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.7,0,.3,1);
  }
  .nav__links a:hover { color: var(--fg); }
  .nav__links a:hover::after { transform: scaleX(1); }
  .nav__cta {
    display: none;
    border: 1px solid var(--line-strong);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
  }
  .nav__cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

  .nav__burger {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); border-radius: 999px;
  }
  .nav__burger span {
    display: block; width: 16px; height: 1px; background: var(--fg);
    position: relative;
  }
  .nav__burger span::before, .nav__burger span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--fg);
    transition: transform .3s ease, top .3s ease;
  }
  .nav__burger span::before { top: -5px; }
  .nav__burger span::after  { top:  5px; }
  .nav__burger.open span { background: transparent; }
  .nav__burger.open span::before { top: 0; transform: rotate(45deg); }
  .nav__burger.open span::after  { top: 0; transform: rotate(-45deg); }

  @media (min-width: 880px) {
    .nav__links { display: flex; }
    .nav__cta { display: inline-flex; }
    .nav__burger { display: none; }
  }

  /* mobile menu */
  .menu {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 28px;
    opacity: 0; pointer-events: none; transform: translateY(-12px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu a {
    font-size: clamp(28px, 8vw, 44px); font-weight: 500; letter-spacing: -.01em;
  }
  .menu a small {
    display: block; font-size: 11px; font-weight: 400; letter-spacing: .2em;
    color: var(--fg-faint); text-transform: uppercase; text-align: center; margin-top: 4px;
  }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    min-height: 100svh;
    padding: 110px var(--pad-x) 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  .hero__image {
    position: absolute; inset: 0;
    background: url("img/Hero.jpg") center / cover no-repeat;
    z-index: 0;
  }
  /* mobile: image on top, text below; desktop: side-by-side via image-right */
  .hero__image::after {
    content: "";
    position: absolute; inset: 0;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(10,10,10,0) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.95) 90%),
      linear-gradient(180deg, rgba(10,10,10,.2) 0%, rgba(10,10,10,.1) 40%, rgba(10,10,10,.95) 100%);
  }
  .hero__inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 40px;
    height: 100%;
    flex: 1;
    justify-content: flex-end;
  }
  .hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
    color: var(--fg-dim); font-weight: 400;
  }
  .hero__eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--fg-dim);
  }
  .hero__title {
    font-size: clamp(44px, 12vw, 132px);
    line-height: .95;
    font-weight: 200;
    letter-spacing: -.03em;
    max-width: 14ch;
  }
  .hero__title em {
    font-style: normal; font-weight: 500;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero__lead {
    max-width: 56ch;
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--fg-dim);
    font-weight: 300;
  }
  .hero__cta-row {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  }
  .btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 26px; border-radius: 999px;
    font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
    border: 1px solid var(--line-strong);
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
  }
  .btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .btn--primary:hover { background: transparent; color: var(--fg); }
  .btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .btn .arrow {
    width: 14px; height: 14px; display: inline-block; position: relative;
    transition: transform .3s ease;
  }
  .btn .arrow::before {
    content: ""; position: absolute; inset: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2 12 L12 2 M5 2 H12 V9' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M2 12 L12 2 M5 2 H12 V9' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") center / contain no-repeat;
  }
  .btn:hover .arrow { transform: translate(2px, -2px); }

  .hero__meta {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; gap: 24px 40px;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
  }
  .hero__meta-item { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
  .hero__meta-item .label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint); }
  .hero__meta-item .value { font-size: 14px; font-weight: 400; color: var(--fg); }
  .hero__meta-item .value .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: oklch(72% 0.18 145); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 4px oklch(72% 0.18 145 / .15); animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 8px oklch(72% 0.18 145 / 0); } }

  @media (min-width: 880px) {
    .hero { padding-top: 140px; }
    .hero__image { left: 50%; }
    .hero__image::after {
      background:
        linear-gradient(90deg, rgba(10,10,10,1) 0%, rgba(10,10,10,.9) 30%, rgba(10,10,10,.1) 70%, rgba(10,10,10,0) 100%);
    }
    .hero__inner { max-width: 60%; }
  }
  @media (min-width: 1200px) {
    .hero__image { left: 45%; }
    .hero__inner { max-width: 55%; }
  }

  /* ---------- Section heads ---------- */
  section { position: relative; z-index: 2; }
  .section { padding: var(--section-y) var(--pad-x); }
  .section__head {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: clamp(40px, 6vw, 80px);
  }
  .section__index {
    font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-faint);
    display: flex; align-items: center; gap: 12px;
  }
  .section__index::before { content: ""; width: 28px; height: 1px; background: var(--fg-faint); }
  .section__title {
    font-size: clamp(36px, 7vw, 84px);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -.02em;
  }
  .section__title em { font-style: normal; font-weight: 500; }
  .section__sub {
    color: var(--fg-dim); max-width: 56ch; font-size: clamp(15px, 1.4vw, 17px); margin-top: 6px;
  }

  /* ---------- About ---------- */
  .about {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__lead {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -.01em;
    text-wrap: pretty;
  }
  .about__lead em {
    font-style: normal; color: var(--fg);
    background: linear-gradient(120deg, #fff, #888);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-weight: 500;
  }
  .about__body {
    color: var(--fg-dim);
    font-size: 15px;
    display: flex; flex-direction: column; gap: 18px;
  }
  .about__facts {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .about__fact { display: flex; flex-direction: column; gap: 4px; }
  .about__fact .k { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint); }
  .about__fact .v { font-size: 16px; font-weight: 400; }

  @media (min-width: 880px) {
    .about__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; }
    .about__facts { grid-template-columns: repeat(2, 1fr); }
  }

  /* ---------- Works ---------- */
  .works__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .work {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-soft);
    cursor: pointer;
    aspect-ratio: 4 / 5;
  }
  .work img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s cubic-bezier(.2,0,.2,1), filter .5s ease;
    filter: saturate(.92);
  }
  .work__veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,.85) 100%);
    opacity: .85;
    transition: opacity .4s ease;
  }
  .work__meta {
    position: absolute; left: 20px; right: 20px; bottom: 20px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateY(0);
    transition: transform .4s cubic-bezier(.2,0,.2,1);
  }
  .work__cat {
    font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-faint);
  }
  .work__title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    letter-spacing: -.01em;
  }
  .work__num {
    position: absolute; top: 18px; left: 20px;
    font-size: 11px; letter-spacing: .22em; color: var(--fg-faint);
  }
  .work__plus {
    position: absolute; top: 18px; right: 20px;
    width: 36px; height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    display: grid; place-items: center;
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
  }
  .work__plus::before, .work__plus::after {
    content: ""; position: absolute; background: var(--fg);
  }
  .work__plus::before { width: 12px; height: 1px; }
  .work__plus::after  { width: 1px; height: 12px; }
  .work:hover img { transform: scale(1.06); filter: saturate(1.05); }
  .work:hover .work__veil { opacity: 1; }
  .work:hover .work__plus { background: var(--fg); transform: rotate(90deg); border-color: var(--fg); }
  .work:hover .work__plus::before, .work:hover .work__plus::after { background: var(--bg); }

  /* bento variation on wide screens */
  @media (min-width: 720px) {
    .works__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  }
  @media (min-width: 1100px) {
    .works__grid {
      grid-template-columns: repeat(6, 1fr);
      grid-auto-flow: dense;
      gap: 22px;
    }
    .work { aspect-ratio: auto; }
    .work--a { grid-column: span 3; aspect-ratio: 4/5; }
    .work--b { grid-column: span 3; aspect-ratio: 4/5; }
    .work--c { grid-column: span 2; aspect-ratio: 3/4; }
    .work--d { grid-column: span 2; aspect-ratio: 3/4; }
    .work--e { grid-column: span 2; aspect-ratio: 3/4; }
    .work--f { grid-column: span 4; aspect-ratio: 16/10; }
    .work--g { grid-column: span 2; aspect-ratio: 4/5; }
    .work--h { grid-column: span 3; aspect-ratio: 4/5; }
    .work--i { grid-column: span 3; aspect-ratio: 4/5; }
  }

  /* ---------- Skills ---------- */
  .skills {
    border-top: 1px solid var(--line);
    background:
      radial-gradient(60% 40% at 50% 0%, oklch(35% 0.1 250 / .25), transparent 70%),
      var(--bg);
  }
  .skills__grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
  }
  .skill {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    cursor: default;
  }
  .skill:first-of-type { border-top: 1px solid var(--line); }
  .skill__name {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 400;
    letter-spacing: -.01em;
    transition: transform .4s cubic-bezier(.2,0,.2,1), letter-spacing .4s ease;
  }
  .skill__num { font-size: 11px; letter-spacing: .22em; color: var(--fg-faint); }
  .skill__bar {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--line);
    overflow: hidden;
    position: relative;
  }
  .skill__bar::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--fg), oklch(72% 0.15 250));
    transform-origin: left;
    transform: scaleX(var(--lvl, 0));
    transition: transform 1.4s cubic-bezier(.2,0,.2,1);
  }
  .skill:hover .skill__name { transform: translateX(8px); letter-spacing: 0; }

  .skills__split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
  }
  .skills__visual {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
  }
  .skills__visual img { width: 100%; height: 100%; object-fit: cover; }
  .skills__visual::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(10,10,10,.5) 100%);
  }
  .skills__caption {
    position: absolute; bottom: 18px; left: 18px; right: 18px;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-dim);
    display: flex; justify-content: space-between;
  }

  .tools {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
  }
  .tools__title { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 24px; }
  .tools__list {
    display: flex; flex-wrap: wrap; gap: 8px;
  }
  .tools__list span {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px; font-weight: 300;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
  }
  .tools__list span:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

  @media (min-width: 1000px) {
    .skills__split { grid-template-columns: 1.3fr 1fr; gap: 80px; }
  }

  /* ---------- Marquee ---------- */
  .marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 28px 0;
    background: var(--bg);
  }
  .marquee__track {
    display: flex; gap: 60px; width: max-content;
    animation: scroll 40s linear infinite;
  }
  .marquee span {
    font-size: clamp(28px, 5vw, 64px);
    font-weight: 300;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: var(--fg);
  }
  .marquee span em {
    font-style: normal;
    -webkit-text-stroke: 1px var(--fg);
    color: transparent;
    margin-right: 60px;
  }
  @keyframes scroll {
    to { transform: translateX(-50%); }
  }

  /* ---------- Contact ---------- */
  .contact {
    padding: var(--section-y) var(--pad-x);
    text-align: center;
    border-top: 1px solid var(--line);
    position: relative;
  }
  .contact__eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 24px; }
  .contact__title {
    font-size: clamp(15px, 6vw, 120px);
    line-height: .95;
    font-weight: 200;
    letter-spacing: -.03em;
    margin-bottom: 32px;
  }
  .contact__title a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
    text-decoration-color: var(--line-strong);
    transition: text-decoration-color .3s ease;
  }
  .contact__title a:hover { text-decoration-color: var(--fg); }
  .contact__row {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  }

  /* ---------- Footer ---------- */
  .footer {
    padding: 40px var(--pad-x);
    border-top: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 24px;
    font-size: 12px; color: var(--fg-faint);
    letter-spacing: .08em; text-transform: uppercase;
  }
  .footer__top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
  .footer__socials { display: flex; gap: 16px; }
  .footer__socials a { transition: color .25s ease; }
  .footer__socials a:hover { color: var(--fg); }
  .footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }

  /* ---------- Lightbox ---------- */
  .lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.94);
    backdrop-filter: blur(20px);
    display: grid; place-items: center;
    padding: 60px 24px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }
  .lightbox.open { opacity: 1; pointer-events: auto; }
  .lightbox__inner {
    position: relative;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex; flex-direction: column; gap: 16px;
  }
  .lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
  }
  .lightbox__caption {
    display: flex; justify-content: space-between; align-items: baseline;
    color: var(--fg-dim);
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  }
  .lightbox__close {
    position: fixed; top: 20px; right: 20px;
    width: 44px; height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    display: grid; place-items: center;
    background: rgba(10,10,10,.6);
    transition: background .25s ease;
  }
  .lightbox__close:hover { background: var(--fg); color: var(--bg); }
  .lightbox__close::before, .lightbox__close::after {
    content: ""; position: absolute; width: 16px; height: 1px; background: currentColor;
  }
  .lightbox__close::before { transform: rotate(45deg); }
  .lightbox__close::after { transform: rotate(-45deg); }

  /* ---------- Reveal ---------- */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,0,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .08s; }
  .reveal[data-delay="2"] { transition-delay: .16s; }
  .reveal[data-delay="3"] { transition-delay: .24s; }
  .reveal[data-delay="4"] { transition-delay: .32s; }

  /* prefers reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
  }

  /* small screen tweaks */
  @media (max-width: 480px) {
    .nav__brand small { display: none; }
    .hero__cta-row .btn { padding: 14px 20px; font-size: 12px; }
  }