/* ============================================================
   JADEX AFRICA — Malawi Integrated Development
   Palette : ink / pine / lake / ember / gold / bone
   Type    : Shippori Mincho (display) / Zen Kaku Gothic + Inter (body)
   ============================================================ */

:root{
  --ink:   #1C2119;
  --pine:  #2E4B3A;
  --lake:  #41707B;
  --ember: #D2602E;
  --gold:  #C89A45;
  --bone:  #F8F6F0;
  --sand:  #EEECE3;
  --paper: #FFFDF8;
  --line:  rgba(28,33,25,.14);
  --line-soft: rgba(28,33,25,.08);

  --font-display: "Shippori Mincho","Yu Mincho","Hiragino Mincho ProN",serif;
  --font-body: "Zen Kaku Gothic New","Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
  --font-en: "Inter","Zen Kaku Gothic New",sans-serif;

  --container: 1160px;
  --gutter: clamp(1.5rem,5vw,2.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.26,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 12px); }
body{
  font-family:var(--font-body);
  background:var(--bone);
  color:var(--ink);
  line-height:1.85;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
html[lang="en"] body{ font-family:var(--font-en); line-height:1.75; }
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
:focus-visible{ outline:2px solid var(--ember); outline-offset:3px; border-radius:2px; }

/* ---------- shared ---------- */
.eyebrow{
  font-size:.72rem; font-weight:500; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ember);
  display:flex; align-items:center; gap:.8em;
}
.eyebrow::before{ content:none; }
.eyebrow-light{ color:var(--gold); }
.eyebrow-light::before{ background:var(--gold); }
.sec-head{ max-width:var(--container); margin:0 auto clamp(2.2rem,5vw,3.6rem); }
.sec-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.7rem,3.6vw,2.5rem);
  letter-spacing:.04em;
  margin:.55em 0 .35em;
  line-height:1.4;
}
.sec-lead{ color:rgba(28,33,25,.72); max-width:56ch; }
.section{ padding:clamp(4rem,9vw,7rem) max(var(--gutter), calc((100% - var(--container))/2)); }

/* ---------- header ---------- */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100;
  transition:background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
  padding:0 max(var(--gutter), calc((100% - var(--container))/2));
}
.site-header.scrolled{ background:rgba(246,240,229,.92); backdrop-filter:blur(10px); box-shadow:0 1px 0 var(--line); }
.header-inner{
  max-width:var(--container); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem; height:var(--header-h);
}
.brand{ display:flex; align-items:center; gap:.55rem; color:var(--ink); }
.site-header:not(.scrolled) .brand{ color:var(--bone); }
.brand-mark{ width:34px; height:34px; color:var(--ember); transition:transform .6s var(--ease); }
.brand-text{ display:flex; flex-direction:column; gap:5px; line-height:1.1; letter-spacing:.12em; }
.brand-name{ font-family:var(--font-display); font-weight:700; font-size:1.15rem; }
.brand-sub{ font-size:.58rem; font-weight:700; letter-spacing:.46em; opacity:.8; }
.nav{ display:flex; gap:clamp(1rem,2.4vw,2.2rem); }
.nav a{
  font-size:.88rem; letter-spacing:.06em; font-weight:500; color:inherit;
  position:relative; padding:.35rem 0;
}
.site-header:not(.scrolled) .nav a{ color:var(--bone); }
.nav a::after{
  content:""; position:absolute; left:0; bottom:0; width:100%; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.nav a:hover::after{ transform:scaleX(1); }
.lang-switch{
  flex:0 0 auto; min-width:52px; height:34px; padding:0 .7rem;
  border:0; border-radius:0;
  font-size:.78rem; font-weight:700; letter-spacing:.12em;
  transition:transform .25s var(--ease), background .25s, color .25s;
  color:inherit;
}
.site-header:not(.scrolled) .lang-switch{ color:var(--bone); }
.site-header.scrolled .lang-switch{ color:var(--ink); }
.lang-switch:hover{ transform:translateY(-1px); }
.lang-switch:active{ transform:translateY(0); }
.nav-toggle{ display:none; flex-direction:column; gap:5px; padding:.5rem; z-index:120; }
.nav-toggle span{ width:26px; height:2px; background:currentColor; transition:.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.site-header:not(.scrolled) .nav-toggle{ color:var(--bone); }

/* ---------- hero ---------- */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:flex-end;
  color:var(--bone); overflow:hidden;
}
.hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(20,24,17,.55) 0%, rgba(20,24,17,.18) 38%, rgba(20,24,17,.78) 100%);
}
.hero-content{
  position:relative; z-index:2;
  width:100%; margin:0 auto;
  padding:calc(var(--header-h) + 4rem) max(var(--gutter), calc((100% - var(--container))/2)) 5.5rem;
}
.hero-title{
  font-family:var(--font-display); font-weight:600; letter-spacing:.03em;
  font-size:clamp(2rem,5.6vw,3.9rem); line-height:1.42; margin:.6em 0 .5em;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}
