:root {
  --midnight: #061823;
  --harbor: #0b3442;
  --deep-sea: #0d5666;
  --logo-blue: #70b0d0;
  --signal-red: #d04132;
  --logo-green: #6f9d79;
  --plum: #6b4a7a;
  --ink: #132528;
  --muted: #647276;
  --paper: #f4f0e7;
  --foam: #fbfaf6;
  --white: #ffffff;
  --line: rgba(19, 37, 40, 0.15);
  --sea-line: rgba(112, 176, 208, 0.25);
  --shadow: 0 24px 70px rgba(6, 24, 35, 0.23);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(112, 176, 208, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 176, 208, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.95);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img,
.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 900;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--signal-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

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

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .nav-cta,
.site-header.is-open .nav-cta {
  color: var(--white);
  border-color: var(--signal-red);
  background: var(--signal-red);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--midnight);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 24, 35, 0.92) 0%, rgba(6, 24, 35, 0.72) 46%, rgba(6, 24, 35, 0.2) 100%),
    linear-gradient(0deg, rgba(6, 24, 35, 0.96) 0%, rgba(6, 24, 35, 0) 34%);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("assets/photos/optimized/hero-boat-yard.jpg") center / cover;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 58px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--signal-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.statement h2,
.section-heading h2,
.facility h2,
.contact h2,
.company h2 {
  margin: 0;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 7vw, 88px);
  text-wrap: balance;
}

.hero-copy {
  max-width: 790px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
}

.hero-actions,
.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 2px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(6, 24, 35, 0.18);
}

.button.primary {
  background: var(--signal-red);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(820px, 100%);
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-proof div {
  padding: 20px 24px 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-proof strong {
  display: block;
  color: var(--logo-blue);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.hero-proof span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

section {
  padding: 104px clamp(20px, 5vw, 72px);
}

.section-band {
  background: var(--foam);
}

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

.statement-inner,
.section-heading {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.statement-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.statement h2,
.section-heading h2,
.facility h2,
.contact h2,
.company h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.statement p,
.section-heading p,
.facility p,
.contact p,
.company p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.reason-grid {
  width: min(1160px, 100%);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.reason-grid article,
.service-list article,
.work-grid article {
  min-height: 286px;
  padding: 32px;
  background: rgba(251, 250, 246, 0.95);
}

.reason-grid span,
.service-number,
.process-list span {
  color: var(--deep-sea);
  font-weight: 900;
}

.services {
  background:
    linear-gradient(180deg, rgba(10, 82, 100, 0.07), rgba(10, 82, 100, 0)),
    var(--paper);
}

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

.section-heading p {
  max-width: 760px;
  margin-top: 14px;
}

.service-list,
.work-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-list article {
  border-top: 4px solid transparent;
}

.service-list article:nth-child(1) {
  border-top-color: var(--signal-red);
}

.service-list article:nth-child(2) {
  border-top-color: var(--logo-blue);
}

.service-list article:nth-child(3) {
  border-top-color: var(--logo-green);
}

h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.reason-grid p,
.service-list p,
.work-grid p,
.process-list p,
.journal-card p {
  margin: 0;
  color: var(--muted);
}

.inline-cta {
  justify-content: space-between;
  width: min(1160px, 100%);
  margin: 28px auto 0;
  padding: 22px 24px;
  background: var(--midnight);
  color: var(--white);
}

.inline-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.facility {
  display: grid;
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.spec-list,
.company-list {
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}

.spec-list div,
.company-list div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--deep-sea);
  font-weight: 900;
}

dd {
  margin: 0;
}

.photo-stack {
  position: relative;
  min-height: 570px;
}

.photo-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--midnight);
  color: var(--white);
  box-shadow: var(--shadow);
}

.photo-card.large {
  inset: 0 9% auto 0;
}

.photo-card.small {
  right: 0;
  bottom: 0;
  width: 49%;
  border: 6px solid var(--paper);
}

.photo-card img {
  width: 100%;
  height: 398px;
  object-fit: cover;
}

.photo-card.small img {
  height: 238px;
}

.photo-card figcaption {
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0;
}

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

.process-list {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-list li {
  min-height: 250px;
  padding: 28px;
  background: var(--paper);
}

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

.work-image {
  height: 206px;
  margin: -32px -32px 24px;
  background-position: center;
  background-size: cover;
}

.image-lift {
  background-image: linear-gradient(rgba(6, 24, 35, 0.12), rgba(6, 24, 35, 0.12)), url("assets/photos/optimized/work-hull-sanding.jpg");
}

.image-repair {
  background-image: linear-gradient(rgba(6, 24, 35, 0.12), rgba(6, 24, 35, 0.12)), url("assets/photos/optimized/work-engine.jpg");
}

.image-sales {
  background-image: linear-gradient(rgba(6, 24, 35, 0.12), rgba(6, 24, 35, 0.12)), url("assets/photos/optimized/work-craft.jpg");
}

.journal-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.journal-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-radius: 2px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.journal-card span {
  font-weight: 900;
}

.journal-card.instagram {
  background:
    linear-gradient(135deg, rgba(107, 74, 122, 0.96), rgba(208, 65, 50, 0.88), rgba(112, 176, 208, 0.78)),
    var(--plum);
}

.journal-card.note {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 240, 231, 0.82)),
    var(--foam);
  border: 1px solid var(--line);
}

.journal-card.instagram p {
  color: rgba(255, 255, 255, 0.82);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(30px, 6vw, 86px);
  background:
    linear-gradient(135deg, rgba(112, 176, 208, 0.13), transparent 44%),
    var(--midnight);
  color: var(--white);
}

.contact-copy {
  max-width: 640px;
  justify-self: end;
}

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel {
  max-width: 680px;
}

.line-panel {
  display: grid;
  gap: 6px;
  min-height: 190px;
  align-content: center;
  padding: 30px;
  border-radius: 2px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 199, 85, 0.96), rgba(13, 86, 102, 0.9)),
    #06c755;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.line-panel span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.line-panel strong {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

