:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #66717f;
  --line: #dce3e7;
  --surface: #ffffff;
  --soft: #f2f7f7;
  --deep: #15394f;
  --teal: #0a8f96;
  --cyan: #4bb6c8;
  --gold: #d59d2a;
  --coral: #c95f45;
  --shadow: 0 22px 55px rgba(19, 47, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--surface);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: #ffffff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(24, 32, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  letter-spacing: 0;
}

.brand-name {
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: var(--deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 30, 43, 0.92), rgba(8, 30, 43, 0.62) 50%, rgba(8, 30, 43, 0.14)),
    linear-gradient(0deg, rgba(15, 39, 55, 0.7), rgba(15, 39, 55, 0) 48%);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.04);
}

.hero-content {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 156px clamp(20px, 5vw, 48px) 118px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 800;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(10, 143, 150, 0.28);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1120px, calc(100% - 40px));
  margin: -54px auto 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(24, 32, 42, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 108px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--deep);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.section-copy h2,
.section-heading h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.8vw, 52px);
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.contact p {
  color: var(--muted);
  font-size: 17px;
}

.section-copy p:not(.eyebrow) {
  margin: 24px 0 0;
}

.narrow {
  max-width: 780px;
}

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

.service-grid article {
  min-height: 226px;
  padding: 28px;
  background: var(--soft);
  border: 1px solid rgba(10, 143, 150, 0.12);
  border-radius: 8px;
}

.service-grid span {
  color: var(--coral);
  font-weight: 800;
}

.service-grid h3,
.timeline h3,
.case-card h3 {
  margin: 18px 0 10px;
  line-height: 1.25;
}

.service-grid p,
.timeline p,
.case-card span {
  margin: 0;
  color: var(--muted);
}

.compliance {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(242, 247, 247, 0.98), rgba(242, 247, 247, 0.88)),
    url("./assets/hull-detail-b.jpg") center / cover;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid rgba(24, 32, 42, 0.12);
}

.timeline article {
  min-height: 204px;
  padding: 28px 30px 0 0;
}

.timeline article + article {
  padding-left: 30px;
  border-left: 1px solid rgba(24, 32, 42, 0.12);
}

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

.workflow-grid article {
  position: relative;
  min-height: 230px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(19, 47, 63, 0.08);
}

.workflow-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 6px;
  font-weight: 800;
}

.workflow-grid h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.case-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--deep);
  box-shadow: 0 20px 44px rgba(24, 32, 42, 0.12);
}

.case-card.featured {
  grid-row: span 2;
}

.case-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  opacity: 0.94;
}

.case-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 26, 37, 0.78), rgba(10, 26, 37, 0.04) 58%);
  content: "";
}

.case-card div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 28px;
  color: #ffffff;
}

.case-card p {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.case-card h3 {
  margin-top: 8px;
  font-size: 28px;
}

.case-card span {
  color: rgba(255, 255, 255, 0.82);
}

.qualification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.qualification-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qualification-media img,
.doc-tile {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.qualification-media img {
  object-fit: cover;
}

.doc-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(21, 57, 79, 0.92), rgba(10, 143, 150, 0.8)),
    url("./assets/hull-detail-c.jpg") center / cover;
}

.doc-tile span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.doc-tile strong {
  display: block;
  margin-top: 16px;
  font-size: 28px;
  line-height: 1.2;
}

.doc-tile p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.doc-tile.wide {
  aspect-ratio: auto;
  min-height: 430px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--teal);
  content: "";
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.7fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  color: #ffffff;
  background: linear-gradient(135deg, var(--deep), #0f5e64 64%, #7c6b2d);
}

.contact h2 {
  max-width: 680px;
  font-size: clamp(30px, 5vw, 56px);
}

.contact p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: 30px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 28px 62px rgba(4, 25, 35, 0.22);
}

.contact-panel h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.contact-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-panel li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.contact-panel li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 999px;
  content: "";
}

.contact-panel p {
  margin: 6px 0 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: #0c2230;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid rgba(24, 32, 42, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .metrics,
  .split,
  .timeline,
  .workflow-grid,
  .case-grid,
  .qualification,
  .contact {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article,
  .timeline article + article {
    min-height: auto;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(24, 32, 42, 0.12);
  }

  .case-card.featured {
    grid-row: auto;
  }

  .contact {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 68px;
    padding-inline: 14px;
  }

  .brand-name {
    max-width: 188px;
    white-space: normal;
    font-size: 13px;
    line-height: 1.25;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(15, 39, 55, 0.9), rgba(15, 39, 55, 0.66)),
      linear-gradient(0deg, rgba(15, 39, 55, 0.74), rgba(15, 39, 55, 0) 52%);
  }

  .hero-content {
    padding: 118px 20px 72px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid,
  .qualification-media {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding-block: 68px;
  }

  .section-copy h2,
  .section-heading h2,
  .contact h2 {
    font-size: 32px;
  }

  .case-card,
  .case-card img {
    min-height: 360px;
  }

  .contact-panel {
    padding: 22px;
  }

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