.hero-lead{ max-width:56ch; font-size:clamp(.95rem,1.5vw,1.08rem); color:rgba(255,253,248,.92); }
.hero-actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin:2rem 0 3rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:50px; padding:.6rem 1.9rem; border-radius:2px;
  font-size:.9rem; font-weight:500; letter-spacing:.04em;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover{ transform:none; }
.btn:active{ transform:translateY(0); }
.btn-ember{ background:var(--ember); color:var(--bone); }
.btn-ember:hover{ background:#c1552a; }
.btn-ghost{ border:1px solid rgba(255,253,248,.55); color:var(--bone); backdrop-filter:blur(2px); }
.btn-ghost:hover{ background:rgba(255,253,248,.12); }
.hero-stats{
  display:flex; flex-wrap:wrap; gap:clamp(1.2rem,4vw,3rem);
  border-top:1px solid rgba(255,253,248,.28); padding-top:1.4rem; max-width:640px;
}
.hero-stats li{ display:flex; align-items:baseline; gap:.5em; }
.hero-stats strong{ font-family:var(--font-display); font-weight:700; font-size:clamp(1.5rem,3vw,2rem); color:var(--gold); }
.hero-stats span{ font-size:.82rem; letter-spacing:.08em; opacity:.92; }
/* ---------- concept / chain ---------- */
.concept{ background:var(--bone); }
.concept-lead{ font-size:clamp(1rem,1.7vw,1.18rem); max-width:74ch; color:rgba(28,33,25,.78); margin-bottom:clamp(2.4rem,5vw,3.8rem); }
.chain{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:.8rem 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding:1.5rem 0;
  margin-bottom:1.3rem;
}
.chain-node{ display:flex; align-items:center; gap:.55rem; }
.chain-num{
  font-family:var(--font-display); font-weight:700;
  width:2.4em; height:2.4em; display:flex; align-items:center; justify-content:center;
  color:var(--ember); font-size:.92rem; flex:0 0 auto;
}
.chain-label{ font-weight:500; letter-spacing:.02em; font-size:.95rem; white-space:nowrap; }
.chain-arrow{ color:var(--ember); font-weight:700; margin:0 .5rem; font-size:1.05rem; }
.concept-note{ text-align:left; color:rgba(28,33,25,.62); font-size:.92rem; max-width:70ch; }
.hero-status{ max-width:56ch; padding-top:1.2rem; border-top:1px solid rgba(255,253,248,.3); font-size:.78rem; color:rgba(255,253,248,.8); }
.service-index{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 2rem; margin:2rem 0 1.5rem; }
.service-index a{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.7rem; padding:1rem 0; border-bottom:1px solid var(--line); font-size:.95rem; }
.service-index a:hover{ color:var(--ember); }
.service-index a > :last-child{ color:var(--ember); }

/* ---------- services ---------- */
.services{ background:var(--bone); }
.service-grid{ display:grid; gap:clamp(3rem,7vw,5.5rem); }
.service{
  display:grid; grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);
  gap:clamp(1.6rem,4vw,3.4rem); align-items:center;
}
.service-media{ position:relative; overflow:hidden; aspect-ratio:4/3; background:var(--sand); }
.service-media-menu{ aspect-ratio:3/2; }
.service-media img{ width:100%; height:100%; object-fit:cover; transition:transform .9s var(--ease); }
.service:hover .service-media img{ transform:none; }
.service-media::after{
  content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,.16);
  pointer-events:none;
}
.service-body{ position:relative; }
.image-caption{ margin-top:.65rem; font-size:.75rem; line-height:1.7; color:rgba(28,33,25,.6); }
.sv-num{
  font-family:var(--font-en); font-weight:400; color:var(--ember);
  font-size:.78rem; line-height:1; display:inline-block; margin:0 .75rem 1rem 0;
}
.sv-badge{
  display:inline-block; font-size:.7rem; font-weight:500; letter-spacing:.16em;
  color:rgba(28,33,25,.65); margin-bottom:1rem;
}
.sv-name{ font-family:var(--font-display); font-weight:600; font-size:clamp(1.25rem,2.4vw,1.6rem); letter-spacing:.03em; margin-bottom:.7em; }
.sv-desc{ color:rgba(28,33,25,.75); font-size:.97rem; }
.sv-chips{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1rem; margin:1.4rem 0 1rem; padding-top:1rem; border-top:1px solid var(--line); }
.sv-chips li{
  font-size:.8rem; color:rgba(28,33,25,.75); padding-left:.85em; position:relative;
}
.sv-chips li::before{ content:"・"; position:absolute; left:0; }
.sv-note{ font-size:.85rem; color:rgba(28,33,25,.55); border-left:2px solid var(--gold); padding-left:.8em; }
.service:nth-child(even) .service-media{ order:2; }
.service-cta{ margin-top:1rem; }

