/* LESSON 10: @font-face loads a font file that lives in your own site folder (fonts/), so it looks
   the same on every computer. Geist Mono is free to use (SIL Open Font License). */
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* LESSON 4: CSS is a list of rules: "selector { property: value; }".
   The selector says WHAT to style (h1, .card, #work); the properties say HOW.
   Variables (--name) let us define a color once and reuse it everywhere. */

:root {
  --band: #F3F3F1;      /* warm-gray header band from your resume */
  --ink: #121212;       /* near-black name and headings */
  --text: #5E5E5E;      /* gray body text */
  --green: #95BF47;     /* accent green from your resume */
  --line: #E3E3DE;      /* faint lines */
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --side: 230px;        /* width of the left column */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: #fff;
}

a { color: var(--ink); }

/* ---------- Page layout: fixed left column + content ---------- */
.layout { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 44px 28px 28px 36px;
  display: flex; flex-direction: column; gap: 44px; border-right: 1px solid var(--line); background: #fff;
}
.side .name {
  font-family: var(--mono); font-weight: 400; font-size: 17px; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.menu { display: flex; flex-direction: column; gap: 16px; }
.menu a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.menu a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: transparent; transition: background .2s; }
.menu a:hover, .menu a.on { color: var(--ink); }
.menu a:hover::before { background: var(--line); }
.menu a.on::before { background: var(--green); }
.side .small { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #9a9a94; }
.content { padding: 44px 48px 64px; max-width: 1040px; width: 100%; }

/* Landing page: the reel fills the space next to the sidebar */
.home .content { max-width: none; padding: 0; display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #fff; }
video.reel { display: block; width: 100%; max-height: 100vh; aspect-ratio: 16 / 9; object-fit: contain; cursor: pointer; }

.lead { font-size: 17px; color: var(--ink); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 28px; }
.contact-list li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 90px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9a9a94; padding-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 0 0 28px; }
h2 {
  font-family: var(--mono); font-weight: 400; color: var(--ink); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 2px solid var(--green); padding-bottom: 6px; margin: 0 0 18px;
}
.blurb { font-size: 14px; }

/* ---------- Projects wall: sticky notes on graph paper ---------- */
.wall-page {
  max-width: none; min-height: 100vh;
  /* graph paper: fine lines every 20px, stronger lines every 100px */
  background-color: #FBFBF8;
  background-image:
    linear-gradient(rgba(120,150,170,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,170,.32) 1px, transparent 1px),
    linear-gradient(rgba(120,150,170,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,150,170,.14) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
.wall-page h2 { border: 0; display: inline-block; background: #FBFBF8; padding: 4px 10px; margin-left: -10px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 72px 44px; padding: 24px 8px 40px; max-width: 1240px; }
.note {
  position: relative; background: var(--paper); transform: rotate(var(--tilt));
  padding: 26px 18px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 10px 18px -6px rgba(0,0,0,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.note:hover, .note:focus-visible, .note.playing { transform: rotate(0deg) translateY(-3px); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 18px 28px -8px rgba(0,0,0,.28); }
.note:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tape { position: absolute; top: -11px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(-2deg);
        background: rgba(255,255,255,.62); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.note-title { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.media { position: relative; width: 100%; aspect-ratio: 16 / 9; display: flex; align-items: flex-end; justify-content: center; }
.media img.spin { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.18)); }
.media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; display: none; }
.note.playing .media img.spin { visibility: hidden; }
.note.playing .media video { display: block; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.note .play { align-self: flex-start; background: none; border-radius: 0; padding: 0 0 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
              color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }

/* Homepage: jump link + showreel taped to the board */
.jump { display: inline-block; margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
        text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent, #95BF47); padding-bottom: 2px; }
.jump:hover { color: #000; }
.reel-note { position: relative; z-index: 1; max-width: 1240px; padding: 24px 8px 96px; }
.reel-page { display: flex; align-items: center; min-height: 100vh; }
.reel-page .reel-note { width: 100%; }
.reel-paper { position: relative; background: #fff; padding: 14px; transform: rotate(-.4deg);
              box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 30px -12px rgba(0,0,0,.28); }
.reel-paper video.reel { width: 100%; max-height: none; }

/* Paper grain: a tiny tile of SVG noise plus a soft darkening toward the edges, layered on top of each note's
   paper color. The product photo sits above this layer, so it stays clean. */
.note, .role {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .6 -.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --edge: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(90,70,40,.13) 100%);
}
.note { background: var(--grain), var(--edge), var(--paper); }
.role { background: var(--grain), var(--edge), #FFFDF4; }
/* Dark notes: deeper paper with light speckles and light text, for contrast on the board */
.note.dark {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .97  0 0 0 0 .9  0 0 0 .42 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --edge: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.28) 100%);
}
.note.dark .note-title, .note.dark .play { color: #F2EFE6; }
.note.dark .tape { opacity: .75; }

/* Dark side menu: anchors the bright board */
.side { background: #151513; border-right-color: #151513; }
.side .name { color: #F2EFE6; }
.menu a { color: #8F8D86; }
.menu a:hover, .menu a.on { color: #F2EFE6; }
.menu a:hover::before { background: #5c5b56; }
.side .small { color: #6f6e69; }

/* Manila folders: each project note is taped to the front of a folder. The tab carries the project name;
   the sheet peeking out of the top is a placeholder for behind-the-scenes photos. */
.folder {
  --kraft: #D8BC84;
  position: relative; margin-top: 30px; padding: 30px 22px 24px; transform: rotate(var(--tilt));
  background: var(--grain), radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(110,80,30,.16) 100%), var(--kraft);
  border-radius: 2px 6px 4px 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 14px 24px -10px rgba(60,40,10,.35), inset 0 2px 0 rgba(255,255,255,.25);
  transition: transform .25s ease, opacity .25s ease;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .25  0 0 0 0 .1  0 0 0 .7 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.folder-tab {
  position: absolute; left: 0; top: -28px; height: 30px; padding: 0 22px 0 16px; display: flex; align-items: center;
  background: var(--grain), var(--kraft); border-radius: 6px 10px 0 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}
.folder-tab .note-title { font-size: 12px; letter-spacing: .14em; color: #3A2E18; white-space: nowrap; }
.folder-sheet {
  position: absolute; left: 34%; right: 6%; top: -15px; height: 17px; background: #F7F3E8;
  box-shadow: 0 -1px 2px rgba(0,0,0,.12); transform: rotate(1.2deg); z-index: -1;
}
.folder { isolation: isolate; }
.folder .note { margin: 0; }
.folder .note .tape { top: -12px; }
.wall-page.tracing .folder:not(:has(.lit)) { opacity: .32; }
.wall-page.tracing .folder .note:not(.lit) { opacity: 1; }
.folder:has(.note:hover), .folder:has(.note.playing) { transform: rotate(0deg) translateY(-3px); }

/* About: first-person intro */
.about-intro p { font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 680px; }

/* "Hats I've worn" heading above the role notes */
.hats-title { margin: 0 0 6px; padding: 0; border: 0; font-family: var(--mono); font-weight: 500; font-size: 15px;
              letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }

/* Name + title in the side menu */
.who { display: flex; flex-direction: column; gap: 8px; }
.role-title { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #95BF47; }

/* Role notes + red string */
.wall-page { position: relative; }
.roles-wrap { max-width: 1240px; padding: 12px 8px 56px; }
.roles-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
              margin: 0 0 22px; }
.roles { display: flex; flex-wrap: wrap; gap: 26px 30px; }
.role {
  position: relative; width: 150px; min-height: 92px; padding: 24px 12px 12px; border: 0; cursor: pointer;
  background: #FFFDF4; transform: rotate(var(--tilt)); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 8px 14px -6px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s, opacity .25s;
}
.role small { font-size: 10px; letter-spacing: .1em; color: #9a9a94; text-transform: none; }
.role .pin { position: absolute; top: 8px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
             background: radial-gradient(circle at 35% 35%, #F08C7E, #C0392B 60%, #8E2418); box-shadow: 0 2px 2px rgba(0,0,0,.3); }
.role:hover, .role.on { transform: rotate(0deg) translateY(-3px); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 14px 22px -8px rgba(0,0,0,.28); }
.role:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wall-page.tracing .note:not(.lit), .wall-page.tracing .role:not(.lit) { opacity: .32; }
.note { transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
svg.strings { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
svg.strings.pins { z-index: 3; }
.wall, .roles-wrap { position: relative; z-index: 1; }
.note, .role { z-index: 1; }
svg.strings path { fill: none; stroke: #C0392B; stroke-width: 1.6; stroke-linecap: round; opacity: .9;
                   stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s ease forwards; }
svg.strings circle { fill: #C0392B; stroke: #8E2418; stroke-width: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- The project board (old layout, no longer used) ---------- */
/* CSS Grid: 3 equal columns. The title card spans all 3 columns, which puts it in its own middle row. */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
  padding: 32px 24px;
  background-color: var(--band);
  /* graph-paper grid, drawn with two repeating gradients (no image needed) */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line);
}

.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; gap: 4px;
  padding: 8px; min-height: 270px;
  background: none; border: 0; font: inherit; color: inherit;
}
.tile img { max-height: 190px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0,0,0,.18)); transition: transform .2s; }
.tile .label { color: var(--ink); font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.tile .sub { font-size: 12px; }
.tile .play {
  font-size: 12px; font-weight: bold; color: var(--ink);
  background: var(--green); padding: 2px 10px; border-radius: 99px; margin-top: 2px;
}
button.tile { cursor: pointer; }
button.tile:hover img, button.tile:focus-visible img { transform: translateY(-6px); }
button.tile:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Product stack: the hero sits in front, two supporting products peek out behind and fan out on hover */
.stack { position: relative; display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 200px; }
.stack img.spin { position: relative; z-index: 2; }
.tile .stack img.side {
  position: absolute; bottom: 4px; z-index: 1; max-height: 130px; max-width: 38%;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.14)); transition: transform .35s ease;
}
.tile .stack img.side.l { right: 50%; transform: translateX(-30%) rotate(-5deg); }
.tile .stack img.side.r { left: 50%;  transform: translateX(30%) rotate(5deg); }
button.tile:hover .stack img.side.l, button.tile:focus-visible .stack img.side.l { transform: translateX(-58%) rotate(-9deg); }
button.tile:hover .stack img.side.r, button.tile:focus-visible .stack img.side.r { transform: translateX(58%) rotate(9deg); }

/* Placeholder tiles waiting for a video and a product cutout */
.tile.soon .ghost {
  display: flex; align-items: center; justify-content: center;
  width: 140px; height: 150px; border: 2px dashed #b8b8b2; color: #9a9a94; font-size: 12px; margin-bottom: 6px;
}

/* ---------- Video pop-up ---------- */
/* the pop-up sizes itself to the video, so tall (stroller) and wide (fashion) reels both fit */
dialog#player { border: 0; padding: 0; background: #000; width: auto; max-width: 92vw; }
dialog#player::backdrop { background: rgba(18,18,18,.75); }
dialog#player video { display: block; width: auto; height: auto; max-width: 92vw; max-height: 82vh; }
dialog#player video { cursor: pointer; }
dialog#player .progress { height: 3px; background: #2a2a2a; }
dialog#player .progress span { display: block; height: 100%; width: 0; background: var(--green); }
dialog#player .cap { margin: 0; padding: 8px 12px; color: #fff; font-size: 14px; background: #121212; }
dialog#player .close {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}

/* ---------- Experience ---------- */
.job { margin-bottom: 26px; }
.job h3 { color: var(--ink); font-size: 18px; margin: 0 0 4px; }
.job h4 { color: var(--ink); font-size: 15px; margin: 14px 0 4px; }
.job span { color: var(--text); font-weight: normal; font-size: 13px; }
.job ul { margin: 4px 0 0; padding-left: 20px; }
.job li { margin-bottom: 6px; }

/* ---------- Skills ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--green); padding: 4px 12px; border-radius: 99px; font-size: 14px; color: var(--ink); }

/* ---------- Contact + footer ---------- */
.button {
  display: inline-block; background: var(--green); color: var(--ink); text-decoration: none;
  font-weight: bold; padding: 10px 22px;
}
.button:hover { filter: brightness(.95); }

/* ---------- Phones: LESSON 5, a @media rule only applies when the screen is narrow ---------- */
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: baseline;
          justify-content: space-between; gap: 14px; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
  .menu a { letter-spacing: .1em; }
  .side .small { display: none; }
  .content { padding: 28px 20px 48px; }
  .home .content { min-height: 0; }
  .board { grid-template-columns: repeat(2, 1fr); padding: 20px 12px; }
  .wall { grid-template-columns: 1fr; gap: 44px; padding: 20px 6px 32px; }
  .side { align-items: center; }
}
