/* *TERA: a topographic survey in night, slate, sage and cream. */
.tr { --night: #03070A; --slate: #182024; --fog: #5C615D; --sage: #AAAB9B; --cream: #FCF6E1; --g: clamp(16px, 2.4vw, 40px); --mono: "Geist Mono", ui-monospace, Menlo, monospace; background: var(--night); color: var(--cream); overflow: hidden; }
.tr *, .tr *::before, .tr *::after { box-sizing: border-box; }
.tr button { font: inherit; color: inherit; cursor: pointer; } .tr button:focus-visible, .tr a:focus-visible, .tr input:focus-visible, .tr [tabindex]:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.tr h1, .tr h2, .tr p { margin: 0; } .tr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tr-k { font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }

.tr-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--hdr, 72px) + 2vh) var(--g) 96px; isolation: isolate; }
.tr-bg, .tr-cv { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; } .tr-bg img { width: 100%; height: 100%; object-fit: cover; display: block; } .tr-cv { z-index: 0; touch-action: pan-y; cursor: crosshair; }
.tr-hero > *:not(.tr-bg):not(.tr-cv) { position: relative; z-index: 1; pointer-events: none; } .tr-ctl, .tr-hero-top a { pointer-events: auto; }
.tr-hero-top { display: flex; justify-content: space-between; gap: 16px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; color: rgb(252 246 225 / .7); } .tr-hero-top a { color: inherit; }
.tr-hero-mid { align-self: center; justify-self: center; text-align: center; width: min(86vw, 1100px); } .tr-hero h1 img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 30px rgb(3 7 10 / .5)); }
.tr-tag { margin-top: clamp(18px, 3vh, 36px) !important; font: 500 clamp(13px, 1.3vw, 18px)/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; }
.tr-hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.tr-lede { max-width: 44ch; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; color: rgb(252 246 225 / .8); text-shadow: 0 1px 12px rgb(3 7 10 / .8); }
.tr-ctl { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .tr-ctl label { display: flex; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); text-transform: uppercase; } .tr-ctl input { width: clamp(110px, 14vw, 180px); accent-color: var(--cream); min-height: 32px; }
.tr-ctl button { min-height: 40px; padding: 0 16px; border: 1px solid rgb(252 246 225 / .4); border-radius: 99px; background: rgb(3 7 10 / .5); font: 500 11px/1 var(--mono); text-transform: uppercase; } .tr-ctl button:hover { background: var(--cream); color: var(--night); }
.tr-hint { position: absolute !important; left: 50%; bottom: clamp(70px, 12vh, 120px); translate: -50% 0; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgb(252 246 225 / .75); white-space: nowrap; }

.tr-legend { border-top: 1px solid rgb(252 246 225 / .18); background: var(--night); } .tr-legend-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); } .tr-legend-in > div { padding: 20px var(--g); border-right: 1px solid rgb(252 246 225 / .18); display: grid; gap: 8px; } .tr-legend-in > div:last-child { border-right: 0; }
.tr-legend span { font: 500 11px/1 var(--mono); text-transform: uppercase; color: var(--sage); } .tr-legend b { font-weight: 500; font-size: 15px; }

