:root {
  --ink: #171717;
  --paper: #f1eee9;
  --line: #aaa69f;
  --accent: #d7ff55;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.hero,
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.hero {
  min-height: 720px;
  overflow: hidden;
  position: relative;
}
.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 1240px;
  padding: 28px 5vw;
  position: relative;
  z-index: 2;
}
.brand {
  display: block;
  height: 42px;
  width: 42px;
}
.brand img {
  /* border: 1px solid #555; */
  /* border-radius: 50%; */
  display: block;
  /* height: 100%; */
  object-fit: cover;
  width: 120%;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 18px;
}
.nav-links a {
  color: #b4b2ad;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.menu-button {
  border: 1px solid #555;
  border-radius: 50%;
  display: grid;
  height: 40px;
  place-items: center;
  width: 40px;
  font-size: 13px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto;
  max-width: 1360px;
  min-height: 630px;
  padding: 75px 5vw 110px;
  position: relative;
}
.hero-copy {
  align-self: center;
  max-width: 600px;
  z-index: 1;
}
.eyebrow,
.project-meta > p,
.form-label {
  color: #767472;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin: 0 0 27px;
  text-transform: uppercase;
  text-align: justify;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    600 clamp(48px, 7vw, 91px)/0.92 "Space Grotesk",
    sans-serif;
  letter-spacing: -4px;
  margin: 0 0 31px;
}
h1 strong {
  color: var(--accent);
  font-weight: 600;
}
.hero-intro {
  color: #b4b2ad;
  font-size: 18px;
  line-height: 1.55;
  max-width: 370px;
}
.hero-actions {
  align-items: center;
  display: flex;
  gap: 13px;
  margin-top: 38px;
}
.button {
  align-items: center;
  border: 0;
  border-radius: 30px;
  display: inline-flex;
  font-size: 15px;
  gap: 24px;
  justify-content: space-between;
  padding: 13px 17px 13px 20px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-dark {
  background: var(--accent);
  color: var(--ink);
}
.button-light {
  background: var(--paper);
  color: var(--ink);
}
.social-link {
  align-items: center;
  border: 1px solid #4c4c4c;
  border-radius: 50%;
  display: grid;
  height: 46px;
  place-items: center;
  width: 46px;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}
.portrait-wrap {
  background: #434343;
  border: 1px solid #535353;
  height: min(31vw, 390px);
  max-height: 390px;
  max-width: 390px;
  overflow: hidden;
  transform: rotate(5deg);
  width: min(31vw, 390px);
}
.portrait-wrap img {
  filter: grayscale(1);
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.visual-tag {
  color: var(--accent);
  font-size: 13px;
  left: 30px;
  line-height: 1.3;
  position: absolute;
  top: 125px;
  transform: rotate(-8deg);
  z-index: 1;
}
.visual-number {
  bottom: 80px;
  color: #c9c9c9;
  font: 700 150px "Space Grotesk";
  position: absolute;
  right: 2%;
}
section,
footer {
  padding: 100px 5vw;
}
.section-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 0 auto 60px;
  max-width: 1160px;
}
.section-heading span {
  background: currentColor;
  display: block;
  flex: 1;
  height: 1px;
  opacity: 0.35;
}
.section-heading h2 {
  font: 600 24px "Space Grotesk";
  margin: 0;
  white-space: nowrap;
}
.section-light {
  background: var(--paper);
}
.section-dark {
  background: #252525;
}
.about-grid {
  display: grid;
  gap: 12%;
  grid-template-columns: 1fr 1fr;
  margin: auto;
  max-width: 1000px;
}
.large-copy {
  font: 600 clamp(28px, 4vw, 49px)/1.02 "Space Grotesk";
  letter-spacing: -2px;
  max-width: 480px;
}
.about-text {
  color: #b8b5af;
  font-size: 15px;
  line-height: 1.7;
  max-width: 470px;
}
.about-text p {
  margin-bottom: 20px;
  text-align: justify;
}
.text-link {
  color: var(--accent);
  display: inline-block;
  font-size: 18px;
  margin-top: 15px;
}
.text-link i {
  margin-left: 10px;
}
.about-stats {
  border-top: 1px solid #4f4f4f;
  display: flex;
  gap: 16%;
  margin: 75px auto 0;
  max-width: 1000px;
  padding-top: 22px;
}
.about-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.about-stats strong {
  color: var(--accent);
  font: 600 30px "Space Grotesk";
}
.about-stats span {
  color: #989590;
  font-size: 14px;
}
.skill-grid {
  display: grid;
  gap: 65px 30px;
  grid-template-columns: repeat(6, 1fr);
  margin: auto;
  max-width: 1160px;
}
.skill {
  min-height: 205px;
  padding-bottom: 12px;
  text-align: center;
}
.skill-icon {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #77736c;
  display: grid;
  font: 600 22px "Space Grotesk";
  height: 112px;
  margin: 0 auto 17px;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
  width: 112px;
}
.skill:hover .skill-icon {
  background: var(--ink);
  color: var(--accent);
  transform: rotate(12deg);
}
.skill h3 {
  font: 600 15px "Space Grotesk";
  margin-bottom: 5px;
}
.skill p {
  color: #77736c;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  min-height: 38px;
}
.achievement-heading {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 105px auto 0;
  max-width: 1160px;
  padding-bottom: 14px;
}
.achievement-heading p,
.achievement-heading span {
  margin: 0;
  text-transform: uppercase;
}
.achievement-heading p {
  font: 600 24px "Space Grotesk";
}
.achievement-heading span {
  color: #77736c;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.achievement-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto;
  max-width: 1160px;
}
.achievement {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 70px 1fr;
  padding: 27px 30px 30px 0;
}
.achievement:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.achievement-year {
  color: #77736c;
  font: 600 18px "Space Grotesk";
}
.achievement-provider {
  color: #77736c;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.achievement h3 {
  font: 600 20px "Space Grotesk";
  margin-bottom: 10px;
}
.achievement-description {
  color: #77736c;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 390px;
}
.project-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
  margin: auto;
  max-width: 1160px;
}
.project-card {
  min-width: 0;
}
.project-image {
  aspect-ratio: 1.35;
  background-position: center;
  background-size: cover;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  filter: grayscale(1);
  padding: 15px;
  transition: filter 0.3s;
  width: 100%;
}
.project-image:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.project-card:hover .project-image {
  filter: grayscale(0);
}
.project-image span {
  border: 1px solid #ddd;
  border-radius: 20px;
  color: white;
  font-size: 10px;
  padding: 6px 10px;
}
.project-one {
  background-image: url("./img/pro1/img1.jpg");
}
.project-two {
  background-image: url("./img/pro2/img1.jpg");
}
.project-three {
  background-image: url("./img/pro3/img1.jpg");
}
.project-meta {
  padding-top: 22px;
  position: relative;
}
.project-meta > p {
  color: #99958d;
  margin-bottom: 10px;
}
.project-meta h3 {
  font: 600 24px "Space Grotesk";
  margin-bottom: 11px;
}
.project-description {
  color: #aaa69f;
  font-size: 14px;
  line-height: 1.55;
  /* max-width: 270px; */
}
.round-link {
  align-items: center;
  border: 1px solid #5a5a5a;
  border-radius: 50%;
  display: grid;
  height: 35px;
  place-items: center;
  position: absolute;
  right: 0;
  top: 22px;
  width: 35px;
}
.round-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.footer-grid {
  display: grid;
  gap: 6%;
  grid-template-columns: 0.9fr 0.9fr 1fr;
  margin: auto;
  max-width: 1160px;
}
.cv-panel {
  /* background: var(--ink); */
  background-image: url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=1170&auto=format&fit=crop&w=800&q=80");
  background-blend-mode: luminosity;
  background-color: #fff;
  color: var(--paper);
  min-height: 330px;
  padding: 34px;
  position: relative;
}
.cv-panel p {
  color: #ffff;
  font-size: 13px;
}
.cv-panel h3 {
  font: 600 clamp(35px, 4vw, 54px)/0.98 "Space Grotesk";
  margin: 52px 0 30px;
}
.cv-panel em {
  color: var(--accent);
  font-style: normal;
}
.contact-details h3 {
  font: 600 29px/1.05 "Space Grotesk";
  margin-bottom: 35px;
}
.contact-detail-list {
  display: grid;
  gap: 19px;
}
.contact-detail-list a,
.contact-detail-list p {
  align-items: flex-start;
  color: #77736c;
  display: flex;
  font-size: 13px;
  gap: 12px;
  line-height: 1.45;
  margin: 0;
}
.contact-detail-list a:hover {
  color: var(--ink);
}
.contact-detail-list i {
  color: var(--ink);
  font-size: 14px;
  margin-top: 2px;
  width: 16px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 35px;
}
.footer-socials a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  height: 38px;
  place-items: center;
  width: 38px;
}
.footer-socials a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.contact-form {
  display: flex;
  flex-direction: column;
}
.contact-form h3 {
  font: 600 29px "Space Grotesk";
  margin-bottom: 20px;
}
.contact-form label {
  color: #77736c;
  font-size: 11px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9e9a92;
  border-radius: 0;
  color: var(--ink);
  font: 14px "DM Sans";
  margin-bottom: 20px;
  outline: 0;
  padding: 8px 0;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}