/* ---------- company ---------- */
.company{ background:var(--bone); }
.company-grid{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(1.8rem,4vw,3.6rem); align-items:center; }
.company-table{ border-top:2px solid var(--ink); }
.ct-row{
  display:grid; grid-template-columns:minmax(120px,230px) 1fr; gap:1rem;
  padding:1.05rem .2rem; border-bottom:1px solid var(--line);
  align-items:baseline;
}
.ct-row dt{ font-size:.82rem; font-weight:700; letter-spacing:.14em; color:var(--ember); }
.ct-row dd{ font-size:.95rem; }
.company-media img{ aspect-ratio:4/3; object-fit:cover; width:100%; }
.company-media figcaption{ font-size:.8rem; letter-spacing:.06em; color:rgba(28,33,25,.5); padding:.6rem .2rem 0; }

/* ---------- contact ---------- */
.contact{ background:var(--ink); color:var(--bone); }
.contact .eyebrow{ color:var(--gold); }
.contact .eyebrow::before{ background:var(--gold); }
.contact .sec-lead{ color:rgba(255,253,248,.72); }
.contact-email{ margin:0 0 2.5rem; }
.contact-email p{ font-size:.9rem; margin-bottom:.5rem; }
.contact-email a{ display:inline-block; max-width:100%; padding:.5rem 0; font-size:clamp(1.1rem,3vw,1.6rem); color:var(--bone); text-decoration:underline; text-underline-offset:.25em; overflow-wrap:anywhere; }
.contact-email a:hover{ color:var(--gold); }
.contact-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1rem;
  max-width:var(--container); margin:0 auto;
}
.c-card{
  border-top:1px solid rgba(255,253,248,.25); padding:1.5rem 0;
}
.c-icon{ display:none; }
.c-card h4{ font-family:var(--font-display); font-weight:600; font-size:1.05rem; letter-spacing:.05em; margin-bottom:.35rem; }
.c-card p{ font-size:.9rem; color:rgba(255,253,248,.78); overflow-wrap:anywhere; }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); border-top:1px solid rgba(255,253,248,.12); }
.footer-inner{
  margin:0 auto; padding:3rem max(var(--gutter), calc((100% - var(--container))/2)) 2.2rem;
  display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:1.4rem;
}
.brand-footer{ color:var(--bone); }
.footer-tag{ font-size:.82rem; letter-spacing:.05em; color:rgba(255,253,248,.66); max-width:46ch; }
.footer-copy{ font-size:.75rem; letter-spacing:.08em; color:rgba(255,253,248,.45); width:100%; margin-top:1.6rem; }

