:root {
  --ink: #101010;
  --paper: #ffffff;
  --soft: #fafafa;
  --muted: #6e6e74;
  --line: #dedee4;
  --violet: #7048d7;
  --violet-soft: #e9e5fb;
  --max: 1140px;
  --gutter: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: MiSans, "MiSans VF", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.section-shell { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 300; left: 16px; top: -80px; padding: 10px 16px; border: 1px solid var(--ink); background: #fff; }
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(calc(100% - var(--gutter) * 2), 1180px);
  min-height: 112px;
  margin-inline: auto;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 17px; justify-self: start; }
.brand-monogram { position: relative; font-family: "Cormorant Garamond", Georgia, serif; font-size: 3.35rem; line-height: .78; letter-spacing: -.17em; }
.brand-monogram span { display: inline-block; transform: translateX(-2px) skew(-10deg); }
.brand-copy { display: grid; gap: 4px; line-height: 1.1; }
.brand-copy strong { font-size: .82rem; font-weight: 600; letter-spacing: .34em; }
.brand-copy small { font-size: .55rem; letter-spacing: .25em; white-space: nowrap; }
.site-nav { grid-column: 2; justify-self: end; display: flex; align-items: center; justify-content: flex-start; width: 560px; gap: 56px; font-size: .92rem; font-weight: 600; }
.site-nav a { position: relative; display: grid; place-items: center; min-height: 112px; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: 25px; height: 2px; background: var(--violet); transform: scaleX(0); transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { transform: scaleX(1); }

.hero {
  display: grid;
  grid-template-columns: minmax(520px, .9fr) 1.25fr;
  align-items: center;
  width: min(calc(100% - var(--gutter) * 2), 1280px);
  min-height: 760px;
  padding-block: 28px 48px;
}
.hero-copy { position: relative; z-index: 3; min-width: 0; padding: 30px 34px 30px 14px; }
.hero-intro { width: max-content; margin: 0 0 92px; padding-bottom: 13px; border-bottom: 1px solid var(--violet); color: var(--violet); font-size: .92rem; font-weight: 600; letter-spacing: .05em; }
.hero h1 { width: max-content; margin: 0; font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.hero-title-line {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: start;
  column-gap: clamp(14px, 1.45vw, 22px);
  white-space: nowrap;
}
.hero-title-line b {
  margin-top: .12em;
  font-size: clamp(4.15rem, 5.2vw, 4.75rem);
  font-weight: 700;
  line-height: .9;
}
.hero-title-line strong {
  margin-top: clamp(42px, 4vw, 56px);
  font-size: clamp(2.55rem, 3.55vw, 3.2rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
}
.hero-title-line i {
  position: relative;
  isolation: isolate;
  color: var(--violet);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(6.35rem, 8vw, 7.25rem);
  font-weight: 500;
  line-height: .77;
}
.hero-title-line i::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 51%;
  left: 46%;
  width: .72em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--violet-soft);
  transform: translate(-50%, -50%);
}
.hero-title-main {
  display: block;
  margin-top: clamp(24px, 2.2vw, 32px);
  font-size: clamp(6.2rem, 7.75vw, 7rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: .045em;
}
.hero-lead { max-width: 600px; margin: 38px 0 0; color: #505057; font-size: .92rem; line-height: 2; text-align: justify; }
.hero-actions { display: flex; gap: 18px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 54px; padding: 0 30px; border: 1px solid var(--ink); font-size: .85rem; font-weight: 600; letter-spacing: .05em; transition: color .2s ease, background .2s ease, transform .2s ease; }
.button-dark { color: #fff; background: var(--ink); }
.button-outline { background: transparent; }
.button:hover { transform: translateY(-2px); }
.button-dark:hover { background: var(--violet); border-color: var(--violet); }
.button:focus-visible, .project-card:focus-visible, .project-filter:focus-visible, .dialog-close:focus-visible { outline: 3px solid color-mix(in srgb, var(--violet) 65%, white); outline-offset: 4px; }

.hero-visual { position: relative; align-self: stretch; min-width: 0; min-height: 680px; overflow: hidden; isolation: isolate; }
.hero-circle { display: none; }
.portrait-wrap { position: absolute; z-index: 1; inset: 0; margin: 0; overflow: visible; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform: none; }
.hero-glass-card {
  position: absolute;
  z-index: 4;
  right: 36px;
  bottom: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  width: min(390px, calc(100% - 56px));
  padding: 25px 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, rgba(20,18,24,.6), rgba(17,15,21,.88));
  box-shadow: 0 18px 45px rgba(14,12,20,.24);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.hero-glass-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 42%); pointer-events: none; }
.hero-glass-card > * { position: relative; z-index: 1; }
.hero-glass-card p { margin: 0 0 4px; color: rgba(255,255,255,.6); font-size: .76rem; }
.hero-glass-card strong { display: block; font-size: .95rem; font-weight: 500; line-height: 1.5; }
.hero-glass-card span { display: block; margin-top: 8px; color: rgba(255,255,255,.66); font-size: .72rem; letter-spacing: .04em; }
.hero-glass-card a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.94); font-size: 1.2rem; transition: transform .2s ease; }
.hero-glass-card a:hover { transform: translateY(-2px); }

.services { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 26px; padding: 28px 24px; background: #fff; box-shadow: 0 20px 54px rgba(39, 30, 70, .07); }
.services article { display: flex; gap: 20px; min-width: 0; padding: 6px 20px; border-right: 1px solid var(--line); }
.services article:last-child { border-right: 0; }
.service-icon { flex: 0 0 auto; color: var(--violet); font-family: Georgia, serif; font-size: 2.15rem; line-height: 1; }
.services h2 { margin: 0 0 8px; font-size: .9rem; font-weight: 600; }
.services p { margin: 0; color: #57575d; font-size: .82rem; line-height: 1.9; }

.credentials-section { padding: clamp(76px, 8vw, 126px) 0 clamp(38px, 4vw, 63px); }
.credentials-inner { display: grid; gap: 38px; }
.credentials-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: end; gap: 40px; }
.eyebrow { margin: 0 0 12px; color: var(--violet); font-size: .9rem; font-weight: 600; letter-spacing: .1em; }
.credentials-heading h2, .experience-heading h2, .work-heading h2 { margin: 0; font-family: Montserrat, "Arial Black", Arial, sans-serif; font-size: clamp(3.35rem, 5.5vw, 6rem); font-style: italic; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.credentials-heading h2 { font-size: clamp(3rem, 4.6vw, 4.6rem); white-space: nowrap; }
.credentials-heading > p { margin: 0 0 4px; color: #64646a; font-size: .92rem; line-height: 1.9; }
.credentials-grid { display: grid; grid-template-columns: .95fr 1.25fr; gap: 26px; align-items: stretch; }
.education-card, .skills-card { padding: clamp(27px, 2.15vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 38px rgba(39,30,70,.035); }
.credential-card-heading { display: flex; align-items: center; gap: 17px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.credential-card-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #d7d2e6; border-radius: 50%; color: var(--violet); font-size: .72rem; font-weight: 600; }
.credential-card-heading p { margin: 0 0 1px; color: var(--violet); font-size: .72rem; font-weight: 600; letter-spacing: .09em; }
.credential-card-heading h3 { margin: 0; font-family: Montserrat, Arial, sans-serif; font-size: 1.25rem; font-weight: 500; line-height: 1.22; }
.education-list { display: grid; }
.education-item { display: grid; grid-template-columns: 125px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.education-item time { color: var(--violet); font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.education-item h4 { margin: -2px 0 5px; font-size: .94rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.education-item p { margin: 0; color: #6c6c72; font-size: .8rem; }
.aigc-profile { margin-top: 27px; }
.aigc-profile .aigc-kicker { margin: 0 0 4px; color: var(--violet); font-size: .75rem; font-weight: 600; }
.aigc-profile h4 { margin: 0 0 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-family: Arial, sans-serif; font-size: .72rem; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; white-space: nowrap; }
.aigc-profile > p:not(.aigc-kicker) { margin: 0 0 6px; color: #5b5b62; font-size: .72rem; line-height: 1.68; }
.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 25px; padding: 0; list-style: none; }
.skill-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 52px; padding: 11px 14px; border: 1px solid #e3e2e8; border-radius: 9px; }
.skill-list li span { color: var(--violet); font-size: .7rem; font-weight: 600; }
.skill-list strong { font-size: .8rem; font-weight: 600; line-height: 1.4; }
.toolkit { padding-top: 24px; border-top: 1px solid var(--line); }
.toolkit > p { margin: 0 0 15px; color: #65656b; font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.tool-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tool-badge { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 9px; min-width: 0; padding: 8px; border: 1px solid #e3e2e8; border-radius: 9px; }
.tool-badge b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #fff; font-family: Arial, sans-serif; font-size: .82rem; }
.tool-badge small { overflow: hidden; color: #616168; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.tool-ps b { color: #31a8ff; background: #001e36; }
.tool-ai b { color: #ff9a00; background: #330000; }
.tool-c4d b { background: linear-gradient(145deg, #202b60, #a8bcff); }
.tool-cut b { background: #111; }
.aigc-tools { display: grid; gap: 12px; margin-top: 19px; }
.aigc-tools > strong { font-size: .78rem; }
.aigc-tool-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aigc-tool { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid #e3e2e8; border-radius: 9px; background: #fafafa; }
.aigc-tool img { flex: 0 0 auto; width: 24px; height: 24px; object-fit: contain; }
.aigc-tool b { overflow: hidden; color: #58585f; font-size: .66rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.experience-summary { position: relative; padding: clamp(37px, 4vw, 62px) 0; }
.experience-inner { position: relative; display: grid; }
.experience-heading { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 42px; }
.experience-heading p { order: -1; margin: 0 0 12px; color: var(--violet); font-size: .9rem; font-weight: 600; letter-spacing: .1em; }
.career-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.career-metrics article { position: relative; display: grid; align-content: space-between; min-height: 188px; padding: 30px 34px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 38px rgba(39,30,70,.035); }
.career-metrics article::before { content: ""; position: absolute; left: 0; top: 0; width: 28%; height: 4px; background: var(--violet); }
.career-metrics p { display: flex; align-items: flex-end; margin: 0; line-height: .86; }
.career-metrics strong { font-family: "Arial Black", Arial, sans-serif; font-size: clamp(4.4rem, 7vw, 7.2rem); font-style: italic; font-weight: 900; letter-spacing: -.08em; }
.career-metrics sup { align-self: flex-start; margin: 0 0 0 5px; font-size: clamp(1.9rem, 3vw, 3.2rem); font-style: italic; font-weight: 900; }
.career-metrics small { margin: 0 0 7px 9px; font-size: 1.1rem; font-weight: 600; }
.career-metrics span { color: #6c6c72; font-size: .95rem; letter-spacing: .08em; }
.experience-list { display: grid; gap: 18px; margin-top: 34px; }
.experience-item { display: grid; grid-template-columns: 190px 110px 1fr; align-items: center; min-height: 124px; padding: 23px 34px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(39,30,70,.03); }
.experience-item time { padding-right: 30px; color: var(--violet); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.company-logo { display: grid; place-items: center; height: 72px; padding: 4px 26px 4px 20px; border-left: 1px solid var(--line); }
.company-logo img { width: 100%; max-height: 64px; object-fit: contain; }
.company-logo img[src$="logo-gb.png"] { clip-path: inset(0 0 6% 0); }
.company-logo img[src$="logo-greenvill.png"] { clip-path: inset(0 0 10% 0); }
.company-logo img[src$="logo-mg.png"] { clip-path: inset(0 0 20% 0); }
.experience-item > div { padding-left: 28px; }
.experience-item h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 600; line-height: 1.4; }
.experience-item p { margin: 0; color: #5a5a61; font-size: .9rem; line-height: 1.8; }

.work-section { padding: clamp(41px, 4vw, 65px) 0 68px; }
.work-heading { margin-bottom: 18px; }
.work-heading .eyebrow { margin-bottom: 10px; }
.project-filters { display: flex; align-items: center; gap: clamp(22px, 3vw, 54px); margin-bottom: 38px; overflow-x: auto; scrollbar-width: none; }
.project-filters::-webkit-scrollbar { display: none; }
.project-filter { position: relative; flex: 0 0 auto; padding: 0 0 10px; border: 0; background: transparent; color: #55555b; font-size: 1rem; letter-spacing: .12em; cursor: pointer; }
.project-filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.project-filter:hover, .project-filter.is-active { color: var(--ink); }
.project-filter.is-active::after { transform: scaleX(1); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.project-grid.is-single-layout {
  display: block;
  columns: 3;
  column-gap: clamp(22px, 3vw, 44px);
}
.project-card { min-width: 0; display: grid; grid-template-columns: 1fr; gap: 0; padding: 0 0 20px; border: 0; border-bottom: 2px solid var(--violet); background: transparent; text-align: left; cursor: pointer; }
.project-card[hidden] { display: none; }
.project-image { position: relative; aspect-ratio: 1.55; margin-bottom: 22px; overflow: hidden; border-radius: 12px; background: var(--violet); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .45s ease; }
.project-card-single .project-image { background: #f4f4f4; }
.project-card-single .project-image img { object-fit: contain; }
.project-grid.is-single-layout .project-card-single {
  width: 100%;
  margin: 0 0 clamp(26px, 3vw, 42px);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  vertical-align: top;
}
.project-grid.is-single-layout .project-card-single .project-image { aspect-ratio: auto; }
.project-grid.is-single-layout .project-card-single .project-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-card:hover .project-image img { transform: scale(1.035); filter: saturate(.92) contrast(1.04); }
.project-card-video .project-image::after { content: "▶"; position: absolute; left: 20px; bottom: 20px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(14,12,20,.58); box-shadow: 0 10px 26px rgba(0,0,0,.18); backdrop-filter: blur(12px); font-size: .92rem; text-indent: .14em; }
.project-title { font-size: 1.08rem; font-weight: 600; letter-spacing: .04em; }
.project-type { margin-top: 10px; color: #6d6d74; font-size: .84rem; line-height: 1.8; }
.back-to-top { display: inline-flex; align-items: center; gap: 18px; float: right; min-height: 54px; margin-top: 68px; padding: 0 28px; color: #fff; background: var(--ink); font-size: .88rem; font-weight: 600; }
.back-to-top span { font-size: 1.3rem; }

.site-footer { clear: both; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 42px; margin-top: 50px; padding-block: 48px 24px; border-top: 1px solid var(--line); }
.footer-brand { align-self: start; }
.footer-col { display: grid; align-content: start; gap: 7px; padding-left: 28px; border-left: 1px solid var(--line); }
.footer-col h2 { margin: 0 0 7px; font-size: .82rem; letter-spacing: .08em; }
.footer-col a, .footer-col span { color: #4d4d53; font-size: .8rem; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d6d6dc; border-radius: 50%; font-size: .75rem; font-weight: 600; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 20px; color: #9a9aa0; font-size: .72rem; text-align: center; }

.text-editor-toggle { position: fixed; z-index: 180; right: 24px; bottom: 24px; min-height: 44px; padding: 0 20px; border: 1px solid #2d2541; border-radius: 999px; color: #fff; background: #17131f; box-shadow: 0 12px 32px rgba(20,16,30,.22); font-size: .78rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; }
.text-editor-toggle[aria-expanded="true"] { background: var(--violet); border-color: var(--violet); }
.text-editor-panel { position: fixed; z-index: 180; right: 24px; bottom: 82px; width: min(330px, calc(100vw - 32px)); padding: 20px; border: 1px solid #dedbe8; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 24px 60px rgba(27,20,48,.2); backdrop-filter: blur(16px); }
.text-editor-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.text-editor-panel header strong { font-size: .92rem; }
.text-editor-panel header button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.text-editor-selection { min-height: 38px; margin: 0 0 16px; padding: 9px 11px; border-radius: 7px; color: #5d536f; background: #f2effb; font-size: .78rem; line-height: 1.5; }
.text-editor-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; margin-top: 13px; color: #454149; font-size: .78rem; }
.text-editor-control output { color: var(--violet); font-variant-numeric: tabular-nums; }
.text-editor-control input { grid-column: 1 / -1; width: 100%; accent-color: var(--violet); }
.text-editor-color { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; color: #454149; font-size: .78rem; }
.text-editor-color input { width: 44px; height: 30px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.text-editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.text-editor-actions button { min-height: 38px; border: 1px solid #27232e; background: #fff; font-size: .76rem; cursor: pointer; }
.text-editor-actions button:first-child { color: #fff; background: #17131f; }
.text-editor-actions button:disabled, .text-editor-panel input:disabled { opacity: .4; cursor: default; }
.text-editor-panel > small { display: block; margin-top: 11px; color: #88838f; font-size: .7rem; text-align: center; }
body.text-edit-mode [data-editable-text] { outline: 1px dashed rgba(108,72,199,.42); outline-offset: 3px; cursor: text; }
body.text-edit-mode [data-editable-text]:hover { background: rgba(108,72,199,.06); }
body.text-edit-mode [data-editable-text]:focus { outline: 2px solid var(--violet); outline-offset: 4px; background: rgba(108,72,199,.08); }
[data-editable-text].has-edit-color, [data-editable-text].has-edit-color * { color: var(--editable-color) !important; fill: var(--editable-color) !important; }

.project-dialog { width: min(1360px, calc(100% - 24px)); max-height: 94vh; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; background: #fff; box-shadow: 0 40px 90px rgba(0,0,0,.28); }
.project-dialog.is-ecommerce { width: min(905px, calc(100% - 24px)); }
.project-dialog::backdrop { background: rgba(12,10,18,.78); backdrop-filter: blur(6px); }
.dialog-shell { position: relative; padding: clamp(30px, 5vw, 70px); }
.dialog-close { position: sticky; z-index: 4; top: 0; float: right; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.6rem; cursor: pointer; }
.dialog-header { max-width: 780px; padding: 10px 0 36px; }
.dialog-header h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.08; }
.dialog-header > p:not(.eyebrow) { color: #54545b; font-size: 1rem; line-height: 1.8; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dialog-meta span { padding: 7px 11px; color: #4f3499; background: var(--violet-soft); font-size: .78rem; }
.dialog-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 28px 0 42px; border-top: 1px solid var(--line); }
.dialog-story h3 { margin: 0 0 9px; font-size: .95rem; }
.dialog-story p { margin: 0; color: #5e5e65; font-size: .88rem; line-height: 1.8; }
.dialog-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dialog-gallery figure { margin: 0; overflow: visible; background: #fff; }
.dialog-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }
.project-dialog.is-ecommerce .dialog-header,
.project-dialog.is-ecommerce .dialog-story,
.project-dialog.is-ecommerce .dialog-gallery { width: min(750px, 100%); margin-inline: auto; }
.dialog-gallery.has-video { grid-template-columns: 1fr; }
.dialog-video { display: block; width: 100%; max-height: 74vh; background: #080808; object-fit: contain; }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  :root { --gutter: clamp(24px, 4vw, 48px); }
  .site-header { grid-template-columns: auto 1fr; }
  .site-nav { grid-column: 2; justify-self: end; width: auto; gap: 34px; }
  .hero { grid-template-columns: .88fr 1.12fr; min-height: 682px; padding-block: 32px 64px; }
  .hero-copy { padding-right: 10px; }
  .hero-title-line { column-gap: clamp(12px, 1.5vw, 18px); }
  .hero-title-line b { font-size: clamp(3.55rem, 6vw, 4.35rem); }
  .hero-title-line strong { margin-top: clamp(36px, 4.5vw, 48px); font-size: clamp(2.15rem, 3.75vw, 2.85rem); }
  .hero-title-line i { font-size: clamp(5.5rem, 9vw, 6.75rem); }
  .hero-title-main { margin-top: clamp(20px, 2.4vw, 28px); font-size: clamp(5.2rem, 8.7vw, 6.55rem); }
  .services { padding-inline: 16px; }
  .services article { padding-inline: 18px; }
  .credentials-heading { grid-template-columns: 1fr; gap: 20px; }
  .credentials-heading > p { max-width: 580px; }
  .credentials-grid { grid-template-columns: 1fr; }
  .education-card, .skills-card { min-height: 0; }
  .experience-item { grid-template-columns: 170px 92px 1fr; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr; align-items: start; min-height: 0; padding-block: 24px 0; }
  .brand { justify-self: start; }
  .site-nav { grid-column: 1; justify-self: stretch; justify-content: space-between; gap: 20px; margin-top: 18px; overflow-x: auto; }
  .site-nav a { min-height: 56px; }
  .site-nav a::after { bottom: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-copy { padding: 20px 0 28px; }
  .hero-intro { margin-bottom: 46px; }
  .hero-title-line { justify-content: start; column-gap: clamp(13px, 2.5vw, 22px); }
  .hero-title-line b { font-size: clamp(4.2rem, 11.8vw, 5.8rem); }
  .hero-title-line strong { margin-top: clamp(50px, 9.5vw, 70px); font-size: clamp(2.8rem, 7.7vw, 3.8rem); }
  .hero-title-line i { font-size: clamp(6.7rem, 18vw, 8.7rem); }
  .hero-title-main { margin-top: clamp(20px, 3.2vw, 28px); font-size: clamp(6.4rem, 17.5vw, 8.6rem); }
  .hero-visual { min-height: 650px; }
  .portrait-wrap { inset: 0; }
  .services { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .services article { padding: 24px; }
  .services article:nth-child(2) { border-right: 0; }
  .services article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .credentials-heading { grid-template-columns: 1fr; gap: 20px; }
  .credentials-heading > p { max-width: 580px; }
  .career-metrics { grid-template-columns: 1fr; }
  .career-metrics article { min-height: 180px; }
  .experience-item { grid-template-columns: 160px 90px 1fr; padding-inline: 24px; }
  .experience-item p { font-size: .85rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid.is-single-layout { columns: 2; }
  .site-footer { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .brand-monogram { font-size: 2.7rem; }
  .brand-copy strong { font-size: .74rem; }
  .brand-copy small { font-size: .5rem; }
  .site-nav { justify-content: flex-start; gap: 30px; padding-bottom: 4px; }
  .site-nav a { font-size: .86rem; }
  .hero { padding-block: 24px 42px; }
  .hero-intro { margin-bottom: 38px; font-size: .86rem; }
  .hero h1 { width: 100%; }
  .hero-title-line { column-gap: clamp(7px, 2.2vw, 11px); white-space: nowrap; }
  .hero-title-line b { font-size: clamp(2.4rem, 11.6vw, 3.1rem); }
  .hero-title-line strong { margin-top: clamp(29px, 8.5vw, 38px); font-size: clamp(1.55rem, 7.2vw, 2rem); }
  .hero-title-line i { font-size: clamp(3.85rem, 18.5vw, 4.9rem); }
  .hero-title-main { margin-top: clamp(18px, 5.2vw, 25px); font-size: clamp(3.65rem, 17.7vw, 4.65rem); }
  .hero-lead { margin-top: 30px; font-size: .92rem; text-align: left; }
  .hero-actions { flex-wrap: wrap; }
  .button { flex: 1 1 145px; min-width: 0; min-height: 52px; padding-inline: 16px; }
  .hero-visual { min-height: 490px; margin-top: 10px; }
  .hero-circle { top: 24px; left: 5%; width: 88%; }
  .portrait-wrap { inset: 0; }
  .portrait-wrap img { object-position: center bottom; }
  .hero-glass-card { right: 12px; bottom: 18px; width: calc(100% - 24px); padding: 19px; border-radius: 16px; }
  .services { grid-template-columns: 1fr; padding: 8px 18px; }
  .services article { padding: 24px 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .services article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .services article:last-child { border-bottom: 0; }
  .credentials-section { padding-block: 64px 32px; }
  .experience-summary { padding-block: 32px; }
  .work-section { padding-block: 32px 64px; }
  .credentials-heading h2, .experience-heading h2, .work-heading h2 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .credentials-heading h2 { white-space: normal; }
  .credentials-heading > p { font-size: .9rem; }
  .education-card, .skills-card { padding: 24px 20px; }
  .credential-card-heading { padding-bottom: 24px; }
  .education-item { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .education-item h4 { margin-top: 0; white-space: normal; }
  .aigc-profile h4 { font-size: .9rem; white-space: normal; overflow-wrap: anywhere; }
  .skill-list { grid-template-columns: 1fr; }
  .tool-badges, .aigc-tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career-metrics article { min-height: 160px; padding: 30px; }
  .career-metrics strong { font-size: 4.3rem; }
  .experience-item { grid-template-columns: 1fr auto; gap: 12px; padding: 22px 20px; }
  .experience-item time { padding: 0; }
  .company-logo { width: 88px; height: 54px; padding: 0; border: 0; }
  .experience-item > div { grid-column: 1 / -1; padding: 18px 0 0; border-top: 1px solid var(--line); }
  .experience-item h3 { font-size: 1.03rem; }
  .project-filters { margin-bottom: 28px; }
  .project-filter { font-size: .9rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-grid.is-single-layout { columns: 1; }
  .project-image { aspect-ratio: 1.45; }
  .back-to-top { float: none; width: 100%; justify-content: center; margin-top: 42px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 30px 18px; margin-top: 20px; padding-top: 38px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { padding-left: 16px; }
  .site-footer .footer-col:nth-of-type(4) { grid-column: 1 / -1; }
  .dialog-story, .dialog-gallery { grid-template-columns: 1fr; }
  .text-editor-toggle { right: 16px; bottom: 16px; }
  .text-editor-panel { right: 16px; bottom: 70px; }
}

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