/* ---------------------------------------------------------------
   RYAN KAVANAGH — simple portfolio
   Same DNA as the main site: black, 17px/500 grotesque stack.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Open Sauce One";
  src: url("fonts/OpenSauceOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce One";
  src: url("fonts/OpenSauceOne-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Open Sauce One";
  src: url("fonts/OpenSauceOne-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #c8c8c8;
  --text-dim: #8a8a8a;
  --border: #2c2c2c;
  --pill-bg: rgba(90, 90, 90, 0.62);
  --pill-btn: rgba(255, 255, 255, 0.14);
  --font-stack: "Open Sauce One", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 26px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Floating pill nav ------------------------------------------- */

.pill {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 550px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 26px;
  background: var(--pill-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 999px;
  color: #ffffff;
}

.pill-name { font-weight: 600; }
.pill-name sup { font-size: 0.55em; font-weight: 500; }

.pill-toggle {
  width: 56px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-btn);
  cursor: pointer;
  position: relative;
  flex: none;
}

/* plus sign drawn with pseudo-elements so it can rotate to × */
.pill-plus::before,
.pill-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ffffff;
  transition: transform 0.3s ease;
}
.pill-plus::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.pill-plus::after  { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }

.pill.open .pill-plus::before { transform: translate(-50%, -50%) rotate(45deg); }
.pill.open .pill-plus::after  { transform: translate(-50%, -50%) rotate(45deg); }

/* frosted panel unfolds under the pill; a sibling of the pill (not a
   child) because nested backdrop-filters don't render */
.pill-menu {
  position: fixed;
  top: 78px; /* pill top 18 + pill height ~54 + 6 gap */
  left: 50%;
  width: min(calc(100% - 36px), 550px);
  z-index: 9;
  padding: 20px;
  background: rgba(90, 90, 90, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px;
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pill.open + .pill-menu {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

.menu-chips {
  display: flex;
  gap: 8px;
}

.chip {
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  transition: background 0.15s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.18); }

/* Mask reveal: two identical lines stacked inside a one-line-tall
   window; the stack slides up exactly one line on hover so the
   duplicate swipes into view from below */
.mask-window {
  display: block;
  height: 1.3em;
  overflow: hidden;
}
.mask {
  display: block;
  line-height: 1.3;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.mask-line { display: block; }
a:hover .mask { transform: translateY(-50%); }

.menu-intro {
  margin-top: 48px;
  max-width: 90%;
  color: #ffffff;
}

.menu-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--pad);
  margin-top: 40px;
  color: #ffffff;
}
/* Underline draws in from the left on hover */
.underline-draw {
  position: relative;
  padding-bottom: 2px;
}
.underline-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.underline-draw:hover::after { transform: scaleX(1); }

.location {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}
.location .pin {
  width: 14px;
  height: 14px;
  flex: none;
}

@media (max-width: 540px) {
  .menu-chips { flex-wrap: wrap; }
  .chip { flex: 1 1 40%; }

  .menu-contact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .location { text-align: left; }
}

/* ---- Hero video ---------------------------------------------------- */

.hero {
  height: 100vh;
  height: 100dvh;
  line-height: 0;
}
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