/* ---------- responsive ---------- */
.concept-intro{ max-width:800px; }
.concept-intro .sec-head{ margin-bottom:1.5rem; }
.concept-intro .concept-lead{ margin-bottom:0; font-size:1rem; }
.photo-figure{ min-width:0; margin:0; }
.photo-link{ display:block; position:relative; cursor:zoom-in; }
.photo-link img{ width:100%; height:auto; }
.photo-expand{ position:absolute; right:.6rem; bottom:.6rem; display:grid; place-items:center; width:36px; height:36px; color:var(--paper); background:rgba(28,33,25,.8); font-size:1.2rem; }
.photo-figure figcaption{ margin-top:.65rem; color:rgba(28,33,25,.7); font-size:.8rem; line-height:1.7; }
.service.service-showcase{ grid-template-columns:1fr; gap:2.2rem; }
.service-showcase .service-body{ max-width:760px; }
.service-gallery{ min-width:0; }
.gallery-hint{ font-size:.8rem; color:rgba(28,33,25,.7); margin-bottom:1rem; }
.gallery-nav{ display:flex; flex-wrap:wrap; gap:.25rem 1.5rem; border-block:1px solid var(--line); margin-bottom:2.5rem; }
.gallery-nav a{ display:flex; align-items:center; min-height:48px; font-size:.85rem; text-decoration:underline; text-underline-offset:5px; }
.gallery-nav a:hover{ color:var(--ember); }
.gallery-group + .gallery-group{ margin-top:3rem; }
.gallery-title{ font-family:var(--font-display); font-size:1.3rem; font-weight:500; margin-bottom:1.2rem; }
.photo-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; align-items:start; }
.photo-grid-three{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.photo-grid .photo-link{ aspect-ratio:3/2; background:var(--paper); }
.photo-grid .photo-link img{ width:100%; height:100%; object-fit:contain; }
.photo-plan{ max-width:850px; margin:2.5rem auto 0; }
.photo-document{ background:var(--paper); }
.company-photos{ display:grid; gap:1.8rem; }
.support-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3rem; }
.service.service-support{ display:block; border-top:1px solid var(--line); padding-top:2rem; }
.photo-viewer{ width:calc(100% - 2rem); max-width:1400px; height:90dvh; max-height:calc(100dvh - 2rem); margin:auto; padding:0; border:0; background:var(--paper); color:var(--ink); }
.photo-viewer[open]{ display:flex; flex-direction:column; }
.photo-viewer::backdrop{ background:rgba(15,20,15,.86); }
.viewer-toolbar{ display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; padding:.6rem 1rem; border-bottom:1px solid var(--line); }
.viewer-toolbar p{ flex:1; font-size:.85rem; }
.viewer-toolbar button{ min-height:44px; min-width:44px; padding:.4rem .7rem; border:1px solid var(--line); font-size:.85rem; }
.viewer-toolbar button:disabled{ opacity:.4; cursor:default; }
.viewer-canvas{ min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; padding:16px; }
.viewer-canvas img{ max-width:none; height:auto; margin:0 auto; }
.viewer-caption{ font-size:.8rem; padding:.6rem 1rem; border-top:1px solid var(--line); }
.service-safari{ grid-template-columns:1fr; gap:2.5rem; padding:3rem 0; border-block:1px solid var(--line); }
.service-safari .service-body{ max-width:760px; }
.safari-gallery{ order:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:2rem; }
.safari-gallery img{ width:100%; height:auto; }
.safari-gallery .photo-link{ aspect-ratio:4/3; overflow:hidden; }
.safari-gallery .photo-link img{ width:100%; height:100%; object-fit:cover; }
.safari-cottage{ margin-top:4rem; }
.safari-gallery figcaption{ font-size:.75rem; color:rgba(28,33,25,.6); margin-top:.65rem; line-height:1.7; }
.safari-gallery figcaption a{ display:block; font-size:.68rem; text-decoration:underline; text-underline-offset:3px; }
.service-safari .sv-chips{ max-width:620px; }

