/* ==========================================================================
   Phil Bonnell — Portfolio
   Rebuilt static CSS (trimmed from Webflow export)
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: #010101;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.25em;
  background-color: #fff;
}

img {
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

:root {
  --black: #010101;
  --white: white;
  --black-light: #31313b;
  --royal-blue: #4268fb;
  --white-darkest: #e0e0e1;
  --white-dark: #f3f3f4;
  --black-lightest: #484851;
  --royal-blue-light: #e2edfe;
}

/* Typography ============================================================ */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.2em;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1.05rem; letter-spacing: -.02em; }
h6 { font-size: 1rem; letter-spacing: -.02em; }

p {
  margin: 0;
  line-height: 1.5em;
}

a {
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: color .35s cubic-bezier(.165, .84, .44, 1);
}

a:hover { color: var(--white); }
a:active { color: var(--black-light); }
a.w--current { color: var(--royal-blue); }

ul, ol {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  margin: 0;
  padding-left: 2rem;
}

li { opacity: .9; }

strong { font-weight: bold; }

figure { margin-bottom: 0; }

figcaption {
  color: var(--black);
  text-align: center;
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 500;
}

/* Layout ================================================================= */

.section {
  z-index: 2;
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  column-gap: 3rem;
  background-color: var(--white);
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
}

.section.section-footer {
  background-color: var(--white-dark);
  padding-top: 3rem;
  padding-bottom: 0;
  overflow: hidden;
}

.section.section-hero-static-visibility {
  background-color: var(--royal-blue);
  justify-content: space-between;
  max-width: 100vw;
  height: 80vh;
  padding-top: 0;
  position: fixed;
  inset: 0%;
  overflow: hidden;
}

.section.section-hero {
  background-color: var(--white);
  padding-top: 0;
  padding-bottom: 3rem;
}

.section.section-light-gray {
  background-color: var(--white-dark);
}

