:root {
  --navy: #081d2c;
  --graphite: #26343d;
  --cyan: #00b8c8;
  --white: #f5f8f9;
  --titanium: #aab7be;
  --line: rgba(8, 29, 44, 0.15);
  --display: "Manrope", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  margin: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.screen-reader-text:focus {
  background: var(--navy);
  clip: auto;
  clip-path: none;
  color: var(--white);
  height: auto;
  left: 1rem;
  padding: 0.8rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(245, 248, 249, 0.93);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 92px;
  padding: 0 3.5vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-bar .site-header {
  top: 32px;
}

.brand {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.custom-logo {
  display: block;
  height: auto;
  max-height: 42px;
  max-width: 220px;
  width: auto;
}

.desktop-nav {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3.4rem);
}

.nav-list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}

.desktop-nav a::after {
  background: var(--cyan);
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  align-items: center;
  border: 1px solid var(--cyan);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 2.2rem;
  justify-self: end;
  padding: 0.95rem 1.2rem;
  transition: background 180ms ease;
}

.header-cta:hover {
  background: var(--cyan);
}

.mobile-menu {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 47.5% 52.5%;
  min-height: calc(100svh - 92px);
  overflow: hidden;
  position: relative;
}

.hero::before,
.hero-grid {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(12.5% - 1px),
    rgba(8, 29, 44, 0.075) calc(12.5% - 1px),
    rgba(8, 29, 44, 0.075) 12.5%
  );
}

.hero::before {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  align-self: center;
  padding: 6rem 4vw 3rem 3.5vw;
  position: relative;
  z-index: 3;
}

.eyebrow,
.kicker,
.section-index,
.proof-line,
.cad,
.service-number,
.project-meta > span,
.project-meta p,
.project-datum,
.render-slot {
  font-family: var(--mono);
  text-transform: uppercase;
}

