@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Harbour ferry green carries the brand; paper and ink are tinted toward it. */
  --green: oklch(0.43 0.085 160);
  --green-deep: oklch(0.34 0.07 162);
  --line: oklch(0.86 0.06 158);
  --on-green: oklch(0.95 0.025 150);
  --on-green-2: oklch(0.86 0.04 152);
  --paper: oklch(0.974 0.008 100);
  --paper-2: oklch(0.948 0.012 115);
  --ink: oklch(0.22 0.025 165);
  --ink-2: oklch(0.43 0.02 165);
  --rule: oklch(0.86 0.015 140);
  --night: oklch(0.205 0.03 165);
  --on-night: oklch(0.93 0.015 140);
  --on-night-2: oklch(0.76 0.025 150);
  --rule-night: oklch(0.36 0.03 160);
  --signal: oklch(0.64 0.19 33);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.9rem);
  --step-4: clamp(2.9rem, 1.5rem + 5.2vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.top :focus-visible, .hero :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--on-green); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-stretch: 105%; text-decoration: none; letter-spacing: 0.005em;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn--paper { background: var(--paper); color: var(--green-deep); }
.btn--paper:hover { background: oklch(0.99 0.012 95); transform: translateY(-1px); }
.btn--paper:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-weight: 600; text-decoration: none; color: var(--on-green);
}
.link-arrow::after {
  content: ""; width: 18px; height: 1.5px; background: currentColor;
  transition: width .3s var(--ease-out);
}
.link-arrow:hover::after { width: 30px; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  display: flex; flex-direction: column;
  font-weight: 760; font-stretch: 118%; font-size: 1.32rem; line-height: 1; letter-spacing: -0.01em;
}
.brand__sub {
  margin-top: 4px; font-weight: 500; font-stretch: 100%; font-size: 0.69rem; letter-spacing: 0.06em;
}

