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

:root {
    --ink: #0f0d0a;
    --paper: #f5f0e8;
    --cream: #ede8db;
    --rust: #b84a2e;
    --gold: #c8a84b;
    --muted: #7a7469;
    --line: rgba(15,13,10,0.12);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* CURSOR */
.cursor {
    position: fixed; width: 8px; height: 8px;
    background: var(--rust); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transition: transform 0.15s ease, background 0.2s;
    transform: translate(-50%, -50%);
}
.cursor-ring {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid var(--rust); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transition: transform 0.35s cubic-bezier(.25,.46,.45,.94), opacity 0.2s;
    transform: translate(-50%, -50%); opacity: 0.5;
}

/* GRAIN */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9997; opacity: 0.4;
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-between; align-items: center;
    padding: 28px 52px; mix-blend-mode: multiply;
}
.nav-logo {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
    opacity: 0; animation: fadeDown 0.8s 0.2s ease forwards;
}
.nav-links {
    display: flex; gap: 40px; list-style: none;
    opacity: 0; animation: fadeDown 0.8s 0.4s ease forwards;
}
.nav-links a {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    transition: color 0.2s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px; background: var(--rust);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* HERO */
.hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    position: relative; overflow: hidden;
}
.hero-vline {
    position: absolute; left: 52px; top: 0; bottom: 0;
    width: 1px; background: var(--line);
}
.hero-left {
    padding: 180px 52px 80px;
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative; z-index: 2;
}
.hero-eyebrow {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--rust); margin-bottom: 28px;
    opacity: 0; animation: fadeUp 0.9s 0.6s ease forwards;
}
.hero-name {
    font-size: clamp(58px, 7vw, 108px);
    font-weight: 300; line-height: 0.9;
    letter-spacing: -0.02em; margin-bottom: 20px;
    opacity: 0; animation: fadeUp 1s 0.75s ease forwards;
}
.hero-name em { font-style: italic; color: var(--rust); }
.hero-role {
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 300; color: var(--muted);
    letter-spacing: 0.02em; margin-bottom: 40px;
    opacity: 0; animation: fadeUp 0.9s 0.9s ease forwards;
}
.hero-location {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 52px;
    display: flex; align-items: center; gap: 10px;
    opacity: 0; animation: fadeUp 0.9s 1s ease forwards;
}
.hero-location::before {
    content: '◎'; color: var(--rust); font-size: 8px;
}
.hero-cta {
    display: flex; align-items: center; gap: 32px;
    opacity: 0; animation: fadeUp 0.9s 1.15s ease forwards;
}
.btn-primary {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--paper); background: var(--ink);
    padding: 18px 36px; text-decoration: none;
    border: 1px solid var(--ink);
    transition: background 0.3s, color 0.3s;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--rust); transform: scaleX(0);
    transform-origin: left; transition: transform 0.35s ease;
}
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary span { position: relative; z-index: 1; }
.btn-outline {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink); background: transparent;
    padding: 17px 36px; text-decoration: none;
    border: 1px solid var(--line);
    transition: border-color 0.3s, color 0.3s;
}
.btn-outline:hover { border-color: var(--ink); }

/* HERO RIGHT — profile photo */
.hero-right {
    position: relative; overflow: hidden;
    opacity: 0; animation: fadeIn 1.2s 0.5s ease forwards;
}
.hero-image-block {
    position: absolute; inset: 0;
    background: var(--cream);
}
.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    mix-blend-mode: multiply;
    filter: sepia(15%) contrast(1.05);
}
.hero-photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--cream) 100%);
    opacity: 0.6;
}
.hero-index {
    position: absolute; bottom: 80px; right: 52px;
    font-family: var(--mono);
    font-size: 72px; color: var(--line);
    font-weight: 300; line-height: 1;
    letter-spacing: -0.04em; pointer-events: none;
}
/* Photo fallback — decorative blocks when photo loads */
.hero-image-block::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, var(--cream) 0%, #ddd5c2 100%);
    z-index: 0;
}
.hero-photo { position: relative; z-index: 1; }

