/* ========================================
   RESET
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-family: "Sen", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  background: #fffcf4;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;

  /* visibility: hidden; */
}

/* html.fonts-loaded {
  visibility: visible;
} */

body {
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Rokkitt", sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 100;
  text-wrap: balance;
}

h2, h3 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
p {
  margin-top: 1em;
  text-wrap: pretty;
}

h1 {
  display: inline-block;
  position: relative;
}
em {
  font-style: normal;
  background-image: linear-gradient(
    to bottom,
    transparent 91%,
    #c1c7c0 89%,
    #c1c7c0 94%,
    transparent 94%
  );
}
a {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  font-style: normal;

  background-image: linear-gradient(
    to bottom,
    transparent 92%,
    #1e241d 92%,
    #1e241d 100%
  );
}

ul,
ol {
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
}

textarea {
  resize: vertical;
}

code {
  font-family: "FiraCode", monospace;
}


/* ========================================
   FONTS
======================================== */

@font-face {
  font-family: "Mistral";
  src: url("./fonts_web/Mistral___version_2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Rokkitt";
  src: url("./fonts_web/Rokkitt-Medium___version_2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Sen";
  src: url("./fonts_web/Sen-Regular___version_2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NotoSans";
  src: url("./fonts_web/NotoSans-Regular___version_2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "FiraCode";
  src: url("./fonts_web/FiraCode-VariableFont_wght___version_2.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
}



/* ========================================
   GENERAL
======================================== */

main > #wrapper > section {
  width: 100%;
}
main > #wrapper > section > header > * {
  margin-bottom: 1rem;
}
#wrapper {
  padding: 1rem;
  max-width: 100vw;
}

#wrapper > section {
  margin-top: 11rem;
}

@media (min-width: 48rem) {
  a {
    font-weight: 600;
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: left bottom;
    
    transition: background-size 180ms cubic-bezier(0.16, 1, 0.3, 1);
  }
    #wrapper {
      padding: 2rem 19vw;
    }
    
    #wrapper > section {
      margin-top: 5rem;
    }
    a:hover {
      background-size: 100% 100%;
    }
  }

  .is-hidden {
    display: none;
  }
  /* ------------- */
  /* Footer */

  footer {
    font-size: 0.9rem;
    background-color: #ffffff;
    padding: 1em 1em;
  }
  
  footer li {
    margin: 0.6em 0;
  }
  
  #footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
  }
  
  #footer-container > div {
    margin-top:2rem;
  }
  #footer-nav {
    border-top: 1px solid #e6e0e0;
    display:flex;
    grid-column: 1 / 5;
    grid-row: 2;
  }
  #footer-winzii > .winzii-handwritten {
    font-size: 2.4rem;
  }
  #footer-winzii {
    display:flex;
    flex-direction: column;
    grid-column: 1 / 5;
    grid-row: 1;
  }
  #footer-nav-legal-info {
    border-top: 1px solid #e6e0e0;
    display:flex;
    flex-direction: column;
    grid-column: 1 / 5;
    grid-row: 3;
  }
  #footer-copyright {
    display: flex;
    gap: 0.5rem;
    align-items: end;
    grid-column: 1 / 6;
    grid-row: 4;
  }
  #footer-copyright > img{
    height: 1.5rem;
    width:auto;
  }
  
.winzii-handwritten {
  font-weight: 100;
  font-family: "Mistral", monospace;
}
/* ========================================
   HEADER
======================================== */

#site-header {
  position:fixed;
  z-index: 10;
  top:0;
  background: #f6efdb;
  border-bottom: 1px solid #090909;
  left: 0;
  width: 100%;
  transform: translateY(0);
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#site-header.header-hidden {
  transform: translateY(-100%);
}

#site-header-logo {
  width: 2rem;
  height: 2rem;
}
#site-header #site-header-logo > svg {
  width: 100%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;

  max-width: 72rem;
  margin-inline: auto;
  padding: 0.6rem 1rem;
}



/* ========================================
   MENU TOGGLE
======================================== */

.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  position: absolute;
  width: 1.5rem;
  height: 2px;
  border-radius: 999px;
  background: #111;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}


