:root {
  --ink: #101418;
  --steel: #1c242e;
  --paper: #f4f6f8;
  --accent: #00a8b8;
  --accent-deep: #007f8c;
  --mist: #d7dde5;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1a1a1a;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1;
  gap: 0.35rem;
}
.logo img { height: 52px; width: auto; }
.logo-sub {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .5rem .75rem;
}

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #101418;
  height: 8cm;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 8cm;
  object-fit: contain;
  object-position: center;
  margin: 0;
  vertical-align: top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16,20,24,.78), rgba(16,20,24,.25) 48%, rgba(16,20,24,.08)),
    linear-gradient(0deg, rgba(16,20,24,.65), transparent 55%);
}
.hero > .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(1120px, calc(100% - 2rem));
  max-width: 40rem;
  margin-inline: auto;
  padding: .4rem 0;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero .eyebrow {
  font-size: .7rem;
  letter-spacing: .22em;
  margin: 0 0 .35rem;
}
h1, h2, h3 {
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: .95;
  font-weight: 700;
}
.accent-line {
  width: 7rem;
  height: 4px;
  background: var(--accent);
  margin: 1.25rem 0;
}
.hero .accent-line {
  width: 4.5rem;
  height: 3px;
  margin: .45rem 0;
}
.lead { color: rgba(255,255,255,.82); font-size: 1.1rem; line-height: 1.6; }
.hero .lead { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.hero .actions { gap: .6rem; margin-top: .55rem; }
.hero .btn { padding: .55rem 1rem; font-size: .72rem; }
.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }

.section { padding: 4.5rem 0; }
.section-dark { background: var(--steel); color: #fff; }
.section-white { background: #fff; }
.section-accent { background: var(--accent); }
.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.services {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}
.card {
  background: #fff;
  border: 1px solid rgba(16,20,24,.1);
  padding: 1.4rem;
}
.card .num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  color: rgba(0,168,184,.7);
}
.card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin: 0 0 .9rem;
  display: block;
}
.page-feature-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin: 0 0 1.5rem;
  display: block;
}
.muted { color: rgba(16,20,24,.7); line-height: 1.6; }
.section-dark .muted { color: rgba(255,255,255,.7); }
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0;
}
.projects {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.project-card {
  background: #fff;
  border: 1px solid rgba(16,20,24,.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,168,184,.45);
}
.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--mist);
}
.project-card .body { padding: 1.1rem 1.2rem 1.4rem; }
.project-card .loc {
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.85);
  margin-top: auto;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 2rem 0;
  font-size: .9rem;
}
.footer-name { font-weight: 600; color: #fff; margin: 0 0 .35rem; }
.footer-meta { display: flex; gap: 1rem; align-items: center; color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-meta a, .site-footer a { color: inherit; text-decoration: none; }
.footer-meta a:hover, .site-footer a:hover { color: var(--accent); }
.sep { opacity: .35; margin: 0 .35rem; }

.form {
  background: #fff;
  border: 1px solid rgba(16,20,24,.1);
  padding: 1.75rem;
}
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  margin-top: .45rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(16,20,24,.15);
  background: var(--paper);
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.alert {
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.alert-error { background: #fff1f1; border-color: #f1b0b0; color: #8a1f1f; }
.alert-ok { background: #edfaf5; border-color: #9fd9c2; color: #176b4d; }
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-shell { min-height: 100vh; background: var(--paper); }
.admin-top {
  background: var(--steel);
  color: #fff;
  padding: 1.25rem 0;
}
.admin-top .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.admin-nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-nav a, .admin-nav button {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  padding: .45rem .8rem;
  font: inherit;
  cursor: pointer;
}
.admin-nav a.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.admin-content { padding: 2rem 0 3rem; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(16,20,24,.1);
}
th, td {
  text-align: left;
  padding: .85rem 1rem;
  border-top: 1px solid rgba(16,20,24,.08);
  font-size: .92rem;
}
th {
  background: rgba(215,221,229,.45);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(16,20,24,.1);
  padding: 2rem;
}

.legal h2 {
  margin: 2rem 0 .75rem;
  font-size: 1.35rem;
}
.legal p, .legal ul { line-height: 1.65; }
.legal ul { padding-left: 1.2rem; }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #141414;
  color: rgba(255,255,255,.9);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0;
}
.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-inner p {
  margin: 0;
  max-width: 48rem;
  font-size: .92rem;
  line-height: 1.5;
}
.cookie-inner a { color: var(--accent); }
.cookie-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 99;
  border: 1px solid rgba(16,20,24,.15);
  background: #141414;
  color: #fff;
  padding: .65rem 1rem;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.cookie-fab:hover { background: var(--steel); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #141414;
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
  }
  .main-nav.open { display: flex; }
  .logo img { height: 44px; }
  .logo-sub { font-size: 0.75rem; letter-spacing: 0.14em; }
}
