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

:root {
  --bg: #111210;
  --panel: #191a17;
  --panel-light: #20211d;
  --ink: #f1f0e9;
  --muted: #a1a39a;
  --line: #353630;
  --accent: #d7ff67;
  --gutter: clamp(1.25rem, 5.2vw, 5.75rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
.site-header {
  min-height: 82px; padding: 1rem var(--gutter); display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line);
  background: rgba(17,18,16,.91); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #6b6d61; color: var(--accent); font-family: "DM Mono", monospace; font-size: .65rem; font-weight: 500; letter-spacing: -.04em; }
.brand-name { font-family: Manrope, sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .095em; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); }
.site-nav a { color: #d8d9d1; font-size: .76rem; text-decoration: none; transition: color .2s ease; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.external { color: var(--accent); }
.site-nav .nav-cv { border: 1px solid #55574d; padding: .72rem .9rem; color: var(--ink); }
.nav-cv span { color: var(--accent); margin-left: .3rem; }
.menu-toggle { display: none; }
.section-wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.intro { padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-family: "DM Mono", monospace; font-size: .65rem; line-height: 1.6; font-weight: 400; letter-spacing: .12em; color: #c4c6bb; margin: 0; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px rgba(215,255,103,.45); }
.separator { color: #62645b; }
h1, h2, h3, p { margin-top: 0; }
h1, .section-heading h2, .closing h2 { font-family: Manrope, sans-serif; font-weight: 500; letter-spacing: -.075em; }
h1 { font-size: clamp(3.6rem, 9.1vw, 8.6rem); line-height: .99; margin: 2rem 0 3.5rem; }
.serif-word { font-family: "Playfair Display", serif; font-weight: 500; font-style: italic; color: var(--accent); letter-spacing: -.08em; }
.intro-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .45fr); gap: 4rem; align-items: end; max-width: 1050px; }
.intro-copy { max-width: 720px; color: #b8bab1; font-size: clamp(.98rem, 1.35vw, 1.15rem); line-height: 1.85; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-copy .about-label { font-family: "DM Mono", monospace; font-size: .65rem; letter-spacing: .15em; color: var(--accent); margin-bottom: 1rem; }
.intro-links { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding-bottom: .3rem; }
.text-link { font-size: .82rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid #55574d; padding-bottom: .45rem; transition: border-color .2s ease, color .2s ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { color: var(--accent); margin-left: .5rem; }
.intro-index { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1rem; color: #77796f; font-family: "DM Mono", monospace; font-size: .59rem; letter-spacing: .1em; }
.work-section { padding-top: 2rem; padding-bottom: clamp(5rem, 10vw, 9rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.6rem; }
.section-heading h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1.05; margin: .85rem 0 0; }
.accent { color: var(--accent); }
.section-note { color: var(--muted); font-size: .77rem; margin: 0 .2rem .35rem 0; }
.section-note span { color: var(--accent); margin-left: .4rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.work-card { min-height: 535px; position: relative; overflow: hidden; isolation: isolate; text-decoration: none; background: #252722; color: white; border: 1px solid #34362f; }
.card-image, .card-overlay { position: absolute; inset: 0; }
.card-image { z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .6s ease; background-size: cover; background-position: center; filter: saturate(.78); }
.image-design {
  background-image: radial-gradient(ellipse at 70% 22%, rgba(215,255,103,.86), transparent 18%),
  linear-gradient(135deg, transparent 35%, rgba(13,17,14,.15) 36% 38%, transparent 39%),
  linear-gradient(145deg, #737c67 0%, #39433a 43%, #171b17 100%);
}
.image-design::after { content: ""; position: absolute; width: 62%; height: 74%; top: 12%; left: 20%; border: 1px solid rgba(240,243,225,.42); transform: rotate(12deg); }
.image-photo {
  background-image: radial-gradient(ellipse at 48% 32%, rgba(215,194,150,.8), transparent 18%),
  linear-gradient(160deg, transparent 35%, rgba(14,18,16,.38) 36%),
  linear-gradient(135deg, #8a806a 0%, #4c5146 46%, #171b17 100%);
}
.image-video {
  background-image: radial-gradient(ellipse at 60% 28%, rgba(191,207,205,.65), transparent 17%),
  linear-gradient(25deg, transparent 45%, rgba(12,17,20,.7) 46%),
  linear-gradient(145deg, #667779 0%, #354349 42%, #141a1d 100%);
}
.card-overlay { z-index: -1; background: linear-gradient(180deg, rgba(8,9,8,.02) 10%, rgba(8,9,8,.18) 38%, rgba(8,9,8,.92) 100%); }
.work-card:hover .card-image, .work-card:focus-visible .card-image { transform: scale(1.055); filter: saturate(1.05); }
.card-content { min-height: 535px; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.2rem, 2.1vw, 2rem); }
.card-number { font-family: "DM Mono", monospace; font-size: .62rem; letter-spacing: .13em; color: rgba(255,255,255,.74); margin-bottom: .9rem; }
.card-number i { color: var(--accent); font-style: normal; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.card-title-row h3 { font-family: Manrope, sans-serif; font-size: clamp(1.35rem, 2.15vw, 2.1rem); line-height: 1.05; letter-spacing: -.065em; font-weight: 600; margin: 0; }
.arrow { font-size: 1.5rem; color: var(--accent); transition: transform .25s ease; }
.work-card:hover .arrow { transform: translate(3px, -3px); }
.card-content p { font-size: .76rem; color: rgba(255,255,255,.7); margin: .75rem 0 1.6rem; }
.card-cta { font-family: "DM Mono", monospace; font-size: .58rem; letter-spacing: .1em; color: var(--accent); border-top: 1px solid rgba(255,255,255,.22); padding-top: .9rem; }
.closing { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5rem, 9vw, 8rem); background: var(--panel); }
.closing-row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.closing h2 { font-size: clamp(3.4rem, 8vw, 7.5rem); line-height: .98; margin: 1.3rem 0 2rem; }
.round-link { width: clamp(64px, 9vw, 112px); height: clamp(64px, 9vw, 112px); border: 1px solid #575a4e; border-radius: 50%; display: grid; place-items: center; color: var(--accent); text-decoration: none; font-size: 2rem; transition: background .25s ease, color .25s ease, transform .25s ease; }
.round-link:hover { background: var(--accent); color: var(--bg); transform: translateY(-3px); }
.closing-link { display: inline-block; }
.site-footer { padding: 2rem var(--gutter) 1.2rem; background: var(--bg); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-top { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.back-top { font-size: .77rem; text-decoration: none; color: #c9cbc1; }
.back-top span { margin-left: .45rem; color: var(--accent); }
.footer-bottom { padding-top: 1.2rem; font-family: "DM Mono", monospace; font-size: .59rem; letter-spacing: .02em; color: #77796f; }
.footer-bottom p { margin: 0; }
.footer-star { color: var(--accent); margin-left: .25rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 1000px) {
  .site-nav { gap: .85rem; }
  .site-nav a { font-size: .69rem; }
  .brand-name { font-size: .64rem; }
  .work-card, .card-content { min-height: 450px; }
  .card-title-row h3 { font-size: 1.55rem; }
}
@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 1px; background: var(--ink); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1.25rem var(--gutter) 1.5rem; background: #151613; border-bottom: 1px solid var(--line); align-items: stretch; flex-direction: column; gap: 1.2rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: .9rem; }
  .site-nav .nav-cv { align-self: flex-start; }
  .intro { padding-top: 5rem; }
  h1 { font-size: clamp(3.4rem, 13vw, 6rem); margin-bottom: 2.6rem; }
  .intro-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .intro-index { font-size: .5rem; flex-wrap: wrap; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .work-grid { grid-template-columns: 1fr; gap: .9rem; }
  .work-card, .card-content { min-height: 450px; }
  .card-title-row h3 { font-size: 2rem; }
  .closing-row { align-items: flex-end; }
  .closing h2 { font-size: clamp(3.2rem, 12vw, 5.5rem); }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Personal assets and featured work */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.fallback-initials { display: none; }
.logo-fallback .fallback-initials { display: inline; }
.intro-bottom { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .72fr); max-width: 1160px; align-items: start; }
.about-side { display: flex; flex-direction: column; gap: 1.5rem; }
.portrait-frame {
  aspect-ratio: 4 / 4.3;
  max-height: 440px;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 28px;
  background: transparent;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.portrait-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: .14em;
  color: var(--accent);
  font-size: .8rem;
}

.portrait-hint span {
  font-size: 1.5rem;
}

.portrait-hint small {
  font-size: .63rem;
  color: var(--muted);
  letter-spacing: .03em;
}
.about-side .intro-links { flex-direction: row; flex-wrap: wrap; gap: 1rem 1.7rem; }
.social-feed { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.feed-card { background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.feed-preview { position: relative; display: block; height: clamp(190px, 24vw, 315px); overflow: hidden; background-size: cover; background-position: center; }
.feed-preview img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .4s ease; }
.feed-preview:hover img { transform: scale(1.04); }
.instagram-preview { background: radial-gradient(circle at 35% 35%,#a99c7b,transparent 30%),linear-gradient(135deg,#494f43,#181c1b); }
.behance-preview { background: radial-gradient(circle at 70% 30%,#acb97e,transparent 28%),linear-gradient(145deg,#525c49,#1c241f); }
.youtube-preview { background: radial-gradient(circle at 40% 30%,#81999b,transparent 30%),linear-gradient(145deg,#364a51,#161b1c); }
.feed-preview-label { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; font: .65rem 'DM Mono',monospace; letter-spacing: .12em; padding: .55rem .7rem; background: rgba(17,18,16,.84); color: var(--accent); }
.play-symbol { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(17,18,16,.78); color: var(--accent); }
.feed-card-body { padding: 1.5rem; }
.feed-kicker { font: .6rem 'DM Mono',monospace; letter-spacing: .13em; color: var(--accent); }
.feed-card h3 { font: 500 clamp(1.35rem,2.2vw,2rem) Manrope,sans-serif; letter-spacing: -.055em; margin: .85rem 0; }
.feed-card p { color: var(--muted); font-size: .84rem; line-height: 1.65; min-height: 5.5rem; }
.feed-card code { color: #cbd4b5; overflow-wrap: anywhere; }
.feed-card .text-link { display: inline-block; }
@media (max-width: 760px) {
 .intro-bottom { grid-template-columns: 1fr; }
 .about-side { max-width: 450px; }
 .feed-grid { grid-template-columns: 1fr; }
 .feed-preview { height: 280px; }
 .feed-card p { min-height: 0; }
}

/* About Layout */
.brand-mark { border: none; }
.intro-bottom { max-width: none; grid-template-columns: minmax(0, 680px) minmax(180px, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro-copy .intro-links { margin-top: 1.8rem; flex-direction: row; flex-wrap: wrap; gap: 1rem 1.7rem; }
.about-side { width: 100%; align-items: flex-end; }
.portrait-frame { width: min(100%, 300px); max-height: none; aspect-ratio: 4 / 4.5; }
@media (max-width: 760px) {
  .intro-bottom { grid-template-columns: 1fr; }
  .about-side { max-width: none; align-items: flex-end; }
  .portrait-frame { width: min(75%, 280px); }
}