/* Header */
.top { background: var(--green); color: var(--on-green); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.top__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.top__nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--on-green-2);
  padding-block: 12px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: color .2s, background-size .3s var(--ease-out);
}
.top__nav a:not(.btn):hover { color: var(--on-green); background-size: 100% 1.5px; }
.top__nav .btn { min-height: 42px; padding: 0 18px; }
.top { position: relative; z-index: 5; }
.top__nav a[aria-current="page"]:not(.btn), .top__nav a.is-active { color: var(--on-green); background-size: 100% 1.5px; }
.top__nav .btn[aria-current="page"] { background: var(--on-green-2); }
.menu-btn {
  display: none; min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1px solid color-mix(in oklch, var(--on-green) 45%, transparent);
  background: transparent; color: var(--on-green); font: inherit; font-weight: 600; cursor: pointer;
}
@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .top__nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--green);
    border-bottom: 1px solid color-mix(in oklch, var(--line) 30%, transparent);
  }
  .js .top.is-open .top__nav { display: flex; }
  .js .top__nav a:not(.btn) { padding-block: 14px; font-size: 1.15rem; border-top: 1px solid color-mix(in oklch, var(--line) 18%, transparent); background: none; }
  .js .top__nav .btn { margin-top: 16px; min-height: 48px; }
  
}
@media (max-width: 760px) {
  html:not(.js) .top__row { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .top__nav { flex-wrap: wrap; }
}

/* Hero */
.hero {
  background: var(--green); color: var(--on-green);
  padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
}
.hero__title {
  font-size: var(--step-4); font-weight: 780; font-stretch: 112%;
  line-height: 0.94; letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead {
  margin-top: clamp(24px, 3vw, 36px); max-width: 34em;
  font-size: var(--step-1); line-height: 1.5; color: var(--on-green-2);
}
.hero__actions { margin-top: clamp(28px, 3.4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.hero__plan { margin: 0; position: relative; }
.hero__plan figcaption {
  margin-top: 10px; font-size: var(--step--1); font-stretch: 90%; color: var(--on-green-2);
}
.plan { display: block; width: 100%; height: auto; overflow: visible; }
.plan__gridfill { mask: radial-gradient(closest-side, #000 55%, transparent); -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); }
.plan__grid { stroke: var(--line); stroke-width: 0.6; opacity: .16; }
.plan__draw { fill: none; stroke: var(--line); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plan__faint { stroke-width: 1; opacity: .35; stroke-dasharray: 0.004 0.006; }
.plan__dash { stroke-width: 1.2; opacity: .6; stroke-dasharray: 0.01 0.008; }
.plan__main { stroke-width: 2.5; fill: oklch(0.47 0.09 160); }
.plan__mid { stroke-width: 1.6; opacity: .85; }
.plan__keep { fill: none; stroke: var(--line); stroke-width: 1.4; opacity: .9; }
.plan__pin { fill: var(--signal); }
.plan__north path { fill: var(--line); opacity: .9; }
.plan__north text { fill: var(--line); font: 600 18px "Archivo", sans-serif; }
.plan__scale path { stroke: var(--line); stroke-width: 1.4; fill: none; opacity: .8; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__plan { width: min(100%, 460px); margin-inline: auto; }
}

/* Section titles */
.section-title {
  font-size: var(--step-3); font-weight: 760; font-stretch: 110%; letter-spacing: -0.028em; line-height: 1;
}

/* Services */
.services { padding-block: clamp(72px, 10vw, 140px) clamp(56px, 8vw, 112px); }
.services .section-title { margin-bottom: clamp(36px, 5vw, 64px); max-width: 12em; }
.svc {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 4vw, 64px);
  padding-block: clamp(26px, 3.4vw, 42px);
  border-top: 1px solid var(--rule);
}
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc__name {
  font-size: var(--step-2); font-weight: 680; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.05;
}
.svc__body { max-width: 40em; }
.svc__body p + p { margin-top: 12px; }
.svc__tools { color: var(--ink-2); font-size: var(--step--1); font-stretch: 92%; }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; }
}

/* Approach */
.approach {
  background: var(--night); color: var(--on-night);
  padding-block: clamp(72px, 10vw, 140px);
  line-height: 1.62;
}
.approach .section-title { margin-bottom: clamp(36px, 5vw, 64px); }
.approach__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(36px, 5vw, 64px);
}
.rule-item { border-top: 1px solid var(--rule-night); padding-top: 22px; }
.rule-item h3 { font-size: var(--step-1); font-weight: 650; font-stretch: 106%; letter-spacing: -0.01em; line-height: 1.2; }
.rule-item p { margin-top: 12px; color: var(--on-night-2); max-width: 30em; }
.rule-item:nth-child(even) { margin-top: clamp(0px, 4vw, 48px); }
@media (max-width: 760px) {
  .approach__grid { grid-template-columns: 1fr; }
  .rule-item:nth-child(n) { margin-top: 0; }
}

/* Company record */
.company { background: var(--paper-2); padding-block: clamp(72px, 10vw, 140px); }
.company__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start;
}
.company__intro p { margin-top: 20px; max-width: 26em; color: var(--ink-2); }
.company__intro p:first-of-type { color: var(--ink); font-size: var(--step-1); line-height: 1.45; }
.company__verify a { color: var(--green-deep); text-underline-offset: 3px; }
.record { margin: 0; border-top: 2px solid var(--ink); }
.record > div {
  display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px 24px;
  padding-block: 16px; border-bottom: 1px solid var(--rule);
}
.record dt { color: var(--ink-2); font-size: 0.94rem; padding-top: 2px; }
.record dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.record .num { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.record a { color: var(--green-deep); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .company__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .record > div { grid-template-columns: 1fr; }
}

/* Contact */
.contact {
  background: var(--green); color: var(--on-green);
  padding-block: clamp(80px, 11vw, 160px);
}
.contact__title { font-size: var(--step-3); font-weight: 760; font-stretch: 110%; letter-spacing: -0.028em; max-width: 14em; }
.contact__lead { margin-top: 20px; max-width: 32em; color: var(--on-green-2); font-size: var(--step-1); line-height: 1.5; }
.contact__mail {
  display: inline-block; margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(1.35rem, 0.6rem + 4.6vw, 4.6rem); font-weight: 700; font-stretch: 100%;
  letter-spacing: -0.03em; line-height: 1.1; text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) 0 100% / 100% 3px no-repeat;
  padding-bottom: 6px;
  transition: background-size .4s var(--ease-out), color .2s;
}
.contact__mail:hover { color: oklch(0.99 0.01 95); background-size: 100% 6px; }

/* Inner pages */
.page-hero { background: var(--green); color: var(--on-green); padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 104px); overflow: hidden; }
.page-hero--short { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.page-title { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.4rem); font-weight: 780; font-stretch: 112%; letter-spacing: -0.035em; line-height: 0.98; }
.page-lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 36em; font-size: var(--step-1); line-height: 1.5; color: var(--on-green-2); }
.page-lead a { color: var(--on-green); text-underline-offset: 3px; }
.page-hero__mark { width: clamp(160px, 22vw, 300px); height: auto; aspect-ratio: 1; color: oklch(0.49 0.09 160); margin-right: clamp(-90px, -4vw, -20px); }
@media (max-width: 760px) { .page-hero__mark { display: none; } .page-hero__grid { grid-template-columns: 1fr; } }
.page-hero--contact .contact__mail { margin-top: clamp(28px, 4vw, 48px); }