.tr-thesis { padding: clamp(80px, 12vw, 200px) var(--g); background: linear-gradient(180deg, var(--night), #0d1417); }
.tr-big { margin: 22px 0 clamp(34px, 5vw, 70px); font-size: clamp(34px, 6.4vw, 112px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.tr-pair { display: flex; align-items: center; gap: clamp(16px, 4vw, 60px); flex-wrap: wrap; } .tr-pair div { display: grid; } .tr-pair b { font-size: clamp(28px, 4vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: 500; } .tr-pair span { font: 500 12px/1.2 var(--mono); text-transform: uppercase; color: var(--sage); margin-top: 8px; } .tr-pair i { font-style: normal; font-size: clamp(36px, 6vw, 90px); animation: tr-spin 14s linear infinite; display: inline-block; } @keyframes tr-spin { to { rotate: 360deg; } }
.tr-sub { margin-top: clamp(40px, 6vw, 90px) !important; max-width: 60ch; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.55; color: rgb(252 246 225 / .75); }

.tr-plates { padding: clamp(60px, 9vw, 150px) 0; background: #0d1417; }
.tr-plates-head { padding: 0 var(--g); display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 60px); } .tr-plates-head h2 { font-size: clamp(40px, 7vw, 120px); line-height: .92; letter-spacing: -.05em; font-weight: 500; } .tr-plates-head p { max-width: 44ch; color: rgb(252 246 225 / .7); line-height: 1.5; }
.tr-strip { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; padding: 4px var(--g) 24px; scroll-snap-type: x proximity; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--fog) transparent; } .tr-strip.drag { cursor: grabbing; scroll-snap-type: none; } .tr-strip.drag * { user-select: none; }
.tr-plate { flex: 0 0 clamp(260px, 30vw, 460px); margin: 0; scroll-snap-align: start; }
.tr-pic { position: relative; overflow: hidden; aspect-ratio: 1638 / 2048; background: var(--slate); border: 1px solid rgb(252 246 225 / .16); } .tr-pic img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-drag: none; }
.tr-loupe { position: absolute; left: 0; top: 0; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 2px solid var(--cream); background-color: var(--night); background-repeat: no-repeat; box-shadow: 0 10px 40px rgb(0 0 0 / .6); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; pointer-events: none; }
.tr-pic.on .tr-loupe { opacity: 1; transform: scale(1); }
.tr-plate figcaption { display: grid; gap: 6px; margin-top: 14px; } .tr-plate figcaption span { font: 500 11px/1 var(--mono); text-transform: uppercase; color: var(--sage); } .tr-plate b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; } .tr-plate p { font-size: 13px; line-height: 1.45; color: rgb(252 246 225 / .65); }

.tr-id { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); padding: clamp(60px, 9vw, 150px) var(--g); background: var(--cream); color: var(--night); align-items: center; }
.tr-id .tr-k { color: #4a4d49; } .tr-id h2 { margin: 14px 0 18px; font-size: clamp(36px, 5.6vw, 92px); line-height: .94; letter-spacing: -.045em; font-weight: 500; } .tr-id p { max-width: 40ch; line-height: 1.5; color: #2a2e2c; } .tr-id small { display: block; margin-top: 18px; font: 500 11px/1.4 var(--mono); color: #4a4d49; }
.tr-con { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; min-height: min(70svh, 560px); }
.tr-stage { position: relative; background: var(--bg, #03070A); transition: background .4s; display: grid; place-items: center; overflow: hidden; color: var(--fg, #FCF6E1); }
.tr-st, .tr-wd { display: block; background: currentColor; transition: background .4s; } .tr-st { display: none; }
.tr-wd { width: 72%; aspect-ratio: 1800 / 504; -webkit-mask: var(--word) center / contain no-repeat; mask: var(--word) center / contain no-repeat; }
.tr-stage::after { content: ""; position: absolute; inset: 0; background: url(/assets/media/tera-star.png) no-repeat; opacity: 0; }
.tr-con .tr-stage { grid-template-rows: 1fr; } .tr-stage { background-image: none; }
.tr-read { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 500 11px/1.2 var(--mono); text-transform: uppercase; }
.tr-bands { display: grid; grid-template-rows: repeat(5, 1fr); gap: 0; } .tr-bands button { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px; border: 0; background: var(--c); text-align: left; font: 500 11px/1.3 var(--mono); text-transform: uppercase; color: #fff; mix-blend-mode: normal; } .tr-bands button[data-c="#AAAB9B"], .tr-bands button[data-c="#FCF6E1"] { color: #03070A; } .tr-bands b { font-weight: 500; opacity: .8; }
.tr-bands button { outline: 1px solid rgb(3 7 10 / .25); outline-offset: -1px; } .tr-bands button[aria-pressed="true"] { } .tr-bands button[aria-pressed="true"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; } .tr-bands button { transition: translate .25s; }

.tr-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); padding: clamp(60px, 9vw, 150px) var(--g); background: linear-gradient(180deg, #0d1417, var(--night)); }
.tr-story > div > p { margin-top: 16px; font-size: clamp(16px, 1.5vw, 23px); line-height: 1.5; color: rgb(252 246 225 / .85); }
.tr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; } .tr-stat b { display: block; font-size: clamp(50px, 7vw, 110px); line-height: .9; letter-spacing: -.06em; font-weight: 500; } .tr-stat small { font-size: .3em; margin-left: 6px; letter-spacing: 0; } .tr-stat span { display: block; margin-top: 8px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; color: var(--sage); }
.tr-story blockquote { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgb(252 246 225 / .2); font-size: clamp(22px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.03em; } .tr-story cite { display: block; margin-top: 16px; font: 500 12px/1 var(--mono); font-style: normal; text-transform: uppercase; color: var(--sage); }
.tr-note { margin-top: 20px !important; font: 500 11px/1.4 var(--mono) !important; color: var(--fog) !important; }

@media (max-width: 800px) {
  .tr-legend-in { grid-template-columns: repeat(2, 1fr); } .tr-legend-in > div:nth-child(2) { border-right: 0; } .tr-legend-in > div:nth-child(-n+2) { border-bottom: 1px solid rgb(252 246 225 / .18); }
  .tr-id, .tr-story { grid-template-columns: 1fr; } .tr-con { grid-template-columns: 1fr; grid-template-rows: 300px auto; } .tr-bands { grid-template-rows: none; grid-template-columns: repeat(5, 1fr); min-height: 90px; }  .tr-bands span { font-size: 9px; } .tr-bands b { display: none; }
  .tr-hero-top span { display: none; } .tr-hint { bottom: 200px; } .tr-loupe { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
}
@media (prefers-reduced-motion: reduce) { .tr-pair i { animation: none; } .tr-loupe, .tr-bands button { transition: none; } }
