/* ==========================================================================
   Wedge Associates SA — Wealth Management & Family Office
   style.css · V1
   Layout: full-bleed hero, then one quiet central column (46rem) that carries
   every section; space separates sections, never lines.
   ========================================================================== */

/* ---------- Fonts (Jost, SIL OFL 1.1 — self-hosted) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/jost-latin-wght-normal.woff2") format("woff2-variations"),
       url("assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  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;
}

/* ---------- Tokens (brand charter 2016) ---------- */
:root {
  /* Colour */
  --navy:      #232F5D;  /* Pantone 280 C — primary */
  --navy-deep: #1A2347;  /* hover / pressed */
  --grey:      #56585A;  /* Pantone 435 C — secondary */
  --mist:      #E7E8EF;  /* navy-tinted neutral for the contact band */
  --paper:     #FFFFFF;
  --rule:      rgba(35, 47, 93, 0.16);

  /* Type */
  --font: "Jost", "Futura PT", Futura, "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --fs-label: 0.75rem;                                   /* 12 px — caps labels */
  --fs-small: 0.8125rem;                                 /* 13 px — footer */
  --fs-body:  1.0625rem;                                 /* 17 px — running text */
  --fs-lead:  clamp(1.375rem, 1rem + 1.55vw, 2.125rem);  /* 22 → 34 px */
  --fs-title: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);      /* 32 → 52 px */
  --track-caps: 0.24em;

  /* Space & layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --column: 46rem;
  --section: clamp(5rem, 3rem + 9vw, 10.5rem);
  --header-h: clamp(4.5rem, 3.6rem + 2.4vw, 6rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, address { margin: 0; }
address { font-style: normal; }

a {
  color: inherit;
  text-decoration: none;
}

::selection { background: var(--navy); color: var(--paper); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--paper);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Underline that draws itself on hover */
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  padding-bottom: 0.08em;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}
.link:hover,
.link:focus-visible { background-size: 100% 1px; }

/* Central column shared by every section */
.column {
  width: min(100%, var(--column));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding-inline: var(--gutter);
}

.brand { display: inline-block; line-height: 0; }
.brand img {
  width: auto;
  height: clamp(2.5rem, 2rem + 1.2vw, 3.25rem);
}

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--track-caps);
  line-height: 1;
}
.lang li { display: flex; align-items: center; gap: 0.9rem; }
.lang li + li::before {
  content: "";
  width: 1px;
  height: 0.85rem;
  background: var(--rule);
}
.lang a,
.lang [aria-current] {
  display: inline-block;
  padding-block: 0.5rem;
  padding-left: var(--track-caps); /* optically centres tracked caps */
}
.lang a { color: var(--grey); transition: color 0.3s var(--ease); }
.lang a:hover,
.lang a:focus-visible { color: var(--navy); }
.lang [aria-current] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.55em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(30rem, 56vw, 52rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--paper);
  text-align: center;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media { z-index: -2; }
.hero__media img {
  object-fit: cover;
  object-position: 58% 50%;
  animation: hero-settle 2.8s var(--ease) both;
}

.hero::after {               /* depth + legibility */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(26, 35, 71, 0.38), rgba(26, 35, 71, 0) 70%),
    linear-gradient(180deg, rgba(26, 35, 71, 0.10) 0%, rgba(26, 35, 71, 0.45) 100%);
}

.hero__content { padding-inline: var(--gutter); }

.hero__heading {
  display: grid;
  justify-items: center;
  gap: clamp(1.75rem, 1rem + 2.2vw, 2.75rem);
  font-weight: inherit;
}

.hero__logo {
  width: clamp(12.5rem, 7rem + 18vw, 22rem);
  height: auto;
  animation: rise 1.4s 0.35s var(--ease) both;
}

.hero__title {
  max-width: 34ch;
  font-size: clamp(0.8125rem, 0.7rem + 0.45vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-wrap: balance;
  padding-left: 0.3em;       /* optically centres tracked caps */
  animation: rise 1.4s 0.75s var(--ease) both;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  width: 2.75rem;
  height: 3.5rem;
  margin-left: -1.375rem;
  display: grid;
  justify-items: center;
  animation: fade 1.2s 1.4s var(--ease) both;
}
.hero__cue::before {
  content: "";
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: top;
  animation: cue 2.6s 2s var(--ease) infinite;
}

/* ---------- Introduction ---------- */
.intro {
  padding: var(--section) var(--gutter);
}

.intro__text {
  display: grid;
  gap: 1.1em;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}


/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--section) var(--gutter);
  background: var(--mist);
}

.contact__w {                /* charter graphic element: the W as a line */
  position: absolute;
  z-index: -1;
  top: -24%;
  right: 5%;
  height: 112%;
  width: auto;
  color: var(--paper);
  pointer-events: none;
}

.section-label {
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--navy);
}

.contact__details {
  display: grid;
  gap: 1.6em;
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.4375rem);
  font-weight: 300;
  line-height: 1.6;
}
.contact__details strong { font-weight: 500; }
.contact__line { display: block; }
.sep {
  display: inline-block;
  margin-inline: 0.55em;
  color: var(--grey);
}
.contact__details a { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem var(--gutter);
  background: var(--paper);
  color: var(--grey);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.site-footer a { color: var(--navy); }

/* ---------- Legal page ---------- */
.page-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3.75rem, 2rem + 6vw, 6.5rem) var(--gutter);
  background: var(--navy);
  color: var(--paper);
  text-align: center;
}
.page-band__w {
  position: absolute;
  z-index: -1;
  top: -52%;
  right: 6%;
  height: 142%;
  width: auto;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.page-band h1 {
  font-size: var(--fs-title);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.legal {
  padding: clamp(4rem, 2.5rem + 6vw, 7.5rem) var(--gutter) clamp(5rem, 3rem + 8vw, 9rem);
}
.legal__body {
  display: grid;
  gap: 1.35em;
  color: var(--grey);
  text-wrap: pretty;
  hyphens: auto;
}
.legal__body .lead {
  margin-bottom: 0.4em;
  color: var(--navy);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
  font-weight: 300;
  line-height: 1.5;
  hyphens: manual;
}

/* ---------- Motion ---------- */
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

/* ---------- Small screens ---------- */
@media (max-width: 40em) {
  .hero { height: max(30rem, 78svh); }
  .hero__media img { object-position: 64% 50%; }
  .contact__w { top: -20%; right: -6%; height: 52%; }
  .page-band__w { right: -8%; }
  .contact__details .sep--wrap { display: none; }
  .contact__details .wrap-sm { display: block; }
  .site-footer__inner { justify-content: flex-start; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero__cue, .contact__w, .page-band__w, .skip-link { display: none !important; }
  .hero { height: auto; padding: 2rem 0; background: var(--paper); color: var(--navy); }
  .hero__media, .hero::after { display: none; }
  .contact { background: none; }
  body { font-size: 11pt; }
}
