:root {
  --paper: #f5f4ef;
  --surface: #fff;
  --ink: #171716;
  --muted: #6c6a63;
  --line: #dcdad2;
  --accent: #6558e8;
  --accent-soft: #e9e6ff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(29, 27, 20, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; z-index: 30; top: 0; background: rgba(245, 244, 239, .88); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(220, 218, 210, .8); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 40px; aspect-ratio: 1; color: #fff; background: var(--ink); border-radius: 50%; font-size: 13px; letter-spacing: -.04em; }
.brand-name { font-size: 14px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.main-nav a { position: relative; }
.main-nav a:not(.nav-resume)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.nav-resume { padding: 11px 16px; border: 1px solid var(--ink); border-radius: 100px; transition: background .2s, color .2s; }
.nav-resume:hover { background: var(--ink); color: #fff; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px 0; cursor: pointer; }

.hero { min-height: 760px; padding: 82px 0 72px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 84px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 28px; color: #3d3c37; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbd67; box-shadow: 0 0 0 5px rgba(47, 189, 103, .13); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 28px; font-size: clamp(52px, 5.1vw, 76px); line-height: .98; letter-spacing: -.065em; font-weight: 750; }
h1 span { color: var(--accent); }
.hero-lead { max-width: 655px; margin-bottom: 32px; color: #4c4a44; font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 0 22px; border-radius: 100px; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { background: var(--accent); }
.button-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.button-ghost:hover { border-color: var(--ink); }
.hero-facts { display: flex; gap: 40px; margin: 52px 0 0; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dt { font-weight: 750; font-size: 16px; }
.hero-facts dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 470px); }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: .79; border-radius: 26px; box-shadow: var(--shadow); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; border-radius: inherit; filter: saturate(.88) contrast(.98); }
.portrait-label { position: absolute; left: 32px; bottom: 32px; padding: 11px 15px; color: #fff; background: rgba(23, 23, 22, .88); border-radius: 12px; font-size: 12px; line-height: 1.35; backdrop-filter: blur(12px); }

.statement { padding: 100px 0; color: #fff; background: var(--ink); }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 80px; }
.section-kicker { margin-bottom: 14px; color: var(--muted); font-size: 12px; line-height: 1.2; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.statement .section-kicker { color: #9e9c96; }
.statement-text { max-width: 900px; margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.12; letter-spacing: -.045em; }

.works { padding: 130px 0 150px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 56px; }
.section-head h2, .about h2, .experience h2 { margin: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.section-head > p { max-width: 380px; margin: 0 0 4px; color: var(--muted); }
.filter-panel { margin-bottom: 42px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill, .subfilter { appearance: none; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .2s, color .2s, border .2s; }
.filter-pill { padding: 13px 18px; border-radius: 100px; font-size: 14px; }
.filter-pill span { margin-left: 8px; color: var(--muted); font-size: 11px; }
.filter-pill:hover, .filter-pill.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.filter-pill.is-active span { color: #bbb9b2; }
.subfilter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.subfilter-row > span { margin-right: 4px; }
.subfilter { padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.subfilter:hover, .subfilter.is-active { color: var(--ink); background: #fff; border-color: #c7c4bb; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px 24px; }
.work-card[hidden] { display: none; }
.work-open { width: 100%; padding: 0; text-align: left; border: 0; background: transparent; cursor: pointer; }
.work-collage { overflow: hidden; height: 520px; padding: 38px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 14px; border-radius: var(--radius); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.work-open:hover .work-collage { transform: translateY(-5px); }
.work-collage img { width: 100%; border-radius: 10px; box-shadow: 0 18px 32px rgba(0,0,0,.17); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.work-open:hover .work-collage img { transform: translateY(-8px); }
.theme-orange { background: #eea440; }
.theme-olive { background: #9a9870; }
.theme-pink { background: #f0a7c9; }
.theme-red { background: #dc564f; }
.theme-blue { background: #a8c7e8; }
.theme-lilac { background: #c8b7ea; }
.work-meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 22px; }
.work-meta span:first-child { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.work-meta h3 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.035em; }
.open-arrow { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: background .2s, color .2s; }
.work-open:hover .open-arrow { color: #fff; background: var(--ink); }
.work-open > p { max-width: 510px; margin: 12px 0 0; color: var(--muted); }
.empty-state { padding: 84px 32px; text-align: center; border: 1px dashed #bebbb0; border-radius: var(--radius); background: rgba(255,255,255,.32); }
.empty-state span { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.empty-state h3 { margin: 10px 0 12px; font-size: 30px; }
.empty-state p { max-width: 620px; margin: 0 auto; color: var(--muted); }

.about { padding: 130px 0; background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.about-title h2 { font-size: clamp(42px, 4.6vw, 64px); }
.about-copy { padding-top: 34px; color: #45443f; font-size: 19px; }
.about-copy p { margin-bottom: 22px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 260px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid span { color: var(--muted); font-size: 12px; }
.capability-grid h3 { margin: 72px 0 12px; font-size: 23px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.experience { padding: 130px 0 150px; }
.experience-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: start; }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.time { color: var(--muted); font-size: 13px; }
.timeline h3 { margin-bottom: 10px; font-size: 20px; }
.timeline p { margin: 0; color: var(--muted); }
.tools-card { position: sticky; top: 110px; padding: 32px; color: #fff; background: var(--ink); border-radius: var(--radius); }
.tools-card .section-kicker { color: #aaa8a1; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 52px; }
.tool-list span { padding: 8px 11px; border: 1px solid #45443f; border-radius: 9px; color: #deddd7; font-size: 12px; }
.tools-card a { display: flex; justify-content: space-between; padding-top: 18px; border-top: 1px solid #45443f; font-size: 14px; }

.contact { padding: 130px 0; color: #fff; background: var(--accent); }
.contact .section-kicker { color: #d4cffd; }
.contact h2 { max-width: 940px; margin-bottom: 64px; font-size: clamp(54px, 8vw, 110px); line-height: .92; letter-spacing: -.07em; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { position: relative; min-height: 250px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); background: rgba(255,255,255,.94); border-radius: var(--radius); transition: transform .25s ease, background .25s ease; }
.contact-card:hover { transform: translateY(-6px); background: #fff; }
.contact-icon { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 16px; }
.contact-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-copy { margin-top: auto; display: grid; gap: 4px; }
.contact-copy small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-copy strong { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.contact-copy > span { margin-top: 5px; color: var(--muted); font-size: 13px; }
.card-arrow { position: absolute; right: 24px; top: 24px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: color .2s, background .2s; }
.contact-card:hover .card-arrow { color: #fff; background: var(--accent); border-color: var(--accent); }
.site-footer { padding: 34px 0; background: var(--ink); color: #aaa8a1; font-size: 12px; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 20px; }
.site-footer a { color: #fff; }

.case-dialog { width: min(1080px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.25); }
.case-dialog::backdrop { background: rgba(14,14,13,.72); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; z-index: 2; float: right; top: 18px; margin: 18px 18px 0 0; padding: 11px 15px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255,255,255,.92); cursor: pointer; }
.dialog-content { padding: 72px 62px 64px; }
.dialog-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-content h2 { max-width: 780px; margin: 12px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; }
.dialog-intro { max-width: 760px; color: var(--muted); font-size: 19px; }
.dialog-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 42px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-details span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.dialog-gallery { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.dialog-gallery img { width: 100%; border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.dialog-note { margin: 28px 0 0; color: var(--muted); font-size: 13px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .shell { width: min(100% - 48px, 940px); }
  .hero { min-height: auto; padding: 72px 0; gap: 42px; }
  h1 { font-size: clamp(48px, 6vw, 64px); }
  .work-collage { height: 430px; padding: 28px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-layout { grid-template-columns: 1fr; }
  .tools-card { position: static; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; }
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; left: 16px; right: 16px; top: 62px; display: none; padding: 20px; flex-direction: column; align-items: stretch; gap: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .nav-resume { text-align: center; }
  .hero { padding: 46px 0 64px; grid-template-columns: 1fr; gap: 54px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { gap: 18px; justify-content: space-between; margin-top: 38px; }
  .hero-facts dt { font-size: 14px; }
  .hero-visual { justify-self: center; width: min(90%, 430px); }
  .statement { padding: 74px 0; }
  .statement-grid { grid-template-columns: 1fr; gap: 25px; }
  .statement-text { font-size: 34px; }
  .works, .about, .experience, .contact { padding: 88px 0; }
  .section-head { display: block; margin-bottom: 38px; }
  .section-head > p { margin-top: 20px; }
  .section-head h2, .about h2, .experience h2 { font-size: 45px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-pill { white-space: nowrap; }
  .subfilter-row { align-items: flex-start; }
  .subfilter-row > span { width: 100%; }
  .work-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-collage { height: 470px; padding: 27px; }
  .work-meta h3 { font-size: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-copy { padding-top: 0; font-size: 17px; }
  .capability-grid { grid-template-columns: 1fr; margin-top: 55px; }
  .capability-grid article { min-height: 210px; }
  .capability-grid h3 { margin-top: 50px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .contact h2 { font-size: 54px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 210px; }
  .site-footer .shell { flex-direction: column; }
  .dialog-content { padding: 68px 20px 32px; }
  .dialog-details { grid-template-columns: 1fr; gap: 20px; }
  .dialog-gallery { grid-template-columns: 1fr; padding: 18px; }
}

@media (max-width: 420px) {
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .work-collage { height: 390px; padding: 21px 16px; gap: 7px; }
  .contact h2 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