.blocks { padding-block: clamp(64px, 9vw, 120px); }
.blocks--tint { background: var(--paper-2); }
.blocks > .wrap > .section-title { margin-bottom: clamp(32px, 4.5vw, 56px); max-width: 14em; }
.blocks + .blocks:not(.blocks--tint) { padding-top: 0; }
.block {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 3vw, 38px); border-top: 1px solid var(--rule);
}
.block:last-child { border-bottom: 1px solid var(--rule); }
.block__title { font-size: var(--step-2); font-weight: 680; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.08; }
@media (max-width: 760px) { .block { grid-template-columns: 1fr; } }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 14px; }
.prose ul { margin: 0; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; }
.prose li + li { margin-top: 10px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); }
.prose a { color: var(--green-deep); text-underline-offset: 3px; }
.prose address { line-height: 1.6; }

.doc { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 10vw, 128px); }
.doc .prose h2 { margin-top: 44px; font-size: var(--step-1); font-weight: 650; font-stretch: 106%; line-height: 1.25; }

.svc__name a { text-decoration: none; }
.svc__name a:hover { color: var(--green); }
.more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font-weight: 600; color: var(--green-deep); text-decoration: none;
}
.more::after { content: ""; width: 18px; height: 1.5px; background: currentColor; transition: width .3s var(--ease-out); }
.more:hover::after { width: 30px; }
.more--night { color: var(--on-night); margin-top: clamp(40px, 5vw, 64px); }
.company__intro .more { margin-top: 24px; }

/* Footer */
.foot { background: var(--green-deep); color: var(--on-green-2); padding-block: 56px 40px; font-size: var(--step--1); }
.foot__map { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
.brand--small { color: var(--on-green); }
.brand--small .brand__mark { width: 30px; height: 30px; }
.brand--small .brand__name { font-size: 1.05rem; }
.brand--small .brand__sub { font-size: 0.6rem; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__head { color: var(--on-green-2); margin-bottom: 4px; font-weight: 500; }
.foot__col a { color: var(--on-green); text-decoration: none; font-size: var(--step-0); }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in oklch, var(--line) 22%, transparent); line-height: 1.5; }
@media (max-width: 900px) { .foot__map { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__map > .brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__map { grid-template-columns: 1fr; } }


/* Photos */
.photo { margin: 0; background: var(--paper); }
.photo img {
  display: block; width: 100%; height: clamp(260px, 46vw, 620px); object-fit: cover;
  background: var(--paper-2);
}
.photo figcaption { padding-top: 12px; padding-bottom: 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.45; }
.photo figcaption a { color: inherit; text-underline-offset: 3px; }
.photo + .services, .photo + .blocks, .photo + .company, .photo + .approach { margin-top: 0; }
.blocks + .photo, .services + .photo { margin-top: 0; }
.approach + .photo figcaption, .photo:last-child figcaption { padding-bottom: 12px; }

/* Service illustrations, drawn in the same line style as the home page plan */
.illus { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.illus .faint { stroke-width: 1; opacity: .35; stroke-dasharray: 4 7; }
.illus .solid { fill: oklch(0.47 0.09 160); }
.illus .dim { stroke-width: 1.2; opacity: .7; }
.illus .pin { fill: var(--signal); stroke: none; }
.illus .lens { stroke-width: 3; fill: oklch(0.43 0.085 160 / 0.7); }
.illus .handle { stroke-width: 10; }
.page-hero__illus { width: clamp(200px, 26vw, 360px); height: auto; aspect-ratio: 1; }
@media (max-width: 760px) {
  .page-hero__illus { width: min(72vw, 280px); margin: 8px auto 0; }
  .page-hero__grid:has(.page-hero__illus) { grid-template-columns: 1fr; }
}

/* Page-load and scroll motion: only with JS, never with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(105%); animation: rise 1s var(--ease-out) forwards; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: .09s; }
  .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(14px); animation: fade-up .9s var(--ease-out) forwards; }
  .js .hero__lead { animation-delay: .28s; }
  .js .hero__actions { animation-delay: .38s; }

  /* Construction lines fade in; the walls and ravelins are drawn. */
  .js .plan__faint, .js .plan__dash { animation: appear 1.2s ease-out both; }
  .js .d1 { animation-delay: .1s; }
  .js .d2 { animation-delay: .45s; }
  .js .plan__main {
    stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0;
    animation: draw 1.8s var(--ease-out) .5s forwards, fill-in .8s ease-out 1.6s forwards;
  }
  .js .plan__mid { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-out) 1s forwards; }
  .js .plan__keep, .js .plan__north, .js .plan__scale { animation: appear .7s ease-out 1.6s both; }
  .js .plan__pin { transform-origin: 300px 300px; animation: pin .7s var(--ease-out) 1.9s both; }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
/* Only a start frame: each element fades up to its own opacity. */
@keyframes appear { from { opacity: 0; } }
@keyframes pin { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media print { .reveal { opacity: 1 !important; transform: none !important; } }
