/* Fonts */
@font-face {
  font-family: "Neutral Face";
  src: url("fonts/NeutralFace.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Neutral Face";
  src: url("fonts/NeutralFace-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Terminal Grotesque";
  src: url("fonts/terminal-grotesque.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Old Round";
  src: url("fonts/OldRound-30-1-1.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }


body {
  position: relative;
  width: 1512px;
  height: 4822px;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    url("assets/paper-texture-long.png") -1032px -14px / 5142px 10284px no-repeat,
    url("assets/paper-texture-long.png") -1032px -14px / 5142px 10284px no-repeat,
    var(--c-bg);
  color: var(--c-ink);
}

a { color: inherit; text-decoration: none; }
img { display: block; }
em, mark { font-style: normal; }

.section {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 1;
}

.divider { position: absolute; height: 1px; }

.flower {
  position: absolute;
  left: 589.4px;
  top: 2703.2px;
  transform: rotate(-32.68deg);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { top: 0; height: 1262px; }

.nav {
  position: absolute;
  top: 129px;
  left: 471.5px;
  transform: translateX(-50%);
  display: flex;
  gap: 150px;
  padding: 0 10px;
  font-family: var(--f-round);
  font-size: 35px;
  line-height: normal;
  white-space: nowrap;
  z-index: 2;
}
.nav a { transition: color 0.3s ease; }
.nav a:hover,
.nav a:focus-visible { color: var(--c-green); }

.hero__title {
  position: absolute;
  left: 40px;
  top: 458.9px;
  width: 716px;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 50px;
  line-height: normal;
}
.hero__title em { font-family: var(--f-grotesk); }

.hero__star {
  position: absolute;
  left: 613.2px;
  top: 39.5px;
}

.hero__photo {
  position: absolute;
  left: 887px;
  top: 282px;
  width: 464px;
  aspect-ratio: 710 / 782;
  object-fit: cover;
}

.hero__arrow {
  position: absolute;
  left: 293.5px;
  top: 630.3px;
  pointer-events: none;
}

.hero__divider { left: -17px; top: 1261.5px; }

/* Discover my work */
.pill-btn {
  position: absolute;
  width: 350px;
  height: 101px;
}
.cta-works { left: 160px; top: 1035px; }

.pill-btn__fill {
  position: absolute;
  inset: 0 0 8px 0;
  background: var(--c-green);
  border-radius: 50px;
  transition: transform 0.2s ease;
}
.pill-btn__border {
  position: absolute;
  inset: 3px 4px 0 1px;
  border: 1px solid var(--c-ink);
  border-radius: 50px;
}
.pill-btn__label {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  font-family: var(--f-round);
  font-size: 25px;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
}


/* ---------- About ---------- */
.about { top: 1262px; height: 764px; }

.about__text {
  position: absolute;
  left: 161px;
  top: 208px;
  width: 1190px;
  margin: 0;
  font-family: var(--f-display);
  font-size: 35px;
  line-height: 45px;
}
.about__text em {
  font-family: var(--f-grotesk);
  font-size: 41px;
  text-transform: uppercase;
}
.about__text em.lg { font-size: 42px; }
.hl {
  background: var(--c-pink);
  color: inherit;
  padding: 2px 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.about__divider { left: -7px; top: 763px; }

/* ---------- Works ---------- */
.works { top: 2026px; height: 1662px; }

.works__heading {
  position: absolute;
  left: 181px;
  top: 123.8px;
  width: 1190px;
  margin: 0;
  font-family: var(--f-grotesk);
  font-weight: 400;
  font-size: 75px;
  line-height: 45px;
  text-align: right;
  text-transform: uppercase;
}

.project__num,
.project__name {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 75px;
  line-height: 45px;
  text-transform: uppercase;
  white-space: nowrap;
}
.project__num { left: 40px; width: 121px; height: 72px; }
.project__line { position: absolute; left: 61.2px; }

.project__media {
  position: absolute;
  overflow: hidden;
}
.project__media img {
  position: absolute;
  max-width: none;
}

/* (1) Action Job */
.project--1 .project__num { top: 392.2px; }
.project--1 .project__line { top: 472.4px; }
.project--1 .project__name { left: 866.9px; top: 400.9px; width: 494.2px; height: 73.1px; }
.project--1 .project__media { left: 291px; top: 199px; width: 353.8px; height: 353.8px; }
.project--1 .project__media img { left: -37.37%; top: 0; width: 174.83%; height: 116.52%; }

/* (2) BSFF */
.project--2 .project__num { top: 721.8px; }
.project--2 .project__line { top: 802.6px; }
.project--2 .project__name { left: 887px; top: 731.1px; width: 242.2px; height: 72.9px; }
.project--2 .project__media { left: 1129.2px; top: 731px; width: 307px; height: 307px; }
.project--2 .project__media img { left: -16.67%; top: 0; width: 133.33%; height: 100%; }

/* (3) Caveau de la Huchette */
.project--3 .project__num { top: 1131.1px; }
.project--3 .project__line { top: 1211.3px; }
.project--3 .project__name {
  left: 514.2px;
  top: 1067.8px;
  width: 599.6px;
  height: 147.1px;
  line-height: 74px;
  text-align: right;
  white-space: normal;
}
.project--3 .project__media { left: 209px; top: 1068px; width: 319px; height: 275px; }
.project--3 .project__media img { left: -25.36%; top: -8.36%; width: 151.1%; height: 116.82%; }

.works__divider { left: 0; top: 1661.2px; }

/* ---------- Contact ---------- */
.contact { top: 3688px; height: 912px; }

.contact__shape {
  position: absolute;
  left: 68px;
  top: 39px;
}

.contact__heading {
  position: absolute;
  left: 161px;
  top: 99px;
  width: 504px;
  margin: 0;
  font-family: var(--f-grotesk);
  font-weight: 400;
  font-size: 75px;
  line-height: normal;
  text-transform: uppercase;
}

.field,
.message-label {
  position: absolute;
  font-family: var(--f-round);
  font-size: 35px;
  line-height: 45px;
  color: var(--c-muted);
}

.field {
  left: 161px;
  width: 345px;
  height: 45px;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.field--name { top: 505px; }
.field--surname { top: 607px; }
.field--email { top: 709px; }

.field input,
.message {
  font-family: var(--f-round);
  color: var(--c-ink);
  background: transparent;
  border: 0;
  outline: none;
}
.field input {
  flex: 1;
  min-width: 0;
  font-size: 28px;
}

.field-line { position: absolute; left: 161px; }
.field-line--name { left: 164.5px; top: 546.5px; }
.field-line--surname { top: 652px; }
.field-line--email { top: 754px; }

.message-label { left: 625px; top: 498px; }

.message {
  position: absolute;
  left: 625px;
  top: 543px;
  width: 605px;
  height: 211px;
  padding: 12px 16px;
  border: 1px solid var(--c-muted);
  font-size: 24px;
  line-height: 1.4;
  resize: none;
}
.message:focus-visible,
.field:focus-within { outline: 2px solid var(--c-ink); outline-offset: 4px; }

.send-btn {
  position: absolute;
  left: 988px;
  top: 802px;
  width: 246px;
  height: 79px;
  padding: 0;
  border: 1px solid var(--c-ink);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
}
.send-btn__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 242px;
  height: 73px;
  background: var(--c-green);
  border-radius: 50px;
  transition: transform 0.2s ease;
}
.send-btn__label {
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  font-family: var(--f-round);
  font-size: 35px;
  line-height: 45px;
  text-transform: uppercase;
}
.send-btn:hover .send-btn__fill,
.send-btn:focus-visible .send-btn__fill { transform: translate(3px, 5px); }

.form-status {
  position: absolute;
  left: 161px;
  top: 823px;
  width: 800px;
  margin: 0;
  font-family: var(--f-round);
  font-size: 28px;
  line-height: 35px;
  color: var(--c-ink);
}

/* ---------- Footer ---------- */
.footer { top: 4600px; height: 222px; }

.footer__inner {
  position: absolute;
  left: 359px;
  top: 95px;
  width: 770px;
  height: 99px;
  font-family: var(--f-round);
  line-height: 45px;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 100px;
  height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 35px;
}
.footer__links li:nth-child(1) { width: 157px; }
.footer__links li:nth-child(2) { width: 191px; }
.footer__links li:nth-child(3) { width: 222px; }

.footer__legal {
  position: absolute;
  left: 319px;
  top: 65px;
  width: 156px;
  margin: 0;
  font-size: 20px;
  color: var(--c-muted);
}

/* ---------- Phones (up to 767px): the Figma layout is rebuilt as a normal stacked page ---------- */
@media (max-width: 767px) {
  body {
    width: auto;
    height: auto;
    padding: 0 16px 48px;
  }

  .section {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
  }
  .section > * {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    width: auto;
    height: auto;
    transform: none;
  }
  .section > .divider {
    width: 100%;
    height: 1px;
    margin: 0;
    object-fit: fill;
  }

  .flower,
  .hero__arrow { display: none; }

  .nav {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    padding: 24px 0 0;
    font-size: 16px;
  }

  /* Hero */
  .hero {
    display: grid;
    gap: 32px;
    padding: 56px 0 48px;
  }
  .hero__title {
    font-size: 30px;
    line-height: 1.2;
  }
  /* The yellow star sits behind the photo: both share one grid cell, and the photo comes later in the DOM so it is on top. */
  .hero__star,
  .hero__photo {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
    align-self: center;
  }
  .hero__star { width: 100%; }
  .hero__photo {
    width: 78%;
    height: auto;
  }
  .cta-works {
    align-self: center;
    width: 260px;
    height: 72px;
  }
  .pill-btn__label {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  /* About */
  .about { padding: 48px 0; }
  .about__text {
    font-size: 12px;
    line-height: 1.5;
  }
  .about__text em { font-size: 14px; }
  .about__text em.lg { font-size: 14px; }

  /* Projects */
  .works { padding: 48px 0; }
  .works__heading {
    font-size: 40px;
    line-height: 1.1;
    text-align: left;
    margin-bottom: 24px;
  }
  .project {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 0 32px;
  }
  .project .project__num,
  .project .project__name {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    font-size: 40px;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
  }
  .project .project__line {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    object-fit: fill;
  }
  .project .project__media {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .project .project__media img {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Contact */
  .contact { padding: 48px 0; }
  /* The blue star sits behind the heading, as on desktop. */
  .contact__shape {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
  }
  .contact__heading {
    position: relative;
    z-index: 1;
    width: auto;
    padding: 40px 24px 0;
    font-size: 40px;
    line-height: 1.1;
  }
  .contact__form {
    display: flex;
    flex-direction: column;
    margin-top: 96px;
  }
  .contact .field,
  .contact .message-label {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 1.3;
  }
  .contact .field {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }
  .contact .field input { font-size: 14px; }
  .contact .field-line {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    margin-bottom: 8px;
    object-fit: fill;
  }
  .contact .message-label { margin-top: 28px; }
  .contact .message {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 180px;
    margin-top: 8px;
    font-size: 14px;
  }
  .contact .send-btn {
    position: relative;
    left: auto;
    top: auto;
    align-self: flex-start;
    width: 220px;
    height: 72px;
    margin-top: 32px;
  }
  .contact .send-btn__fill {
    top: 0;
    left: 0;
    width: 216px;
    height: 66px;
  }
  .contact .send-btn__label {
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: normal;
  }
  .contact .form-status {
    width: auto;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.3;
  }

  /* Footer */
  .footer { padding: 40px 0 56px; }
  .footer .footer__inner {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    text-align: center;
    line-height: 1.4;
  }
  .footer .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    height: auto;
    font-size: 14px;
  }
  .footer .footer__links li:nth-child(n) { width: auto; }
  .footer .footer__legal {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin-top: 20px;
    font-size: 12px;
  }
}