@media (max-width:960px){
  .concept-intro{ grid-template-columns:1fr; }
  .photo-grid-three{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .photo-grid-three > :first-child{ grid-column:1/-1; }
  .service{ grid-template-columns:1fr; }
  .service:nth-child(even) .service-media{ order:0; }
  .company-grid{ grid-template-columns:1fr; }
  .company-table{ order:2; }
  .contact-grid{ grid-template-columns:1fr 1fr; }

}
@media (max-width:1100px){
  .nav{
    position:fixed; inset:0 0 auto auto; height:100dvh; z-index:110; width:min(86vw,360px);
    background:var(--ink); color:var(--bone);
    flex-direction:column; gap:.3rem; padding:calc(var(--header-h) + 1.4rem) 1.8rem 2rem;
    transform:translateX(105%); transition:transform .45s var(--ease);
    box-shadow:-20px 0 60px rgba(0,0,0,.35);
    visibility:hidden; overflow-y:auto;
  }
  .nav.open{ transform:translateX(0); visibility:visible; }
  .nav a{ font-size:1.05rem; padding:.7rem 0; border-bottom:1px solid rgba(255,253,248,.12); font-family:var(--font-display); letter-spacing:.1em; }
  .nav-toggle{ display:flex; width:44px; height:44px; align-items:center; justify-content:center; flex-shrink:0; }
  .lang-switch{ margin-left:auto; min-height:44px; }
  .site-header:not(.scrolled) .lang-switch, .site-header:not(.scrolled) .nav-toggle{ color:var(--bone); }
  .site-header .nav-toggle[aria-expanded="true"]{ color:var(--bone); }
  .chain{ flex-direction:column; align-items:stretch; gap:0; }
  .chain-node{ min-height:44px; }
  .chain-label{ white-space:normal; }
  .chain-arrow{ align-self:flex-start; width:calc(2.4 * .92rem); text-align:center; transform:rotate(90deg); margin:.2rem 0; line-height:1.2; }
  .concept-note{ text-align:left; }
}
@media (max-width:760px){
  .support-grid{ grid-template-columns:1fr; gap:2.5rem; }
  .photo-grid, .photo-grid-three{ grid-template-columns:1fr; gap:1.7rem; }
  .photo-grid .photo-document .photo-link{ aspect-ratio:auto; }
  .photo-grid .photo-document .photo-link img{ height:auto; }
  .photo-grid-three > :first-child{ grid-column:auto; }
  .gallery-title{ font-size:1.15rem; }
  .photo-plan{ margin-top:1.7rem; }
  .gallery-group + .gallery-group{ margin-top:2.5rem; }
  .photo-viewer{ width:100%; max-width:100%; height:100dvh; max-height:100dvh; }
  .viewer-toolbar p{ flex-basis:100%; }
  .service-index{ grid-template-columns:1fr; gap:0; }
  :root{ --header-h:72px; }
  .header-inner{ gap:.75rem; }
  .contact-grid{ grid-template-columns:1fr; }
  .ct-row{ grid-template-columns:1fr; gap:.2rem; }
  .hero-content{ padding-top:calc(var(--header-h) + 3rem); padding-bottom:5rem; }
  .hero .eyebrow{ max-width:36ch; font-size:.65rem; letter-spacing:.13em; line-height:1.8; }
  .hero-title{ font-size:clamp(1.5rem,6.5vw,2.8rem); line-height:1.6; letter-spacing:.01em; }
  .hero-lead{ font-size:.95rem; line-height:1.95; }
  .hero-actions{ margin:1.7rem 0 2rem; gap:.75rem; }
  .hero-stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
  .hero-stats li{ min-width:0; flex-direction:column; gap:.3rem; }
  .hero-stats strong{ font-size:1.75rem; line-height:1.2; }
  .hero-stats span{ font-size:.7rem; letter-spacing:.02em; line-height:1.6; }
  .sec-title{ font-size:clamp(1.4rem,5.5vw,2rem); line-height:1.55; }
  .service-grid{ gap:3.5rem; }
  .service{ gap:1.5rem; }
  .sv-num{ display:inline-block; margin:0 .75rem .65rem 0; vertical-align:middle; }
  .sv-badge{ margin-bottom:.65rem; vertical-align:middle; }
  .sv-name{ line-height:1.6; overflow-wrap:anywhere; }
  .safari-gallery{ grid-template-columns:1fr; gap:1.8rem; }
  .safari-cottage{ margin-top:0; }
  .service-safari{ gap:1.8rem; padding:2.5rem 0; }
  .footer-inner{ flex-direction:column; align-items:flex-start; gap:1.3rem; }
  .footer-tag{ max-width:38ch; line-height:1.95; }
  .footer-copy{ margin-top:.5rem; font-size:.68rem; line-height:1.8; }
}
@media (max-width:480px){
  .hero-actions .btn{ width:100%; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001s !important; transition-duration:.001s !important; }
  html{ scroll-behavior:auto; }

}
