/* PragmaTech studio style: home page, blog and posts */

:root {
    --paper: #fbf6e3;
    --paper-2: #efe7dc;
    --card: #fbf8f3;
    --ink: #231f1b;
    --muted: #6b655e;
    --line: #d8d1c6;
    --orange: #ff6b2b;
    --orange-ink: #c4470f;
    --dark: #171411;
    --mono: 'JetBrains Mono', Consolas, monospace;
    --display: 'Bricolage Grotesque', 'DM Sans', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.65 'DM Sans', 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; top: -100px; left: 20px; background: var(--orange); color: #23120c; padding: 12px; z-index: 50; }
.skip:focus { top: 10px; }

.wrap { max-width: 1220px; padding: 0 42px; margin: auto; }
#main { overflow-x: clip; }

/* Typography */
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h1 {
    font-size: clamp(48px, 5.3vw, 76px);
    line-height: 1.04;
    letter-spacing: -3px;
    font-weight: 650;
    margin: 28px 0 26px;
}
h2 {
    font-size: 53px;
    line-height: 1.08;
    letter-spacing: -2.2px;
    font-weight: 600;
    margin: 24px 0;
}
em { font-style: normal; color: var(--orange-ink); }
.hero h1 { font-size: clamp(44px, 4.1vw, 66px); letter-spacing: -2.4px; }
.hero h1 em { color: #d24c12; }
.kicker {
    font: 600 12.5px/1.6 var(--mono);
    letter-spacing: 1.7px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kicker > span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px #ff6b2b20; }
.micro { font: 12px/1.6 var(--mono); letter-spacing: .8px; color: var(--muted); }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-intro { font-size: 16px; color: var(--muted); max-width: 440px; }

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 20px max(28px, calc((100vw - 1280px) / 2));
    background: #fbf6e3e8;
    border-bottom: 1px solid #28231930;
}
.wordmark { display: flex; align-items: center; gap: 6px; }
.site-header .wordmark img:first-child { height: 40px; width: auto; }
.site-header .wordmark img:last-child { height: 34px; width: auto; }
.brand { gap: 10px; }
.brand .brand-mark {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 1px #c9782f40);
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.site-header .brand .brand-text img { height: 35px; width: auto; display: block; }
.brand-tag { font: 600 8px/1 var(--mono); letter-spacing: 1.12px; padding-left: 6px; color: #9a6f50; white-space: nowrap; }
#site-nav { display: flex; gap: 32px; font-size: 14px; font-weight: 550; }
#site-nav a:hover { color: var(--orange-ink); }
#site-nav a[aria-current] { color: var(--orange-ink); box-shadow: inset 0 -2px 0 var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff6ec;
    padding: 7px 7px 7px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 3px 0 var(--orange);
    transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--orange); }
.nav-cta .arw { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.nav-cta .arw svg { width: 14px; height: 14px; }

/* Arrow badge */
svg.ar { width: 16px; height: 16px; flex: none; vertical-align: -.15em; }
.arw { display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.button:hover .arw, .nav-cta:hover .arw, .text-link:hover .arw { transform: translate(3px, -3px); }
.text-link .arw svg { width: 13px; height: 13px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid #b6aca0; background: transparent; border-radius: 50%; position: relative; }
.nav-toggle span[aria-hidden],
.nav-toggle span[aria-hidden]::before,
.nav-toggle span[aria-hidden]::after {
    position: absolute; left: 50%; width: 16px; height: 1.6px; background: var(--ink);
    transform: translateX(-50%); content: ''; transition: transform .2s;
}
.nav-toggle span[aria-hidden] { top: 50%; }
.nav-toggle span[aria-hidden]::before { top: -5px; }
.nav-toggle span[aria-hidden]::after { top: 5px; }

/* Buttons & links */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 650;
    transition: transform .18s, background .18s;
}
.button:hover { transform: translateY(-2px); }
.button.orange { background: var(--ink); color: #fff6ec; box-shadow: 0 3px 0 var(--orange); }
.button.orange:hover { box-shadow: 0 5px 0 var(--orange); }
.button.orange .arw { width: 28px; height: 28px; margin: -6px -10px -6px 0; border-radius: 50%; background: var(--orange); color: var(--ink); }
.button.orange .arw svg { width: 14px; height: 14px; }
.button.outline { border-color: #b6aca0; background: transparent; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #aaa096; padding: 5px 0; }
.text-link:hover { color: var(--orange-ink); border-color: var(--orange); }

/* Hero */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    min-height: 720px;
    max-width: 1500px;
    padding: 68px 75px 70px;
    align-items: center;
}
.hero-intro { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 460px; margin: 0 0 30px; }
.hero-intro strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.hero-art { position: relative; isolation: isolate; }
.hero-art::before {
    content: '';
    position: absolute;
    inset: -70px -60px -60px -10px;
    z-index: -2;
    background-image: radial-gradient(#39291e5c 1.3px, transparent 1.5px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 50%, #000 45%, transparent 75%);
    mask-image: radial-gradient(ellipse at 60% 50%, #000 45%, transparent 75%);
}
.hero-art::after {
    content: '';
    position: absolute;
    inset: -40px -50px -50px -30px;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 25%, #ffb27f 0, transparent 45%),
        radial-gradient(circle at 85% 80%, #ff6b2b 0, transparent 45%);
    filter: blur(40px);
    opacity: .8;
}
.screen {
    border: 1px solid #39291e;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 6px 8px 0 #39291e, 0 30px 60px #3a2a1a26;
    transition: transform .3s, box-shadow .3s;
}
.screen:hover { transform: translateY(-4px); box-shadow: 8px 12px 0 #39291e, 0 36px 70px #3a2a1a2e; }
.screen img { width: 100%; height: auto; }
.floating-note {
    position: absolute;
    top: -34px;
    right: -30px;
    z-index: 2;
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff7dc;
    border: 1px solid #c7bdaf;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 4px 5px 0 #ded5c9;
    font: 11.5px/1.6 var(--mono);
    letter-spacing: .8px;
    min-width: 270px;
    transform: rotate(4deg);
    animation: note-float 5s ease-in-out infinite;
}
.floating-note strong { font: 550 14px/1.45 'DM Sans', sans-serif; letter-spacing: 0; }
.note-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex-shrink: 0; box-shadow: 0 0 0 5px #ff6b2b20; }
.note-spark { margin-left: 14px; color: var(--orange); font-size: 26px; }
@keyframes note-float { 50% { transform: translateY(-9px) rotate(2deg); } }

/* Principles */
.principles { padding-top: 80px; padding-bottom: 20px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 26px; }
.principle-grid article { border-top: 1px solid var(--ink); padding-top: 20px; }
.principle-grid span,
.feature-list article > span { font: 12.5px/1.8 var(--mono); color: #9a7a62; }
.principle-grid h3 { font-size: 24px; letter-spacing: -.6px; font-weight: 600; margin: 10px 0 8px; }
.principle-grid p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* TLP */
.inside { padding-top: 92px; padding-bottom: 95px; }
.inside-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; margin-top: 20px; }
.feature-list { margin-top: 34px; max-width: 480px; }
.feature-list article { display: flex; gap: 23px; align-items: start; border-top: 1px solid var(--line); padding: 20px 0; }
.feature-list article > span { margin-top: 2px; }
.feature-list h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 650; margin: 0 0 6px; }
.feature-list p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.8; }

/* Services (dark) */
.looks { background: var(--dark); color: #f2ede6; padding: 90px 0; }
.looks-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.looks .kicker { color: #d7a07a; }
.looks h2 { color: #f2ede6; }
.looks em { color: #ff9467; }
.looks-copy > p:not(.kicker) { color: #bcaea1; font-size: 15px; max-width: 420px; }
.looks-copy strong { color: #ff9467; font-weight: 600; }
.code-note { border-top: 1px solid #46382d; border-bottom: 1px solid #46382d; padding: 16px 0; margin: 28px 0; }
.code-note span { display: block; font: 11.5px/1.7 var(--mono); letter-spacing: 1.2px; color: #a89582; margin-bottom: 7px; }
.code-note code { font: 13px/1.8 var(--mono); color: #e6b388; }
.quote { margin: 0; font: 500 21px/1.45 var(--display); letter-spacing: -.3px; color: #f2ede6; max-width: 440px; }
.quote cite { display: block; margin-top: 14px; font: normal 11.5px/1.6 var(--mono); letter-spacing: 1.3px; color: #d7a07a; }
.quote.light { color: var(--ink); margin-top: 36px; padding-left: 20px; border-left: 2px solid var(--orange); }
.quote.light cite { color: var(--orange-ink); }
.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.phase-grid article {
    border: 1px solid #4b3c30;
    background: #0f0d0c;
    padding: 24px 24px 22px;
    box-shadow: 8px 8px 0 #211c16;
    transition: transform .18s, border-color .18s;
}
.phase-grid article:hover { transform: translateY(-3px); border-color: #ff6b2b90; }
.phase-grid span { font: 11.5px/1.8 var(--mono); letter-spacing: 1.2px; color: #d7a07a; }
.phase-grid h3 { color: #f2ede6; font-size: 20px; font-weight: 600; letter-spacing: -.4px; line-height: 1.25; margin: 10px 0 10px; }
.phase-grid p { color: #b2a498; font-size: 13.5px; line-height: 1.75; margin: 0; }
.phase-grid ul { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid #46382d; font-size: 13px; color: #e2d6c6; }
.phase-grid li { display: flex; gap: 10px; margin: 6px 0; }
.phase-grid li::before { content: '\2197\FE0E'; color: var(--orange); }
.phase-grid article { display: flex; flex-direction: column; }
.phase-link { margin-top: auto; padding-top: 16px; font: 600 12px/1.5 var(--mono); letter-spacing: .6px; color: #ff9467; }
.phase-link:hover { color: #ffb48f; text-decoration: underline; text-underline-offset: 4px; }
.looks-copy .button { margin-top: 6px; }
#services .looks-copy { position: sticky; top: 40px; }
.wms-teaser {
    position: relative;
    background:
        linear-gradient(90deg, #171411f2 0%, #171411d9 35%, #17141199 60%, #171411b3 100%),
        linear-gradient(0deg, #171411 0%, transparent 22%, transparent 82%, #171411 100%),
        url(../images/wms-devices.jpg) 50% 60% / cover no-repeat,
        #171411;
}
.wms-teaser-list li { background: #0f0d0cd9; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wms-teaser .looks-grid { align-items: center; }
.wms-teaser .looks-copy { position: static; }
.wms-teaser-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wms-teaser-list li { display: flex; gap: 14px; align-items: baseline; border: 1px solid #4b3c30; background: #0f0d0c; padding: 18px 20px; font-size: 15px; font-weight: 500; color: #e2d6c6; box-shadow: 6px 6px 0 #211c16; }
.wms-teaser-list span { font: 600 12px/1 var(--mono); color: #d7a07a; letter-spacing: 1px; }

/* WMS page */
.wms-hero .hero-intro { max-width: 640px; }
.wms-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 70px; }
.wms-stats div { border-top: 1px solid var(--ink); padding-top: 18px; }
.wms-stats strong { display: block; font: 600 40px/1.1 var(--display); letter-spacing: -1.5px; color: var(--orange-ink); }
.wms-stats span { font-size: 14px; color: var(--muted); }
#wms-features .wms-features { margin-top: 30px; }
#wms-flow .method-head .office-photo { margin: 0 0 0 auto; max-width: 420px; transform: rotate(1.4deg); }
.wms-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; margin-top: 30px; align-items: start; }
.wms-gallery .office-photo { margin: 0; max-width: none; }
.wms-gallery .office-photo:nth-child(even) { transform: rotate(1deg); }
.wms-gallery .office-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Methodology */
.method { padding-top: 95px; padding-bottom: 85px; }
.method-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; }
.method-head .quote.light { margin: 0 0 12px; }
.timeline { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; }
.timeline li { position: relative; }
.timeline .step {
    display: inline-block;
    font: 700 46px/1 'Caveat', cursive;
    color: var(--orange-ink);
    padding: 0 8px;
    margin-left: -8px;
    background: linear-gradient(100deg, transparent 0 2%, #ffc96b8c 4% 96%, transparent 98%) 0 85% / 100% 38% no-repeat;
}
.timeline h3 { font: 700 21px/1.25 'Kalam', cursive; letter-spacing: 0; color: var(--ink); margin: 14px 0 8px; }
.timeline p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.timeline li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -50px;
    width: 44px;
    height: 22px;
    background: var(--orange-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M2 15C11 4 25 2 37 10M30.5 4.5c2.6 2 4.6 3.6 6.8 5.6-2.6 1.4-5.1 2.8-7.6 4.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 22'%3E%3Cpath d='M2 15C11 4 25 2 37 10M30.5 4.5c2.6 2 4.6 3.6 6.8 5.6-2.6 1.4-5.1 2.8-7.6 4.6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .85;
}
summary {
    list-style: none; display: flex; justify-content: space-between; gap: 22px;
    font: 600 17px/1.4 var(--display); cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary > span { font: 20px/1 var(--mono); color: var(--orange-ink); transition: transform .2s; }
details[open] summary > span { transform: rotate(45deg); }
details p { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: 520px; }

.not-found { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }

/* Legal pages (terms, privacy) */
.legal { padding-bottom: 90px; }
.legal-body {
    max-width: 780px;
    background: #fffefb;
    border: 1px solid #e3d9c9;
    border-radius: 10px;
    padding: 44px 52px;
    box-shadow: 0 1px 2px #3a2a1a14, 0 14px 34px -14px #3a2a1a26;
    font-family: 'Nunito', 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #2e3b4e;
}
.legal-body > :first-child { margin-top: 0; }
.legal-body h4 { font: 700 21px/1.3 'Kalam', cursive; color: #0e2b3d; margin: 2em 0 .5em; }
.legal-body h5 { font: 700 16px/1.4 'DM Sans', sans-serif; color: var(--ink); margin: 1.5em 0 .4em; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul, .legal-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.legal-body li { margin: .3em 0; }
.legal-body li::marker { color: var(--orange-ink); }
.legal-body a { color: #0b57d0; }
.legal-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: #0e2b3d; }
.legal-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }

/* Support page */
.support { padding-bottom: 30px; }
.support .service-card p { line-height: 1.65; }
.support .service-card { display: flex; flex-direction: column; }
.support-note { margin-top: 26px; font-size: 14px; color: var(--muted); }
.support-note a { color: var(--orange-ink); border-bottom: 1px solid currentColor; }
.faq-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; padding-top: 60px; padding-bottom: 90px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list details p a { color: var(--orange-ink); border-bottom: 1px solid currentColor; }

/* Blog */
.shop { padding-top: 40px; padding-bottom: 90px; border-top: 1px solid var(--line); }
.shop .section-top { padding-top: 50px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post {
    border: 1px solid #cfc5b7;
    background: var(--card);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.post:hover { transform: translateY(-3px); box-shadow: 8px 10px 0 #ff6b2b20; }
.post-grid .post {
    background: #fffbec;
    border: 1px solid #39291e;
    border-radius: 4px;
    box-shadow: 3px 4px 0 #39291e;
    transition: transform .2s, box-shadow .2s;
}
.post-grid .post:hover { transform: translateY(-4px); box-shadow: 5px 8px 0 #39291e; }
.post-grid .post-thumb { border-bottom: 1px solid #39291e; }
.post-thumb { display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-tier { font: 11.5px/1.8 var(--mono); color: #9a6f50; letter-spacing: 1px; }
.post h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; margin: 8px 0 10px; font-weight: 600; }
.post h3 a:hover { color: var(--orange-ink); }
.post p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; flex: 1; }
.post .text-link { align-self: flex-start; }

/* Contact */
.closing {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
    padding-top: 50px;
    padding-bottom: 55px;
    border-top: 1px solid #bdb0a1;
    border-bottom: 1px solid #bdb0a1;
}
.closing h2 { font-size: 59px; }
.closing-prism {
    position: absolute; right: 30px; top: -40px;
    font: 300px/1 Arial, sans-serif; color: #ecdccb;
    transform: rotate(25deg); pointer-events: none;
}
.closing-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-info li { border-top: 1px solid var(--line); padding: 14px 0; font-size: 14.5px; }
.contact-info span { display: block; font: 11.5px/1.6 var(--mono); letter-spacing: 1.2px; color: #9a6f50; margin-bottom: 4px; }
.contact-info a { border-bottom: 1px solid #aaa096; }
.office-photo {
    position: relative;
    display: block;
    max-width: 460px;
    margin: 34px 0 0 6px;
    padding: 10px 10px 12px;
    background: #fff;
    box-shadow: 0 1px 2px #3a2a1a26, 0 12px 24px -8px #3a2a1a33;
    transform: rotate(-1.2deg);
    transition: transform .25s;
}
.office-photo:hover { transform: rotate(0); }
.office-photo::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -13px;
    left: 50%;
    width: 120px;
    height: 26px;
    background: #f6e2b0b8;
    box-shadow: 0 1px 2px #3a2a1a1f;
    transform: translateX(-50%) rotate(-3deg);
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 98% 62%, 100% 100%, 2% 96%, 0 70%, 3% 38%);
}
.office-photo img { display: block; width: 100%; height: auto; }
.closing-cta { margin-top: 30px; }

/* Contact page */
.contact-page { padding-top: 10px; padding-bottom: 80px; }
.contact-page .contact-info { margin-top: 0; }
.map-card {
    margin-top: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cfc5b7;
    box-shadow: 10px 12px 0 #ff6b2b18;
    aspect-ratio: 21 / 8;
    background: var(--paper-2);
}
.map-card iframe { display: block; width: 100%; height: 100%; border: 0; }

/* About page */
.about-story { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr; gap: 80px; padding-bottom: 40px; align-items: start; }
.story-text p { font-size: 17px; line-height: 1.85; color: #4a443e; margin: 0 0 1.2em; }
.story-text strong { color: var(--ink); }
.story-dates { border-left: 2px solid var(--orange); padding-left: 26px; display: grid; gap: 26px; margin-top: 8px; }
.story-dates div { position: relative; }
.story-dates div::before { content: ''; position: absolute; left: -33px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--orange); }
.story-dates span { display: block; font: 600 11.5px/1.6 var(--mono); letter-spacing: 1.3px; color: #9a6f50; }
.story-dates strong { font: 700 20px/1.3 'Kalam', cursive; color: var(--ink); }
.section-intro.wide { max-width: 640px; }
.service-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 34px; }
.service-cards.three { grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.tlp-section { position: relative; isolation: isolate; }
.tlp-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 120px;
    right: 0;
    width: min(700px, 60%);
    height: 440px;
    background: url(../images/platform.png) right center / contain no-repeat;
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 92%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 92%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 22%, #000 90%, transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
}
.tlp-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 60px;
    left: max(-200px, calc((1220px - 100vw) / 2));
    width: min(820px, 70%);
    height: 520px;
    background-image: radial-gradient(#39291e3d 1.3px, transparent 1.5px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 50%, #000 30%, transparent 75%);
    pointer-events: none;
}
.tlp-head { min-height: 420px; display: flex; flex-direction: column; justify-content: center; margin-top: 10px; }
.tlp-head > div { max-width: 520px; }
.tlp-cards {
    position: relative;
    isolation: isolate;
    margin-top: 40px;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.tlp-cards::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -70px -90px;
    background:
        radial-gradient(ellipse 28% 42% at 12% 30%, #ff8a4a40, transparent 70%),
        radial-gradient(ellipse 24% 38% at 46% 78%, #ffc29a52, transparent 70%),
        radial-gradient(ellipse 30% 40% at 78% 22%, #b09dff26, transparent 70%),
        radial-gradient(ellipse 22% 34% at 92% 80%, #ff6b2b33, transparent 70%);
    filter: blur(28px);
    pointer-events: none;
}
.tlp-cards .service-card { display: flex; flex-direction: column; padding: 18px 18px 20px; border-radius: 8px; box-shadow: 3px 4px 0 #39291e; }
.tlp-cards .service-card:hover { box-shadow: 5px 7px 0 #39291e; }
.tlp-cards .service-icon { width: 38px; height: 38px; padding: 8px; }
.tlp-cards .service-num { font-size: 28px; }
.tlp-cards .service-card h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.3px; margin: 12px 0 6px; }
.tlp-cards .service-card p { font-size: 13.5px; line-height: 1.6; }
.tlp-cards .service-link { font-size: 12.5px; }
.service-link { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 650; color: var(--orange-ink); display: inline-flex; align-items: center; gap: 8px; }
.service-link .arw svg { width: 13px; height: 13px; }
.service-card {
    background: #fffbec;
    border: 1px solid #39291e;
    border-radius: 10px;
    padding: 22px 22px 24px;
    box-shadow: 4px 5px 0 #39291e;
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 6px 9px 0 #39291e; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-icon { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: #ff6b2b26; color: var(--orange-ink); }
.service-num { font: 700 34px/1 'Caveat', cursive; color: #d9c7ae; }
.service-card h3 { font-size: 22px; letter-spacing: -.5px; font-weight: 600; margin: 18px 0 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px; }
.about-columns p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }
.about-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 90px; padding-bottom: 70px; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fffbec; border: 1px solid #39291e; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; box-shadow: 2px 3px 0 #39291e; }
.chips small { font: 11px/1 var(--mono); color: #9a6f50; margin-left: 6px; letter-spacing: .5px; }
.closing-photo { display: flex; justify-content: center; padding-top: 18px; }
.closing-photo .office-photo { max-width: 540px; width: 100%; margin: 0; transform: rotate(1.5deg); }
.closing-photo .office-photo:hover { transform: rotate(0); }
.office-photo span { display: block; margin-top: 10px; text-align: center; font: 400 17px/1.3 'Kalam', cursive; color: #4a5568; }
.contact-form {
    background: var(--card);
    border: 1px solid #cfc5b7;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 10px 12px 0 #ff6b2b18;
    display: grid;
    gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font: 600 11.5px/1.6 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: #5e5245; }
.contact-form input, .contact-form textarea {
    font: 15px/1.5 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid #c7bdaf;
    border-radius: 4px;
    padding: 11px 13px;
    width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px #ff6b2b30; }
.contact-form .button { justify-self: start; border: 0; }
.contact-form .button:disabled { opacity: .6; cursor: wait; }
.alert-msg:empty { display: none; }
.alert-msg { font-size: 13.5px; background: var(--paper-2); border-left: 2px solid var(--orange); padding: 12px 15px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 35px; padding-bottom: 40px; }
.footer-brand .wordmark img:first-child { height: 30px; width: auto; }
.footer-brand .wordmark img:last-child { height: 26px; width: auto; }
.footer-brand p { font-size: 13px; color: #7b6f63; margin: 10px 0 2px; }
.footer-brand small { font-size: 11.5px; color: #7b6f63; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; font-weight: 600; padding-top: 6px; }
.footer-links a:hover { color: var(--orange-ink); }
.footer-link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.footer-link-button:hover { color: var(--orange-ink); }
.footer-copy { width: 100%; font: 11.5px/1.8 var(--mono); letter-spacing: 1px; color: #7b6f63; border-top: 1px solid var(--line); padding-top: 18px; }

/* Cookie banner */
.cookie-banner {
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 40;
    max-width: 720px; margin: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: #fff7dc; border: 1px solid #c7bdaf; border-radius: 12px;
    padding: 16px 44px 16px 20px; box-shadow: 6px 7px 0 #ded5c9;
}
.cookie-close {
    position: absolute; top: 6px; right: 8px; width: 32px; height: 32px;
    border: 0; border-radius: 50%; background: none; color: var(--ink);
    font-size: 22px; line-height: 1; cursor: pointer;
}
.cookie-close:hover { background: #ede3cf; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 13.5px; flex: 1 1 320px; }
.cookie-banner p a { border-bottom: 1px solid #aaa096; }
.cookie-banner > div { display: flex; gap: 10px; }
.cookie-banner .button { padding: 10px 18px; }

/* Blog list */
.page-hero { padding-top: 70px; padding-bottom: 30px; }
.page-hero h1 { margin-bottom: 20px; }
.blog-search { max-width: 520px; }
.blog-search input {
    width: 100%;
    font: 15px/1.5 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--card);
    border: 1px solid #c7bdaf;
    border-radius: 999px;
    padding: 13px 20px;
    box-shadow: 0 3px 0 #ded5c9;
}
.blog-search input:focus { border-color: var(--orange); outline: none; box-shadow: 0 3px 0 var(--orange); }
.blog-list { border-top: 0; padding-top: 30px; }
.post[hidden] { display: none; }

/* Blog list cards as notebook pages */
.notebook-cards .post-grid { gap: 40px 32px; }
.notebook-cards .post {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 3px;
    padding: 34px 18px 0;
    background-color: #fffefb;
    background-image:
        linear-gradient(#f2f5f8 1px, transparent 1px),
        linear-gradient(90deg, #f2f5f8 1px, transparent 1px);
    background-size: 15px 15px, 15px 15px;
    background-position: 0 6px, 6px 0;
    box-shadow:
        0 1px 2px #3a2a1a1f,
        0 12px 26px -10px #3a2a1a33,
        4px 5px 0 -1px #faf5ea,
        4px 5px 0 0 #e6dccb;
    transform: rotate(-.6deg);
    transition: transform .25s, box-shadow .25s;
}
.notebook-cards .post:nth-child(even) { transform: rotate(.5deg); }
.notebook-cards .post:nth-child(3n) { transform: rotate(-.3deg); }
.notebook-cards .post:hover {
    transform: rotate(0) translateY(-4px);
    box-shadow: 0 1px 2px #3a2a1a1f, 0 20px 34px -12px #3a2a1a40, 4px 5px 0 -1px #faf5ea, 4px 5px 0 0 #e6dccb;
}
.notebook-cards .post::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 50%;
    width: 96px;
    height: 24px;
    background: #f6e2b0b8;
    box-shadow: 0 1px 2px #3a2a1a1f;
    transform: translateX(-50%) rotate(-3deg);
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 98% 62%, 100% 100%, 2% 96%, 0 70%, 3% 38%);
}
.notebook-cards .post:nth-child(even)::after { background: #ffd2b6b8; transform: translateX(-50%) rotate(2.5deg); }
.notebook-cards .post-thumb {
    border: 7px solid #fff;
    border-bottom-width: 9px;
    box-shadow: 0 1px 2px #3a2a1a26, 0 8px 16px -8px #3a2a1a40;
    transform: rotate(.8deg);
}
.notebook-cards .post:nth-child(even) .post-thumb { transform: rotate(-.7deg); }
.notebook-cards .post-body { padding: 18px 6px 22px; }
.post-date { font: 400 15px/1.4 'Kalam', cursive; color: #8a5a00; }
.notebook-cards .post h3 { font: 700 22px/1.25 'Kalam', cursive; letter-spacing: 0; color: #0e2b3d; margin: 6px 0 8px; }
.notebook-cards .post p { font-family: 'Nunito', 'DM Sans', sans-serif; font-size: 15px; line-height: 1.6; color: #2e3b4e; }
.notebook-cards .post .text-link { font: 700 16px/1.2 'Kalam', cursive; color: #b5482a; border-bottom: 0; padding: 2px 6px; margin-left: -6px; background: linear-gradient(transparent 55%, #ffc96b80 55% 90%, transparent 90%); }
.notebook-cards .post .text-link:hover { color: #8a2f12; }
/* Latest: articles / videos tabs */
.latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.latest-head h2 { margin-bottom: 0; }
.latest-links { display: flex; gap: 20px; }
.latest-links [hidden] { display: none; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #39291e; border-radius: 999px; background: #fffbec; box-shadow: 2px 3px 0 #39291e; }
.tabs [role=tab] {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 650 14px/1 'DM Sans', sans-serif;
    padding: 10px 20px;
    border-radius: 999px;
}
.tabs [role=tab]:hover { color: var(--orange-ink); }
.tabs [role=tab][aria-selected=true] { background: var(--ink); color: #fff6ec; box-shadow: 0 2px 0 var(--orange); }
.latest:not(.tabs-ready) .tabs { display: none; }
.latest:not(.tabs-ready) .tab-panel + .tab-panel { margin-top: 50px; }
.tab-panel[hidden] { display: none; }
.video-thumb { position: relative; }
.video-thumb img { transition: transform .3s; }
.video-thumb .play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: #231f1bd9;
    box-shadow: 0 0 0 4px #ffffff80, 0 6px 16px #0006;
    transition: transform .2s, background .2s;
}
.video-thumb .play::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 18px;
    border-style: solid;
    border-width: 11px 0 11px 17px;
    border-color: transparent transparent transparent #fff6ec;
}
.post:hover .video-thumb .play { transform: scale(1.08); background: var(--orange); }
.post:hover .video-thumb img { transform: scale(1.04); }
.search-empty { font: 13px/1.6 var(--mono); color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #c7bdaf; border-radius: 999px;
    font: 600 13px/1 var(--mono);
}
.pagination a:hover { border-color: var(--orange); color: var(--orange-ink); }
.pagination a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff6ec; box-shadow: 0 3px 0 var(--orange); }

/* Article */
.article { padding-top: 56px; padding-bottom: 90px; max-width: 1300px; }
.article-head { margin-bottom: 28px; }
.article-head h1 {
    font: 700 clamp(40px, 4.2vw, 58px)/1.05 'Caveat', cursive;
    letter-spacing: 0;
    color: #0e2b3d;
    margin: 0 0 14px;
}
.article-head h1 span {
    padding: 0 10px;
    margin-left: -10px;
    background: linear-gradient(100deg, transparent 0 1%, #ffc96b8c 2% 97%, transparent 98%) 0 78% / 100% 40% no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.article-meta { font-family: 'Nunito', 'DM Sans', sans-serif; color: #5b6676; font-size: 14.5px; margin: 0; }
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-body {
    max-width: 900px;
    min-width: 0;
    position: relative;
    border-radius: 3px;
    padding: 60px 64px 60px 96px;
    background-color: #fffefb;
    background-image:
        radial-gradient(circle at 32px 50%, var(--paper) 0 9px, #d9cfc0 9.5px 10.5px, transparent 11px),
        linear-gradient(90deg, transparent 68px, #e9a3a3 68px 70px, transparent 70px),
        linear-gradient(#f2f5f8 1px, transparent 1px),
        linear-gradient(90deg, #f2f5f8 1px, transparent 1px),
        radial-gradient(ellipse at 50% 40%, transparent 65%, #f7f0e3 100%),
        linear-gradient(100deg, #fffdf8, #fffefb 40%, #fdf9f1);
    background-size: 64px 150px, 100% 100%, 15px 15px, 15px 15px, 100% 100%, 100% 100%;
    background-repeat: repeat-y, no-repeat, repeat, repeat, no-repeat, no-repeat;
    background-position: 0 40px, 0 0, 0 6px, 6px 0, 0 0, 0 0;
    box-shadow:
        0 1px 2px #3a2a1a1f,
        0 14px 34px #3a2a1a1c,
        5px 6px 0 -1px #faf5ea,
        5px 6px 0 0 #e6dccb,
        10px 12px 0 -1px #f7f0e2,
        10px 12px 0 0 #e1d6c3;
}
.article-body::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .14;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.article-body::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(225deg, var(--paper) 0 50%, #e4dac6 50%, #f6f0e4 78%, #fffefb);
    border-bottom-left-radius: 4px;
    box-shadow: -2px 2px 3px #3a2a1a1a;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
.article-main { min-width: 0; }
.article .prose { line-height: 30px; }
.article .prose p { margin-bottom: 30px; }
.article .prose li { margin: 0; }
.article .prose ul { list-style: none; padding-left: 1.7em; }
.article .prose ul > li { position: relative; }
.article .prose ul > li::before {
    content: '';
    position: absolute;
    left: -1.45em;
    top: 9px;
    width: 17px;
    height: 12px;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M2 7.6c4.2-.5 9-.9 14.6-.4M11.4 2.4c1.9 1.6 3.5 3 5.4 4.8-1.8 1.5-3.6 2.9-5.6 4.6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M2 7.6c4.2-.5 9-.9 14.6-.4M11.4 2.4c1.9 1.6 3.5 3 5.4 4.8-1.8 1.5-3.6 2.9-5.6 4.6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.article .prose ul ul > li::before { width: 7px; height: 7px; top: 12px; left: -1.1em; border-radius: 50%; -webkit-mask: none; mask: none; }
.article .prose ol > li::marker { font: 700 18px 'Kalam', cursive; color: var(--ink); }
.article-cover { height: 320px; margin: 0 0 36px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: start; }
.toc-sidebar { position: sticky; top: 28px; border-left: 1px solid var(--line); padding-left: 24px; }
.toc-sidebar .toc { margin: 14px 0 26px; font-family: 'Nunito', 'DM Sans', sans-serif; font-size: 15px; line-height: 1.4; }
.toc-sidebar .toc ul { list-style: none; padding: 0; margin: 0; }
.toc-sidebar .toc ul ul { padding-left: 14px; }
.toc-sidebar .toc li { margin: 0; }
.toc-sidebar .toc a { display: block; padding: 5px 0; color: var(--muted); }
.toc-sidebar .toc a:hover { color: var(--orange-ink); }

/* Post content: original blog colors on a white card */
.layout-post .toc-sidebar .toc a:hover { color: #0b57d0; }
.toc-sidebar .toc a.active {
    color: #0e2b3d;
    font-weight: 600;
    background: linear-gradient(transparent 58%, #ffc96b8c 58% 92%, transparent 92%) no-repeat;
}
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }

.prose { font-family: 'Nunito', 'DM Sans', sans-serif; font-size: 17px; line-height: 1.8; color: #2e3b4e; max-width: 820px; min-width: 0; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    color: #0e2b3d;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 1.6em 0 .5em;
    scroll-margin-top: 24px;
    width: fit-content;
    padding: 0 8px;
    margin-left: -8px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.prose h1 { font-size: 34px; background: linear-gradient(100deg, transparent 0 1%, #ffc96b8c 2% 97%, transparent 98%) 0 75% / 100% 40% no-repeat; }
.prose h2 { font-size: 28px; background: linear-gradient(transparent, transparent) , linear-gradient(100deg, #ff6b2b66, #ff6b2b33) 8px 92% / calc(100% - 16px) 3px no-repeat; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 20px; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: #0b57d0; text-decoration: none; }
.prose a:hover { text-decoration: underline wavy #0b57d0b3; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { color: #0e2b3d; font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid #e6e6e6; margin: 2.5em 0; }
.prose img { height: auto; }
.prose img.center, .prose .center { display: block; margin-left: auto; margin-right: auto; }
.prose figure { margin: 30px 0 40px; }
.prose figcaption { text-align: center; font-size: 13px; color: #6c757d; margin-top: 10px; }
.prose iframe, .prose video { max-width: 100%; border: 0; border-radius: 8px; margin: 10px 0 24px; display: block; }
.prose .grid-cell { margin: 24px 0; }
.prose blockquote:not(.markdown-alert) { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid #d0d7de; color: #6c757d; }
/* Notes and tips as sticky notes */
.article .prose { isolation: isolate; }
.prose .markdown-alert { padding: 12px 18px; margin: 1.5em 0; font-size: 15px; }
.prose .markdown-alert .markdown-alert-title { font-weight: 600; margin-bottom: 8px; }
.article .prose .markdown-alert {
    position: relative;
    width: 94%;
    margin: 36px auto;
    padding: 30px 24px 22px;
    border: 0;
    border-radius: 2px 2px 4px 4px;
    background: linear-gradient(#0000000d, #0000000d) top / 100% 16px no-repeat, #fff4a8;
    box-shadow: 0 1px 1px #3a2a1a1a, 0 8px 14px -6px #3a2a1a40, 8px 12px 14px -10px #3a2a1a4d;
    transform: rotate(-.8deg);
}
.article .prose .markdown-alert.tilt-r { transform: rotate(.7deg); }
.article .prose .markdown-alert > :last-child { margin-bottom: 0; }
.article .prose .markdown-alert .markdown-alert-title { font: 700 18px/1.2 'Kalam', cursive; }
.article .prose .markdown-alert.markdown-alert-note { border-left: 0; }
.article .prose .markdown-alert.markdown-alert-note .markdown-alert-title { color: #8a5a00; }
.article .prose .markdown-alert.markdown-alert-tip { border-left: 0; background: linear-gradient(#0000000d, #0000000d) top / 100% 16px no-repeat, #dff2c4; }
.article .prose .markdown-alert.markdown-alert-tip .markdown-alert-title { color: #3f6212; }

/* Images taped onto the page */
.article .photo {
    position: relative;
    display: table;
    max-width: 100%;
    margin: 40px auto 34px;
    padding: 10px 10px 12px;
    background: #fff;
    box-shadow: 0 1px 2px #3a2a1a26, 0 12px 24px -8px #3a2a1a33;
    transform: rotate(-.7deg);
    transition: transform .25s;
}
.article .photo.tilt-r { transform: rotate(.6deg); }
.article .photo:hover { transform: rotate(0); }
.article .photo::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: -14px;
    left: 50%;
    width: min(130px, 40%);
    height: 28px;
    background: #f6e2b0b8;
    box-shadow: 0 1px 2px #3a2a1a1f;
    transform: translateX(-50%) rotate(-3deg);
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 98% 62%, 100% 100%, 2% 96%, 0 70%, 3% 38%);
}
.article .photo.tilt-r::before { background: #ffd2b6b8; transform: translateX(-50%) rotate(2.5deg); }
.article .photo img { display: block; max-width: 100%; margin-left: auto; margin-right: auto; }
.article figure.photo { display: block; }
.article figure.photo figcaption { font: 400 16px/1.4 'Kalam', cursive; color: #4a5568; margin-top: 10px; }
.article figure.photo figcaption strong { font-weight: 700; color: #4a5568; }
.article .grid-cell.photo { display: flex; width: fit-content; }
.article .article-cover.photo { display: block; margin-top: 0; }
.article .article-cover.photo img { height: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid #e6e6e6; text-align: left; vertical-align: top; }
.prose thead th { background: #f6f8fa; color: #0e2b3d; font-weight: 600; }
.prose table caption { caption-side: top; font-weight: 600; font-size: 13px; color: #0e2b3d; text-align: left; padding-bottom: 6px; }
.prose td.centered, .prose table#warehouses td:nth-child(n+4) { text-align: center; }
.prose table.borderless td, .prose table.borderless th { border: 0; }
.article .prose table { border-collapse: separate; border-spacing: 0; }
.prose th, .prose td { overflow-wrap: break-word; }
.article .prose th, .article .prose td { border-bottom: 1.5px solid #5b667647; }
.article .prose th + th, .article .prose td + td { border-left: 1px dashed #5b667647; }
.article .prose thead th { background: linear-gradient(transparent 20%, #ffe9a866 20% 85%, transparent 85%); font: 700 17px/1.3 'Kalam', cursive; color: #0e2b3d; border-bottom: 2px solid #0e2b3d8c; }
.article .prose tbody tr:hover td { background: #ffc96b14; }
.article .prose table caption { font: 700 17px/1.3 'Kalam', cursive; letter-spacing: 0; text-transform: none; }
.article .prose table.borderless td, .article .prose table.borderless th { border: 0; }

.prose code { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; font-weight: bold; color: #666; }
.prose pre {
    position: relative;
    background: #f6f8fa;
    color: #212529;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 1.5em 0;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.65;
    tab-size: 2;
}
.prose pre code { overflow-wrap: normal; background: none; color: inherit; padding: 0; font-weight: 400; font-size: 1em; }
.prose .highlighter-rouge { margin: 1.5em 0; }
.prose .highlight { margin: 0; }
.prose .highlight .c, .prose .highlight .c1, .prose .highlight .cm, .prose .highlight .cs { color: #6a737d; font-style: italic; }
.prose .highlight .k, .prose .highlight .kd, .prose .highlight .kn, .prose .highlight .kr, .prose .highlight .kt, .prose .highlight .nt { color: #d73a49; }
.prose .highlight .s, .prose .highlight .s1, .prose .highlight .s2, .prose .highlight .sb, .prose .highlight .sx { color: #032f62; }
.prose .highlight .na, .prose .highlight .nf, .prose .highlight .nc, .prose .highlight .nb { color: #6f42c1; }
.prose .highlight .m, .prose .highlight .mi, .prose .highlight .mf, .prose .highlight .kc { color: #005cc5; }
.prose .highlight .o, .prose .highlight .p { color: #24292e; }
.copy-code-button {
    position: absolute; top: 8px; right: 8px;
    width: 32px; height: 32px; padding: 7px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: #555; border: 1px solid #d0d7de; border-radius: 8px;
    opacity: 0;
    transition: opacity .15s, color .15s, border-color .15s;
}
.copy-code-button svg { width: 16px; height: 16px; }
.copy-code-button:hover { color: #0b57d0; border-color: #0b57d0; }
pre:hover > .copy-code-button,
.highlighter-rouge:hover > .copy-code-button,
.copy-code-button:focus-visible,
.copy-code-button.copied { opacity: 1; }
.copy-code-button.copied { color: #3f6212; border-color: #3f621266; }
@media (hover: none) { .copy-code-button { opacity: .7; } }

/* Code snippets as yellow sticky notes, like the notes */
.article .prose .highlighter-rouge {
    position: relative;
    width: 94%;
    margin: 36px auto;
    padding-top: 30px;
    border-radius: 2px 2px 4px 4px;
    background: linear-gradient(#0000000d, #0000000d) top / 100% 16px no-repeat, #d8ebfb;
    box-shadow: 0 1px 1px #3a2a1a1a, 0 8px 14px -6px #3a2a1a40, 8px 12px 14px -10px #3a2a1a4d;
    transform: rotate(-.8deg);
}
.article .prose .highlighter-rouge.tilt-r { transform: rotate(.7deg); }
.article .prose .highlighter-rouge pre {
    margin: 0;
    padding: 30px 24px 22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    line-height: 24px;
    color: #2e3b4e;
    overflow-x: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.code-label {
    position: absolute;
    top: 26px;
    left: 24px;
    font: 700 18px/1.2 'Kalam', cursive;
    color: #1f4e7a;
}
.article .prose .highlighter-rouge .copy-code-button {
    top: 22px;
    right: 16px;
    background: #d8ebfb;
    color: #1f4e7a;
    border-color: #1f4e7a59;
}
.article .prose .highlighter-rouge .copy-code-button:hover { color: #123554; border-color: #1f4e7a; }

/* Carousel (Bootstrap markup in posts) */
.prose .carousel { position: relative; margin: 30px auto 40px; border-radius: 10px; overflow: hidden; background: #0d0c12; }
.article .prose .carousel.photo { display: block; overflow: visible; border-radius: 0; background: #fff; }
.prose .carousel-inner { overflow: hidden; background: #0d0c12; }
.prose .carousel-item { display: none; }
.prose .carousel-item.active { display: block; }
.prose .carousel-item img { width: 100%; height: min(70vh, 620px); object-fit: contain; border-radius: 0; }
.prose .carousel-indicators { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; z-index: 2; }
.prose .carousel-indicators li { width: 8px; height: 8px; margin: 0; border-radius: 50%; background: #ffffff80; cursor: pointer; }
.prose .carousel-indicators li.active { background: #fff; }
.prose .carousel-control-prev, .prose .carousel-control-next {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #231f1bcc; color: #fff6ec; text-decoration: none;
}
.prose .carousel-control-prev { left: 12px; }
.prose .carousel-control-next { right: 12px; }
.prose .carousel-control-prev:hover, .prose .carousel-control-next:hover { background: #0b57d0; color: #fff; }
.prose .carousel-control-prev-icon::before { content: '\2190'; }
.prose .carousel-control-next-icon::before { content: '\2192'; }

.sign-off { font: 700 34px/1 'Caveat', cursive; color: #0e2b3d; text-align: right; margin: 44px 8px 0 0; transform: rotate(-3deg); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin-top: 40px; }
.post-nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #fffbec;
    border: 1px solid #39291e;
    border-radius: 4px;
    box-shadow: 3px 4px 0 #39291e;
    transition: transform .2s, box-shadow .2s;
}
.post-nav-card:hover { transform: translateY(-3px); box-shadow: 5px 7px 0 #39291e; }
.post-nav-card span { font: 11.5px/1.6 var(--mono); letter-spacing: 1.2px; color: #9a6f50; }
.post-nav-card strong { font: 700 19px/1.3 'Kalam', cursive; color: #0e2b3d; }
.post-nav-card.next { grid-column: 2; text-align: right; }

/* Lightbox */
.article img.zoomable { cursor: zoom-in; }
.article img.zoomable:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: #171311e6; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; background: #fff; padding: 8px; border-radius: 3px; box-shadow: 0 20px 60px #0008; cursor: zoom-out; }
.lightbox figcaption { font: 400 17px/1.4 'Kalam', cursive; color: #f2ede6; text-align: center; }
.lightbox-close, .lightbox-nav {
    position: absolute;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #231f1bcc;
    color: #fff6ec;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 0 0 1px #ffffff33;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--orange); color: var(--ink); }
.lightbox-close { top: 18px; right: 18px; font-size: 28px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }
.lightbox.single .lightbox-nav { display: none; }

/* Print */
@media print {
    @page { margin: 18mm 16mm; }
    body, body.layout-post { background: #fff; color: #000; }
    .site-header, .site-footer, .cookie-banner, .toc-sidebar, .read-progress, .post-nav, .skip,
    .copy-code-button, .carousel-control-prev, .carousel-control-next, .carousel-indicators, .prose iframe { display: none !important; }
    .article { padding: 0; max-width: none; }
    .article-grid { display: block; }
    .article-body { max-width: none; padding: 0; background: none; box-shadow: none; }
    .article-body::before, .article-body::after, .article .photo::before { display: none; }
    .article .prose .highlighter-rouge { transform: none; box-shadow: none; border: 1px solid #999; }
    .article .photo { transform: none !important; box-shadow: none; padding: 0; }
    .article .prose .markdown-alert { transform: none !important; box-shadow: none; background: #fff; border: 1px solid #999; width: auto; }
    .prose { font-size: 11pt; color: #000; }
    .article .prose { line-height: 1.55; }
    .article .prose p { margin-bottom: .8em; }
    .prose pre { white-space: pre-wrap; box-shadow: none; }
    .prose img, .article .photo, .prose pre, .prose table, .prose .markdown-alert { break-inside: avoid; }
    .prose h1, .prose h2, .prose h3, .prose h4 { break-after: avoid; }
    .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
    .prose .carousel-item { display: none; }
    .prose .carousel-item.active { display: block; }
}

/* Responsive */
@media (max-width: 1020px) {
    .wrap { padding-left: 28px; padding-right: 28px; }
    .site-header { padding: 20px 28px; }
    #site-nav { gap: 22px; }
    .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 28px; min-height: 0; }
    h1 { font-size: 56px; letter-spacing: -2.5px; }
    h2 { font-size: 46px; }
    .floating-note { right: -14px; top: -30px; }
    .inside-grid, .looks-grid, .closing-grid { gap: 50px; }
    .looks-grid { grid-template-columns: 1fr; }
    #services .looks-copy { position: static; }
    .post-grid { grid-template-columns: 1fr 1fr; }
    .wms-stats, .wms-gallery { grid-template-columns: 1fr 1fr; }
    .service-cards { grid-template-columns: 1fr 1fr; }
    .service-cards.three { grid-template-columns: 1fr 1fr 1fr; }
    .about-story, .about-lists { gap: 50px; }
    .method-head { grid-template-columns: 1fr; gap: 24px; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
    .timeline li::after { display: none; }
    .article-grid { grid-template-columns: 1fr; gap: 40px; }
    .toc-sidebar { display: none; }
}

@media (max-width: 760px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .site-header { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
    .site-header .wordmark img:first-child { height: 32px; }
    .site-header .wordmark img:last-child { height: 26px; }
    .brand .brand-mark { height: 38px; }
    .site-header .brand .brand-text img { height: 26px; }
    .brand-tag { display: none; }
    .site-header .nav-cta { display: none; }
    .nav-toggle { display: block; }
    #site-nav { display: none; width: 100%; flex-direction: column; gap: 0; order: 3; }
    #site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
    .nav-open #site-nav { display: flex; }
    .nav-open .nav-toggle span[aria-hidden] { background: transparent; }
    .nav-open .nav-toggle span[aria-hidden]::before { transform: translateX(-50%) translateY(5px) rotate(45deg); }
    .nav-open .nav-toggle span[aria-hidden]::after { transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

    .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 16px 50px; }
    h1 { font-size: clamp(40px, 10.5vw, 62px); letter-spacing: -2px; margin-top: 18px; }
    h2 { font-size: 38px; letter-spacing: -1.5px; }
    .closing h2 { font-size: 40px; }
    .hero-intro { font-size: 15.5px; }
        .floating-note { position: relative; top: auto; right: auto; margin: -24px 0 0 auto; min-width: 0; max-width: 290px; width: max-content; }
    .micro { display: none; }
    .principles { padding-top: 56px; }
    .principle-grid, .inside-grid, .method-head, .closing-grid, .phase-grid, .post-grid, .form-row { grid-template-columns: 1fr; }
    .inside { padding-top: 60px; padding-bottom: 60px; }
    .inside-grid { gap: 36px; }
    .looks { padding: 56px 0; }
    .closing-prism { font-size: 170px; right: -10px; top: 0; opacity: .7; }
    .contact-form { padding: 20px; }
    .site-footer { padding-bottom: 90px; }
    .legal-body { padding: 26px 20px; font-size: 15.5px; }
    .faq-block { grid-template-columns: 1fr; gap: 10px; padding-top: 40px; }
    .lightbox figure { max-width: calc(100vw - 24px); }
    .lightbox-nav { top: auto; bottom: 18px; transform: none; }
    .tlp-section::before { top: 70px; width: 100%; height: 300px; opacity: .3; }
    .tlp-section::after { width: 100%; height: 380px; top: 30px; }
    .tlp-cards::before { inset: -40px -20px; }
    .tlp-head { min-height: 0; }
    .wms-teaser-list { grid-template-columns: 1fr; }
    .wms-stats strong { font-size: 30px; }
    .wms-gallery { grid-template-columns: 1fr; }
    #wms-flow .method-head .office-photo { margin: 0; }
    .about-story, .about-lists, .about-columns, .service-cards, .service-cards.three { grid-template-columns: 1fr; }
    .about-columns { gap: 20px; }
    .about-lists { padding-top: 56px; gap: 46px; }
    .map-card { aspect-ratio: 4 / 3; margin-top: 40px; }
    .method { padding-top: 56px; padding-bottom: 50px; }
    .timeline { grid-template-columns: 1fr; gap: 46px; margin-top: 40px; }
    .timeline li:not(:last-child)::after { display: block; top: auto; right: auto; bottom: -40px; left: 4px; transform: rotate(80deg); }
    .office-photo { margin-left: 0; }
    .page-hero { padding-top: 40px; padding-bottom: 20px; }
    .blog-list { padding-top: 20px; }
    .article { padding-top: 32px; padding-bottom: 60px; }
    .article-cover { height: 200px; margin-bottom: 24px; }
    .article .photo { padding: 6px 6px 8px; transform: rotate(-.4deg); }
    .article .photo.tilt-r { transform: rotate(.4deg); }
    .article .photo::before { height: 20px; top: -10px; }
    .article .prose .markdown-alert { width: 100%; }
    .article .prose .highlighter-rouge { width: 100%; }
    .article .prose .highlighter-rouge pre { font-size: 13px; }
    .prose { font-size: 16px; }
    .article-body {
        padding: 28px 18px;
        background-image:
            linear-gradient(#f2f5f8 1px, transparent 1px),
            linear-gradient(90deg, #f2f5f8 1px, transparent 1px),
            radial-gradient(ellipse at 50% 40%, transparent 65%, #f7f0e3 100%),
            linear-gradient(100deg, #fffdf8, #fffefb 40%, #fdf9f1);
        background-size: 15px 15px, 15px 15px, 100% 100%, 100% 100%;
        background-repeat: repeat, repeat, no-repeat, no-repeat;
        background-position: 0 6px, 6px 0, 0 0, 0 0;
        box-shadow: 0 1px 2px #3a2a1a1f, 0 10px 24px #3a2a1a1c, 4px 5px 0 -1px #faf5ea, 4px 5px 0 0 #e6dccb;
    }
    .prose h1 { font-size: 28px; }
    .prose h2 { font-size: 24px; }
    .article-body::after { width: 26px; height: 26px; }
    .sign-off { font-size: 28px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-card.next { grid-column: auto; }
    .prose .grid-cell { flex-wrap: wrap; }
    .prose .carousel { width: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .floating-note { animation: none; }
    .button, .nav-cta, .post, .post-grid .post, .phase-grid article, .screen, .article .photo, .post-nav-card, .notebook-cards .post, .office-photo, .service-card { transition: none; }
}
