:root {
  --site-header-height: 108px;
}

.site-header {
  height: var(--site-header-height);
  display: block;
  padding: 0 5%;
  background: linear-gradient(#f5f7faf8, #f5f7faed);
  border-bottom: 1px solid #48566b14;
}

.site-header-main {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-primary-nav {
  gap: clamp(17px, 2.3vw, 33px);
}

.site-work-nav {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.35vw, 35px);
  border-top: 1px solid #48566b18;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-work-nav::-webkit-scrollbar { display: none; }
.site-work-nav::before {
  content: "WORK / 05";
  margin-right: auto;
  color: #8894a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.site-work-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  height: 100%;
  padding: 0 2px;
  color: var(--muted);
  font-size: 11px;
}

.site-work-nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.site-work-nav a:hover,
.site-work-nav a[aria-current="page"] { color: var(--ink); }
.site-work-nav a:hover::after,
.site-work-nav a[aria-current="page"]::after { transform: scaleX(1); }
.reading.portfolio,
.portfolio-contact,
.profile-section,
.portfolio-card#album { scroll-margin-top: calc(var(--site-header-height) + 12px); }

.profile-section {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.45fr);
  column-gap: clamp(50px, 7vw, 130px);
  padding: 108px max(6%, calc((100vw - 1320px) / 2)) 100px;
  background: #edf1f6;
  overflow: hidden;
}

.profile-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(6%, calc((100vw - 1320px) / 2));
  width: 76px;
  height: 3px;
  background: var(--orange);
}

.profile-intro .eyebrow,
.profile-tools-heading .eyebrow { color: var(--orange); }
.profile-intro h2 {
  margin: 0;
  font-size: clamp(35px, 4.4vw, 65px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.15;
}
.profile-intro h2 span { color: var(--orange); }
.profile-intro > p:last-child,
.profile-tools-heading > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 24px;
  margin: 0;
  border-top: 1px solid #48566b30;
}
.profile-facts div {
  min-width: 0;
  padding: 18px 0 22px;
  border-bottom: 1px solid #48566b20;
}
.profile-facts dt {
  margin-bottom: 10px;
  color: #8792a2;
  font-size: 10px;
  letter-spacing: .12em;
}
.profile-facts dd {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 560;
  line-height: 1.5;
}
.profile-facts dd span {
  margin-left: 7px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
}

.profile-tools {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 1.45fr);
  gap: clamp(50px, 7vw, 130px);
  align-items: end;
  margin-top: 82px;
  padding-top: 58px;
  border-top: 1px solid #48566b22;
}
.profile-tools-heading h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 39px);
  font-weight: 560;
  letter-spacing: -.055em;
  line-height: 1.22;
}
.tool-shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}
.tool-tile {
  min-width: 0;
  min-height: 151px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 12px 13px;
  background: #f8fafc;
  border: 1px solid #fff;
  border-radius: 15px;
  box-shadow: 0 10px 26px #48566b0b;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tool-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px #48566b17;
}
.tool-glyph {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: auto;
  border-radius: 12px;
  color: var(--ink);
  background: #e8edf4;
}
.tool-tile:nth-child(2) .tool-glyph,
.tool-tile:nth-child(5) .tool-glyph {
  color: #bd672d;
  background: #f7e9dc;
}
.tool-glyph svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-tile strong {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tool-tile small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.contact-placeholder a {
  border-bottom: 1px solid #48566b55;
  transition: color .2s, border-color .2s;
}
.contact-placeholder a:hover { color: var(--orange); border-color: var(--orange); }

@media (max-width: 900px) {
  .profile-section { grid-template-columns: 1fr; gap: 36px; }
  .profile-tools { grid-template-columns: 1fr; gap: 28px; margin-top: 25px; }
}

@media (max-width: 700px) {
  :root { --site-header-height: 95px; }
  .site-header { padding: 0 6%; }
  .site-header-main { height: 58px; gap: 12px; }
  .site-primary-nav { gap: clamp(10px, 3vw, 18px); font-size: 10px; }
  .site-primary-nav .motion-toggle { padding: 7px 9px; }
  .site-work-nav {
    height: 37px;
    justify-content: flex-start;
    gap: 21px;
    margin-right: -6.8vw;
    padding-right: 6vw;
    font-size: 10px;
  }
  .site-work-nav::before { display: none; }
  .site-work-nav a { font-size: 10px; }
  .interaction-hint { top: 101px; }
  .profile-section { padding: 76px 7% 72px; }
  .profile-section::before { left: 7%; }
  .profile-intro h2 { font-size: 39px; }
  .profile-facts { gap: 0 16px; }
  .profile-facts div { padding: 15px 0 18px; }
  .profile-facts dd { font-size: 13px; }
  .profile-tools { padding-top: 38px; }
  .tool-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .tool-tile { min-height: 132px; padding: 12px 10px; }
  .tool-glyph { width: 39px; height: 39px; margin-bottom: 10px; }
  .tool-glyph svg { width: 24px; height: 24px; }
  .tool-tile strong { font-size: 10px; }
  .tool-tile small { font-size: 8px; }
}

@media (max-width: 390px) {
  .site-primary-nav { gap: 9px; }
  .site-primary-nav .motion-toggle { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-tile,
  .site-work-nav a::after { transition: none; }
}

/* Planet annotation uses the existing type and palette. */
.planet-caption {
  position: absolute;
  z-index: 4;
  top: calc(var(--site-header-height) + 32px);
  left: 6%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  pointer-events: none;
}
.planet-caption span:last-child { font-size: 11px; letter-spacing: .14em; }
.hero-eyebrow-rule { display: inline-block; width: 18px; height: 1px; margin: 0 8px 3px; background: var(--line); }
.copy.hero h1 b { color: var(--orange); font-weight: inherit; }
.hero-coordinate { margin-top: 20px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.hero-coordinate span { color: var(--orange); }
.interaction-hint { display: none; }
.motion-reduced .planet-caption { display: none; }
@media (max-width: 700px) {
  .planet-caption { display: none; }
  .hero-coordinate { font-size: 7px; margin-top: 14px; }
  .hero-eyebrow-rule { width: 10px; margin: 0 4px 2px; }
}
