@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f8f9f6;
  --ink: #172f43;
  --muted: #53646d;
  --line: #d8e0df;
  --accent: #17647c;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 1.25rem; line-height: 1.65; }
body.personal {
  color-scheme: dark;
  --paper: #151c19;
  --ink: #f7f8f3;
  --muted: #dbe4de;
  --line: #354139;
  --accent: #b4d69f;
  font-weight: 500;
}
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
p, h1, h2, h3 { margin: 0; }
.wrap { width: min(1040px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px 16px; background: var(--ink); color: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 100px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.wordmark:hover { text-decoration: none; }
.wordmark img { display: block; width: 43px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
.wordmark > span { font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.wordmark small { display: block; margin-top: 5px; font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .15em; }
.personal .wordmark img { width: 29px; height: 29px; mix-blend-mode: normal; }
.personal .wordmark > span { font-weight: 600; font-size: 1.625rem; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 1.0625rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.contact-link { font-weight: 600; display: inline-flex; align-items: center; gap: 16px; }
.contact-link span { font-size: 18px; }
.section-links { display: contents; }
.menu-toggle { display: none; }
.hero { padding: 83px 0 76px; }
.eyebrow { margin-bottom: 25px; font-size: 1rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
h1 { font-size: clamp(44px, 6.3vw, 76px); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }
h1 span { color: var(--accent); }
.personal h1, .personal h2 { font-weight: 600; }
.personal .service h3 { font-weight: 700; }
.hero-copy { font-size: 1.375rem; line-height: 1.65; color: var(--muted); margin: 26px 0 30px; max-width: 740px; }
.hero-copy p + p { margin-top: 1.65em; }
.hero-answer { color: var(--ink); font-weight: 600; }
.engineering .hero h1 + .button { margin-top: 30px; }
.experience-years { font-size: 1.375rem; line-height: 1.65; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 35px; padding: 15px 25px; min-height: 56px; background: var(--ink); color: var(--paper); font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.button:hover { background: var(--accent); text-decoration: none; }
.button span { font-size: 19px; font-weight: 400; line-height: 1; }
.personal .button { background: var(--accent); color: var(--paper); }
.personal .button:hover { background: #cde3be; }
.availability, .company-history { font-size: 1rem; color: var(--muted); margin-top: 18px; }
.services { padding-bottom: 52px; }
h2 { font-size: 1.75rem; line-height: 1.35; letter-spacing: -.025em; font-weight: 500; }
.services > h2 { margin-bottom: 25px; }
.service { display: grid; grid-template-columns: 1fr 1.65fr; align-items: baseline; gap: 50px; padding: 22px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: 1.375rem; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.service p { color: var(--muted); font-size: 1.25rem; line-height: 1.65; max-width: 560px; }
.service p + p { margin-top: 16px; }
.service .button { margin-top: 24px; }
.cycle { list-style: none; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 560px; margin: 24px 0 28px; padding: 0; }
.cycle li { position: relative; counter-increment: step; padding: 14px 16px; border: 1px solid var(--line); }
.cycle li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: var(--paper); font-size: .875rem; font-weight: 700; }
.cycle strong { display: block; font-size: 1.0625rem; }
.cycle span { display: block; margin-top: 4px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.cycle li::after { position: absolute; color: var(--accent); font-size: 20px; line-height: 1; }
.cycle li:nth-child(1)::after { content: "→"; right: -24px; top: 50%; transform: translateY(-50%); }
.cycle li:nth-child(2)::after { content: "↓"; bottom: -26px; left: 50%; transform: translateX(-50%); }
.cycle li:nth-child(3) { grid-column: 2; grid-row: 2; }
.cycle li:nth-child(3)::after { content: "←"; left: -24px; top: 50%; transform: translateY(-50%); }
.cycle li:nth-child(4) { grid-column: 1; grid-row: 2; }
.cycle li:nth-child(4)::after { content: "↑"; top: -26px; left: 50%; transform: translateX(-50%); }
.read-more { margin-top: 16px; }
.read-more summary { width: fit-content; cursor: pointer; color: var(--accent); font-size: 1.125rem; font-weight: 600; }
.read-more p, .read-more + p { margin-top: 16px; }
.technology { margin-top: 20px; font-size: 1rem; color: var(--muted); }
.about { display: grid; grid-template-columns: 1fr 1.65fr; gap: 50px; padding: 38px 0 48px; }
.about-intro { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
.portrait { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.profile-link { margin-top: 12px; font-size: 1rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-left: 10px; }
.service .text-link { display: inline-block; margin-top: 14px; font-size: 1.125rem; }
.about-copy { max-width: 560px; }
.about-copy p { font-size: 1.25rem; line-height: 1.65; color: var(--muted); }
.about-copy p + p { margin-top: 14px; }
.about-copy .credentials { font-size: 1.0625rem; line-height: 1.85; }
.site-footer { display: flex; justify-content: space-between; gap: 28px; align-items: baseline; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.site-footer a { text-decoration: none; white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }
.contact-section { display: grid; grid-template-columns: 1fr 1.65fr; gap: 50px; border-top: 1px solid var(--line); padding: 48px 0 55px; }
.contact-intro p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.contact-intro .contact-alternative { margin-top: 28px; font-size: 1rem; line-height: 1.8; }
.contact-alternative a { overflow-wrap: anywhere; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-fields > div { min-width: 0; }
.form-full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 8px; font-size: 1.125rem; font-weight: 600; }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea, .contact-form select { display: block; width: 100%; padding: 12px; border: 1px solid var(--muted); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.25rem; }
.contact-form input, .contact-form select { min-height: 54px; }
.select-control { position: relative; }
.contact-form select { appearance: none; -webkit-appearance: none; padding-right: 64px; cursor: pointer; }
.select-control::after { content: ""; position: absolute; top: 50%; right: 22px; width: 14px; height: 14px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.contact-form input[type="hidden"] { display: none; }
.contact-form textarea { resize: vertical; min-height: 145px; }
.contact-form .button { border: 0; font-family: inherit; cursor: pointer; }
.contact-form [data-submit-label] { font-size: inherit; font-weight: inherit; line-height: inherit; }
.field-help { margin-bottom: 12px; font-size: 1rem; color: var(--muted); line-height: 1.65; }
.contact-form .button:disabled { opacity: .6; cursor: wait; }
.contact-form [data-turnstile]:not(:empty) { margin-top: 24px; }
.form-privacy, .form-preview { font-size: 1rem; color: var(--muted); margin: 20px 0; }
.form-preview { border-left: 2px solid var(--accent); padding-left: 12px; }
.form-status { font-size: 1.125rem; margin-top: 24px; }
.form-status[data-state="error"] { color: #a32c26; }
.personal .form-status[data-state="error"] { color: #ffbaad; }
@media (min-width: 1500px) {
  .hero { padding-top: 97px; padding-bottom: 87px; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 56px); }
  .site-header { gap: 20px; }
  .site-header nav { gap: 18px; }
  .contact-link { gap: 10px; }
  .hero { padding: 60px 0; }
  h1 { font-size: clamp(43px, 7.6vw, 61px); }
  .service, .about { grid-template-columns: 1fr 1.5fr; gap: 30px; }
  .contact-section { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { flex-wrap: wrap; gap: 10px 25px; }
}
@media (max-width: 700px) {
  .site-header { position: relative; }
  .site-header nav { gap: 8px; }
  .section-links { display: none; }
  .section-links.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; z-index: 5; padding: 8px 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 24px -14px rgba(0, 0, 0, .7); }
  .section-links.is-open a { padding: 12px 0; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 40px); }
  .cycle { grid-template-columns: 1fr; gap: 28px; }
  .cycle li:nth-child(3), .cycle li:nth-child(4) { grid-column: auto; grid-row: auto; }
  .cycle li:nth-child(n)::after { content: "↓"; top: auto; right: auto; bottom: -25px; left: 50%; transform: translateX(-50%); }
  .cycle li:nth-child(4)::after { content: "↻"; }
  .site-header { min-height: 81px; gap: 18px; }
  .wordmark > span { font-size: 1.375rem; }
  .wordmark small { font-size: .75rem; }
  .wordmark img { width: 36px; height: 27px; }
  .personal .wordmark > span { font-size: 1.5rem; }
  .site-header nav { font-size: 1rem; }
  .contact-link { gap: 10px; }
  .hero { padding: 50px 0 49px; }
  .eyebrow { font-size: .9375rem; margin-bottom: 22px; }
  h1 { font-size: clamp(35px, 8.6vw, 47px); line-height: 1.12; letter-spacing: -.05em; }
  .hero-copy { margin: 23px 0 27px; font-size: 1.25rem; max-width: 400px; }
  .experience-years { font-size: 1.25rem; }
  .desktop-break { display: none; }
  .button { padding: 14px 22px; min-height: 54px; font-size: 1.125rem; }
  .availability { font-size: 1rem; max-width: 340px; }
  .services { padding-bottom: 27px; }
  .services > h2 { margin-bottom: 20px; }
  h2 { font-size: 1.625rem; }
  .service { grid-template-columns: 1fr; gap: 7px; padding: 19px 0; }
  .service h3 { font-size: 1.3125rem; }
  .service p { font-size: 1.125rem; }
  .technology { font-size: 1rem; max-width: 360px; line-height: 1.8; }
  .about { grid-template-columns: 1fr; gap: 17px; padding: 24px 0 33px; }
  .about-intro { flex-direction: column; align-items: flex-start; gap: 18px; }
  .portrait { width: 88px; height: 88px; }
  .about-copy p { font-size: 1.125rem; }
  .about-copy .credentials { font-size: 1rem; }
  .site-footer { flex-direction: column; gap: 9px; padding: 22px 0 28px; font-size: .9375rem; }
  .contact-section { padding: 32px 0; }
  .form-fields { grid-template-columns: 1fr; gap: 20px; }
  .contact-form input, .contact-form textarea, .contact-form select { font-size: 1.125rem; }
}
@media (max-width: 380px) {
  .contact-link span { display: none; }
}
@media (max-width: 340px) {
  .site-header { gap: 10px; }
  .personal .wordmark > span { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body, body.personal { --paper: white; --ink: #172f43; --muted: #53646d; --line: #cbd4d3; --accent: #17647c; }
  .wrap { width: 100%; }
  .skip-link, .site-header nav, .button, .contact-form { display: none; }
  .hero { padding: 35px 0; }
  h1 { font-size: 48px; }
  .service, .about { break-inside: avoid; }
}
