/* Devinaries — petroleum slate + teal accent */
:root {
  --ink: #0f1c24;
  --ink-soft: #2a3d4a;
  --slate: #5a6f7c;
  --paper: #f3f6f8;
  --paper-deep: #e4ebf0;
  --teal: #1a8a8c;
  --teal-deep: #147073;
  --teal-glow: rgba(26, 138, 140, 0.18);
  --sea: #0d3d4a;
  --sea-mid: #164e5c;
  --line: rgba(15, 28, 36, 0.12);
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  --max: 68rem;
  --narrow: 40rem;
  --radius: 2px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header — dark over hero, light after scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 46, 56, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 248, 0.96);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-logo:hover {
  color: #7ec8c9;
}

.site-header.is-scrolled .site-logo {
  color: var(--ink);
}

.site-header.is-scrolled .site-logo:hover {
  color: var(--teal-deep);
}

.site-nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  color: rgba(243, 246, 248, 0.82);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

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

.site-header.is-scrolled .site-nav a {
  color: var(--ink-soft);
}

.site-header.is-scrolled .site-nav a:hover {
  color: var(--ink);
}

.site-header .btn--small {
  margin-left: auto;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .site-header .btn--small {
    margin-left: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  color: var(--white);
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(15, 28, 36, 0.28);
}

.btn--ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--ink);
  box-shadow: none;
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
}

/* Hero — full-bleed photo, brand-first, vertically centered */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
  color: var(--white);
  background: var(--sea);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
  animation: atmosphere-drift 22s ease-in-out infinite alternate;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 32, 40, 0.92) 0%, rgba(8, 32, 40, 0.78) 42%, rgba(13, 61, 74, 0.55) 100%),
    radial-gradient(ellipse 70% 55% at 90% 20%, rgba(26, 138, 140, 0.35), transparent 55%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 246, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 246, 248, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
  opacity: 0.55;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(243, 246, 248, 0.92);
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 38ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(228, 235, 240, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(243, 246, 248, 0.35);
}

.hero .btn--ghost:hover {
  color: var(--white);
  background: rgba(243, 246, 248, 0.1);
  border-color: rgba(243, 246, 248, 0.7);
}

/* Hero entrance */
.hero .brand,
.hero .hero__headline,
.hero .hero__lede,
.hero .hero__actions {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero .brand {
  animation-delay: 0.08s;
}

.hero .hero__headline {
  animation-delay: 0.22s;
}

.hero .hero__lede {
  animation-delay: 0.36s;
}

.hero .hero__actions {
  animation-delay: 0.48s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes atmosphere-drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.04) translate(-1.5%, 1%);
  }
}

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

  .hero__media img,
  .hero__atmosphere {
    animation: none;
  }

  .hero .brand,
  .hero .hero__headline,
  .hero .hero__lede,
  .hero .hero__actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}

/* Sections */
.section {
  padding: var(--space-2xl) clamp(1.25rem, 4vw, 2rem);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--narrow);
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section__lede {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 42ch;
}

.section--services {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.section--services .section__lede {
  margin-bottom: var(--space-lg);
  max-width: 48ch;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .service-list li {
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 2rem;
    align-items: baseline;
    padding: 1.75rem 0;
  }
}

.service-list h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-list p {
  margin: 0;
  color: var(--slate);
  font-size: 1rem;
}

.section--approach {
  background: var(--sea);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section--approach .section__media {
  position: absolute;
  inset: 0;
}

.section--approach .section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.section--approach::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(8, 32, 40, 0.92) 0%, rgba(13, 61, 74, 0.78) 55%, rgba(13, 61, 74, 0.65) 100%),
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(26, 138, 140, 0.28), transparent 55%);
  pointer-events: none;
}

.section--approach .section__inner {
  position: relative;
  z-index: 1;
}

.section--approach .section__eyebrow {
  color: #7ec8c9;
}

.section--approach h2 {
  color: var(--white);
}

.section--approach .section__lede {
  color: rgba(228, 235, 240, 0.82);
  max-width: 36ch;
  font-size: 1.125rem;
}

.section--contact {
  background: var(--paper);
}

.contact-mail {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-mail:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-list .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.service-list .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.service-list .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.service-list .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 2rem);
  background: var(--paper-deep);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate);
}

.site-footer a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--teal-deep);
}
