:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #55554f;
  --ink-faint: #8a8a83;
  --accent: #99ff00;
  --accent-ink: #111111;
  --hairline: rgba(17, 17, 17, 0.16);
  --hairline-soft: rgba(17, 17, 17, 0.09);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: radial-gradient(var(--hairline-soft) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "JetBrains Mono", "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.15rem);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* eyebrow / terminal prompt kicker -- names the actual data source for the
   section it sits above (e.g. rates.json really is where the numbers below
   come from) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "$";
  color: var(--ink);
  opacity: 0.55;
}

/* dash bullets, no round markers anywhere on the site */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.dash-list li {
  padding-left: 1.3em;
  position: relative;
  margin-bottom: 0.85em;
  color: var(--ink-soft);
}

ul.dash-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ink);
}

/* highlighter treatment -- a slightly irregular marker stroke, not a
   perfect rectangle, with a faint alternating tilt like a real pen */
mark.hl {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 0.08em 0.4em 0.02em;
  display: inline-block;
  clip-path: polygon(0.6% 12%, 100% 0%, 99.2% 90%, 0% 100%);
  transform: rotate(-0.55deg);
}

li:nth-of-type(even) mark.hl,
.rate-amount mark.hl {
  transform: rotate(0.5deg);
  clip-path: polygon(0% 4%, 99.4% 10%, 100% 96%, 0.8% 100%);
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border: 2px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84vw, 320px);
  background: #ffffff;
  border-left: 1px solid var(--hairline);
  box-shadow: -8px 0 24px rgba(17, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.site-nav .nav-cta {
  text-align: center;
}

/* language dropdown */
.lang-switch {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.45em 0.75em;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.lang-trigger::after {
  content: "\25BE";
  font-size: 0.75em;
  opacity: 0.6;
}

.lang-menu {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.35rem;
  border: 1px solid var(--hairline);
  background: var(--bg);
  min-width: 8rem;
}

.lang-menu a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5em 0.6em;
}

.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
  background: var(--accent);
}

.lang-menu li + li {
  margin-top: 0.15rem;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    border-left: none;
    padding: 0;
    transform: none;
    gap: 2rem;
  }

  .lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    display: none;
  }

  .lang-switch:hover .lang-menu,
  .lang-switch:focus-within .lang-menu,
  .lang-switch.is-open .lang-menu {
    display: block;
  }
}

/* sections */
section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

section:last-of-type {
  border-bottom: none;
}

/* hero */
.hero {
  padding-top: 3.5rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-photo-wrap {
  position: relative;
  width: 220px;
  margin: 0 auto;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ink);
  position: relative;
  z-index: 2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-ring {
  position: absolute;
  inset: -14px;
  border: 1px dashed var(--hairline);
  border-radius: 50%;
  animation: spin 40s linear infinite;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-badge {
  position: absolute;
  bottom: -6px;
  right: -10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.4em 0.75em;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--ink);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 44ch;
}

.cursor {
  display: inline-block;
  animation: blink 1.1s steps(1) infinite;
  color: var(--accent-ink);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* stat readout -- aligned like a terminal/receipt output, the one place
   tabular monospace numerals earn their keep */
.stat-readout {
  border-top: 1px solid var(--hairline);
}

.stat-readout li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.stat-num {
  flex: 0 0 auto;
  min-width: 4.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.stat-label {
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero-photo-wrap {
    flex: 0 0 260px;
    width: 260px;
    margin: 0;
  }

  .hero-photo {
    width: 260px;
    height: 260px;
  }

  .hero-text {
    flex: 1;
  }
}

/* tagline band -- torn-edge full bleed strip instead of a hard ruled box */
.tagline-band {
  background: var(--accent);
  border-bottom: none;
  clip-path: polygon(
    0% 1.2%, 4% 0%, 12% 0.8%, 22% 0%, 33% 0.6%, 45% 0%, 58% 0.8%, 70% 0%,
    82% 0.6%, 92% 0%, 100% 1%,
    100% 98.8%, 92% 100%, 80% 99.2%, 68% 100%, 55% 99.4%, 42% 100%, 30% 99.2%,
    18% 100%, 8% 99.3%, 0% 100%
  );
  padding: 4rem 0;
}

.tagline-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.6rem);
}

.tagline-band .line {
  display: block;
}

/* facts / tags */
.tag-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tag-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tag-grid li {
  margin: 0;
}

/* who I work with */
.audience-list li {
  padding-left: 1.4rem;
  border-left: 2px solid var(--hairline);
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.audience-list li::before {
  content: none;
}

/* rates -- a clean price list, not bordered cards */
.rate-list {
  border-top: 1px solid var(--hairline);
  margin-bottom: 1.5rem;
}

.rate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.rate-amount {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
}

.rate-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-faint);
}