.container {
  width: 100%;
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.container.container-modal {
  max-width: 900px;
}

.grid {
  display: grid;
  column-gap: 1rem;
  row-gap: 1rem;
  grid-template-rows: auto;
  grid-template-columns: repeat(12, minmax(.5rem, 1fr));
  grid-auto-columns: minmax(.5rem, 1fr);
  width: 100%;
}

.grid.grid-footer { column-gap: 2rem; row-gap: 3rem; }
.grid.grid-hero { column-gap: .5rem; row-gap: .5rem; }
.grid.grid-projects { row-gap: 2rem; }
.grid.grid-work-title { overflow: hidden; }
.grid.grid-project-details { row-gap: 2rem; }

.title {
  display: flex;
  flex-direction: column;
  row-gap: 1.25rem;
}

.title.title-s { column-gap: .5rem; row-gap: .5rem; }

/* Typography scales (Bebas Neue display styles) ========================= */

.display-xxl {
  color: #fff;
  letter-spacing: 0;
  cursor: pointer;
  margin-bottom: -.175em;
  margin-left: -.015em;
  font-family: "Bebas Neue", sans-serif;
  font-size: 10rem;
  font-weight: 400;
  line-height: 1em;
}

.display-xxs {
  letter-spacing: -.01em;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.display-xl {
  letter-spacing: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2em;
}

.display-l {
  letter-spacing: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2em;
}

.display-m {
  letter-spacing: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2em;
}

.display-s {
  letter-spacing: .01em;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2em;
}

.display-xs {
  letter-spacing: .025em;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2em;
}

/* Rich text (project descriptions) ======================================= */

.rich-text-block { margin-bottom: -2rem; }
.rich-text-block p { margin-bottom: 2rem; }
.rich-text-block a {
  border-bottom: 1px solid var(--black);
  transition: border .35s cubic-bezier(.165, .84, .44, 1), color .35s cubic-bezier(.165, .84, .44, 1);
}
.rich-text-block a:hover { border-bottom-color: var(--royal-blue); }

/* Icons =================================================================== */

.icon-s { width: 1rem; max-height: 1rem; }

.icon-s.icon-s-about-modal {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.165, .84, .44, 1);
  position: absolute;
  inset: 3rem 3rem auto auto;
  transform: rotate(0);
}
.icon-s.icon-s-about-modal:hover { transform: rotate(90deg); }

.icon-m { width: 1.2rem; height: 1.2rem; }

/* Links =================================================================== */

.link-with-icon {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.1em;
}

.link-with-icon.about_proj { color: var(--black); }

/* Nav ===================================================================== */

.nav {
  z-index: 1;
  background-color: transparent;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.nav-item {
  /* grid item */
}

.nav-menu {
  display: flex;
  column-gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
}

.line {
  background-color: var(--white-darkest);
  width: 100%;
  height: .5px;
}

/* Hero ==================================================================== */

.hero-heading-lines {
  display: flex;
  flex-direction: column;
}

.hero-heading-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.text-crave {
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px;
}

.link {
  color: var(--royal-blue);
}
.link.w--current { color: var(--white); }
.link.homelink_proj { color: var(--black); }

/* Project cards (grid on homepage / "More" section) ====================== */

.project-card {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  column-gap: 1rem;
  transition-property: none;
}
.project-card:hover { color: var(--black); }

.project-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.project-card-image .image { flex: 1; }

.project-card-button {
  background-color: var(--white);
  cursor: pointer;
  border-radius: 50rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  position: absolute;
}

.button-icons-wrapper {
  display: flex;
  flex-direction: column;
  width: 1.2rem;
  height: 1.2rem;
  position: relative;
  overflow: hidden;
}

.button-icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-card-details {
  display: flex;
  column-gap: .5rem;
  row-gap: .5rem;
}

.project-number {
  display: flex;
  font-size: .8rem;
  font-weight: 600;
}

.project-card-heading {
  letter-spacing: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
}

/* Project detail page ===================================================== */

.project-details {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  column-gap: 3rem;
  position: sticky;
  top: 3rem;
}

.project-title {
  display: flex;
  flex-direction: column;
  row-gap: .2rem;
  column-gap: .2rem;
}

.project-details-list {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  column-gap: 1rem;
  font-size: .9rem;
}

.project-details-list-item {
  display: flex;
  justify-content: space-between;
  column-gap: 1rem;
  row-gap: 1rem;
  border-bottom: 1px solid var(--white-darkest);
  padding-bottom: 1rem;
}

.project-details-list-heading {
  min-width: 8rem;
  font-weight: 600;
}

.project-images {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  column-gap: 2rem;
}

.project-images-list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  column-gap: 2rem;
}

.state-box {
  border: 1px solid var(--white-darkest);
  background-color: var(--white-dark);
  text-align: center;
  border-radius: .25rem;
  width: 100%;
  padding: .9rem;
  font-size: .9rem;
  font-weight: 500;
}

/* Social list / "More" section ============================================ */

.social-list {
  display: flex;
  flex-flow: wrap;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  align-self: flex-end;
  align-items: center;
  font-weight: 500;
}

/* About modal ============================================================= */

.about-modal-wrapper {
  z-index: 9;
  background-color: #31313b80;
  display: flex;
  flex-flow: row;
  justify-content: flex-end;
  min-height: 100vh;
  position: fixed;
  inset: 0%;
}

.about-modal-wrapper.hidden {
  display: none;
}

.about-modal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  column-gap: 2rem;
  row-gap: 2rem;
  background-color: var(--white);
  width: 50vw;
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: 14px;
  position: relative;
  overflow: auto;
}

.about-modal-image-wrapper { overflow: hidden; }

.about-modal-close-button {
  cursor: pointer;
  width: 1rem;
  height: 1rem;
  transition: transform .35s cubic-bezier(.165, .84, .44, 1);
  position: absolute;
  inset: 1.5rem 1.5rem auto auto;
  transform: rotate(0);
}
.about-modal-close-button:hover { transform: rotate(90deg); }

.work-experience-list {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  column-gap: 1rem;
}

.work-experience-list-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 1rem;
  row-gap: 1rem;
  border-bottom: 1px solid var(--white-darkest);
  padding-bottom: 1rem;
}

.work-experience-list-item-details {
  display: flex;
  flex-direction: column;
  row-gap: .25rem;
  column-gap: .25rem;
}

.work-experience-year {
  display: flex;
  column-gap: .25rem;
  row-gap: .25rem;
  font-weight: 500;
}

/* Footer / contact ========================================================= */

.footer-image { width: 100%; }

.contact-button {
  z-index: 99;
  background-color: var(--royal-blue);
  border-radius: 50rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  transition-property: none;
  position: fixed;
  inset: auto 3rem 3rem auto;
}

/* Grid placements (replacing Webflow w-node grid-area rules) ============= */

.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-6  { grid-column: span 6; }
.span-4  { grid-column: span 4; }

.justify-end { justify-self: end; }
.align-start { align-self: start; }

