:root {
  --ink: #101828;
  --muted: #5f6f86;
  --line: #dbe3ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #16a34a;
  --amber: #d97706;
  --nav: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: var(--nav);
  border-bottom: 1px solid rgba(219, 227, 238, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.site-nav a {
  padding: 10px 13px;
  border-radius: var(--radius);
  color: #253349;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: #edf4ff;
  color: var(--blue);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  min-height: 88vh;
  align-items: end;
  padding: 132px clamp(22px, 6vw, 84px) 76px;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(6, 18, 39, 0.98), rgba(12, 31, 58, 0.95) 52%, rgba(17, 61, 70, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 78px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 78px),
    #08111f;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 248, 251, 0), var(--soft));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 54%, rgba(37, 99, 235, 0.18) 54% 65%, transparent 65%),
    linear-gradient(27deg, transparent 0 68%, rgba(20, 184, 166, 0.18) 68% 78%, transparent 78%),
    linear-gradient(90deg, rgba(8, 17, 31, 0.78), rgba(8, 17, 31, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  color: #fff;
}

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

.hero .eyebrow {
  color: #a7f3d0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.button.primary:hover {
  background: #1d4ed8;
}

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

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.trust-band {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-band div {
  min-height: 110px;
  padding: 24px;
  background: #fff;
}

.trust-band strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 20px;
}

.trust-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.case-content h2,
.contact-section h2 {
  margin-bottom: 14px;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

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

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

.service-card,
.portfolio-card,
.process-step,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.service-card {
  min-height: 290px;
  padding: 24px;
}

.service-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #e7f7f5;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.service-card:nth-child(2) .service-icon,
.service-card:nth-child(5) .service-icon {
  background: #ecf2ff;
  color: var(--blue);
}

.service-card:nth-child(3) .service-icon,
.service-card:nth-child(6) .service-icon {
  background: #fff4df;
  color: var(--amber);
}

.service-card:nth-child(4) .service-icon {
  background: #ecfdf3;
  color: var(--green);
}

.service-card h3,
.portfolio-card h3,
.process-step h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.service-card p,
.portfolio-card p,
.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-section {
  width: min(1220px, calc(100% - 36px));
}

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

.portfolio-card {
  overflow: hidden;
}

.portfolio-card.large {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  min-height: 430px;
}

.portfolio-image {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #edf2f7;
}

.portfolio-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.portfolio-card.large .portfolio-image {
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.portfolio-card.large .portfolio-image img {
  height: 100%;
  min-height: 430px;
}

.portfolio-body {
  padding: 24px;
}

.portfolio-card.large .portfolio-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f7f5;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.portfolio-body ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.site-preview {
  display: grid;
  min-height: 250px;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 40, 0.85), rgba(16, 24, 40, 0.52)),
    linear-gradient(135deg, #0f766e, #2563eb);
}

.site-preview span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.site-preview strong {
  max-width: 360px;
  font-size: 32px;
  line-height: 1.05;
}

.site-preview small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.resort-preview {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.82), rgba(15, 118, 110, 0.62)),
    linear-gradient(135deg, #14532d, #0f766e 55%, #38bdf8);
}

.machinery-preview {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.86), rgba(217, 119, 6, 0.58)),
    linear-gradient(135deg, #1f2937, #d97706 55%, #2563eb);
}

.portfolio-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.portfolio-link:hover {
  text-decoration: underline;
}

.case-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  width: min(1120px, calc(100% - 36px));
  margin: 92px auto 0;
  padding: 46px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(13, 35, 61, 0.94)),
    #0b1220;
  color: #fff;
  box-shadow: var(--shadow);
}

.case-content .eyebrow {
  color: #a7f3d0;
}

.case-content p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.case-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.case-points div,
.case-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.case-points div {
  padding: 20px;
}

.case-points strong,
.panel-stat strong {
  display: block;
  margin-bottom: 6px;
}

.case-points span,
.panel-stat p {
  color: rgba(255, 255, 255, 0.72);
}

.case-panel {
  display: grid;
  gap: 10px;
  align-self: stretch;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.panel-stat {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.panel-stat span {
  display: block;
  margin-bottom: 16px;
  color: #a7f3d0;
  font-weight: 900;
}

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

.process-step {
  min-height: 220px;
  padding: 24px;
}

.process-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 42px;
  width: min(1120px, calc(100% - 36px));
  margin: 92px auto 0;
  padding: 54px 0 76px;
}

.contact-card {
  padding: 24px;
}

.contact-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.contact-card .button {
  width: 100%;
}

.direct-email {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.direct-email a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

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

  .site-nav {
    position: absolute;
    top: 73px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    width: 100%;
  }

  .trust-band,
  .service-grid,
  .portfolio-grid,
  .case-section,
  .case-points,
  .process-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portfolio-card.large {
    display: block;
    grid-row: auto;
    grid-column: auto;
  }

  .portfolio-card.large .portfolio-image {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-section {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .brand span {
    max-width: 220px;
  }

  .hero {
    min-height: 86vh;
    padding: 116px 20px 58px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .trust-band {
    width: calc(100% - 24px);
  }

  .section,
  .portfolio-section,
  .case-section,
  .contact-section {
    width: calc(100% - 24px);
  }

  .section {
    padding-top: 70px;
  }

  .portfolio-image img,
  .portfolio-card.large .portfolio-image img {
    height: 250px;
  }
}