.menu-wrap {
  flex-basis: 100%;
  height: 0;
  overflow: hidden;
}

#site-header > nav {
  max-height: 100%;
}

#site-header-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem 1.25rem;
}

#site-header-menu  a{
  font-family: "FiraCode", sans-serif;
  font-weight: 200;
}

.menu-wrap.is-open .menu {
  visibility: visible;
  transform: translateY(0);
}

.menu a {
  display: block;
  padding-block: 0.5rem;

  color: #333;
}

.menu a:hover {
  color: #000;
}

/* ========================================
   Menu DESKTOP
======================================== */

@media (min-width: 48rem) {
  #site-header {
    height: 4rem;
  }
  #site-header > nav {
    padding: 0 2rem;
    
  }
  #site-header > nav > .menu-wrap > ul > li {
    margin: 0 1rem;
  }
  #site-header-menu {
    flex-direction:row;
  }
  .nav {
    flex-wrap: nowrap;
    padding-block: 1.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .menu-wrap {
    flex-basis: auto;
    height: auto !important;
    overflow: visible;
  }

  .menu {
    flex-direction: row;
    gap: 2rem;

    padding: 0;

    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  
}

/* --------- */
/* Time header */

#site-header-logo-clock > a{
  background-image:unset;
}

#site-header-logo-clock{
  display:flex;
  flex-direction:column;
  align-items: center;
  font-size: 0.6rem;
}
#header-clock .time-hours {
  font-family: "FiraCode";
}

#header-clock .time-minutes {
  font-family: "FiraCode";
}

#header-clock .time-seconds {
  font-family: "FiraCode";
}

#header-clock .time-separator {
  font-family: "FiraCode";
  font-size: 0.3rem;
}

#header-clock {
  font-family: "FiraCode", monospace;
  color: #333;
}

.menu-toggle[aria-expanded="true"] ~ #header-clock {
  margin-left: auto;
}


/* ---------- */
/* Browser bar */
.browser-bar {
  height: 5vh;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: linear-gradient(to bottom, #fafafa, #eeeeee);
  border-bottom: 1px solid #d8d8d8;
}

.dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.dots span:nth-child(1) {
  background: #ff5f57;
}

.dots span:nth-child(2) {
  background: #febc2e;
}

.dots span:nth-child(3) {
  background: #28c840;
}

.browser-controls {
  display: flex;
  gap: 6px;
  color: #777;
  font-size: 17px;
}

.browser-controls span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.address-bar {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 0 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;

  background: #fff;
  color: #777;

  font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(0, 0, 0, 0.03);
}

.address-bar .lock {
  font-size: 11px;
  color: #999;
}

/* -------- */
/* Card */
 
.card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 2px 12px 9px 8px rgba(0, 0, 0, 0.05);
  border: solid 1px #e4e4e4;
}

  /* Card animation Right to left */
  .card {
    position: relative;
    overflow: hidden;
    transform: translateX(0);
    opacity: 1;
  }
  
  .card-slider {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  /* Both cards occupy exactly the same space */
  .portfolio-card {
    position: absolute;
    inset: 0;
    width: 100%;
  
    border-radius: 16px;
    background: #fff;
    box-shadow: 2px 12px 9px 8px rgba(0, 0, 0, 0.05);
    border: solid 1px #e4e4e4;
  
    transform: translateX(100%);
    transition: transform 600ms cubic-bezier(.65, 0, .35, 1);
  
    will-change: transform;
  }
  
  /* The first card is visible initially */
  #portfolio-card-current {
    position: relative;
    transform: translateX(0);
    z-index: 2;
  }
  
  /* Second card starts outside on the right */
  #portfolio-card-next {
    transform: translateX(100%);
    z-index: 1;
  }


.hero-1 {
  color: white;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid #090909;
  width: 100%;
  /* [!] vh does not take into account the mobile browser UI which is at the bottom/top */
  height: 100vh;
}
/* Hero */
#hero-1-index {
  background-image: url("./images/pine_forest___version_2.avif");
  
}

#hero-1-about {
  background-image: url("./images/hero_1_team___version_2.avif");
  background-repeat: no-repeat;
  background-position: 68% 40%;
}

