:root {
  color-scheme: light;
  --background: #e9e6ef;
  --surface: #f4f1f7;
  --ink: #34313f;
  --accent: #74638f;
  --muted: #706b7c;
  --line: #d3ccde;
  --gutter: clamp(28px, 7vw, 120px);
  --header-height: 108px;
  font: 16px/1.6 'Trebuchet MS', Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #d8cde8; }
.site { min-height: 100svh; }
.site-header { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; }
.wordmark img { display: block; width: 48px; height: 48px; }

nav { display: flex; align-items: center; gap: 12px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 19px; border-radius: 9px; font-size: 16px; color: var(--muted); transition: color .2s, background .2s; }
nav a:hover { color: var(--ink); background: #ffffff45; }
nav a[aria-current] { color: var(--ink); background: #ffffff85; }
.nav-icon, .mobile-title { display: none; }
.interior-view h1 span { color: inherit; }
main:focus { outline: none; }
.view { min-height: max(480px, calc(100svh - var(--header-height))); }
.view[hidden] { display: none; }
.home-view { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: stretch; }
.home-copy { min-width: 0; padding: 50px 40px 70px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
h1 { font-size: clamp(86px, 10.5vw, 160px); font-weight: 700; line-height: 1.01; letter-spacing: -.065em; margin: 0; }
h1 span { color: var(--accent); }
.home-copy p { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.6; color: var(--muted); margin: 34px 0 0; }
.dino-scene { position: relative; min-width: 0; overflow: hidden; background: #e0dbe8; }
.dino-button { --scale: 4; position: absolute; left: calc(50% - 88px); bottom: max(110px, 25%); width: 176px; height: 188px; border: 0; padding: 0; background: transparent; cursor: pointer; transform-origin: 50% 100%; }
.dino { display: block; position: relative; width: 44px; height: 47px; image-rendering: pixelated; transform: scale(var(--scale)); transform-origin: top left; }
.dino-fallback { position: absolute; inset: 0; background: url('dino-sprite.png') no-repeat -848px -2px; image-rendering: pixelated; }
.dino canvas { display: none; width: 44px; height: 47px; image-rendering: pixelated; }
.dino.renderer-ready .dino-fallback { display: none; }
.dino.renderer-ready canvas { display: block; }
.dino-button.is-jumping { animation: jump .72s cubic-bezier(.35,0,.6,1); }
.ground { position: absolute; left: 0; right: 0; bottom: max(88px, calc(25% - 22px)); height: 24px; background-image: url('dino-sprite.png'); background-size: 2466px 200px; background-position: 0 -108px; image-rendering: pixelated; pointer-events: none; opacity: .45; }
.interior-view { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-content: start; padding: clamp(48px, 10vh, 120px) var(--gutter); }
.interior-view h1 { font-size: clamp(48px, 5.8vw, 86px); line-height: 1.08; letter-spacing: -.05em; }
.view-intro { max-width: 320px; margin: 25px 0 0; color: var(--muted); font-size: 18px; }
.contact-list, .link-list { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; }
.contact-entry, .link-list a { min-width: 0; display: flex; align-items: center; gap: 22px; padding: 26px 28px; border: 1px solid #ffffff80; border-radius: 12px; background: var(--surface); transition: background .2s, transform .2s; }
.contact-entry strong { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.035em; font-weight: 500; overflow-wrap: anywhere; }
.contact-entry small, .link-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.contact-entry>span:first-child, .link-copy { min-width: 0; overflow-wrap: anywhere; }
.page-heading { min-width: 0; }
.link-icon { flex: 0 0 50px; height: 50px; display: grid; place-items: center; border-radius: 10px; background: #e7e1ee; color: var(--accent); }
.link-icon svg { width: 26px; height: 26px; }
.link-copy strong { font-size: 22px; letter-spacing: -.025em; font-weight: 600; }
.link-arrow { margin-left: auto; color: var(--accent); font-size: 24px; flex-shrink: 0; transition: transform .2s; }
.contact-entry:hover, .link-list a:hover { background: #fcfaff; transform: translateY(-2px); }
.contact-entry:hover .link-arrow, .link-list a:hover .link-arrow { transform: translate(2px,-2px); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; background: white; z-index: 10; padding: 12px; }
@keyframes jump { 0%,100% { transform: translateY(0); } 48% { transform: translateY(-78px); } }
@media (min-width: 1400px) {
  .dino-button { --scale: 5; width: 220px; height: 235px; left: calc(50% - 110px); }
}
@media (max-width: 820px) {
  :root { --gutter: 32px; --header-height: 94px; }
  h1 { font-size: 86px; }
  .home-copy { padding-right: 24px; }
  .dino-button { --scale: 3; width: 132px; height: 141px; left: calc(50% - 66px); }
  .interior-view { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .interior-view h1 { font-size: 58px; }
  .page-heading h1 br { display: none; }
  .view-intro { max-width: none; margin-top: 16px; }
  .contact-list, .link-list { width: 100%; }
}
@media (max-width: 700px) {
  :root {
    --gutter: 24px;
    --header-height: 64px;
    --tabbar-height: calc(76px + env(safe-area-inset-bottom));
  }
  html { scroll-padding-bottom: calc(var(--tabbar-height) + 20px); }
  .site { height: 100vh; height: 100dvh; min-height: 0; display: grid; grid-template-rows: calc(64px + env(safe-area-inset-top)) minmax(0, 1fr) auto; padding: 0; }
  main { grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-padding-bottom: 24px; }
  .site-header { display: contents; }
  .wordmark { grid-row: 1; align-self: center; justify-self: start; margin: env(safe-area-inset-top) 0 0 max(var(--gutter), env(safe-area-inset-left)); width: 40px; height: 40px; }
  .wordmark img { width: 36px; height: 36px; }
  nav { grid-row: 3; position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--background); }
  nav a { min-height: 62px; padding: 6px 4px; gap: 4px; flex-direction: column; border-radius: 10px; font-size: .8125rem; line-height: 1.3; font-weight: 500; }
  nav a[aria-current] { color: var(--ink); background: #ffffff85; font-weight: 600; }
  .nav-icon { display: block; width: 23px; height: 23px; }
  nav a[aria-current] .nav-icon { stroke-width: 2.2; }
  nav a:hover { background: transparent; }
  nav a[aria-current]:hover { background: #ffffff85; }
  nav a:active { background: #e6e0ed; }
  .view { min-height: 0; }
  .home-view { min-height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(280px, 1fr); }
  .home-copy { padding: 22px var(--gutter) 14px; justify-content: flex-start; }
  h1 { font-size: clamp(3rem, 13vw, 3.75rem); line-height: 1.06; letter-spacing: -.055em; }
  .home-copy p { font-size: 1.0625rem; margin-top: 18px; line-height: 1.5; max-width: 29ch; }
  .home-copy p br { display: none; }
  .dino-scene { min-height: 280px; height: auto; background: #e0dbe8; }
  .dino-button { --scale: 3; width: 132px; height: 141px; left: calc(50% - 66px); bottom: 46px; }
  .ground { left: 0; right: 0; bottom: 24px; opacity: .45; }
  .interior-view { padding: 16px 0 32px; display: block; }
  .page-heading { padding: 0 var(--gutter) 28px; }
  .desktop-title { display: inline; }
  .mobile-title { display: none; }
  .interior-view h1 { font-size: 2.125rem; line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
  .view-intro { font-size: 1rem; margin-top: 10px; line-height: 1.5; max-width: 31ch; }
  .contact-list, .link-list { width: auto; gap: 12px; margin: 0 var(--gutter); }
  .contact-entry, .link-list a { min-height: 94px; padding: 20px 18px; gap: 14px; border: 1px solid #ffffff80; border-radius: 12px; background: var(--surface); }
  .contact-entry strong { font-size: 1.125rem; line-height: 1.4; letter-spacing: -.015em; font-weight: 550; }
  .link-icon { flex-basis: 44px; height: 44px; border-radius: 12px; }
  .link-icon svg { width: 24px; height: 24px; }
  .link-copy strong { font-size: 1.0625rem; letter-spacing: -.01em; font-weight: 600; }
  .contact-entry small, .link-copy small { font-size: .9375rem; line-height: 1.45; margin-top: 4px; }
  .link-arrow { font-size: 19px; color: #8c8297; }
  .contact-entry:active, .link-list a:active { background: #e7e1ed; }
  a:focus-visible, button:focus-visible { outline-offset: -3px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .contact-entry, .link-list a { gap: 12px; }
  .contact-entry strong { font-size: 1.0625rem; }
}
@media (max-width: 700px) and (max-height: 520px) {
  .home-view { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(280px, auto); }
  .home-copy { padding-top: 18px; }
  h1 { font-size: 2.75rem; }
}
@media (hover: none) {
  .contact-entry:hover, .link-list a:hover { transform: none; }
  .contact-entry:hover .link-arrow, .link-list a:hover .link-arrow { transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
