:root {
  --ink: #172033;
  --muted: #657084;
  --line: #dde5ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #12365f;
  --blue: #1e5f9f;
  --blue-soft: #e7f0fa;
  --orange: #e87b2c;
  --orange-soft: #fff0e5;
  --gray: #eef2f6;
  --shadow: 0 20px 60px rgba(18, 54, 95, .14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 229, 239, .85);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 0;
  line-height: 1.1;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--navy);
}

.brand span {
  font-size: .75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .84rem;
  color: #3b4659;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  color: var(--paper) !important;
  background: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--navy);
}

.hero {
  background:
    linear-gradient(135deg, rgba(18, 54, 95, .96), rgba(30, 95, 159, .89)),
    radial-gradient(circle at 85% 15%, rgba(232, 123, 44, .28), transparent 34%);
  color: var(--paper);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  padding: 76px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .86fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #cfe0f4;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.page-title {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.hero h1 span,
.section-title span,
.page-title span {
  color: #ffb06f;
  font-style: italic;
}

.hero-tagline {
  margin: 18px 0 0;
  color: #c6d5e8;
  font-size: .83rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 1.08rem;
}

.hero-actions,
.contact-links,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.button-primary {
  background: var(--orange);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(232, 123, 44, .28);
}

.button-secondary {
  background: rgba(255, 255, 255, .08);
  color: var(--paper);
  border-color: rgba(255, 255, 255, .22);
}

.button-light {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--line);
}

.hero-stats {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  padding: 18px;
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
}

.stat-delta {
  background: linear-gradient(135deg, rgba(232, 123, 44, .98), rgba(248, 182, 109, .9));
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 16px 42px rgba(232, 123, 44, .24);
}

.stat-delta strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.stat-delta em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.hero-visual {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .26);
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--soft);
}

.hero-visual img {
  width: 78%;
  display: block;
  height: 88%;
  object-fit: contain;
  border-radius: 6px;
}

.visual-caption {
  margin: 12px 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
}

.visual-caption strong {
  color: var(--paper);
}

.section {
  padding: 86px 28px;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: #102c4e;
  color: var(--paper);
}

.work-proof-hint {
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 2px solid var(--orange);
  color: #ffba80;
  font-size: 0.95rem;
}

.page-actions#contact {
  scroll-margin-top: 110px;
}

.contact .section-head:last-child {
  margin-bottom: 0;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.section-title,
.page-title {
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.section-dark .section-title,
.section-dark .section-head p {
  color: var(--paper);
}

.section-head p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.lead {
  font-size: 1.08rem;
  color: #354259;
}

.copy-block p {
  margin: 0 0 18px;
}

.copy-block .section-title + .lead {
  margin-top: 26px;
}

.callout {
  border-left: 4px solid var(--orange);
  background: var(--blue-soft);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #254060;
}

.quick-card,
.service-card,
.sample-card,
.tool-card,
.timeline-item,
.empty-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quick-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.quick-card h3,
.service-card h3,
.sample-card h3,
.timeline-item h3,
.empty-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.quick-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.quick-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.quick-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 24px;
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.service-number {
  color: var(--orange);
  font-weight: 800;
  font-size: .78rem;
}

.service-card p,
.sample-card p,
.empty-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.work-tab {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .76);
  padding: 9px 15px;
  font-weight: 700;
  cursor: pointer;
}

.work-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
}

.sample-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sample-grid.active {
  display: grid;
}

.sample-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}

.sample-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 123, 44, .7);
}

.sample-preview {
  min-height: 70px;
  background:
    linear-gradient(135deg, rgba(231, 240, 250, .98), rgba(255, 240, 229, .94));
  border-bottom: 1px solid var(--line);
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.preview-row {
  height: 11px;
  border-radius: 999px;
  background: #5b616a;
}

.preview-row.short {
  width: 100%;
  background: var(--orange);
}

.sample-body {
  padding: 20px;
}

.sample-type {
  color: var(--orange);
  font-weight: 800;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  padding: 16px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #e87b2c 0%, #f39b4a 55%, #f8b66d 100%);
  border-color: rgba(255, 178, 111, .48);
  box-shadow: 0 10px 28px rgba(232, 123, 44, .14);
}

.tool-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .82);
  font-size: .76rem;
  font-weight: 400;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 22px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
}