.hero-1 > h1 {
  margin-left: 1rem;
  font-size: 1.8rem;
  font-family: "Sen", monospace;
  /* line-height: 1.6em; */
  grid-column: 1 / 5;
  grid-row: 4;
}

#hero-1-about > h1 {
  /* font-size: 3.5rem;
  margin-left: 1rem;
  font-size: 1.1rem;
  line-height: 1.6em;
  grid-column: 1 / 3;
  grid-row: 4; */
}

#hero-h1-winzii-handwritten {
  display: flex;
  align-items: end;
  margin-left: 1rem;
  grid-column: 1 / 3;
  grid-row: 3; 
}

#hero-h1-winzii-handwritten > h2 {
  font-size: 3.5rem;
}

#winzii-hero-2-brand-logo-animation {
  width: 9rem;
}
#winzii-hero-2-visual {
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#hero-logo-img {
  width: 10rem;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
}
/* ------------- */
/* After Hero */
#winzii-hero-2 a {
  font-size: 1rem;
  margin-top: 1em;
}
#winzii-hero-2 {
  background-color: #ffffff;
  box-shadow: 2px 1px 2px 2px rgba(0, 0, 0, 0.05);
  padding: 2rem 1rem;
}
#winzii-h1-p {
  font-size: 1rem;
  font-family: "Sen", monospace;
  font-style: italic;
  margin-bottom: 1em;
  /* border: 1px solid #f2f2f2; */
}


#winzii-contact-us {
  display:flex;  
  flex-direction: column;
}

#winzii-website-targets-header-p{
  font-family: "FiraCode", sans-serif;
  font-size: 1rem;
}
/* ------------------- */
/* Contact form */
#contact {
  scroll-margin-top: 100px;
}
.form {
  padding: 1rem 0.2rem;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  border: 1px solid #373f2d40;
}
.form label {
  font-family: "Sen", sans-serif;;
  
}
.form-field {
  display:flex;
  flex-direction:column;
}
  /* ------------------- */
  /* Contact form */
  #form-contact-header-visual {
    display: flex;
    flex-direction: column;
  }
  #form-contact-header-visual .winzii-handwritten {
    font-size:1.1rem;
    margin-left: 1em;
  }
  #form-contact-logo {
    width: 5rem;
  }
  #form-contact label{
    font-family: "FiraCode", sans-serif;;
  }
  #form-contact-brand-handwritten {
    width: 5rem;
    height: auto;
    margin-bottom: 1rem;
  }

  
  
  
  /* -------------------- */
  /* DESKTOP INDEX page*/
  @media (min-width: 48rem) {
    /* Menu Clock */
    #site-header-logo-clock {
      font-size: 0.8rem;
    }
    
    #header-clock .time-separator {
      font-family: "FiraCode";
      font-size: 0.8rem;
    }
    /* Hero 1 */
    #hero-1-index >  h1 {
        grid-row: 5; 
    }
    #hero-1-about >  h1 {
      grid-row: 5; 
    }
    /* ------------- */
    /* Index hero 1 */
    #hero-h1-winzii-handwritten {
      grid-row: 4; 
    }
    /* ------------- */
    /* Index Targets */
    #winzii-website-targets {
      display: grid;
      grid-template-columns: 10% 50%;
      grid-template-rows: auto auto auto auto;
    }
    #winzii-website-targets > header {
      grid-column: 1 / 3;
      grid-row: 1; 
    }
    #winzii-website-targets p:nth-of-type(1) {
      grid-column: 2;
      grid-row: 2; 
    }
    #winzii-website-targets p:nth-of-type(2) {
      grid-column: 2;
      grid-row: 3; 
    }
    #winzii-website-targets p:nth-of-type(3) {
      grid-column: 2;
      grid-row: 4; 
    }
    #winzii-website-targets  .card-slider {
      grid-column: 2;
      grid-row: 5; 
      width:22rem;
    }
    /* Footer */
    #footer-winzii {
      grid-column: 1;
    }
    #footer-nav {
      grid-column: 4;
      border: none;
    }
    #footer-nav-legal-info {
      border: none;
      grid-column: 4;
    }
}