/* ==========================================================================
   Alcyon Information Security
   Palette and type are derived from the kingfisher mark:
   blue #06567E and orange #E68A18 are lifted pixel-exact from the logo.
   The page descends from surface light into deep water as you scroll.
   ========================================================================== */

:root {
  /* Water, from surface to depth */
  --paper:    #EFF3F5;
  --paper-hi: #F7FAFB;
  --shallow:  #DCE6EA;
  --deep:     #06567E;  /* logo blue */
  --abyss:    #052E42;
  --abyss-2:  #04202F;

  /* Ink and accent */
  --ink:      #171717;  /* logo ink */
  --slate:    #4C6373;
  --strike:   #E68A18;  /* logo orange */

  --onDeep:      #EAF2F6;
  --onDeep-soft: #9FBDCF;

  --sans:  "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --cond:  "IBM Plex Sans Condensed", "IBM Plex Sans", ui-sans-serif, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

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

/* --- Shared type devices ------------------------------------------------ */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.5rem;
}

.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.eyebrow--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.eyebrow--onDeep { color: var(--onDeep-soft); }

/* --- Navigation --------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}

/* Lockup: the bird stays a raster, the wordmark is live type so it stays
   crisp at every density and recolours with the section it sits in. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 1.95rem); /* drives the whole lockup */
  line-height: 1;
}

.lockup__mark {
  width: 1.85em;
  height: auto;
  flex: none;
}

.lockup__type { display: block; }

.lockup__name {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lockup__tag {
  display: block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 0.335em;
  letter-spacing: 0.207em;
  text-transform: uppercase;
  margin-top: 0.42em;
  white-space: nowrap;
}

.nav__logo { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links a {
  text-decoration: none;
  color: var(--slate);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--deep); border-bottom-color: var(--deep); }

.nav__cta { color: var(--deep) !important; font-weight: 500; }

/* --- Hero + the refraction signature ------------------------------------ */

.hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper) 55%, var(--shallow) 100%);
}

.hero__inner { position: relative; }

/* The headline, its waterline, and the bent copy underneath */
.refract { position: relative; }

.refract__text {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.waterline {
  position: relative;
  height: 1px;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  background: linear-gradient(90deg,
    transparent 0%, var(--deep) 12%, var(--deep) 88%, transparent 100%);
  opacity: 0.55;
}
/* the thin film of brighter water sitting just under the surface */
.waterline::after {
  content: "";
  position: absolute;
  inset: 1px 0 auto 0;
  height: 10px;
  background: linear-gradient(180deg, rgba(6, 86, 126, 0.14), transparent);
}

.refract__echo {
  overflow: hidden;
  height: clamp(3.5rem, 9vw, 7rem);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}

/* Two nested elements so the idle waver and the pointer offset never fight
   over a single transform property. */
.refract__wave {
  transform: translateX(var(--rx, 0px));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* transform-origin must be `center`: flipping about the box centre keeps the
   mirrored block in place, so the window crops to the last line of the
   headline — the line actually touching the waterline. */
.refract__echo .refract__text {
  transform: scaleY(-1) skewX(var(--rk, -3deg));
  transform-origin: center;
  color: var(--deep);
  opacity: 0.32;
  filter: blur(1.4px);
  animation: swell 7s ease-in-out infinite alternate;
}

@keyframes swell {
  from { --rk: -4deg; opacity: 0.30; }
  to   { --rk:  1deg; opacity: 0.38; }
}

@property --rk {
  syntax: "<angle>";
  inherits: false;
  initial-value: -3deg;
}

.hero__lede {
  max-width: 46ch;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  color: var(--slate);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  transition: transform 0.18s, background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-2px); }

/* The single dive. Orange appears here and almost nowhere else. */
.btn--strike {
  background: var(--strike);
  color: var(--ink);
}
.btn--strike:hover { background: #F29A2C; }

.btn--ghost {
  border-color: rgba(6, 86, 126, 0.35);
  color: var(--deep);
}
.btn--ghost:hover { border-color: var(--deep); background: rgba(6, 86, 126, 0.06); }

.btn--lg { padding: 1.15rem 2.25rem; font-size: 0.9rem; }

/* --- Section rhythm ----------------------------------------------------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.section--shallow { background: var(--shallow); }
.section--deep    { background: var(--deep);  color: var(--onDeep); }
.section--abyss   { background: var(--abyss); color: var(--onDeep); }

/* --- Services ----------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}

.service { border-top: 1px solid rgba(23, 23, 23, 0.16); padding-top: 1.4rem; }

.service__name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.service__body { margin: 0; color: var(--slate); max-width: 42ch; }

/* --- Process steps ------------------------------------------------------ */

/* Four steps, so the grid is set explicitly — auto-fit strands step 04
   on a row of its own at common desktop widths. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 4vw, 3rem);
}

@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step { border-top: 1px solid rgba(234, 242, 246, 0.28); padding-top: 1.4rem; }

.step__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--strike);
  margin-bottom: 0.85rem;
}

.step__name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 0.6rem;
}

.step__body { margin: 0; color: var(--onDeep-soft); font-size: 0.98rem; }

/* --- About -------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about__lead {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--onDeep);
}

.about__body p { margin: 0 0 1.1rem; color: var(--onDeep-soft); max-width: 46ch; }
.about__body p:last-child { margin-bottom: 0; }

/* --- Contact ------------------------------------------------------------ */

.contact { background: var(--abyss-2); padding-block: clamp(5rem, 11vw, 9rem); }

.contact__inner { text-align: center; }

.contact__head {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  color: var(--onDeep);
}

.contact__note {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--onDeep-soft);
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  background: var(--abyss-2);
  border-top: 1px solid rgba(234, 242, 246, 0.14);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--onDeep-soft);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer__logo { color: var(--onDeep); font-size: 1.3rem; }

.footer__meta { font-family: var(--mono); font-size: 0.75rem; line-height: 1.9; }
.footer__meta p { margin: 0; }
.footer__meta a { color: var(--onDeep); text-decoration: none; border-bottom: 1px solid rgba(234, 242, 246, 0.3); }
.footer__meta a:hover { color: var(--strike); border-bottom-color: var(--strike); }

.footer__legal { font-family: var(--mono); font-size: 0.7rem; margin: 0; opacity: 0.7; }

/* --- Small screens ------------------------------------------------------ */

@media (max-width: 34rem) {
  .nav { flex-wrap: wrap; }
  .nav__links { width: 100%; justify-content: space-between; }
  .refract__echo { height: 3rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* let the headline find its own breaks rather than re-wrapping a forced one */
  .refract__text br { display: none; }
}

/* --- Reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .refract__wave { transform: none; }
}
