/* Octolake – octolake.com
   Deep lake navy, controlled aqua, one warm horizon light.
   Cormorant Garamond for the voice, Instrument Sans for the reading. */

@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --abyss: #07131f;
  --navy: #0c2233;
  --deep: #123a4f;
  --mist: #e6eef2;
  --mist-soft: #f1f5f7;
  --aqua: #7fd6d8;
  --aqua-ink: #176f77;
  --dawn: #e9b98a;
  --ink: #0c2233;
  --ink-soft: #3f5566;
  --on-dark: #dbe6ec;
  --on-dark-soft: #9db2bf;

  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --measure: 1280px;
  --section: clamp(104px, 13vw, 184px);
  color-scheme: dark light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font: 400 17px/1.65 var(--text); color: var(--ink); background: var(--abyss); overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 20; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #eef5f8; }
.logo-mark { width: 38px; height: 38px; fill: none; stroke: var(--aqua); stroke-width: 2.2; stroke-linecap: round; }
.logo-horizon { opacity: .5; }
.logo-word { font: 500 26px/1 var(--display); letter-spacing: .015em; }

/* ---------- Masthead ---------- */
.masthead {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; gap: 40px;
  padding: 28px var(--gutter);
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
}
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; letter-spacing: .01em; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s ease, color .3s ease; }
.nav a:hover { color: #fff; border-bottom-color: rgba(127, 214, 216, .6); }
.admin-link { color: var(--on-dark-soft); font-size: 14px; text-decoration: none; padding: 8px 16px; border: 1px solid rgba(219, 230, 236, .22); border-radius: 999px; transition: border-color .3s ease, color .3s ease; }
.admin-link:hover { color: #fff; border-color: rgba(127, 214, 216, .6); }
.menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(680px, 94vh); display: flex; align-items: center; padding: 140px var(--gutter) 260px; overflow: hidden; background: var(--abyss); isolation: isolate; }
.hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 15, 25, .78) 0%, rgba(5, 15, 25, .42) 42%, rgba(5, 15, 25, 0) 70%), linear-gradient(180deg, rgba(5, 15, 25, .5) 0%, rgba(5, 15, 25, 0) 22%); }
.sun { fill: #fbe3c4; }
.sun-glow { fill: #f1c592; opacity: .55; }
.ridge-far { fill: #2c4a5e; opacity: .78; }
.ridge-mid, .hero-scene .ridge-mid { fill: #132e43; }
.ridge-near, .hero-scene .ridge-near { fill: #081a28; }
.current { fill: none; stroke: var(--aqua); stroke-linecap: round; }
.current-a { stroke-width: 1.6; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 0; }
.current-b { stroke-width: 1; opacity: .22; }

.hero-copy { width: 100%; max-width: var(--measure); margin: 0 auto; }
.hero h1 { font: 500 clamp(46px, 7.2vw, 100px)/1.0 var(--display); letter-spacing: -.012em; color: #f4f8fa; max-width: 11.5ch; text-wrap: balance; }
.hero-lead { margin-top: 32px; max-width: 46ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 44px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 500 15.5px var(--text); text-decoration: none; transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.btn-light { background: var(--aqua); color: var(--abyss); }
.btn-light:hover { background: #a3e4e5; }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(219, 230, 236, .28); }
.btn-ghost:hover { border-color: var(--aqua); color: #fff; }

/* ---------- Products: each keeps its own identity ---------- */
.products {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: -200px auto 0; padding: 0 var(--gutter);
}
.products::after { content: ""; position: absolute; inset: 200px 0 -1px; background: var(--mist-soft); z-index: -1; }
.product { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: clamp(32px, 3.6vw, 52px); border-radius: 18px; overflow: hidden; min-height: 400px; box-shadow: 0 30px 80px rgba(3, 10, 18, .28); }
.product-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.product-kind { font-size: 14px; }
.product h3 { font-size: clamp(38px, 3.6vw, 50px); line-height: 1.02; }
.product-claim { font-size: 19px; line-height: 1.35; }
.product-text > p:not(.product-kind):not(.product-claim) { font-size: 16px; line-height: 1.65; }
.product-link { margin-top: auto; padding-top: 18px; align-self: flex-start; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.product-art { position: absolute; right: -24px; bottom: -18px; width: min(300px, 46%); height: auto; opacity: .95; pointer-events: none; }

.product-octoments { background: #f7f2ea; color: #2b2320; border: 1px solid #e5d9ce; }
.product-octoments .product-kind { color: #7a3f45; }
.product-octoments h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; color: #7a3f45; letter-spacing: -.01em; }
.product-octoments .product-claim { font-family: "Newsreader", Georgia, serif; font-style: italic; color: #4a3b37; }
.product-octoments .product-text > p:not(.product-kind):not(.product-claim) { color: #5f5757; }
.product-octoments .product-link { color: #7a3f45; }
.product-octoments .product-link:hover { color: #57292e; }
.product-octoments .sheet rect { fill: #fdf8f3; stroke: #e0d1c3; stroke-width: 1.2; }
.product-octoments .sheet-2 rect { fill: #f3ebe1; }
.product-octoments .sheet-3 rect { fill: #ede3d7; }
.product-octoments .ink { stroke: #b9a89a; stroke-width: 3; stroke-linecap: round; fill: none; }
.product-octoments .rule { stroke: #c97c66; stroke-width: 2; fill: none; }
.product-octoments .seal { fill: none; stroke: #7a3f45; stroke-width: 2; }

.product-buildchapter { background: #fbf8f2; color: #1d2922; border: 1px solid #e3dccf; font-family: "DM Sans", var(--text); }
.product-buildchapter .product-kind { color: #355744; }
.product-buildchapter h3 { font-family: "DM Sans", var(--text); font-weight: 600; letter-spacing: -.03em; color: #14251c; font-size: clamp(34px, 3.2vw, 46px); }
.product-buildchapter .product-claim { font-weight: 500; color: #355744; }
.product-buildchapter .product-text > p:not(.product-kind):not(.product-claim) { color: #4f5d54; }
.product-buildchapter .product-link { color: #a55238; }
.product-buildchapter .product-link:hover { color: #14251c; }
.product-buildchapter .grid { stroke: #e5ece6; stroke-width: 1; fill: none; }
.product-buildchapter .house { fill: #f5efe5; stroke: #1b3025; stroke-width: 2.2; stroke-linejoin: round; }
.product-buildchapter .house-line { fill: none; stroke: #1b3025; stroke-width: 1.6; stroke-linejoin: round; }
.product-buildchapter .clay { stroke: #bd684a; stroke-width: 2.4; stroke-linecap: round; }
.product-buildchapter .sun { fill: none; stroke: #76937f; stroke-width: 1.6; }

/* ---------- About / Vision / Principles (light) ---------- */
.about { background: var(--mist-soft); padding: var(--section) var(--gutter); }
.about > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.about-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about h2, .trust h2, .contact h2, .why h2 { font: 500 clamp(38px, 4.8vw, 64px)/1.04 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.about h2 { color: var(--ink); max-width: 13ch; }
.about-body { display: grid; gap: 20px; color: var(--ink-soft); font-size: 18px; max-width: 52ch; padding-top: 10px; }

.vision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: clamp(80px, 10vw, 140px); padding-top: 48px; border-top: 1px solid #d3dfe5; }
.vision h3 { font-size: 15px; font-weight: 500; color: var(--aqua-ink); margin-bottom: 14px; }
.vision p { font: 400 clamp(24px, 2.3vw, 31px)/1.32 var(--display); color: var(--ink); max-width: 30ch; }

.principles { margin-top: clamp(96px, 11vw, 150px); }
.principles > h3 { font-size: 15px; font-weight: 500; color: var(--aqua-ink); margin-bottom: 36px; }
.principles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.principles svg { width: 40px; height: 40px; fill: none; stroke: var(--aqua-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.principles h4 { font: 500 24px/1.2 var(--display); color: var(--ink); margin-bottom: 10px; }
.principles p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; }

/* ---------- Why (dark, horizon line) ---------- */
.why { position: relative; background: var(--navy); color: var(--on-dark); padding: calc(var(--section) * .9) var(--gutter) var(--section); overflow: hidden; }
.why-line { position: absolute; top: 34px; left: 0; width: 100%; height: 90px; fill: none; stroke: var(--aqua); stroke-opacity: .28; stroke-width: 1.2; }
.why-inner { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); }
.why h2 { color: #f4f8fa; }
.why-list { margin: 0; display: grid; gap: 44px; }
.why-list dt { font: 500 clamp(24px, 2.2vw, 30px)/1.2 var(--display); color: #f4f8fa; margin-bottom: 10px; }
.why-list dd { margin: 0; color: var(--on-dark-soft); max-width: 54ch; }

/* ---------- Trust ---------- */
.trust { background: var(--abyss); color: var(--on-dark); padding: var(--section) var(--gutter); border-top: 1px solid rgba(127, 214, 216, .12); }
.trust > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.trust h2 { color: #f4f8fa; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); margin-top: clamp(56px, 7vw, 96px); }
.trust-grid > div { padding-top: 26px; border-top: 1px solid rgba(127, 214, 216, .3); display: grid; gap: 14px; align-content: start; }
.trust h3 { font: 500 26px/1.2 var(--display); color: #f4f8fa; }
.trust p { color: var(--on-dark-soft); font-size: 16px; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--abyss), #0a1c2b); color: var(--on-dark); padding: calc(var(--section) * .55) var(--gutter) var(--section); text-align: center; }
.contact > * { max-width: 44rem; margin-left: auto; margin-right: auto; }
.contact h2 { color: #f4f8fa; }
.contact > p { margin-top: 24px; color: var(--on-dark-soft); max-width: 48ch; }
.contact-mail { display: inline-block; margin-top: 40px; font: 500 clamp(28px, 4vw, 48px)/1.1 var(--display); color: var(--aqua); text-decoration: none; border-bottom: 1px solid rgba(127, 214, 216, .4); padding-bottom: 6px; overflow-wrap: anywhere; }
.contact-mail:hover { border-bottom-color: var(--aqua); }
.contact .contact-note { margin-top: 32px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { background: #050e17; color: var(--on-dark-soft); padding: 72px var(--gutter) 36px; }
.footer > div { max-width: var(--measure); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(219, 230, 236, .1); }
.footer-nav { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-nav div { display: grid; gap: 10px; align-content: start; }
.footer-nav h2 { font-size: 14px; font-weight: 500; color: var(--on-dark); margin-bottom: 4px; }
.footer-nav a { color: var(--on-dark-soft); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 14px; }
.footer-admin { color: #5f7686; text-decoration: none; font-size: 13px; }
.footer-admin:hover { color: var(--aqua); }

/* ---------- Legal pages ---------- */
.legal { background: var(--mist-soft); color: var(--ink); min-height: 100vh; }
.legal .masthead { position: static; }
.legal-head { background: var(--navy); }
.legal main { max-width: 46rem; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 120px; }
.legal h1 { font: 500 clamp(44px, 6vw, 72px)/1.02 var(--display); letter-spacing: -.01em; }
.legal .legal-lead { margin-top: 20px; color: var(--ink-soft); font-size: 18px; }
.legal h2 { font: 500 28px/1.2 var(--display); margin: 56px 0 14px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--aqua-ink); }
.legal .pending { margin-top: 32px; padding: 18px 20px; border-left: 3px solid var(--dawn); background: #fbf4ec; color: #6d4a26; border-radius: 0 8px 8px 0; }
.legal .stand { margin-top: 64px; font-size: 14px; }

/* ---------- Motion: one orchestrated load moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .hero-actions { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-lead { animation-delay: .18s; }
  .hero-actions { animation-delay: .32s; }
  .current-a { stroke-dashoffset: 1; animation: draw 2.8s cubic-bezier(.45, .05, .25, 1) .5s forwards; }
  .shimmer path { animation: shimmer 7s ease-in-out infinite alternate; }
  .shimmer .shimmer-b { animation-duration: 9s; animation-delay: -3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { from { opacity: .35; } to { opacity: 1; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .principles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}

@media (max-width: 900px) {
  .nav, .admin-link { display: none; }
  .menu { display: block; margin-left: auto; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; border: 1px solid rgba(219, 230, 236, .25); border-radius: 50%; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 18px; height: 1.5px; background: var(--on-dark); }
  .menu nav { position: absolute; right: 0; top: 54px; min-width: 220px; display: grid; padding: 10px; background: var(--navy); border: 1px solid rgba(127, 214, 216, .2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
  .menu nav a { color: var(--on-dark); text-decoration: none; padding: 12px 14px; border-radius: 8px; }
  .menu nav a:hover { background: rgba(127, 214, 216, .08); }
  .menu .menu-admin { color: var(--on-dark-soft); font-size: 14px; border-top: 1px solid rgba(219, 230, 236, .1); margin-top: 6px; border-radius: 0 0 8px 8px; }

  .hero { min-height: 640px; padding: 128px var(--gutter) 200px; align-items: flex-start; }
  .hero-shade { background: linear-gradient(180deg, rgba(5, 15, 25, .7) 0%, rgba(5, 15, 25, .35) 60%, rgba(5, 15, 25, .1) 100%); }
  .products { grid-template-columns: 1fr; margin-top: -140px; }
  .products::after { inset: 140px 0 -1px; }
  .product { min-height: 0; padding-bottom: 180px; }
  .product-art { width: 230px; right: -10px; }
  .about-intro, .why-inner { grid-template-columns: 1fr; }
  .vision, .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .masthead { padding-top: 20px; padding-bottom: 20px; }
  .logo-word { font-size: 23px; }
  .logo-mark { width: 34px; height: 34px; }
  .hero { padding-top: 116px; }
  /* Shift the cropped scene so the horizon light stays inside the frame. */
  .hero-scene { left: -160px; width: calc(100% + 160px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .principles ul { grid-template-columns: 1fr; }
  .product { border-radius: 14px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
