/* Contact page only (loaded after style.css)
   Computer photo: assets/contact/computer.webp, 1596×1567, ratio 1.0185.
   Screen (.crt) position in % of that photo:
     left 15.83  top 7.90  width 68.68  height 52.73
   If the photo is ever re-cut, re-measure these four numbers. */
@font-face { font-family: 'VT323'; src: url('fonts/vt323.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }

.contact-page {
  --ph: #8fd16a;          /* phosphor green */
  --ph-dim: #4f7a3d;
  --ph-dark: #0a110c;
  --pix: 'Press Start 2P', monospace;
  --vt: 'VT323', ui-monospace, monospace;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-main { padding-top: 70px; overflow-x: clip; }
.contact-main section { margin-bottom: 0; }

/* ---------- The desk + computer ---------- */
.desk { position: relative; padding-top: 10px; }
.desk__stage {
  position: relative;
  width: min(900px, 94vw, calc((100svh - 110px) * 1.0185));
  margin-inline: auto;
}
.desk__computer { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }

/* phones: zoom into the monitor, keyboard runs off the edges */
@media (max-width: 700px) {
  .desk__stage { width: 134vw; margin-left: calc(50vw - 134vw * 0.5017); }
}

/* ---------- The screen ---------- */
.crt {
  position: absolute;
  left: 15.83%; top: 7.9%; width: 68.68%; height: 52.73%;
  --dock-h: 10.5cqw;
  border-radius: 4.2% / 5.5%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #12201a 0%, var(--ph-dark) 70%, #050806 100%);
  container-type: size;
  color: var(--ph);
  font-family: var(--vt);
}
.crt__inner {
  position: absolute; inset: 0 0 var(--dock-h) 0;
  padding: 2.2cqw 5cqw 1.6cqw;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--ph-dim) transparent;
  text-shadow: 0 0 .5cqw rgba(143, 209, 106, .55);
  animation: flicker 6s infinite steps(1);
}
.crt.is-off .crt__inner, .crt:not(.ready) .dock { visibility: hidden; }

/* scanlines + vignette + glass glare, on top of everything, click-through */
.crt__fx {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(160deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%),
    radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 3cqw rgba(0,0,0,.8);
}
/* power-on line */
.crt__power { position: absolute; inset: 0; pointer-events: none; }
.crt.booting .crt__power::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 100%; height: 2px; background: #e9ffe0;
  box-shadow: 0 0 20px 6px rgba(190,255,170,.6);
  transform: translate(-50%, -50%) scaleX(0);
  animation: power-on .55s ease-out forwards;
}
@keyframes power-on {
  0%   { transform: translate(-50%,-50%) scale(0, 1); opacity: 1; }
  45%  { transform: translate(-50%,-50%) scale(1, 1); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1, 160); opacity: 0; }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  47% { opacity: .94; }
  48% { opacity: 1; }
  83% { opacity: .97; }
  84% { opacity: 1; }
}

.os-bar {
  display: flex; justify-content: space-between;
  font-size: 3cqw; letter-spacing: .1em; color: var(--ph-dim);
  border-bottom: 1px solid rgba(79,122,61,.6);
  padding-bottom: .4cqw; margin-bottom: 1.6cqw;
}

.boot { font-family: var(--vt); font-size: 4cqw; line-height: 1.25; white-space: pre-wrap; margin: 0; }
.boot:empty { display: none; }
.boot .cur, .done-log .cur { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.os[hidden] { display: none; }

/* ---------- Form ---------- */
.hp { position: absolute; left: -9999px; }
.step[hidden] { display: none; }
.step { animation: step-in .25s steps(4); }
@keyframes step-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.step__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; }
.pix-title {
  font-family: var(--pix); font-weight: 400;
  font-size: 5.6cqw; line-height: 1.15; letter-spacing: .02em;
  color: var(--ph);
  text-shadow: .45cqw .45cqw 0 #22381c, 0 0 1cqw rgba(143,209,106,.45);
}
.pix-title--sm { font-size: 4.2cqw; overflow-wrap: anywhere; }
.pix-title--one { white-space: nowrap; }
.step[data-step="2"] .step__head { margin-bottom: 1.4cqw; }
.pix-pc { width: 6.5cqw; height: auto; image-rendering: pixelated; flex: none; filter: drop-shadow(0 0 .6cqw rgba(143,209,106,.5)); }
.step__count { font-size: 3.4cqw; color: var(--ph-dim); white-space: nowrap; }

.rainbow { display: grid; gap: .35cqw; margin: 1.6cqw 0 1.8cqw; }
.rainbow i { display: block; height: .55cqw; }
.rainbow i { background: var(--ph); box-shadow: 0 0 .6cqw rgba(143,209,106,.45); }

