:root {
  --navy: #071524;
  --navy-2: #0f2235;
  --ink: #132033;
  --muted: #64748b;
  --gold: #c8a45d;
  --gold-light: #e3c47d;
  --paper: #f6f7f8;
  --white: #ffffff;
  --line: #dce3ea;
  --success: #2f7d4f;
  --shadow: 0 24px 70px rgba(7, 21, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  min-height: 78px;
  padding: 0 clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(7, 21, 36, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1460px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: block;
  width: 198px;
  flex: none;
}

.brand img {
  width: 100%;
  height: auto;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.header-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-content: center;
  overflow: hidden;
  color: var(--white);
  padding: 128px 0 42px;
  background:
    linear-gradient(90deg, rgba(7, 21, 36, 0.98) 0%, rgba(7, 21, 36, 0.88) 34%, rgba(7, 21, 36, 0.38) 72%, rgba(7, 21, 36, 0.06) 100%),
    url("hero-gotsan.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, var(--paper), rgba(246, 247, 248, 0));
  pointer-events: none;
}

.hero__content,
.hero__stats {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero__content {
  padding-top: 34px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(4.5rem, 9vw, 8.8rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 650;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
}

.button--gold {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 18px 40px rgba(200, 164, 93, 0.22);
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 86px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.hero__stats div {
  padding: 24px;
  background: rgba(7, 21, 36, 0.42);
}

.hero__stats strong {
  display: block;
  color: var(--gold-light);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.1;
}

.hero__stats span {
  display: block;
  max-width: 230px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-heading {
  max-width: 980px;
  margin-bottom: 38px;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading--center .section-kicker {
  justify-content: center;
}

.section-heading--center .section-kicker::after {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--gold);
}

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

.section-heading--dark p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.services {
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-tile {
  min-height: 246px;
  padding: 32px 20px 30px;
  text-align: center;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(200, 164, 93, 0.04), transparent 58%),
    var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.service-tile:last-child {
  border-right: 0;
}

.service-tile img {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
}

.service-tile h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-tile:hover {
  background:
    linear-gradient(180deg, rgba(200, 164, 93, 0.1), transparent 62%),
    var(--white);
  transform: translateY(-2px);
}

.experience {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 21, 36, 0.98), rgba(7, 21, 36, 0.86)),
    url("about-experience.jpg") center / cover no-repeat;
}

.experience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  margin-top: 12px;
}

.experience__copy > p:not(.section-kicker) {
  max-width: 700px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.service-area {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.92rem !important;
  margin-bottom: 0 !important;
}

.experience__image {
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 21, 36, 0.02), rgba(7, 21, 36, 0.28)),
    url("about-experience.jpg") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.16);
}

.proof-row div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.proof-row span {
  display: block;
  color: var(--gold-light);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.proof-row p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.portfolio {
  background: var(--paper);
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  background: var(--navy);
  border: 1px solid rgba(7, 21, 36, 0.08);
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 36, 0.02), rgba(7, 21, 36, 0.82));
  pointer-events: none;
}

.portfolio-card h3 {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin: 0;
  padding: 10px 13px 11px;
  color: var(--white);
  background: rgba(7, 21, 36, 0.86);
  border-left: 3px solid var(--gold);
  font-size: 0.82rem;
  line-height: 1.24;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.process {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  padding: 28px 22px;
  background: var(--white);
}

.process-step span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
}

.process-step h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  padding: clamp(58px, 7vw, 88px) 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 46%, rgba(255, 255, 255, 0.72) 100%),
    url("assets/images/contact-technical.jpg") right center / cover no-repeat;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.contact__details {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 18px;
  height: 100%;
  margin: 0;
  font-style: normal;
}

.contact__details div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(7, 21, 36, 0.08);
}

.contact__details span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact__details a,
.contact__details p {
  margin: 0;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border-left: 3px solid var(--gold);
  box-shadow: 0 14px 42px rgba(7, 21, 36, 0.08);
}

.contact-form__label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  padding: 0 14px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: Inter, sans-serif;
  background: var(--white);
}

.contact-form textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form button {
  height: 52px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  cursor: pointer;
}

.contact-form button:hover {
  filter: brightness(1.03);
}

.contact-form__note {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--success);
  background: rgba(47, 125, 79, 0.08);
  color: var(--success);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form__note--error {
  border-left-color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  color: #b3261e;
}

.contact-form__note--error a {
  text-decoration: underline;
}

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  gap: 20px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.site-footer__links a:last-child {
  color: var(--gold-light);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .main-nav {
    gap: 12px;
  }
}

@media (max-width: 980px) {
  .services__grid,
  .portfolio__grid,
  .process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tile {
    border-bottom: 1px solid var(--line);
  }

  .experience__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
  }

  .site-header__inner {
    min-height: 70px;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    color: var(--navy);
    background: var(--white);
    box-shadow: 0 22px 50px rgba(7, 21, 36, 0.16);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
  }

  .hero {
    min-height: 710px;
    background-position: 64% center;
  }

  .hero__stats,
  .proof-row {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    margin-top: 54px;
  }
}

@media (max-width: 540px) {
  .container,
  .hero__content,
  .hero__stats {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    width: 166px;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .hero__actions,
  .services__grid,
  .portfolio__grid,
  .process__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .service-tile {
    border-right: 0;
  }

  .experience__image {
    min-height: 310px;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}
