/* mcglasson.com homepage public v8 · 2026-09-22 */
:root {
  color-scheme: light;
  --ink: #0b1720;
  --ink-soft: #21333f;
  --paper: #f3efe5;
  --paper-deep: #e7e0d2;
  --white: #fffdf8;
  --copper: #d26a43;
  --blue: #a9c6d7;
  --line: rgba(11, 23, 32, 0.2);
  --max: 1280px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--white);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(calc(100% - 3rem), var(--max));
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(243, 239, 229, 0.28);
  color: var(--paper);
  transform: translateX(-50%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a {
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

.photo-opening {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.photo-opening::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 12rem;
  background: linear-gradient(to bottom, rgba(5, 12, 17, 0.8), transparent);
  content: "";
  pointer-events: none;
}

.opening-photo {
  height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
}

.photo-stage {
  position: relative;
  width: min(100vw, 133.333svh);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}

.opening-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.opening-image-original {
  z-index: 0;
}

.opening-image-refocused {
  z-index: 1;
  opacity: 0;
  transition: opacity 650ms ease;
}

.photo-stage.is-focused .opening-image-refocused {
  opacity: 1;
}

.portal-event,
.portal-trigger {
  position: absolute;
  top: 23%;
  left: 31.25%;
  width: 30.5%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.portal-event {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.windsurfer {
  position: absolute;
  left: -28%;
  bottom: 17%;
  width: 44%;
  height: auto;
  max-width: none;
  opacity: 0;
  filter: saturate(0.9) brightness(0.92);
}

.photo-stage.is-windsurfing .windsurfer {
  animation: windsurf 3.8s 350ms linear 1 both;
}

.wizard-visitor {
  position: absolute;
  top: -10%;
  left: -18%;
  width: 135%;
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(72%) scale(1.02);
  transform-origin: 58% 43%;
}

.wizard-face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.82) brightness(0.9) contrast(0.98);
}

.wizard-face-blink {
  opacity: 0;
}

.photo-stage.is-wizard-peeking .wizard-visitor {
  animation: wizard-peek 4.6s ease-in-out 1 both;
}

.photo-stage.is-wizard-peeking .wizard-face-blink {
  animation: wizard-blink 4.6s linear 1 both;
}

.portal-trigger {
  z-index: 3;
  padding: 0;
  border: 0;
  appearance: none;
  color: var(--paper);
  background: transparent;
  cursor: zoom-in;
  touch-action: none;
  -webkit-touch-callout: none;
}

.portal-trigger::after {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(243, 239, 229, 0.66);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(0.94);
}

.photo-stage.is-arming .portal-trigger::after {
  animation: hold-cue 1s linear both;
}

.portal-trigger:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 0.35rem;
}

.opening-photo figcaption {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max)) / 2));
  bottom: 1.5rem;
  z-index: 2;
  display: grid;
  justify-items: end;
  color: rgba(243, 239, 229, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.opening-photo figcaption span:first-child {
  color: var(--blue);
}

.opening-identity {
  position: absolute;
  left: max(1.5rem, calc((100vw - var(--max)) / 2));
  bottom: 1.5rem;
  z-index: 3;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  width: min(29rem, calc(100% - 3rem));
  gap: 1rem;
  padding: 0.9rem;
  align-items: center;
  border: 1px solid rgba(243, 239, 229, 0.35);
  background: rgba(11, 23, 32, 0.88);
  backdrop-filter: blur(0.4rem);
}

.opening-identity > img {
  display: block;
  width: 100%;
  height: auto;
}

.opening-identity h1 {
  margin: 0 0 0.25rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.opening-identity p {
  margin: 0;
  color: rgba(243, 239, 229, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.42;
}

.hero {
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: var(--paper);
}

.hero-kicker,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker {
  max-width: 32rem;
  color: var(--copper);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-statement {
  max-width: 1050px;
  margin: 1.8rem 0 2.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero-statement em {
  color: var(--copper);
  font-weight: 400;
}

.hero-rule {
  display: flex;
  max-width: var(--max);
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  padding-top: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: rgba(11, 23, 32, 0.62);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workbench,
.collections,
.about {
  width: min(calc(100% - 3rem), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-label {
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  color: rgba(11, 23, 32, 0.62);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-label span:first-child {
  color: var(--copper);
}

.section-label.light {
  color: rgba(243, 239, 229, 0.65);
}

.workbench {
  border-top: 1px solid var(--line);
}

.workbench .section-label {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.workbench-intro {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(18rem, 1.25fr) minmax(16rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  color: rgba(11, 23, 32, 0.65);
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--copper);
}

.workbench-intro h2,
.tool-card h3,
.favorites h2,
.section-heading,
.about h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.workbench-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
}

.workbench-intro > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.tool-list {
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.tool-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(7rem, 0.28fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3.4rem) 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.tool-card-number {
  align-self: start;
  padding-top: 0.4rem;
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.tool-type {
  margin-bottom: 0.55rem;
  color: rgba(11, 23, 32, 0.58);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tool-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.tool-card-body > p:not(.tool-type) {
  max-width: 46rem;
  margin-bottom: 1.35rem;
  color: rgba(11, 23, 32, 0.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.tool-mark {
  display: grid;
  width: clamp(6rem, 10vw, 8.5rem);
  aspect-ratio: 1;
  place-self: center end;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-style: italic;
}

.tool-mark-mte {
  font-style: normal;
}

.primary-link {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--copper);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-link:hover,
.primary-link:focus-visible {
  color: var(--copper);
}

.collections {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.collection-list {
  border-top: 1px solid var(--line);
}

.collection-list article {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.5rem) 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.collection-list .photography-row {
  grid-template-columns: 3rem minmax(15rem, 1fr) minmax(11rem, 17rem) auto;
}

.collection-preview {
  display: block;
  width: 100%;
  height: auto;
}

.collection-number {
  padding-top: 0.35rem;
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.collection-list h3 {
  margin-bottom: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 400;
}

.collection-list p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(11, 23, 32, 0.7);
}

.status {
  padding-top: 0.55rem;
  color: rgba(11, 23, 32, 0.58);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-live {
  color: var(--copper);
}

.collection-link {
  display: inline-flex;
  gap: 0.8rem;
  margin-top: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--copper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.collection-link:hover,
.collection-link:focus-visible {
  color: var(--copper);
}

.favorites {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - var(--max)) / 2));
  color: var(--paper);
  background: var(--copper);
}

.favorites .section-label {
  margin-bottom: 4rem;
}

.favorites .section-label span:first-child {
  color: var(--ink);
}

.favorites h2 {
  margin-bottom: 0;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
}

.favorites-copy {
  align-self: end;
}

.favorites-copy > p:first-child {
  max-width: 37rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.45;
}

.favorites-note {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 239, 229, 0.45);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.about h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.about-text {
  color: rgba(11, 23, 32, 0.72);
  font-size: 1.05rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  padding: 2rem max(1.5rem, calc((100vw - var(--max)) / 2));
  align-items: center;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

footer p {
  margin: 0;
}

.footer-mark {
  color: var(--paper);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 5rem;
  }

  nav {
    gap: 1.2rem;
  }

  .nav-collections,
  .nav-favorites {
    display: none;
  }

  .workbench-intro {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .tool-mark {
    grid-column: 2;
    place-self: start;
    width: min(8rem, 34vw);
  }

  .favorites {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .collection-list .photography-row {
    grid-template-columns: 3rem 1fr auto;
  }

  .collection-preview {
    grid-column: 2 / -1;
    grid-row: 2;
    max-width: 28rem;
  }

  footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 2rem);
  }

  .nav-work,
  .nav-about {
    display: none;
  }

  .hero,
  .favorites {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .photo-opening {
    min-height: auto;
    padding-top: 5rem;
  }

  .opening-photo {
    height: auto;
    display: block;
  }

  .photo-stage {
    width: 100%;
  }

  .opening-photo figcaption {
    position: static;
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 1rem 0;
    justify-items: start;
  }

  .opening-identity {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 2rem);
    margin: 1rem;
  }

  .workbench,
  .collections,
  .about {
    width: calc(100% - 2rem);
  }

  .hero-rule {
    display: grid;
    gap: 0.5rem;
  }

  .collection-list article {
    grid-template-columns: 2rem 1fr;
  }

  .collection-list .photography-row {
    grid-template-columns: 2rem 1fr;
  }

  .collection-preview {
    grid-column: 2;
    grid-row: auto;
  }

  .status {
    grid-column: 2;
    padding-top: 0;
  }

  .tool-card {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .tool-mark {
    display: none;
  }

}

@keyframes hold-cue {
  0%,
  22% {
    opacity: 0;
    transform: scale(0.94);
  }

  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}

@keyframes windsurf {
  0% {
    left: -28%;
    opacity: 0;
    transform: translateY(0) rotate(-1deg);
  }

  10% {
    opacity: 0.82;
  }

  48% {
    transform: translateY(-2%) rotate(0deg);
  }

  90% {
    opacity: 0.82;
  }

  100% {
    left: 106%;
    opacity: 0;
    transform: translateY(1%) rotate(1deg);
  }
}

@keyframes wizard-peek {
  0% {
    opacity: 0;
    transform: translateX(72%) scale(1.02) rotate(0.5deg);
  }

  13% {
    opacity: 0.96;
    transform: translateX(2%) scale(1.02) rotate(0deg);
  }

  28% {
    transform: translateX(0) translateY(0.5%) scale(1.025) rotate(-0.35deg);
  }

  46% {
    transform: translateX(1.1%) translateY(-0.6%) scale(1.02) rotate(0.3deg);
  }

  66% {
    transform: translateX(-0.7%) translateY(0.25%) scale(1.025) rotate(-0.2deg);
  }

  82% {
    opacity: 0.96;
    transform: translateX(0.5%) scale(1.02) rotate(0.2deg);
  }

  100% {
    opacity: 0;
    transform: translateX(72%) scale(1.02) rotate(0.5deg);
  }
}

@keyframes wizard-blink {
  0%,
  49%,
  57%,
  100% {
    opacity: 0;
  }

  51%,
  55% {
    opacity: 1;
  }
}

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

  .opening-image-refocused {
    transition: none;
  }

  .photo-stage.is-windsurfing .windsurfer,
  .photo-stage.is-wizard-peeking .wizard-visitor,
  .photo-stage.is-wizard-peeking .wizard-face-blink,
  .photo-stage.is-arming .portal-trigger::after {
    animation: none;
    opacity: 0;
  }
}