.sub { font-size: 4cqw; line-height: 1.1; margin-bottom: 1.6cqw; }

.field { display: block; border: 0; margin: 0 0 1.4cqw; min-width: 0; }
.field__label { display: block; font-size: 3.3cqw; letter-spacing: .08em; margin-bottom: .3cqw; padding: 0; }
.field__label s { color: var(--ph-dim); text-decoration-thickness: .35cqw; margin-right: .6em; }
.field__box {
  display: flex; align-items: center; gap: 1.6cqw;
  border: .4cqw solid var(--ph-dim); background: rgba(143,209,106,.04);
  padding: .1cqw 1.8cqw;
}
.field__box:focus-within { border-color: var(--ph); box-shadow: 0 0 1.2cqw rgba(143,209,106,.35); }
.field__icon { font-size: 4.2cqw; color: var(--ph-dim); width: 2.4cqw; text-align: center; }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; width: 100%;
  background: transparent; border: 0; outline: 0; color: var(--ph);
  font-family: var(--vt); font-size: 4.2cqw; line-height: 1.1;
  padding: .3cqw 0; caret-color: var(--ph);
  text-shadow: inherit; border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ph-dim); opacity: 1; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--ph) 50%) right .8cqw center / 1.2cqw 1.2cqw no-repeat; padding-right: 3cqw; }
