/*
 * Web Fonts from fontspring.com
 *
 * All OpenType features and all extended glyphs have been removed.
 * Fully installable fonts can be purchased at http://www.fontspring.com
 *
 * The fonts included in this stylesheet are subject to the End User License you purchased
 * from Fontspring. The fonts are protected under domestic and international trademark and
 * copyright law. You are prohibited from modifying, reverse engineering, duplicating, or
 * distributing this font software.
 *
 * (c) 2010-2015 Fontspring
 *
 *
 * The fonts included are copyrighted by the vendor listed below.
 *
 * Vendor:      Brownfox
 * License URL: http://www.fontspring.com/licenses/brownfox/webfont
 *
 *
 */

@font-face {
  font-family: "Geometria-Light";
  src: url("/fonts/Geometria-Light-webfont.woff") format("woff"),
    url("/fonts/Geometria-Light-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Geometria-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.63px;
  color: #293047;
  background: #fff;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.4;
}

h2 {
  font-size: 24px;
  letter-spacing: 0.72px;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  letter-spacing: 0.4px;
  line-height: 1.5;
}

h2,
h3 {
  color: #1a1f2d;
}

hr {
  border: 0;
  border-top: 1px solid #d8d8d8;
  margin: 2.5em 0;
}

/* ---------- layout ---------- */

.container {
  margin: 0 auto;
  padding: 0 9.3vw;
}

.container--wide {
  padding: 0 9.3vw;
}

.container--inset {
  padding: 0 17.65vw;
}

main {
  padding: 2em 0 3em;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 19px 25px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 19px;
  text-decoration: none;
}

.branding-logo {
  width: 33px;
  height: auto;
}

.branding-wordmark {
  font-size: 18px;
  letter-spacing: 1.8px;
  color: #000;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}

.site-nav a:hover {
  opacity: 0.6;
}

/* Active page: underline the matching nav word (Tech/Film/Music), so each page
   shows where you are instead of a redundant page-title header. */
.site-nav a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 3em 24px 4em;
  text-align: center;
}

/* Present in the original template markup but renders empty/invisible on the live site
   (business hours were never filled in) — kept for structural fidelity. */
.footer-hours-heading {
  display: none;
}

.site-footer p {
  margin: 0.3em 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 1.5em;
}

.social-icons a {
  display: block;
  width: 20px;
  height: 20px;
}

.social-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- homepage ---------- */

.bio {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.6px;
  font-weight: 400;
  margin: 1.5em 0 1em;
}

/* Match live: the live gallery is a fixed 16:9 viewport (measured 966x543 =
   ratio 1.778) with "content-fill" — each slide is cropped to fill the box
   (object-fit: cover), NOT resized to its own aspect ratio. The box stays a
   constant 16:9 as slides cycle. */
.slideshow {
  position: relative;
  margin: 2em 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slideshow img.is-active {
  opacity: 1;
  z-index: 2;
}

/* Outgoing slide: stays fully opaque *under* the incoming slide (absolute,
   lower z-index) for the duration of the crossfade, so as the incoming slide
   fades in on top the transition never dips to the white background. */
.slideshow img.was-active {
  opacity: 1;
  z-index: 1;
}

.news p {
  white-space: pre-wrap;
}

.news details {
  margin-top: 1.5em;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}

.news summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  padding: 17px 4px;
}

.news summary::-webkit-details-marker {
  display: none;
}

.news summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 1px solid #293047;
  border-bottom: 1px solid #293047;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.news details[open] summary::after {
  transform: rotate(225deg);
}

.news details > div {
  padding-bottom: 1em;
}

/* ---------- tech ---------- */

.resume-row {
  display: flex;
  margin: 0;
}

.resume-label {
  flex: 0 0 30%;
}

.resume-label h2 {
  margin: 0 0 0.35em;
  font-style: italic;
  color: grey;
}

.resume-items {
  flex: 1;
}

/* Match live's resume rhythm: 24px items with ~20px (0.83em) bottom margin →
   uniform ~48px top-to-top spacing, including across the CURRENTLY/PREVIOUSLY
   group boundary (live has no special group gap, just evenly-spaced items). */
.resume-items h2 {
  margin: 0 0 0.83em;
}

.resume-items a {
  color: inherit;
}

/* ---------- film ---------- */

/* Section title logos (Silicon Valley / Star Wars) — sized by height so both
   wordmarks read at a consistent visual scale; scale down on narrow screens. */
.section-title {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  margin: 1.6em auto 1.2em;
}

.hr-inset,
#film hr,
#music hr {
  margin-left: 8.35vw;
  margin-right: 8.35vw;
}

.film-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 2em 0;
}

.film-row .photo-grid {
  flex: 0 0 59%;
}

.film-row > p,
.film-row > div:not(.photo-grid) {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.button {
  display: inline-block;
  background: #1a1f2d;
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 18px 30px;
  margin-top: 1em;
}

.button:hover {
  opacity: 0.8;
}

.film-signature {
  text-align: center;
}

.film-signature img {
  margin: 0 auto 1.5em;
  max-width: 320px;
}

.text-center {
  text-align: center;
}

/* ---------- music ---------- */

.apps-row {
  display: flex;
  gap: 48px;
  margin: 2em 0;
}

.apps-row > div {
  flex: 1;
  min-width: 0;
}

.app-icon {
  width: 100px;
  height: 100px;
}

.app-badge img {
  width: 135px;
  height: auto;
  border-radius: 13px;
}

.quote-attrib {
  text-align: right;
}

.soundcloud-player {
  width: 100%;
  border: 0;
  margin: 1em 0;
}

/* ---------- etc ---------- */

.etc-bleed {
  padding: 0 1vw;
}

.experiments-row {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  margin: 1em 0 2em;
}

.experiments-row > div {
  flex: 1;
  min-width: 0;
}

.experiments-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.experiments-row p {
  margin-top: 0.8em;
  text-align: center;
}

.experiments-row h3 {
  margin-top: 3em;
}

/* ---------- redcircles: page-scoped rules live in /redcircles/rc.css ---------- */

/* ---------- mobile ---------- */

@media screen and (max-width: 800px) {
  .site-header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px 16px 8px;
  }

  .branding {
    flex-direction: column;
    gap: 8px;
  }

  .site-nav {
    gap: 20px;
  }

  .container,
  .container--inset,
  .container--wide {
    padding: 0 16px;
  }

  .resume-row,
  .film-row,
  .apps-row,
  .experiments-row {
    flex-direction: column;
    gap: 24px;
  }

  .resume-label {
    flex-basis: auto;
  }

  /* Mobile stacks each resume group (label above its items); add clear vertical
     separation before each subsequent group (e.g. PREVIOUSLY) so it doesn't
     crowd the group above. Desktop is unchanged (this is inside the mobile
     breakpoint only). */
  .resume-row + .resume-row {
    margin-top: 1.5em;
  }
}
