/* Shared themes and responsive presentation. */
:root {
  color-scheme: light;
  --bg:#ffffff; --surface:#f5f5f7; --card:#ffffff; --text:#000000;
  --muted:#000000; --quiet:#000000; --line:#e5e5e7;
  --strong:#000000; --inverse:#ffffff; --hover:#ededf0;
  --control-border:#c4c4ca; --contact-bg:#f5f5f7;
  --backdrop:rgba(29,29,31,.35); --thumb:#ffffff; --track:#ededf0;
  --thumb-shadow:0 1px 4px rgba(0,0,0,.1);
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#101010; --surface:#1c1c1e; --card:#1c1c1e; --text:#f5f5f7;
  --muted:#f5f5f7; --quiet:#f5f5f7; --line:#303034;
  --strong:#f5f5f7; --inverse:#101010; --hover:#2a2a2e;
  --control-border:#515158; --contact-bg:#1c1c1e;
  --backdrop:rgba(0,0,0,.8); --thumb:#47474c; --track:#242426;
  --thumb-shadow:0 1px 4px rgba(0,0,0,.25);
}
html{scrollbar-gutter:stable}
body,.preview-bar,.site-header,.site-header nav,.project-visual,.process-section,
.contact-section,footer,dialog,.dialog-image-wrap,.button,.filters button,.socials a,
.tool-list b,.ai-tools span,.skill-tags span,.project-caption>span,.icon-button,
.empty-category,.theme-toggle,.theme-thumb {
  transition-property:background-color,color,border-color,box-shadow;
  transition-duration:180ms;
  transition-timing-function:ease;
}
body{background:var(--bg);color:var(--text)}
.button,.socials a{transition-property:background-color,color,border-color,transform}
a:focus-visible,button:focus-visible,summary:focus-visible,.contact-section a:focus-visible{outline-color:var(--text)}
.preview-bar{border-color:var(--line);color:var(--muted)}
.preview-bar span,.wordmark-dot,.site-header nav a,.availability,.resume-status,
.hero h1 span,.hero-rule,.gallery-bottom p span,.step,.step span,.tools-note,
.about-monogram span,.period,.timeline-index,.earlier summary span,.resume-pending small,
.footer-top>span,.footer-top small,.footer-top nav,.footer-bottom,.detail-row dt,
.dialog-footer>span,.case-study .study-note{color:var(--muted)}
.site-header a:hover,footer a:hover,.text-link:hover{color:var(--text)}
.header-contact{border-color:var(--control-border)}
.availability i{background:var(--text);box-shadow:0 0 0 4px var(--surface)}
.button{border-color:var(--control-border);color:var(--text)}
.button:hover{background:var(--hover);border-color:var(--muted)}
.button.primary,.filters button.active{background:var(--strong);border-color:var(--strong);color:var(--inverse)}
.button.primary:hover{background:var(--strong);border-color:var(--strong);opacity:.88}
.socials a{border-color:var(--control-border);color:var(--muted)}
.socials a:hover{color:var(--inverse);background:var(--strong)}
.filters button{border-color:var(--line)}
.filters button:hover{color:var(--text);border-color:var(--muted)}
.project-visual{background:var(--card);border-color:var(--line)}
.project-visual .open-icon{background:var(--card);border-color:var(--control-border);color:var(--text)}
.project-card:hover .open-icon{background:var(--hover)}
.project-card:focus-visible .project-visual{border-color:var(--text)}
.project-caption>span{color:var(--muted);border-color:var(--line)}
.placeholder-art{background:var(--surface);color:var(--muted)}
.placeholder-art .format-frame{border-color:var(--control-border);color:var(--muted)}
.placeholder-art small{color:var(--muted)}
.empty-category,.draft-note{background:var(--surface);border-color:var(--line)}
.draft-note>span{color:var(--muted)}
.process-section{background:var(--surface);border-color:var(--line)}
.process-grid li,.toolbox{border-color:var(--control-border)}
.tool-list{color:var(--muted)}
.tool-list b{border-color:var(--control-border);color:var(--text)}
.ai-tools span,.skill-tags span{border-color:var(--control-border);color:var(--muted)}
.about-copy .about-lead,.timeline .role,.case-study h4{color:var(--text)}
.contact-section{background:var(--contact-bg);color:var(--text)}
.contact-top .eyebrow,.contact-top .availability,.contact-bottom p,.contact-section h2>span:first-child{color:var(--muted)}
.contact-top .availability i{background:var(--text);box-shadow:0 0 0 4px var(--line)}
.contact-arrow{color:var(--text)}
.contact-bottom{border-color:var(--line)}
.email-link{border-color:var(--control-border)}
.contact-section .socials a{color:var(--muted);border-color:var(--control-border)}
.contact-section .socials a:hover{background:var(--strong);color:var(--inverse)}
dialog{background:var(--card);color:var(--text);border-color:var(--control-border)}
dialog::backdrop{background:var(--backdrop)}
.icon-button{background:var(--surface);color:var(--text);border-color:var(--control-border)}
.icon-button:hover{background:var(--hover)}
.dialog-image-wrap{background:var(--surface);border-color:var(--line)}
.detail-row,.case-study,.case-study .study-note{border-color:var(--line)}
.skip-link{background:var(--strong);color:var(--inverse)}
.wordmark{white-space:nowrap;flex-shrink:0}
.header-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}
.theme-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-around;width:72px;height:40px;flex:0 0 72px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--track);color:var(--muted);isolation:isolate}
.theme-toggle svg{position:relative;z-index:1;width:16px;height:16px;flex-shrink:0;pointer-events:none}
.theme-thumb{position:absolute;left:4px;top:4px;width:30px;height:30px;border-radius:50%;background:var(--thumb);box-shadow:var(--thumb-shadow);transition:transform 180ms ease,background-color 180ms ease;pointer-events:none}
.theme-sun{color:var(--text)}
[data-theme="dark"] .theme-thumb{transform:translateX(32px)}
[data-theme="dark"] .theme-sun{color:var(--muted)}
[data-theme="dark"] .theme-moon{color:var(--text)}
.hero-person{display:flex;align-items:center;gap:18px;min-width:0}
.portrait-stack{position:relative;flex:0 0 80px;width:80px;height:80px;border-radius:50%;overflow:hidden;background:var(--surface)}
.portrait{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%;border-radius:50%}
.portrait-dark{visibility:hidden}
[data-theme="dark"] .portrait-light{visibility:hidden}
[data-theme="dark"] .portrait-dark{visibility:visible}
.hero-identity{display:flex;flex-direction:column;gap:3px}
.hero-identity>span:first-child{font-size:26px;font-weight:600;line-height:1.25;letter-spacing:-.6px;color:var(--text)}
.hero-name-end{white-space:nowrap}
.name-badge{display:inline-block;width:21px;height:21px;margin-left:7px;vertical-align:-2px}
.hero-identity>span:last-child{font-size:12px;color:var(--muted)}
@media(max-width:1050px){.site-header{gap:18px}.site-header nav{gap:15px}.header-actions{gap:12px}}
@media(max-width:860px) and (min-width:761px){.site-header nav{gap:12px}.site-header nav a{font-size:10px}.header-contact{padding:10px 14px}.header-contact span{margin-left:10px}.site-header{gap:12px}.wordmark{font-size:22px}}
@media(max-width:760px){
  .site-header{gap:10px}.header-actions{gap:8px;margin-left:auto}.header-contact{margin-left:0;padding:8px 10px}.header-contact span{margin-left:5px}
  .menu-button{color:var(--muted)}.site-header nav{background:var(--surface);border-color:var(--line)}
  .theme-toggle{width:64px;flex-basis:64px;height:36px}.theme-thumb{width:26px;height:26px}
  [data-theme="dark"] .theme-thumb{transform:translateX(28px)}
  .theme-toggle svg{width:15px;height:15px}
  .hero-person{gap:13px}.portrait-stack{flex-basis:64px;width:64px;height:64px}
  .hero-identity>span:first-child{font-size:20px;letter-spacing:-.4px}.hero-identity>span:last-child{font-size:11px}
  .name-badge{width:18px;height:18px;margin-left:5px}
}
@media(max-width:380px){.site-header{gap:9px}.wordmark{font-size:20px}.header-contact{font-size:0;width:36px;height:36px;padding:0;display:grid;place-items:center}.header-contact span{font-size:15px;margin:0}.menu-button{font-size:10px;padding-left:0}}
@media(prefers-reduced-motion:reduce){.theme-thumb{transition:none}body,.preview-bar,.site-header,.site-header nav,.project-visual,.process-section,.contact-section,footer,dialog,.dialog-image-wrap,.button,.filters button,.socials a,.tool-list b,.ai-tools span,.skill-tags span,.project-caption>span,.icon-button,.empty-category,.theme-toggle{transition:none}}