/* EXPERIENCE TAG */
.exp-badge {
    position: absolute; top: 52px; left: 40px;
    background: var(--ink); color: var(--paper);
    padding: 16px 20px;
    font-family: var(--mono);
    z-index: 3;
}
.exp-badge-num {
    font-size: 36px; font-weight: 300; line-height: 1;
    display: block; letter-spacing: -0.02em;
}
.exp-badge-label {
    font-size: 8px; letter-spacing: 0.15em;
    text-transform: uppercase; color: rgba(245,240,232,0.5);
    display: block; margin-top: 4px;
}

/* SERVICES */
section { padding: 100px 52px; }

.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    margin-bottom: 72px;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}
.section-title {
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 300; line-height: 0.95;
    letter-spacing: -0.02em;
}
.section-title em { font-style: italic; color: var(--rust); }
.section-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.15em; color: var(--muted);
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}
.service-card {
    background: var(--cream);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}
.service-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--rust);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover { background: var(--ink); }
.service-card:hover .service-num,
.service-card:hover .service-name,
.service-card:hover .service-desc { color: rgba(245,240,232,0.85); }
.service-card:hover .service-icon-wrap { border-color: rgba(255,255,255,0.15); }
.service-card:hover::after { transform: scaleX(1); }

.service-num {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.2em; color: var(--muted);
    margin-bottom: 40px; display: block;
    transition: color 0.4s;
}
.service-icon-wrap {
    width: 52px; height: 52px;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px; transition: border-color 0.4s;
}
.service-icon-wrap svg { width: 24px; height: 24px; }
.service-name {
    font-size: 22px; font-weight: 300;
    line-height: 1.2; margin-bottom: 16px;
    letter-spacing: -0.01em; transition: color 0.4s;
}
.service-desc {
    font-size: 14px; color: var(--muted);
    line-height: 1.75; transition: color 0.4s;
}

/* WORK SECTION */
.work-tabs {
    display: flex; gap: 0;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line);
}
.work-tab {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--muted); padding: 14px 24px;
    cursor: none; border: none; background: none;
    position: relative; transition: color 0.2s;
}
.work-tab::after {
    content: ''; position: absolute; bottom: -1px; left: 0;
    width: 100%; height: 1px; background: var(--rust);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
}
.work-tab.active { color: var(--ink); }
.work-tab.active::after { transform: scaleX(1); }
.work-tab:hover { color: var(--ink); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

/* Video grid: slightly wider first item */
.work-panel { display: none; }
.work-panel.active { display: block; }

.work-item {
    position: relative; overflow: hidden;
    aspect-ratio: 4/3; background: var(--cream);
    cursor: none;
}
.work-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
    display: block;
}
.work-item:hover img { transform: scale(1.06); }

.work-hover-reveal {
    position: absolute; inset: 0;
    background: rgba(15,13,10,0.75);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
    z-index: 2;
}
.work-item:hover .work-hover-reveal { opacity: 1; }
.work-hover-text {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--paper); border: 1px solid rgba(255,255,255,0.3);
    padding: 14px 24px;
    transform: translateY(8px);
    transition: transform 0.4s 0.05s ease;
}
.work-item:hover .work-hover-text { transform: translateY(0); }

/* Video tile */
.video-item {
    position: relative; aspect-ratio: 16/9;
    grid-column: span 3;
    overflow: hidden; cursor: none;
    background: #0d0d0d;
}
.video-item img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.7; transition: opacity 0.4s, transform 0.6s;
}
.video-item:hover img { opacity: 0.5; transform: scale(1.04); }
.video-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.play-btn {
    width: 72px; height: 72px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.3s, background 0.3s;
}
.video-item:hover .play-btn {
    border-color: var(--rust); background: var(--rust);
}
.play-btn svg { width: 20px; height: 20px; margin-left: 4px; }