.line-panel small {
  font-size: 14px;
  font-weight: 800;
}

.line-checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.line-checklist li {
  padding-left: 18px;
  border-left: 3px solid var(--logo-blue);
}

.company {
  background: var(--foam);
}

.company-inner {
  width: min(1000px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.privacy-page {
  padding-top: 150px;
  min-height: 76svh;
}

.privacy-page h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.16;
  font-weight: 900;
}

.privacy-copy {
  padding: 32px;
  background: rgba(251, 250, 246, 0.95);
  border: 1px solid var(--line);
}

.privacy-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.privacy-copy h2:not(:first-child) {
  margin-top: 28px;
}

.privacy-copy p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--midnight);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 800;
}

.mobile-line {
  display: none;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: rgba(251, 250, 246, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: grid;
  }

  .privacy-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    padding: 0;
    color: var(--ink);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .privacy-nav a {
    padding: 0 12px;
    border-bottom: 0;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 8px;
    color: var(--white);
    background: var(--signal-red);
    border-color: var(--signal-red);
  }

  .menu-button {
    position: relative;
    display: inline-grid;
    gap: 6px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: 2px;
    color: inherit;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .hero {
    min-height: 94svh;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(6, 24, 35, 0.54) 0%, rgba(6, 24, 35, 0.95) 67%),
      linear-gradient(0deg, rgba(6, 24, 35, 0.96) 0%, rgba(6, 24, 35, 0) 34%);
  }

  .statement-inner,
  .facility,
  .contact,
  .company-inner,
  .reason-grid,
  .service-list,
  .work-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .reason-grid,
  .service-list,
  .work-grid,
  .process-list {
    gap: 12px;
    background: transparent;
    border: 0;
  }

  .reason-grid article,
  .service-list article,
  .work-grid article,
  .process-list li {
    min-height: auto;
    border: 1px solid var(--line);
  }

  .process-list li {
    background: var(--paper);
  }

  .photo-stack {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .photo-card,
  .photo-card.large,
  .photo-card.small {
    position: static;
    width: 100%;
  }

  .photo-card.small {
    border: 0;
  }

  .photo-card img,
  .photo-card.small img {
    height: 270px;
  }

  .contact-copy {
    justify-self: auto;
  }
}

@media (max-width: 700px) {
  h1,
  h2,
  h3,
  p,
  dd,
  a,
  strong {
    overflow-wrap: anywhere;
  }

  .site-header {
    padding: 13px 16px;
  }

  .brand span {
    font-size: 14px;
  }

  .brand img,
  .footer-logo img {
    width: 38px;
    height: 38px;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding: 128px 0 104px;
  }

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

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

  .hero-actions,
  .inline-cta {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .hero-proof div {
    display: grid;
    gap: 4px;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  section {
    padding: 74px 20px;
  }

  .statement h2,
  .section-heading h2,
  .facility h2,
  .contact h2,
  .company h2 {
    font-size: 30px;
  }

  .reason-grid article,
  .service-list article,
  .work-grid article,
  .process-list li,
  .journal-card {
    padding: 24px;
  }

  .work-image {
    margin: -24px -24px 22px;
  }

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

  .line-panel {
    padding: 24px;
  }

  .line-panel strong {
    font-size: 28px;
  }

  .spec-list div,
  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-line {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 18;
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: #06c755;
    border-radius: 2px;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(6, 24, 35, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(78px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.is-line-visible .mobile-line {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-footer {
    padding-bottom: 86px;
  }

  .privacy-nav a:first-child {
    display: none;
  }

  .privacy-page {
    padding-top: 120px;
  }

  .privacy-copy {
    padding: 24px;
  }
}
