/* Liburna Tech
   A live sea runs behind the whole page (scene.js). Everything here sits on top of it.
   Palette comes from the logo: black ground, gold sail, bronze hull. */

:root {
  --night: #04070D;
  --sea: #0A1826;
  --sand: #F3E6CC;
  --mute: rgba(243, 230, 204, .7);
  --line: rgba(243, 230, 204, .16);
  --gold: #E3B463;
  --bronze: #B9772B;
  --glass: rgba(7, 13, 23, .56);

  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--night);
  color: var(--sand);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100%, 82rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: -4rem;
  z-index: 40;
  padding: .6rem 1rem;
  background: var(--gold);
  color: var(--night);
}
.skip:focus { top: .75rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- scene and loader ---------- */

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* If WebGL or the 3D library is unavailable: a still dusk instead of the live sea. */
.no-scene #scene { display: none; }
.no-scene body {
  background:
    radial-gradient(120% 60% at 70% 38%, rgba(224, 138, 74, .55), transparent 60%),
    linear-gradient(#16233F 0%, #3A3550 34%, #0A1826 46%, var(--night) 100%) fixed;
}

main, .top { position: relative; z-index: 1; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #000;
  transition: opacity .8s ease, visibility .8s;
}
.js .loader { display: flex; }
.ready .loader { opacity: 0; visibility: hidden; }
.loader-bar {
  width: 7rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) 0 0 / 50% 100% no-repeat, var(--line);
  animation: load 1.1s linear infinite;
}
@keyframes load { from { background-position: -100% 0, 0 0; } to { background-position: 200% 0, 0 0; } }

/* ---------- top bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.top.is-stuck {
  background: rgba(4, 7, 13, .6);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
/* Logo file has a black ground, so it sits in its own rounded tile. */
.mark-logo {
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: .3rem;
  border-radius: 10px;
  background: #000;
  outline: 1px solid var(--line);
}
/* Company name: Roman capitals, close to the lettering in the logo. */
.mark-name,
.mark-tag {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: .05em;
  line-height: 1;
}
.mark-name { font-weight: 700; }
.mark-tag { font-weight: 500; color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 2rem);
  font-size: .9375rem;
  font-weight: 500;
}
.nav a { text-decoration: none; }
.nav a:not(.nav-cta):not(.nav-lang):hover { color: var(--gold); }
.nav-lang {
  padding: .3rem .55rem;
  border: 1.5px solid var(--mute);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .8125rem;
}
.nav-lang:hover { background: var(--sand); color: var(--night); border-color: var(--sand); }
.nav-cta {
  white-space: nowrap;
  padding: .5rem 1rem;
  background: var(--gold);
  color: var(--night);
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--sand); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: .9rem 1.6rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--sand); border-color: var(--sand); }
.btn-line { border-color: var(--mute); color: var(--sand); background: rgba(4, 7, 13, .25); backdrop-filter: blur(6px); }
.btn-line:hover { background: var(--sand); border-color: var(--sand); color: var(--night); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 7rem 6rem;
}
/* Scrim so copy stays readable wherever the ship and sun sit. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 13, .74) 0%, rgba(4, 7, 13, .4) 38%, transparent 66%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
  pointer-events: none;
}
.hero-copy { position: relative; }

.thesis {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.6vw, 6.5rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(4, 7, 13, .5);
}
/* Albanian headline runs longer; size it down so the wide word still fits. */
:lang(sq) .thesis { font-size: clamp(2rem, 5.4vw, 5.3rem); }

.thesis .line {
  display: block;
  overflow: hidden;
  padding-top: .1em;
  margin-top: -.1em;
  line-height: 1.02;
}
.thesis .line-in { display: inline-block; }
.w-light { font-stretch: 50%; font-weight: 250; letter-spacing: .01em; }
.w-fast { font-stretch: 150%; font-weight: 900; font-style: italic; color: var(--gold); }

