:root {
  color-scheme: dark;
  --bg: #10191d;
  --surface: #19262b;
  --surface-raised: #223238;
  --text: #f2f4f1;
  --muted: #b7c2c1;
  --teal: #76c8bb;
  --amber: #f0c36a;
  --ink: #192126;
  --band-muted: #354044;
  --line: rgba(183, 194, 193, 0.22);
  --page-width: 1160px;
  --side-space: clamp(22px, 6vw, 88px);
  --display-size: clamp(42px, 4.8vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--bg);
  background: var(--teal);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--text);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
  border-radius: 3px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--teal);
  transform: translateY(-150%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 25, 29, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.section-wrap {
  width: min(var(--page-width), calc(100% - var(--side-space) * 2));
  margin-inline: auto;
}

.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  color: var(--text);
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: var(--display-size);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-decoration: none;
}

.wordmark span {
  color: var(--amber);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
}

nav a,
.site-footer a:last-child {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

nav a:hover,
.site-footer a:last-child:hover {
  color: var(--teal);
}

nav .nav-social,
nav .nav-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

nav .nav-social {
  color: var(--muted);
}

nav .nav-social:hover {
  color: var(--teal);
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: block;
  fill: currentColor;
}

nav .nav-contact {
  color: var(--text);
}

nav button {
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

nav .nav-email {
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  transition: color 180ms var(--ease-out);
}

nav .nav-email:hover {
  color: var(--teal);
}

.nav-contact span {
  margin-left: 5px;
  color: var(--amber);
}

.intro {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(250px, 0.58fr);
  align-items: center;
  gap: clamp(52px, 8vw, 112px);
  padding-block: 40px 34px;
}

.intro-copy {
  max-width: 760px;
}

.intro-name {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.intro-kicker {
  max-width: 52ch;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
.wordmark {
  text-wrap: balance;
}

h1,
h2 {
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 21ch;
  margin-bottom: 23px;
  font-size: var(--display-size);
  line-height: 1.05;
}

h1 em,
h2 em {
  color: var(--amber);
  font-style: normal;
}

.intro-lead {
  max-width: 66ch;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 16px;
}

.intro-lead + .intro-lead {
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #192126;
  background: var(--amber);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button-primary:hover {
  color: #10191d;
  background: #ffd887;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.portrait-frame {
  width: min(100%, 292px);
  justify-self: end;
  margin: 4px 0 0;
  text-align: center;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(242, 244, 241, 0.18);
  border-radius: 50%;
}

.portrait-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.portrait-credentials {
  max-width: 340px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 34px;
  padding: 27px 34px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
}

.proof-kicker,
.proof-method-label {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1.45;
  text-transform: uppercase;
}

.proof-result {
  margin-bottom: 0;
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.proof-result span {
  padding-inline: 8px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 0.55em;
  vertical-align: 0.12em;
}

.proof-method-label {
  margin-bottom: 14px;
  font-size: 12px;
}

.proof-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-steps li {
  padding-top: 10px;
  border-top: 1px solid rgba(25, 33, 38, 0.32);
  font-size: 12px;
  line-height: 1.4;
}

.content-section {
  padding-block: 96px 32px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 42px;
}

.section-heading.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h2,
.contact-section h2 {
  max-width: 20ch;
  margin-bottom: 0;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.12;
}

.section-aside {
  max-width: 38ch;
  justify-self: end;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 128px minmax(200px, 0.75fr) minmax(240px, 1fr) 24px;
  align-items: center;
  gap: 28px;
  min-height: 156px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
}

.service-media {
  width: 128px;
  aspect-ratio: 1;
  margin: 0;
  padding: 2px;
  background: rgba(118, 200, 187, 0.45);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.service-row h3 {
  margin: 0;
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.service-copy p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Tool tag palette — reuse data-tool in any section to keep the same color. */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  color: var(--tag-color);
  background: var(--tag-bg);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag[data-tool="excel"] {
  --tag-color: #7bd3a0;
  --tag-border: rgba(123, 211, 160, 0.4);
  --tag-bg: rgba(123, 211, 160, 0.1);
}

.tag[data-tool="vba"] {
  --tag-color: #a7b6f7;
  --tag-border: rgba(167, 182, 247, 0.4);
  --tag-bg: rgba(167, 182, 247, 0.1);
}

.tag[data-tool="python"] {
  --tag-color: #f2d06b;
  --tag-border: rgba(242, 208, 107, 0.4);
  --tag-bg: rgba(242, 208, 107, 0.1);
}

.tag[data-tool="sql"] {
  --tag-color: #6fd0df;
  --tag-border: rgba(111, 208, 223, 0.4);
  --tag-bg: rgba(111, 208, 223, 0.1);
}

.tag[data-tool="apis"] {
  --tag-color: #c0a8f5;
  --tag-border: rgba(192, 168, 245, 0.4);
  --tag-bg: rgba(192, 168, 245, 0.1);
}

.tag[data-tool="dashboards"] {
  --tag-color: #76c8bb;
  --tag-border: rgba(118, 200, 187, 0.4);
  --tag-bg: rgba(118, 200, 187, 0.1);
}

.tag[data-tool="powerbi"] {
  --tag-color: #f2a65a;
  --tag-border: rgba(242, 166, 90, 0.4);
  --tag-bg: rgba(242, 166, 90, 0.1);
}

.tag[data-tool="tableau"] {
  --tag-color: #f08a96;
  --tag-border: rgba(240, 138, 150, 0.4);
  --tag-bg: rgba(240, 138, 150, 0.1);
}

.tag[data-tool="html"] {
  --tag-color: #e9a56f;
  --tag-border: rgba(233, 165, 111, 0.4);
  --tag-bg: rgba(233, 165, 111, 0.1);
}

.tag[data-tool="javascript"] {
  --tag-color: #f0b35f;
  --tag-border: rgba(240, 179, 95, 0.4);
  --tag-bg: rgba(240, 179, 95, 0.1);
}

.tag[data-tool="streamlit"] {
  --tag-color: #d8a2c8;
  --tag-border: rgba(216, 162, 200, 0.4);
  --tag-bg: rgba(216, 162, 200, 0.1);
}

.tag[data-tool="mentoria"] {
  --tag-color: #9db7ee;
  --tag-border: rgba(157, 183, 238, 0.4);
  --tag-bg: rgba(157, 183, 238, 0.1);
}

.tag[data-tool="consultoria"] {
  --tag-color: #e0b98a;
  --tag-border: rgba(224, 185, 138, 0.4);
  --tag-bg: rgba(224, 185, 138, 0.1);
}

.service-arrow {
  color: var(--amber);
  font-size: 19px;
}

.projects-section {
  padding-block: 40px 96px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.project-media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 26px 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-meta span:first-child {
  color: var(--teal);
}

.project-body h3 {
  margin: 0 0 2px;
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.project-subtitle {
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.project-body > p:not(.project-meta):not(.project-subtitle):not(.project-deliverable) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.project-tags {
  margin: -2px 0 16px;
}

.project-deliverable {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.project-deliverable span {
  margin-right: 6px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  align-items: end;
  gap: 64px;
  padding-block: 64px 70px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 16ch;
  font-size: clamp(38px, 4.4vw, 56px);
}

.contact-copy {
  max-width: 50ch;
}

.contact-copy > p:first-child {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
}

.contact-links {
  display: grid;
  margin-top: 26px;
}

.contact-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.contact-link.copy-email {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-link:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-link:hover {
  color: var(--teal);
  border-color: rgba(118, 200, 187, 0.55);
}

.contact-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.contact-link strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.contact-value {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-arrow {
  color: var(--amber);
  font-size: 18px;
  line-height: 1;
}

.copy-status {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 48px));
  margin: 0;
  padding: 11px 15px;
  border: 1px solid rgba(118, 200, 187, 0.45);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-raised);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  font-size: 12px;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner .wordmark {
  font-size: 20px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

@media (min-width: 761px) and (max-height: 880px) {
  :root {
    --display-size: 54px;
  }

  .intro {
    min-height: 0;
    padding-block: 48px 34px;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .proof-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .proof-steps {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  :root {
    --side-space: 22px;
  }

  html {
    scroll-padding-top: 124px;
  }

  .header-inner {
    min-height: 84px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 14px;
  }

  .wordmark {
    font-size: clamp(34px, 8.8vw, 40px);
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 8px;
  }

  nav a,
  nav button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
  }

  .intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 26px 20px;
  }

  .intro-copy {
    display: contents;
  }

  .intro-name {
    display: none;
  }

  .intro-kicker {
    order: 1;
    margin-bottom: -6px;
    font-size: 10.5px;
  }

  .intro h1 {
    order: 2;
    max-width: 17ch;
    margin-bottom: -6px;
    font-size: clamp(34px, 8.8vw, 40px);
  }

  .portrait-frame {
    width: 100%;
    justify-self: stretch;
    order: 3;
    margin: 0;
  }

  .portrait-image {
    width: min(34vw, 132px);
  }

  .portrait-credentials {
    max-width: 340px;
    margin: 10px 0 0;
    font-size: 10.5px;
    line-height: 1.6;
    text-align: left;
  }

  .intro-lead {
    order: 4;
    margin-bottom: -6px;
    font-size: 15px;
  }

  .intro-lead + .intro-lead {
    margin-bottom: 4px;
  }

  .actions {
    order: 5;
  }

  .button {
    min-height: 48px;
  }

  .proof-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .proof-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .proof-result {
    font-size: 30px;
  }

  .content-section {
    padding-block: 70px 24px;
  }

  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .section-aside {
    max-width: 44ch;
    justify-self: start;
    font-size: 13px;
  }

  .service-row {
    grid-template-columns: 76px minmax(0, 1fr) 20px;
    gap: 4px 15px;
    min-height: 0;
    padding-block: 24px;
    align-items: start;
  }

  .service-media {
    grid-row: 1;
    width: 76px;
  }

  .service-row h3 {
    grid-column: 2;
    align-self: center;
    font-size: 21px;
  }

  .service-copy {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .service-copy p {
    font-size: 13.5px;
  }

  .service-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .projects-section {
    padding-block: 36px 72px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-body {
    padding: 22px 20px 20px;
  }

  .project-body h3 {
    font-size: 23px;
  }

  .contact-section {
    padding-block: 52px 58px;
  }

  .contact-section h2 {
    font-size: 38px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-block: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  nav a,
  .site-footer a:last-child {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
