/* ==========================================================================
   Jairus Futell — Portfolio Design System
   ========================================================================== */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --blue: #0070C0;
  --gray: #0E0E17;
  --gray-border: #23232E;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-section: 40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 120px;
  display: grid; 
  justify-content: center;
}

br { display: block;  
  content: "";
  margin-top: 8px;
 }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 0;
}

.logo {
  font-size: 24px;
  line-height: 21px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.logo .jf { font-weight: 700; color: var(--blue); }
.logo .name { font-weight: 300; color: var(--white); }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-item {
  position: relative;
}

.nav-link, .nav-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-link:hover, .nav-trigger:hover {
  background: rgba(253, 253, 252, 0.1);
}

.nav-item.active > .nav-link,
.nav-item.active > .nav-trigger {
  background: rgba(253, 253, 252, 0.2);
  font-weight: 700;
}

.nav-trigger svg {
  width: 10px;
  height: 10px;
  transition: transform 0.15s ease;
}

.nav-item.open .nav-trigger svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--gray);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.nav-item.open .dropdown { display: flex; }

.dropdown a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--white);
  transition: background 0.15s ease;
}

.dropdown a:hover {
  background: var(--blue);
}

.nav-toggle-mobile {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--white);
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 40px;
    background: var(--gray);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 30;
  }
  .main-nav.mobile-open { display: flex; }
  .nav-toggle-mobile { display: flex; align-items: center; justify-content: center; }
  .nav-link, .nav-trigger { width: 160px; justify-content: flex-start; padding-left: 12px; }
  .dropdown { position: static; transform: none; margin-top: 4px; }
}

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

.hero {
  padding: 96px 0 var(--space-section);
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  font-weight: 300;
  line-height: 40px;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 strong { font-weight: 400; color: var(--white); }

/* ==========================================================================
   Home — Project Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--gray);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-card .card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}

.project-card .card-year {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.project-card .card-role {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.project-card .card-copy {
  margin-top: 16px;
  height: 124px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}

.project-card .card-btn {
  margin-top: 16px;
  width: 287px;
  max-width: 100%;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.project-card .card-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.project-card .card-btn[disabled] {
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.2);
  cursor: not-allowed;
  background: transparent;
}

/* ==========================================================================
   Case Study Pages
   ========================================================================== */

.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: center;
  width: 100%;
  max-width: 835px;
  padding: 40px 0 var(--space-section);
  align-items: center;
  margin: auto 0;
}

@media (max-width: 860px) {
  .case-hero { grid-template-columns: 1fr; }
}

.case-hero .timeframe {
  text-align: right;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.case-hero h1 {
  font-size: 40px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 24px;
}

.case-hero .meta-row {
  display: flex;
  gap: 40px;
  margin-top: 24px;
}

.case-hero .meta-label {
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 8px;
}

.case-hero .meta-value {
  font-size: 15px;
}

.case-section {
  padding-top: var(--space-section);
  justify-content: center;
  margin: auto 0;
  width: 100%;
  max-width: 725px;

}

.case-section h2 {
  font-size: 24px;
  font-weight: 300;
  width: 100%;
  max-width: 725px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.case-section .rule {
  height: 1px;
  background: var(--blue);
  border-radius: 2px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.case-section .content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  width: 100%;
  max-width: 725px;
  color: rgba(255,255,255,0.85);
}


.case-section .content p { margin: 0; max-width: 725px; width: 100%; }


.case-section .content img,
.case-section .content .img-row img {
  border-radius: 8px;
}

.img-row-column {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 40px;
}

.img-row-column img {
  width: 100%;
  max-width: 254px;
  object-fit: cover;
  object-position: center;
}

.img-row-column p {
  align-content: center;
  max-width: 375px;
  width: 100%;
}

.img-row {
  display: flex;
  gap: 24px;
  max-width: 500px;
  align-items: center;
  justify-content: center;
}

.img-row img { flex: 1 1 260px; width: 100%; }

.rb {width: 100%; max-width: 416px; }


.stat-row {
  display: flex;
  gap: 80px;
  width: 350px;
}

.stat {
  min-width: 140px;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  margin-bottom: 24px;
}

.stat .num {
  font-size: 24px;
  font-weight:300;
  color: var(--white);
  background: var(--gray);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  justify-content: center;
  grid-auto-flow: row;
  align-content: center;
  margin-right: 16px;
}


.stat .label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  width: 250px;
}

.thanks {
  text-align: center;
  padding: var(--space-section) 0 0;
}

.thanks h2 { font-size: 28px; font-weight: 300; }
.thanks p { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   About Me Page
   ========================================================================== */

.toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.toggle {
  position: relative;
  width: 370px;
  height: 35px;
  background: var(--gray);
  border: 1px solid var(--gray-border);
  border-radius: 64px;
  display: flex;
  padding: 2px;
}

.toggle-option {
  flex: 1;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 400;
  border-radius: 64px;
  z-index: 2;
  transition: color 0.2s ease;
}

.toggle-option.active {
  color: var(--white);
  font-weight: 700;
}

.toggle-highlight {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: var(--blue);
  border-radius: 64px;
  transition: transform 0.25s ease;
  z-index: 1;
}

.toggle[data-active="1"] .toggle-highlight {
  transform: translateX(calc(100% + 0px));
}

.page-title-block {
  margin-bottom: var(--space-section);
  width: 100%;
  max-width: 838px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.page-title-block h1 {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 16px;
}

.page-title-block .rule {
  width: 64px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
 
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  width: 838px;
  margin: 0 auto;

}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  background: var(--gray);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 16px;

}

.about-photo img {
  border-radius: 8px;
  filter: grayscale(1);
  justify-content: center;
}

.about-icons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.about-icons span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.about-copy h2 {
  font-size: 20px;
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 16px;
}

.about-copy .block + .block { margin-top: var(--space-section); }

.about-copy p { margin: 0 0 16px; color: rgba(255,255,255,0.85); font-size: 16px; }
.about-copy p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Work Experience (timeline within About)
   ========================================================================== */

.job {
  margin-bottom: var(--space-section);
  width: 838px;
  justify-content: center;
  margin: auto;
  padding-bottom: 40px;
}

.job h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
}

.job .dates {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.job ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job li {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  padding-left: 16px;
  position: relative;
}

.job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.job li.sub {
  padding-left: 32px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.job li.sub::before { left: 16px; width: 4px; height: 4px; }

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-wrap {
  max-width: 725px;
  margin: 0 auto;
  padding: 40px 0;
}

.contact-wrap h1 {
  font-size: 32px;
  font-weight: 300;
}

.contact-wrap .rule {
  width: 64px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

.contact-wrap p {
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-section);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact-method {
  width: 100%;
  max-width: 400px;
  padding: 16px 24px;
  background: var(--gray);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.contact-method:hover { border-color: var(--blue); }

.contact-method .label { color: rgba(255,255,255,0.6); font-size: 14px; }
.contact-method .value { font-weight: 700; }

footer.site-footer {
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}