/* Refinements from the annotated private preview. */
.experience-number,.experience-number span{color:#000000;font-weight:700}
[data-theme="dark"] .experience-number,[data-theme="dark"] .experience-number span{color:#f5f5f7}
#experience .resume-intro .button:hover,
#experience .resume-intro .button:focus-visible{background:#000000;border-color:#000000;color:#ffffff}
.hero-actions{margin-top:24px}
.tool-list>span{min-height:34px;gap:8px}
.tool-list .tool-logo{display:block;width:26px;height:26px;flex:0 0 26px;color:var(--text);fill:currentColor}
.ai-tools>span{padding:7px 10px}
.ai-tools .tool-logo{width:20px;height:20px;flex-basis:20px}
.header-socials{gap:6px;flex-shrink:0}
.header-socials a{width:32px;height:32px}
.header-socials svg{width:14px;height:14px}
@media(min-width:981px){.site-header{gap:20px}.site-header nav{margin-left:auto;gap:22px}.header-actions{gap:14px}}
@media(max-width:980px){
  .site-header{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;height:130px;column-gap:14px;row-gap:10px;padding-block:15px;position:relative}
  .site-header>.wordmark{grid-column:1;grid-row:1;justify-self:start}
  .site-header>.header-actions{grid-column:2;grid-row:1;margin:0}
  .site-header>.header-socials{grid-column:1 / -1;grid-row:2;justify-self:end;margin-right:66px}
  .header-socials a{width:36px;height:36px}
  .menu-button{display:block;grid-column:2;grid-row:2;justify-self:end;border:0;background:transparent;color:var(--muted);font-size:11px;padding:8px 0;order:initial}
  .menu-button span{margin-left:6px;font-size:13px}
  .site-header nav{display:none;position:absolute;top:129px;left:0;right:0;background:var(--surface);z-index:4;padding:15px;flex-direction:column;border:1px solid var(--line);border-top:0;gap:0}
  .site-header nav.open{display:flex}
  .site-header nav a{padding:12px;font-size:14px}
}

/* Centered introduction and balanced header requested in the private preview. */
.site-header{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:1fr;height:96px;gap:20px;padding-block:0;position:relative}
.site-header>.wordmark{grid-column:1;grid-row:1;justify-self:start}
.site-header>#primary-nav{grid-column:2;grid-row:1;margin:0;justify-self:center}
.site-header>.header-socials{grid-column:3;grid-row:1;justify-self:end;margin:0}
.hero{text-align:center;padding-top:48px}
.hero-topline{justify-content:center;align-items:center}
.hero-person{flex-direction:column;gap:18px;max-width:100%}
.hero-identity{align-items:center;gap:7px;max-width:100%}
.hero h1{margin:32px auto 28px;max-width:1000px}
.hero-bottom{justify-content:center;align-items:center}
.hero-copy{max-width:680px;margin-inline:auto}
.hero-copy>p:first-child{max-width:650px;margin-inline:auto}
.hero-actions{justify-content:center}
.hero-actions .text-link{margin-left:8px}
.hero-rule{margin-top:46px}
@media(max-width:980px){
  .site-header{gap:12px}
  .site-header>.menu-button{grid-column:2;grid-row:1;justify-self:center}
  .site-header>#primary-nav{position:absolute;grid-column:1 / -1;top:95px;left:0;right:0;width:100%;justify-self:stretch}
}
@media(max-width:760px){
  .site-header{height:84px;gap:8px}
  .site-header>#primary-nav{top:83px}
  .header-socials{gap:5px}.header-socials a{width:30px;height:30px}
  .hero{padding-top:36px}
  .hero-person{gap:16px}
  .hero-topline{flex-direction:row}
  .hero h1{font-size:clamp(28px,7.3vw,56px);letter-spacing:-1.4px;margin:28px auto 24px}
  .hero-copy>p:first-child{max-width:480px}
  .hero-actions .text-link{margin-left:0}
}
@media(max-width:380px){.site-header .wordmark{font-size:18px}.header-socials{gap:4px}.header-socials a{width:28px;height:28px}.site-header>.menu-button{font-size:10px}.site-header>.menu-button span{margin-left:3px}}
@media(min-width:981px) and (max-height:760px){
  .site-header{height:80px}
  .hero{padding-top:28px}
  .hero-person{gap:12px}
  .hero h1{font-size:clamp(52px,5.5vw,72px);margin:22px auto 20px}
  .hero-copy>p:first-child{font-size:16px;line-height:1.5}
  .hero-actions{margin-top:18px}
}

/* The headline always uses twice the supporting paragraph's font size. */
.hero #hero-title{margin-bottom:8px}
.about-section{row-gap:64px}
.about-niches{grid-column:1 / -1;min-width:0}
.about-niches>h3{font-size:clamp(28px,3.5vw,44px);line-height:1.15;letter-spacing:-1.2px;font-weight:600;margin:16px 0 36px;color:var(--text)}
.niche-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;list-style:none;margin:0;padding:0}
.niche-grid>li{border-top:1px solid var(--control-border);padding-top:18px}
.niche-grid h4{font-size:18px;line-height:1.35;letter-spacing:-.35px;font-weight:600;margin:0 0 12px;color:var(--text)}
.niche-grid p{font-size:14px;line-height:1.65;margin:0 0 12px;color:var(--muted)}
.niche-grid .niche-brands{color:var(--text);font-weight:600;margin-bottom:0}
@media(max-width:980px){.niche-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}}
@media(max-width:540px){.about-section{row-gap:44px}.niche-grid{grid-template-columns:1fr;gap:26px}.about-niches>h3{margin-bottom:28px}}
.hero{--hero-copy-size:17px}
.hero #hero-title{font-size:calc(var(--hero-copy-size) * 2);line-height:1.15;letter-spacing:-.03em}
.hero .hero-copy>p:first-child{font-size:var(--hero-copy-size)}
@media(min-width:981px) and (max-height:760px){.hero{--hero-copy-size:16px}}
@media(max-width:760px){.hero{--hero-copy-size:14px}}

