/* =============================================================
   KIANIRO · about.css
   About page. Loaded after ../style.css, which already holds the
   tokens, base styles, buttons, header, menus, cart and footer; this
   file only adds what is unique to this page.

   TABLE OF CONTENTS
     01  Hero: the name first, a giant 1387 behind it
     02  Manifesto (words light up while scrolling)
     03  Story timeline (a line that draws itself)
     04  Numbers
     05  Values
     06  Brands
     07  Visit the store
     08  Toast
     09  Responsive
   ============================================================= */


/* =============================================================
   01  HERO
   ============================================================= */
.ahero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px); display: grid; align-items: end;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 100px);
}
/* founding year, drawn as an outline far behind the copy */
.ahero__year {
  position: absolute; z-index: -1; left: -2vw; bottom: -6vw;
  font-size: clamp(180px, 30vw, 480px); font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(10, 27, 46, .1);
  pointer-events: none; user-select: none; will-change: transform;
}
.ahero::before {   /* soft ember glow */
  content: ""; position: absolute; z-index: -2; width: 60vw; height: 60vw; left: -10vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 101, 42, .08), transparent);
}
.ahero__title { margin: 24px 0 22px; font-size: clamp(46px, 7vw, 112px); font-weight: 200; line-height: 1.18; }
.ahero__title b { font-weight: 800; }
.ahero__lead { max-width: 54ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 2.05; color: var(--slate); }
.ahero__down {
  display: grid; place-items: center; width: 54px; height: 54px; margin-top: 36px; border-radius: 50%;
  border: 1px solid var(--hair-2); color: var(--ink); transition: background-color .4s, color .4s, border-color .4s;
}
.ahero__down .ico { animation: aDown 2.2s ease-in-out infinite; }
@keyframes aDown { 50% { transform: translateY(5px); } }
@media (hover: hover) { .ahero__down:hover { background: var(--ink); border-color: var(--ink); color: #fff; } }


/* =============================================================
   02  MANIFESTO
   ============================================================= */
.manifesto {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: start; gap: 32px clamp(40px, 6vw, 96px);
  padding-block: clamp(70px, 9vw, 130px); border-top: 1px solid var(--hair);
}
.manifesto__quote { font-size: clamp(26px, 3.2vw, 46px); font-weight: 300; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.manifesto__quote b { font-weight: 800; }
.manifesto__quote .w { opacity: .14; transition: opacity .3s; }   /* words are lit by about.js as you scroll */
.manifesto__side { display: grid; gap: 16px; padding-top: 14px; border-top: 2px solid var(--ember); }
.manifesto__side p { font-size: 15.5px; line-height: 2.1; color: var(--slate); }


/* =============================================================
   03  STORY TIMELINE
   ============================================================= */
.story { padding-bottom: clamp(70px, 9vw, 130px); }
.sec-head-a { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-title-a { margin-top: 18px; font-size: clamp(32px, 4.2vw, 60px); font-weight: 200; line-height: 1.3; }
.sec-title-a b { font-weight: 800; }

.tline { position: relative; display: grid; gap: clamp(20px, 3vw, 40px); list-style: none; }
.tline__rail { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--hair); border-radius: 2px; }
.tline__rail i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--ember), #FFB27A); border-radius: inherit; }

.tstep { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.tstep__card { grid-column: 1; margin-inline-end: clamp(32px, 4vw, 64px); }
.tstep:nth-child(odd) .tstep__card { grid-column: 2; margin-inline: clamp(32px, 4vw, 64px) 0; }   /* alternate sides */
.tstep__dot {
  position: absolute; left: 50%; top: 34px; z-index: 1; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--porcelain); border: 2px solid var(--hair-2);
  transition: background-color .5s, border-color .5s, box-shadow .6s var(--ease-out);
}
.tstep.is-on .tstep__dot { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 7px rgba(229, 101, 42, .15); }

.tstep__card {
  padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: var(--pearl); border: 1px solid var(--hair);
  transition: border-color .6s, box-shadow .8s var(--ease-out), transform .8s var(--ease-out);
}
@media (hover: hover) { .tstep__card:hover { border-color: var(--hair-2); box-shadow: 0 40px 80px -60px rgba(10, 27, 46, .5); transform: translateY(-4px); } }
.tstep__year { font-size: clamp(28px, 2.8vw, 40px); font-weight: 200; line-height: 1.3; color: var(--ember); }
.tstep__card h3 { margin: 8px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.6; color: var(--ink); }
.tstep__card p:last-child { font-size: 15px; line-height: 2.05; color: var(--slate); }
.brandname { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* the future: a dark card */
.tstep--future .tstep__card {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(29, 79, 130, .6), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(229, 101, 42, .22), transparent 70%),
    #07121F;
  border-color: transparent;
}
.tstep--future h3 { color: #F2F5F9; }
.tstep--future .tstep__card p:last-child { color: #A8B7C7; }
.tstep--future .tstep__dot { border-style: dashed; }


/* =============================================================
   04  NUMBERS
   ============================================================= */
.anums__in {
  --t1: #F2F5F9; --t2: #A8B7C7;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: clamp(30px, 4vw, 56px) clamp(20px, 3vw, 44px); border-radius: 32px; color: var(--t2);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(29, 79, 130, .55), transparent 70%),
    radial-gradient(50% 120% at 0% 100%, rgba(229, 101, 42, .2), transparent 70%),
    #07121F;
}
.anum { display: grid; align-content: start; gap: 6px; padding-inline: clamp(12px, 2vw, 32px); border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.anum:first-child { border: 0; }
.anum b { font-size: clamp(44px, 5vw, 76px); font-weight: 200; line-height: 1.1; color: var(--t1); font-variant-numeric: tabular-nums; }
.anum span { font-size: 13.5px; line-height: 1.9; }


/* =============================================================
   05  VALUES
   ============================================================= */
.values { padding-block: clamp(70px, 9vw, 130px); }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vcard {
  display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; border-radius: 26px;
  background: var(--pearl); border: 1px solid var(--hair);
  transition: border-color .6s, box-shadow .8s var(--ease-out), transform .8s var(--ease-out);
}
.vcard__ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 18px; background: var(--porcelain); color: var(--ember); transition: background-color .5s, color .5s, transform .7s cubic-bezier(.3, 1.6, .5, 1); }
.vcard h3 { font-size: 18px; font-weight: 800; color: var(--ink); }
.vcard p { font-size: 14.5px; line-height: 2; color: var(--slate); }
@media (hover: hover) {
  .vcard:hover { border-color: var(--hair-2); box-shadow: 0 40px 80px -60px rgba(10, 27, 46, .5); transform: translateY(-5px); }
  .vcard:hover .vcard__ico { background: var(--ink); color: #fff; transform: rotate(-8deg) scale(1.06); }
}


/* =============================================================
   06  BRANDS
   ============================================================= */
.brands { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 32px clamp(40px, 6vw, 96px); padding-bottom: clamp(70px, 9vw, 130px); }
.brands__copy > p:last-child { margin-top: 14px; max-width: 44ch; font-size: 15.5px; line-height: 2.05; color: var(--slate); }
.blist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.bmark {
  display: grid; justify-items: center; align-content: center; gap: 8px; aspect-ratio: 1 / .9; padding: 14px;
  border-radius: 24px; background: var(--pearl); border: 1px solid var(--hair); text-align: center;
}
.bmark b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: .04em; color: var(--mist); }
.bmark span { font-size: 12px; color: var(--mist); }
.bmark--now { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 27, 46, .05); }
.bmark--now b { color: var(--ink); }
.bmark--now span { color: var(--ember); font-weight: 600; }


/* =============================================================
   07  VISIT THE STORE
   ============================================================= */
.visit { padding-bottom: clamp(70px, 9vw, 120px); }
.visit__card {
  --t1: #F2F5F9; --t2: #A8B7C7;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: center; gap: 28px;
  padding: clamp(30px, 4.6vw, 64px); border-radius: 32px; color: var(--t2);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(29, 79, 130, .6), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(229, 101, 42, .22), transparent 70%),
    #07121F;
}
.visit__title { margin-top: 16px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; color: var(--t1); }
.visit__sub { margin-top: 2px; font-size: 14.5px; color: var(--ember); font-weight: 600; }
.visit__addr, .visit__hours { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 15.5px; line-height: 2; }
.visit__addr { color: var(--t1); }
.visit__addr .ico, .visit__hours .ico { flex: none; margin-top: 7px; color: var(--ember); }
.visit__hours { margin-top: 6px; font-size: 14px; }
.visit__acts { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 26px; }
.visit__copybtn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding-inline: 20px; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--t1); font-size: 14px; font-weight: 500;
  transition: background-color .4s, border-color .4s;
}
@media (hover: hover) { .visit__copybtn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); } }
.visit__tel { font-family: var(--f-mono); font-size: 18px; letter-spacing: .04em; color: var(--t1); transition: color .4s; }
@media (hover: hover) { .visit__tel:hover { color: var(--ember); } }

