/* ========================================
   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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  background: url("./images/noise_1.jpg");
  background-size: 100vw 100vh;
  background-repeat: no-repeat;

  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
}

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: "RokkittBold", sans-serif;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 1em;
  margin-top: 1em;
}

h2 {
  font-size: 3rem;
}
h3 {
  font-size: 2rem;
}

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;
}

nav {
  width: 100%;
  height: 100%;
}


/* ========================================
   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: "RokkittBold";
  src: url("./fonts_web/Rokkitt-Bold___version_2.woff2") format("woff2");
  /* 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
======================================== */
:root {
  --bg:        rgb(255, 228, 181);
  --bg_action: #323a31;
  --accent:    rgb(253, 237, 209);
  --text:      #323a31;
  --text-soft: #2d332d;
  --border:    rgb(220 196 153);
  --terracotta:#A6533C;
  --padding_menu: 2rem;
  --header-menu-height: 6rem;
  --menu-height: calc(100vh - var(--header-menu-height));
}
body {
  background-color: var(--bg);
  background-size: 100vw 100vh;
  background-blend-mode: normal, soft-light;
}

main > #wrapper > section {
  width: 100%;
  background-color: var(--accent);
  padding: 3rem 1rem;
}
main > #wrapper > section > header > * {
  margin-bottom: 1rem;
}

#wrapper {
  max-width: 100vw;
}

#wrapper > section {
  margin-top: 11rem;
}

@media (min-width: 80rem) {
  body {
  }
  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;
}
/* ========================================
   Scroll to top
======================================== */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;

  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);

  font-size: 22px;
  line-height: 1;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }
}
/* ========================================
   HEADER
======================================== */

#site-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  height: var(--header-menu-height);
  background: #f6efdb;
  border-bottom: 1px solid var(--border);
  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: 5rem;
}
#site-header #site-header-logo > svg {
  width: 100%;
}
.nav {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  max-width: 72rem;
  height: 100%;
  margin-inline: auto;
}



/* ========================================
   MENU TOGGLE
======================================== */
.menu-toggle-wrap {
  /* margin-right: var(--padding_menu); */
  width: 7rem;
  height: 6rem;
}

.menu-toggle {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  padding: 0;
  border: 0;
  background: transparent;

  cursor: pointer;
}

.menu-toggle__icon {
  width: 28px;
  height: 28px;

  overflow: visible;
}

.menu-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;

  transform-box: fill-box;
  transform-origin: center;

  transition:
    transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.2s ease;
}

/* OPEN */

.menu-toggle[aria-expanded="true"]
  .menu-line--top {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]
  .menu-line--middle {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]
  .menu-line--bottom {
  transform: translateY(-6px) rotate(-45deg);
}

body:has(.menu-toggle[aria-expanded="true"]) {
  overflow: hidden;
}

.menu-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;

  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Avoid glitch when clicking on menu anchors  */
#site-header.menu-navigating #main-menu{
  animation: none !important;
}

#main-menu {
  position: absolute;
  /* z-index: ; */
  top: 100%;
  left: 0;
  width: 100%;
  height: var(--menu-height);
  padding: 4rem 1rem;
  overflow: hidden;
  background-color: var(--bg_action);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

#main-menu ul {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
#main-menu ul > li {
  width: fit-content;

  font-family: "RokkittBold", sans-serif;
  font-size: 3.2rem;
}

#main-menu ul > li a {
  background-image: none;
  color: var(--accent);
}
.menu-wrap {
  
}

#site-header:has(.menu-toggle[aria-expanded="true"]) #main-menu {
  animation: menu-open 300ms ease-out forwards;
}

@keyframes menu-open {
  0% {
    transform: scaleY(0);
  }

  65% {
    transform: scaleY(1.035);
  }

  82% {
    transform: scaleY(0.992);
  }

  92% {
    transform: scaleY(1.006);
  }

  100% {
    transform: scaleY(1);
  }
}

#site-header.menu-closing #main-menu {
  animation: menu-close 250ms ease-in forwards;
}

@keyframes menu-close {
  from {
    transform: scaleY(1);
  }

  to {
    transform: scaleY(0);
  }
}


#main-menu ul > li {
  opacity: 0;
}

#site-header:has(.menu-toggle[aria-expanded="true"]) #main-menu ul > li {
  animation: menu-content-open 500ms ease-out forwards;
}

@keyframes menu-content-open {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#site-header.menu-closing #main-menu ul > li {
  animation: menu-content-out 60ms ease-in forwards;
}

@keyframes menu-content-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
/* ========================================
   Menu DESKTOP
======================================== */

@media (min-width: 80rem) {
    #site-header {
    height: 4rem;
  }

  #site-header > nav {
    padding: 0 2rem;
  }

  .nav {
    flex-wrap: nowrap;
    padding-block: 1.25rem;
  }

  .menu-toggle {
    display: none;
  }

  #main-menu {
    flex-basis: auto;
    height: auto;
    padding: 0;
    overflow: visible;

    transform: none;
    animation: none !important;
  }

  #main-menu ul {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  #main-menu ul > li {
    margin: 0 1rem;
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
  

/* --------- */
/* Time header */

#site-header  a {
  background-image:unset;
}

#site-header-logo-clock > svg {
}
#site-header-logo-clock{
  display:flex;
  flex-direction:column;
  align-items: center;
  font-size: 0.6rem;
  padding: 0 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: 80rem) {
    /* 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;
    }
}