.timeline-date {
  color: var(--orange);
  font-weight: 800;
  font-size: .82rem;
}

.empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.empty-card {
  min-height: 180px;
  padding: 24px;
  border-style: dashed;
  background: rgba(255, 255, 255, .72);
}

.contact {
  text-align: center;
}

.contact .section-head {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  justify-content: center;
}

.contact-link {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  border-radius: 6px;
  padding: 13px 16px;
  font-weight: 800;
}

.contact-link.is-disabled {
  color: var(--muted);
  border-style: dashed;
  cursor: default;
}

.footer {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .82rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 24, 40, .78);
}

.lightbox.active {
  display: flex;
}

.lightbox-panel {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.lightbox.has-proof .lightbox-panel {
  width: min(1200px, 100%);
}

.lightbox.fit-proof .lightbox-panel {
  height: 86dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox.fit-proof .lightbox-head {
  flex-shrink: 0;
}

.lightbox.fit-proof .lightbox-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
}

.lightbox.fit-proof .lightbox-image-link {
  flex-shrink: 0;
  margin: 0 0 12px;
}

.lightbox.fit-proof .lightbox-proof {
  flex: 1;
  min-height: 0;
  height: 0;
  object-fit: contain;
  margin: 0;
}

.sample-pending {
  cursor: default;
}

.sample-pending:hover {
  transform: none;
  border-color: var(--line);
}

.lightbox-proof {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
}

.lightbox-image-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy);
}

.lightbox-head {
  position: sticky;
  top: 0;
  background: var(--paper);
}

.sample-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.lightbox-head h3 {
  margin: 0;
  color: var(--navy);
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: pointer;
  font-size: 1.2rem;
}

.lightbox-body {
  padding: 24px;
  color: #33435b;
}

.lightbox-body ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.cv-dialog {
  width: min(1100px, calc(100% - 24px));
  height: 90vh;
  height: 90dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--paper);
}

.cv-dialog[open] {
  display: flex;
  flex-direction: column;
}

.cv-dialog::backdrop {
  background: rgba(13, 24, 40, .78);
}

.cv-toolbar,
.cv-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.cv-toolbar h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cv-document {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--soft);
  padding: 12px;
}

.cv-document img {
  display: block;
  width: 100%;
  max-width: 990px;
  height: auto;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
}

.cv-document img:last-child {
  margin-bottom: 0;
}

.profile-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.profile-hero .section-inner {
  padding: 56px 0 54px;
}

#profile .section-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.section.profile-capabilities {
  padding-top: 32px;
  padding-bottom: 32px;
}

.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.profile-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.section.contact,
.section.profile-closing {
  padding-top: 40px;
  padding-bottom: 40px;
}

.profile-closing {
  border-top: 1px solid var(--line);
}

.profile-quote {
  text-align: center;
}

.profile-quote-mark {
  display: block;
  height: 72px;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  line-height: 1;
}

.profile-quote blockquote {
  max-width: 960px;
  margin: 12px auto 36px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  line-height: 1.25;
  text-wrap: balance;
}

.profile-quote blockquote em {
  display: block;
  margin-top: 12px;
  color: #a94e16;
}

.profile-quote figcaption {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
}

.profile-quote figcaption::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 24px;
  background: var(--orange);
}

@media (max-width: 600px) {
  .section.contact,
  .section.profile-closing {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .profile-quote blockquote {
    font-size: 2.25rem;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 72px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-inner,
  .about-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .portrait-frame {
    aspect-ratio: 4 / 5;
    max-height: 520px;
    margin-inline: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid,
  .sample-grid,
  .empty-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-inner,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-stats,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
