/* ===== Shared base for all five directions =====
   Grid: 4 columns under 768px, 8 columns 768-1099px, 12 columns from 1100px.
   Each direction sets --m-desk, --gap-desk and its colour and type tokens. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--scroll-pad, 96px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

:root {
  --cols: 4; --m: 20px; --gap: 16px; --maxw: 1440px;
  --gold: #C3A778;
}
@media (min-width: 768px) { :root { --cols: 8; --m: 40px; --gap: 20px; } }
@media (min-width: 1100px) { :root { --cols: 12; --m: var(--m-desk); --gap: var(--gap-desk); } }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--m); container-type: inline-size; }
.g { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); }
.g > * { grid-column: 1 / -1; min-width: 0; }
.wrap { --col: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols)); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }

/* ===== Logo: Greenstone mark and wordmark ===== */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--logo-ink, var(--ink)); }
.logo-mark { width: var(--logo-size, 34px); height: var(--logo-size, 34px); flex: none; }
.logo-type { display: flex; flex-direction: column; align-items: center; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; line-height: 1; }
.logo-name { font-weight: 750; font-stretch: 112%; font-size: var(--logo-text, 15px); letter-spacing: .09em; padding-bottom: 4px; border-bottom: 1.5px solid var(--gold); }
.logo-sub { font-size: calc(var(--logo-text, 15px) * .53); font-weight: 500; letter-spacing: .34em; margin: 4px -.34em 0 0; }

