:root {
  --ink: #151b1b;
  --ink-soft: #56615d;
  --night: #090c0b;
  --green: #183b36;
  --sage: #d9e4dc;
  --copper: #c76844;
  --gold: #f0ad55;
  --coral: #e89972;
  --sky: #c9dae3;
  --paper: #fbf7ef;
  --cream: #fffdf8;
  --line: rgba(21, 27, 27, 0.13);
  --line-light: rgba(255, 255, 255, 0.22);
  --shadow: 0 26px 70px rgba(16, 37, 34, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  counter-reset: page-section;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 42px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.compact {
  background: rgba(9, 12, 11, 0.86);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(118px, 11vw, 164px);
  height: auto;
  filter: brightness(1.18) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.38));
}

.site-header:not(.is-scrolled):not(.compact) .brand img {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 0;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.compact .site-nav a:hover {
  background: rgba(33, 78, 70, 0.09);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.language-switch a {
  padding: 6px 8px;
  font-size: 0.78rem;
}

.language-switch a.active {
  background: var(--copper);
  color: #fff;
}

.site-header.is-scrolled .language-switch,
.site-header.compact .language-switch {
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 126px clamp(20px, 6vw, 72px) 58px;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 11, 0.18), rgba(9, 12, 11, 0.74)),
    radial-gradient(circle at 78% 78%, rgba(232, 153, 114, 0.55), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(201, 218, 227, 0.42), transparent 28%),
    linear-gradient(95deg, rgba(9, 12, 11, 0.96) 0%, rgba(15, 45, 45, 0.82) 48%, rgba(15, 45, 45, 0.28) 100%),
    url("assets/hero-marina-projects.png") center / cover;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 44px);
  color: rgba(255, 255, 255, 0.22);
  content: "01";
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 900;
  line-height: 0.8;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.42fr);
  gap: clamp(32px, 7vw, 92px);
  width: min(var(--max), 100%);
  min-height: calc(100vh - 184px);
  margin: 0 auto;
  align-items: center;
}

