@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f7f9;
  --ink: #16202a;
  --muted: #55636f;
  --navy: #1f3a5f;
  --line: #c9d2da;
  --signal: #f2b705;
  --max: 72rem;
  --text: 40rem;
  --gap: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

a { color: var(--navy); text-underline-offset: 0.2em; }
a[href^="tel:"] { white-space: nowrap; }
a:focus-visible, .mail:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

/* header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  font-weight: 700; font-stretch: 112%; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
}
.top nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 46rem) { .top nav .hide-s { display: none; } }

/* hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap); align-items: center;
}
@media (max-width: 52rem) { .hero .wrap { grid-template-columns: 1fr; } }

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  font-weight: 800;
  font-stretch: 82%;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: var(--navy);
}
.lede { font-size: 1.2rem; max-width: 34rem; margin: 0 0 2rem; color: var(--ink); }

.mail {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--signal); color: var(--ink);
  font-weight: 700; font-size: 1.05rem;
  padding: 0.95rem 1.4rem; border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(22, 32, 42, 0.12) inset;
}
.mail:hover { background: #ffc61a; }
.mail svg { width: 1.2rem; height: 1.2rem; flex: none; }
.direct { margin: 1rem 0 0; color: var(--muted); font-size: 0.98rem; }
.direct a { color: var(--ink); }

.drawing { width: 100%; height: auto; color: var(--navy); }
.drawing .thin { stroke-width: 1; }
.drawing text { font-family: "Archivo", Arial, sans-serif; font-size: 13px; fill: var(--muted); }

/* sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15;
  font-weight: 750; font-stretch: 90%; color: var(--navy);
  margin: 0 0 0.75rem;
}
.intro { max-width: var(--text); color: var(--muted); margin: 0 0 2.25rem; }

/* services: rows, not cards */
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 8rem;
  gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.services p { margin: 0 0 0.5rem; max-width: 38rem; }
.services .need { color: var(--muted); font-size: 0.95rem; margin: 0; }
.services .price { font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
@media (max-width: 46rem) {
  .services li { grid-template-columns: 1fr; gap: 0.5rem; }
  .services .price { text-align: left; }
}

.capabilities {
  margin-top: 2.5rem; display: grid; gap: 0.4rem 2rem;
  grid-template-columns: 9rem minmax(0, 1fr); max-width: 52rem; font-size: 0.98rem;
}
.capabilities dt { font-weight: 700; }
.capabilities dd { margin: 0; color: var(--muted); }
@media (max-width: 36rem) { .capabilities { grid-template-columns: 1fr; } .capabilities dd { margin-bottom: 0.6rem; } }

/* process: a real sequence */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: s;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
}
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: block;
  font-size: 2.6rem; font-weight: 800; font-stretch: 75%; line-height: 1;
  color: var(--navy); margin-bottom: 0.5rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 52rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .steps { grid-template-columns: 1fr; } }

/* experience */
.exp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 52rem) { .exp { grid-template-columns: 1fr; } }
.exp p { max-width: var(--text); margin: 0 0 1rem; }
.cases { list-style: none; margin: 0; padding: 0; }
.cases li { padding: 1rem 0; border-top: 1px solid var(--line); }
.cases li:last-child { border-bottom: 1px solid var(--line); }
.cases strong { display: block; }
.cases span { color: var(--muted); font-size: 0.97rem; }

/* contact */
.contact { background: var(--navy); color: #fff; border-top: 0; }
.contact h2 { color: #fff; }
.contact p { max-width: var(--text); color: #d9e2ec; }
.contact .direct, .contact .direct a { color: #fff; }

/* footer */
footer { padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
footer p { margin: 0; }

/* simple text pages */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.3rem; margin-top: 2rem; }
.page p, .page li { max-width: var(--text); }

/* photos */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; }
.gallery .g-wide { grid-column: 1 / -1; }
.gallery img, .gallery video { display: block; width: 100%; height: auto; background: #e3e8ed; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery video { aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 46rem) { .gallery { grid-template-columns: 1fr; } }
.gallery:empty, .gallery-sec:has(.gallery:empty) { display: none; }
.portrait { margin: 0 0 1.5rem; max-width: 14rem; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .gallery video { animation: none; } }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; max-height: 34rem; object-fit: contain; background: #fff; border: 1px solid var(--line); }

.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--gap); align-items: center; margin-bottom: 1rem; }
.sec-head .drawing { max-width: 26rem; }
@media (max-width: 52rem) { .sec-head { grid-template-columns: 1fr; } .sec-head .drawing { max-width: 22rem; } }

/* rotated gallery image (rotate 90deg clockwise, still covering a 4:3 tile) */
.rot90 .rot-box { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e3e8ed; border: 1px solid var(--line); }
.gallery .rot90 .rot-box img { position: absolute; left: 50%; top: 50%; width: 75%; height: 133.334%; max-width: none; aspect-ratio: auto; border: 0; object-fit: contain; background: #fff; transform: translate(-50%, -50%) rotate(90deg); }

/* language switch */
.langs { display: inline-flex; gap: 0.6rem; margin-left: 0.5rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.langs a { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); }
.langs a.cur { color: var(--ink); font-weight: 700; text-decoration: none; }
@media (max-width: 30rem) { .langs { margin-left: 0; padding-left: 0.75rem; } .top nav { gap: 0.9rem; } }
