/* Local wordmark fonts and the OFL-licensed Manrope family. */
@font-face {
  font-family: "Dytrek Name";
  src: url("assets/dytrek-name.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Dytrek Engineering";
  src: url("assets/dytrek-engineering.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
/* Palette and page width. */
:root {
  --paper: #f6f6f2;
  --white: #fff;
  --ink: #102331;
  --muted: #52616a;
  --line: #d8ddd9;
  --accent: #164fca;
  --soft: #e9ede9;
  --page: 1392px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: #c6d8ff;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
svg,
video {
  display: block;
  max-width: 100%;
}
video {
  width: 100%;
  height: auto;
}
h2 {
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.13;
  letter-spacing: -0.03em;
}
h3 {
  line-height: 1.25;
  letter-spacing: -0.8px;
}
p {
  overflow-wrap: break-word;
}
.wrap {
  width: calc(100% - 112px);
  max-width: var(--page);
  margin-inline: auto;
}
.section {
  padding-block: 48px;
}
.eyebrow {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 1.15px;
  text-transform: uppercase;
  font-weight: 500;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  z-index: 100;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Header and equal-width text wordmark. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
}
.site-logo {
  --logo-width: 194px;
  display: inline-flex;
  flex-direction: column;
  width: var(--logo-width);
  flex-shrink: 0;
  color: #061c49;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}
.logo-name {
  font-family: "Dytrek Name", Arial, sans-serif;
  font-size: calc(var(--logo-width) / 7.849);
}
.logo-description {
  font-family: "Dytrek Engineering", Arial, sans-serif;
  font-size: calc(var(--logo-width) / 16.841);
  margin-top: calc(var(--logo-width) * 0.0225);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a {
  padding-block: 12px;
}
.site-header nav a:hover {
  color: var(--accent);
}
.nav-contact {
  display: flex;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--ink);
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  color: inherit;
}
.menu-toggle span {
  display: inline-block;
  margin-left: 12px;
}
.menu-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}
.menu-toggle[hidden] {
  display: none;
}
/* Hero. */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 24px;
  align-items: center;
}
.hero-copy {
  padding: 0;
}
.hero h1 {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-top: 18px;
  white-space: nowrap;
}
.hero h1 span {
  color: var(--accent);
}
.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 54px;
  border: 1px solid var(--accent);
  padding: 14px 22px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.button:hover {
  background: #123fa1;
}
.button span {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}
.hero .button {
  margin-top: 20px;
}

.hero-media {
  position: relative;
  min-width: 0;
  background: #0d171e;
  min-height: 0;
  overflow: hidden;
  color: #f7f8f4;
}
.hero-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.hero-media figcaption {
  padding: 10px 16px;
}
.hero-media figcaption > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
}
.hero-media figcaption strong {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.hero-media figcaption div > span {
  font-size: 12px;
  line-height: 1.4;
  color: #b7c3c9;
}

/* Capabilities. */
.section-heading {
  margin-bottom: 24px;
}

.services {
  padding-top: 24px;
  padding-bottom: 40px;
}
.services .section-heading {
  margin-bottom: 20px;
}
.service-list {
  border-top: 1px solid var(--ink);
}
.service-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.service-row:hover {
  background: #ecefea;
}

.service-row h3 {
  min-width: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.service-row p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Process example. */
.work-section {
  background: #e9ede9;
}

/* About. */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.about h2 {
  font-size: 42px;
  letter-spacing: -0.03em;
  margin-top: 0;
}
.about-copy {
  padding-top: 0;
  max-width: 510px;
}
.about-copy p + p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.about-lead {
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1.5;
}

/* Contact: opens an email draft; messages are not sent by the website. */
.contact {
  background: #102a3b;
  color: #f8f8f4;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.contact .section {
  padding-block: 32px;
}
.contact .eyebrow {
  color: #afc3cf;
}
.contact h2 {
  font-size: 52px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 14px;
}
.contact-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #c4d0d6;
  margin-top: 16px;
}
.brief-tool {
  background: var(--paper);
  color: var(--ink);
  padding: 20px;
}
.brief-tool h3 {
  font-size: 22px;
  margin-bottom: 16px;
}
.brief-tool label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.brief-tool input,
.brief-tool select,
.brief-tool textarea {
  display: block;
  width: 100%;
  border: 1px solid #798990;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 16px;
  margin-bottom: 12px;
}
.inquiry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
#copy-message-wrap:not([hidden]) {
  margin-top: 12px;
}
.brief-tool textarea {
  resize: vertical;
  min-height: 86px;
  line-height: 1.5;
}
.brief-tool select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23102331' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
@media (forced-colors: active) {
  .brief-tool select { appearance: auto; background-image: none; }
}
.brief-tool textarea::placeholder {
  color: #647078;
}
.brief-tool .button {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
}
#brief-status {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  min-height: 0;
}
#brief-status:empty {
  margin-top: 0;
}
.contact-fallback {
  margin-top: 8px;
  font-size: 14px;
}
.contact-fallback summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}
.contact-fallback p,
.contact-help {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.contact-fallback p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.copy-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #798990;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.copy-button:hover {
  background: #ecefea;
}
.copy-button[hidden] {
  display: none;
}
/* Responsive layout. */
@media (max-width: 480px) {
  .inquiry-fields {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1600px) {
  .hero-media {
    min-height: 0;
  }
}
@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 72px);
  }
  .site-header nav {
    gap: 22px;
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 68px;
    letter-spacing: -0.04em;
  }
  .hero-media {
    min-height: 0;
  }
  .hero .eyebrow {
    font-size: 12px;
  }

  .contact-grid {
    gap: 50px;
  }
  .contact h2 {
    font-size: 48px;
  }

  .about {
    gap: 50px;
  }
  .about h2 {
    font-size: 36px;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 36px;
  }
  .site-header {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
  }
  .site-logo {
    --logo-width: 156px;
  }
  .menu-toggle:not([hidden]) {
    display: block;
  }
  .site-header nav {
    flex-wrap: wrap;
    width: 100%;
    padding: 8px 0 16px;
    gap: 18px;
    font-size: 12px;
  }
  .js .site-header nav {
    display: none;
  }
  .js .site-header nav.is-open {
    display: flex;
  }
  .site-header nav a {
    padding: 7px 0;
  }
  .nav-contact {
    gap: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 24px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero .eyebrow {
    font-size: 12px;
    letter-spacing: 0.55px;
  }
  .hero h1 {
    font-size: clamp(56px, 10vw, 78px);
    letter-spacing: -0.04em;
    margin-top: 16px;
  }
  .hero-description {
    font-size: 16px;
    margin-top: 16px;
  }
  .hero .button {
    margin-top: 18px;
  }

  .hero-media {
    min-height: 0;
  }
  .hero-media video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  h2 {
    font-size: 34px;
    letter-spacing: -0.03em;
  }

  .services {
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .service-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 0;
  }
  .service-row p {
    grid-column: 1;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about h2 {
    font-size: 32px;
  }
  .about-copy {
    padding-top: 0;
    max-width: none;
  }
  .about-lead {
    font-size: 22px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact h2 {
    font-size: 40px;
    letter-spacing: -0.03em;
    margin-top: 14px;
  }
  .contact-intro {
    font-size: 15px;
    margin-top: 14px;
  }

  .brief-tool {
    padding: 20px;
  }
  .brief-tool input,
  .brief-tool select,
  .brief-tool textarea {
    font-size: 16px;
  }
  .brief-tool h3 {
    font-size: 22px;
  }
}
@media (max-width: 380px) {
  .hero h1 {
    font-size: 50px;
    letter-spacing: -0.04em;
  }
  .hero .eyebrow {
    font-size: 12px;
  }
  .desktop-break {
    display: none;
  }
  .button {
    font-size: 14px;
    gap: 18px;
  }

  .brief-tool {
    padding: 18px;
  }
  .about h2 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
*::before,
*::after {
    transition: none !important;
    animation: none !important;
  }
}

.hero-media {
  align-self: center;
}
.menu-toggle {
  min-height: 44px;
}
.work-section .section {
  padding-block: 40px;
}
.work-section .section-heading {
  margin-bottom: 24px;
}
.project-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-timeline li {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 32px auto 1fr auto;
  justify-items: center;
  text-align: center;
}
.project-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  right: calc(-50% - 24px);
  height: 1px;
  background: #b7c3bc;
}
.timeline-number {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
}
.project-timeline h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
}
.project-timeline p {
  max-width: 340px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.timeline-image {
  width: min(100%, 240px);
  height: 180px;
  margin-top: 16px;
  background: transparent;
}
.timeline-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (min-width: 801px) and (max-width: 1150px) {
  .project-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .project-timeline li:nth-child(3n)::before {
    display: none;
  }
}

@media (max-width: 1150px) and (min-width: 801px) {
  .hero h1 {
    font-size: clamp(44px, 5vw, 58px);
  }
  .hero-description .desktop-break {
    display: none;
  }
}
@media (max-width: 800px) {
  .hero h1 {
    font-size: clamp(40px, 11vw, 60px);
    letter-spacing: -0.04em;
  }
  .hero .button {
    width: 100%;
  }
  .hero .eyebrow {
    max-width: 330px;
  }
  .hero-description {
    font-size: 16px;
  }
  .work-section .section {
    padding-block: 32px;
  }
  .project-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .project-timeline li:not(:last-child)::before {
    right: calc(-50% - 16px);
  }
  .project-timeline li:nth-child(even)::before {
    display: none;
  }
  .project-timeline li:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }
  .project-timeline h3 {
    font-size: 18px;
  }
  .timeline-image {
    width: min(100%, 200px);
    height: 140px;
    margin-top: 12px;
  }

  .site-header nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero-description .desktop-break {
    display: none;
  }
}

.hero .eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hero .status-dot {
  flex-shrink: 0;
  margin: 0;
  align-self: flex-start;
  margin-top: 6px;
}

@media (max-width: 800px) {
  .about-lead { font-size: 20px; }
}
