/* FutureCFT — Future Craft
   Single-page static site. Palette, type and layout per the approved V3 design. */

:root {
  --bg: #060B14;
  --surface: #0B1422;
  --ink: #EDF5FF;
  --muted: #A1B3C8;
  --cyan: #6DE6F5;
  --blue: #487CFF;
  --violet: #9D8AFF;
  --line: #253348;
  --line-soft: #1B2740;
  --on-cyan: #06131C;

  --shell: 1240px;
  --gutter: clamp(1.25rem, 2vw, 3.5rem);

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SFMono-Regular", "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Keep anchor targets clear of the sticky header. */
:target { scroll-margin-top: 5.25rem; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

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

a { color: inherit; }

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

/* ---------------------------------------------------------------- shell */

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 0.66rem + 0.12vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.rule {
  display: block;
  width: 3.9rem;
  height: 2px;
  margin: 1.75rem 0 1.6rem;
  background: var(--cyan);
}

/* ----------------------------------------------------------- skip link */

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 20;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus { transform: translateY(0); }

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 11, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Below the two-column layout the header is deliberately not sticky: on a phone it
   would consume a large share of the viewport, and the three short links are one
   gesture away. */
@media (max-width: 47.99rem) {
  .site-header { position: static; }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-block: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark { color: var(--cyan); flex: none; }

.brand__name {
  font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.375rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(0.7rem, 0.25rem + 2.2vw, 1.35rem);
  row-gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.8125rem, 0.68rem + 0.7vw, 0.9375rem);
}

.site-nav a {
  color: var(--muted);
  line-height: 1.2;
  text-decoration: none;
  padding-block: 0.35rem;
}

.site-nav a:hover { color: var(--ink); }

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

.hero { padding-block: clamp(2.75rem, 6.5vw, 5.5rem) clamp(3rem, 7vw, 6rem); }

.hero__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.375rem, 1.6071rem + 3.8393vw, 5.0625rem);
  line-height: 1.06;
}

.hero__text {
  max-width: 35ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.1875rem);
}

.cta-row { margin-top: 2.35rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.5rem;
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button::after {
  content: "";
  width: 1.35rem;
  height: 0.7rem;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 42%, 68% 42%, 68% 4%, 100% 50%, 68% 96%, 68% 58%, 0 58%);
}

.button:hover { background: #8DEEFA; }

.hero__art { justify-self: center; width: 100%; }

.hero__art img {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

/* -------------------------------------------------------------- vision */

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

.vision__grid {
  display: grid;
  gap: clamp(1.35rem, 3.5vw, 3.25rem);
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
}

.vision__title {
  margin: 0;
  font-size: clamp(1.9375rem, 1.5268rem + 2.0536vw, 3.375rem);
  line-height: 1.1;
}

.vision__text {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.68;
}

/* -------------------------------------------------------- explorations */

.explorations {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.25rem, 8vw, 6.5rem) clamp(3.5rem, 8.5vw, 7rem);
}

.section-title {
  margin: 0 0 clamp(2.25rem, 4.5vw, 3.25rem);
  font-size: clamp(1.9375rem, 1.5804rem + 1.7857vw, 3.1875rem);
  line-height: 1.12;
}

.cards {
  display: grid;
  gap: clamp(2rem, 4vw, 2.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__figure {
  margin: 0 0 1.4rem;
  aspect-ratio: 808 / 580;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}

.card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3125rem, 1.15rem + 0.7vw, 1.6875rem);
  line-height: 1.25;
  font-weight: 700;
}

.card__text {
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
}

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

.contact {
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(109, 230, 245, 0.08);
}

.contact > .shell:first-child {
  padding-block: clamp(3.25rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.75rem);
}

.contact__title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.125rem, 1.6607rem + 2.3214vw, 3.75rem);
  line-height: 1.1;
}

.contact__text {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.contact__mail { margin-top: 1.9rem; }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #386279;
  color: var(--cyan);
  font-size: clamp(1.1875rem, 0.86rem + 1.45vw, 1.8125rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail::after {
  content: "";
  width: 1.45rem;
  height: 0.85rem;
  flex: none;
  background: currentColor;
  clip-path: polygon(0 42%, 68% 42%, 68% 4%, 100% 50%, 68% 96%, 68% 58%, 0 58%);
}

.mail:hover { color: #A6F0FB; border-bottom-color: var(--cyan); }

/* -------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.5rem;
  padding-block: 2.1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer p { margin: 0; }

/* ---------------------------------------------------------- responsive */

@media (min-width: 48rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
    column-gap: clamp(1.25rem, 2vw, 2.25rem);
  }
  .hero__art { justify-self: end; }
  .hero__art img { margin-inline: 0; }
  .vision__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 30rem) {
  .site-header__inner { gap: 0.5rem 0.75rem; }
}

/* ------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