.field select option { background: #0a110c; color: var(--ph); }
.field input[type="date"] { color-scheme: dark; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(1) hue-rotate(50deg) saturate(3); cursor: pointer; }
.field__box--area { align-items: stretch; }
.field__box--area textarea { resize: none; height: 12.8cqw; padding: .6cqw 0; line-height: 1.15; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 1cqw; }
.field--chips .field__label { margin: 0 .6cqw 0 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: inline-block; font-size: 3.5cqw; line-height: 1;
  border: .35cqw solid var(--ph-dim); padding: .5cqw 1.1cqw;
}
.chips label span::before { content: "[ ] "; color: var(--ph-dim); }
.chips input:checked + span { background: var(--ph); color: var(--ph-dark); border-color: var(--ph); text-shadow: none; }
.chips input:checked + span::before { content: "[x] "; color: var(--ph-dark); }
.chips input:focus-visible + span { outline: .3cqw dashed var(--ph); outline-offset: .4cqw; }

.err { min-height: 0; font-size: 3.8cqw; color: #f0a23a; text-shadow: 0 0 .6cqw rgba(240,162,58,.5); margin: -.6cqw 0 1.2cqw; }
.err:empty { display: none; }

.btn {
  font-family: var(--vt); font-size: 4.6cqw; letter-spacing: .06em; line-height: 1;
  cursor: pointer; border: .4cqw solid var(--ph); padding: .9cqw 2.4cqw;
  border-radius: 0; text-shadow: none;
}
.btn--go {
  display: flex; align-items: center; justify-content: center; gap: 1.6cqw; width: 100%;
  background: var(--ph); color: var(--ph-dark);
  box-shadow: .7cqw .7cqw 0 #22381c;
}
.btn--go:hover { background: #b6f08f; }
.btn--go:active { transform: translate(.5cqw, .5cqw); box-shadow: .2cqw .2cqw 0 #22381c; }
.btn--go .arrow { margin-left: auto; }
.btn__tag { opacity: .7; }
.btn--ghost { background: transparent; color: var(--ph); }
.btn--ghost:hover { background: rgba(143,209,106,.12); }
.btn-row { display: flex; gap: 2.4cqw; }
.btn-row .btn--go { flex: 1; }
.btn[disabled] { opacity: .6; cursor: progress; }

.alt { font-size: 3.6cqw; margin-top: 1.4cqw; text-align: center; color: var(--ph-dim); }
.link { font: inherit; color: var(--ph); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .5cqw; text-shadow: inherit; }
.link:hover { color: #b6f08f; }

.done-log { font-family: var(--vt); font-size: 4.4cqw; line-height: 1.3; white-space: pre-wrap; margin: 0 0 3cqw; min-height: 24cqw; }

/* ---------- Dock: the "apps", along the bottom of the screen ---------- */
.dock {
  position: absolute; left: 50%; bottom: 1.1cqw; transform: translateX(-50%);
  height: 8.6cqw; padding: 0 1.8cqw;
  display: flex; align-items: flex-end; gap: 1.8cqw;
  background: rgba(143,209,106,.08);
  border: .3cqw solid rgba(143,209,106,.35);
  border-radius: 2cqw;
  box-shadow: 0 0 2cqw rgba(143,209,106,.15) inset;
  backdrop-filter: blur(2px);
}
.app {
  position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer;
  width: 6.6cqw; height: 6.6cqw; margin-bottom: 1cqw;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1);
  transform-origin: 50% 100%;
}
.app img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.app::after { /* "app is open" dot */
  content: ""; position: absolute; left: 50%; bottom: -1cqw; width: .7cqw; height: .7cqw;
  transform: translateX(-50%); background: var(--ph); opacity: 0; border-radius: 50%;
}
.app:hover, .app:focus-visible { transform: scale(1.45) translateY(-.6cqw); outline: none; }
.app:hover + .app, .app:has(+ .app:hover) { transform: scale(1.18); }
.app:hover::after, .app:focus-visible::after { opacity: .9; }
.app__tip {
  position: absolute; left: 50%; bottom: calc(100% + .9cqw); transform: translateX(-50%);
  font-family: var(--vt); font-size: 2.6cqw; line-height: 1; white-space: nowrap;
  background: var(--ph); color: var(--ph-dark); padding: .4cqw .9cqw; text-shadow: none;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.app:hover .app__tip, .app:focus-visible .app__tip { opacity: 1; }

/* sticky note, stuck on the monitor over the screen's lower right */
.note {
  position: absolute; z-index: 5; right: 9%; top: 28%;
  width: min(300px, 70vw); padding: 22px 22px 18px;
  background: #f6e27a; color: #2a2414;
  box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 -18px 30px rgba(180,150,40,.18);
  transform: rotate(-3deg);
  font-family: var(--vt);
  animation: note-in .22s steps(4);
}
.note[hidden] { display: none; }
.note::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 90px; height: 24px;
  transform: translateX(-50%) rotate(3deg); background: rgba(255,255,255,.35);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
@keyframes note-in { from { opacity: 0; transform: rotate(-3deg) translateY(12px); } }
.note__x { position: absolute; top: 4px; right: 10px; background: none; border: 0; font-size: 26px; cursor: pointer; color: #2a2414; font-family: var(--vt); }
.note__hand { font-size: 20px; opacity: .7; }
.note__email { font-size: 25px; overflow-wrap: anywhere; margin: 2px 0 14px; user-select: all; }
.note__btns { display: flex; gap: 10px; }
.note__btns button, .note__btns a {
  font-family: var(--vt); font-size: 19px; letter-spacing: .06em; line-height: 1;
  border: 2px solid #2a2414; background: transparent; color: #2a2414;
  padding: 7px 10px; cursor: pointer; text-decoration: none;
}
.note__btns button:hover, .note__btns a:hover { background: #2a2414; color: #f6e27a; }
@media (max-width: 700px) { .note { right: 50%; transform: translateX(50%) rotate(-3deg); top: 20%; } }

.avail {
  text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: clamp(24px, 3vw, 40px) 0 clamp(60px, 8vw, 100px);
}

@media (prefers-reduced-motion: reduce) {
  .crt__inner, .step, .note, .boot .cur, .done-log .cur { animation: none; }
  .app { transition: none; }
}

/* phones: 16px inputs so iOS doesn't zoom on tap (screen scrolls inside if needed) */
@media (max-width: 700px) {
  .field input, .field select, .field textarea { font-size: max(16px, 4.2cqw); }
}

/* ---------- QA fixes 21 Nov ---------- */
.avail { text-transform: none; letter-spacing: .03em; font-size: 14px; font-weight: 500; }


/* ---------- Contact card (29 Nov): plain details beside the computer ---------- */
.contact-card { width: min(420px, 90vw); margin: clamp(28px, 4vw, 44px) auto clamp(60px, 8vw, 100px); }
.contact-card__kicker { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 14px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-card a { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.contact-card img { width: 32px; height: 32px; flex: none; image-rendering: pixelated; transition: transform .15s; }
.contact-card span { display: flex; flex-direction: column; min-width: 0; font-size: 15px; line-height: 1.3; overflow-wrap: break-word; }
.contact-card b { font-weight: 500; font-size: 12px; color: var(--muted); }
.contact-card a:hover img { transform: translateY(-2px); }
.contact-card a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact-card .avail { text-align: left; margin: 22px 0 0; }

/* wide screens: card sits to the left of the computer, centred on the screen */
@media (min-width: 1240px) {
  .desk { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
  .desk__stage { grid-column: 2; grid-row: 1; margin-inline: 0; }
  .contact-card {
    grid-column: 1; grid-row: 1; justify-self: start; align-self: start;
    width: 250px; margin: 0 24px 0 40px;   /* lines up with the header logo */
    padding-top: calc(min(900px, 94vw, (100svh - 110px) * 1.0185) * 0.30);
  }
}
@media (min-width: 1240px) { .contact-main { padding-bottom: clamp(60px, 8vw, 100px); } }
