/* SyteNet Services */

:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e0;
  --ink: #0f1b21;
  --ink-2: #4a585f;
  --line: #d7d2c7;
  --teal: #12708f;
  --teal-deep: #0b5470;
  --teal-bright: #48b7d9;
  --night: #0c171c;
  --night-2: #13232a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 112px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 {
  margin: 0;
  font-weight: 750;
  font-stretch: 82%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); }

.eyebrow,
.section-num,
.area-label,
.contact-label,
.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-num {
  margin: 0 0 14px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Short rule after section numbers, echoing the network lines in the logo */
.section-num::after {
  content: "";
  width: 48px;
  height: 2px;
  background: currentColor;
}

.section-intro {
  margin: 14px 0 0;
  max-width: 34rem;
  color: var(--ink-2);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--teal);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-small { padding: 9px 16px; font-size: 0.9375rem; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.area :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--teal-bright); }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 242, 237, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 96px;
}

.brand img { width: 240px; height: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }

.nav a {
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s;
}

.nav a:hover { color: var(--teal); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--teal);
  opacity: 0.07;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.eyebrow { margin: 0 0 22px; color: var(--teal); }

h1 { font-size: clamp(2.75rem, 6.2vw, 5rem); }

.lede {
  margin: 24px 0 0;
  max-width: 33rem;
  font-size: 1.1875rem;
  color: var(--ink-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 27, 33, 0.45);
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 23, 28, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 550;
}

.dot { width: 7px; height: 7px; background: var(--teal-bright); }

/* Image crops: the source photos are 1800x600 collages with a caption
   bar along the bottom, so each .crop shows one 528px-tall slice.
   --x = left edge of the slice, --w = its width (source pixels). */

.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--w) / 528;
  background: var(--paper-2);
}

.crop img {
  position: absolute;
  top: 0;
  left: calc(var(--x) / var(--w) * -100%);
  width: calc(1800 / var(--w) * 100%);
  max-width: none;
}

/* Service area */

.area {
  background: var(--ink);
  color: #fff;
}

.area-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.area-label { color: var(--teal-bright); white-space: nowrap; }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 650;
  font-stretch: 90%;
  font-size: 1.125rem;
}

.area-list li { display: flex; align-items: center; gap: 12px; }

.area-list li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 20px;
  background: var(--teal-bright);
  transform: rotate(45deg);
}

/* Services & Equipment */

.offer { padding: clamp(72px, 9vw, 120px) 0; }

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
}

.spec-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.spec-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 550;
}

.spec-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--teal);
}

/* Work */

.work {
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
}

.work-head .section-intro { margin: 0; max-width: 24rem; }

.before-after { display: flex; gap: 12px; }

.ba-item,
.work-pair figure {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.tag-accent { background: var(--teal); color: #fff; }

.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.work-pair figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(12, 23, 28, 0.92), rgba(12, 23, 28, 0.6) 60%, transparent);
  color: #fff;
  font-weight: 700;
  font-stretch: 88%;
  font-size: 1.25rem;
}

/* Contact */

.contact {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(72, 183, 217, 0.16), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 48px;
  pointer-events: none;
}

.contact .wrap { position: relative; }
.contact .section-num { color: var(--teal-bright); }
.contact .section-intro { color: #a9b7bd; }

.contact-head { margin-bottom: 48px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

a.contact-card:hover {
  border-color: var(--teal-bright);
  background: #172b33;
  transform: translateY(-2px);
}

.contact-label { color: var(--teal-bright); }

.contact-value {
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-address { font-style: normal; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }

.contact-action {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.9375rem;
  color: #a9b7bd;
  transition: color 0.2s;
}

a.contact-card:hover .contact-action { color: #fff; }

/* Footer */

.site-footer {
  background: var(--night);
  color: #8697a0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.footer-inner p { margin: 0; }
.footer-inner a { padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.footer-inner a:hover { color: #fff; }

/* Responsive */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 640px; }
  .offer-grid { grid-template-columns: 1fr; }
}

/* Hide the text nav before it collides with the larger logo */
@media (max-width: 920px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 80px; gap: 16px; }
  .brand img { width: 196px; }
  .area-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .area-list { flex-direction: column; gap: 4px; }
  .area-list li + li::before { display: none; }
  .work-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .work-pair { grid-template-columns: 1fr; }
  .tag { top: 8px; left: 8px; padding: 5px 9px; font-size: 0.625rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .btn-small span { display: none; }
  .btn-small { padding: 12px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