.lede {
  max-width: 31rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  text-shadow: 0 1px 16px rgba(4, 7, 13, .7);
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Entrance: plays once the scene is ready. */
.js .line-in { transform: translateY(110%); }
.js .rise { opacity: 0; transform: translateY(18px); }
.js.ready .line-in,
.js.ready .rise {
  opacity: 1;
  transform: none;
  transition: transform 1.1s var(--ease), opacity 1s ease;
  transition-delay: calc(.35s + var(--d, 0) * .11s);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: .5rem auto 0;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- shared section pieces ---------- */

.band-head h2 {
  margin-top: .6rem;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(4, 7, 13, .6);
}
.band-intro { max-width: 30rem; margin-top: 1rem; color: var(--mute); }

.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: transform 1s var(--ease), opacity .9s ease;
}

/* ---------- services ---------- */

.services { position: relative; padding-block: clamp(5rem, 10vw, 8rem); }
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(4, 7, 13, .42) 14%, rgba(4, 7, 13, .12) 45%, rgba(4, 7, 13, .3) 86%, transparent);
  pointer-events: none;
}
.srv-sticky { position: relative; }

.track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  width: min(100%, 82rem);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding-inline: var(--gutter);
}

/* Pinned mode (set by main.js on wide screens): the section holds still
   while the cards travel sideways and the camera circles the ship. */
.services.is-pinned { padding-block: 0; }
.is-pinned .srv-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding-block: 6.5rem 2.75rem;
  overflow: hidden;
}
.is-pinned .track {
  display: flex;
  width: max-content;
  margin: 0;
  will-change: transform;
}
.is-pinned .card { flex: 0 0 min(78vw, 23.5rem); }

.card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 17.5rem;
  padding: 1.6rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px) saturate(1.2);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s var(--ease), border-color .3s;
  overflow: hidden;
}
.card:hover { border-color: rgba(227, 180, 99, .55); }
/* glare that follows the pointer */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--gx, 50%) var(--gy, 0%), rgba(227, 180, 99, .2), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.card h3 {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  text-transform: uppercase;
  transform-origin: 0 100%;
  transition: transform .35s var(--ease), color .2s;
}
.card:hover h3 { transform: skewX(-10deg); color: var(--gold); }
.card p { font-size: 1rem; }
.card .tags {
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--mute);
}
.ask {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding-top: .5rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--gold);
  text-decoration: none;
}
.ask::after {
  content: " →";
  display: inline-block;
  margin-left: .25rem;
  transition: transform .25s var(--ease);
}
.ask:hover::after { transform: translateX(5px); }
.ask:hover { text-decoration: underline; text-underline-offset: .3em; }

.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card opens the service page */
.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.25rem;
  margin-top: auto;
}
.card-links .ask { margin-top: 0; }
.more {
  position: relative;
  z-index: 1;
  padding-top: .5rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--sand);
  text-underline-offset: .3em;
}
.more:hover { color: var(--gold); }

/* ---------- service pages ---------- */

.crumb a { color: inherit; text-underline-offset: .3em; }
.crumb a:hover { color: var(--sand); }

.svc-title {
  max-width: min(13em, 46vw);
  margin-top: 1rem;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(4, 7, 13, .5);
}

.includes { position: relative; padding-block: clamp(5rem, 10vw, 8rem); }
.includes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(4, 7, 13, .5) 30%, rgba(4, 7, 13, .5) 75%, transparent);
  pointer-events: none;
}
.includes .wrap { position: relative; padding-top: min(34vh, 18rem); } /* leaves the ship in view above the list */
.gets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.gets .card { min-height: 0; }
.gets .card h3 { font-stretch: 85%; font-size: 1.6rem; line-height: 1.08; }

.fit { margin-top: 1.75rem; }
.fit li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.125rem;
}
.fit li:last-child { border-bottom: 1px solid var(--line); }
.fit li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.55rem;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--gold);
}

.faq-head { margin-top: clamp(3.5rem, 8vw, 6rem); }
.faq { margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--gold);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { padding-bottom: 1.25rem; color: var(--mute); }

