@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #eeeeee;
  --white: #ffffff;
  --ink: #090909;
  --muted: #626262;
  --line: #dedede;
  --soft: #f4f4f4;
  --heading: 'Inter', Helvetica, Arial, sans-serif;
  --body: 'Inter', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #d42a28; outline-offset: 5px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: calc(100% - 80px); max-width: 1160px; margin-inline: auto; }
.section { padding-block: 100px; }
.eyebrow, .mini-label { font-size: 13px; font-weight: 500; letter-spacing: .075em; line-height: 1.5; }
.eyebrow { color: var(--ink); }
.mini-label { display: block; color: var(--muted); margin-bottom: 17px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; background: white; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* A compact floating navigation, like the reference's white name plate. */
.site-header { position: sticky; top: 20px; z-index: 20; margin-top: 20px; pointer-events: none; }
.nav-inner { pointer-events: auto; width: min(680px, calc(100% - 40px)); min-height: 58px; padding: 7px 8px 7px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 13px; background: #fffffff2; box-shadow: 0 3px 20px #00000004; backdrop-filter: blur(16px); }
.wordmark { display: flex; align-items: center; flex-shrink: 0; }
.wordmark-logo { display: block; width: 180px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.site-header nav > a { padding-block: 9px; }
.site-header nav > a:hover { opacity: .6; }
.site-header .nav-contact { padding: 12px 16px; background: var(--ink); color: white; border-radius: 8px; }
.nav-contact span { margin-left: 14px; }

.hero { padding-top: 86px; text-align: center; }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 32px; }
.hero-top .eyebrow { background: white; padding: 9px 14px; border-radius: 8px; }
.small-star { font-size: 15px; margin-right: 7px; vertical-align: middle; }
.location { font-size: 13px; color: var(--muted); }
.hero h1 { font-size: clamp(52px, 7.9vw, 104px); font-weight: 500; line-height: 1.02; letter-spacing: -.075em; }
.hero h1 span { color: var(--ink); }
.hero-bottom { margin: 32px auto 0; max-width: 640px; }
.hero-description { max-width: 560px; margin-inline: auto; font-size: 19px; letter-spacing: -.02em; line-height: 1.5; }
.hero-action { margin-top: 27px; }
.hero-buttons { display: flex; align-items: flex-start; justify-content: center; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 48px; padding: 14px 20px; border-radius: 9px; background: var(--ink); color: white; font-size: 14px; font-weight: 500; transition: background .2s, transform .2s; }
.button:hover { background: #2c2c2c; transform: translateY(-2px); }
.button span { font-size: 18px; line-height: 1; }
.cv-button { background: white; color: var(--ink); }
.cv-button:hover:not(:disabled) { background: #e2e2e2; }
.cv-button:disabled { color: #737373; cursor: default; transform: none; }
.cv-placeholder { display: flex; align-items: center; flex-direction: column; gap: 6px; }
.cv-placeholder > span { font-size: 14px; color: var(--muted); }
.hero-foot { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 50px; padding-bottom: 12px; font-size: 13px; }
.hero-foot > * { padding: 8px 12px; background: white; border-radius: 7px; }
.hero-foot > span:nth-child(2) { background: transparent; color: var(--muted); }
.hero-foot a span { margin-left: 12px; }

.section-heading { text-align: center; max-width: 820px; margin: 0 auto 42px; }
.section-heading h2 { font-size: clamp(36px, 4.5vw, 60px); margin-top: 18px; line-height: 1.08; letter-spacing: -.04em; }
.section-heading > p { font-size: 13px; max-width: 520px; margin: 21px auto 0; color: var(--muted); }
.featured { padding-top: 94px; }
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 10px 15px; background: white; border-radius: 8px; font-size: 13px; transition: background .2s, color .2s; }
.filters button[aria-pressed=true] { background: var(--ink); color: white; }
.filters button:hover { background: #dcdcdc; color: var(--ink); }
.filters button[aria-pressed=true]:hover { background: #292929; color: white; }
.filter-count { text-align: center; color: var(--muted); font-size: 13px; margin: 17px 0 29px; }
.visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.visual-card { min-width: 0; background: white; border-radius: 17px; padding: 12px 12px 8px; scroll-margin-top: 108px; }
.visual-placeholder, .visual-thumbnail { width: 100%; aspect-ratio: 1.6; position: relative; overflow: hidden; border-radius: 11px; background: #e7e7e7; }
.visual-thumbnail { display: block; padding: 0; }
.visual-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .45s ease; }
.visual-thumbnail:hover img { transform: scale(1.025); }
.thumbnail-expand { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fffffff2; font-size: 16px; }
.visual-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #f0f0ed; }


.placeholder-index { position: absolute; top: 17px; left: 18px; font-size: 14px; letter-spacing: .08em; opacity: .7; }
.placeholder-initials { font-size: clamp(48px, 6vw, 82px); font-weight: 500; line-height: 1; letter-spacing: -.08em; }
.placeholder-caption { font-size: 13px; opacity: .7; }
.visual-card-heading, .card-preview, .visual-card-links, .card-disclosure { margin-inline: 12px; }
.visual-card-heading { margin-top: 23px; }
.visual-card-heading h3 { font-size: 25px; letter-spacing: -.035em; line-height: 1.15; }
.visual-card-heading p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.card-preview { font-size: 16px; color: #555; margin-top: 15px; line-height: 1.7; }
.visual-card-links { display: flex; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.visual-card-links a { display: inline-flex; align-items: center; gap: 22px; font-size: 13px; background: var(--ink); color: white; padding: 9px 13px; border-radius: 7px; }
.visual-card-links a:hover { background: #333; }
.visual-link-pending { font-size: 13px; color: var(--muted); }
.card-disclosure { margin-top: 20px; }
.card-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0 16px; list-style: none; border-top: 1px solid #ebebeb; font-size: 14px; cursor: pointer; }
.card-disclosure > summary::-webkit-details-marker { display: none; }
.read-icon { display: grid; place-items: center; height: 24px; width: 24px; border-radius: 50%; background: var(--soft); font-size: 17px; line-height: 1; transition: transform .2s; }
.read-less-label { display: none; }
.card-disclosure[open] .read-more-label { display: none; }
.card-disclosure[open] .read-less-label { display: inline; }
.card-disclosure[open] .read-icon { transform: rotate(45deg); }
.card-detail-body { background: var(--soft); border-radius: 10px; padding: 22px; margin-bottom: 12px; }
.card-detail-body h4 { font-size: 15px; letter-spacing: -.02em; line-height: 1.35; margin: 25px 0 12px; font-weight: 600; }
.card-detail-body h4:first-child { margin-top: 0; }
.card-detail-body p, .card-detail-body li { color: #575757; font-size: 16px; line-height: 1.8; }
.card-brief > p + p { margin-top: 14px; }
.card-detail-body .card-role { font-size: 13px; margin-top: 16px; }
.card-detail-body ul { padding-left: 17px; margin: 0; }
.card-detail-body li { padding-left: 3px; margin-bottom: 9px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 5px 9px; border-radius: 5px; background: white; font-size: 13px; color: #474747; }
.project-status { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; font-size: 14px !important; }

.system-section { padding-block: 20px 55px; }
.system-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 54px; padding: 48px; background: white; border-radius: 20px; }
.system-copy h2 { font-size: clamp(34px, 3.5vw, 46px); margin-top: 20px; }
.system-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-top: 22px; }
.system-facts { display: flex; gap: 35px; margin-block: 28px; }
.system-facts strong { display: block; font: 500 45px/1 var(--heading); letter-spacing: -.065em; }
.system-facts span { display: block; margin-top: 7px; font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 14px; }
.text-link:hover { opacity: .6; }
.workflow-button { display: block; width: 100%; padding: 0; position: relative; overflow: hidden; border-radius: 11px; background: var(--soft); }
.workflow-button img { width: 100%; height: 300px; object-fit: cover; object-position: center top; }
.workflow-button > span { position: absolute; bottom: 14px; right: 14px; background: white; border-radius: 7px; padding: 9px 12px; font-size: 13px; }
.workflow-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.experience-section .section { padding-top: 50px; }
.experience-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.experience-list > article { min-width: 0; padding: 30px; background: white; border-radius: 15px; }
.experience-list h3 { font-size: 29px; line-height: 1.1; }
.person { font-size: 14px; color: var(--muted); margin-top: 13px; }
.experience-list article > div:nth-child(2) { margin-top: 30px; }
.experience-list h4 { font-size: 15px; letter-spacing: -.035em; line-height: 1.4; margin-bottom: 13px; }
.experience-list article > div > p:not(.person) { color: var(--muted); font-size: 16px; }
.experience-list .text-link { margin-top: 22px; }
.experience-clients { font-size: 13px !important; margin-top: 18px; }
.services { padding-top: 30px; }
.service-list { border-radius: 17px; padding-inline: 30px; background: white; }
.service-list > article { display: grid; grid-template-columns: 32px 1fr 1.2fr; gap: 28px; padding-block: 30px; }
.service-list > article + article { border-top: 1px solid #ebebeb; }
.service-list article > span { font-size: 13px; color: var(--muted); padding-top: 5px; }
.service-list h3 { font-size: 25px; letter-spacing: -.05em; }
.service-list p { color: var(--muted); font-size: 16px; }
.tools-section { text-align: center; max-width: 850px; margin: 40px auto 0; }
.tools-section p { font-size: 14px; color: var(--muted); line-height: 2.1; }
.tools-section p span { color: #b0b0b0; padding-inline: 7px; }
.ai-note { display: flex; align-items: flex-start; gap: 22px; max-width: 760px; margin: 35px auto 0; padding: 25px 28px; background: white; border-radius: 13px; }
.ai-mark { font-size: 26px; line-height: 1; }
.ai-note h3 { font-size: 17px; letter-spacing: -.02em; }
.ai-note p { font-size: 14px; color: var(--muted); margin-top: 9px; }

.contact-section { padding-block: 72px 30px; background: var(--ink); color: white; border-radius: 24px 24px 0 0; }
.contact-section .eyebrow { color: #b9b9b9; text-align: center; }
.contact-main { text-align: center; margin-top: 26px; }
.contact-main h2 { font-size: clamp(42px, 6vw, 78px); letter-spacing: -.065em; }
.contact-main p { font-size: 13px; color: #b9b9b9; max-width: 420px; margin: 24px auto 0; }
.button.light { background: white; color: var(--ink); margin-top: 25px; }
.button.light:hover { background: #dedede; }
.contact-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid #ffffff26; padding-top: 24px; margin-top: 58px; }
.email { font-size: 16px; letter-spacing: -.02em; }
.email:hover { text-decoration: underline; }
.contact-bottom button { background: transparent; color: #b9b9b9; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #ffffff44; }
.contact-location { margin-left: auto; color: #b9b9b9; font-size: 13px; }
#copy-status { font-size: 13px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.footer a span { margin-left: 12px; }

dialog { padding: 0; border: 0; border-radius: 14px; max-width: min(1100px, 94vw); max-height: 92vh; background: white; color: var(--ink); }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; position: sticky; top: 0; z-index: 1; background: white; border-bottom: 1px solid var(--line); }
.dialog-header p { font-size: 14px; }
.dialog-header button { font-size: 14px; white-space: nowrap; padding: 9px 13px; border-radius: 7px; background: var(--ink); color: white; }
.dialog-image-wrap { overflow: auto; max-height: calc(92vh - 85px); padding: 18px; background: var(--paper); }
.dialog-image-wrap img { width: auto; height: auto; max-width: 100%; margin: auto; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .hero h1 { font-size: clamp(52px, 8vw, 84px); }
  .system-grid { padding: 32px; gap: 30px; }
  .experience-list > article { padding: 24px; }
  .experience-list h3 { font-size: 25px; }
  .service-list > article { grid-template-columns: 25px 1fr 1.1fr; gap: 20px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .wrap { width: calc(100% - 36px); }
  .section { padding-block: 65px; }
  .site-header { top: 12px; margin-top: 12px; }
  .nav-inner { width: calc(100% - 36px); min-height: 55px; padding-left: 17px; }
  .site-header nav { gap: 15px; }
  .site-header nav > a:not(.nav-contact) { display: none; }
  .wordmark-logo { width: 165px; }
  .hero { padding-top: 65px; }
  .hero-top { flex-direction: column; gap: 10px; margin-bottom: 26px; }
  .hero-top .eyebrow { font-size: 14px; letter-spacing: .045em; }
  .hero h1 { font-size: clamp(36px, 8.6vw, 65px); line-height: 1.06; letter-spacing: -.065em; }
  .hero-bottom { margin-top: 25px; }
  .hero-description { font-size: 17px; max-width: 460px; }
  .hero-foot { margin-top: 36px; gap: 7px; font-size: 14px; }
  .hero-foot > span:nth-child(2) { flex-basis: 100%; order: 3; }
  .hero-foot > * { padding: 7px 10px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: clamp(31px, 6vw, 44px); }
  .section-heading > p { font-size: 14px; }
  .featured { padding-top: 65px; }
  .filters { gap: 6px; }
  .filters button { padding: 9px 11px; font-size: 14px; }
  .visual-grid { grid-template-columns: 1fr; gap: 20px; max-width: 560px; margin-inline: auto; }
  .visual-card { padding: 10px 10px 6px; border-radius: 15px; }
  .visual-card-heading, .card-preview, .visual-card-links, .card-disclosure { margin-inline: 10px; }
  .visual-card-heading h3 { font-size: 24px; }
  .placeholder-initials { font-size: 66px; }
  .card-detail-body { padding: 19px; }
  .system-section { padding-block: 0 25px; }
  .system-grid { grid-template-columns: 1fr; padding: 28px; gap: 30px; border-radius: 16px; }
  .system-copy h2 { font-size: 37px; }
  .workflow-button img { height: 260px; }
  .experience-section .section { padding-top: 40px; }
  .experience-list { grid-template-columns: 1fr; gap: 14px; }
  .experience-list > article { padding: 28px; }
  .experience-list h3 { font-size: 30px; }
  .experience-list article > div:nth-child(2) { margin-top: 24px; }
  .services { padding-top: 15px; }
  .service-list { padding-inline: 23px; }
  .service-list > article { grid-template-columns: 22px 1fr; gap: 12px 16px; padding-block: 25px; }
  .service-list h3 { font-size: 23px; }
  .service-list p { grid-column: 2; }
  .ai-note { padding: 24px; gap: 16px; }
  .contact-section { padding-block: 55px 28px; border-radius: 18px 18px 0 0; }
  .contact-main h2 { font-size: clamp(38px, 8vw, 56px); }
  .contact-bottom { margin-top: 40px; gap: 12px 20px; }
  .contact-location { flex-basis: 100%; margin-left: 0; }
  .footer { font-size: 14px; }
  .dialog-header { padding: 14px; gap: 12px; }
  .dialog-header p { font-size: 13px; }
  .dialog-image-wrap { padding: 8px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(28px, 8.4vw, 32px); }
  .hero-buttons .button { gap: 15px; padding-inline: 16px; }
  .system-grid { padding: 23px; }
  .visual-card-heading h3 { font-size: 22px; }
  .email { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Small refinements to the original layout. */
.hero-top .eyebrow{background:transparent;padding:0;border-radius:0;letter-spacing:.035em}
.hero-foot{font-size:14px;gap:18px 28px}
.hero-foot>*{background:transparent!important;padding:0;border-radius:0}
.hero-foot strong{font-weight:600}
.hero-foot>a:hover{text-decoration:underline}
.hero-foot>span{color:var(--muted)}
.visual-card{border-radius:12px}
.visual-placeholder,.visual-thumbnail{border-radius:7px}
.visual-placeholder{padding:32px;gap:18px}
.placeholder-index{font-size:12px}
.placeholder-initials{font-size:clamp(26px,3.2vw,42px);font-weight:500;line-height:1.15;letter-spacing:-.035em;text-align:center;max-width:95%;overflow-wrap:anywhere}
.placeholder-caption{font-size:14px;text-align:center;opacity:1;color:var(--muted)}
.ai-note{padding:0;max-width:700px;background:transparent;border-radius:0;justify-content:center;text-align:center}
.ai-note p{font-size:16px}
.mobile-menu{display:none}
@media(max-width:760px){
 .nav-inner>nav{display:none}
 .mobile-menu{display:block;position:relative}
 .mobile-menu>summary{list-style:none;display:flex;align-items:center;gap:16px;font-size:15px;padding:9px 12px;min-height:44px;cursor:pointer}
 .mobile-menu>summary::-webkit-details-marker{display:none}
 .mobile-menu>summary>span{font-size:23px}
 .mobile-menu[open]>summary>span{transform:rotate(45deg)}
 .mobile-menu>nav{position:absolute;right:0;top:56px;width:min(250px,calc(100vw - 44px));display:flex;flex-direction:column;align-items:stretch;gap:0;padding:10px 20px;border:1px solid var(--line);border-radius:10px;background:white;box-shadow:0 10px 25px #0000000a}
 .mobile-menu>nav>a:not(.nav-contact){display:block!important;font-size:16px;padding-block:13px}
 .mobile-menu>nav>a+a{border-top:1px solid var(--line)}
 .hero-foot{font-size:14px;gap:12px 20px}
 .hero-foot>span{flex-basis:100%}
 .placeholder-initials{font-size:32px}
 .hero-description{font-size:17px}
 .filters button{min-height:44px;font-size:13px}
 .section-heading>p{font-size:16px}
}

/* Interaction polish; the existing layout and palette stay the same. */
:root{--motion-ease:cubic-bezier(.22,1,.36,1)}
.filters button{transition:background-color 160ms ease,color 160ms ease,transform 160ms var(--motion-ease)}
.filters button:active{transform:scale(.97)}
.visual-card{transition:box-shadow 200ms ease}
.visual-card-links a,.round-link{transition:background-color 160ms ease,color 160ms ease}
.text-link>span,.button>span,.thumbnail-expand{display:inline-block;transition:transform 180ms var(--motion-ease)}
.mobile-menu>summary>span,.read-icon{transition:transform 180ms var(--motion-ease)}
.visual-thumbnail img{transition:transform 320ms var(--motion-ease)}
@media(hover:hover) and (pointer:fine){
 .visual-card:hover{box-shadow:0 5px 18px #00000009}
 .text-link:hover>span,.button:hover>span{transform:translate(2px,-2px)}
 .visual-thumbnail:hover .thumbnail-expand{transform:translate(1px,-1px)}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation:none!important;transition:none!important}
 .button:hover,.filters button:active,.text-link:hover>span,.button:hover>span,.visual-thumbnail:hover img,.visual-thumbnail:hover .thumbnail-expand{transform:none!important}
}