/* ABOUT / PROFILE */
.about-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 100px; align-items: start;
}
.about-photo-wrap {
    position: sticky; top: 120px;
}
.about-photo {
    width: 100%; aspect-ratio: 3/4;
    object-fit: cover; object-position: center top;
    filter: sepia(10%) contrast(1.05);
    display: block;
}
.about-photo-caption {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--muted); margin-top: 16px;
    display: flex; justify-content: space-between;
}

.about-label {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--rust); margin-bottom: 20px; display: block;
}
.about-headline {
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 300; line-height: 1.05;
    letter-spacing: -0.02em; margin-bottom: 36px;
}
.about-headline em { font-style: italic; color: var(--rust); }
.about-body {
    color: var(--muted); font-size: 18px;
    line-height: 1.85; margin-bottom: 24px;
}
.about-body-ja {
    color: var(--muted); font-size: 15px;
    line-height: 1.9; margin-bottom: 40px;
    border-left: 1px solid var(--rust);
    padding-left: 24px;
}

/* SKILLS */
.skills-table { border-top: 1px solid var(--line); margin-top: 56px; }
.skill-row {
    display: grid; grid-template-columns: 140px 1fr 40px;
    align-items: center; gap: 24px;
    padding: 20px 0; border-bottom: 1px solid var(--line);
}
.skill-name {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.15em; text-transform: uppercase;
}
.skill-bar-wrap {
    height: 1px; background: var(--line);
    position: relative;
}
.skill-bar {
    position: absolute; left: 0; top: 0;
    height: 1px; background: var(--rust);
    transform-origin: left; transform: scaleX(0);
    transition: transform 1.2s cubic-bezier(.25,.46,.45,.94);
}
.skill-bar.animate { transform: scaleX(1); }
.skill-pct {
    font-family: var(--mono); font-size: 10px;
    color: var(--muted); letter-spacing: 0.1em; text-align: right;
}

/* CONTACT */
.contact-section {
    background: var(--ink); color: var(--paper);
    padding: 120px 52px; position: relative; overflow: hidden;
}
.contact-bg-text {
    position: absolute; bottom: -60px; right: -20px;
    font-size: 280px; font-weight: 300; font-style: italic;
    color: rgba(255,255,255,0.025); line-height: 1;
    pointer-events: none; white-space: nowrap;
    letter-spacing: -0.05em;
}
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
}
.contact-headline {
    font-size: clamp(44px, 6vw, 88px);
    font-weight: 300; line-height: 0.95;
    letter-spacing: -0.03em; margin-bottom: 36px;
}
.contact-headline em { font-style: italic; color: var(--gold); }
.contact-desc {
    color: rgba(245,240,232,0.5);
    font-size: 17px; line-height: 1.75;
}
.contact-details { margin-top: 56px; }
.contact-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-item-label {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 10px; display: block;
}
.contact-item-value {
    font-size: 22px; font-weight: 300;
    color: var(--paper); text-decoration: none;
    transition: color 0.2s;
}
a.contact-item-value:hover { color: var(--gold); }

.contact-links { }
.contact-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none; color: var(--paper);
    transition: color 0.2s; position: relative; overflow: hidden;
}
.contact-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.contact-link:hover::after { transform: scaleX(1); }
.contact-link:hover { color: var(--gold); }
.contact-link-label { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; }
.contact-link-arrow {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); transition: color 0.2s, transform 0.3s;
}
.contact-link:hover .contact-link-arrow {
    color: var(--gold); transform: translateX(4px);
}

/* FOOTER */
footer {
    background: var(--ink); padding: 32px 52px;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-copy {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:0.3s; }

/* Responsive helpers */
@media (max-width: 900px) {
    nav { padding: 20px 24px; }
    .nav-links { gap: 24px; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    section { padding: 72px 24px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .work-grid { grid-template-columns: 1fr 1fr; }
    .video-item { grid-column: span 2; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-photo-wrap { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 52px; }
    .hero-vline { display: none; }
    .hero-left { padding: 140px 24px 72px; }
}
