:root {
  --navy-950: #0c2235;
  --navy-900: #173650;
  --navy-800: #234b68;
  --paper: #f5f2ec;
  --white: #ffffff;
  --ink: #162534;
  --muted: #667681;
  --line: #d9dedf;
  --coral: #ec8a62;
  --teal: #4da7a2;
  --gold: #dfaa44;
  --shadow: 0 28px 70px rgba(12, 34, 53, 0.14);
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--white); padding: 12px 18px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 34, 53, 0.96);
  color: var(--white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--coral);
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 0.96rem; }
.brand-copy small { margin-top: 3px; color: #afbdc7; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.93rem; font-weight: 600; color: #d5dee5; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav .nav-cta { padding: 11px 17px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; color: var(--white); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
  padding: 94px 0 92px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -260px;
  top: -220px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,0.025), 0 0 0 160px rgba(255,255,255,0.018);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr); align-items: center; gap: 74px; }
.eyebrow { margin: 0 0 18px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; color: var(--coral); }
.eyebrow.coral { color: #d96942; }
.eyebrow.teal { color: #2e8984; }
.eyebrow.gold { color: var(--gold); }
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; line-height: 1.08; }
h1 { margin-bottom: 26px; font-size: clamp(2.8rem, 5.2vw, 5.45rem); letter-spacing: -0.055em; max-width: 800px; }
h1 span { color: var(--coral); }
.hero-lede { max-width: 720px; margin: 0; color: #c7d1d9; font-size: 1.18rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--coral); color: var(--navy-950); }
.button.primary:hover { background: #ff9a70; }
.button.secondary { border: 1px solid rgba(255,255,255,0.28); color: var(--white); }
.button.secondary:hover { background: rgba(255,255,255,0.08); }
.button.light { background: var(--white); color: var(--navy-950); }
.credibility-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.13); }
.credibility-row div { display: grid; gap: 4px; }
.credibility-row strong { font-family: "Manrope", sans-serif; color: var(--white); font-size: 1.35rem; }
.credibility-row span { color: #9fb0bd; font-size: 0.82rem; line-height: 1.35; }

.hero-system { position: relative; background: var(--white); color: var(--ink); border-radius: 20px; padding: 27px; box-shadow: 22px 22px 0 var(--navy-800); }
.hero-system::before { content: ""; position: absolute; inset: -7px 38px auto 38px; height: 7px; background: var(--teal); border-radius: 8px 8px 0 0; }
.system-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-weight: 800; }
.system-status { color: #2d7e78; font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; }
.system-flow { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.system-flow li { position: relative; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; padding: 15px; background: #f2f5f6; border: 1px solid #dbe3e5; border-radius: 12px; }
.system-flow li:not(:last-child)::after { content: ""; position: absolute; width: 2px; height: 14px; left: 38px; bottom: -14px; background: var(--teal); }
.flow-number { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border-radius: 50%; color: var(--white); background: var(--navy-800); font-weight: 800; font-size: 0.78rem; }
.system-flow div { display: grid; gap: 3px; }
.system-flow strong { font-family: "Manrope", sans-serif; font-size: 1rem; }
.system-flow small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.system-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 17px; border-top: 1px solid var(--line); color: #70808a; font-size: 0.62rem; letter-spacing: 0.08em; font-weight: 800; }

.trust-strip { background: var(--navy-800); color: #dce6eb; }
.trust-track { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.trust-track::-webkit-scrollbar { display: none; }
.trust-track span { flex: none; position: relative; font-size: 0.79rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.trust-track span:not(:last-child)::after { content: "·"; position: absolute; right: -17px; color: var(--coral); }

.section { padding: 110px 0; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading h2, .contact h2 { margin-bottom: 20px; font-size: clamp(2.15rem, 4vw, 4rem); letter-spacing: -0.045em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: 90px; }
.split-heading > p { margin-bottom: 4px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 425px; padding: 34px 30px 32px; background: var(--white); border-top: 7px solid; box-shadow: 0 8px 30px rgba(12,34,53,0.06); }
.service-card::after { content: ""; position: absolute; inset: auto 30px 0; height: 5px; background: currentColor; opacity: 0.15; }
.coral-card { border-color: var(--coral); color: #b4512f; }
.teal-card { border-color: var(--teal); color: #237b77; }
.gold-card { border-color: var(--gold); color: #a87514; }
.service-card .service-index { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 0.75rem; letter-spacing: 0.12em; }
.service-card h3 { margin: 45px 0 20px; color: var(--ink); font-size: 1.55rem; letter-spacing: -0.025em; }
.service-card p { min-height: 104px; color: var(--muted); }
.service-card ul { margin: 25px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--ink); }
.service-card li { position: relative; padding-left: 19px; margin: 8px 0; font-size: 0.9rem; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 2px; background: currentColor; }

.selected-work { background: #e9edf0; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { overflow: hidden; background: var(--white); box-shadow: 0 14px 38px rgba(12,34,53,0.07); transition: transform 220ms ease, box-shadow 220ms ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-top: 6px solid; }
.case-image img { width: 100%; height: 100%; object-fit: cover; }
.coral-frame { border-color: var(--coral); }
.teal-frame { border-color: var(--teal); }
.gold-frame { border-color: var(--gold); }
.case-label { position: absolute; right: 14px; top: 14px; padding: 6px 9px; background: rgba(12,34,53,0.91); color: var(--white); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.case-body { padding: 28px; }
.case-kicker { margin: 0 0 11px; color: #497080; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.case-body h3 { margin-bottom: 15px; font-size: 1.42rem; letter-spacing: -0.02em; }
.case-body > p:not(.case-kicker) { min-height: 100px; color: var(--muted); font-size: 0.94rem; }
.text-link { border: 0; padding: 0; background: none; color: var(--navy-800); font-weight: 800; cursor: pointer; text-align: left; }
.text-link:hover, .text-link:focus-visible { color: #d7643d; }
.experience-case { grid-column: 1 / -1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; margin-top: 10px; padding: 45px; background: var(--navy-900); color: var(--white); }
.experience-type { display: inline-block; margin-bottom: 22px; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; }
.experience-case h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.85rem); letter-spacing: -0.04em; }
.experience-copy p { margin-top: 0; color: #c8d4dc; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.skill-tags span { padding: 7px 11px; border: 1px solid rgba(255,255,255,0.2); color: #eaf0f3; font-size: 0.76rem; }

.about { background: var(--navy-950); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; }
.about-intro h2 { font-size: clamp(2.15rem, 4vw, 4rem); letter-spacing: -0.045em; }
.about-intro > p:not(.eyebrow) { color: #bdcbd4; font-size: 1.05rem; }
.about-intro .button { margin-top: 25px; }
.career-path { border-top: 1px solid rgba(255,255,255,0.18); }
.career-path article { display: grid; grid-template-columns: 92px 1fr; gap: 28px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,0.13); }
.career-path article > span { padding-top: 4px; color: var(--teal); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.08em; }
.career-path h3 { margin: 0 0 8px; font-size: 1.15rem; }
.career-path p { margin: 0; color: #9fb0bd; font-size: 0.91rem; }

.contact { background: var(--coral); padding: 78px 0; }
.contact-panel { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 90px; }
.contact .eyebrow { color: var(--navy-950); }
.contact h2 { margin-bottom: 14px; }
.contact p { margin-bottom: 0; max-width: 670px; color: #63311f; }
.contact-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.contact-actions .button { min-width: 260px; background: var(--navy-950); color: var(--white); }
.phone-link { font-family: "Manrope", sans-serif; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.contact-actions span { color: #63311f; font-size: 0.84rem; }
.site-footer { background: #071722; color: #879aa8; padding: 25px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; font-size: 0.79rem; }

.upwork-notice { background: var(--teal); color: var(--navy-950); }
.upwork-notice-inner { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; text-align: center; font-size: 0.88rem; }
.upwork-notice-inner strong { font-family: "Manrope", sans-serif; }
.upwork-hero { padding-top: 78px; }
.upwork-contact { background: var(--coral); padding: 78px 0; }
.upwork-contact-panel { display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 70px; }
.upwork-contact h2 { margin-bottom: 16px; font-size: clamp(2.15rem, 4vw, 4rem); letter-spacing: -0.045em; }
.upwork-contact p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: #63311f; }
.upwork-contact .button { min-width: 220px; }

.case-dialog { width: min(760px, calc(100% - 32px)); max-height: min(84vh, 760px); border: 0; border-radius: 16px; padding: 42px; color: var(--ink); box-shadow: 0 35px 90px rgba(3,18,29,0.35); }
.case-dialog::backdrop { background: rgba(5,22,34,0.78); backdrop-filter: blur(5px); }
.case-dialog h2 { margin-bottom: 14px; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.dialog-close { position: absolute; right: 18px; top: 15px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.5rem; cursor: pointer; }
.dialog-lede { color: var(--muted); font-size: 1.03rem; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.dialog-grid > div { padding: 20px; background: #f1f4f5; border-left: 4px solid var(--teal); }
.dialog-grid span { color: var(--navy-800); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; }
.dialog-grid p { margin: 8px 0 0; font-size: 0.88rem; color: #53636e; }
.dialog-note { margin: 24px 0 0; color: #788791; font-size: 0.78rem; font-style: italic; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-system { max-width: 650px; }
  .service-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .service-card:last-child, .case-card:last-of-type { grid-column: span 2; }
  .split-heading, .about-grid, .contact-panel, .upwork-contact-panel { grid-template-columns: 1fr; gap: 45px; }
  .experience-case { gap: 45px; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-wrap { min-height: 68px; }
  .brand-copy small { display: none; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 18px 20px 25px; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.1); flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; }
  .site-nav .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding: 68px 0 62px; }
  .hero-grid { gap: 48px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .hero-lede { font-size: 1.04rem; }
  .credibility-row { grid-template-columns: 1fr; gap: 15px; }
  .credibility-row div { grid-template-columns: 76px 1fr; align-items: center; }
  .hero-system { padding: 21px; box-shadow: 12px 12px 0 var(--navy-800); }
  .system-head { align-items: flex-start; flex-direction: column; }
  .system-foot { flex-wrap: wrap; }
  .trust-track { justify-content: flex-start; }
  .section { padding: 78px 0; }
  .service-grid, .case-grid { grid-template-columns: 1fr; }
  .service-card:last-child, .case-card:last-of-type { grid-column: auto; }
  .service-card { min-height: 0; }
  .service-card p, .case-body > p:not(.case-kicker) { min-height: 0; }
  .experience-case { grid-template-columns: 1fr; padding: 30px; gap: 28px; }
  .career-path article { grid-template-columns: 72px 1fr; gap: 16px; }
  .contact-actions .button { width: 100%; min-width: 0; }
  .footer-row { flex-direction: column; }
  .upwork-notice-inner { min-height: 58px; flex-direction: column; gap: 0; padding: 9px 0; line-height: 1.35; }
  .upwork-contact { padding: 62px 0; }
  .upwork-contact .button { width: 100%; }
  .case-dialog { padding: 36px 22px 26px; }
  .dialog-grid { grid-template-columns: 1fr; }
}

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