/* =========================================================================
   HUM Creative Co. - Graphic Design Portfolio
   Stark monochrome. Off-white / near-black per Apple's neutrals.
   ========================================================================= */

/* ---------- Fonts ---------- */
/* Upright display serif (the "Display" cuts Jared owns are italics-only) */
@font-face {
  font-family: "Ivy Presto Headline";
  src: url("fonts/IvyPrestoHeadline-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* Italic accent face - used sparingly, single words */
@font-face {
  font-family: "Ivy Presto Display";
  src: url("fonts/IvyPrestoDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Ivy Presto Text";
  src: url("fonts/IvyPrestoText-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ivy Presto Text";
  src: url("fonts/IvyPrestoText-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alternate Gothic No3";
  src: url("fonts/AlternateGothicNo3D-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f5f7;      /* Apple off-white */
  --ink: #1d1d1f;        /* Apple near-black */
  --gray: #6e6e73;       /* secondary text */
  --gray-light: #86868b; /* tertiary on ink */
  --rule: #d2d2d7;       /* hairlines */
  --well: #e8e8ed;       /* empty media slots */

  --font-display: "Ivy Presto Headline", Georgia, serif;
  --font-accent: "Ivy Presto Display", Georgia, serif;
  --font-text: "Ivy Presto Text", Georgia, serif;
  --font-gothic: "Alternate Gothic No3", "Arial Narrow", sans-serif;

  --measure: 34em;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 14vw, 200px);

  --dur-fast: 160ms;
  --dur-base: 280ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display em,
.project h3 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo { display: inline-flex; align-items: center; }
.logo svg { height: 26px; width: auto; fill: currentColor; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.site-nav a {
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 160ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-cta { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--section); padding-bottom: var(--section); }

.hero .eyebrow { margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(52px, 9vw, 132px);
  max-width: 11em;
}

.hero .lede {
  margin-top: 36px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--gray);
  max-width: var(--measure);
}

.hero-meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Work ---------- */
.work { border-top: 1px solid var(--rule); padding-top: clamp(64px, 8vw, 112px); }

.section-title { font-size: clamp(28px, 3vw, 40px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(56px, 8vw, 112px);
}

.project {
  padding-bottom: var(--section);
}

.project + .project {
  border-top: 1px solid var(--rule);
  padding-top: clamp(56px, 8vw, 104px);
}

.project-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 4vw, 56px);
  row-gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.project-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--rule);
  padding-top: 6px;
}

.project h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14em;
}

.project-role {
  grid-column: 2;
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.project-body {
  grid-column: 2;
  max-width: var(--measure);
  color: var(--gray);
}

.project-tags {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project-tags li {
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px 5px;
}

/* ---------- Media grids ---------- */
.media {
  display: grid;
  gap: clamp(12px, 2vw, 24px);
}

.media-2 { grid-template-columns: 1fr; }

.asset { position: relative; }

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

.asset img.fit-contain { object-fit: contain; }

.asset,
.asset .frame {
  background: var(--well);
  overflow: hidden;
}

.asset .frame {
  display: block;
  width: 100%;
}

.r-wide  { aspect-ratio: 16 / 10; }
.r-video { aspect-ratio: 16 / 9; }
.r-std   { aspect-ratio: 4 / 3; }

.asset iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Empty slot: shown until the real file is dropped into assets/images/work/ */
.asset.pending img { display: none; }

.asset.pending .frame::after {
  content: attr(data-file);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
}

figcaption {
  margin-top: 10px;
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* Covers that open a full PDF. No badge over the artwork - the caption states
   the format and page count, and the frame lifts on hover. */
.doc-link {
  display: block;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.doc-link:hover,
.doc-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -14px rgba(29, 29, 31, 0.45);
}

.doc-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.doc-meta::before {
  content: "·";
  margin: 0 8px;
  color: var(--rule);
}

.doc-meta {
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  .doc-link,
  .doc-link:hover,
  .doc-link:focus-visible { transform: none; transition: none; }
}

/* ---------- Lightbox ----------
   Thumbnails are cropped (object-fit: cover), so the viewer exists to show the
   whole image. Covers that open a PDF are excluded - they already have a click
   action. Enhancement only: without JS the images simply stay static. */

.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(29, 29, 31, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.94);
  opacity: 0;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out);
}

.lightbox.is-open .lb-figure { transform: scale(1); opacity: 1; }

.lb-img {
  max-width: 100%;
  /* leave room for the caption beneath */
  max-height: calc(100vh - clamp(110px, 18vw, 190px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.lb-caption {
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.72);
  text-align: center;
}

.lb-count { color: rgba(245, 245, 247, 0.4); margin-left: 12px; }

/* Controls - flat, no chrome, only a brightness shift on hover */
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 44px floor keeps these comfortably tappable on touch screens */
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--paper);
  opacity: 0.55;
  cursor: pointer;
  font-family: var(--font-text);
  line-height: 1;
  padding: 12px;
  /* arrows sit over the artwork on narrow screens - keep them legible on light images */
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  transition: opacity var(--dur-fast) ease;
}

.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-btn:focus-visible { outline: 1px solid var(--paper); outline-offset: 4px; }

.lb-close { top: clamp(8px, 2vw, 24px); right: clamp(8px, 2vw, 24px); font-size: 30px; }

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 44px;
}
.lb-prev { left: clamp(2px, 1.5vw, 20px); }
.lb-next { right: clamp(2px, 1.5vw, 20px); }
.lb-nav[disabled] { opacity: 0.15; cursor: default; }

body.lb-locked { overflow: hidden; }

@media (max-width: 719px) {
  .lb-nav { font-size: 34px; }
  .lb-img { max-height: calc(100vh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-figure { transition: none; }
  .lb-figure { transform: none; }
}

/* ---------- About (inverse) ---------- */
.about {
  background: var(--ink);
  color: var(--paper);
  padding-top: var(--section);
  padding-bottom: var(--section);
}

.about .eyebrow { color: var(--gray-light); margin-bottom: 28px; }

.about h2 {
  font-size: clamp(36px, 5.5vw, 76px);
  max-width: 13em;
}

.about-cols {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  gap: 48px;
}

.about-cols p { color: #a1a1a6; max-width: var(--measure); }
.about-cols p + p { margin-top: 1.2em; }
.about-cols strong { color: var(--paper); font-weight: 400; }

.recent-list { list-style: none; }
.recent-list li {
  border-top: 1px solid #424245;
  padding: 14px 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.35;
}
.recent-list li:last-child { border-bottom: 1px solid #424245; }

/* ---------- Experience ---------- */
.experience { padding-top: var(--section); padding-bottom: var(--section); }

.experience .section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.role {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--rule);
  padding: 28px 0;
}

.role-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
}

.role-org { color: var(--gray); }

.role-dates {
  font-family: var(--font-gothic);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.role p { margin-top: 10px; color: var(--gray); max-width: var(--measure); }

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--rule);
  padding-top: var(--section);
  padding-bottom: var(--section);
  text-align: center;
}

.contact .eyebrow { margin-bottom: 28px; }

.contact h2 {
  font-size: clamp(44px, 8vw, 112px);
  margin-left: auto;
  margin-right: auto;
  max-width: 10em;
}

.contact p {
  margin: 32px auto 0;
  color: var(--gray);
  max-width: 30em;
}

.cta {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--font-gothic);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 20px 44px 18px;
  border-radius: 999px;
  transition: opacity 160ms ease;
}
.cta:hover { opacity: 0.82; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer .logo svg { height: 20px; }

.site-footer small {
  font-family: var(--font-gothic);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-light);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 720px) {
  .media-2 { grid-template-columns: 1fr 1fr; }
  .media .span-2 { grid-column: span 2; }
  .about-cols { grid-template-columns: 1.2fr 1fr; }
  .role { grid-template-columns: 1fr auto; }
  .role .role-dates { grid-column: 2; grid-row: 1; }
  .role p, .role .role-org { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
