/* mjc — mjc.css  (mobile-first)
   White page, serif type. Each project is an "island" with its own world. */
:root {
  --bg: #fff;
  --fg: #111;
  --muted: #6b6862;
  --line: #e3e0d9;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --fraunces: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.1875rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #1a56ff; outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--fg); color: var(--bg); padding: .7rem 1rem; }
.skip:focus { left: 0; }

.label { font: 500 .8125rem/1.4 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding-block: 8px; }
.brand { font: 400 2.1rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; padding: .35rem .5rem; margin-left: -.5rem; }
.site-header nav { width: 100%; }
.site-header nav ul { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: .6rem .5rem; font-size: 1.0625rem; text-decoration: none; }
.site-header a:hover, .site-header nav a[aria-current="page"] { background: var(--fg); color: var(--bg); font-style: italic; }
@media (min-width: 700px) {
  .site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
  .bar { flex-wrap: nowrap; min-height: 68px; }
  .site-header nav { width: auto; }
  .site-header nav ul { gap: 6px; }
  .site-header nav a { padding: .6rem 1rem; font-size: 1.125rem; }
}

/* ---------- Buttons / links ---------- */
.btn { display: inline-block; padding: .85rem 1.6rem; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); border-radius: 999px; font: 500 1.0625rem var(--serif); text-decoration: none; transition: background .2s, color .2s; cursor: pointer; }
.btn:hover { background: var(--bg); color: var(--fg); font-style: italic; }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.more { display: inline-block; margin-top: 32px; font-size: 1.125rem; text-decoration: none; border-bottom: 1px solid var(--fg); padding: .2rem 0; }
.more:hover { background: var(--fg); color: var(--bg); font-style: italic; padding-inline: .5rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 104px); }
h1 { margin: 0; }
.wordmark { display: block; font: 400 clamp(9rem, 42vw, 30rem)/.78 var(--display); letter-spacing: -.05em; margin: .08em 0 .34em -.04em; }
.hero-grid { display: grid; gap: 28px; }
.lede { font: 400 clamp(1.7rem, 3.8vw, 2.9rem)/1.08 var(--display); letter-spacing: -.01em; margin: 0; }
.hero-grid p { margin: 0 0 1em; }
.hero-grid .sub { color: var(--muted); max-width: 33rem; }
.hero-grid .actions { margin-top: 24px; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: end; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2, .page-head h1 { font: 400 clamp(2.3rem, 6vw, 4.4rem)/1 var(--display); letter-spacing: -.02em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.page-head { padding-block: clamp(36px, 7vw, 88px) clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.page-head .intro { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.25rem; }

/* ---------- Island themes ---------- */
.t-emp {
  --i-fg: #1f1b16; --i-muted: #6b6355; --i-line: rgba(31, 27, 22, .22); --i-panel: rgba(255, 255, 255, .55);
  --i-font: var(--display); --i-weight: 400;
  color: #1f1b16;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(255, 255, 255, .95), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(90, 80, 60, .07) 38px 39px, transparent 39px 91px),
    repeating-linear-gradient(62deg, transparent 0 57px, rgba(90, 80, 60, .06) 57px 58px, transparent 58px 133px),
    #e9e2d4;
  border: 1px solid rgba(31, 27, 22, .18);
  box-shadow: 0 46px 50px -38px rgba(31, 27, 22, .6);
}
.t-mango {
  --i-fg: #2a0a1a; --i-muted: #3d1226; --i-line: rgba(42, 10, 26, .4); --i-panel: #ffe29a;
  --i-font: var(--fraunces); --i-weight: 800;
  color: #2a0a1a;
  background:
    radial-gradient(circle at 0% 24%, #ffd23f 0 56px, transparent 57px),
    radial-gradient(circle at 100% 4%, #ff2e7e 0 64px, transparent 65px),
    radial-gradient(circle at 100% 80%, #1fa97a 0 70px, transparent 71px),
    #ff9f1c;
  border: 3px solid #2a0a1a;
  box-shadow: 12px 12px 0 #2a0a1a;
}
.t-vr {
  --i-fg: #e8eaff; --i-muted: #a3a9d8; --i-line: rgba(125, 249, 255, .28); --i-panel: rgba(125, 249, 255, .06);
  --i-font: var(--display); --i-weight: 400;
  color: #e8eaff;
  background:
    radial-gradient(60% 38% at 14% 0%, rgba(125, 90, 255, .6), transparent 70%),
    radial-gradient(50% 32% at 100% 32%, rgba(125, 249, 255, .26), transparent 70%),
    radial-gradient(60% 36% at 50% 100%, rgba(255, 90, 200, .24), transparent 70%),
    #070716;
  border: 1px solid rgba(125, 249, 255, .35);
  box-shadow: 0 0 0 6px rgba(125, 90, 255, .08), 0 50px 90px -30px rgba(100, 70, 255, .65);
}
.t-paper {
  --i-fg: #1a1a1a; --i-muted: #6b665c; --i-line: rgba(26, 26, 26, .2); --i-panel: rgba(255, 255, 255, .6);
  --i-font: var(--display); --i-weight: 400;
  color: #1a1a1a;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .02) 0 2px, transparent 2px 4px), #f4efe4;
  border: 1px solid rgba(26, 26, 26, .15);
  box-shadow: 0 34px 50px -34px rgba(0, 0, 0, .4);
}

/* ---------- Island cards (home / work) ---------- */
.archipelago { display: grid; gap: 56px 32px; }
@media (min-width: 900px) {
  .archipelago { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .archipelago > :nth-child(2) { margin-top: 80px; }
  .archipelago > :nth-child(3) { margin-top: 24px; }
}
.isl { display: block; position: relative; overflow: hidden; text-decoration: none; transition: transform .4s ease; }
.isl:hover { transform: translateY(-8px); }
.isl .label { color: var(--i-muted); }
.isl-art { overflow: hidden; background: rgba(0, 0, 0, .08); }
.isl-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.isl:hover .isl-art img { transform: scale(1.04); }
.isl-body { padding: 22px 24px 28px; }
.isl h3 { margin: .35em 0 .3em; font: var(--i-weight) clamp(1.9rem, 3vw, 2.4rem)/1.02 var(--i-font); letter-spacing: -.02em; }
.isl p { margin: 0; }
.isl .blurb { color: var(--i-muted); font-size: 1.0625rem; }
.isl .status { margin-top: 16px; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }

.isl.t-emp { border-radius: 999px 999px 18px 18px; text-align: center; }
.isl.t-emp .isl-art { aspect-ratio: 1 / 1; }
.isl.t-emp .isl-body { padding-inline: 28px; }
.isl.t-emp .status { color: #9a6b2f; }

.isl.t-mango { border-radius: 36px 110px 36px 110px; transform: rotate(-1.6deg); }
.isl.t-mango:hover { transform: rotate(-.4deg) translateY(-8px); }
.isl.t-mango .isl-art { aspect-ratio: 4 / 3; margin: 18px 18px 0; border: 3px solid #2a0a1a; border-radius: 24px; background: #ffd23f; }
.isl.t-mango .status { display: inline-block; background: #ff2e7e; color: #fff; border: 2px solid #2a0a1a; border-radius: 999px; padding: .25rem .8rem; transform: rotate(-2deg); }

.isl.t-vr { border-radius: 44px; }
.isl.t-vr .isl-art { aspect-ratio: 4 / 3; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.isl.t-vr .isl-body { margin-top: -26px; position: relative; }
.isl.t-vr .status { color: #7df9ff; }

/* ---------- Case-study island ---------- */
.island { position: relative; overflow: hidden; color: var(--i-fg); padding: clamp(22px, 5vw, 72px); margin-top: 8px; }
.island .label { color: var(--i-muted); }
.island.t-emp { border-radius: clamp(110px, 24vw, 300px) clamp(110px, 24vw, 300px) 24px 24px; padding-top: clamp(84px, 14vw, 200px); }
.island.t-mango { border-radius: 40px 120px 40px 120px; }
.island.t-vr { border-radius: clamp(32px, 5vw, 64px); }
.island.t-paper { border-radius: 28px 100px 28px 28px; }

.isl-head { display: grid; gap: 14px; margin-bottom: 28px; }
.isl-head h1 { font: var(--i-weight) clamp(3.4rem, 12vw, 8.4rem)/.9 var(--i-font); letter-spacing: -.03em; margin: .1em 0 0; overflow-wrap: anywhere; }
.t-vr .isl-head h1 { font-style: italic; }
.island .tagline { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.3; max-width: 42rem; color: var(--i-muted); }
.t-emp .isl-head { text-align: center; justify-items: center; }

.back { display: inline-block; margin: clamp(16px, 3vw, 32px) 0 16px; padding: .4rem .5rem; margin-left: -.5rem; text-decoration: none; font-size: 1.0625rem; }
.back:hover { background: var(--fg); color: var(--bg); font-style: italic; }

.meta { margin: 8px 0 0; border-top: 1px solid var(--i-line); }
.meta > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--i-line); }
.meta dt { font-size: .8125rem; line-height: 1.8; letter-spacing: .14em; text-transform: uppercase; color: var(--i-muted); }
.meta dd { margin: 0; }
@media (min-width: 700px) { .meta > div { grid-template-columns: 12rem 1fr; } }

.shots { display: grid; gap: 22px; margin-block: 34px; align-items: start; }
@media (min-width: 900px) { .shots.cols-2 { grid-template-columns: repeat(2, 1fr); } .shots.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--i-line); background: var(--i-panel); }
.shot figcaption { padding-top: 10px; font-style: italic; font-size: .9375rem; color: var(--i-muted); }
.t-emp .shot img { padding: 10px; background: #fff; box-shadow: 0 22px 30px -22px rgba(0, 0, 0, .5); }
.t-mango .shot img { border: 3px solid #2a0a1a; border-radius: 22px; box-shadow: 7px 7px 0 #2a0a1a; background: #fff; }
.t-mango .shot:nth-child(odd) { transform: rotate(-1deg); }
.t-mango .shot:nth-child(even) { transform: rotate(.8deg); }
.t-vr .shot img { border-radius: 22px; border: 1px solid rgba(125, 249, 255, .4); box-shadow: 0 0 44px -8px rgba(125, 90, 255, .65); }

.diagram { margin: 34px 0; border: 1px solid var(--i-line); background: var(--i-panel); padding: 18px 20px 22px; }
.diagram .label { margin-bottom: 14px; }
.diagram .scroll { overflow-x: auto; }
.diagram pre { margin: 0; font: 400 .72rem/1.35 var(--mono); color: var(--i-fg); white-space: pre; }
.t-mango .diagram { border: 3px solid #2a0a1a; border-radius: 20px; background: #fff3cf; }
.t-vr .diagram { border-radius: 20px; }
@media (min-width: 700px) { .diagram pre { font-size: .875rem; } }

.rows { border-top: 1px solid var(--i-line); }
.row { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--i-line); }
.row h2 { font: 500 .8125rem/1.6 var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--i-muted); margin: .5em 0 0; }
.row .txt { max-width: 46rem; font-size: 1.1875rem; }
.row .txt > :first-child { margin-top: 0; }
.row .txt > :last-child { margin-bottom: 0; }
.row .txt p { margin: 0 0 1em; }
.row .txt ul, .row .txt ol { margin: 0; padding-left: 1.2em; }
.row .txt li { margin-bottom: .4em; }
.row .txt a { text-underline-offset: .2em; }
.row .txt a:hover { background: var(--i-fg); color: var(--bg); text-decoration: none; }
.t-vr .row .txt a:hover { color: #070716; }
@media (min-width: 860px) { .row { grid-template-columns: 220px 1fr; gap: 48px; padding: 34px 0; } }

.next { margin-top: clamp(40px, 6vw, 72px); }
.next-link { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.next-title { font: 400 clamp(2.2rem, 6vw, 4rem)/1 var(--display); letter-spacing: -.02em; }
.next-link:hover { background: var(--fg); color: var(--bg); padding-inline: 16px; font-style: italic; }
.next-link:hover .label { color: #bbb; }

/* ---------- Art ---------- */
.art-wrap { margin-top: clamp(56px, 9vw, 112px); }
.art-island { border-radius: 28px 100px 28px 28px; padding: clamp(22px, 5vw, 64px); }
.art-island .isl-head { margin-bottom: 8px; }
.art-island .isl-head h2 { font: 400 clamp(2.4rem, 7vw, 4.6rem)/1 var(--display); letter-spacing: -.02em; margin: 0; }
.art-island .isl-head p { margin: 0; color: var(--i-muted); max-width: 38rem; }
.art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; list-style: none; margin: 28px 0 0; padding: 0; }
.art li { background: #fff; padding: 8px 8px 12px; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .45); }
.art li:nth-child(odd) { transform: rotate(-1.2deg); }
.art li:nth-child(even) { transform: rotate(1deg); }
.art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
@media (min-width: 700px) { .art { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
@media (min-width: 1000px) { .art { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Services / about ---------- */
.pillars { display: grid; gap: 0; }
.pillar { border-top: 1px solid var(--line); padding: 24px 0 36px; }
.num { font-size: .875rem; letter-spacing: .14em; color: var(--muted); margin: 0; }
.pillar h3 { font: 400 2.2rem/1.05 var(--display); letter-spacing: -.01em; margin: .3em 0 .3em; }
.pillar > p { margin: 0; color: var(--muted); }
.pillar ul, .plain-list { list-style: none; margin: 18px 0 0; padding: 0; }
.pillar li, .plain-list li { padding: .45em 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.points { display: grid; gap: 0; }
.point { border-top: 1px solid var(--line); padding: 24px 0 32px; }
.point h3 { margin: 0 0 .4em; font: 400 1.9rem/1.1 var(--display); }
.point p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.svc { border-top: 1px solid var(--line); padding: 36px 0 44px; display: grid; gap: 24px; }
.svc h2 { font: 400 clamp(2.2rem, 5vw, 3.4rem)/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 .35em; }
.svc .desc { margin: 0; color: var(--muted); max-width: 34rem; }
.svc .note { margin: 18px 0 0; max-width: 34rem; font-size: 1rem; color: var(--muted); border-left: 2px solid var(--fg); padding-left: 14px; }
.svc .lists { display: grid; gap: 28px; align-content: start; }
.svc .lists .label { margin-bottom: 4px; }
@media (min-width: 900px) { .svc { grid-template-columns: 110px 1.1fr 1fr; gap: 48px; } }

.engage { display: grid; gap: 16px; }
.engage > div { border: 1px solid var(--fg); padding: 26px; }
.engage h3 { margin: 0 0 .4em; font: 400 1.9rem/1.1 var(--display); }
.engage p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .engage { grid-template-columns: repeat(3, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding: 22px 0 28px; }
.steps li::before { content: "0" counter(s); font-size: .875rem; letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 8px; }
.steps h3 { margin: 0 0 .3em; font: 400 1.8rem/1.1 var(--display); }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.rows.plain { border-top: 1px solid var(--line); }
.rows.plain .row { border-bottom-color: var(--line); }
.rows.plain .row h2 { color: var(--muted); }
.rows.plain .row .txt a:hover { background: var(--fg); color: var(--bg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.email-link { display: inline-block; font: 400 clamp(1.7rem, 5vw, 2.8rem)/1.1 var(--display); overflow-wrap: anywhere; margin: .3em 0 .6em; }
.email-link:hover { background: var(--fg); color: var(--bg); font-style: italic; text-decoration: none; }
.contact-grid p { margin: 0 0 1em; }
.contact-grid .muted { color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 22px; }
.field label { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--fg); padding: .6rem 0; font: inherit; border-radius: 0; }
.field textarea { min-height: 9rem; resize: vertical; border: 1px solid var(--fg); padding: .8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #1a56ff; outline-offset: 3px; }
.two { display: grid; gap: 0 20px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .9375rem; color: var(--muted); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 72px); padding-block: clamp(40px, 6vw, 72px) 28px; }
.foot-top { display: grid; gap: 22px; padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.foot-cta { margin: 0; font: 400 clamp(2rem, 5vw, 3.6rem)/1.04 var(--display); letter-spacing: -.02em; max-width: 34rem; }
.foot-top .btn { justify-self: start; }
.foot-grid { display: grid; gap: 28px; padding-block: 32px; }
.foot-grid ul { list-style: none; margin: 8px 0 0; padding: 0; }
.foot-grid p { margin: 8px 0 0; }
.foot-grid a { text-decoration: none; padding: .15rem 0; display: inline-block; }
.foot-grid a:hover { background: var(--fg); color: var(--bg); font-style: italic; padding-inline: .3rem; margin-inline: -.3rem; }
.legal { margin: 0; font-size: .875rem; color: var(--muted); }
@media (min-width: 800px) {
  .foot-top { grid-template-columns: 1fr auto; align-items: end; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .isl.t-mango.reveal.in { transform: rotate(-1.6deg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .isl.t-mango.reveal { transform: rotate(-1.6deg); }
  .isl, .isl-art img, .btn { transition: none; }
  .isl:hover { transform: none; }
}
