/* ==========================================================
   Chromatick Design Studio — holding page
   Layers on top of Bootstrap 5
   ========================================================== */

/* ---------- Fonts: Instrument Sans ---------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red: #be202e;
  --white: #ffffff;
  --black: #000000;

  /* the “tick” — stepped fade from white to brand red */
  --tick-1: #ffffff;
  --tick-2: #fce4e6;
  --tick-3: #f8bdc4;
  --tick-4: #f38a98;
  --tick-5: #f06677;
  --tick-6: #ee3b4c;

  --gutter: 30px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.holding {
  min-height: 100vh;
  min-height: 100svh;
  padding: 44px var(--gutter) var(--gutter);
  gap: 0;
}

/* Mobile order: logo → title → intro → (space) → CTA → icons */
.holding__logo   { order: 1; }
.holding__title  { order: 2; }
.holding__intro  { order: 3; display: contents; }
.holding__social { order: 5; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}
.logo__mark {
  font-weight: 600;
  font-size: 36px;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.logo__i {
  display: inline-block;
  color: transparent;
  background: linear-gradient(to bottom,
    var(--tick-2) 0 17%, var(--tick-3) 17% 34%, var(--tick-4) 34% 51%,
    var(--tick-5) 51% 68%, var(--tick-6) 68% 85%, transparent 85%);
  -webkit-background-clip: text;
          background-clip: text;
  margin: 0 .02em;
}
.logo__sub {
  /*margin-top: 12px;*/
  margin-top: 6px;
  font-weight: 400;
  font-size: 10.5px;
  /*letter-spacing: .62em;*/
  letter-spacing: .9em;
  padding-left: .62em;
  color: #f4838e;
}

/* ---------- Headline ---------- */
.holding__title {
  margin: 0;
  font-weight: 700;
  font-size: 18.8vw;
  line-height: .96;
  letter-spacing: -.012em;
  text-transform: uppercase;
  white-space: nowrap;
}
.holding__title { margin-top: clamp(56px, 12vh, 160px); }

/* the stepped “I” */
.tick {
  display: inline-block;
  color: transparent;
  line-height: 1;
  background: linear-gradient(to bottom,
    transparent 0 14%,
    var(--tick-1) 14% 26%, var(--tick-2) 26% 38%, var(--tick-3) 38% 50%,
    var(--tick-4) 50% 62%, var(--tick-5) 62% 74%, var(--tick-6) 74% 86%, transparent 86%);
  -webkit-background-clip: text;
          background-clip: text;
}

/* ---------- Intro ---------- */
.intro__text {
  order: 3;
  margin: 30px 0 0;
  font-weight: 400;
  font-size: clamp(18px, 4.1vw, 26px);
  line-height: 1.6;
  max-width: 17.5em;
}

/* ---------- CTA button ---------- */
.btn-cta {
  order: 4;
  margin-top: auto;           /* eats the free vertical space on mobile */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /*min-height: 97px;*/
  min-height: 70px;
  padding: 0 31px;
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font-weight: 500;
  font-size: clamp(15px, 3.4vw, 20px);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: var(--white);
  color: var(--red);
}
.btn-cta:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn-cta__arrow { flex: none; transition: transform .2s ease; }
.btn-cta:hover .btn-cta__arrow { transform: translateX(4px); }

/* ---------- Social ---------- */
.holding__social {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}
.social__btn {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  background: var(--black);
  color: var(--white);
  transition: background-color .2s ease, color .2s ease;
}
.social__btn svg { width: 46px; height: 46px; }
.social__btn .cut { stroke: var(--black); transition: stroke .2s ease; }
.social__btn:hover .cut, .social__btn:focus-visible .cut { stroke: var(--white); }
.social__btn:hover, .social__btn:focus-visible { background: var(--white); color: var(--red); }
.social__btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  :root { --gutter: 22px; }
  .btn-cta { min-height: 76px; padding: 0 22px; letter-spacing: .12em; }
  .social__btn { width: 56px; height: 56px; }
  .social__btn svg { width: 36px; height: 36px; }
  .holding__social { gap: 22px; }
}

/* ==========================================================
   Desktop / tablet landscape (≥ 768px)
   Grid: logo | intro on top, huge title bottom-left, icons bottom-right
   ========================================================== */
@media (min-width: 768px) {
  :root { --gutter: 3.4vw; }

  .holding {
    display: grid !important;           /* overrides Bootstrap’s d-flex */
    grid-template-columns: 1fr minmax(280px, 26.4vw);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "logo  intro"
      ".     ."
      "title title";
    padding: 3.4vw var(--gutter) 2.4vw;
    column-gap: 2vw;
  }

  .holding__logo  { grid-area: logo; order: 0; }
  .holding__intro { grid-area: intro; display: block; order: 0; }
  .holding__title { grid-area: title; order: 0; margin: 0; align-self: end; }
  .holding__social {
    grid-area: title;                   /* sits on the title’s row, bottom-right */
    align-self: end;
    justify-self: end;
    order: 0;
    margin: 0 0 .9vw;
    gap: .9vw;
  }

  .logo__mark { font-size: clamp(30px, 2.85vw, 60px); }
  .logo__sub  { 
    /*margin-top: .6vw; */
    margin-top: .2vw; 
    font-size: clamp(8px, .72vw, 15px); 
  }

  .holding__title { font-size: 13.65vw; line-height: .93; }

  .intro__text {
    margin: 0 0 1.9vw;
    font-size: clamp(15px, 1.5vw, 32px);
    line-height: 1.4;
    max-width: none;
  }

  .btn-cta {
    /*min-height: clamp(56px, 4.45vw, 96px);*/
    min-height: clamp(40px, 4.45vw, 75px);
    padding: 0 1.3vw 0 1.1vw;
    font-size: clamp(12px, 1vw, 22px);
    letter-spacing: .14em;
  }
  .btn-cta__arrow { width: clamp(18px, 1.15vw, 26px); height: auto; }

  .social__btn { width: 3.1vw; height: 3.1vw; min-width: 40px; min-height: 40px; }
  .social__btn svg { width: 66%; height: 66%; }
}

/* very wide screens: keep things from stretching past the design */
@media (min-width: 2200px) {
  .holding { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
