:root {
  --ink: #172033;
  --muted: #5d6b82;
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --surface-cool: #edf6f7;
  --line: #d9e1ec;
  --accent-blue: #2563eb;
  --accent-teal: #0f9ca8;
  --accent-green: #16a46a;
  --accent-warm: #c88a2a;
  --header: #0f1726;
  --shadow: 0 20px 60px rgba(23, 32, 51, 0.12);
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body { margin: 0; color: var(--ink); background: var(--surface-soft); line-height: 1.62; }

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

a { color: inherit; }

a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent-warm); outline-offset: 3px; }

.skip-link { position: fixed; left: 18px; top: 12px; z-index: 40; transform: translateY(-140%); padding: 9px 12px; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.site-nav { width: min(1180px, calc(100% - 48px)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--accent-blue); }
.site-nav a[aria-current] { color: var(--accent-blue) !important; box-shadow: inset 0 -2px 0 var(--accent-blue); }
.site-nav__brand { margin-right: auto; color: var(--ink) !important; font-size: 16px !important; font-weight: 850 !important; }
.site-nav__brand span { display: inline-block; margin-left: 8px; color: var(--accent-teal); font-size: 11px; font-weight: 800; }

.section { padding: 88px 24px; scroll-margin-top: 72px; }
.section__inner, .hero__inner, .footer__inner { width: min(1180px, 100%); margin: 0 auto; }
.section h2, .hero h1 { margin: 0; line-height: 1.08; }
.section h2 { max-width: 820px; font-size: 38px; letter-spacing: 0; }
.section h3 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: 0; }
.section p { color: var(--muted); }
.section-heading { max-width: 820px; }
.section-heading > p:last-child { margin: 18px 0 0; font-size: 18px; }
.section-subtitle { margin: 12px 0 0; color: var(--accent-teal) !important; font-size: 18px; font-weight: 850; }
.eyebrow { margin: 0 0 12px; color: var(--accent-teal) !important; font-size: 12px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.card-kicker { margin: 0 0 8px !important; color: var(--accent-teal) !important; font-size: 12px !important; font-weight: 850; }

.hero { min-height: calc(86vh - 64px); display: grid; align-items: center; padding: 92px 24px 64px; color: #ffffff; background: linear-gradient(120deg, rgba(15, 23, 38, 0.97), rgba(20, 58, 93, 0.92)), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 80px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 76px; }
.hero__content { max-width: 800px; }
.hero .eyebrow { color: #80ddd6 !important; }
.hero__name { margin: 0 0 14px; color: #80ddd6; font-size: 20px; font-weight: 850; line-height: 1.2; }
.hero h1 { max-width: 760px; font-size: 62px; letter-spacing: 0; }
.hero__subtitle { max-width: 620px; margin: 22px 0 0; color: #ffffff; font-size: 25px; font-weight: 750; }
.hero__lead { max-width: 720px; margin: 20px 0 0; color: rgba(255, 255, 255, 0.84); font-size: 19px; line-height: 1.58; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button, .case-figure__button, .image-dialog__close { border-radius: 8px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; font-weight: 800; text-decoration: none; }
.button--primary { background: var(--accent-green); color: #ffffff; }
.button--primary:hover { background: #0f8555; }
.button--secondary { border-color: rgba(255, 255, 255, 0.42); color: #ffffff; }
.button--secondary:hover { background: rgba(255, 255, 255, 0.1); }
.credential-list, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.credential-list { margin-top: 34px; }
.credential-list li { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, 0.26); color: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 750; }
.hero-proof { padding: 16px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.hero-proof img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: center top; background: #e8ecf2; }
.hero-proof__label { margin: 14px 0 0; color: #80ddd6; font-size: 12px; font-weight: 850; }
.hero-proof p:not(.hero-proof__label) { margin: 4px 0 0; color: #ffffff; font-size: 16px; font-weight: 750; line-height: 1.4; }

.section--foundation, .section--tools, .section--about { background: var(--surface); }
.section--project { background: var(--surface-cool); }
.foundation-grid, .expertise-grid, .tools-grid, .product-grid, .credentials-grid { display: grid; gap: 18px; margin-top: 36px; }
.foundation-grid { grid-template-columns: repeat(4, 1fr); }
.expertise-grid { grid-template-columns: repeat(2, 1fr); }
.tools-grid, .credentials-grid { grid-template-columns: repeat(3, 1fr); }
.product-grid { grid-template-columns: repeat(4, 1fr); }
article, .case-figure, .contact-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.foundation-grid article, .expertise-grid article, .tools-grid article, .credentials-grid article { padding: 24px; border-top: 3px solid var(--accent-teal); }
.foundation-grid article:nth-child(2), .expertise-grid article:nth-child(2), .tools-grid article:nth-child(2), .credentials-grid article:nth-child(2) { border-top-color: var(--accent-blue); }
.foundation-grid article:nth-child(3), .expertise-grid article:nth-child(3), .tools-grid article:nth-child(3), .credentials-grid article:nth-child(3) { border-top-color: var(--accent-green); }
.foundation-grid article:nth-child(4), .expertise-grid article:nth-child(4) { border-top-color: var(--accent-warm); }
article p { margin: 12px 0 0; font-size: 15px; }
.tag-list { margin-top: 16px; }
.tag-list li { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-soft); font-size: 12px; font-weight: 750; }

.project-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 22px; align-items: start; margin-top: 40px; }
.case-figure { margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.case-figure__button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
.case-figure img { width: 100%; height: auto; object-fit: contain; }
.case-figure figcaption { padding: 14px 20px; color: var(--muted); font-size: 14px; }
.project-notes { display: grid; gap: 14px; }
.project-notes article { padding: 20px; }
.image-dialog { width: min(1180px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 16px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); background: var(--surface); }
.image-dialog::backdrop { background: rgba(15, 23, 38, 0.78); }
.image-dialog__close { min-height: 40px; margin: 0 0 12px auto; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.image-dialog img { max-height: calc(100vh - 112px); margin: 0 auto; object-fit: contain; }

.product-grid article { display: flex; flex-direction: column; overflow: hidden; }
.work-card__media { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface-soft); }
.product-grid h3, .product-grid p, .product-grid a { margin-left: 18px; margin-right: 18px; }
.product-grid h3 { margin-top: 18px; }
.product-grid a { margin-top: auto; margin-bottom: 18px; color: var(--accent-blue); font-size: 14px; font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.product-grid a:hover { color: var(--accent-teal); }

.profile-layout { display: grid; grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr); gap: 52px; align-items: start; }
.profile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border: 1px solid var(--line); border-radius: 8px; }
.profile__summary h2 { margin-bottom: 22px; }
.profile__summary p { max-width: 760px; margin: 0 0 18px; font-size: 17px; }
.profile__summary strong { color: var(--ink); }

.section--contact { color: #ffffff; background: var(--header); }
.section--contact .eyebrow { color: #80ddd6 !important; }
.section--contact h2 { color: #ffffff; }
.section--contact p { color: rgba(255, 255, 255, 0.78); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 42px; align-items: start; }
.contact-methods { display: grid; gap: 14px; }
.contact-card { padding: 26px; border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.contact-card h3 { color: #ffffff; }
.contact-card a:not(.button) { color: #ffffff; font-size: 19px; font-weight: 850; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.copy-button { min-height: 46px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 8px; background: transparent; color: #ffffff; font: inherit; font-weight: 800; cursor: pointer; }
.copy-button:hover { background: rgba(255, 255, 255, 0.1); }

.site-footer { padding: 24px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer__inner p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 1024px) {
  .site-nav { gap: 16px; }
  .site-nav__brand span { display: none; }
  .hero__inner { gap: 42px; grid-template-columns: minmax(0, 1fr) 250px; }
  .hero h1 { font-size: 52px; }
  .foundation-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .project-layout, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav { width: 100%; min-height: 56px; gap: 14px; flex-wrap: nowrap; overflow-x: auto; padding: 8px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; font-size: 13px; }
  .site-nav__brand { width: auto; margin: 0 4px 0 0; }
  .section { padding: 64px 18px; }
  .section h2 { font-size: 30px; }
  .hero { min-height: auto; padding: 72px 18px 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .hero__name { font-size: 18px; }
  .hero__subtitle { font-size: 21px; }
  .hero__lead { font-size: 16px; }
  .button, .copy-button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 100px 1fr; column-gap: 16px; align-items: center; }
  .hero-proof img { grid-row: span 2; }
  .hero-proof__label { margin: 0; }
  .foundation-grid, .expertise-grid, .tools-grid, .product-grid, .credentials-grid, .profile-layout { grid-template-columns: 1fr; }
  .profile-layout { gap: 24px; }
  .profile-photo { width: min(280px, 100%); }
  .image-dialog { padding: 12px; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
}
