/*-----------------------------------*\
  #theme.css
  Light grey / black theme layered on top of style.css,
  plus the vintage-computer scroll intro.
\*-----------------------------------*/

:root {
  /* light (default) */
  --paper: #ECECEA;
  --paper-2: #E3E3E0;
  --card: #F4F4F2;
  --surface: #FFFFFF;
  --ink: #111112;
  --ink-2: #4B4B4F;
  --muted: #7C7C80;
  --rule: rgba(17, 17, 18, 0.10);
  --rule-2: rgba(17, 17, 18, 0.22);
  --nav-bg: rgba(236, 236, 234, 0.9);
  --shade: rgba(0, 0, 0, 0.07);
  --night: #050505;
  color-scheme: light;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;

  /* remap the old palette onto the theme so every rule that uses variables follows */
  --ff-poppins: var(--f-body);
  --ff-display: var(--f-body);
  --primary-indigo: var(--ink);
  --primary-cyan: var(--ink-2);
  --secondary-purple: var(--ink-2);
  --accent-gold: var(--ink);
  --accent-rose: var(--ink-2);
  --vegas-pink: var(--ink);
  --white-1: var(--ink);
  --white-2: var(--ink);
  --gray-text: var(--ink);
  --light-gray: var(--ink-2);
  --light-gray-70: var(--muted);
  --gray-border: var(--rule-2);
  --jet: var(--paper-2);
  --onyx: var(--paper-2);
  --navy-dark: var(--paper);
  --navy-medium: var(--paper-2);
  --slate-light: var(--paper-2);
  --slate-lighter: var(--rule-2);
  --smoky-black: var(--paper);
  --eerie-black-1: var(--paper-2);
  --eerie-black-2: var(--paper);
  --brown-background-1: var(--paper);
  --brown-background-2: var(--paper-2);
  --bg-gradient-onyx: linear-gradient(135deg, var(--card) 0%, var(--paper-2) 100%);
  --bg-gradient-jet: linear-gradient(135deg, var(--card) 0%, var(--paper) 100%);
  --bg-gradient-glass: linear-gradient(135deg, var(--rule) 0%, transparent 100%);
  --border-gradient-onyx: linear-gradient(135deg, var(--rule-2) 0%, var(--rule) 100%);
  --text-gradient-accent: linear-gradient(to right, var(--ink), var(--ink-2));
  --text-gradient-warm: linear-gradient(to right, var(--ink), var(--ink-2));
  --text-gradient-yellow: linear-gradient(to right, var(--ink), var(--ink-2));
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-4: 0 14px 36px rgba(0, 0, 0, 0.10);
  --shadow-5: 0 18px 48px rgba(0, 0, 0, 0.10);
  --shadow-glow: none;
  --shadow-glow-cyan: none;
}

/* dark */
:root.hr-dark {
  --paper: #0E0E0F;
  --paper-2: #18181A;
  --card: #141416;
  --surface: #1C1C1F;
  --ink: #ECECEA;
  --ink-2: #B4B4B0;
  --muted: #8A8A8E;
  --rule: rgba(236, 236, 234, 0.10);
  --rule-2: rgba(236, 236, 234, 0.22);
  --nav-bg: rgba(14, 14, 15, 0.88);
  --shade: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

html, body { background: var(--paper); }
body { color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--paper); }

/* page guides, like the new portfolio */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / 6));
  max-width: 1200px; margin: 0 auto;
}
main { position: relative; z-index: 1; }

/* cards and panels */
article {
  background: var(--card);
  backdrop-filter: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: none;
}
@media (min-width: 1250px) {
  main { max-width: 1200px; }
  .main-content { width: 100%; min-width: 0; }
}

