@font-face {
  font-family: "Inter Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/InterDisplay.var.woff2?v=4.1") format("woff2");
}

:root {
  --ink: #1b1b18;
  --paper: #f3f0e8;
  --muted: rgba(27, 27, 24, 0.62);
  --line: rgba(27, 27, 24, 0.16);
  --glass: rgba(247, 244, 235, 0.72);
  --glass-strong: rgba(247, 244, 235, 0.9);
  --shadow: 0 18px 55px rgba(31, 27, 18, 0.22);
  --mono: "Inter Display", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter Display", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}

button, a { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }

.site-shell {
  min-height: 100svh;
  padding: 58px clamp(10px, 1.6vw, 22px);
  position: relative;
  isolation: isolate;
}

.hero {
  position: fixed;
  inset: 58px clamp(10px, 1.6vw, 22px);
  overflow: hidden;
  background: #191b15;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 -22svh 32svh rgba(18,18,12,0.28);
  pointer-events: none;
}

.hero-video-stage {
  position: absolute;
  inset: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  display: block;
  opacity: 0;
  filter: saturate(0.9) contrast(0.98) brightness(0.94);
  transform: scale(1.01);
  transition: opacity 360ms ease;
}

.hero-video.is-active {
  opacity: 1;
}

.video-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.06), transparent 34%),
    linear-gradient(180deg, rgba(235,236,218,0.08), rgba(20,22,17,0.08));
  mix-blend-mode: soft-light;
}

.video-indicator,
.video-clock {
  position: absolute;
  top: 25px;
  z-index: 3;
  color: rgba(247, 244, 235, 0.86);
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-shadow: 0 1px 14px rgba(0,0,0,0.42);
}

.video-indicator {
  top: 15px;
  left: 15px;
  padding: 10px 12px 20px 10px;
  pointer-events: auto;
}

.video-clock {
  right: 25px;
  min-width: 8ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
  pointer-events: none;
}

.view-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-shadow: inherit;
  cursor: pointer;
}

.view-trigger:focus-visible {
  outline: 1px solid rgba(247, 244, 235, 0.38);
  outline-offset: 4px;
  border-radius: 5px;
}

.rec-light {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff4f43;
  box-shadow: 0 0 0 3px rgba(255, 79, 67, 0.16), 0 0 14px rgba(255, 79, 67, 0.45);
  animation: rec-pulse 2.8s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% {
    opacity: 0.78;
    transform: scale(0.94);
    box-shadow: 0 0 0 2px rgba(255, 79, 67, 0.12), 0 0 10px rgba(255, 79, 67, 0.36);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(255, 79, 67, 0.16), 0 0 18px rgba(255, 79, 67, 0.55);
  }
}

.view-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  display: grid;
  min-width: 178px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(28, 29, 25, 0.62);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.video-indicator:hover .view-menu,