.others { position: relative; margin-top: clamp(3rem, 7vw, 5rem); }
.others-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.others-row .eyebrow { margin-right: .5rem; }
.others-row a {
  padding: .5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.others-row a:hover { border-color: var(--gold); color: var(--gold); }
.others + .foot { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- process ---------- */

.process { position: relative; padding-block: clamp(6rem, 14vw, 11rem); }
.process::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(4, 7, 13, .86) 0%, rgba(4, 7, 13, .6) 36%, transparent 68%);
  -webkit-mask-image: linear-gradient(transparent, #000 22vh, #000 calc(100% - 22vh), transparent);
  mask-image: linear-gradient(transparent, #000 22vh, #000 calc(100% - 22vh), transparent);
  pointer-events: none;
}
.contact::before {
  -webkit-mask-image: linear-gradient(transparent, #000 22vh);
  mask-image: linear-gradient(transparent, #000 22vh);
}
/* copy on the right half, ship keeps the left */
.side-right {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
}
.side-right > * { grid-column: 2; }

.strokes {
  --p: 0;
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-left: 2.25rem;
  counter-reset: stroke;
}
/* the rail fills as the reader moves down the steps */
.strokes::before,
.strokes::after {
  content: "";
  position: absolute;
  left: .4rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: var(--line);
}
.strokes::after {
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(var(--p));
}
.strokes li {
  position: relative;
  counter-increment: stroke;
  padding-bottom: clamp(3rem, 9vh, 6rem);
  opacity: .45;
  transition: opacity .5s;
}
.strokes li:last-child { padding-bottom: 0; }
.strokes li.on { opacity: 1; }
.strokes li::before {
  content: counter(stroke) " / 5";
  font-family: var(--mono);
  font-size: .8125rem;
  color: var(--gold);
}
.strokes li::after {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: .35rem;
  width: .95rem;
  height: .95rem;
  border: 2px solid var(--mute);
  border-radius: 50%;
  background: var(--night);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.strokes li.on::after {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(227, 180, 99, .18);
}
.strokes h3 {
  margin-block: .4rem .5rem;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------- name ---------- */

.name {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 125vh;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.name::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(4, 7, 13, .8) 66%, rgba(4, 7, 13, .8) 86%, transparent);
  pointer-events: none;
}
.name-inner { position: relative; text-align: center; }
.name-body { max-width: 40rem; margin: 1.5rem auto 0; }
.name-body p + p { margin-top: 1rem; }
.name-body .name-point {
  margin-top: 1.75rem;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--gold);
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: clamp(6rem, 12vw, 9rem);
}
.contact .side-right { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }

.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.2);
}
.panel .band-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.mail { color: var(--gold); text-underline-offset: .25em; white-space: nowrap; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.field { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: rgba(243, 230, 204, .06);
  border: 1px solid rgba(243, 230, 204, .3);
  border-radius: 10px;
  color: var(--sand);
  font: inherit;
  transition: border-color .2s, background-color .2s;
}
.field select option { color: #111; }
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sand); }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(243, 230, 204, .1); }
.field [aria-invalid="true"] { border-color: var(--gold); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-size: .9375rem; color: var(--gold); }

.foot {
  position: relative;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-block: 1.5rem;
  background: rgba(4, 7, 13, .72);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.foot-note { font-family: var(--mono); font-size: .8125rem; color: var(--mute); }

/* ---------- small screens ---------- */

@media (max-width: 60rem) {
  .side-right,
  .contact .side-right { grid-template-columns: minmax(0, 1fr); }
  .side-right > * { grid-column: 1; }
  .process::before,
  .contact::before { background: rgba(4, 7, 13, .66); }
  .hero::before { background: linear-gradient(rgba(4, 7, 13, .72), rgba(4, 7, 13, .45) 55%, transparent); }
  .hero { align-items: flex-start; }
}

@media (max-width: 40rem) {
  .svc-title { max-width: none; }
  .nav a:not(.nav-cta):not(.nav-lang) { display: none; }
  .mark-tag { display: none; }
  .mark-name { font-size: 1.15rem; }
  .nav { gap: .6rem; }
  .nav-cta { padding: .45rem .8rem; font-size: .875rem; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-bar, .scroll-hint::after { animation: none; }
  .js .line-in, .js .rise, .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .card h3, .btn { transition: none; }
  .card:hover h3 { transform: none; }
}
