﻿/* layout */
main > section:not(.hero),
main > footer {
  position:   relative;
  z-index:    1;
  background: var(--bg);
}

section {
  padding: 36px 0;
}

.section-head {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  border-top:      1px solid var(--line);
  padding-top:     18px;
  margin-bottom:   16px;
  gap:             var(--s4);
}

.section-head h2 {
  margin:         0;
  font-size:      1rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color:          var(--muted);
}

.section-head p {
  margin:    0;
  color:     var(--muted);
  font-size: 0.875rem;
  max-width: 65ch;
}

/* hero/video thingy */
.hero {
  padding: 0;
}

.panorama {
  position:         fixed;
  top:              0;
  left:             0;
  width:            100%;
  height:           100vh;
  overflow:         hidden;
  z-index:          0;
  background:       url('https://i.vimeocdn.com/video/1804541477-652d2a50614d047ea67cecb3e3bd1f55fe172c485910f36c314d9251c47b3dc7-d_640?region=us') center / cover no-repeat;
  background-color: #141414;
  opacity:          0;
  transition:       opacity 1s;
}

.panorama.visible {
  opacity: 1;
}

/* forces the panorma, don't touch */
.panorama iframe {
  position:   absolute;
  top:        50%;
  left:       50%;
  transform:  translate(-50%, -50%);
  width:      100vw;
  height:     56.25vw;
  min-height: 100vh;
  min-width:  177.78vh;
  border:     none;
  pointer-events: none;
}

.panorama::after {
  content:        "";
  position:       absolute;
  inset:          0;
  background:     linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 60%);
  pointer-events: none;
}

.hero-spacer {
  height:          100vh;
  position:        relative;
  z-index:         1;
  display:         flex;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  padding:         0 var(--s4);
}

.hero-avatar {
  width:         110px;
  height:        110px;
  border-radius: 999px;
  overflow:      hidden;
  margin:        0 auto 18px;
  box-shadow:    0 4px 24px rgba(0, 0, 0, .35);
}

.hero-avatar img {
  width:      100%;
  height:     100%;
  object-fit: cover;
}

.hero-center .kicker {
  color:       rgba(255, 255, 255, .7);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.hero-center h1 {
  color:       #fff;
  font-size:   clamp(2.25rem, 5vw, 4rem);
  margin:      8px 0 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.hero-center .sub {
  color:       rgba(255, 255, 255, .85);
  font-size:   1.125rem;
  margin:      0 0 var(--s4);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.hero-center .sub::after {
  color: rgba(255, 255, 255, .85);
}

.hero-center .actions {
  justify-content: center;
}

/* about */
.about-panel {
  display:     flex;
  flex-wrap:   wrap;
  gap:         var(--s4);
  align-items: flex-start;
}

.about-img-wrap {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            8px;
  flex-shrink:    0;
}

.about-img {
  width:         160px;
  height:        160px;
  object-fit:    cover;
  border-radius: var(--r);
  display:       block;
}

.about-img-name {
  font-size: 0.8rem;
  color:     var(--muted);
}

/* project cards */
.grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   14px;
}

.card {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  min-height:     180px;
  background:     var(--panel);
  border:         1px solid var(--line);
  border-radius:  var(--r);
  box-shadow:     var(--shadow);
  padding:        0;
  overflow:       hidden;
}

.card-img {
  width:      100%;
  height:     180px;
  object-fit: cover;
  display:    block;
}

.card-body {
  display:        flex;
  flex-direction: column;
  gap:            12px;
  padding:        0 var(--s4) var(--s4);
  flex:           1;
}

.card-body header {
  display:         flex;
  justify-content: space-between;
  gap:             14px;
  align-items:     flex-start;
}

.card-body h3 {
  margin:    0;
  font-size: 1.125rem;
}

.card-body p {
  margin:    0;
  color:     var(--muted);
  font-size: 0.875rem;
  max-width: 75ch;
}

.card-body footer {
  margin-top:      auto;
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             12px;
  border-top:      1px solid var(--line);
  padding-top:     12px;
  font-size:       0.8rem;
  color:           var(--muted);
}

/* experience timeline */
.timeline {
  border:        1px solid var(--line);
  background:    var(--panel);
  border-radius: var(--r);
  box-shadow:    var(--shadow);
  overflow:      hidden;
}

.trow {
  display:               grid;
  grid-template-columns: 160px 1fr;
  border-bottom:         1px solid var(--line);
}

.trow:last-child {
  border-bottom: none;
}

.tdate {
  padding:      16px;
  border-right: 1px solid var(--line);
  color:        var(--muted);
  font-size:    0.8rem;
  white-space:  nowrap;
  background:   rgba(246, 246, 244, .55);
}

.tcontent {
  padding: 16px;
}

.tcontent b {
  font-weight: 650;
}

.tcontent p {
  margin:    6px 0 0;
  color:     var(--muted);
  font-size: 0.875rem;
}

.contact-form {
  margin-top: 1.25rem;
}

label {
  display:        block;
  font-size:      0.75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color:          var(--muted);
  margin-bottom:  8px;
}

input, textarea {
  width:         100%;
  border:        1px solid var(--line2);
  background:    #fff;
  border-radius: var(--r);
  padding:       12px;
  font:          inherit;
  font-size:     0.875rem;
}

textarea {
  min-height: 120px;
  resize:     vertical;
}

.form-row {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   12px;
}

.form-field {
  margin-top: 12px;
}

.form-actions {
  display:    flex;
  gap:        10px;
  margin-top: 12px;
}

.form-status {
  margin-top: 0.75rem;
  font-size:  0.8rem;
  display:    none;
}

/* responsive */
@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .trow {
    grid-template-columns: 1fr;
  }

  .tdate {
    border-right:  none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .about-panel {
    flex-direction: column;
  }

  .about-img {
    width:  100%;
    height: 220px;
  }
}
