:root {
  --paper: #FAF9F6;
  --ink: #292C27;
  --accent: #D76A4E;
  --green: #17684F;
  --muted: #5c6058;
  --line: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --soft: color-mix(in srgb, var(--green) 5%, var(--paper));
  --warm: color-mix(in srgb, var(--accent) 8%, var(--paper));
  --section-space: 80px;
  --content-gap: 40px;
  --panel-space: 36px;
  --page-gutter: clamp(32px, 7vw, 144px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.04em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: calc(100% - var(--page-gutter) * 2); max-width: 1440px; margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; border-radius: 3px; }
/* Use a complete icon and real text so the brand cannot be cropped by image offsets. */
.brand-art { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-duck { display: block; width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; border-radius: 50%; }
.brand-wordmark { display: block; color: var(--ink); font-family: 'Manrope', system-ui, sans-serif; font-size: 23px; line-height: 1.3; font-weight: 800; letter-spacing: .025em; }
.brand:hover { opacity: .85; }
.desktop-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.desktop-nav a { padding: 11px 0; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--green); }
.desktop-nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.header-contact { display: inline-flex; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 7px; padding: 9px 17px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.header-contact:hover { background: var(--warm); }
.header-contact[aria-current="page"] { color: var(--green); border-color: var(--green); background: var(--soft); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
.mobile-nav { display: none; padding: 6px 24px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
.eyebrow, .section-index, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .07em; font-size: 12px; font-weight: 500; color: var(--green); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 10%, transparent); flex-shrink: 0; }
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 4vw, 72px); }
.hero h1 { font-size: clamp(46px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.06em; line-height: 1.1; margin: 24px 0; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-copy strong { color: var(--ink); font-weight: 600; }
.hero-learning { max-width: 620px; margin-top: 20px; padding-left: 16px; border-left: 2px solid var(--green); color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-learning span { display: block; margin-bottom: 4px; color: var(--green); font: 12px/1.5 ui-monospace, monospace; letter-spacing: .035em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 12px 20px; min-height: 48px; border-radius: 7px; font-size: 15px; font-weight: 700; border: 1px solid var(--line); background: transparent; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-1px); background: var(--warm); }
.button-primary { background: var(--green); border-color: var(--green); color: var(--paper); }
.button-primary:hover { background: color-mix(in srgb, var(--green) 85%, var(--ink)); }
.button .icon { width: 18px; height: 18px; }
.hero-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.hero-footer .divider { width: 1px; height: 14px; background: var(--line); }
.profile-visual { position: relative; padding: 24px 28px 0; background: var(--warm); border: 1px solid var(--line); border-radius: 14px; isolation: isolate; overflow: hidden; }
.profile-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
.visual-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .035em; color: var(--muted); }
.portrait-stage { position: relative; margin-top: 20px; display: flex; justify-content: center; align-items: center; min-height: 248px; }
.portrait-ring { width: 230px; height: 230px; padding: 10px; border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); border-radius: 50%; position: relative; }
.portrait-ring::before { content: ''; position: absolute; inset: -12px; border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 50%; }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: saturate(.75); }
.profile-caption { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 24px -28px 0; padding: 24px 28px; background: var(--paper); border-top: 1px solid var(--line); }
.profile-caption h2 { font-size: 25px; font-weight: 600; }
.profile-caption p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.profile-caption .icon { width: 27px; height: 27px; color: var(--green); }
.impact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 32px 0; border-bottom: 1px solid var(--line); gap: 24px; }
.impact-stat { display: flex; align-items: center; gap: 16px; }
.impact-stat + .impact-stat { border-left: 1px solid var(--line); padding-left: 24px; }
.impact-value { font-size: 40px; font-weight: 500; line-height: 1.1; letter-spacing: -.06em; white-space: nowrap; }
.impact-label { color: var(--muted); font-size: 13px; line-height: 1.55; }
.impact-label strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.section { padding: var(--section-space) 0; }
.section-bordered { border-bottom: 1px solid var(--line); }
/* Give full-width bands and adjacent sections the same vertical rhythm. */
.section-header { min-width: 0; }
.section-title { text-wrap: balance; }
.section-description { text-wrap: pretty; }
.section-index { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.section-index span { color: var(--muted); }
.section-title { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; line-height: 1.16; letter-spacing: -.05em; }
.section-description { font-size: 16px; color: var(--muted); max-width: 530px; line-height: 1.7; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: var(--content-gap); margin-bottom: var(--content-gap); }
.section-header .section-description { max-width: 400px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 5vw, 88px); }
.about-description { max-width: 72ch; }
.about-description p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.about-description p + p { margin-top: 16px; }
.about-description strong { color: var(--ink); font-weight: 600; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.text-link .icon { width: 17px; height: 17px; }
.text-link:hover { color: var(--green); border-color: var(--accent); }
.about-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: var(--content-gap); }
.expertise-item { border-top: 1px solid var(--line); padding-top: 28px; }
.expertise-icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--green); background: var(--soft); }
.expertise-item h3 { font-size: 21px; font-weight: 600; margin: 16px 0 12px; letter-spacing: -.035em; }
.expertise-item p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.learning-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 7px; margin-top: 24px; }
.learning-label { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.learning-topics { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--ink); }
.learning-topics span + span::before { content: '↗'; color: var(--green); margin-right: 12px; }
.tools-section { background: var(--soft); border-block: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.tool-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.tool-card:hover { border-color: var(--green); }
.tool-preview { height: 128px; display: flex; align-items: center; justify-content: center; position: relative; background: var(--warm); border-bottom: 1px solid var(--line); overflow: hidden; }
.token-preview { font: 19px/1.5 ui-monospace, monospace; font-weight: 500; letter-spacing: -.04em; text-align: center; padding: 25px 12px 8px; }
.token-preview span:nth-child(1), .token-preview span:nth-child(3) { color: var(--ink); }
.token-preview span:nth-child(2) { color: var(--green); }
.preview-label { position: absolute; left: 17px; top: 10px; font: 11px/1.5 ui-monospace, monospace; letter-spacing: .035em; color: var(--muted); }
.code-preview { font: 13px/1.8 ui-monospace, monospace; background: var(--paper); padding: 5px 15px; border: 1px solid var(--line); border-radius: 5px; margin-top: 15px; }
.code-preview .line-no { color: var(--muted); margin-right: 12px; }
.code-preview em { font-style: normal; color: var(--green); }
.code-preview mark { background: color-mix(in srgb, var(--accent) 20%, var(--paper)); border-radius: 3px; color: var(--ink); padding: 2px 4px; }
.tool-body { padding: var(--panel-space); display: flex; flex-direction: column; flex: 1; }
.tool-number { font: 12px/1.5 ui-monospace, monospace; color: var(--green); letter-spacing: .035em; }
.tool-body h3 { font-size: 28px; font-weight: 600; letter-spacing: -.04em; margin: 12px 0; }
.tool-body p { font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 490px; }
.tool-links { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.source-link { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.source-link .icon { height: 17px; width: 17px; }
.source-link:hover { color: var(--green); }
.project-controls { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; }
.search-box { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; max-width: 340px; background: var(--paper); }
.search-box .icon { width: 18px; height: 18px; color: var(--muted); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: none; background: none; font-size: 16px; color: var(--ink); }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 15%, transparent); }
.search-box input:focus-visible { outline: none; }
.project-count { margin-left: auto; font: 12px/1.5 ui-monospace, monospace; color: var(--muted); }
.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 170px 135px; align-items: center; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.project-row:hover { background: var(--soft); }
.project-number { font: 13px/1 ui-monospace, monospace; color: var(--muted); }
.project-info h2 { font-size: 21px; letter-spacing: -.035em; font-weight: 600; }
.project-info p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 8px; max-width: 660px; }
.project-category { justify-self: start; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--green); font: 11px/1.5 ui-monospace, monospace; }
.project-actions { display: flex; gap: 17px; justify-content: end; }
.project-action { font-size: 14px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.project-action .icon { height: 17px; width: 17px; }
.project-action:hover { color: var(--green); }
.project-more { margin: 24px auto 0; display: flex; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); font-size: 16px; }
.experience-layout { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(40px, 5vw, 88px); }
.experience-row { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.experience-row:last-child { margin-bottom: 0; }
.experience-date { font: 12px/1.65 ui-monospace, monospace; color: var(--muted); padding-top: 4px; }
.experience-row h3 { font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.experience-company { font-size: 15px; margin: 8px 0 12px; color: var(--green); }
.experience-row p:last-child { font-size: 16px; line-height: 1.7; color: var(--muted); }
.education-note { border-left: 2px solid var(--accent); padding-left: 16px; margin-top: 24px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.education-note strong { font-size: 15px; color: var(--ink); }
.freelance-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--content-gap); padding: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--warm); }
.freelance-panel .section-description { margin-top: 16px; max-width: 540px; }
.freelance-points { padding: 0; margin: 0 0 22px; list-style: none; }
.freelance-points li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.freelance-points .icon { width: 18px; height: 18px; color: var(--green); }
.freelance-contact-note { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.creator-strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 0; border-block: 1px solid var(--line); }
.creator-identity { display: flex; gap: 18px; align-items: center; }
.creator-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 9px; flex-shrink: 0; color: var(--green); }
.creator-strip h2 { font-size: 24px; letter-spacing: -.035em; font-weight: 600; }
.creator-strip p { font-size: 16px; color: var(--muted); margin-top: 7px; max-width: 720px; }
.creator-strip > .text-link { white-space: nowrap; }
.contact-panel { background: var(--ink); border-radius: 13px; padding: 48px; position: relative; overflow: hidden; color: var(--paper); display: grid; grid-template-columns: 1.35fr 1fr; gap: 35px; align-items: end; }
.contact-panel .section-index { color: var(--paper); opacity: .8; }
.contact-panel h2 { font-size: clamp(36px, 4vw, 54px); font-weight: 500; line-height: 1.13; letter-spacing: -.045em; }
.contact-panel h1 span, .contact-panel h2 span { color: var(--accent); }
.contact-panel p { font-size: 16px; color: var(--paper); opacity: .85; max-width: 500px; margin-top: 16px; }
.contact-links { display: flex; flex-direction: column; align-items: start; gap: 20px; min-width: 0; }
.contact-email { font-size: clamp(17px, 1.75vw, 24px); letter-spacing: -.03em; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 45%, transparent); display: flex; align-items: center; gap: 15px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--paper); border-color: var(--accent); }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--paper); font-size: 14px; }
.social-links a { display: flex; align-items: center; gap: 6px; }
.social-links .icon { width: 17px; height: 17px; }
.social-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-button { background: none; color: var(--paper); border: 0; padding: 0; font-size: 14px; display: flex; gap: 7px; align-items: center; }
.copy-button .icon { height: 16px; width: 16px; }
.copy-feedback { font-size: 14px; color: var(--paper); min-height: 0; }
.copy-feedback:not(:empty) { margin-top: 6px; }
.site-footer { padding: 0 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-inner .brand-wordmark { font-size: 20px; }
.footer-inner p { margin-top: 7px; font-size: 12px; }
@media (min-width: 1600px) {
  .hero h1 { font-size: 88px; }
  .portrait-stage { min-height: 280px; }
  .portrait-ring { width: 260px; height: 260px; }
}
@media (max-width: 1100px) {
  .desktop-nav { gap: 17px; }
  .header-inner { gap: 16px; }
  .hero-grid { gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .hero h1 { font-size: 60px; }
  .impact-stat { gap: 12px; }
  .impact-stat + .impact-stat { padding-left: 18px; }
  .impact-strip { gap: 18px; }
  .impact-value { font-size: 35px; }
  .about-grid, .experience-layout { gap: 30px; }
  .learning-bar { align-items: start; flex-direction: column; gap: 12px; }
  .project-category { display: none; }
  .project-row { grid-template-columns: 28px minmax(0, 1fr) 130px; gap: 16px; }
  .experience-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-panel { gap: 28px; padding: 30px; }
  .contact-panel h2 { font-size: 44px; }
}
@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .header-contact { margin-left: auto; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 46px; }
  .hero-copy { font-size: 17px; }
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 24px; }
  .hero-footer { font-size: 12px; gap: 9px; }
  .profile-visual { padding: 16px 16px 0; }
  .portrait-stage { min-height: 190px; margin-top: 16px; }
  .portrait-ring { width: 170px; height: 170px; padding: 8px; }
  .visual-topline { font-size: 10px; }
  .profile-caption { margin-inline: -16px; padding: 15px 16px; }
  .profile-caption h2 { font-size: 22px; }
  .profile-caption p { font-size: 12px; }
  :root { --section-space: 64px; --content-gap: 32px; --panel-space: 28px; }
  .section-header .section-description { max-width: 320px; }
  .about-grid { grid-template-columns: 1fr 1.3fr; gap: 30px; }
  .expertise-grid { gap: 20px; }
  .expertise-item h3 { font-size: 20px; }
  .experience-layout { grid-template-columns: 1fr 1.4fr; }
  .freelance-panel { gap: 28px; padding: 26px; }
  .contact-panel { grid-template-columns: 1fr; gap: 24px; }
  .creator-strip { align-items: start; flex-direction: column; gap: 16px; }
  .creator-strip > .text-link { margin-left: 66px; }
}
@media (max-width: 700px) {
  :root { --section-space: 56px; --content-gap: 28px; --panel-space: 24px; }
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 40px); }
  .header-inner { height: 66px; gap: 12px; }
  .brand-art { gap: 8px; }
  .brand-wordmark { font-size: 21px; }
  .header-contact { padding: 8px 11px; font-size: 13px; gap: 8px; }
  .header-contact .icon { width: 16px; height: 16px; }
  .menu-toggle { width: 42px; height: 42px; }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero .eyebrow { font-size: 11px; }
  .hero h1 { font-size: clamp(38px, 10.3vw, 62px); margin: 20px 0; }
  .hero-copy { font-size: 17px; line-height: 1.7; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .hero-actions .button { padding: 11px 14px; font-size: 14px; gap: 10px; }
  .hero-footer { margin-top: 20px; font-size: 12px; gap: 8px 12px; }
  .hero-footer .divider { display: none; }
  .profile-visual { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; column-gap: 20px; row-gap: 8px; padding: 20px; border-radius: 10px; }
  .profile-grid { display: none; }
  .visual-topline { grid-column: 2; align-self: end; font-size: 10px; letter-spacing: .02em; }
  .visual-topline span:last-child { display: none; }
  .portrait-stage { grid-column: 1; grid-row: 1 / span 2; min-height: 0; margin: 0; }
  .portrait-ring { width: 90px; height: 90px; padding: 5px; }
  .portrait-ring::before { display: none; }
  .profile-caption { grid-column: 2; align-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .profile-caption h2 { font-size: 22px; }
  .profile-caption p { font-size: 12px; line-height: 1.5; margin-top: 3px; }
  .profile-caption > .icon { display: none; }
  .impact-strip { gap: 14px; padding: 20px 0; }
  .impact-stat { display: block; }
  .impact-stat + .impact-stat { padding-left: 14px; }
  .impact-value { font-size: 34px; margin-bottom: 7px; }
  .impact-label { font-size: 13px; }
  .impact-label strong { font-size: 13px; line-height: 1.5; }
  .impact-context { display: none; }

  .section-title { font-size: 34px; }
  .section-index { font-size: 12px; margin-bottom: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-description p { font-size: 16px; }
  .about-links { margin-top: 20px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .expertise-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 16px; padding-top: 20px; }
  .expertise-icon { grid-row: 1 / span 2; width: 38px; height: 38px; }
  .expertise-item h3 { margin: 1px 0 8px; font-size: 21px; }
  .expertise-item p { grid-column: 2; font-size: 16px; }
  .learning-bar { padding: 20px; margin-top: 24px; gap: 12px; }
  .learning-topics { display: grid; gap: 7px; font-size: 15px; }
  .learning-topics span + span::before { content: none; }
  .learning-topics span::before { content: '↗'; margin-right: 10px; color: var(--green); }
  .section-header { display: block; margin-bottom: 24px; }
  .section-header .section-description { margin-top: 16px; max-width: 100%; }
  .tool-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool-preview { height: 112px; }
  .tool-body { padding: var(--panel-space); }
  .tool-body h3 { font-size: 26px; }
  .tool-links { padding-top: 20px; gap: 12px; }
  .source-link { font-size: 13px; }
  .text-link { font-size: 14px; }
  .preview-label { font-size: 10px; left: 14px; }
  .token-preview { font-size: 18px; }
  .code-preview { font-size: 11px; padding-inline: 10px; }
  .project-controls { gap: 12px; margin-top: 20px; flex-wrap: wrap; }
  .search-box { max-width: none; flex: 1; min-width: 175px; }
  .project-count { font-size: 11px; }
  .project-row { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .project-info h2 { font-size: 21px; }
  .project-info p { font-size: 15px; }
  .project-actions { grid-column: 2; justify-content: start; gap: 22px; margin-top: 0; }
  .project-number { align-self: start; padding-top: 7px; font-size: 12px; }
  .project-more { font-size: 14px; }
  .experience-layout { grid-template-columns: 1fr; gap: 28px; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; padding-bottom: 24px; margin-bottom: 24px; }
  .experience-date { font-size: 12px; }
  .experience-row h3 { font-size: 23px; }
  .education-note { margin-top: 18px; font-size: 14px; }
  .freelance-panel { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
  .freelance-panel .section-title { font-size: 32px; }
  .freelance-points { margin-bottom: 18px; }
  .freelance-points li { font-size: 16px; }
  .creator-strip { gap: 24px; padding: 32px 0; }
  .creator-identity { align-items: start; gap: 14px; }
  .creator-icon { width: 40px; height: 40px; }
  .creator-strip h2 { font-size: 23px; }
  .creator-strip p { font-size: 16px; }
  .creator-strip > .text-link { margin-left: 54px; }
  .contact-panel { padding: 28px 24px; gap: 24px; border-radius: 10px; }
  .contact-panel h2 { font-size: 39px; }
  .contact-panel p { font-size: 16px; }
  .contact-email { font-size: 19px; gap: 10px; }
  .contact-email .icon { width: 18px; height: 18px; }
  .social-links { gap: 15px; font-size: 13px; }
  .copy-button { font-size: 14px; }
  .footer-inner { align-items: start; gap: 20px; }
  .footer-inner .brand-wordmark { font-size: 19px; }
  .footer-inner p { font-size: 11px; max-width: 220px; }
}
@media (min-width: 481px) and (max-width: 1200px) {
  .impact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-strip .impact-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .impact-strip .impact-stat:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 20px; }
}
@media (max-width: 480px) {
  .impact-strip { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
  .impact-stat { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 16px 0; }
  .impact-stat + .impact-stat { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .impact-value { margin-bottom: 0; font-size: 32px; }
  .impact-label strong { font-size: 14px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .header-contact { display: none; }
  .menu-toggle { margin-left: auto; }
  .hero h1 { font-size: 36px; }
  .hero-actions .button { font-size: 13px; padding-inline: 12px; gap: 7px; }
  .hero-footer { font-size: 12px; }
  .impact-value { font-size: 30px; }


  .impact-label strong { font-size: 14px; }
  .profile-visual { grid-template-columns: 75px minmax(0, 1fr); gap: 8px 16px; padding: 16px; }
  .portrait-ring { width: 75px; height: 75px; }
  .profile-caption h2 { font-size: 20px; }
  .visual-topline { font-size: 9px; }
  .contact-email { font-size: 16px; }
  .contact-panel { padding-inline: 20px; }
  .social-links { gap: 11px; }
  .social-links .icon { width: 15px; height: 15px; }
  .tool-links { flex-wrap: wrap; }
}
@media (pointer: coarse) {
  .project-action, .source-link, .text-link, .copy-button, .social-links a { min-height: 44px; align-items: center; }
  .hero-actions .button { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shared multipage layout */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.site-footer { margin-top: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.page-title { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.12; font-weight: 600; letter-spacing: -.05em; text-wrap: balance; }
.page-intro { padding: 48px 0 40px; }
.page-intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.page-lead { max-width: 580px; font-size: 18px; line-height: 1.75; color: var(--muted); }
.page-content { padding-bottom: 56px; }
.page-about { padding-top: 48px; }
.page-about .about-description { padding-top: 34px; }
.page-about + #experience { border-top: 1px solid var(--line); }
body[data-page="freelance"] .page-content { padding-top: 48px; padding-bottom: 0; }
body[data-page="freelance"] .freelance-panel { padding: 48px; }
.freelance-focus { margin-top: 0; }
.page-contact { padding-top: 48px; }
.page-contact .contact-panel { padding: 56px 48px; }
.page-contact .contact-panel .page-title { font-size: clamp(38px, 4vw, 56px); }
.page-contact .contact-links { align-self: center; }
.page-note { display: flex; gap: 20px; padding: 28px; margin-top: 32px; border: 1px solid var(--line); border-radius: 10px; }
.page-note .expertise-icon { flex-shrink: 0; }
.page-note h2 { font-size: 22px; font-weight: 600; }
.page-note p { font-size: 16px; color: var(--muted); max-width: 760px; margin: 8px 0 16px; }
.home-freelance { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 36px 40px; background: var(--warm); border: 1px solid var(--line); border-radius: 12px; }
.home-freelance h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; }
.home-freelance p:not(.section-index) { color: var(--muted); font-size: 16px; margin-top: 16px; }
.home-freelance .button { flex-shrink: 0; }
.next-step { margin-block: var(--section-space); padding-block: 32px; border-block: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.next-step h2 { font-size: 32px; font-weight: 600; }
.next-step p:not(.section-index) { max-width: 720px; margin-top: 12px; font-size: 16px; color: var(--muted); }
.next-step .button { flex-shrink: 0; }
.contact-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.contact-topics > div { border-top: 1px solid var(--line); padding-top: 20px; }
.contact-topics h3 { font-size: 22px; font-weight: 600; }
.contact-topics p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filters button { padding: 10px 13px; min-height: 44px; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 600; }
.project-filters button:hover { background: var(--soft); }
.project-filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
body[data-page="projects"] .project-controls { flex-wrap: wrap; margin-top: 0; margin-bottom: 24px; }
body[data-page="projects"] .search-box { flex: 1 1 220px; }
.footer-pages { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; font-size: 13px; }
.footer-pages a { padding: 6px 0; }
.footer-pages a:hover, .footer-pages [aria-current] { color: var(--green); }
.footer-top { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.footer-top .icon { width: 16px; height: 16px; }
body[data-page="home"] .hero { padding-top: 48px; }
@media (max-width: 1100px) {
  .page-intro-grid { gap: 32px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-pages { order: 3; flex-basis: 100%; justify-content: start; }
}
@media (max-width: 1000px) {
  .page-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-lead { max-width: 700px; font-size: 17px; }
  .page-about .about-grid { grid-template-columns: 1fr; }
  .page-about .about-description { padding-top: 0; }
  .home-freelance { gap: 28px; padding: 32px; }
  .next-step { align-items: start; }
  body[data-page="freelance"] .freelance-panel { padding: 32px; }
}
@media (max-width: 700px) {
  .page-intro, .page-about, .page-contact, body[data-page="freelance"] .page-content { padding-top: 32px; }
  .page-intro { padding-bottom: 28px; }
  .page-title { font-size: clamp(34px, 8vw, 46px); }
  .breadcrumbs { margin-bottom: 24px; font-size: 12px; }
  .page-content { padding-bottom: 40px; }
  .home-freelance { align-items: start; flex-direction: column; padding: 28px 24px; gap: 24px; }
  .home-freelance h2 { font-size: 31px; }
  .next-step { flex-direction: column; gap: 24px; padding-block: 28px; }
  .next-step h2 { font-size: 28px; }
  .page-note { padding: 22px 20px; gap: 16px; }
  .page-note .expertise-icon { display: none; }
  body[data-page="freelance"] .freelance-panel { padding: 28px 24px; }
  .page-contact .contact-panel { padding: 32px 24px; }
  .page-contact .contact-panel .page-title { font-size: 38px; }
  .contact-topics { grid-template-columns: 1fr; gap: 24px; }
  body[data-page="projects"] .project-controls { gap: 16px; }
  .project-filters { gap: 6px; }
  .project-filters button { font-size: 12px; padding-inline: 10px; }
  .project-count { margin-left: 0; }
  body[data-page="home"] .hero { padding-top: 36px; }
  .footer-pages { gap: 8px 20px; font-size: 13px; }
}

/* Present development experience alongside the security disciplines. */
.page-about .expertise-grid, .freelance-focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.development-stack { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.stack-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.stack-heading h2 { font-size: 30px; font-weight: 600; }
.stack-heading > p { color: var(--muted); font-size: 16px; max-width: 440px; }
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack-group { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.stack-group-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.stack-group h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.stack-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; color: var(--green); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.stack-category-icon { width: 19px; height: 19px; }
.stack-tech-icon { width: 17px; height: 17px; flex: 0 0 17px; object-fit: contain; opacity: .88; }
.stack-note { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.stack-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.stack-group li { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.freelance-proof { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.freelance-proof strong { color: var(--green); font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.freelance-proof span { font-size: 15px; font-weight: 600; line-height: 1.6; }
@media (max-width: 1000px) {
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-heading { align-items: start; flex-direction: column; gap: 16px; }
}
@media (max-width: 700px) {
  .page-about .expertise-grid, .freelance-focus { grid-template-columns: 1fr; }
  .development-stack { margin-top: 32px; padding-top: 28px; }
  .stack-grid { gap: 16px; }
  .stack-group { padding: 18px; }
  .stack-heading h2 { font-size: 27px; }
  .freelance-proof strong { font-size: 42px; }
}
@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
}

/* Homepage: concise previews, with detail on the dedicated pages. */
.home-overview { border-bottom: 1px solid var(--line); }
.home-about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 80px); }
.home-about-copy { max-width: 70ch; }
.home-about-copy p { font-size: 17px; line-height: 1.75; color: var(--muted); }
.home-about-copy p + p { margin-top: 16px; }
.home-about-copy strong { color: var(--ink); font-weight: 600; }
.home-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.home-skill-tags span { border: 1px solid var(--line); border-radius: 5px; padding: 5px 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.home-tools-overview { background: var(--soft); border-bottom: 1px solid var(--line); }
.home-tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-tool-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: start; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s; }
.home-tool-link:hover { border-color: var(--green); }
.home-tool-link h3 { font-size: 23px; font-weight: 600; }
.home-tool-link p { color: var(--muted); margin-top: 10px; font-size: 16px; line-height: 1.7; }
.home-tool-link > .icon { color: var(--green); margin-top: 5px; }
body[data-page="home"] .section-header > .text-link { flex-shrink: 0; }
.home-project-list { border-top: 1px solid var(--line); }
.home-project-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 170px 20px; gap: 24px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.home-project-row:last-child { border-bottom: 0; }
.home-project-row:hover { background: var(--soft); }
.home-project-row h3 { font-size: 23px; font-weight: 600; }
.home-project-row p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.home-project-row > .icon { color: var(--green); }
.home-project-proof { padding: 24px 32px; border-left: 1px solid var(--line); min-width: 230px; flex-shrink: 0; }
.home-project-proof strong { display: block; font-size: 76px; line-height: 1; letter-spacing: -.06em; font-weight: 500; color: var(--green); }
.home-project-proof span { display: block; margin-top: 16px; font-size: 16px; line-height: 1.6; }
.home-contact-overview { margin-bottom: 40px; }
.home-contact-panel { padding: 48px; border-radius: 13px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.home-contact-panel .section-index { color: var(--paper); opacity: .8; }
.home-contact-panel h2 { font-size: clamp(36px, 4vw, 54px); font-weight: 500; line-height: 1.13; }
.home-contact-panel h2 span { color: var(--accent); }
.home-contact-panel p:not(.section-index) { color: var(--paper); opacity: .85; max-width: 530px; font-size: 16px; margin-top: 20px; }
.home-contact-actions { display: flex; flex-direction: column; align-items: start; gap: 24px; min-width: 0; }
.home-contact-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; }
.home-contact-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-contact-link .icon { width: 17px; height: 17px; }
#jwt-token-analyzer, #client-site-secret-finder, [data-project] { scroll-margin-top: 24px; }
@media (max-width: 1000px) {
  .home-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .home-tools-grid { gap: 20px; }
  .home-tool-link { padding: 24px; gap: 16px; grid-template-columns: 36px minmax(0, 1fr); }
  .home-tool-link > .icon { display: none; }
  .home-tool-link .expertise-icon { width: 36px; height: 36px; }
  .home-project-row { grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 20px; }
  .home-project-row .project-category { display: none; }
  .home-project-proof { min-width: 180px; padding-inline: 24px; }
  .home-project-proof strong { font-size: 64px; }
  .home-contact-panel { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
}
@media (max-width: 700px) {
  .home-about-copy p { font-size: 16px; }
  .home-skill-tags { margin-top: 18px; margin-bottom: 20px; }
  .home-skill-tags span { font-size: 12px; }
  body[data-page="home"] .section-header > .text-link { margin-top: 20px; }
  .home-tools-grid { grid-template-columns: 1fr; }
  .home-tool-link { padding: 24px 20px; }
  .home-tool-link h3 { font-size: 22px; }
  .home-project-row { grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 12px; padding: 22px 0; }
  .home-project-row h3 { font-size: 21px; }
  .home-project-row p { font-size: 15px; }
  .home-project-row .project-number { align-self: start; margin-top: 6px; }
  .home-project-row > .icon { width: 18px; height: 18px; }
  .home-project-proof { min-width: 0; display: flex; align-items: center; gap: 20px; width: 100%; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .home-project-proof strong { font-size: 52px; }
  .home-project-proof span { margin-top: 0; font-size: 15px; }
  .home-contact-panel { padding: 32px 24px; gap: 28px; }
  .home-contact-panel h2 { font-size: 38px; }
  .home-contact-panel .contact-email { font-size: 18px; }
  .home-contact-overview { margin-bottom: 32px; }
}
@media (max-width: 380px) {
  .home-tool-link { grid-template-columns: 1fr; }
  .home-contact-panel { padding-inline: 20px; }
  .home-contact-panel .contact-email { font-size: 16px; }
  .home-contact-link { font-size: 14px; }
}

/* Keep the portrait's focus tags readable and clear of the photograph. */
.profile-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.profile-tags li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); font: 12px/1.5 ui-monospace, monospace; }
@media (max-width: 700px) {
  .profile-visual .visual-topline { grid-row: 1; }
  .profile-visual .profile-caption { grid-row: 2; }
  .profile-tags { grid-column: 1 / -1; grid-row: 3; justify-content: start; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
  .profile-tags li { font-size: 11px; padding: 5px 8px; }
}

.error-brand { margin-bottom: 32px; }

/* Keep the homepage career overview aligned with the About page timeline. */
.home-experience-intro .section-description { margin-top: 24px; }
.home-experience-intro .text-link { margin-top: 24px; }
.home-experience .experience-row:last-child { padding-bottom: 0; border-bottom: 0; }

/* Searchable tools directory: cards expand naturally as the catalog grows. */
.tools-directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.tools-directory-heading h2 { font-size: 25px; font-weight: 600; }
.tools-directory-heading p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.tools-total { flex-shrink: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: var(--soft); font: 13px/1.5 ui-monospace, monospace; }
.tool-controls { margin-bottom: 32px; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.tool-search { max-width: none; padding: 13px 16px; min-height: 50px; }
.tool-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.tool-filter-row .project-count { white-space: nowrap; }
.tools-directory .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.directory-tool-card .tool-body { padding: 12px 16px 16px; }
.directory-tool-card .tool-body > p { font-size: 15px; line-height: 1.55; }
.directory-tool-top { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.directory-tool-heading { min-width: 0; }
.directory-tool-top .expertise-icon { width: 34px; height: 34px; flex-shrink: 0; margin: 0; background: var(--warm); color: var(--accent); }
.tool-category { display: block; font-size: 11px; line-height: 1.5; font-weight: 600; color: var(--green); margin-bottom: 3px; }
.directory-tool-card h2 { font-size: 20px; font-weight: 650; line-height: 1.3; margin: 0; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 12px 0 10px; }
.tool-tags li { padding: 2px 7px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; font-size: 11px; line-height: 1.6; }
.tool-address { display: inline-flex; align-items: start; gap: 8px; align-self: start; margin-bottom: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.tool-address .icon { width: 15px; height: 15px; margin-top: 3px; }
.tool-address:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.directory-tool-card .tool-links { border-top: 1px solid var(--line); margin-top: auto; padding-top: 10px; }
.directory-tool-card .tool-links .button { font-size: 13px; padding: 8px 12px; min-height: 44px; gap: 10px; }
.tool-empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line); border-radius: 10px; }
.tool-empty .expertise-icon { margin: 0 auto 20px; }
.tool-empty h2 { font-size: 25px; margin-bottom: 12px; }
.tool-empty p { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) {
  .tools-directory-heading { align-items: start; gap: 16px; }
  .tools-directory-heading h2 { font-size: 23px; }
  .tool-controls { padding: 18px; margin-bottom: 24px; }
  .tool-filter-row { align-items: start; flex-direction: column; }
  .tool-search { min-width: 0; }
  .directory-tool-top { padding: 16px 16px 0; }
  .directory-tool-card .tool-body { padding: 12px 16px 16px; }
  .directory-tool-card h2 { font-size: 20px; }
}

@media (max-width: 1000px) {
  .tools-directory .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tools-directory .tool-grid { grid-template-columns: 1fr; gap: 16px; }
  .brand-duck { width: 32px; height: 32px; flex-basis: 32px; }
}
