* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #05070c;
  --surface: #0b111b;
  --surface-soft: #111720;
  --surface-card: #10151d;
  --text: #f4f4f1;
  --muted: #b9bbb8;
  --muted-strong: #d4d4cf;
  --line: rgba(229, 229, 222, .16);
  --accent: #c8c8c2;
  --accent-strong: #f1f1eb;
  --accent-soft: rgba(200, 200, 194, .12);
  --cream: #eeeeea;
  --black: #05070c;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(200, 200, 194, .12), transparent 30rem),
    linear-gradient(180deg, #05070c 0%, #0a0d12 48%, #05070c 100%);
  color: var(--text);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(5, 7, 12, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: clamp(76px, 9vw, 108px);
  display: block;
  flex: 0 0 auto;
}

.brand img { display: block; }

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--black);
  background: var(--accent-strong);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-2px);
  outline: none;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 98px);
  padding: clamp(76px, 10vw, 140px) clamp(18px, 4vw, 64px) clamp(58px, 8vw, 100px);
  overflow: hidden;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 1050px;
  position: relative;
  z-index: 2;
}

.hero-mark {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: min(520px, 36vw);
  padding: clamp(22px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(145deg, rgba(230, 230, 222, .10), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .025);
  box-shadow: var(--shadow);
  opacity: .9;
}

.eyebrow,
.section-number,
article span,
.timeline-row span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  max-width: 1040px;
  margin-top: 22px;
  font-size: clamp(46px, 8.8vw, 128px);
  line-height: .92;
  letter-spacing: -.058em;
  text-transform: uppercase;
}

.hero p:last-child {
  max-width: 760px;
  margin-top: 30px;
  color: var(--muted-strong);
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.45;
}