/* ===== Menu button + panel (mobile and tablet) ===== */
.menu-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; }
.menu-panel { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
.menu-panel.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
body.menu-open { overflow: hidden; }
.menu-close { position: absolute; top: 14px; right: var(--m); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font: 500 15px var(--f-body); }
@media (min-width: 1100px) { .menu-btn, .menu-panel { display: none !important; } }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #C0392B !important; box-shadow: inset 0 -2px 0 #C0392B; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.is-error { color: #B3261E; }
.form-status a { font-weight: 600; }
.opt { font-weight: 400; opacity: .7; }

/* ===== Detail sheet (projects and journal posts) ===== */
.sheet { width: min(1120px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--sheet-r, 0); background: var(--sheet-bg, var(--bg)); color: var(--sheet-ink, var(--ink)); overflow-y: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10, 12, 11, .62); }
body.sheet-open { overflow: hidden; }
.sheet-close { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 14px 14px 0; pointer-events: none; }
.sheet-close button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: var(--sheet-bg, var(--bg)); display: grid; place-items: center; }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-inner { padding: 0 clamp(20px, 4vw, 56px) clamp(28px, 4vw, 56px); margin-top: -30px; }
.sheet-kicker { font-size: 14px; opacity: .75; margin-bottom: 10px; }
.sheet-title { font-family: var(--f-display); font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; font-weight: var(--display-weight, 600); outline: none; max-width: 16ch; }
.sheet-meta { margin-top: 10px; opacity: .75; }
.sheet-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 28px 32px; }
.sheet-fig { overflow: hidden; border-radius: var(--sheet-img-r, 0); }
.sheet-fig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.sheet-fig.is-main { grid-column: 1 / -1; margin-block: 24px; }
.sheet-gallery .sheet-fig.is-main { margin: 0; }
.sheet-fig.is-main img { aspect-ratio: 16 / 9; }
.sheet-cols { display: grid; gap: 32px; }
.sheet-text p { font-size: 17px; line-height: 1.65; max-width: 64ch; }
.sheet-text p + p { margin-top: 1em; }
.sheet-lead { font-size: 21px !important; line-height: 1.45 !important; margin-bottom: 1em; }
.sheet-facts { border-top: 2px solid var(--sheet-rule, currentColor); }
.sheet-facts div { padding-block: 12px; border-bottom: 1px solid var(--sheet-line, rgba(127,127,127,.3)); }
.sheet-facts dt { font-size: 14px; opacity: .7; }
.sheet-facts dd { margin: 2px 0 0; font-weight: 600; }
.sheet-related { margin-top: 28px; }
.sheet-related h3 { font-size: 15px; margin-bottom: 8px; }
.sheet-related li { padding-block: 6px; }
.sheet-related span, .sheet-related-one { opacity: .75; font-size: 15px; }
.sheet-related-one { margin-top: 24px; }
.sheet-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--sheet-line, rgba(127,127,127,.3)); }
.sheet-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: var(--btn-r, 999px); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.sheet-link { font-weight: 600; }
@media (min-width: 1100px) { .sheet-cols { grid-template-columns: 2fr 1fr; gap: 56px; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-in .45s cubic-bezier(.2, .7, .1, 1); }
  .sheet[open]::backdrop { animation: fade-in .3s ease; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ===== Footer credit line ===== */
.credit { font-size: 12px; opacity: .65; }

/* ===== Reveal: default visible; hidden only when JS runs and motion is allowed ===== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
  .js [data-reveal] { transition: opacity .8s cubic-bezier(.2, .7, .1, 1), transform .8s cubic-bezier(.2, .7, .1, 1); transition-delay: var(--d, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== 5. Bold contemporary =====
   Light grey ground, white tiles, deep green and a bright green accent. Plus Jakarta Sans throughout.
   Desktop: 12 columns, 48px margins, 16px gutters, 32px tile radius (artboard). Bento grids. */
:root {
  --bg: #F2F3EF; --ink: #0F1A16; --muted: #4D5A54; --white: #FFFFFF; --green: #0E3B2E; --green-2: #1B4C3D; --mint: #E3F7EC;
  --accent: #3DDC84; --accent-ink: #0F1A16; --focus: #0E3B2E;
  --f-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif; --f-display: var(--f-body);
  --m-desk: 48px; --gap-desk: 16px; --scroll-pad: 88px; --r: 28px;
  --display-weight: 800; --sheet-r: 28px; --sheet-img-r: 20px; --sheet-bg: #FFFFFF; --sheet-rule: #0E3B2E; --sheet-line: #E4E6E1; --btn-r: 999px;
  --logo-size: 28px; --logo-text: 12px;
}
:root { --m: 12px; --gap: 12px; }
@media (min-width: 768px) { :root { --m: 24px; --gap: 16px; } }
@media (min-width: 1100px) { :root { --m: var(--m-desk); --gap: var(--gap-desk); --r: 32px; --logo-size: 32px; --logo-text: 14px; } }
body { font-size: 16px; line-height: 1.55; }
a:hover { color: var(--green); }
.page { padding-block: 12px 24px; }
.tile { border-radius: var(--r); background: var(--white); overflow: hidden; position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background-color .3s ease; }
.btn:active, .t-go:active { transform: scale(.96, .92); }
.btn-green { background: var(--green); color: #fff !important; }
.btn-acc { background: var(--accent); color: var(--ink) !important; }
.btn-white { background: var(--white); color: var(--ink) !important; }
.h2 { font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.sec { padding-top: 40px; }
.sec > .h2 { margin: 0 8px 12px; }
.sec-intro { margin: 0 8px 16px; color: var(--muted); max-width: 52ch; }
.badge { display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; }
.badge-acc { background: var(--accent); }
.num { font-weight: 800; font-size: 56px; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) {
  .page { padding-block: 24px 48px; }
  .sec { padding-top: 80px; }
  .sec > .h2 { margin: 0 0 24px; font-size: 56px; }
  .h2 { font-size: 44px; }
  .sec-intro { margin: -12px 0 24px; font-size: 17px; }
  .badge { padding: 8px 16px; font-size: 14px; }
  .num { font-size: 64px; }
}

/* ===== Header pill ===== */
.hdr { position: sticky; top: 8px; z-index: 95; display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--white); box-shadow: 0 6px 24px -14px rgba(15, 26, 22, .35); }
.hdr-nav, .hdr-cta { display: none !important; }
.menu-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; }
@media (min-width: 1100px) {
  .hdr { top: 16px; padding: 12px 12px 12px 24px; }
  .hdr-nav { display: flex !important; gap: 32px; font-size: 15px; font-weight: 500; }
  .hdr-nav a { text-decoration: none; }
  .hdr-cta { display: inline-flex !important; min-height: 48px; font-size: 15px; font-weight: 600; }
}
.menu-panel { background: var(--bg); padding: 96px var(--m) 24px; gap: 12px; justify-content: space-between; }
.menu-nav { display: grid; gap: 8px; }
.menu-nav a { font-weight: 800; font-size: 34px; letter-spacing: -.04em; text-decoration: none; padding: 16px 20px; border-radius: 24px; background: var(--white); }
.menu-foot { display: grid; gap: 8px; }

/* ===== Bento grids ===== */
.bento { row-gap: var(--gap); }
.hero-bento { padding-top: var(--gap); }
.t-hero { grid-column: 1 / -1; background: var(--green); color: #fff; padding: 28px 22px; display: flex; flex-direction: column; gap: 20px; }
.t-hero h1 { font-weight: 800; font-size: 44px; line-height: .98; letter-spacing: -.04em; }
.t-hero p { font-size: 15px; color: #C6D6CF; margin-top: 18px; max-width: 520px; }
.t-photo { grid-column: span 2 !important; height: 180px; background: #CFD8D0; }
.t-photo img, .pcard img, .t-person img, .jcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.t-go { grid-column: span 2 !important; height: 180px; background: var(--accent); color: var(--ink); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.15; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.t-go svg { width: 26px; height: 26px; }
.t-stat { grid-column: 1 / -1; order: 5; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.t-stat span:last-child, .t-stat2 span:last-child, .t-stat3 span:last-child { font-size: 15px; color: var(--muted); }
@media (min-width: 768px) {
  .t-hero { grid-column: 1 / 6; padding: 36px; }
  .t-photo { grid-column: 6 / 9 !important; height: auto; }
  .t-stat { grid-column: 1 / 5; order: 0; }
  .t-go { grid-column: 5 / 9 !important; height: auto; min-height: 180px; }
}
@media (min-width: 1100px) {
  .hero-bento { grid-template-rows: 300px 300px; }
  .t-hero { grid-column: 1 / 8; grid-row: 1 / 3; padding: 56px; justify-content: space-between; }
  .t-hero h1 { font-size: 84px; line-height: .95; letter-spacing: -.045em; }
  .t-hero p { font-size: 18px; margin-top: 24px; }
  .t-photo { grid-column: 8 / 13 !important; grid-row: 1; }
  .t-stat { grid-column: 8 / 11; grid-row: 2; padding: 32px; }
  .t-go { grid-column: 11 / 13 !important; grid-row: 2; padding: 28px; font-size: 20px; }
  .t-go svg { width: 32px; height: 32px; }
}

/* ===== Services: flip tiles ===== */
.flips { row-gap: var(--gap); }
.flip { grid-column: 1 / -1; perspective: 1200px; }
.flip-in { position: relative; display: block; width: 100%; min-height: 200px; padding: 0; border: 0; background: none; text-align: left; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .5, 1); border-radius: var(--r); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.front { background: var(--white); }
.back { background: var(--green); color: #fff; transform: rotateY(180deg); }
.ico { width: 56px; height: 56px; border-radius: 18px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.f-title { font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.front .f-title { margin-top: auto; }
.f-more { font-size: 14px; color: var(--muted); }
.f-text { font-size: 16px; line-height: 1.55; color: #C6D6CF; }
.flip-in[aria-pressed="true"] { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .flip:hover .flip-in { transform: rotateY(180deg); } }
@media (min-width: 768px) { .flip { grid-column: span 4; } .flip:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .flip, .flip:last-child { grid-column: span 4; } .flip-in { min-height: 320px; } .face { padding: 36px; gap: 16px; } .f-title { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .flip-in, .flip-in[aria-pressed="true"], .flip:hover .flip-in { transform: none !important; }
  .face { position: relative; inset: auto; backface-visibility: visible; transform: none; }
  .front .f-more { display: none; }
  .back { display: none; }
  .flip-in[aria-pressed="true"] .front { display: none; }
  .flip-in[aria-pressed="true"] .back { display: flex; }
}

/* ===== Work bento ===== */
.work-bento { row-gap: var(--gap); }
.pcard { display: block; height: 300px; text-decoration: none; color: var(--ink); background: #CFD8D0; }
.pc1 { grid-column: 1 / -1; }
.pc2, .pc3 { grid-column: span 2; height: 220px; }
.pc4 { grid-column: 1 / -1; }
.pcard img { position: absolute; inset: 0; }
.pcard::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(0deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0)); pointer-events: none; }
.pcard .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.pc-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.pc-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.pc-where { font-size: 13px; color: var(--muted); }
.pc2 .badge, .pc3 .badge { display: none; }
.pcard:hover img, .t-photo:hover img, .t-person:hover img, .jcard:hover img { transform: scale(1.04); }
.t-intro { grid-column: 1 / -1; order: -1; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.t-intro p { color: var(--muted); }
.t-nature { grid-column: 1 / -1; background: var(--green); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.t-nature strong { font-size: 20px; }
.t-nature span { color: #C6D6CF; }
.t-stat2, .t-stat3 { grid-column: span 2; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 170px; }
.t-stat3 { background: var(--accent); }
.t-stat3 span:last-child { color: var(--ink) !important; }
@media (min-width: 768px) { .pc2, .pc3 { grid-column: span 4; height: 280px; } .t-nature { grid-column: 1 / 5; } .t-stat2 { grid-column: 5 / 7; } .t-stat3 { grid-column: 7 / 9; } }
@media (min-width: 1100px) {
  .work-bento { grid-template-rows: 380px 380px auto; }
  .pc1 { grid-column: 1 / 9; grid-row: 1; height: auto; }
  .t-intro { grid-column: 9 / 13; grid-row: 1; order: 0; padding: 36px; justify-content: space-between; }
  .pc2 { grid-column: 1 / 5; grid-row: 2; height: auto; }
  .pc3 { grid-column: 5 / 9; grid-row: 2; height: auto; }
  .pc4 { grid-column: 9 / 13; grid-row: 2; height: auto; }
  .pc2 .badge, .pc3 .badge { display: inline-flex; }
  .pcard .badge { top: 28px; left: 28px; }
  .pc-foot { left: 28px; right: 28px; bottom: 28px; }
  .pc-name { font-size: 24px; }
  .pc1 .pc-name { font-size: 32px; }
  .t-nature { grid-column: 1 / 7; grid-row: 3; padding: 36px; justify-content: flex-end; min-height: 240px; }
  .t-nature strong { font-size: 22px; }
  .t-stat2 { grid-column: 7 / 10; grid-row: 3; padding: 32px; }
  .t-stat3 { grid-column: 10 / 13; grid-row: 3; padding: 32px; }
}

/* ===== Team bento ===== */
.team-bento { row-gap: var(--gap); }
.t-people { grid-column: 1 / -1; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.t-people p, .t-mukire p, .t-about p { color: var(--muted); }
.t-person { grid-column: span 2; height: 240px; background: #DDE2DC; }
.t-person img { position: absolute; inset: 0; object-position: 50% 25%; }
.t-person figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .94); display: flex; flex-direction: column; }
.t-person strong { font-size: 18px; }
.t-person span { font-size: 13px; color: var(--muted); }
.t-mukire { grid-column: 1 / -1; padding: 24px; display: flex; flex-direction: column; gap: 6px; background: var(--mint); }
.t-mukire strong { font-size: 22px; }
.t-mukire .role { font-size: 14px; color: var(--muted); }
.t-about { grid-column: 1 / -1; padding: 24px; }
.about-lead { font-size: 18px; color: var(--ink) !important; font-weight: 600; line-height: 1.4; }
.story-more { margin-top: 16px; }
.story-more summary { cursor: pointer; display: inline-flex; padding: 10px 18px; border-radius: 999px; background: var(--bg); font-weight: 600; list-style: none; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary::after { content: " +"; white-space: pre; }
.story-more[open] summary::after { content: " −"; }
.story-body { display: grid; gap: 12px; margin-top: 16px; color: var(--muted); }
.story-closer { color: var(--green); font-weight: 700; }
@media (min-width: 768px) { .t-people { grid-column: 1 / 5; } .t-person { grid-column: span 2; height: auto; min-height: 300px; } .t-mukire { grid-column: 1 / 4; } .t-about { grid-column: 4 / 9; } }
@media (min-width: 1100px) {
  .t-people { grid-column: 1 / 5; padding: 36px; justify-content: space-between; min-height: 420px; }
  .t-person { grid-column: span 4; }
  .t-person figcaption { left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; }
  .t-person strong { font-size: 24px; }
  .t-person span { font-size: 15px; }
  .t-mukire { grid-column: 1 / 5; padding: 36px; }
  .t-about { grid-column: 5 / 13; padding: 36px; }
  .about-lead { font-size: 22px; }
}

/* ===== Process ===== */
.steps { row-gap: var(--gap); }
.step { grid-column: span 2; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step.is-first { background: var(--accent); }
.st-n { font-weight: 800; font-size: 40px; line-height: 1; }
.step strong { font-size: 18px; }
.step span:last-child { font-size: 14px; color: var(--muted); }
.step.is-first span:last-child { color: var(--ink); }
@media (min-width: 768px) { .step { grid-column: span 4; } }
@media (min-width: 1100px) { .step { grid-column: span 3; padding: 32px; gap: 10px; } .st-n { font-size: 48px; } .step strong { font-size: 22px; } .step span:last-child { font-size: 15px; } }

/* ===== Journal ===== */
.posts { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.post-item { grid-column: 1 / -1; }
.jcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); height: 100%; }
.jcard img { height: 200px; }
.j-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 22px; }
.j-date { font-size: 13px; color: var(--muted); }
.j-title { font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.more { margin-top: var(--gap); }
@media (min-width: 768px) { .post-item { grid-column: span 4; } }
@media (min-width: 1100px) { .post-item { grid-column: span 4; } .jcard img { height: 240px; } .j-body { padding: 24px 28px 28px; } .j-title { font-size: 22px; } }

/* ===== Contact ===== */
.contact-bento { row-gap: var(--gap); }
.t-contact { grid-column: 1 / -1; background: var(--green); color: #fff; padding: 28px 22px; display: flex; flex-direction: column; gap: 24px; }
.h-contact { font-weight: 800; font-size: 38px; line-height: .98; letter-spacing: -.04em; }
.t-contact-foot { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.t-contact p { color: #C6D6CF; }
.direct a { color: #fff; text-decoration: none; }
.t-form { grid-column: 1 / -1; padding: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font-size: 16px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--bg); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1A16' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field ::placeholder { color: #7D8781; }
.form-foot { display: flex; flex-direction: column; gap: 10px; }
.btn-send { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); }
@media (min-width: 1100px) {
  .t-contact { grid-column: 1 / 8; padding: 56px; justify-content: space-between; min-height: 520px; }
  .h-contact { font-size: 72px; line-height: .95; letter-spacing: -.045em; }
  .t-form { grid-column: 8 / 13; padding: 36px; }
  .contact-form { display: grid; grid-template-columns: 1fr 1fr; }
  .f-msg, .form-foot, .form-status, .f-type, .f-loc { grid-column: 1 / -1; }
}

/* ===== Footer ===== */
.ftr { margin-top: 40px; padding: 24px 8px 8px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.ftr-logo { --logo-size: 26px; --logo-text: 12px; }
@media (min-width: 1100px) { .ftr { padding-inline: 0; } }

/* ===== Motion: pop-in with spring, tilt ===== */
@media (prefers-reduced-motion: no-preference) {
  .js .pop { opacity: 0; transform: scale(.92); }
  .is-loaded .pop { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0s), transform .8s cubic-bezier(.3, 1.45, .5, 1) var(--d, 0s); }
  .js .tile[data-reveal]:not(.is-in), .js .flip[data-reveal]:not(.is-in) { transform: scale(.94); }
  .js .tile[data-reveal], .js .flip[data-reveal] { transition: opacity .5s ease var(--d, 0s), transform .8s cubic-bezier(.3, 1.45, .5, 1) var(--d, 0s); }
  .tilt { transform-style: preserve-3d; }
  .tilt.is-tilting { transition: transform .12s linear; }
}

/* Sheet */
.sheet-title { letter-spacing: -.045em; }
.sheet-btn { color: var(--ink); }