/* Danie-inspired footer: quiet columns, oversized name, fine bottom rule. */
.portfolio-footer{display:block;margin-top:0;padding-block:120px 32px}
.footer-links{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,12fr) minmax(0,24fr) minmax(0,9fr);gap:0 clamp(16px,2vw,28px);max-width:none;padding-bottom:90px}
.footer-callout{min-width:0}
.footer-callout h2{font-size:clamp(26px,2.65vw,40px);line-height:1.2;letter-spacing:-.8px;margin:0 0 32px;color:var(--text);max-width:580px;padding-right:48px}
.button.button-cta,.footer-callout .footer-call-button{font-family:inherit;font-size:clamp(12px,1.2vw,18px);text-transform:uppercase;border-radius:6px;padding:16px 24px}
.footer-callout .footer-call-button:hover,.footer-callout .footer-call-button:focus-visible{color:var(--inverse)}
.footer-column,.footer-column nav{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.footer-column{font-family:inherit;font-size:14px;line-height:1.6;text-transform:uppercase}
.footer-column .footer-label{font:inherit;font-size:12px;font-weight:500;color:var(--text);letter-spacing:.08em;margin:0 0 10px}
.footer-column a{color:var(--muted)}
.footer-column a:hover,.footer-column a:focus-visible{color:var(--text)}
.footer-contact>a:first-of-type{overflow-wrap:anywhere}
.footer-column a>span[aria-hidden]{font-size:11px;margin-left:3px}
.portfolio-footer .footer-name{display:block;width:100%;font-size:24vw;font-weight:500;letter-spacing:-.065em;line-height:1.05;color:var(--text);margin-bottom:72px;white-space:nowrap}
.portfolio-footer .footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:24px;font-size:11px;gap:16px;color:var(--muted)}
.portfolio-footer .footer-bottom>a{font-family:inherit;text-transform:uppercase;font-size:11px}
@media(min-width:761px) and (max-width:1100px){.portfolio-footer{padding-top:70px}.footer-links{grid-template-columns:.8fr 1.6fr 1fr;gap:32px}.footer-callout{grid-column:1 / -1}.footer-callout h2{max-width:540px}}
@media(max-width:760px){
  .portfolio-footer{padding-block:40px 24px}
  .footer-links{grid-template-columns:1fr 1fr;gap:32px 24px;padding-bottom:42px}
  .footer-column{font-size:13px;gap:12px}
  .footer-column nav{gap:12px}
  .footer-callout{grid-column:1 / -1;grid-row:1}
  .footer-callout h2{font-size:24px;letter-spacing:-.6px;padding-right:0}
  .footer-menu{grid-column:1;grid-row:2}.footer-social{grid-column:2;grid-row:2}
  .footer-contact{grid-column:1 / -1;grid-row:3}
  .portfolio-footer .footer-name{font-size:clamp(64px,20vw,150px);margin-bottom:30px}
  .portfolio-footer .footer-bottom{font-size:10px}
  .portfolio-footer .footer-bottom>a{font-size:10px}
}