.section {
  padding: clamp(64px, 9vw, 124px) clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.section-heading { margin-bottom: clamp(34px, 5vw, 56px); }

.section h2 {
  max-width: 980px;
  font-size: clamp(34px, 5.5vw, 88px);
  line-height: .98;
  letter-spacing: -.048em;
  text-transform: uppercase;
}

.section-text { max-width: 820px; }

.section-text p,
.feature p,
.list-row p,
article p {
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  letter-spacing: -.01em;
}

.section-text p + p { margin-top: 18px; }

.cards,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

article {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  background:
    linear-gradient(145deg, rgba(220, 220, 212, .10), transparent 42%),
    linear-gradient(180deg, #11161e, #080c13);
  border: 1px solid var(--line);
  border-radius: clamp(22px, 3vw, 34px);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

article:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 230, 222, .55);
}

.large-cards article { min-height: 400px; }

article h3 {
  margin-top: auto;
  margin-bottom: 0;
  font-size: clamp(27px, 2.8vw, 44px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.feature {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 82% 20%, rgba(170, 170, 164, .24), transparent 24rem),
    var(--cream);
  color: var(--black);
}

.feature .section-number { color: #5f625d; }

.feature p {
  max-width: 860px;
  margin-top: 26px;
  color: #30332f;
}

.intro-list { display: block; }

.list-row,
.timeline-row {
  display: grid;
  grid-template-columns: 120px minmax(230px, .9fr) minmax(260px, 1.1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(24px, 3.2vw, 36px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.list-row:last-child,
.timeline-row:last-child { border-bottom: 1px solid var(--line); }

.list-row h3 {
  font-size: clamp(27px, 3.2vw, 50px);
  line-height: 1.03;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.dark-panel {
  background:
    radial-gradient(circle at 14% 18%, rgba(190,190,184,.17), transparent 30rem),
    #07111e;
}

.timeline .section-heading { margin-bottom: 34px; }

.timeline-row { grid-template-columns: 160px minmax(0, 1fr); }

.timeline-row p {
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.18;
  letter-spacing: -.03em;
  color: var(--text);
}

.mail-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 34px;
  color: var(--accent-strong);
  font-size: clamp(24px, 4.7vw, 70px);
  line-height: 1.03;
  text-decoration: none;
  letter-spacing: -.046em;
  overflow-wrap: anywhere;
}

.mail-link:hover { color: var(--cream); }

.form-block {
  background: var(--cream);
  color: var(--black);
}

.form-block form {
  margin-top: 42px;
  display: grid;
  gap: 16px;
  max-width: 760px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(5,7,12,.18);
  background: #fff;
  color: #05070c;
  padding: 18px 20px;
  font: inherit;
  border-radius: 18px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #7b7d77;
  box-shadow: 0 0 0 4px rgba(123, 125, 119, .14);
}

textarea { min-height: 170px; resize: vertical; }

button {
  justify-self: start;
  border: 0;
  background: var(--black);
  color: var(--cream);
  padding: 16px 28px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}

button:hover,
button:focus-visible {
  background: #5f625d;
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 64px);
  color: #9ea09b;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .cards,
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav { justify-content: flex-start; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: clamp(54px, 12vw, 86px);
  }

  .hero-copy,
  .hero-mark { grid-column: 1; }

  .hero-mark {
    grid-row: 1;
    width: min(420px, 88vw);
    justify-self: start;
    opacity: .18;
    transform: translateY(-4%);
  }

  .hero-copy { grid-row: 1; }

  .split,
  .list-row,
  .timeline-row { grid-template-columns: 1fr; }

  .section h2,
  .hero h1,
  .mail-link { letter-spacing: -.036em; }

  .site-footer { flex-direction: column; }
}

@media (max-width: 620px) {
  .site-header { position: static; }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav a {
    text-align: center;
    font-size: 11px;
    padding: 10px 8px;
    border-color: var(--line);
  }

  .cards,
  .contact-grid { grid-template-columns: 1fr; }

  article,
  .large-cards article { min-height: 240px; }

  .hero { padding-bottom: 52px; }
}

/* Layout refinements: avoid text collisions and improve readability */
.section-title,
.section-text,
.hero-copy,
article,
.list-row > *,
.timeline-row > * {
  min-width: 0;
}

.split {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.section h2,
.hero h1,
article h3,
.list-row h3,
.timeline-row p {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section h2 {
  font-size: clamp(32px, 4.8vw, 76px);
  line-height: 1.04;
}

.section-text p,
.feature p,
.list-row p,
article p {
  line-height: 1.78;
}

/* New navigation hover: subtle grey treatment without high-contrast collision */
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-strong);
  background: rgba(200, 200, 194, .10);
  border-color: rgba(200, 200, 194, .32);
  transform: none;
  outline: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  opacity: .7;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Home hero centered */
.page-home .hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  text-align: center;
}

.page-home .hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 1120px;
  margin-inline: auto;
}

.page-home .hero h1,
.page-home .hero p:last-child {
  margin-left: auto;
  margin-right: auto;
}

.page-home .hero-mark {
  position: absolute;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  width: min(440px, 34vw);
  opacity: .10;
  z-index: 1;
}

/* Contact and large text collision fixes */
.mail-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(22px, 3.35vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
  word-break: break-word;
}

.page-contact .section-title h2 {
  max-width: 9.5ch;
}

.page-contact .section-text {
  max-width: 760px;
}

@media (max-width: 1100px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-contact .section-title h2 {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .page-home .hero-mark {
    width: min(360px, 78vw);
    opacity: .10;
    justify-self: center;
  }

  .mail-link {
    font-size: clamp(22px, 8vw, 42px);
  }
}

@media (max-width: 620px) {
  .section h2 {
    font-size: clamp(31px, 11vw, 52px);
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 82px);
  }
}


@media (max-width:768px){
  .nav-menu,.menu,.navbar-menu,nav ul{
    flex-direction:column!important;
    width:100%!important;
    gap:1rem!important;
  }
  nav{
    padding:0.75rem 1rem!important;
  }
  h1{
    word-break:break-word;
  }
}
