/* =====================================================================
   Appetter Solutions — The Journey
   Black and white frame: navbar, introduction, "Since 1999", and all
   sections after the timeline. The five era sections keep their own
   period styling on purpose: they show how the web looked at the time.
   ===================================================================== */

:root {
  --ink: #000;             /* text and solid elements */
  --paper: #fff;           /* page background */
  --paper-alt: #f4f4f4;    /* alternate section background */
  --muted: #5a5a5a;        /* secondary text (passes WCAG AA on white) */
  --line: #e2e2e2;         /* hairlines */
  --nav-h: 64px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 38rem;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; filter: grayscale(1); }
.mono { font-family: var(--mono); }
a { color: inherit; }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 1rem; background: #000; color: #fff; padding: .5rem 1rem; z-index: 60; }
.skip:focus { left: 1rem; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- drafting helpers ---------- */
.draft-tag { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .02em; color: #000; background: #fff; border: 1px dashed #000; padding: .25em .5em; border-radius: 3px; vertical-align: middle; }
.ph { margin: 0; }
.ph-slot { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .25rem; min-height: 140px; height: 100%; padding: 1rem; border: 2px dashed #8c8c8c; background: repeating-linear-gradient(45deg, #fafafa 0 10px, #efefef 10px 20px); color: #333; font: .8rem/1.3 var(--sans); text-align: center; word-break: break-all; }
.ph-slot b { font-size: .85rem; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top, 0px); transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { white-space: nowrap; display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.nav-mark { width: 26px; height: 26px; background: #000; position: relative; border-radius: 4px; flex: none; }
.nav-mark::after { content: ""; position: absolute; left: 8px; top: 7px; width: 5px; height: 12px; background: #fff; }
.nav-since { font-weight: 400; color: var(--muted); font-size: .9rem; }
.nav-links { display: flex; align-items: center; gap: 1.35rem; white-space: nowrap; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { color: #000; border-bottom-color: #000; }
.nav-links .nav-cta { color: #fff; background: #000; padding: .55rem 1rem; border-radius: 2px; border: 0; }
.nav-links .nav-cta:hover { color: #fff; background: #333; }
.nav-toggle { display: none; background: none; border: 1px solid #000; border-radius: 2px; width: 44px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #000; margin: 4px auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-since { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.25rem; display: none; }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.05rem; color: #000; }
  .nav-links .nav-cta { text-align: center; padding: .9rem 1rem; }
}

/* =====================================================================
   BEFORE YOU BEGIN (introduction)
   ===================================================================== */
.intro { padding: calc(var(--nav-h) + 6rem) 0 6rem; border-bottom: 1px solid #000; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: start; }
.intro-title { font: 400 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 1.5rem; }
.intro-lead { font: 400 italic clamp(1.3rem, 2.4vw, 1.6rem)/1.4 var(--serif); margin: 0 0 1.75rem; }
.intro-text p { margin: 0 0 1.1rem; max-width: var(--measure); color: #222; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.intro-skip { color: var(--muted); font-size: .95rem; }
.intro-skip:hover { color: #000; }
.chapters { border: 1px solid #000; padding: 1.75rem 1.75rem .5rem; }
.chapters h2 { font: 500 1rem/1.3 var(--sans); margin: 0 0 1.1rem; }
.chapters ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapters li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.ch-years { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.ch-label { display: block; font: 400 1.15rem/1.3 var(--serif); }
.ch-look { display: block; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 3rem; } .intro { padding-top: calc(var(--nav-h) + 3.5rem); } }

/* =====================================================================
   SINCE 1999 (opening of the journey)
   ===================================================================== */
.since { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem; background: #fff; }
.since-inner { max-width: 68rem; margin: 0 auto; width: 100%; }
.since-kicker { margin: 0 0 1.5rem; color: var(--muted); }
.since-line { font: 300 clamp(4.5rem, 17vw, 14rem)/.9 var(--serif); letter-spacing: -.035em; margin: 0 0 2.25rem; }
.cursor { display: inline-block; width: .085em; height: .76em; margin-left: .06em; background: #000; vertical-align: -.02em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.since-intro { max-width: 34rem; font-size: 1.15rem; color: #333; margin: 0 0 3rem; }
.since-cue { display: inline-flex; align-items: center; gap: 1rem; color: #000; text-decoration: none; font-weight: 500; }
.cue-line { display: block; width: 3.5rem; height: 1px; background: currentColor; transition: width .3s; }
.since-cue:hover .cue-line { width: 5rem; }

/* =====================================================================
   JOURNEY FRAME: commit strip, status panel, rail
   ===================================================================== */
.era { position: relative; }
.commit { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 1rem; align-items: baseline; background: #000; color: #fff; font: 400 .85rem/1.2 var(--mono); padding: .7rem 1.5rem; white-space: nowrap; overflow: hidden; }
.c-graph { color: #9a9a9a; white-space: pre; min-width: 3.5rem; }
.c-year { font-weight: 600; }
.c-co { color: #bdbdbd; }
.c-co::before { content: "("; } .c-co::after { content: ")"; }
.c-msg { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .commit { padding: .65rem 1rem; gap: .6rem; font-size: .75rem; } .c-graph { min-width: 0; } .c-co { display: none; } }

.status { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; background: #fff; color: #000; border: 1px solid #000; box-shadow: 4px 4px 0 #000; padding: .75rem .9rem .7rem; min-width: 13.5rem; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.in-timeline .status { opacity: 1; transform: none; }
.status-year { font: 400 2rem/1 var(--serif); font-variant-numeric: tabular-nums; margin-bottom: .55rem; }
.status-label { margin: 0; padding-top: .45rem; border-top: 1px solid #000; font-size: .72rem; color: #555; }
.status ul { list-style: none; margin: .2rem 0 0; padding: 0; }
.status li { font-size: .82rem; line-height: 1.55; }
.status li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #000; margin-right: .5rem; vertical-align: 2px; }
@media (max-width: 600px) {
  .status { right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); min-width: 0; padding: .5rem .65rem; box-shadow: 3px 3px 0 #000; }
  .status-year { font-size: 1.4rem; margin-bottom: .35rem; }
  .status li { font-size: .7rem; line-height: 1.5; }
  .status li:nth-child(n+3) { display: none; }
}

.rail { position: fixed; right: 1rem; top: calc(var(--nav-h) + 1.5rem); z-index: 20; display: flex; flex-direction: column; gap: .2rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.in-timeline .rail { opacity: 1; pointer-events: auto; }
.rail a { font: 500 .78rem/1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; color: #000; background: #fff; border: 1px solid #000; padding: .45rem .55rem; border-radius: 2px; text-align: right; }
.rail a.on { color: #fff; background: #000; }
@media (max-width: 900px) { .rail { display: none; } }

/* =====================================================================
   CHAPTER 1 — 1999: grey desktop, browser window, table layout
   ===================================================================== */
.era--retro { background: #7b7b7b; padding: 5.5rem 1rem 5rem; font-family: "Times New Roman", Times, serif; color: #000; }
.r-window { max-width: 800px; margin: 0 auto; background: #c3c3c3; border: 2px solid; border-color: #fff #404040 #404040 #fff; box-shadow: 1px 1px 0 #000; }
.r-titlebar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: linear-gradient(90deg, #000, #6e6e6e); color: #fff; font: bold 13px Tahoma, Verdana, sans-serif; padding: 3px 4px 3px 6px; }
.r-titlebar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-btns { display: flex; gap: 2px; }
.r-btns i { font-style: normal; width: 16px; height: 14px; background: #c3c3c3; color: #000; border: 1px solid; border-color: #fff #404040 #404040 #fff; font: bold 10px/12px Tahoma, sans-serif; text-align: center; }
.r-menubar { font: 12px Tahoma, sans-serif; padding: 3px 8px; border-bottom: 1px solid #808080; }
.r-addr { display: flex; align-items: center; gap: 6px; font: 12px Tahoma, sans-serif; padding: 3px 6px 5px; }
.r-field { flex: 1; background: #fff; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-go { border: 1px solid; border-color: #fff #404040 #404040 #fff; padding: 0 8px; }
.r-page { background: #fff; margin: 0 4px; border: 2px solid; border-color: #808080 #fff #fff #808080; padding: 16px 14px; font-size: 16px; line-height: 1.35; }
.r-h1 { text-align: center; color: #000; font: bold 30px/1.15 "Times New Roman", Times, serif; margin: 6px 0 12px; }
.r-tagline { text-align: center; font: italic 18px "Times New Roman", serif; margin: -6px 0 12px; color: #444; }
.r-marquee { background: #000; color: #fff; font: bold 14px "Courier New", monospace; overflow: hidden; white-space: nowrap; padding: 4px 0; margin-bottom: 14px; }
.r-marquee span { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.r-layout { display: grid; grid-template-columns: 140px 1fr; border: 3px ridge #c3c3c3; }
.r-nav { background: #ececec; border-right: 3px ridge #c3c3c3; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.r-nav span { color: #000; text-decoration: underline; font-size: 15px; }
.r-nav span:nth-child(3) { color: #666; }
.r-mail { width: 40px; margin-top: 10px; animation: flap 1s steps(1) infinite; }
@keyframes flap { 50% { transform: translateY(-3px); } }
.r-main { padding: 12px 14px; }
.r-main h3 { font: bold 20px "Times New Roman", serif; color: #000; margin: 6px 0; text-decoration: underline; }
.r-main hr { border: 0; border-top: 2px groove #c3c3c3; margin: 14px 0; }
.r-intro { margin-top: 0; }
.r-tech { margin: 4px 0; padding-left: 22px; list-style: square; columns: 2; }
.r-project { display: grid; grid-template-columns: 150px 1fr; gap: 12px; margin-bottom: 14px; align-items: start; }
.r-ptitle { color: #000; font-size: 17px; }
.r-img img, .r-img .ph-slot { border: 3px outset #c3c3c3; }
.r-img .ph-slot { min-height: 110px; }
.r-photo { margin: 10px 0; }
.r-photo figcaption { font: italic 13px "Times New Roman", serif; text-align: center; }
.r-construction { margin-top: 16px; background: repeating-linear-gradient(-45deg, #fff 0 14px, #000 14px 28px); padding: 6px; }
.r-construction span { display: block; background: #fff; text-align: center; font: bold 14px Arial, sans-serif; padding: 4px; }
.r-lesson { margin: 16px 0 10px; background: #f0f0f0; border: 1px dashed #000; padding: 8px 10px; font: 16px "Comic Sans MS", "Comic Neue", cursive; }
.r-counter { text-align: center; font-size: 14px; margin: 14px 0 6px; }
.r-digits { display: inline-block; background: #000; color: #fff; font: bold 15px "Courier New", monospace; letter-spacing: 3px; padding: 2px 5px; border: 2px inset #808080; }
.r-footer { text-align: center; font: 12px Arial, sans-serif; color: #444; margin: 8px 0 0; }
.r-status { display: flex; justify-content: space-between; font: 12px Tahoma, sans-serif; padding: 3px 8px; }
@media (max-width: 600px) {
  .r-layout { grid-template-columns: 1fr; }
  .r-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 3px ridge #c3c3c3; }
  .r-mail { display: none; }
  .r-project { grid-template-columns: 1fr; }
  .r-tech { columns: 1; }
}

/* =====================================================================
   CHAPTER 2 — 2003–2008: glossy Web 2.0, in silver
   ===================================================================== */
.era--web2 { background: linear-gradient(#dcdcdc 0, #f2f2f2 380px, #fff 100%); padding: 5.5rem 1rem 5rem; font-family: Verdana, Tahoma, Geneva, sans-serif; color: #222; font-size: 14px; line-height: 1.55; }
.w2-wrap { max-width: 960px; margin: 0 auto; }
.w2-header { position: relative; border-radius: 14px; padding: 22px 26px 0; background: linear-gradient(#ffffff 0%, #e2e2e2 49%, #c4c4c4 50%, #e6e6e6 100%); box-shadow: 0 3px 10px rgba(0,0,0,.3); border: 1px solid #8a8a8a; }
.w2-logo { font: bold 42px/1 "Trebuchet MS", Verdana, sans-serif; color: #111; letter-spacing: -2px; text-shadow: 0 1px 0 #fff; -webkit-box-reflect: below -6px linear-gradient(transparent 55%, rgba(255,255,255,.4)); }
.w2-logo span { color: #777; font-size: 26px; letter-spacing: 0; }
.w2-tagline { display: block; font: italic 15px/1.2 Georgia, serif; letter-spacing: 0; color: #555; text-shadow: none; margin-top: 4px; }
.w2-beta { position: absolute; top: -18px; right: 30px; width: 86px; height: 86px; display: grid; place-items: center; background: #000; color: #fff; font: bold 17px Verdana, sans-serif; transform: rotate(14deg); clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 56%, 96% 76%, 74% 78%, 68% 100%, 50% 86%, 32% 100%, 26% 78%, 4% 76%, 15% 56%, 0 40%, 20% 32%, 18% 10%, 39% 18%); }
.w2-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 30px; }
.w2-tabs span { padding: 8px 16px; border-radius: 10px 10px 0 0; background: linear-gradient(#fafafa, #cfcfcf); color: #333; font-weight: bold; font-size: 13px; }
.w2-tabs span.on { background: #fff; color: #000; }
.w2-grid { display: grid; grid-template-columns: 1fr 280px; gap: 18px; margin-top: 18px; }
.w2-col, .w2-side { display: flex; flex-direction: column; gap: 16px; }
.w2-box { background: #fff; border: 1px solid #c8c8c8; border-radius: 10px; padding: 16px 18px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.w2-box h3 { margin: -16px -18px 12px; padding: 8px 18px; border-radius: 10px 10px 0 0; background: linear-gradient(#fdfdfd, #e3e3e3); border-bottom: 1px solid #c8c8c8; color: #222; font-size: 14px; }
.w2-welcome h2 { font: bold 26px "Trebuchet MS", Verdana, sans-serif; color: #000; margin: 0 0 8px; letter-spacing: -1px; }
.w2-welcome h2 small { font-size: 14px; color: #777; letter-spacing: 0; }
.w2-welcome p { font-size: 15px; margin: 0; }
.w2-project { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: start; }
.w2-project h4 { margin: 0; color: #000; font-size: 16px; text-decoration: underline; }
.w2-meta { color: #888; font-size: 12px; margin: 2px 0 6px; }
.w2-project p { margin: 0 0 8px; }
.w2-img img, .w2-img .ph-slot { border-radius: 8px; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.w2-photo figcaption { font-size: 11px; color: #777; text-align: center; margin-top: 6px; }
.w2-btn { display: inline-block; padding: 5px 14px; border-radius: 14px; background: linear-gradient(#8a8a8a 0%, #444 50%, #111 51%, #3a3a3a 100%); color: #fff; font-weight: bold; font-size: 12px; border: 1px solid #000; }
.w2-cloud { line-height: 1.9; margin: 0; }
.w2-cloud span { font-weight: bold; margin-right: 4px; }
.w2-tip { background: #f4f4f4; border-style: dashed; border-color: #999; }
.w2-tip h3 { background: linear-gradient(#fff, #e9e9e9); border-color: #999; }
.w2-tip p { margin: 0; font-size: 15px; }
.w2-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.w2-badges span { font: 9px/13px Verdana, sans-serif; border: 1px solid #555; background: #eee; padding: 0 5px; color: #222; }
.w2-badges .rss { background: #000; color: #fff; border-color: #000; }
@media (max-width: 760px) {
  .w2-grid, .w2-project { grid-template-columns: 1fr; }
  .w2-beta { width: 66px; height: 66px; font-size: 13px; right: 12px; }
  .w2-logo { font-size: 32px; }
}

/* =====================================================================
   CHAPTER 3 — 2009–2014: flat tiles, in shades of grey
   ===================================================================== */
.era--metro { background: #141414; color: #fff; padding: 7rem 1.5rem 5rem; font-family: "Segoe UI", "Open Sans", Tahoma, sans-serif; }
.m-wrap { max-width: 1040px; margin: 0 auto; }
.m-title { font: 300 clamp(3rem, 8vw, 5.5rem)/1 "Segoe UI Light", "Segoe UI", "Open Sans", sans-serif; letter-spacing: -.02em; margin: 0 0 1rem; }
.m-title span { display: block; font-size: .32em; color: #aaa; margin-top: .6rem; letter-spacing: 0; }
.m-intro { max-width: 40rem; font-size: 1.15rem; font-weight: 300; color: #ddd; margin: 0 0 2.5rem; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; }
.m-tile { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; font-size: .95rem; background: #333; }
.m-wide { grid-column: span 2; }
.m-project { grid-row: span 2; padding: 0; background: #222; }
.m-project .m-img { position: absolute; inset: 0; }
.m-project .m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-project .ph-slot, .m-photo .ph-slot { height: 100%; }
.m-cap { position: relative; width: 100%; background: #000; padding: 12px 14px; }
.m-cap h4 { margin: 0 0 4px; font-weight: 400; font-size: 1.25rem; }
.m-cap p { margin: 0 0 6px; font-size: .9rem; line-height: 1.4; }
.m-small { font-size: .78rem; opacity: .75; text-transform: lowercase; }
.m-photo { padding: 0; grid-row: span 2; }
.m-photo .m-img { width: 100%; height: 100%; }
.m-photo .m-img img { width: 100%; height: calc(100% - 28px); object-fit: cover; }
.m-photo figcaption { background: #000; padding: 4px 10px; font-size: .85rem; }
.m-lesson { background: #fff; color: #000; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.m-lesson p { margin: 0; font-size: 1.15rem; font-weight: 300; line-height: 1.3; }
@media (max-width: 480px) { .m-grid { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   CHAPTER 4 — 2015–2019: cards and shadows
   ===================================================================== */
.era--material { background: #fafafa; color: rgba(0,0,0,.87); font-family: Roboto, "Helvetica Neue", Arial, sans-serif; padding: 2.6rem 0 5rem; font-size: 15px; line-height: 1.55; }
.mt-appbar { display: flex; align-items: center; gap: 1.25rem; background: #000; color: #fff; padding: 1.1rem 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,.3); margin-bottom: 2rem; }
.mt-app { font-weight: 500; opacity: .7; }
.mt-appbar h2 { font: 500 1.3rem Roboto, sans-serif; margin: 0; flex: 1; }
.mt-range { opacity: .8; font-size: .95rem; }
.mt-burger { display: flex; flex-direction: column; gap: 4px; }
.mt-burger i { display: block; width: 20px; height: 2px; background: #fff; }
.mt-wrap { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.mt-card { background: #fff; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24); overflow: hidden; }
.mt-hero { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 1.5rem; box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23); }
.mt-hero > * { min-width: 0; }
.mt-hero .mt-body { padding: 1.75rem; }
.mt-stat { font: 400 3.5rem/1 Roboto, sans-serif; color: #000; margin-bottom: 1rem; }
.mt-stat span { display: block; font-size: .95rem; color: rgba(0,0,0,.54); margin-top: .4rem; }
.mt-hero p { margin: 0 0 1rem; }
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chip { background: #e8e8e8; border-radius: 16px; padding: 5px 12px; font-size: 13px; }
.mt-photo { position: relative; min-height: 260px; }
.mt-photo img { width: 100%; height: 100%; object-fit: cover; }
.mt-photo .ph-slot { height: 100%; min-height: 260px; }
.mt-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .85rem; }
.mt-photo.is-missing figcaption { display: none; }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.mt-project { display: flex; flex-direction: column; }
.mt-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.mt-media .ph-slot { aspect-ratio: 16/9; min-height: 0; }
.mt-body { padding: 1rem 1.1rem .5rem; flex: 1; }
.mt-body h4 { font: 400 1.3rem Roboto, sans-serif; margin: 0; }
.mt-sub { color: rgba(0,0,0,.54); margin: .1rem 0 .6rem; font-size: 14px; }
.mt-body p { margin-top: 0; }
.mt-actions { padding: .4rem .6rem .7rem; }
.mt-actions span { display: inline-block; padding: .45rem .6rem; color: #000; font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.mt-snack { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; max-width: 36rem; margin: 2.5rem auto 0; background: #222; color: #fff; padding: .9rem 1.4rem; border-radius: 2px; box-shadow: 0 3px 6px rgba(0,0,0,.3); font-size: 14px; }
.mt-snack b { white-space: nowrap; font-weight: 500; text-transform: uppercase; text-decoration: underline; }
.mt-fab { position: absolute; right: 1.5rem; bottom: -3.75rem; width: 56px; height: 56px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
@media (max-width: 720px) { .mt-hero { grid-template-columns: minmax(0, 1fr); } .mt-fab { display: none; } .mt-app { display: none; } }

/* =====================================================================
   CHAPTER 5 — 2020: a product becomes a company (paper and ink)
   ===================================================================== */
.era--branch { background: #fff; padding: 8rem 0 6rem; border-bottom: 1px solid #000; }
.b-grid, .d-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4.5rem; align-items: start; }
.b-label { font: 400 .9rem/1.3 var(--mono); color: var(--muted); margin: 0 0 1.25rem; }
.b-title { font: 300 clamp(2.4rem, 5.5vw, 4.2rem)/1.03 var(--serif); letter-spacing: -.025em; margin: 0 0 1.75rem; max-width: 15ch; }
.b-intro { font-size: 1.15rem; max-width: var(--measure); margin: 0 0 2rem; color: #222; }
.b-lesson { font: italic 400 1.25rem/1.45 var(--serif); border-left: 2px solid #000; padding-left: 1.1rem; margin: 0; max-width: 30rem; }
.b-image { margin-top: 4rem; max-width: 46rem; }
.b-image figcaption, .cl-image figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
@media (max-width: 860px) { .b-grid, .d-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* =====================================================================
   CHAPTER 6 — 2022: Dubai, in ink
   ===================================================================== */
.era--dubai { background: #000; color: #fff; padding: 8rem 0 0; overflow: hidden; }
.era--dubai .b-label { color: #a8a8a8; }
.d-title { font: 300 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 1.75rem; }
.d-text { font: 300 clamp(1.15rem, 2vw, 1.35rem)/1.6 var(--serif); margin: 0 0 2rem; color: #e2e2e2; max-width: var(--measure); }
.d-photo { max-width: 26rem; }
.d-photo figcaption { font-size: .85rem; color: #a8a8a8; margin-top: .5rem; }
.d-photo .ph-slot { min-height: 160px; }
.d-skyline { display: block; width: 100%; height: clamp(110px, 16vw, 200px); margin-top: 4rem; fill: #fff; }

/* =====================================================================
   CHAPTER 7 — 2024: closing the first chapter
   ===================================================================== */
.era--closing { background: #fff; padding: 8rem 0 7rem; border-bottom: 1px solid #000; }
.cl-years { font: 300 clamp(4rem, 15vw, 12rem)/.9 var(--serif); letter-spacing: -.04em; margin: 0; font-variant-numeric: lining-nums; }
.cl-title { font: 400 clamp(1.5rem, 3vw, 2.2rem)/1.2 var(--serif); margin: 1rem 0 3rem; padding-top: 1.25rem; border-top: 1px solid #000; }
.cl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.cl-text { font-size: 1.15rem; max-width: var(--measure); margin: 0 0 2.25rem; color: #222; }
.cl-forward-label { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.cl-forward { list-style: none; margin: 0; padding: 0; border-top: 1px solid #000; }
.cl-forward li { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.cl-forward b { display: block; font: 400 1.35rem/1.25 var(--serif); }
.cl-forward span { color: var(--muted); font-size: .92rem; }
.cl-image .ph-slot { min-height: 220px; }
@media (max-width: 860px) { .cl-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* =====================================================================
   CHAPTER 8 — Today
   ===================================================================== */
.era--today { background: #fff; color: #000; padding: 8rem 0 7rem; }
.t-title { font: 300 clamp(2.6rem, 6.5vw, 5.2rem)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 2rem; max-width: 14ch; }
.t-text { max-width: var(--measure); font-size: 1.2rem; color: #222; margin: 0 0 3.5rem; }
.t-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 2.5rem; margin-bottom: 3.5rem; }
.t-tech { max-width: var(--measure); margin: 0; border-top: 1px solid #000; padding-top: 1.25rem; }
.t-tech span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .35rem; }

/* =====================================================================
   SECTIONS AFTER THE JOURNEY
   ===================================================================== */
.sec { padding: 7rem 0; border-top: 1px solid #000; }
.sec--alt { background: var(--paper-alt); }
.sec-title { font: 400 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 1rem; max-width: 20ch; }
.sec-intro { max-width: var(--measure); color: var(--muted); font-size: 1.15rem; margin: 0 0 3.5rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem 2.5rem; margin: 4rem 0 0; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid #000; padding-top: 1rem; }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { margin: 0 0 .4rem; font: 400 2.2rem/1.1 var(--serif); }
.lessons { list-style: none; margin: 0; padding: 0; max-width: 48rem; border-top: 1px solid #000; }
.lesson { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid #d6d6d6; }
.lesson-year { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .25rem; }
.lesson p { margin: 0; font: 400 1.3rem/1.45 var(--serif); }
.lessons[data-collapsed="true"] .is-extra { display: none; }
.btn-quiet { margin-top: 2rem; font: 500 1rem var(--sans); background: none; color: #000; border: 1px solid #000; padding: .8rem 1.4rem; border-radius: 2px; cursor: pointer; }
.btn-quiet:hover { background: #000; color: #fff; }

.letter { display: grid; grid-template-columns: 14rem 1fr; gap: 4rem; margin-top: 3rem; }
.letter-photo { align-self: start; }
.letter-photo img { border-radius: 2px; }
.letter-photo .ph-slot { min-height: 0; aspect-ratio: 3 / 4; }
.letter-body { max-width: 36rem; font: 400 1.25rem/1.75 var(--serif); }
.letter-body p { margin: 0 0 1.3rem; }
.letter-greet { font-style: italic; }
.letter-signoff { margin-top: 2rem !important; }
.letter-sign { max-width: 14rem; margin: .5rem 0; }
.letter-sign .ph-slot { min-height: 70px; }
.letter-name { font-family: var(--sans); font-size: 1rem; line-height: 1.5; }
.letter-name span { color: var(--muted); }
@media (max-width: 800px) { .letter { grid-template-columns: 1fr; gap: 2rem; } .letter-photo { max-width: 14rem; } }

/* Services (written as problems) */
.problems { max-width: 52rem; border-top: 1px solid #000; }
.problem { border-bottom: 1px solid #d6d6d6; }
.problem summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; row-gap: .3rem; padding: 1.4rem 0; }
.problem summary::-webkit-details-marker { display: none; }
.p-q { grid-column: 1; font: 400 1.45rem/1.35 var(--serif); }
.p-service { grid-column: 1; font-size: .9rem; color: var(--muted); }
.problem summary::after { content: "+"; grid-column: 2; grid-row: 1; font-family: var(--sans); font-size: 1.5rem; line-height: 1.2; transition: transform .25s; }
.problem[open] summary::after { transform: rotate(45deg); }
.p-body { padding: 0 0 1.75rem; max-width: 40rem; }
.p-body p { margin: 0 0 1rem; color: #222; }
.p-proof { border-left: 2px solid #000; padding-left: 1rem; color: var(--muted) !important; font-size: .95rem; }

/* Technology, year by year */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tech-table-wrap { overflow-x: auto; border-top: 1px solid #000; }
.tech-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .95rem; }
.tech-table th, .tech-table td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid #cfcfcf; }
.tech-table thead th { font: 400 1.35rem/1.2 var(--serif); padding-top: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #000; font-variant-numeric: lining-nums tabular-nums; }
.tech-table tbody th { width: 9.5rem; font-weight: 500; }
.tech-table td { line-height: 1.5; }
.tech-table td + td, .tech-table thead th + th { border-left: 1px solid #e0e0e0; padding-left: 1rem; }
.t-empty { color: #9a9a9a; }
.tech-periods { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid #000; }
.tp { padding: 1.5rem 0; border-bottom: 1px solid #cfcfcf; }
.tp h3 { font: 400 1.6rem/1.1 var(--serif); margin: 0 0 1rem; }
.tp dl { margin: 0; }
.tp dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .4rem 0; font-size: .95rem; }
.tp dt { color: var(--muted); }
.tp dd { margin: 0; }
@media (max-width: 760px) { .tech-table-wrap { display: none; } .tech-periods { display: block; } }
.industries { max-width: 46rem; margin: 3.5rem 0 0; font: 400 1.3rem/1.5 var(--serif); }
.industries span { display: block; font: 400 .9rem/1.4 var(--sans); color: var(--muted); margin-bottom: .4rem; }
.p-proof span { display: block; font-size: .85rem; color: #555; margin-bottom: .15rem; }


.contact { background: #000; color: #fff; padding: 8rem 0 3rem; }
.contact-title { font: 300 clamp(2.6rem, 7vw, 5.5rem)/1 var(--serif); letter-spacing: -.025em; margin: 0 0 1.25rem; max-width: 14ch; }
.contact-text { color: #bdbdbd; font-size: 1.15rem; margin: 0 0 2.5rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.contact-address { color: #bdbdbd; font-size: .95rem; margin: 0 0 6rem; }
.contact .btn { background: #fff; color: #000; border-color: #fff; }
.contact .btn:hover { background: #d9d9d9; border-color: #d9d9d9; }
.contact .btn--line { background: transparent; color: #fff; border-color: #fff; }
.contact .btn--line:hover { background: #fff; color: #000; }
.foot { border-top: 1px solid #444; padding-top: 2rem; color: #a8a8a8; font-size: .9rem; }
.foot-cos { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.foot-cos b { color: #fff; font-weight: 500; }
.foot-cos p, .foot-end p { margin: 0; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #333; padding-top: 1.5rem; }
.foot a { color: #fff; }

.btn { display: inline-block; padding: .95rem 1.5rem; background: #000; color: #fff; text-decoration: none; font: 500 1rem var(--sans); border-radius: 2px; border: 1px solid #000; cursor: pointer; }
.btn:hover { background: #333; border-color: #333; }
.btn--line { background: #fff; color: #000; }
.contact :focus-visible, .era--dubai :focus-visible, .era--metro :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .r-marquee span, .r-mail { animation: none; }
  .r-marquee span { padding-left: 1rem; }
  * { transition: none !important; }
}
.m-cap .m-small { text-transform: none; }

/* ---------- intro: how we can help ---------- */
.help ul { list-style: none; margin: 0; padding: 0; }
.help li { display: block; padding: 0; border-top: 1px solid var(--line); }
.help a { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; text-decoration: none; font: 400 1.1rem/1.3 var(--serif); }
.help a::after { content: "+"; font-family: var(--sans); color: #777; }
.help a:hover { text-decoration: underline; }
.help .help-strong a { font-weight: 500; }
.help .help-strong { border-top: 1px solid #000; }

/* ---------- 2020 chapter: product features ---------- */
.spec { border: 1px solid #000; outline: 1px solid #000; outline-offset: 5px; margin: 6px; padding: 1.5rem 1.6rem; }
.spec-title { font: 400 .8rem/1.2 var(--mono); color: #555; margin: 0 0 1rem; }
.spec ul { list-style: none; margin: 0; padding: 0; }
.spec li { padding: .7rem 0; border-top: 1px solid #d0d0d0; font: 400 1.2rem/1.35 var(--serif); }

/* ---------- lists used across sections ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .6rem 0 .6rem 1.6rem; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .35rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(st); grid-row: 1 / span 2; font: 400 1.6rem/1 var(--serif); }
.steps b { font-weight: 500; }
.steps span { color: var(--muted); font-size: .95rem; }
.cs-sub { font-size: .9rem; color: var(--muted); margin: 1.75rem 0 .5rem; }

/* ---------- custom software and IT support ---------- */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cs-block { background: #fff; border: 1px solid #000; padding: 2rem 2rem 1.5rem; }
.cs-block h3 { font: 400 1.9rem/1.15 var(--serif); margin: 0 0 1rem; letter-spacing: -.01em; }
.cs-block > p { margin: 0; color: #222; }
.cs-block .ticks { margin-top: 1.5rem; }
@media (max-width: 860px) { .cs-grid { grid-template-columns: 1fr; gap: 1.5rem; } .cs-block { padding: 1.5rem 1.25rem 1rem; } }

/* ---------- consultation (inverted) ---------- */
.consult { background: #000; color: #fff; padding: 7rem 0; }
.consult-title { font: 300 clamp(2.4rem, 6vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.025em; margin: 0 0 1.25rem; max-width: 16ch; }
.consult-lead { font-size: 1.2rem; color: #cfcfcf; max-width: var(--measure); margin: 0 0 2.5rem; }
.consult-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; }
.consult .cs-sub { color: #a8a8a8; }
.consult .ticks li, .consult .steps li { border-color: #3a3a3a; }
.consult .steps span { color: #bdbdbd; }
.consult .btn--invert { margin-top: 2rem; background: #fff; color: #000; border-color: #fff; }
.consult .btn--invert:hover { background: #d9d9d9; }
.consult :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .consult-grid { grid-template-columns: 1fr; gap: 1rem; } .consult { padding: 5rem 0; } }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-image { border: 1px solid #000; margin-bottom: 1.5rem; }
.product-image img { width: 100%; }
.product h3 { font: 400 2rem/1.1 var(--serif); margin: 0 0 .75rem; letter-spacing: -.01em; }
.product > p { margin: 0 0 1.25rem; color: #222; max-width: 34rem; }
.product .ticks { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* ---------- Dubai chapter: text and picture side by side ---------- */
.era--dubai .d-photo { max-width: none; }
.era--dubai .d-photo img { border: 1px solid #fff; }
.cs-block .cs-sub { margin: 1.75rem 0 .5rem; }
.consult-email { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid #3a3a3a; font-size: 1.1rem; color: #cfcfcf; }
.consult-email a { color: #fff; font-weight: 500; }

/* =====================================================================
   LEGAL PAGES (privacy-policy.html, tos.html)
   ===================================================================== */
.legal-top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.legal-top .nav-inner { height: var(--nav-h); }
.legal-top nav { display: flex; gap: 1.5rem; font-size: .95rem; }
.legal-top nav a { color: var(--muted); text-decoration: none; }
.legal-top nav a:hover, .legal-top nav a[aria-current="page"] { color: #000; text-decoration: underline; }
.legal { padding: 5rem 0 6rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font: 400 clamp(2.4rem, 6vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 1rem; }
.legal-meta { color: var(--muted); margin: 0 0 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid #000; }
.legal h2 { font: 400 1.6rem/1.2 var(--serif); margin: 3rem 0 .75rem; }
.legal p, .legal li { color: #222; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
.legal-note { margin-top: 3.5rem; padding: 1.25rem 1.5rem; border: 1px dashed #000; font-size: .95rem; }
.legal-foot { border-top: 1px solid #000; padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.legal-foot a { color: #000; }
@media (max-width: 600px) { .legal-top nav { gap: 1rem; font-size: .85rem; } .legal-top .nav-since { display: none; } }

/* ---------- insights (articles) ---------- */
.p-more { margin-top: 1rem; }
.p-more a { color: #000; font-weight: 500; }
.article .lead { font: 300 1.45rem/1.45 var(--serif); color: #000; margin: 0 0 2.5rem; }
.article figure { margin: 2.5rem 0; }
.article figure img { border: 1px solid var(--line); }
.article figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }
.article ol { padding-left: 1.4rem; }
.article .table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
.article table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.article th, .article td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.article thead th { border-bottom: 1px solid #000; font-weight: 600; }
.article-cta { margin-top: 3.5rem; padding: 1.75rem; background: var(--paper-alt); }
.article-cta h2 { margin-top: 0; }
.insight-list { list-style: none; padding: 0; margin: 0; }
.insight-list li { border-top: 1px solid #000; padding: 2rem 0; margin: 0; }
.insight-date { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.insight-list h2 { margin: 0 0 .5rem; }
.insight-list h2 a { color: #000; text-decoration: none; }
.insight-list h2 a:hover { text-decoration: underline; }
/* small phones: let the page menu drop under the name instead of running off the screen */
@media (max-width: 600px) {
  .legal-top .nav-inner { height: auto; min-height: var(--nav-h); flex-wrap: wrap; row-gap: .35rem; padding-top: .7rem; padding-bottom: .7rem; }
}
