/* Fimex Ghana Ltd, inner pages. Quiet luxury, the same family as the home flight
   (flight.css): bone ground, Newsreader for headings, Geist for text, hairlines instead
   of boxes, and the amber of the Fimex mark kept for the one action that matters. */
:root {
  color-scheme: light;
  --bone: #f3efe8;        /* page ground */
  --paper: #fbf9f5;       /* raised surfaces */
  --ink: #1a1915;
  --ink-soft: #5b554b;    /* secondary text, 6.9:1 on bone */
  --line: rgb(26 25 21 / 0.14);
  --line-strong: rgb(26 25 21 / 0.32);
  --amber: #f3a91c;       /* the Fimex mark */
  --amber-ink: #7d5000;   /* amber for small text on bone */
  --night: #151411;       /* footer and dark bands */
  --on-night: #f3efe8;
  --on-night-2: #b9b1a4;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 88px);
  --maxw: 1320px;
  --r: 2px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bone); }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; border-radius: var(--r); }
.slab :focus-visible, .site-footer :focus-visible, .film :focus-visible, .fl-bar :focus-visible { outline-color: var(--amber); }
::selection { background: var(--amber); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 1.5rem + 4.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.018em; }
h3 { font-family: var(--body); font-weight: 500; font-size: 1.06rem; line-height: 1.35; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink-soft); }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); line-height: 1.6; max-width: 60ch; color: var(--ink); }
.prose { display: grid; gap: 1em; max-width: 64ch; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 0.8em; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* header: wordmark, links, one action */
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand svg { width: 118px; height: auto; display: block; }

/* buttons: one radius, quiet; amber only for the action */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; min-height: 48px;
  font-family: var(--body); font-size: 0.95rem; font-weight: 500; line-height: 1.2; text-decoration: none;
  background: var(--ink); color: var(--bone); border: 1px solid var(--ink); border-radius: var(--r); cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: #33312b; border-color: #33312b; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.alt:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #f7b93f; border-color: #f7b93f; }
.btn.small { padding: 0 16px; min-height: 40px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections: more air above a heading than below it */
.section { padding-block: clamp(72px, 9vw, 150px); }
.section.tight { padding-block: clamp(52px, 6vw, 96px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 62ch; }
.rule { border-top: 1px solid var(--line); }
.slab { background: var(--night); color: var(--on-night); }
.slab .label, .slab .muted { color: var(--on-night-2); }
.slab a { text-decoration-color: rgb(243 239 232 / 0.4); }
.slab .btn.alt { color: var(--on-night); border-color: rgb(243 239 232 / 0.4); }
.slab .btn.alt:hover { background: var(--on-night); color: var(--night); }

/* text heroes (developments, about, contact) */
.hero { padding-top: clamp(48px, 7vw, 120px); padding-bottom: clamp(24px, 3vw, 48px); }
.hero h1 { max-width: 18ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.hero-copy { display: grid; gap: 24px; align-content: end; min-width: 0; padding-bottom: 8px; }
.hero-figure { position: relative; margin: 0; min-height: 560px; min-width: 0; overflow: hidden; border-radius: var(--r); }
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; }
.status.done::before { background: currentColor; }

/* development heroes: the render full bleed, the title on it */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }

/* facts: a row of quiet definitions */
.titleblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.titleblock > div { padding: 16px 20px 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.titleblock dt { font-size: 0.82rem; color: var(--ink-soft); }
.titleblock dd { margin: 4px 0 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.intro .titleblock { grid-template-columns: minmax(0, 1fr); }
.intro .titleblock > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.intro .titleblock dd { margin: 0; }

/* developments as editorial entries */
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.sheet { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sheet-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #dcd6cb; border-radius: var(--r); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .sheet:hover .sheet-img img { transform: scale(1.03); } }
.sheet-body { display: grid; gap: 12px; align-content: start; }
.sheet-body h3 { font-family: var(--display); font-weight: 300; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; letter-spacing: -0.015em; }
.sheet-body h3 a { text-decoration: none; }
.sheet-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.sheet-body > p { color: var(--ink-soft); }
.sheet-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 0.92rem; margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.sheet-facts dt { color: var(--ink-soft); }
.sheet-facts dd { margin: 0; }
.sheet-foot { margin-top: auto; }
.sheet-foot .btn.small { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.sheet-foot .btn.small:hover { background: var(--ink); color: var(--bone); }
.sheet.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sheet.wide .sheet-img { aspect-ratio: 16 / 10; }

/* split blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split figure { margin: 0; min-width: 0; }
.split > * { min-width: 0; }
.stack-gap { display: grid; gap: 22px; align-content: start; }
figure { margin: 0; }
figcaption { font-size: 0.84rem; color: var(--ink-soft); padding-top: 10px; }
.slab figcaption { color: var(--on-night-2); }
.frame { overflow: hidden; border-radius: var(--r); background: #dcd6cb; }
.slab .frame { background: #23211c; }

/* three services */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.cols3 > div { padding-top: 22px; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; min-width: 0; }
.cols3 h3 { font-family: var(--display); font-weight: 300; font-size: 1.7rem; line-height: 1.12; }

/* lists */
.ticks { display: grid; gap: 0; }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ticks.two li:nth-child(2) { border-top: 1px solid var(--line); }
.slab .ticks li { border-color: rgb(243 239 232 / 0.16); }

/* schedules */
.table-scroll { overflow-x: auto; }
.schedule { min-width: 460px; font-size: 1rem; }
.schedule caption { caption-side: bottom; text-align: left; padding: 14px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.schedule th, .schedule td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule thead th { font-size: 0.82rem; color: var(--ink-soft); font-weight: 400; border-bottom: 1px solid var(--line-strong); padding-block: 10px; }
.schedule tbody th { font-weight: 500; }
.schedule .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the building, roof to ground */
.section-drawing { border-top: 1px solid var(--line-strong); }
.section-drawing li { display: grid; grid-template-columns: 128px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.section-drawing .lvl { font-size: 0.86rem; color: var(--ink-soft); padding: 15px 12px 15px 0; }
.section-drawing .use { padding: 14px 0; font-size: 1rem; }
.section-drawing li.homes .use { font-family: var(--display); font-size: 1.3rem; font-weight: 300; line-height: 1.3; box-shadow: inset 2px 0 0 var(--amber); padding-left: 18px; }
.section-drawing li.tall .use { padding-block: 30px; }
.section-drawing li.ground { border-top: 1px solid var(--line-strong); }
.section-drawing li.below .use { color: var(--ink-soft); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.gallery figure { grid-column: span 2; }
.gallery figure.w3 { grid-column: span 3; }
.gallery figure.w4 { grid-column: span 4; }
.gallery .shot { aspect-ratio: 4 / 3; overflow: hidden; background: #dcd6cb; border-radius: var(--r); }
.gallery .w3 .shot { aspect-ratio: 3 / 2; }
.gallery .w4 .shot { aspect-ratio: 16 / 9; }
.gallery .tall .shot { aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 96px); border-top: 1px solid var(--line-strong); }
.faq > div { padding: 24px 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.faq p { color: var(--ink-soft); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact-grid > * { min-width: 0; }
.detail { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.detail dt { font-size: 0.86rem; color: var(--ink-soft); padding-top: 2px; }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.slab .detail dt { color: var(--on-night-2); }
.copyable { user-select: all; }
form.enquiry { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 11px 12px; width: 100%; min-height: 48px;
  transition: border-color 140ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(243 169 28 / 0.35); }
.field textarea { min-height: 128px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); }
.form-result { border: 1px solid var(--line-strong); background: #fbf1dc; border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; font-size: 0.95rem; }
.form-result pre { margin: 0; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 0.84rem; background: #fff; border: 1px solid var(--line); padding: 10px 12px; }

/* call band and footer */
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.band h2 { max-width: 20ch; }
.site-footer { background: var(--night); color: var(--on-night); padding-block: 64px 32px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px clamp(24px, 4vw, 72px); }
.foot-grid > * { min-width: 0; display: grid; gap: 12px; align-content: start; }
.foot-grid > div > p { color: var(--on-night-2); }
.site-footer .brand { color: var(--on-night); }
.site-footer .label { color: var(--on-night-2); }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(243 239 232 / 0.14); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; color: var(--on-night-2); font-size: 0.86rem; }

.note { border-left: 2px solid var(--amber); background: var(--paper); padding: 14px 18px; font-size: 0.95rem; }

@media (max-width: 980px) {
  .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero-grid, .split, .contact-grid, .sheet.wide { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { min-height: 0; aspect-ratio: 4 / 3; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure, .gallery figure.w3, .gallery figure.w4 { grid-column: span 1; }
  .gallery figure.w4 { grid-column: 1 / -1; }
  .ticks.two { grid-template-columns: minmax(0, 1fr); }
  .ticks.two li:nth-child(2) { border-top: 0; }
  .intro .titleblock > div { grid-template-columns: 9rem minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sheets { grid-template-columns: minmax(0, 1fr); }
  .field-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .section-drawing li { grid-template-columns: 96px minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .detail dd { margin-bottom: 10px; }
  .brand svg { width: 104px; }
  .intro .titleblock > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet-img img { transition: none; }
}

.stack-gap > .section-head { margin-bottom: 4px; }
.hero .titleblock { margin-top: clamp(32px, 4vw, 56px); }
.h1-sub { display: block; margin-top: 0.5em; font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.6rem); line-height: 1.3; letter-spacing: -0.005em; color: var(--on-night-2); }
.h1-sub::first-letter { text-transform: uppercase; }
.slab .lead, .slab h2, .slab h3 { color: var(--on-night); }
.slab .prose p, .slab p:not(.lead):not(.label):not(.muted) { color: var(--on-night-2); }
.hero .h1-sub { color: var(--ink-soft); }

/* apartment pages: one layout per row, the plan from above beside the 3D view */
.layouts { display: grid; gap: clamp(40px, 5vw, 72px); margin-block: clamp(28px, 3vw, 44px) 18px; }
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 1.4vw, 20px); align-items: end; }
.layout h3 { grid-column: 1 / -1; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.layout figure { margin: 0; min-width: 0; }
.layout img { width: 100%; height: auto; border-radius: var(--r); background: #e9e7e3; }
.layout figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 820px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* buying guide: the purchase in order */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.steps li { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* questions page */
.faq-index { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; font-size: 0.95rem; }
.faq-index a { text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-block: 4px; }
.faq-index a:hover { border-bottom-color: var(--amber); }
.faq .faq-from { margin-top: 8px; font-size: 0.85rem; }

/* facts page */
.facts-more { margin-top: clamp(24px, 3vw, 40px); }
.facts-more h3 { margin-bottom: 10px; }
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.facts-tb { grid-template-columns: minmax(0, 1fr); }
.facts-tb > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.facts-tb dd { margin: 0; }
@media (max-width: 560px) { .facts-tb > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* film page */
.player { margin: 0; }
.player video { display: block; width: 100%; max-height: 82svh; aspect-ratio: 16 / 9; background: #0f0e0c; border-radius: var(--r); }
.player figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--on-night-2); }
.chapters { list-style: none; margin: clamp(22px, 3vw, 36px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.chapters a { color: var(--on-night); text-decoration: none; display: inline-flex; gap: 10px; align-items: baseline; padding-block: 6px; border-bottom: 1px solid rgb(243 239 232 / 0.25); }
.chapters a:hover { border-bottom-color: var(--amber); }
.chapters .t { color: var(--amber); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
@media (max-width: 760px) and (orientation: portrait) { .player video { aspect-ratio: 9 / 16; max-height: 78svh; } }
