@charset "UTF-8";
:root { color-scheme: dark; --bg: #0b0b10; --surface: #14141c; --border: #292932; --muted: #b0adbd; --text: #f6f4fb; --accent: #ba99ff; --purple: #8851ee; --width: 1180px; }
:root { --motion-fast: 180ms; --motion-normal: 380ms; --motion-enter: 560ms; --motion-ease: cubic-bezier(.22, 1, .36, 1); --motion-distance: 20px; }
.locale-pending body { visibility: hidden; }
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 650px; pointer-events: none; background: radial-gradient(ellipse at 75% 0, #4b24752b, transparent 65%); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, select { font: inherit; }
button, .button, select { min-height: 44px; }
button, select { color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .9rem; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); font-weight: 850; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -.025em; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.container { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: 20px; z-index: 20; background: var(--text); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { inset-block-start: 12px; }
.site-header { border-bottom: 1px solid var(--border); background: #0b0b10ee; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; min-height: 96px; padding-block: 16px; }
.brand { font-size: 1.65rem; font-weight: 900; letter-spacing: -.065em; margin-inline-end: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-inline-end: 8px; border: 1px solid #986bea; border-radius: 9px; font-size: 19px; color: #d4bbff; transform: rotate(-7deg); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { padding: 9px 13px; font-size: .88rem; color: var(--muted); border-radius: 8px; }
.site-nav a:hover { background: #ffffff08; color: white; }
.site-nav [aria-current="page"] { color: #ddcaff; background: #985aeb20; }
.language-control { display: flex; gap: 8px; align-items: center; }
.language-control label { font-size: .8rem; color: var(--muted); }
.language-control select { max-width: 130px; font-size: .8rem; }
.menu-button { display: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-size: .73rem; font-weight: 750; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex-shrink: 0; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 60px; align-items: center; padding-block: 86px 72px; }
.hero h1 { font-size: clamp(3.4rem, 7.6vw, 6.4rem); }
.accent { color: var(--accent); }
.hero .role { color: var(--text); font-size: 1.25rem; margin-top: 24px; max-width: 440px; }
.hero .intro { margin-top: 12px; font-size: 1.05rem; max-width: 440px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border-radius: 10px; padding: 12px 20px; font-size: .9rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: background .15s, border-color .15s; }
.button:hover { color: white; background: #242131; border-color: #6f568c; }
.button.primary { background: #a980fb; border-color: #a980fb; color: #120b20; }
.button.primary:hover { background: #c2a3ff; }
.arrow { font-size: 1.25rem; font-weight: 400; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.hero-art { position: relative; padding: 13px; border: 1px solid #64507d; border-radius: 22px; background: linear-gradient(135deg, #a16ed322, #17141f); }
.hero-art img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 13px; }
.hero-art .art-caption { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 18px 8px 7px; }
.art-caption p { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 4px; }
.art-caption h2 { font-size: 1rem; letter-spacing: -.02em; }
.art-caption .arrow { color: var(--accent); }
.art-placeholder { aspect-ratio: 4/3; display: grid; place-items: center; border-radius: 13px; background: radial-gradient(ellipse, #7145a83d, #16121e); font-size: 5rem; font-weight: 900; color: #b38fdf; }
.skill-strip { display: flex; flex-wrap: wrap; gap: 16px 35px; padding-block: 24px; border-block: 1px solid var(--border); color: #ccc6d8; font-size: .8rem; letter-spacing: .06em; }
.skill-strip span::before { content: "+"; margin-inline-end: 10px; color: var(--purple); }
.section { padding-block: 65px; }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.text-link { color: var(--accent); font-weight: 650; font-size: .9rem; padding-block: 10px; }
.page-heading { padding-block: 64px 42px; max-width: 850px; }
.page-heading p:not(.eyebrow) { margin-top: 20px; font-size: 1.12rem; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.card:hover { border-color: #5c477c; }
.card-image { overflow: hidden; display: block; background: #211b2a; }
.card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; align-items: start; }
.card-body h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.card-body p { margin-top: 12px; font-size: .92rem; }
.card-body .text-link { margin-top: auto; padding-top: 24px; }
.card-meta, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-meta { margin-bottom: 16px; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 6px; border: 1px solid #443452; color: #d1b5fb; background: #8b50df0e; font-size: .69rem; font-weight: 650; letter-spacing: .045em; }
.project-card { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 28px; }
.project-card .card-image { height: 100%; }
.project-card .card-image img { height: 100%; min-height: 280px; }
.project-card .card-body { padding: clamp(24px, 4vw, 50px); }
.project-card h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.project-card .button { margin-top: 30px; }
.content-area { padding-bottom: 80px; min-height: 240px; }
.notice { padding: 20px 24px; background: #221a30; border: 1px solid #665078; border-radius: 12px; margin-block: 20px; color: #e3d5f7; }
.notice p { color: inherit; }
.notice button { margin-top: 12px; }
.loading { padding: 35px 0; color: var(--muted); }
.loading::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-inline-end: 12px; }
.back-link { display: inline-flex; gap: 10px; padding-block: 30px; color: var(--muted); font-size: .9rem; }
.detail-heading { max-width: 950px; padding-bottom: 36px; }
.detail-heading h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); margin-top: 18px; }
.detail-heading > p { margin-top: 20px; font-size: 1.13rem; }
.detail-cover { width: 100%; max-height: 680px; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.stats { display: flex; flex-wrap: wrap; gap: 28px 60px; padding-block: 30px; margin-block: 0 40px; border-bottom: 1px solid var(--border); }
.stats dt { color: var(--muted); font-size: .75rem; margin-bottom: 6px; }
.stats dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 55px; padding-bottom: 75px; }
.prose { overflow-wrap: anywhere; }
.prose p { white-space: pre-line; }
.prose h2 { font-size: 1.65rem; margin-bottom: 24px; }
.prose section + section { margin-top: 46px; }
.prose ul { padding-inline-start: 22px; color: var(--muted); }
.prose li { padding-bottom: 10px; }
.side-panel { align-self: start; padding: 28px; border: 1px solid #49345f; border-radius: 16px; background: linear-gradient(140deg, #24182f, #121017); }
.side-panel h2 { font-size: 1.4rem; margin-bottom: 16px; }
.side-panel p { margin-block: 14px; font-size: .9rem; }
.side-panel .button { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.video-list { display: grid; gap: 18px; padding-bottom: 70px; }
.video-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.video-card:hover { border-color: #76608a; }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.video-card h2 { font-size: 1.25rem; margin-block: 10px; }
.video-card p { font-size: .9rem; }
.video-card .text-link { display: inline-block; }
.about-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: center; padding-bottom: 70px; }
.monogram { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #765797; border-radius: 24px; background: linear-gradient(145deg, #3c235b, #111015); color: #d7b8ff; font-size: 6rem; letter-spacing: -.12em; font-weight: 900; }
.about-copy p + p { margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-card { padding: 34px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow-wrap: anywhere; }
.contact-card:hover { border-color: var(--purple); }
.contact-card .contact-icon { color: var(--accent); font-size: 1.7rem; margin-bottom: 20px; display: block; }
.contact-card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.site-footer { border-top: 1px solid var(--border); padding-block: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: .8rem; }
.footer-inner a { color: var(--muted); }
dialog { max-width: min(520px, calc(100% - 32px)); max-height: 85vh; overflow-y: auto; width: 100%; border: 1px solid #61477d; background: #17121f; color: var(--text); padding: 36px; border-radius: 20px; }
dialog::backdrop { background: #000a; }
dialog h2 { font-size: 1.7rem; margin: 20px 0 14px; }
dialog p { margin-bottom: 16px; }
dialog .close-dialog { display: block; margin-inline-start: auto; }
dialog .actions { margin-block: 24px; }
dialog .dialog-secondary { display: block; width: 100%; }
.empty-state { padding: 36px; border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 1050px) {
  .header-inner { gap: 16px; }
  .site-nav { order: 3; width: 100%; justify-content: center; }
  .hero { gap: 30px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 36px); }
  .header-inner { min-height: 78px; gap: 12px; }
  .brand { font-size: 1.35rem; }
  .brand-mark { width: 25px; height: 25px; font-size: 15px; margin-inline-end: 5px; }
  .language-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .language-control select { max-width: 92px; padding: .5rem; }
  .js .menu-button { display: block; padding-inline: 12px; font-size: .8rem; }
  .site-nav { justify-content: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav a { text-align: center; padding: 12px 6px; }
  .hero { grid-template-columns: 1fr; padding-block: 46px; gap: 36px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .hero .role { font-size: 1.1rem; }
  .hero-art img { aspect-ratio: 16/11; }
  .hero .actions .button { flex: 1; }
  .skill-strip { gap: 12px 22px; font-size: .7rem; }
  .section { padding-block: 44px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .cards, .project-card, .detail-layout, .contact-grid, .about-layout { grid-template-columns: 1fr; }
  .project-card .card-image img { min-height: 0; height: auto; }
  .project-card .card-body { padding: 24px; }
  .page-heading { padding-block: 42px 30px; }
  .detail-layout { gap: 30px; padding-bottom: 45px; }
  .detail-cover { border-radius: 12px; }
  .stats { gap: 24px; display: grid; grid-template-columns: 1fr 1fr; }
  .video-card { grid-template-columns: 1fr; gap: 12px; }
  .about-layout { gap: 32px; }
  .monogram { max-width: 220px; width: 100%; }
  .contact-card { padding: 26px; }
  .contact-card h2 { font-size: 1.15rem; }
  .gallery { grid-template-columns: 1fr; }
  .content-area { padding-bottom: 48px; }
  dialog { padding: 24px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 22px; height: 22px; }
  .language-control select { max-width: 80px; }
  .js .menu-button { padding-inline: 8px; }
}
/* Shared motion: transforms and opacity keep layout and normal scrolling intact. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out var(--motion-fast) ease both; }
::view-transition-new(root) { animation: page-in var(--motion-normal) var(--motion-ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes page-out { to { opacity: 0; } }
@keyframes load-pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes skeleton-light { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.reveal { opacity: 0; transform: translateY(var(--motion-distance)); transition: opacity var(--motion-enter) var(--motion-ease), transform var(--motion-enter) var(--motion-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.stagger-1 { transition-delay: 45ms; }
.reveal.stagger-2 { transition-delay: 90ms; }
.reveal.stagger-3 { transition-delay: 135ms; }
.page-leaving main, .page-leaving .site-footer { opacity: 0; transition: opacity var(--motion-fast) ease; }
.button, button, .text-link, .tag, .site-nav a, .card, .video-card, .contact-card, .hero-art {
  transition: transform var(--motion-normal) var(--motion-ease), opacity var(--motion-normal) var(--motion-ease), border-color var(--motion-fast) ease, background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.card.reveal:not(.is-visible), .video-card.reveal:not(.is-visible), .contact-card.reveal:not(.is-visible) { transition-duration: var(--motion-enter); }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform var(--motion-normal) var(--motion-ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav [aria-current="page"]::after { transform: scaleX(1); }
.arrow { display: inline-block; transition: translate var(--motion-normal) var(--motion-ease); }
.button:active, button:active { transform: scale(.97); }
.card:focus-within, .video-card:focus-visible, .contact-card:focus-visible { border-color: var(--accent); }
.is-busy .arrow, .loading::before { animation: load-pulse 1s ease-in-out infinite; }
.is-busy { opacity: .8; }
.card-image img, .hero-art img { transition: transform var(--motion-enter) var(--motion-ease); }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .card.reveal.is-visible:hover, .video-card:hover, .video-card.reveal.is-visible:hover, .contact-card:hover, .contact-card.reveal.is-visible:hover, .hero-art:hover { transform: translateY(-5px); transition-delay: 0ms; }
  .card:hover .card-image img, .hero-art:hover img { transform: scale(1.025); }
  .button:hover { transform: translateY(-2px); }
  .button:hover .arrow, .text-link:hover .arrow { translate: 3px -2px; }
  .tag:hover { transform: translateY(-2px); background: #8b50df25; }
}
.loading-panel { padding-bottom: 60px; }
.skeleton { height: 220px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; position: relative; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff08, transparent); animation: skeleton-light 1.4s ease-in-out infinite; }
.page-sequence { margin-block: 32px 48px; padding-block: 32px; border-top: 1px solid var(--border); }
.page-sequence .eyebrow { margin-bottom: 12px; }
.sequence-link { display: inline-block; color: var(--accent); font-size: clamp(1.6rem, 4vw, 2.7rem); font-weight: 750; letter-spacing: -.035em; }
.sequence-hint { font-size: .85rem; margin-top: 8px; }
.page-end { height: 1px; }
dialog[open], .site-nav.is-open { animation: page-in var(--motion-normal) var(--motion-ease) both; }
dialog.is-closing, .site-nav.is-closing { animation: page-out var(--motion-fast) ease both; }
#download-feedback:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .page-leaving main, .page-leaving .site-footer { opacity: 1; }
}
/* Editorial portfolio direction: full-bleed artwork, monochrome, red accents. */
:root { color-scheme: light; --bg: #fff; --surface: #f5f5f5; --border: #dedede; --muted: #666; --text: #151515; --accent: #c51e2b; --purple: #c51e2b; --width: 1180px; }
body { font-family: Arial, Helvetica, sans-serif; }
body::before { display: none; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { text-transform: uppercase; font-weight: 800; }
.container { width: min(var(--width), calc(100% - 96px)); }
.site-header { position: relative; z-index: 10; background: #fff; border: 0; }
.header-inner { min-height: 100px; }
.brand { letter-spacing: -.06em; font-size: 1.6rem; }
.brand-mark { background: #151515; color: white; border: 0; border-radius: 50%; width: 42px; height: 42px; transform: none; font-size: 25px; }
.language-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button, select, .button { border-radius: 0; }
.language-control select { background: transparent; border: 0; color: inherit; }
.language-control option { color: #151515; background: white; }
.js .menu-button { display: inline-flex; align-items: center; gap: 16px; border: 0; background: transparent; text-transform: uppercase; font-size: .75rem; font-weight: 700; padding: 10px 0 10px 12px; }
.menu-button::after { content: ''; width: 28px; height: 15px; border-block: 2px solid currentColor; background: linear-gradient(currentColor,currentColor) center / 19px 2px no-repeat; }
.menu-button[aria-expanded='true']::after { transform: rotate(90deg); }
.js .site-nav { display: none; position: absolute; top: 100%; inset-inline: 0; width: 100%; background: #151515; padding: 32px max(24px, calc((100% - 1180px)/2)); max-height: calc(100svh - 100px); overflow-y: auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 30px; box-shadow: 0 30px 40px #0003; }
.js .site-nav.is-open { display: grid; }
.site-nav a { color: #fff; text-align: start; font-size: clamp(1.5rem,4vw,3.3rem); font-weight: 700; text-transform: uppercase; border-radius: 0; padding: 12px; }
.site-nav [aria-current='page'], .site-nav a:hover { color: #ff5260; background: transparent; }
.site-nav a::after { height: 1px; }
.site-header { position: absolute; inset: 0 0 auto; color: white; background: transparent; z-index: 100; view-transition-name: navigation; }
.brand-mark { background: white; color: #151515; }
body[data-page='home'] main.container { width: 100%; max-width: none; }
body[data-page='home'] main > :not(.hero) { width: min(var(--width),calc(100% - 96px)); margin-inline: auto; }
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 720px; min-height: 100svh; padding: 160px max(48px, calc((100% - 1180px)/2)) 72px; color: white; background: #16191b; overflow: hidden; }
.hero .hero-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .75; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0009,transparent 85%),linear-gradient(0deg,#000b,transparent 80%); }
.hero-copy { max-width: 850px; }
.hero h1 { font-size: clamp(3.5rem,7.2vw,7rem); line-height: 1.02; max-width: 11ch; letter-spacing: -.045em; }
.hero .eyebrow { color: #eee; font-size: .7rem; }
.hero .eyebrow::before { background: #e62c3d; }
.hero .role { color: #eee; font-size: 1rem; max-width: 570px; margin-top: 22px; }
.hero .actions { gap: 28px; }
.hero .text-link { color: #ff5260; text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; }
.hero .text-link::before { content: ''; display: inline-block; width: 30px; height: 1px; background: currentColor; vertical-align: middle; margin-inline-end: 16px; }
.hero-index { position: absolute; inset-inline-end: 48px; bottom: 42px; font-size: .7rem; letter-spacing: .14em; border-top: 1px solid #ffffff80; padding-top: 12px; min-width: 100px; text-align: end; }
.eyebrow { font-weight: 700; letter-spacing: .18em; }
.section { padding-block: 85px; }
.section-heading h2 { text-transform: uppercase; font-weight: 800; }
.skill-strip { color: #555; padding-block: 32px; }
.card { background: transparent; border: 0; border-radius: 0; }
.card-image { background: #eee; }
.card-body { padding: 24px 0; }
.card-body h2 { font-size: 1.5rem; }
.card-body p { line-height: 1.7; }
.cards { gap: 42px 32px; }
.tag { color: #666; border: 0; background: transparent; padding: 0; border-radius: 0; text-transform: uppercase; letter-spacing: .1em; }
.tags { gap: 12px; }
.tag:hover { background: transparent; }
.button { background: transparent; border-color: #aaa; color: #151515; padding: 14px 24px; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.button.primary { color: white; background: #151515; border-color: #151515; }
.button:hover, .button.primary:hover { background: #c51e2b; border-color: #c51e2b; color: white; }
.project-card { gap: 40px; align-items: center; }
.project-card .card-body { padding: 35px 0; }
.project-card h2 { text-transform: uppercase; font-size: clamp(2rem,4vw,3.8rem); }
.page-heading { padding-block: 70px 65px; max-width: 1050px; }
.page-heading h1 { font-size: clamp(3rem,8vw,6.5rem); }
.detail-cover, .gallery img, .video-card img { border-radius: 0; border: 0; }
.side-panel { background: #f5f5f5; border: 0; border-radius: 0; padding: 35px; }
.video-card { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 24px 0; }
.video-card h2 { font-size: 1.5rem; }
.contact-card { background: #f5f5f5; border: 0; border-radius: 0; padding: 40px; }
.monogram { background: #151515; color: white; border: 0; border-radius: 0; }
.art-placeholder { background: #e8e8e8; color: #aaa; border-radius: 0; }
.notice { background: #fff2f2; color: #7e1821; border-color: #e4bfc2; border-radius: 0; }
dialog { background: white; border: 0; border-radius: 0; }
.empty-state, .skeleton { border-radius: 0; }
.sequence-link { color: #151515; text-transform: uppercase; font-size: clamp(2.5rem,6vw,5rem); }
.sequence-link:hover { color: var(--accent); }
.site-footer { background: #151515; border: 0; color: white; }
.site-footer p, .footer-inner a { color: #bbb; }
@media (max-width: 680px) {
  .container, body[data-page='home'] main > :not(.hero) { width: calc(100% - 40px); }
  .header-inner { min-height: 84px; gap: 10px; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 21px; }
  .js .menu-button { padding-inline: 4px; gap: 9px; font-size: .65rem; }
  .menu-button::after { width: 23px; }
  .js .site-nav { grid-template-columns: 1fr; max-height: calc(100svh - 84px); padding: 16px 20px; }
  .site-nav a { font-size: 1.8rem; }
  .hero { padding: 140px 24px 85px; min-height: 100svh; }
  .hero h1 { font-size: clamp(2.75rem,12vw,4.5rem); }
  .hero .role { font-size: .92rem; }
  .hero-index { inset-inline-end: 24px; bottom: 25px; }
  .section { padding-block: 48px; }
  .project-card { gap: 12px; }
  .cards { gap: 32px; }
  .page-heading { padding-block: 40px; }
  .contact-card { padding: 24px; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 25px; height: 25px; font-size: 18px; }
  .header-inner { gap: 8px; }
  .language-control select { max-width: 72px; padding-inline: 2px; }
  .js .menu-button { gap: 6px; padding-inline: 0; }
}
@media (max-width: 680px) {
  .page-heading h1 { font-size: clamp(2rem, 10vw, 4rem); }
}

/* The Home header is the shared shell. Only internal content gets this palette. */
body:not([data-page='home']) {
  color-scheme: dark;
  --bg: #101812; --surface: #ffffff06; --border: #ffffff26;
  --text: #f5f7f3; --muted: #b5bfb4; --accent: #b7ff72; --purple: #b7ff72;
  min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(circle at top right, #b7ff7219, transparent 35%), linear-gradient(135deg, #18251d 0%, #101812 55%, #000 100%);
}
body:not([data-page='home']) main { padding-top: 100px; min-height: calc(100vh - 90px); }
body:not([data-page='home']) .site-footer { background: transparent; border-top: 1px solid var(--border); }
body:not([data-page='home']) .card-image, body:not([data-page='home']) .art-placeholder { background: #ffffff08; color: var(--muted); }
body:not([data-page='home']) .tag, body:not([data-page='home']) .skill-strip { color: var(--muted); }
body:not([data-page='home']) .side-panel, body:not([data-page='home']) .contact-card { background: #ffffff06; border: 1px solid var(--border); }
body:not([data-page='home']) .button { color: var(--text); border-color: #ffffff65; }
body:not([data-page='home']) .button.primary { background: var(--accent); color: #18251d; border-color: var(--accent); }
body:not([data-page='home']) .button:hover { background: #d1ffa4; color: #18251d; border-color: #d1ffa4; }
body:not([data-page='home']) .sequence-link { color: var(--text); }
body:not([data-page='home']) .sequence-link:hover { color: var(--accent); }
body:not([data-page='home']) dialog { background: #18251d; color: var(--text); }
body:not([data-page='home']) .notice { background: #ffffff08; border-color: var(--border); color: var(--text); }
/* Navigation retains Home's exact accent regardless of the content palette. */
.site-header { --accent: #c51e2b; }
::view-transition-group(navigation) { animation: none; z-index: 100; }
::view-transition-old(navigation) { animation: none; opacity: 0; }
::view-transition-new(navigation) { animation: none; mix-blend-mode: normal; }
::view-transition-image-pair(navigation) { isolation: isolate; }
@media (max-width: 680px) { body:not([data-page='home']) main { padding-top: 84px; } }
/* Route focus announces the new content without outlining the entire page. */
main:focus { outline: none; }
/* Fullscreen menu: a single cover above every route. */
html { scrollbar-gutter: stable; }
html.menu-open { overflow: hidden; }
.site-header { position: fixed; }
.site-header .brand, .site-header .language-control, .site-header .menu-button { position: relative; z-index: 1002; }
.js .site-nav, .js .site-nav.is-open {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-height: none;
  padding: 110px max(28px, calc((100% - 1180px)/2)) 35px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: clamp(4px, 1.3vh, 18px); background: #101812; z-index: 1000;
  box-shadow: none; overflow-y: auto; visibility: hidden; pointer-events: none;
  clip-path: inset(0 0 100% 0); animation: none;
  transition: clip-path 600ms cubic-bezier(.76,0,.24,1), visibility 600ms;
}
.js .site-nav.is-open { visibility: visible; pointer-events: auto; clip-path: inset(0); }
.js .site-nav.is-closing { clip-path: inset(0 0 100% 0); pointer-events: none; animation: none; }
.site-nav a { flex-shrink: 0; font-size: clamp(1.65rem, 5.8vh, 4rem); line-height: 1.05; padding: 7px 0; width: fit-content; color: #f4f7f0; }
.site-nav a::after { inset-inline: 0; bottom: 0; height: 3px; border-radius: 0; background: #b7ff72; transform-origin: left; }
.site-nav [aria-current='page'], .site-nav a:hover { color: #b7ff72; }
.menu-button::after { transition: transform 400ms ease; }
.menu-button[aria-expanded='true']::after { border: 0; height: 24px; transform: rotate(90deg); background: linear-gradient(45deg,transparent 46%,currentColor 47% 53%,transparent 54%),linear-gradient(-45deg,transparent 46%,currentColor 47% 53%,transparent 54%); }
/* Two reusable viewport layers; the gradient remains when every image fails. */
.dynamic-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #18251d; }
.dynamic-background img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1400ms ease; }
.dynamic-background img.visible { opacity: 1; }
.dynamic-background::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg,#101b13ef 0%,#101b13c4 48%,#0009 100%),linear-gradient(0deg,#000b,transparent); }
main, .site-footer { position: relative; z-index: 10; }
body:not([data-page='home']) .card-body, body:not([data-page='home']) .prose { text-shadow: 0 1px 5px #0004; }
/* Home retains the original first-screen composition; all four screens share it. */
body[data-page='home'] { overflow: hidden; background: #101812; }
body[data-page='home'] .site-footer { display: none; }
body[data-page='home'] main > .home-stage { width: 100%; margin: 0; }
.home-stage { position: relative; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; background: #101812; }
.home-stage .home-slide { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 650ms ease, visibility 650ms; padding-bottom: 100px; }
.home-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.home-slide .hero-backdrop { max-width: none; object-position: center; }
.home-slide .hero-copy { width: 100%; max-height: none; overflow: visible; opacity: 0; transform: translateY(22px); transition: opacity 300ms ease, transform 450ms var(--motion-ease); }
.home-slide.is-active .hero-copy { opacity: 1; transform: none; transition-delay: 500ms; }
.home-slide.text-exit .hero-copy { opacity: 0; transform: translateY(-16px); transition-delay: 0ms; transition-duration: 180ms; }
.home-slide h2 { font-size: clamp(2.5rem,6.6vw,6rem); text-transform: uppercase; line-height: 1.04; max-width: 14ch; }
.home-slide .tag { color: #ddd; }
.home-slide .tags { margin-top: 20px; }
.home-slide .text-link { display: inline-block; margin-top: 18px; }
.home-slide .actions .text-link { margin-top: 0; }
.home-all { display: block; margin-top: 18px; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #ddd; }
.home-counter { position: absolute; inset-inline-end: 48px; bottom: 38px; color: white; font-size: .7rem; letter-spacing: .14em; border-top: 1px solid #fff8; min-width: 90px; text-align: end; padding-top: 12px; z-index: 3; }
.resource-lines { list-style: none; padding: 0; margin: 25px 0 0; max-width: 820px; }
.resource-lines li { border-top: 1px solid #ffffff45; }
.resource-lines a { display: flex; align-items: center; gap: 22px; padding: 17px 0; }
.resource-lines a > span:first-child { font-size: .72rem; color: #b7ff72; }
.resource-lines strong { font-size: clamp(1.1rem,2.2vw,1.8rem); line-height: 1.15; flex: 1; }
/* Route edge: first intentional gesture reveals, second confirms. */
.edge-arrow { color: #b7ff72; animation: indicator-down 1800ms ease-in-out infinite; }
.previous .edge-arrow { animation-name: indicator-up; }
@keyframes indicator-down { 0%,100% { translate: 0 -3px; opacity: .55; } 55% { translate: 0 3px; opacity: 1; } }
@keyframes indicator-up { 0%,100% { translate: 0 3px; opacity: .55; } 55% { translate: 0 -3px; opacity: 1; } }
@media(max-width:680px) {
  .js .site-nav { padding: 90px 24px 24px; }
  .home-slide h2 { font-size: clamp(2rem,9vw,3.7rem); }
  .home-stage .home-slide { padding-top: 115px; padding-bottom: 105px; }
  .home-counter { inset-inline-end: 24px; bottom: 38px; min-width: 60px; }
}
@media(max-height:550px) {
  .js .site-nav { justify-content: flex-start; }
  .home-stage .home-slide { padding-top: 100px; padding-bottom: 80px; }
  .home-slide h1, .home-slide h2 { font-size: clamp(2rem,6vh,3rem); }
}
@media(prefers-reduced-motion:reduce) {
  .js .site-nav { transition: opacity 100ms ease, visibility 100ms; clip-path: none; opacity: 0; }
  .js .site-nav.is-open { opacity: 1; }
  .js .site-nav.is-closing { opacity: 0; }
  .home-slide .hero-copy { transform: none; }
}
.js .site-nav:not(.is-open) { display: flex; }
html { background: #101812; }
.js .site-nav, .js .site-nav.is-open { width: 100vw; }
.dynamic-background { width: 100vw; }
body[data-page='home'] main > .home-stage { width: 100vw; }
.dynamic-background img { transition-duration: var(--background-fade, 1400ms); }
/* Master portfolio composition: image, type and a quiet forest palette. */
:root { --accent: #b7ff72; --purple: #b7ff72; }
.site-header { --accent: #b7ff72; }
.hero .eyebrow::before { background: #b7ff72; }
.hero .text-link { color: #b7ff72; }
.home-slide .hero-copy { max-width: 1100px; }
.home-slide h1, .home-slide h2 { max-width: 13ch; font-size: clamp(3rem,7.4vw,7.5rem); font-weight: 800; }
.home-slide:first-child h1 { text-transform: none; }
.home-slide .role { max-width: 560px; line-height: 1.6; }
.home-scroll-label { position: absolute; bottom: 38px; inset-inline-start: max(24px,calc((100% - 1180px)/2)); color: #eee; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; z-index: 3; }
.home-scroll-label span { display: inline-block; color: #b7ff72; margin-inline-start: 12px; animation: indicator-down 1800ms ease infinite; }
.home-slide .hero-copy { opacity: 1; transform: none; transition: none; }
.home-slide .hero-copy > * { opacity: 0; transform: translateY(20px); transition: opacity 180ms ease,transform 180ms ease; }
.home-slide.is-active .hero-copy > * { opacity: 1; transform: none; transition-duration: 450ms; transition-delay: 650ms; }
.home-slide.is-active .hero-copy > :is(h1,h2) { transition-delay: 740ms; }
.home-slide.is-active .hero-copy > .role { transition-delay: 830ms; }
.home-slide.is-active .hero-copy > .actions { transition-delay: 920ms; }
.home-slide.text-exit .hero-copy > * { opacity: 0; transform: translateY(-15px); transition-delay: 0ms; transition-duration: 180ms; }
.portfolio-filters { display: flex; gap: 26px; overflow-x: auto; padding: 0 0 24px; margin-bottom: 30px; }
.portfolio-filters button { flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; border-radius: 0; padding: 10px 0; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.portfolio-filters button:hover, .portfolio-filters [aria-pressed='true'] { color: #b7ff72; border-bottom-color: #b7ff72; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 65px 35px; }
.portfolio-item { min-width: 0; }
.portfolio-image { position: relative; display: block; overflow: hidden; background: #203124; }
.portfolio-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 700ms var(--motion-ease),filter 500ms; }
.portfolio-explore { position: absolute; inset: auto 25px 25px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; opacity: 0; transform: translateY(15px); transition: opacity 350ms,transform 350ms; }
.portfolio-image:hover img, .portfolio-image:focus-visible img { transform: scale(1.035); filter: brightness(.55); }
.portfolio-image:hover .portfolio-explore, .portfolio-image:focus-visible .portfolio-explore { opacity: 1; transform: none; }
.portfolio-caption { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px 8px; }
.portfolio-caption > span { color: #b7ff72; font-size: 1.5rem; }
.portfolio-caption h2 { font-size: clamp(1.4rem,2.6vw,2.5rem); }
.portfolio-meta { font-size: .64rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 12px; }
body[data-page='projects'] .portfolio-item:only-child { grid-column: 1 / -1; }
body[data-page='projects'] .portfolio-item:only-child img { aspect-ratio: 16/8; }
.contact-card { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--border) !important; padding-inline: 0; }
@media(hover:none) { .portfolio-explore { opacity: 1; transform: none; text-shadow: 0 1px 4px #000; } .portfolio-image::after { content:''; position:absolute; inset:60% 0 0; background:linear-gradient(transparent,#0007); pointer-events:none; } .portfolio-explore {z-index:1;} }
@media(max-width:680px) { .portfolio-grid {grid-template-columns:1fr;gap:38px;} .home-slide h1,.home-slide h2 {font-size:clamp(2.7rem,11vw,4.5rem);} .portfolio-filters {gap:22px;} }
@media(prefers-reduced-motion:reduce) { .home-slide .hero-copy > * {transform:none;} }
html:has(body[data-page='home']) { scrollbar-gutter: auto; overflow: hidden; }
.site-header .brand { font-size: 0; }
.site-header .brand-mark { margin-inline-end: 0; }

/* All four Home slides share the same edge-anchored canvas. */
body[data-page="home"] { --home-edge: clamp(20px, 3.5vw, 48px); }
body[data-page="home"] .header-inner { width: 100%; max-width: none; margin: 0; padding-inline: var(--home-edge); flex-wrap: nowrap; }
.home-stage .home-slide { padding-inline: var(--home-edge); }
.home-slide .hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.home-scroll-label { inset-inline-start: var(--home-edge); }
@media(max-height:600px) {
  .home-stage .home-slide { padding-top: 85px; padding-bottom: 65px; }
  .home-slide h1, .home-slide h2 { font-size: clamp(1.8rem, 7vh, 3.5rem); }
  .home-slide .role { font-size: clamp(.75rem, 2.6vh, 1rem); line-height: 1.35; margin-block: 10px; }
  .home-slide .eyebrow { margin-bottom: 8px; }
  .home-slide .actions { margin-top: 12px; }
}