.rate-label {
  color: var(--ink-soft);
  font-weight: 500;
}

.rate-note {
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* companies -- inline press-strip (text-only fallback) */
.company-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  padding: 0;
}

.company-strip li {
  margin: 0;
}

/* companies -- logo grid, trust/recognition signal */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.25rem 2rem;
  align-items: center;
}

.company-item {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.company-logo {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* booking */
.book-intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.cal-embed {
  width: 100%;
  min-height: 620px;
  margin-bottom: 1.5rem;
  overflow: auto;
}

.book-contact {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.book-contact a {
  font-weight: 700;
  color: var(--ink);
}

/* footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-name {
  font-weight: 800;
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
}

.copyright {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* projects page -- editorial timeline, hairline + accent bar instead of a
   boxed card */
.project-entry {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 1.9rem 1.5rem;
  margin-bottom: 1.9rem;
  border-bottom: 1px solid var(--hairline);
}

.project-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.project-period {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.project-client {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.project-focus {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

/* faq page -- question rendered like a terminal prompt */
.faq-item {
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-item h2 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.6em;
}

.faq-item h2::before {
  content: "\276F";
  color: var(--accent-ink);
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  font-size: 0.65em;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
}

.faq-item p {
  margin: 0;
  max-width: 68ch;
}

/* cv content page -- hero: text on the left, large photo on the right,
   roughly equal width on desktop */
.cv-intro {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  align-items: center;
}

.cv-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--ink);
  flex: 0 0 auto;
}

.cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-summary {
  font-size: 1.05rem;
  max-width: 60ch;
}

.cv-role-title {
  color: var(--ink-faint);
  font-weight: 600;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .cv-intro {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .cv-intro-text {
    flex: 1 1 0;
    min-width: 0;
  }

  .cv-photo {
    flex: 1 1 0;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* cv content page -- two-column body on desktop, mimicking the PDF's
   sidebar + main-column resume layout */
.cv-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.cv-block + .cv-block {
  margin-top: 2.75rem;
}

.cv-columns h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.cv-contact p {
  margin-bottom: 0.4rem;
}

.cv-contact a {
  font-weight: 700;
}

@media (min-width: 860px) {
  .cv-columns {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 0;
  }

  .cv-col-side {
    padding-right: 3rem;
  }

  .cv-col-main {
    padding-left: 3rem;
    border-left: 1px solid var(--hairline);
  }
}

.kv-list {
  border-top: 1px solid var(--hairline);
}

.kv-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.kv-row .kv-name {
  font-weight: 700;
}

.kv-row .kv-level {
  color: var(--ink-faint);
}

/* experience -- grouped by company, LinkedIn-style, when a company has
   more than one role */
.company-group {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 1.9rem 1.5rem;
  margin-bottom: 1.9rem;
  border-bottom: 1px solid var(--hairline);
}

.company-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.company-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.company-header .company-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.company-header .company-duration {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.company-period {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.role-entry {
  border-left: 1px solid var(--hairline);
  padding-left: 1.25rem;
  margin-top: 1.4rem;
}

.role-entry:first-of-type {
  margin-top: 0;
}

.role-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.role-header .role-title {
  font-weight: 700;
}

.role-header .role-duration {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.role-period {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}

.cv-download {
  margin-top: 2.5rem;
}

/* cv gate page */
.cv-gate {
  max-width: 30rem;
}

.cv-gate form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cv-gate label {
  font-weight: 700;
  font-size: 0.9rem;
}

.cv-gate input[type="password"] {
  font: inherit;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.75em 0.9em;
  background: var(--bg);
  color: var(--ink);
}

.cv-gate input[type="password"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.cv-gate .btn {
  align-self: flex-start;
}

.cv-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.cv-status[data-state="error"] {
  color: #b3261e;
}

.cv-status[data-state="success"] {
  color: #2e7d32;
}