.h2, .h3, .h4, .h5, .article-title { color: var(--ink); }
.article-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h2.article-title { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.article-title::after { background: var(--ink); height: 2px; border-radius: 0; }
#greeting-text { font-family: var(--f-display); font-style: italic; }

p, li, .about-text p { color: var(--ink-2); }
b, strong { color: var(--ink); }
a { color: inherit; }

.icon-box,
.info-content .title,
.service-item,
.stat-card,
.content-card,
.blog-post-item > a,
.project-img {
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: none;
}
.content-card:hover,
.service-item:hover,
.stat-card:hover,
.blog-post-item > a:hover {
  background: var(--surface);
  border-color: var(--rule-2);
  box-shadow: 0 10px 28px var(--shade);
}
.content-card:hover,
.project-item > a:hover .project-img { box-shadow: 0 10px 28px var(--shade); }
.icon-box ion-icon, .service-icon-box ion-icon { color: var(--ink); }

/* navbar */
.navbar {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  box-shadow: none;
}
.navbar-link { color: var(--ink-2); font-family: var(--f-body); }
.navbar-link:hover, .navbar-link:focus { color: var(--ink); }
.navbar-link.active { color: var(--ink); }
.navbar-link::after { background: var(--ink); }

/* buttons */
.resume-pdf-btn,
.form-btn,
.form-btn:hover:not(:disabled),
.info_more-btn:hover,
.info_more-btn:focus {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  border-radius: 0;
}
.resume-pdf-btn:hover, .resume-pdf-btn:focus { box-shadow: none; opacity: 0.85; }
.form-btn::before { display: none; }
.form-btn ion-icon, .resume-pdf-btn ion-icon { color: var(--paper); }

/* timeline */
.timeline-item::after { background: var(--ink); box-shadow: 0 0 0 4px var(--paper); }
.timeline-list span, time { color: var(--muted); font-family: var(--f-mono); }

/* projects */
.project-img::before { background: var(--rule); }
.project-item > a:hover .project-img::before { background: var(--rule-2); }
.project-item-icon-box { background: var(--ink); box-shadow: none; }
.project-item-icon-box ion-icon { color: var(--paper); }
.filter-item button.active, .filter-item button:hover { color: var(--ink); }

/* testimonials modal */
.overlay { background: rgba(0, 0, 0, 0.5); }
.testimonials-modal { background: var(--card); border: 1px solid var(--rule); }
.modal-close-btn { background: var(--paper-2); border: 1px solid var(--rule); }
.modal-close-btn ion-icon { color: var(--ink); }

/* forms */
.form-input {
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 0;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { background: var(--surface); border-color: var(--ink); box-shadow: none; }

/* small mono labels */
.stat-label, .testimonials-item .h4 + p, .project-category, .service-item-title + p { font-family: var(--f-body); }
.project-category { color: var(--muted); }

figure.avatar-box::before { background: none; }

/* scrollbar */
body::-webkit-scrollbar-track { background: var(--paper); }
body::-webkit-scrollbar-thumb {
  background: var(--rule-2);
  border-color: var(--paper);
  box-shadow: none;
}
body::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* toasts */
.toast-success, .toast-error { background: var(--ink); border-color: var(--ink); }
.toast-success .toast-message, .toast-error .toast-message { color: var(--paper); }

/*-----------------------------------*\
  #INTRO: scroll into the computer
\*-----------------------------------*/

.intro { height: 230vh; position: relative; background: var(--night); z-index: 0; }
/* the site rises over the last part of the intro while it fades, so there is no blank screen */
.intro + main { margin-top: -35vh; position: relative; z-index: 1; }
.intro-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--night); display: grid; place-items: center;
}
.computer { position: absolute; inset: 0; opacity: 0; animation: boot .8s cubic-bezier(.22,.9,.24,1) forwards; }
@keyframes boot { from { opacity: 0 } to { opacity: 1 } }
.computer svg { width: 100%; height: 100%; display: block; }
.hello {
  fill: none; stroke: #111; stroke-width: .45; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: write 1.1s ease-in-out .5s forwards;
}
@keyframes write { to { stroke-dashoffset: 0 } }
.hello-fill { fill: #111; opacity: 0; animation: fillIn .4s ease 1.3s forwards; }
@keyframes fillIn { to { opacity: 1 } }
.scr-line { opacity: 0; animation: fillIn .5s ease forwards; }
.scr-1 { animation-delay: .3s; }
.scr-2 { animation-delay: 1.6s; }
.intro-hint {
  position: absolute; bottom: 28px; left: 0; right: 0; margin: 0 auto; width: max-content;
  font: 400 .8rem var(--f-mono); color: #8a8a8a; cursor: pointer;
  opacity: 0; animation: fillIn .6s ease 1.8s forwards; transition: opacity .3s;
}
.intro-hint:hover, .intro-hint:focus-visible { color: #f2f2f0; outline: none; }
.intro-veil { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .intro { height: 100vh; }
  .computer { opacity: 1; animation: none; }
  .hello { stroke-dashoffset: 0; animation: none; }
  .hello-fill, .intro-hint, .scr-line { opacity: 1; animation: none; }
}

/* link-out icons were pink SVGs; render them in ink */
img[src*="LINK-PAPER"], img[src*="pin-49"] { filter: grayscale(1) brightness(0.35); }
:root.hr-dark img[src*="LINK-PAPER"], :root.hr-dark img[src*="pin-49"] { filter: grayscale(1) brightness(2.2); }

/* inline icons (replace the ionicons that loaded from unpkg) */
.ico { width: 1em; height: 1em; display: block; color: var(--ink); }
.icon-box { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule); }
.icon-box::before { display: none; }
.icon-box .ico { width: 22px; height: 22px; }
.select-icon .ico { width: 16px; height: 16px; }
.form-btn .ico { width: 16px; height: 16px; color: var(--paper); }

/* contact map: greyscale to match the theme, with a caption link */
.mapbox { border: 1px solid var(--rule); border-radius: 6px; }
.mapbox iframe { filter: grayscale(1) contrast(1.05); }
.map-caption { padding: 10px 14px; font: 400 .8rem var(--f-mono); color: var(--muted); background: var(--surface); border-top: 1px solid var(--rule); }
.map-caption a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mapbox, .mapbox figure { height: auto; }
.mapbox iframe { height: 260px; display: block; }
.map-caption { display: block; }
.map-caption a { display: inline; }
.mapbox figure { position: relative; }
.map-art { display: block; height: 260px; }
.map-art svg { width: 100%; height: 100%; display: block; }
.mapbox iframe[data-live-map]:not([hidden]) { position: absolute; top: 0; left: 0; width: 100%; height: 260px; background: transparent; }
.mapbox iframe[hidden] { display: none; }

/* keep the intro's zoom cheap: no smooth-scroll fighting, clip the scaled SVG */
.intro-stage { contain: strict; }
.computer svg { backface-visibility: hidden; }


/*-----------------------------------*\
  #DARK MODE extras + toggle
\*-----------------------------------*/

/* smooth swap between themes (not on first paint) */
html.theme-anim, html.theme-anim * { transition: background-color .35s ease, border-color .35s ease, color .35s ease !important; }

/* the drawn map and the light project covers */
:root.hr-dark .map-art svg { filter: invert(0.9) hue-rotate(180deg); }
:root.hr-dark .mapbox iframe[data-live-map] { filter: grayscale(1) invert(0.9) contrast(0.9); }
:root.hr-dark .project-img img,
:root.hr-dark .content-card img { filter: brightness(0.9); }
/* company logos stay grey until hovered, in dark mode too */
:root.hr-dark .clients-item img { filter: grayscale(1) brightness(0.9); }
:root.hr-dark .clients-item img:hover { filter: grayscale(0) brightness(1); }
:root.hr-dark .service-icon-box img,
:root.hr-dark img[src*="icon-design"],
:root.hr-dark img[src*="host-record"] { filter: invert(1); }

.theme-toggle {
  position: fixed; top: 16px; right: 16px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--nav-bg); color: var(--ink);
  border: 1px solid var(--rule-2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity .3s ease, transform .2s ease;
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root.hr-dark .theme-toggle .moon { display: none; }
:root.hr-dark .theme-toggle .sun { display: block; }
/* hidden while the computer intro is on screen */
html:not(.entered) .theme-toggle { opacity: 0; pointer-events: none; visibility: hidden; }
/* on phones and tablets the tab bar is at the bottom, so the button floats just above it, clear of page headers */
@media (max-width: 1023px) {
  .theme-toggle { top: auto; bottom: 74px; right: 14px; width: 40px; height: 40px; }
}

/* boxes never exceed their container; a box inside a box (the recruiter note) fills its parent */
article { max-width: 100%; }
article article { width: auto; max-width: 100%; margin-inline: 0; min-height: 0; padding: 22px 26px; }
@media (min-width: 1024px) and (max-width: 1249px) {
  .main-content { width: auto; max-width: 1050px; }
}
/* on desktop the tab bar sits top-right, so the theme button moves to the bottom corner */
@media (min-width: 1024px) {
  .theme-toggle { top: auto; bottom: 20px; right: 20px; }
}

/* Testimonials: three compact cards; long quotes are cut to a few lines and expand in place */
.testimonials { margin-top: 44px; }
.testimonials-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.testimonials-title { margin: 0; }
.testimonials-link { font: 500 .8rem/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-2); border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.testimonials-link:hover { color: var(--ink); border-color: var(--ink); }
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tcard { margin: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 22px 18px; }
.tcard blockquote { margin: 0; }
.tcard blockquote p { font: italic 400 1.12rem/1.5 var(--f-display); color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.tcard blockquote p::before { content: "\201C"; }
.tcard blockquote p::after { content: "\201D"; }
.tcard.open blockquote p { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.tcard-more { align-self: flex-start; margin-top: 8px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.tcard-more:hover { color: var(--ink); }
.tcard figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); font: 600 .92rem/1.3 var(--f-body); color: var(--ink); }
@media (max-width: 900px) { .tcards { grid-template-columns: 1fr; } .tcard blockquote p { -webkit-line-clamp: 4; line-clamp: 4; } }

/* My Skills: equal cells, logos in same-size boxes, labels on one line */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 28px 20px; margin: 22px 0 0; padding: 0; justify-items: center; }
.skills-grid .clients-item { min-width: 0; width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.skills-grid .skill-icon { width: 100%; max-width: 84px; height: 64px; object-fit: contain; margin: 0; }
.skills-grid .skill-name { font: 500 .85rem/1.2 var(--f-body); color: var(--ink-2); margin: 0; }
.skill { margin-top: 40px; }
@media (max-width: 700px) { .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; } }
.clients-item:hover .skill-icon { filter: grayscale(0); transform: scale(1.06); }
.clients-item:hover .skill-name { color: var(--ink); }
/* dark-on-transparent logos need flipping in dark mode */
:root.hr-dark .skill-icon[src*="node-logo"],
:root.hr-dark .skill-icon[src*="git-logo"],
:root.hr-dark .skill-icon[src*="jira-logo"] { filter: grayscale(1) invert(1) brightness(1.15); }
:root.hr-dark .clients-item:hover .skill-icon[src*="node-logo"],
:root.hr-dark .clients-item:hover .skill-icon[src*="git-logo"],
:root.hr-dark .clients-item:hover .skill-icon[src*="jira-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.15); }

/* My Skills, Focus Areas, Where I've Worked: one shared look.
   Icons are grey and turn to full colour (with a soft glow) on hover. */
.skill + .skill { margin-top: 44px; }
.skills-grid { align-items: start; }
.skills-grid .skill-icon { filter: grayscale(1); opacity: .85; transition: filter .25s ease, transform .25s ease, opacity .25s ease; }
.skills-grid .clients-item:hover .skill-icon { filter: grayscale(0) drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); opacity: 1; transform: scale(1.08); }
.skills-grid .clients-item:hover .skill-name { color: var(--ink); }
.focus-grid { grid-template-columns: repeat(6, 1fr); gap: 28px 8px; }
.focus-grid .skill-name { text-align: center; white-space: nowrap; }
@media (max-width: 700px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid .skill-name { white-space: normal; }
}
:root.hr-dark .skills-grid .skill-icon { filter: grayscale(1) brightness(1.1); }
:root.hr-dark .skills-grid .clients-item:hover .skill-icon { filter: grayscale(0) drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.skills-grid .skill-icon[src*="node-logo"], .skills-grid .skill-icon[src*="git-logo"], .skills-grid .skill-icon[src*="jira-logo"] { opacity: 1; }
:root.hr-dark .skills-grid .skill-icon[src*="node-logo"],
:root.hr-dark .skills-grid .skill-icon[src*="git-logo"],
:root.hr-dark .skills-grid .skill-icon[src*="jira-logo"] { filter: grayscale(1) invert(1) brightness(1.15); }
:root.hr-dark .skills-grid .clients-item:hover .skill-icon[src*="node-logo"],
:root.hr-dark .skills-grid .clients-item:hover .skill-icon[src*="git-logo"],
:root.hr-dark .skills-grid .clients-item:hover .skill-icon[src*="jira-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.15) drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }

/* Where I've Worked: the two company logos at their original large size, filling the row */
.worked-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; align-items: center; }
.worked-row .clients-item { min-width: 0; display: flex; justify-content: center; }
.worked-row img { width: 100%; max-width: 400px; height: auto; aspect-ratio: 4 / 1; object-fit: fill; border-radius: 4px; transition: filter .25s ease, transform .25s ease; }
.worked-row .clients-item:hover img { filter: grayscale(0) drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); transform: scale(1.03); }
:root.hr-dark .worked-row .clients-item:hover img { filter: grayscale(0) drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
@media (max-width: 700px) { .worked-row { gap: 12px; } }

/* Focus Areas: always six equal columns in one row (above phone size);
   the label text scales down slightly on narrower windows so every name stays on one line */
.skill.focus { container-type: inline-size; }
.focus-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 0; }
.focus-grid .skill-name { font-size: clamp(.62rem, 1.22cqw, .85rem); white-space: nowrap; }
@media (max-width: 700px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .focus-grid .skill-name { font-size: .85rem; white-space: normal; }
}
/* tablet widths: the row stays single, but the longest names may take two lines */
@container (max-width: 860px) {
  .focus-grid .skill-name { white-space: normal; font-size: .72rem; padding: 0 4px; }
}
.testimonials-link span { display: inline; }

/*-----------------------------------*\
  #CONTACT: direct links on the left, message form on the right
\*-----------------------------------*/
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; margin-top: 8px; }
.reach-status { display: inline-flex; align-items: center; gap: 10px; font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 9px 13px; border: 1px solid var(--rule-2); border-radius: 999px; }
.reach-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); }
.reach-lede { margin: 18px 0 22px; font: 400 1.02rem/1.6 var(--f-body); color: var(--ink-2); max-width: 40ch; }
.reach-list { border-top: 1px solid var(--rule-2); }
.reach-link { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--rule-2); color: var(--ink); transition: background-color .2s ease, padding .2s ease; }
.reach-link:hover, .reach-link:focus-visible { background: var(--surface); padding-left: 12px; padding-right: 12px; outline: none; }
.reach-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.reach-icon .ico { width: 19px; height: 19px; }
.reach-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.reach-label { font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reach-value { font: 500 1rem/1.3 var(--f-body); color: var(--ink); overflow-wrap: anywhere; }
.reach-arrow { color: var(--muted); transition: transform .2s ease, color .2s ease; }
.reach-link:hover .reach-arrow { color: var(--ink); transform: translate(2px, -2px); }
.reach-place { display: flex; align-items: center; gap: 8px; margin-top: 18px; font: 400 .8rem/1 var(--f-mono); color: var(--muted); }
.reach-place .ico { width: 15px; height: 15px; color: var(--muted); }

.contact-form { margin: 0; }
.contact-form .form-title { margin-bottom: 18px; }
.contact-form .form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font: 500 .7rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-form .form-input { width: 100%; margin: 0; padding: 13px 14px; font: 400 1rem/1.4 var(--f-body); border-radius: 4px; }
.contact-form textarea.form-input { min-height: 130px; height: auto; max-height: none; resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { font: 400 .8rem/1.5 var(--f-body); color: var(--muted); max-width: 30ch; }
.contact-form .form-btn { margin: 0; width: auto; flex: none; padding: 13px 22px; display: inline-flex; align-items: center; gap: 10px; border-radius: 4px; }
.contact-form .form-btn:disabled { opacity: .45; cursor: not-allowed; }
.form-status { font: 400 .88rem/1.5 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-2); border-left: 3px solid #16A34A; padding: 12px 14px; border-radius: 4px; }
.form-status[hidden] { display: none; }
.form-status-text { margin: 0 0 10px; }
.form-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-btn { font: 500 .82rem var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--rule-2); border-radius: 4px; padding: 7px 12px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.status-btn:hover, .status-btn:focus-visible { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-note { max-width: none; }
  .contact-form .form-btn { justify-content: center; }
}

/* My Skills: ten tools in one row on desktop, five per row below */
.tools-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 28px 8px; }
.tools-grid .skill-icon { max-width: 64px; height: 56px; }
@media (max-width: 1000px) { .tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 4px; } .tools-grid .skill-icon { max-width: 44px; height: 40px; } .tools-grid .skill-name { font-size: .7rem; } }
:root.hr-dark .skills-grid .skill-icon[src*="aws-logo"] { filter: grayscale(1) invert(1) brightness(1.15); }
:root.hr-dark .skills-grid .clients-item:hover .skill-icon[src*="aws-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.15) drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
:root:not(.hr-dark) .skills-grid .skill-icon[src*="sql-logo"] { filter: grayscale(1) brightness(.62); opacity: 1; }
:root:not(.hr-dark) .skills-grid .clients-item:hover .skill-icon[src*="sql-logo"] { filter: grayscale(0) brightness(.9) drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
/* show the top of the Bloomberg certificate (its title) in the card picture */
.blog-banner-box img[src*="bmc-certificate"] { object-position: left top; }
/* recruiter note at the end of About Me */
.recruiter-note { margin-top: 26px; }
.about-text article.recruiter-note, article.recruiter-note { padding: 16px 20px; }
.recruiter-note p { margin: 0 !important; line-height: 1.55; }
.recruiter-note p + p { margin-top: 6px !important; }
.recruiter-note a { color: var(--ink); }

/* page heading for search engines and screen readers; the visible name is drawn on the intro screen */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a.resume-pdf-btn { display: inline-block; text-decoration: none; line-height: 1.2; }