/* One font family and more breathing room around the introduction. */
body,button,input,select,textarea{font-family:inherit}
.hero{padding-top:64px;padding-bottom:32px}
@media(max-width:760px){.hero{padding-top:48px;padding-bottom:24px}}

.hero-mobile-socials{display:none}
.menu-link-label {
  display: inline-grid;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  vertical-align: bottom;
}
.menu-link-label > span {
  grid-area: 1 / 1;
  min-width: 0;
  transform: translateY(var(--label-offset, 0%));
}
.menu-link-label > span[aria-hidden] {
  transform: translateY(calc(100% + var(--label-offset, 0%)));
  pointer-events: none;
}
.button:has(> .menu-link-label):hover { transform: none; }
.project-page-footer > .text-link:hover { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu-link-label > span { transition: transform 320ms cubic-bezier(.22, 1, .36, 1); }
  :is(a, button, summary):is(:focus-visible, :active) > .menu-link-label { --label-offset: -100%; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(a, button, summary):hover > .menu-link-label { --label-offset: -100%; }
}
@media(max-width:980px){
  .site-header>.menu-button{grid-column:3;grid-row:1;justify-self:end;display:grid;place-items:center;width:44px;height:44px;padding:0}
  .site-header>.header-socials{grid-column:2;grid-row:1;justify-self:center}
  .site-header>#primary-nav{text-align:center;align-items:stretch}
  .site-header>#primary-nav a{width:100%;text-align:center}
  #primary-nav .menu-link-label{line-height:1.6}
}
@media(max-width:980px){
  .site-header>.header-socials{display:none}
  .hero-mobile-socials{display:flex;justify-content:center;gap:10px;margin:18px auto 0}
  .hero-mobile-socials a{width:40px;height:40px}
}