/* the store pin with rings radiating from it */
.visit__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 300px; width: 100%; justify-self: center; }
.visit__ring { position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(229, 101, 42, .5); animation: aRing 3.2s ease-out infinite; }
.visit__ring--2 { animation-delay: 1.6s; }
@keyframes aRing { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.visit__pin { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: #F2F5F9; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 30px 60px -20px rgba(0, 0, 0, .6); }
.visit__pin img { width: 60px; height: 60px; }


/* =============================================================
   08  TOAST
   ============================================================= */
.atoast {
  position: fixed; z-index: 2100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding: 12px 20px; border-radius: 100px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  translate: -50% 20px; opacity: 0; pointer-events: none; transition: translate .6s var(--ease-out), opacity .4s;
}
.atoast.is-on { translate: -50% 0; opacity: 1; }


/* =============================================================
   09  RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anums__in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .anum:nth-child(3) { border: 0; }
}

@media (max-width: 900px) {
  .manifesto, .brands { grid-template-columns: minmax(0, 1fr); }
  .visit__card { grid-template-columns: minmax(0, 1fr); }
  .visit__art { display: none; }
  /* timeline: one column, the line runs down the right edge */
  .tline__rail { left: auto; right: 9px; margin: 0; }
  .tstep { grid-template-columns: minmax(0, 1fr); }
  .tstep__card, .tstep:nth-child(odd) .tstep__card { grid-column: 1; margin-inline: 40px 0; }
  .tstep__dot { left: auto; right: 1px; margin: 0; }
}

@media (max-width: 640px) {
  .ahero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
  .ahero__year { bottom: -2vw; font-size: 46vw; }
  .ahero__down { display: none; }
  .vgrid { grid-template-columns: minmax(0, 1fr); }
  .anums__in { border-radius: 24px; }
  .anum { padding-inline: 8px; }
  .blist { gap: 8px; }
  .bmark { border-radius: 18px; padding: 10px 6px; }
  .bmark span { font-size: 10.5px; }
  .visit__card { border-radius: 24px; }
  .visit__acts .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .ahero__down .ico, .visit__ring { animation: none; }
  .manifesto__quote .w { opacity: 1; }
}