/* Project images: first image spans col 6-12 on detail page */
.project-images.span-images { grid-column: 6 / 13; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 991px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.45rem; }
  h4 { font-size: 1.2rem; }

  .container { padding-left: 2.5rem; padding-right: 2.5rem; }

  .grid {
    row-gap: 2rem;
    grid-template-columns: repeat(8, minmax(1rem, 1fr));
  }

  .grid.grid-footer { row-gap: 2rem; }
  .grid.grid-work-title { row-gap: 1rem; }

  .display-xxl { font-size: 7rem; }
  .display-l { font-size: 1.65rem; }
  .display-m { font-size: 1.45rem; }
  .display-s { font-size: 1.3rem; }
  .display-xs { font-size: 1.15rem; }

  .icon-m { width: 1rem; }
  .icon-m.icon-m-reveal { display: none; }

  .link-with-icon { column-gap: .4rem; row-gap: .4rem; }

  .nav { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  .section-hero-static-visibility { height: 65vh; }

  .project-details {
    column-gap: 2rem;
    row-gap: 2rem;
    position: static;
  }

  .project-card-heading { font-size: 1.65rem; }

  .about-modal { width: 75vw; padding-top: 2.5rem; padding-bottom: 2.5rem; }

  .project-card-button { width: 3rem; height: 3rem; display: none; }

  .contact-button { bottom: 2.5rem; right: 2.5rem; }

  /* grid spans on tablet */
  .span-12 { grid-column: span 8; }
  .span-8  { grid-column: span 8; }
  .span-6  { grid-column: span 4; }
  .span-4  { grid-column: span 8; }
  .project-images.span-images { grid-column: span 8; justify-self: start; }
}

@media screen and (max-width: 767px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.35rem; }
  h4 { font-size: 1.15rem; }
  h5 { font-size: 1.05rem; }

  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  .container { padding-left: 2rem; padding-right: 2rem; }

  .grid { grid-template-columns: repeat(4, minmax(1rem, 1fr)); }

  .display-xxl { margin-bottom: -.15em; font-size: 5rem; }
  .display-l { font-size: 1.65rem; }
  .display-m { font-size: 1.4rem; }
  .display-s { font-size: 1.25rem; }

  .icon-s { width: .9rem; max-height: .9rem; }

  .state-box { padding: 1rem; font-size: .9rem; }

  .link-with-icon { column-gap: .35rem; }

  .nav { padding-top: 2rem; padding-bottom: 2rem; }

  .section-hero-static-visibility { height: 55vh; }

  .social-list { column-gap: 1rem; row-gap: 1rem; }

  .about-modal { width: 95vw; padding-top: 2rem; padding-bottom: 2rem; }

  .contact-button { bottom: 2rem; right: 2rem; }

  .text-crave { color: #fff; font-weight: 400; text-decoration: underline; }

  /* grid spans on mobile */
  .span-12 { grid-column: span 6; }
  .span-8  { grid-column: span 4; }
  .span-6  { grid-column: span 2; justify-self: start; }
  .span-6.justify-end { justify-self: start; }
  .span-4  { grid-column: span 4; }
  .project-images.span-images { grid-column: span 4; }
}

@media screen and (max-width: 479px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }

  .section { column-gap: 1.5rem; row-gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .section.section-footer { padding-top: 1.5rem; }

  .container { padding-left: 1.5rem; padding-right: 1.5rem; }

  .grid {
    row-gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(1rem, 1fr));
  }

  .grid.grid-footer { column-gap: 1.5rem; row-gap: 1.5rem; }

  .display-xxl { flex: 0 auto; font-size: 3.15rem; display: block; }
  .display-xl { font-size: 2rem; }
  .display-l { font-size: 1.45rem; }
  .display-m { font-size: 1.3rem; }
  .display-s { font-size: 1.2rem; }
  .display-xs { font-size: 1.1rem; }

  .nav { padding-top: 1.5rem; padding-bottom: 1.5rem; }

  .section-hero-static-visibility { height: 45vh; }

  .project-details, .project-images {
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }

  .project-details-list { font-size: .8rem; }
  .project-images-list { column-gap: 1.5rem; row-gap: 1.5rem; }

  .social-list { column-gap: .75rem; row-gap: .75rem; }

  .about-modal {
    width: 100vw;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .about-modal-close-button { width: .85rem; height: .85rem; }

  .contact-button { width: 4rem; height: 4rem; bottom: 1.5rem; right: 1.5rem; }

  /* grid spans on small mobile */
  .span-12 { grid-column: span 4; }
  .span-8, .span-6 { grid-column: span 2; }
  .span-6.justify-end { justify-self: start; }
  .span-4 { grid-column: span 2; }
  .project-images.span-images { grid-column: span 2; }
}