.contact-form .button {
  align-self: flex-start;
  cursor: pointer;
  margin-top: 6px;
}
.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.form-status {
  font-size: 13px;
  line-height: 1.4;
  margin: 15px 0 0;
  min-height: 18px;
}
.form-status.is-success {
  color: #557000;
}
.form-status.is-error {
  color: #b33e42;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin: 90px auto 0;
  max-width: 1000px;
  padding-top: 18px;
}
.footer-bottom a {
  color: #77736c;
}
.footer-bottom .copyright {
  margin: auto;
}
.back-to-top {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 30px;
  bottom: 24px;
  color: var(--paper) !important;
  display: inline-flex;
  font-size: 12px;
  gap: 10px;
  padding: 11px 16px;
  position: fixed;
  right: 24px;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  visibility: hidden;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink) !important;
  transform: translateY(-3px);
}
.modal-open {
  overflow: hidden;
}
.cv-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 20;
}
.cv-modal.is-open {
  display: grid;
  place-items: center;
}
.cv-modal-backdrop {
  background: rgba(0, 0, 0, 0.82);
  inset: 0;
  position: absolute;
}
.cv-preview {
  background: #e8e6e2;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 60px);
  max-width: 900px;
  padding: 22px;
  position: relative;
  width: min(92vw, 900px);
  z-index: 1;
  /* border-radius: 20px; */
}
.cv-close {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  height: 34px;
  place-items: center;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  z-index: 2;
}
.cv-close:hover {
  background: var(--accent);
  color: var(--ink);
}
.pdf-preview {
  background: #777;
  height: min(78vh, 760px);
  position: relative;
}
.pdf-preview object {
  background: white;
  display: block;
  height: 100%;
  width: 100%;
}
.cv-modal-actions {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}
/* .cv-modal-actions .button {
  background: #d96368;
  color: white;
  cursor: pointer;
} */
.project-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 21;
}
.project-modal.is-open {
  display: grid;
  place-items: center;
}
.project-modal-backdrop {
  background: rgba(0, 0, 0, 0.86);
  inset: 0;
  position: absolute;
}
.project-gallery {
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  max-width: 1000px;
  padding: 18px;
  position: relative;
  width: min(92vw, 1000px);
  z-index: 1;
}
.project-gallery-image-wrap {
  background: #252525;
  position: relative;
}
.project-gallery-image {
  display: block;
  height: min(70vh, 650px);
  object-fit: contain;
  width: 100%;
}
.project-close,
.gallery-arrow {
  align-items: center;
  background: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  display: grid;
  height: 38px;
  place-items: center;
  position: absolute;
  width: 38px;
}
.project-close {
  right: 8px;
  top: 8px;
  z-index: 2;
}
.gallery-arrow {
  top: 50%;
  transform: translateY(-50%);
}
.gallery-prev {
  left: 15px;
}
.gallery-next {
  right: 15px;
}
.project-close:hover,
.gallery-arrow:hover {
  background: var(--accent);
  color: var(--ink);
}
.project-gallery-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 4px 2px;
}
.project-gallery-footer h2 {
  font: 600 25px "Space Grotesk";
  margin: 0;
}
.project-gallery-footer span {
  color: #77736c;
  font-size: 12px;
}
@media (max-width: 760px) {
  .nav {
    padding-top: 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 70px;
  }
  .hero-copy {
    padding-bottom: 80px;
  }
  .hero-visual {
    min-height: 350px;
  }
  .portrait-wrap {
    height: 280px;
    width: 280px;
  }
  .visual-tag {
    left: 8%;
    top: 42px;
  }
  .visual-number {
    bottom: 10px;
    font-size: 100px;
    right: 4%;
  }
  section,
  footer {
    padding: 70px 6vw;
  }
  .section-heading {
    margin-bottom: 43px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .about-stats {
    gap: 9%;
    margin-top: 50px;
  }
  .skill-grid {
    gap: 42px 15px;
    grid-template-columns: repeat(3, 1fr);
  }
  .skill-icon {
    height: 80px;
    width: 80px;
    font-size: 16px;
  }
  .skill h3 {
    font-size: 13px;
  }
  .skill p {
    font-size: 10px;
  }
  .skill {
    min-height: 170px;
  }
  .achievement-heading {
    margin-top: 75px;
  }
  .achievement-heading p {
    font-size: 20px;
  }
  .achievement-list {
    grid-template-columns: 1fr;
  }
  .achievement,
  .achievement:nth-child(even) {
    border-left: 0;
    grid-template-columns: 58px 1fr;
    padding: 23px 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .project-image {
    aspect-ratio: 1.55;
  }
  .footer-grid {
    gap: 55px;
  }
  .cv-panel {
    min-height: 300px;
  }
  .project-gallery {
    padding: 10px;
  }
  .project-gallery-image {
    height: 62vh;
  }
  .gallery-prev {
    left: 10px;
  }
  .gallery-next {
    right: 10px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 12px;
  }
  .back-to-top {
    bottom: 18px;
    padding: 10px 14px;
    right: 18px;
  }
  .cv-preview {
    padding: 13px;
    width: min(92vw, 700px);
  }
  .pdf-preview {
    height: 70vh;
  }
}
