:root {
  --navy: #080c16;
  --navy-2: #0c1220;
  --ink: #12182b;
  --panel: #161b2e;
  --royal: #1e4aa8;
  --magenta: #b01868;
  --gold: #c9a24a;
  --gold-bright: #e4c56a;
  --gold-deep: #8d6f2a;
  --cream: #f3ead6;
  --cream-dim: #cfc4ad;
  --line: rgba(201, 162, 74, 0.28);
  --serif: "Cinzel", "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  position: relative;
}

.shell {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

h1, h2, h3, p {
  overflow-wrap: break-word;
}

.about-copy,
.about-card,
.machine,
.machine-body,
.service-card,
.lead-card,
.contact-details,
.wa-form,
.contact-aside,
.map-wrap {
  min-width: 0;
}

input,
textarea {
  max-width: 100%;
  min-width: 0;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  max-width: 100%;
  min-width: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.gold-rule {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin: 22px 0;
}

.section {
  padding: 120px 0;
  position: relative;
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0;
}

.section-intro {
  color: var(--cream-dim);
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px max(32px, env(safe-area-inset-right, 0px)) 18px max(32px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--cream);
  font-family: var(--serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  min-width: 0;
}

.nav-links a {
  color: var(--cream-dim);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-bright) !important;
}

.nav-toggle {
  display: none;
  flex: 0 0 42px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
  z-index: 40;
  border-radius: 50%;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--cream);
}

.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { bottom: 15px; }

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  contain: paint;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(30, 74, 168, 0.28), transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(176, 24, 104, 0.32), transparent 42%),
    linear-gradient(165deg, #0a1020 0%, #140c22 50%, #080c16 100%);
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.hero-orb-a {
  width: 280px;
  height: 280px;
  background: #1e4aa8;
  left: -40px;
  bottom: 10%;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.hero-orb-b {
  width: 320px;
  height: 320px;
  background: #b01868;
  right: -60px;
  top: 18%;
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes orb-drift {
  to { transform: translate(24px, -18px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-seal-wrap {
  width: min(248px, 48vw);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  padding: 16px;
  border-radius: 50%;
  background: #0a1020;
  box-shadow:
    0 0 0 1px rgba(201, 162, 74, 0.55),
    0 24px 80px rgba(0, 0, 0, 0.45);
  animation: seal-in 1.1s ease both, seal-float 6s ease-in-out 1.1s infinite;
}

.hero-seal {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes seal-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes seal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  margin: 0;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  font-size: 0.38em;
  letter-spacing: 0.42em;
  margin-top: 10px;
  color: var(--gold-bright);
}

.tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-bright);
  margin: 8px 0 0;
}

.hero-inner .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.scroll-hint span {
  display: block;
  width: 3px;
  height: 8px;
  margin: 8px auto 0;
  background: var(--gold);
  border-radius: 2px;
  animation: drip 1.6s infinite;
}

@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
  background: #0a0f1c;
  overflow: hidden;
}

.strip p {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* About */
.about {
  background: linear-gradient(180deg, var(--navy) 0%, #0e1322 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.lede {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--cream);
  margin-top: 0;
}

.about-copy p {
  color: var(--cream-dim);
}

.about-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(201, 162, 74, 0.06), transparent);
}

.about-card dl {
  margin: 0;
}

.about-card dt {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.about-card dd {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: 1.2rem;
}

.about-card div:last-child dd {
  margin-bottom: 0;
}

/* Services */
.services {
  background: #0b101c;
}

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

.service-card {
  border: 1px solid var(--line);
  padding: 28px 22px 32px;
  min-height: 260px;
  background: rgba(18, 24, 43, 0.5);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.svc-no {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* Machinery */
.machinery {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(176, 24, 104, 0.12), transparent 40%),
    var(--navy-2);
}

.machine-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.machine {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 28px;
  border: 1px solid var(--line);
  padding: 32px 36px;
  background: rgba(8, 12, 22, 0.55);
}

.machine-index {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.machine-index svg {
  width: 48px;
  height: 48px;
  color: var(--gold-bright);
}

.machine-make {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.machine h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

.machine-body p {
  color: var(--cream-dim);
  max-width: 72ch;
}

.machine ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.machine li {
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Leadership */
.leadership {
  background: linear-gradient(180deg, #0d1220, #120c1c);
}

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

.lead-card {
  border: 1px solid var(--line);
  padding: 24px 20px 32px;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(30, 74, 168, 0.12), transparent 40%),
    linear-gradient(320deg, rgba(176, 24, 104, 0.1), transparent 35%);
}

.portrait {
  position: relative;
  width: 100%;
  max-height: none;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  background: #12101a;
  overflow: hidden;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

.portrait-initials {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}

.portrait-wait {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.lead-meta {
  font-size: 0.88rem;
  color: var(--cream-dim);
  margin: 0 0 8px;
}

.lead-role {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-family: var(--display);
  letter-spacing: 0.02em;
}

.lead-note {
  color: var(--cream-dim);
  max-width: 42ch;
}

.lead-phone {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.lead-wa {
  display: inline-block;
  margin-left: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

/* Contact */
.contact {
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
}

.contact-block {
  margin-bottom: 28px;
}

.contact-block h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-block p {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.enquire-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.enquire-form label {
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.enquire-form input,
.enquire-form textarea {
  background: #101628;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 12px 14px;
  font: 400 1rem var(--sans);
  text-transform: none;
  letter-spacing: 0;
}

.enquire-form input:focus,
.enquire-form textarea:focus {
  outline: 1px solid var(--gold);
}

.form-note {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.85rem;
}

.map-wrap {
  min-height: 460px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.map-wrap iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.footer-tag {
  margin: 2px 0 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
}

.footer-copy {
  margin-left: auto;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .about-grid,
  .service-grid,
  .lead-grid,
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 108px 20px 72px;
    min-height: 100svh;
  }

  .hero-seal-wrap {
    width: min(196px, 52vw);
    padding: 14px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .hero h1 span {
    letter-spacing: 0.22em;
  }

  .eyebrow {
    letter-spacing: 0.16em;
  }

  .strip {
    letter-spacing: 0.08em;
    font-size: 0.6rem;
    padding: 16px 12px;
  }

  .lead-role,
  .form-kicker,
  .portrait-wait {
    letter-spacing: 0.14em;
  }

  .hero-lead {
    font-size: 0.98rem;
    padding: 0 4px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .nav {
    padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    transform: none;
    background: rgba(8, 12, 22, 0.96);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    display: none;
    z-index: 35;
  }

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

  .machine {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .footer-copy {
    margin-left: 0;
    width: 100%;
  }

  .section {
    padding: 88px 0;
  }

  .page-hero {
    padding: 120px 20px 48px;
  }

  .page-hero h1 {
    font-size: 1.7rem;
    letter-spacing: 0.08em;
  }

  .wa-form,
  .contact-aside {
    padding: 24px 18px;
  }

  .hero-orb {
    display: none;
  }
}

/* Contact page */
.page-hero {
  position: relative;
  overflow: hidden;
  contain: paint;
  padding: 148px 24px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(30, 74, 168, 0.26), transparent 45%),
    radial-gradient(ellipse at 88% 10%, rgba(176, 24, 104, 0.3), transparent 42%),
    linear-gradient(165deg, #0a1020 0%, #140c22 55%, #080c16 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-seal {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  padding: 8px;
  object-fit: contain;
  background: #0a1020;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
  animation: seal-in 1s ease both;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0;
  text-transform: uppercase;
}

.page-hero .tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

.contact-page {
  padding-top: 72px;
  background: var(--navy);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 961px) {
  .contact-page-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }
}

.wa-form,
.contact-aside {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(201, 162, 74, 0.05), transparent);
}

.wa-form {
  display: grid;
  gap: 16px;
}

.form-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.wa-form label {
  display: grid;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.wa-form input,
.wa-form textarea {
  width: 100%;
  min-height: 48px;
  background: #101628;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 14px 14px;
  font: 400 1rem var(--sans);
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.wa-form input:focus,
.wa-form textarea:focus {
  outline: 1px solid var(--gold);
}

.aside-hint {
  margin-top: 6px !important;
  font-size: 1.05rem !important;
  color: var(--cream-dim);
}

.map-compact {
  min-height: 240px;
  margin-top: 8px;
}

.map-compact iframe {
  min-height: 240px;
}

/* Motion */
.rise-1, .rise-2, .rise-3, .rise-4, .rise-5, .rise-6, .rise-7 {
  animation: rise 0.9s ease both;
}

.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.2s; }
.rise-4 { animation-delay: 0.28s; }
.rise-5 { animation-delay: 0.36s; }
.rise-6 { animation-delay: 0.44s; }
.rise-7 { animation-delay: 0.52s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.service-card:nth-child(2).reveal { transition-delay: 0.08s; }
.service-card:nth-child(3).reveal { transition-delay: 0.16s; }
.service-card:nth-child(4).reveal { transition-delay: 0.24s; }
.lead-card:nth-child(2).reveal { transition-delay: 0.08s; }
.lead-card:nth-child(3).reveal { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