.video-indicator:focus-within .view-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.view-menu button {
  position: relative;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(247, 244, 235, 0.82);
  font: inherit;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.view-menu button:hover,
.view-menu button:focus-visible {
  background: rgba(255,255,255,0.13);
  color: rgba(247, 244, 235, 0.98);
  outline: none;
}

.view-menu button:active {
  transform: translateY(1px);
}

.view-menu button.is-selected,
.view-menu button[aria-checked="true"] {
  color: #ff4f43;
}

.dock,
.panel,
.ghost-button {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.masthead {
  position: fixed;
  top: 20px;
  left: 23px;
  right: 23px;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  color: rgba(27,27,24,0.76);
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
  pointer-events: none;
}

.masthead p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead p:nth-child(2) {
  justify-self: end;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(330px, calc(100vw - 36px));
  padding: 6px;
  border-radius: 17px;
  background: rgba(44, 45, 41, 0.58);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 18px 60px rgba(17, 17, 14, 0.34);
}

.dock-item {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 38px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,0.58);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.dock-item span { font-size: 17px; line-height: 1; }
.dock-item small {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  font: 10px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dock-item:hover,
.dock-item:focus-visible {
  color: #fff;
  background: rgba(255,255,255,0.14);
  outline: none;
}

.dock-item.is-active {
  color: #34c759;
  background: transparent;
  box-shadow: none;
  outline: none;
  text-shadow: 0 0 14px rgba(52, 199, 89, 0.26);
}
.dock-item:active { transform: translateY(1px) scale(0.98); }

.dock-popover,
.detail-window {
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.dock-popover {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 7;
  width: min(330px, calc(100vw - 36px));
  padding: 7px;
  border-radius: 18px;
  background: rgba(44, 45, 41, 0.62);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 18px 60px rgba(17, 17, 14, 0.34);
  opacity: 0;
  transform: translateX(-50%) translateY(18px) scale(0.98);
  transform-origin: 50% 100%;
  pointer-events: none;
  transition: opacity 190ms ease, transform 220ms cubic-bezier(.2,.85,.2,1);
}

.dock-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 76px;
  height: 12px;
  transform: translateX(-50%);
  background: rgba(44, 45, 41, 0.62);
  border-left: 1px solid rgba(255,255,255,0.18);
  border-right: 1px solid rgba(255,255,255,0.18);
  filter: blur(0.1px);
}

.dock-popover.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.dock-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px 9px;
  color: rgba(247, 244, 235, 0.52);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dock-menu-row {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  background: transparent;
  color: rgba(247, 244, 235, 0.78);
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.dock-menu-row:hover,
.dock-menu-row:focus-visible {
  background: rgba(255,255,255,0.12);
  color: rgba(247, 244, 235, 0.98);
  outline: none;
}

.dock-menu-row:active { transform: translateY(1px); }
.dock-menu-row.is-selected { color: #34c759; }
.dock-menu-row span {
  grid-row: span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: currentColor;
  opacity: 0.9;
}
.dock-menu-row strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dock-menu-row em {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.01em;
  color: rgba(247, 244, 235, 0.5);
}
.dock-menu-row.is-selected em { color: rgba(52, 199, 89, 0.72); }

.detail-window {
  position: fixed;
  right: max(34px, 5vw);
  bottom: 132px;
  z-index: 10;
  width: min(420px, calc(100vw - 44px));
  max-height: min(580px, calc(100svh - 210px));
  overflow: hidden;
  padding: 9px;
  border-radius: 22px;
  background: rgba(44, 45, 41, 0.64);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: 0 24px 70px rgba(17, 17, 14, 0.38);
  color: rgba(247, 244, 235, 0.9);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
  transition: opacity 200ms ease, transform 220ms cubic-bezier(.2,.85,.2,1);
}

.detail-window.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(20,21,18,0.48);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(247,244,235,0.78);
  line-height: 1;
}
.detail-close:hover,
.detail-close:focus-visible {
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}

.detail-shot {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #e8e5d8;
}

.shot-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(35,35,28,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35,35,28,0.08) 1px, transparent 1px),
    #e8e5d8;
  background-size: 28px 28px;
}

.shot-plate {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-4deg);
  border-radius: 999px;
  background: radial-gradient(circle, #f7f4eb 58%, #d7e3f9 59%, #f7f4eb 62%, #2c5ea8 63%, #f7f4eb 65%);
  box-shadow: 0 18px 35px rgba(25,22,14,0.2);
  color: #2b2d29;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 0.78;
  text-align: center;
}

.shot-chip,
.shot-produce {
  position: absolute;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 12px rgba(17,17,14,0.24));
}
.shot-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #10100e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.chip-one { left: 20px; top: 22px; transform: rotate(-8deg); }
.chip-two { right: 24px; bottom: 26px; transform: rotate(7deg); }
.shot-produce { font-size: 52px; }
.produce-one { left: 36px; bottom: 28px; transform: rotate(-12deg); }
.produce-two { right: 34px; top: 34px; transform: rotate(15deg); }
.produce-three { right: 112px; bottom: 18px; transform: rotate(-7deg); }

.detail-copy {
  display: grid;
  gap: 8px;
  padding: 12px 9px 8px;
}
.detail-copy-full { padding: 22px 18px 18px; }
.detail-kicker {
  margin: 0;
  color: rgba(247,244,235,0.52);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-copy h2 {
  margin: 0;
  color: #f7f4eb;
  font-size: clamp(32px, 4.8vw, 46px);
  font-weight: 520;
  letter-spacing: -0.075em;
  line-height: 0.9;
}
.detail-copy p:not(.detail-kicker) {
  margin: 0;
  color: rgba(247,244,235,0.74);
  font-size: 13px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 0;
}
.detail-meta div {
  padding: 11px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
.detail-meta dt {
  color: rgba(247,244,235,0.45);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-meta dd {
  margin: 5px 0 0;
  color: rgba(247,244,235,0.82);
  font-size: 12px;
  line-height: 1.25;
}

/* Revised dock model: the dock itself expands taller rather than spawning a separate popover. */
.dock {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0;
  overflow: hidden;
  transition: width 220ms ease, padding 220ms ease, border-radius 220ms ease, transform 220ms ease;
}

.dock.has-menu {
  width: min(330px, calc(100vw - 36px));
  border-radius: 19px;
}

.dock-menu-shell {
  display: grid;
  grid-template-areas: "stack";
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition: max-height 240ms cubic-bezier(.2,.85,.2,1), opacity 180ms ease, transform 220ms cubic-bezier(.2,.85,.2,1);
}

.dock.has-menu .dock-menu-shell {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
}

.dock-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

.dock-popover {
  position: static;
  grid-area: stack;
  left: auto;
  bottom: auto;
  width: auto;
  padding: 0 1px 7px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.85,.2,1);
}

.dock-popover::after { display: none; }

.dock-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.detail-window {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  width: min(500px, calc(100vw - 44px));
  max-height: min(540px, calc(100svh - 118px));
  overflow: auto;
  transform: translate(-50%, calc(-50% + 16px)) scale(0.985);
}

.detail-window.is-open {
  transform: translate(-50%, -50%) scale(1);
}

.detail-shot {
  margin: 0;
  min-height: 0;
  aspect-ratio: 16 / 8.6;
  background: #111;
}

.detail-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ticker {
  position: fixed;
  left: 23px;
  right: 23px;
  bottom: 20px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  color: rgba(27,27,24,0.76);
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.ticker span:nth-child(1),
.ticker span:nth-child(2) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel {
  position: fixed;
  left: max(22px, 4vw);
  right: max(22px, 4vw);
  bottom: 126px;
  z-index: 7;
  max-width: 860px;
  max-height: min(calc(100svh - 222px), 560px);
  overflow: auto;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 22px;
  background: rgba(246, 243, 235, 0.76);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-shell[data-view="work"] .panel-work,
.site-shell[data-view="about"] .panel-about,
.site-shell[data-view="contact"] .panel-contact {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel-header p { margin: 0; color: var(--muted); }

.ghost-button {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(27,27,24,0.08);
}

.work-list { display: grid; gap: 8px; }
.work-row {
  display: grid;
  grid-template-columns: 46px 1fr 1.3fr max-content;
  align-items: baseline;
  gap: 18px;
  padding: 14px 15px;
  border-radius: 15px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(27,27,24,0.08);
  transition: transform 160ms ease, background 160ms ease;
}
.work-row:hover { transform: translateY(-1px); background: rgba(255,255,255,0.58); }
.work-row span, .work-row em, .work-row time {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.work-row strong {
  font-size: clamp(19px, 2.2vw, 27px);
  letter-spacing: -0.06em;
}
.work-row em { text-transform: none; letter-spacing: 0.01em; }

.about-copy {
  max-width: 760px;
  display: grid;
  gap: 16px;
  font-size: clamp(26px, 4.2vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.075em;
}
.about-copy p { margin: 0; }
.about-copy p + p { color: rgba(27,27,24,0.56); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.contact-grid a {
  min-height: 86px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(27,27,24,0.08);
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.07em;
}

@media (max-width: 720px) {
  body { overflow: hidden; }
  .site-shell { padding: 50px 8px; }
  .hero { inset: 50px 8px; }
  .hero-video { object-position: 12% 56%; }
  .hero-video[data-yard-video="Cut Flowers"] {
    object-position: 37% 56%;
  }
  .hero-video[data-yard-video="Strawberry Patch"] {
    object-position: 47% 56%;
  }
  .hero-video[data-yard-video="Lawn"] {
    object-position: 42% 56%;
  }
  .masthead {
    top: 18px;
    left: 12px;
    right: 12px;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .masthead p {
    justify-self: start;
  }
  .masthead p:nth-child(2) {
    justify-self: end;
  }
  .ticker {
    left: 12px;
    right: 12px;
    bottom: 18px;
    grid-template-columns: 1fr max-content;
  }
  .ticker span { min-width: 0; }
  .dock { bottom: 42px; }
  .dock-popover {
    bottom: 88px;
    width: min(330px, calc(100vw - 24px));
  }
  .detail-window {
    left: 12px;
    right: 12px;
    bottom: 132px;
    width: auto;
    max-height: calc(100svh - 210px);
    overflow: auto;
  }
  .detail-shot { min-height: 170px; }
  .shot-plate { width: 136px; height: 136px; font-size: 22px; }
  .shot-produce { font-size: 40px; }
  .panel {
    left: 12px;
    right: 12px;
    bottom: 108px;
    max-height: calc(100svh - 180px);
    overflow: auto;
  }
  .work-row { grid-template-columns: 38px 1fr; gap: 6px 12px; }
  .work-row em { grid-column: 2; }
  .work-row time { grid-column: 2; }
  .about-copy { font-size: clamp(25px, 9vw, 42px); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .hero-video { transform: none; }
}