.eyebrow,
.kicker {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.eyebrow {
  margin: 0 0 2rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.7rem, 5.75vw, 6.55rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.91;
  margin: 0;
  max-width: 850px;
}

.hero-summary {
  border-top: 1px solid rgba(8, 29, 44, 0.45);
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  line-height: 1.55;
  margin: 2rem 0 0;
  max-width: 530px;
  padding-top: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.button {
  align-items: center;
  display: inline-flex;
  font-size: 0.93rem;
  font-weight: 700;
  gap: 2rem;
  justify-content: space-between;
  min-height: 54px;
  padding: 0.9rem 1.4rem;
  transition: background 170ms ease, color 170ms ease, transform 170ms ease;
}

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

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary span {
  color: var(--cyan);
}

.button-primary:hover {
  background: var(--cyan);
  color: var(--navy);
}

.button-secondary {
  border: 1px solid rgba(8, 29, 44, 0.65);
}

.button-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.proof-line {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.66rem;
  gap: 1.15rem;
  letter-spacing: 0.08em;
  margin: 3.2rem 0 0;
  max-width: 560px;
  padding-top: 1.1rem;
}

.proof-line span:not(:last-child)::after {
  color: var(--cyan);
  content: "•";
  margin-left: 1.15rem;
}

.hero-visual {
  min-height: 700px;
  position: relative;
}

.hero-grid {
  inset: 0;
  position: absolute;
}

.navy-plane {
  background: var(--navy);
  clip-path: polygon(30% 43%, 100% 9%, 100% 100%, 0 100%, 0 71%);
  inset: 0;
  position: absolute;
}

.hero-product {
  filter: drop-shadow(0 28px 24px rgba(2, 16, 26, 0.23));
  height: 81%;
  object-fit: contain;
  position: absolute;
  right: -12%;
  top: 9%;
  width: 116%;
  z-index: 3;
  animation: product-settle 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.cad {
  color: var(--titanium);
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  position: absolute;
  z-index: 4;
}

.cad-top {
  right: 7%;
  top: 6%;
}

.cad-datum {
  left: 19%;
  top: 18%;
}

.cad-section {
  bottom: 25%;
  left: 13%;
}

.cad-tolerance {
  bottom: 9%;
  left: 20%;
}

.section-pad {
  padding: clamp(5rem, 10vw, 10rem) 5vw;
}

.section-index {
  color: rgba(8, 29, 44, 0.55);
  display: flex;
  font-size: 0.68rem;
  gap: 1.5rem;
  letter-spacing: 0.12em;
}

.statement {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5vw;
  grid-template-columns: minmax(140px, 1fr) 4fr;
}

.statement h2,
.section-heading h2,
.insights h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.statement h2 {
  font-size: clamp(2.8rem, 5.4vw, 6.2rem);
  margin: 1.5rem 0 0;
  max-width: 1100px;
}

.statement-detail {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(280px, 520px) auto;
  margin: 4rem 0 0 auto;
  max-width: 900px;
}

.statement-detail p,
.section-heading > p {
  color: var(--graphite);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.text-link {
  align-self: start;
  border-bottom: 1px solid var(--cyan);
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.services {
  background: var(--navy);
  color: var(--white);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 8vw;
  grid-template-columns: 1.5fr minmax(280px, 0.65fr);
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.section-heading h2,
.insights h2 {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  margin: 1.25rem 0 0;
}

.services .section-heading > p,
.services .kicker {
  color: var(--titanium);
}

.service-list {
  border-top: 1px solid rgba(245, 248, 249, 0.25);
}

.service-row {
  align-items: start;
  border-bottom: 1px solid rgba(245, 248, 249, 0.2);
  display: grid;
  gap: 2rem;
  grid-template-columns: 50px 1.05fr 1.4fr 0.8fr 28px;
  padding: 2.25rem 0;
  transition: background 180ms ease, padding 180ms ease;
}

.service-row:hover {
  background: rgba(0, 184, 200, 0.07);
  padding-left: 1rem;
  padding-right: 1rem;
}

.service-number,
.service-arrow {
  color: var(--cyan);
}

.service-number {
  font-size: 0.72rem;
}

.service-row h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: -0.4rem 0 0;
}

.service-row p {
  color: var(--titanium);
  line-height: 1.65;
  margin: 0;
}

.service-row small {
  color: var(--titanium);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.8;
  text-transform: uppercase;
}

.service-arrow {
  font-size: 1.3rem;
}

.project-list {
  display: grid;
  gap: clamp(4rem, 7vw, 7rem);
}

.project-card:nth-child(even) {
  margin-left: 10vw;
}

.project-visual {
  aspect-ratio: 16 / 8.5;
  background:
    radial-gradient(circle at 64% 42%, rgba(0, 184, 200, 0.16), transparent 31%),
    linear-gradient(135deg, #eef3f5 0 50%, #dce5e9 50%);
  border: 1px solid var(--line);
  display: block;
  overflow: hidden;
  position: relative;
}

.has-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.render-slot {
  border: 1px dashed currentColor;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  left: 50%;
  letter-spacing: 0.13em;
  opacity: 0.58;
  padding: 2rem 3rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.project-datum {
  bottom: 8%;
  font-size: 0.64rem;
  left: 6%;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.project-meta {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 60px 1fr auto;
  padding-top: 1.4rem;
}

.project-meta > span,
.project-meta p {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.project-meta p {
  color: rgba(38, 52, 61, 0.72);
  margin: 0 0 0.6rem;
}

.project-meta h3 {
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  letter-spacing: -0.045em;
  margin: 0 0 0.6rem;
}

.project-meta small {
  color: var(--graphite);
  font-size: 0.88rem;
}

.project-meta > a {
  align-items: center;
  border: 1px solid var(--cyan);
  display: flex;
  font-size: 1.4rem;
  height: 52px;
  justify-content: center;
  transition: background 180ms ease;
  width: 52px;
}

.project-meta > a:hover {
  background: var(--cyan);
}

.process {
  background: #e9eff1;
}

.process-grid {
  border-top: 1px solid rgba(8, 29, 44, 0.28);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-grid li {
  border-right: 1px solid rgba(8, 29, 44, 0.2);
  min-height: 320px;
  padding: 1.5rem;
}

.process-grid li:last-child {
  border-right: 0;
}

.process-grid li > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.process-grid h3 {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  letter-spacing: -0.045em;
  margin: 5rem 0 1rem;
}

.process-grid p {
  color: var(--graphite);
  line-height: 1.65;
  margin: 0;
}

.insights {
  display: grid;
  gap: 8vw;
  grid-template-columns: 1fr 1fr;
}

.insight-links {
  border-top: 1px solid var(--line);
}

.insight-links a {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 40px 1fr auto;
  padding: 1.8rem 0;
}

.insight-links a span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.insight-links strong {
  font-size: 1.2rem;
  line-height: 1.35;
}

.contact {
  background: var(--cyan);
  padding: clamp(5rem, 10vw, 10rem) 5vw 5rem;
}

.contact h2 {
  font-size: clamp(3.2rem, 7.2vw, 8.2rem);
  margin: 1.5rem 0 3.5rem;
  max-width: 1250px;
}

.contact-link {
  border-bottom: 2px solid var(--navy);
  display: inline-block;
  font-size: clamp(1.2rem, 2.4vw, 2.4rem);
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.contact-meta {
  border-top: 1px solid rgba(8, 29, 44, 0.3);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  gap: 1.5rem 3rem;
  letter-spacing: 0.1em;
  margin-top: 7rem;
  padding-top: 1.25rem;
  text-transform: uppercase;
}

.site-footer {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr auto auto;
  padding: 3rem 5vw;
}

.site-footer p,
.site-footer > span {
  color: var(--titanium);
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.content-shell {
  min-height: 70vh;
  padding: clamp(5rem, 10vw, 10rem) 5vw;
}

.content-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
  padding-bottom: 3rem;
}

.content-header h1,
.not-found h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 1.2rem 0 0;
  max-width: 1200px;
}

.content-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.content-card {
  border: 1px solid var(--line);
  margin-right: -1px;
  padding: 2rem;
}

.content-card h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.7rem);
  letter-spacing: -0.04em;
}

.content-card p,
.singular-excerpt,
.entry-content {
  color: var(--graphite);
  line-height: 1.75;
}

.singular .content-header,
.entry-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

.singular-image {
  margin: 0 auto 5rem;
  max-width: 1400px;
}

.singular-image img {
  display: block;
  height: auto;
  width: 100%;
}

.entry-content > * {
  margin-bottom: 1.5rem;
}

.not-found {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found .button {
  margin-top: 3rem;
}

@keyframes product-settle {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 1.2rem;
  }

  .hero {
    grid-template-columns: 52% 48%;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 6.4vw, 5.5rem);
  }

  .service-row {
    grid-template-columns: 45px 1fr 1.35fr 30px;
  }

  .service-row small {
    display: none;
  }
}

@media (max-width: 880px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    height: 76px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
    justify-self: end;
    position: relative;
  }

  .mobile-menu summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    padding: 0.8rem;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    background: var(--navy);
    color: var(--white);
    display: grid;
    min-width: 250px;
    padding: 1rem;
    position: absolute;
    right: 0;
    top: 48px;
  }

  .mobile-menu nav a {
    border-bottom: 1px solid rgba(245, 248, 249, 0.18);
    padding: 0.9rem;
  }

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

  .hero-copy {
    min-height: calc(100svh - 76px);
    padding: 6rem 6vw 3rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 11.5vw, 6rem);
  }

  .hero-visual {
    min-height: 620px;
  }

  .statement,
  .section-heading,
  .insights {
    grid-template-columns: 1fr;
  }

  .statement > div:last-child {
    margin-top: 3rem;
  }

  .service-row {
    grid-template-columns: 40px 1fr 30px;
  }

  .service-row p {
    grid-column: 2 / 4;
  }

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

  .process-grid li:nth-child(2) {
    border-right: 0;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero-copy {
    padding-top: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
    line-height: 0.95;
  }

  .hero-summary {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .proof-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .proof-line span::after {
    display: none;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-product {
    height: 76%;
    right: -23%;
    top: 7%;
    width: 135%;
  }

  .statement-detail {
    gap: 2.5rem;
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .section-heading {
    gap: 2rem;
  }

  .service-row {
    gap: 1rem;
  }

  .project-card:nth-child(even) {
    margin-left: 0;
  }

  .project-visual {
    aspect-ratio: 4 / 4.5;
  }

  .render-slot {
    padding: 1.4rem;
  }

  .project-meta {
    grid-template-columns: 30px 1fr;
  }

  .project-meta > a {
    display: none;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid li {
    border-bottom: 1px solid rgba(8, 29, 44, 0.2);
    border-right: 0;
    min-height: 250px;
  }

  .process-grid h3 {
    margin-top: 3rem;
  }

  .insight-links a {
    grid-template-columns: 28px 1fr;
  }

  .contact-link {
    overflow-wrap: anywhere;
  }

  .contact-meta {
    margin-top: 4rem;
  }

  .site-footer {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