.hero-copy-block {
  padding-bottom: clamp(8px, 2vw, 24px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p,
dt,
dd {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 14ch;
  font-size: clamp(3.3rem, 7.2vw, 7rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.2rem, 5.2vw, 6rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  font-weight: 780;
  text-decoration: none;
}

.button.primary {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff;
}

.button.secondary {
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-panel {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(9, 12, 11, 0.28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.hero-panel p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  font-weight: 720;
}

.hero-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.hero-panel div {
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}

.hero-panel dt {
  color: #fff;
  font-weight: 840;
}

.hero-panel dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.section,
.section-band {
  position: relative;
  padding: clamp(78px, 10vw, 142px) clamp(20px, 5vw, 56px);
}

.section-band {
  background: #0f1715;
  color: #fff;
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid,
.contact-grid,
.split-grid,
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.intro p,
.contact p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.14rem;
}

.visual-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: #101414;
}

.visual-strip article {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  isolation: isolate;
}

.visual-strip img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.visual-strip article::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 45, 45, 0.04), rgba(15, 45, 45, 0.74));
  content: "";
}

.visual-strip article:hover img {
  transform: scale(1.06);
}

.visual-strip div {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  color: #fff;
}

.visual-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-strip p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 780;
  line-height: 1.18;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section:not(.muted):not(.split):not(.project-fields) {
  background: var(--night);
  color: #fff;
}

.section:not(.muted):not(.split):not(.project-fields) .section-heading h2 {
  color: #fff;
}

.section:not(.muted):not(.split):not(.project-fields) .section-heading::before {
  color: var(--gold);
}

.section .section-heading,
.section-band .section-inner > div:first-child,
.story-text {
  counter-increment: page-section;
}

.section-heading::before,
.story-text::before {
  display: block;
  margin-bottom: 18px;
  color: var(--copper);
  content: "0" counter(page-section);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-heading.wide {
  max-width: 980px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card:hover {
  border-color: rgba(199, 104, 68, 0.38);
  box-shadow: 0 18px 46px rgba(16, 37, 34, 0.1);
  transform: translateY(-3px);
}

.service-card.featured {
  background: #0f1715;
  color: #fff;
}

.service-card.featured h3 {
  color: #fff;
}

.service-card span,
.steps strong {
  color: var(--copper);
  font-weight: 860;
}

.service-card.featured span,
.service-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.service-card h3 {
  margin-top: 58px;
  color: var(--ink);
}

.service-card p {
  color: var(--ink-soft);
}

.steps p,
.legal p,
.situation-list p {
  color: var(--ink-soft);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.story {
  background: #0f1715;
  color: #fff;
}

.project-fields {
  background: #f2ede2;
}

.motion-gallery {
  overflow: hidden;
  padding: 24px 0;
  background: #090c0b;
}

.motion-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: galleryMove 34s linear infinite;
}

.motion-track img {
  width: clamp(280px, 38vw, 560px);
  height: clamp(210px, 26vw, 390px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.motion-gallery:hover .motion-track {
  animation-play-state: paused;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-grid article {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.95), rgba(220, 231, 223, 0.58)),
    var(--cream);
}

.project-grid h3 {
  margin-bottom: 72px;
}

.project-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.story .eyebrow {
  color: var(--gold);
}

.story-text {
  max-width: 680px;
}

.situation-list {
  display: grid;
  gap: 12px;
}

.situation-list p {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.muted {
  background: #d9e4dc;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 24px 22px;
  border-top: 2px solid rgba(199, 104, 68, 0.72);
  background: rgba(255, 253, 248, 0.62);
}

.split {
  padding-bottom: clamp(78px, 10vw, 142px);
  background: var(--paper);
  color: var(--ink);
}

.image-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(240, 173, 85, 0.85), transparent 20%),
    radial-gradient(circle at 84% 72%, rgba(201, 218, 227, 0.8), transparent 28%),
    linear-gradient(148deg, rgba(15, 45, 45, 0.52), rgba(199, 104, 68, 0.24)),
    url("assets/hero.svg") center / cover;
  box-shadow: var(--shadow);
}

.image-panel.team-photo {
  background:
    linear-gradient(180deg, rgba(15, 45, 45, 0.06), rgba(15, 45, 45, 0.36)),
    url("assets/jaco-team-marina.png") center / cover;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes galleryMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .motion-track,
  .visual-strip img {
    animation: none;
    transition: none;
  }
}

.image-panel::after {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.54);
  content: "";
}

.image-panel-text {
  position: absolute;
  left: 26px;
  bottom: 44px;
  display: grid;
  gap: 4px;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 840;
  line-height: 1.02;
}

.text-panel {
  max-width: 590px;
  color: var(--ink);
}

.text-panel h2 {
  color: var(--ink);
}

.text-panel p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.text-panel .eyebrow {
  color: var(--copper);
}

.note {
  padding-left: 16px;
  border-left: 3px solid var(--copper);
}

.contact-box {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line-light);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.contact-box a {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 840;
  text-decoration: none;
}

.contact-box span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 56px);
  background: #101414;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  width: min(var(--max), 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.legal-page {
  background: var(--paper);
}

.legal {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 138px 0 90px;
}

.legal h1 {
  max-width: none;
  color: var(--green);
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.legal p {
  margin: 24px 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    display: none;
    min-width: min(290px, calc(100vw - 36px));
    padding: 12px;
    border-radius: 0;
    background: rgba(9, 12, 11, 0.94);
    color: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .language-switch {
    justify-content: flex-start;
    margin: 6px 0 0;
    border-color: var(--line);
  }

  .legal-nav {
    position: static;
    display: flex;
    min-width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-inner,
  .intro-grid,
  .contact-grid,
  .split-grid,
  .story-grid,
  .service-grid,
  .project-grid,
  .steps,
  .visual-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 126px;
  }

  .hero-inner {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.05rem, 11vw, 4.35rem);
  }

  .hero-panel {
    max-width: 620px;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 44px;
  }

  .project-grid article {
    min-height: auto;
  }

  .project-grid h3 {
    margin-bottom: 34px;
  }

  .image-panel {
    min-height: 360px;
  }

  .visual-strip article {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand img {
    width: 104px;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .contact-box,
  .service-card {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
