/* =========================================================
   LINK PAGE – styles.css
   Edit the TOKENS block below to restyle everything.
   Colours, radii, spacing and the bounce all live there.
   ========================================================= */

/* ---------- 0. FONTS ----------
   Knile (Black + Light) is self-hosted: put the files in /fonts.
   Lora Regular loads from Google Fonts in index.html.
*/
@font-face {
  font-family: "Knile";
  src: url("fonts/Knile-Black.woff2") format("woff2"),
       url("fonts/Knile-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Knile";
  src: url("fonts/Knile-Medium.woff2") format("woff2"),
       url("fonts/Knile-Medium.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Knile";
  src: url("fonts/Knile-Light.woff2") format("woff2"),
       url("fonts/Knile-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. TOKENS (edit these first) ---------- */
:root {
  /* Page */
  --color-bg: #DEE3E7;
  --color-text: #132B45;
  --color-text-muted: #244465;
  --font-title: "Knile", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Knile Black, weight 900 */
  --font-light: "Knile", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Knile Light, weight 300 */
  --font-body: "Lora", Georgia, "Times New Roman", serif;                           /* Lora Regular, weight 400 */

  /* Layout */
  --page-max-width: 1232px;
  --page-padding: 32px;
  --promo-gap: 16px;

  /* Promo box */
  --promo-radius: 24px;
    --promo-radius2: 24px;
    --promo-border: 4px;
  --promo-padding: 0 0 0 24px;
  --promo-min-height: 200px;
  --promo-shadow: 8px 10px 0 rgba(0, 0, 0, 1);
  --promo-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.14);

  /* Promo colours (one set per modifier class) */
  --promo-a-bg: #f3f4f7;
    --promo-a-bg2: #132B45;
    --promo-a-stroke: #132B45;
  --promo-a-text: #132B45;
  --promo-c-bg: #01D7C5;
  --promo-c-text: #132B45;
  --promo-b-bg: #F5F87C;
  --promo-b-text: #132B45;
    --promo-d-bg: #78CBCA;
  --promo-d-text: #132B45;

  /* Button */
  --button-bg: #132B45;
  --button-text: #DEE3E7;
  --button-radius: 999px;
  --button-padding: 8px 16px;

  /* Image slot */
  --media-width: 54%;
  --media-radius: 20px;

  /* Bounce (hover) */
  --bounce-duration: 0.35s;
  --bounce-easing: cubic-bezier(0.34, 2.2, 0.5, 1); /* overshoots, then settles = little bounce */
  --bounce-lift: 0px;

  /* Text link (replaces the button) */
  --link-gap: 8px;
  --link-icon-size: 1.25em;
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--color-bg);
    background-size: 90%;
    background-attachment: fixed;

  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.skyline{
   filter: blur(2px);
    position: fixed;
     left: 50%;
  transform: translateX(-50%);
    width: 100%;
    z-index: -1;
    max-width: 1600px;
}
.lampost{
filter: blur(12px);
    position: fixed;
    right: -600px;
    bottom: -200px;
    z-index: 1;
    max-width: 860px;
}
.lampost2{
filter: blur(12px);
    position: fixed;
    left: -350px;
    bottom: -140px;
    z-index: 1;
    max-width: 610px;

}

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

.page {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 32px var(--page-padding) 48px;
}

/* ---------- 3. INTRO ---------- */
.intro { margin-bottom: 48px; text-align: left; }

.intro__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.home-intro__image{
  margin:-40px 0 24px 0;
}
.home-intro__logo{
    width: 48px;
    position: fixed;
    top: 16px;
    left:16px
}
.intro__text {
  margin: 0;
  max-width: 48ch;
  font-family: var(--font-light);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--color-text-muted);
}

/* ---------- 4. PROMO BOXES ---------- */
.promos {
  display: flex;
  flex-direction: row;
  gap: var(--promo-gap);
}

.promo {
  /* Per-colour variables are set by the modifier classes below */
  background: var(--promo-text);
  --promo-text: var(--promo-text);
  border-radius: var(--promo-radius2);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  transition:
    transform var(--bounce-duration) var(--bounce-easing),
    box-shadow var(--bounce-duration) var(--bounce-easing);
  will-change: transform;
    color: var(--color-text);
    margin:0 0 0 8px;
    height:200px;
    text-decoration:none;

}
.promo__wrapper{
 --promo-bg: var(--promo-a-bg);
  --promo-text: var(--promo-a-text);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--promo-min-height);
  padding: var(--promo-padding);
  border-radius: var(--promo-radius);
  background: var(--promo-bg);
  border: 4px solid var(--promo-text);
        height:200px;
 margin:-6px 0 0 -6px;
 align-items: center;
  text-decoration:none;
    width: 100%;
    overflow: hidden;
  transition: margin var(--bounce-duration) var(--bounce-easing);
}

.promo__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.promo__label {
  /* Uses Knile Black (900), which is known to load. To use Knile Medium instead,
     upload fonts/Knile-Medium.woff2 (exact filename and case), then set
     font-family: var(--font-light) and font-weight: 600. */
  font-family: var(--font-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--promo-text);
  color: var(--promo-bg);
  padding: 4px 8px;
  border-radius: 4px;
}

.promo__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1rem, 3.6vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Text link with a Google Material "arrow_forward" icon.
   The arrow is drawn with a mask so it matches the text colour.
   To swap the icon, replace the path inside the url(...) below. */
.promo__link {
  display: inline-flex;
  align-items: center;
  gap: var(--link-gap);
  color: var(--promo-text);
  font-family: var(--font-title);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.promo__link::after {
  content: "";
  width: var(--link-icon-size);
  height: var(--link-icon-size);
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Image slot – drop any image in; it fills and crops to the box */
.promo__media {
  flex: 0 0 var(--media-width);
  overflow: hidden;
    margin-bottom:16px;

    display: flex;

    justify-content: center;
}

.promo__image {
  object-fit: cover;
  transition: transform var(--bounce-duration) var(--bounce-easing);
}

/* ---------- 5. HOVER / FOCUS / PRESS ---------- */
.promo div.promo__wrapper:hover {
 margin:0;
  transform: translateY(var(--bounce-lift));

}

.promo:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 0.12s;
}

.promo:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 4px;
}

/* ---------- 6. CONNECT ---------- */
.connect {     margin: 40px 0;
    text-align: center;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.connect__title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 900;
}

.connect__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connect__link {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.connect__link:hover { text-decoration-thickness: 2px; }

.promo--a div{  --promo-bg: var(--promo-a-bg); --promo-text: var(--promo-a-text) !important;  }
.promo--b div{  --promo-bg: var(--promo-b-bg); --promo-text: var(--promo-b-text) !important; }
.promo--c div{  --promo-bg: var(--promo-c-bg); --promo-text: var(--promo-c-text) !important; }
.promo--d div{  --promo-bg: var(--promo-d-bg); --promo-text: var(--promo-d-text) !important; }

.promo--a { background: var(--promo-a-text) !important;  }
.promo--b { background: var(--promo-b-text) !important; }
.promo--c { background: var(--promo-c-text) !important; }
.promo--d { background: var(--promo-c-text) !important; }





 :root {
    --promo-padding: 16px 16px 0; /* no bottom padding so the image sits flush with the bottom edge */
  }

  /* Outer box (holds the shadow): drop the fixed height */
  .promo {
    height: auto;
    min-height: 0;
    width:100%;
  }

  /* Inner box: stack the content, let the height follow the content.
     margin-bottom 6px offsets the -6px top margin so the outer box keeps
     its full height and the shadow strip still shows at the bottom. */
  .promo__wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    height: auto;
    min-height: 0;
    margin-bottom: 6px;
  }

  .promo__content {
    flex: none;
  }

  /* Image goes under the text at full width */
  .promo__media {
    flex: none;
    width: 100%;
  }

  .promo__image {
    width: 100%;
    height: auto;
  }


  @media (max-width: 1599px) {
.lampost{
 filter: blur(12px);
    position: fixed;
    right: -360px;
    bottom: -190px;
    z-index: 1;
    max-width: 640px;
}
.lampost2{
filter: blur(12px);
    position: fixed;
    left: -250px;
    bottom: -130px;
    z-index: 1;
    max-width: 500px;

}

   
    
  }
  @media (max-width: 1440px) {
.lampost, .lampost2{ display:none;}

.promo__wrapper{
  gap: 16px;
}

.promo__content {
  gap: 16px;
}

    }
@keyframes bounce {
  100% { transform: scale(1) }
}
/* ---------- 7. RESPONSIVE ---------- */
/* 768px and below: text first, image underneath, box height fits its content */

@media (max-width: 1360px) {
  :root {
    --promo-padding: 16px 16px 0; /* no bottom padding so the image sits flush with the bottom edge */
  }
  .page {
margin-left:80px;
margin-right:80px;
}
.intro__title {
  font-size: 2rem;
}
.promo__title {
 font-size: 1.3rem;
}
}
@media (max-width: 1024px) {
  .skyline{
display: none;
}
.promos {
  gap: 24px;
}
  .promo__title {
  font-size: clamp(1.3rem, 3.6vw, 1.4rem);
}
.intro__title {
  font-size: clamp(1.5rem, 6vw, 3rem);
}
  .page {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 32px var(--page-padding) 48px;
}

  .home-intro__logo{
   position: relative;
        top: 0;
        left: 0;
      margin: 0 0 24px -6px;
  }
  /* 1024px to 769px: two promos per row.
     Each promo has an 8px left margin, so: 2 x (50% - 20px + 8px) + 24px gap = 100% */
  .promos {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Outer box (holds the shadow): drop the fixed height */
  .promo {
    height: auto;
    min-height: 0;
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
  }

  /* Inner box: stack the content, let the height follow the content.
     margin-bottom 6px offsets the -6px top margin so the outer box keeps
     its full height and the shadow strip still shows at the bottom. */
  .promo__wrapper {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
    margin-bottom: 6px;
  }

  .promo__content {
    flex: none;
  }

  /* Image goes under the text at full width */
  .promo__media {
    flex: none;
    width: 100%;
  }

  .promo__image {
    width: 90%;
    height: auto;
  }


}

/* 768px and below: promos stack, one per row */
@media (max-width: 768px) {
  .promos {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .promo {
    flex: none;
    width: 100%;
  }
}

/* 1280px and above: centre the page content vertically in the browser.
   If the content is taller than the window it simply grows and scrolls as normal. */
@media (min-width: 1280px) {
  .page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---------- 8. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .promo,
  .promo__wrapper,
  .promo__image { transition: none; }

  .promo:hover,
  .promo:focus-visible,
  .promo:active { transform: none; }

  .promo:hover .promo__image,
  .promo:focus-visible .promo__image { transform: none; }
}