/* acture.my: one stylesheet for every page. Charcoal and paper from the logo,
   a Didone-style serif for headings (after the wordmark), Inter for text. */

:root {
  --ink: #1d1e20;
  --charcoal: #2b2b2b;
  --text: #2f3135;
  --muted: #5d6066;
  --paper: #faf8f4;
  --surface: #ffffff;
  --tint: #f1ede5;
  --line: #e2ddd3;
  --accent: #8a6a3a;
  --accent-ink: #6f5428;
  --on-dark: #f4f2ee;
  --on-dark-muted: #b9b6af;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav ul a {
  color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 10px 0; display: inline-block; border-bottom: 1px solid transparent;
}
.site-nav ul a:hover, .site-nav > ul > li > a.is-current, .site-nav > ul > li > a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Submenus (About, Our Portfolio): open on hover, keyboard focus or the
   chevron button on desktop; listed inline under their parent on phones. */
.has-menu { position: relative; display: flex; align-items: center; gap: 2px; }
.submenu-toggle {
  width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: grid; place-items: center; color: var(--muted);
}
.submenu-toggle::before {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
}
.has-menu.is-open .submenu-toggle::before { transform: translateY(2px) rotate(-135deg); }
.site-nav .submenu {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; z-index: 60;
  flex-direction: column; gap: 0; padding: 8px 0; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(29, 30, 32, 0.08);
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.is-open .submenu { display: flex; }
.site-nav .submenu a { display: block; padding: 10px 16px; border-bottom: 0; font-weight: 400; white-space: nowrap; }
.site-nav .submenu a:hover { background: var(--tint); }
.site-nav .submenu a[aria-current="page"] { color: var(--accent-ink); font-weight: 500; }
.site-nav .submenu a.is-featured { font-weight: 600; }
.site-nav .submenu .submenu-divider { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); content: "";
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .site-nav { gap: 16px; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"], .site-nav > ul > li > a.is-current { border-bottom-color: var(--line); color: var(--accent-ink); }
  .has-menu { display: block; }
  .submenu-toggle { display: none; }
  .site-nav .submenu {
    display: flex; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; box-shadow: none; background: transparent;
  }
  .site-nav .submenu a { padding: 12px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .site-nav .submenu a:hover { background: transparent; }
  .site-nav .submenu .submenu-divider { border-top: 0; margin-top: 0; padding-top: 0; }
  .site-nav .btn { margin-top: 16px; text-align: center; }
  .header-inner { position: relative; }
  .brand img { width: 140px; }
}
@media (max-width: 900px) {
  html:not(.js) .site-nav { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

/* Buttons and links */
.btn {
  display: inline-block; background: var(--charcoal); color: var(--on-dark);
  text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 14px 24px; border-radius: var(--radius); border: 1px solid var(--charcoal);
  min-height: 44px; line-height: 1.2; cursor: pointer; font-family: var(--sans);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 10px 18px; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.on-dark .btn:hover { background: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--accent); padding: 10px 0 2px;
}
.link-arrow::after { content: "\2192"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--on-dark); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }

/* Sections */
.section { padding: var(--section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--tint); border-top: 0; }
.section.tint + .section { border-top: 0; }
.on-dark { background: var(--charcoal); color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark p { color: var(--on-dark-muted); }
.section.on-dark { border-top: 0; }
.section.on-dark + .section { border-top: 0; }

.eyebrow {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px;
}
.on-dark .eyebrow { color: #d7c09a; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.on-dark .lead { color: var(--on-dark-muted); }
.prose { max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }

/* Hero */
.hero { padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 9vw, 112px); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 18ch; }
.hero.page-hero h1 { max-width: 22ch; }
.hero .lead { margin-top: 8px; }
.hero-rule { width: 64px; height: 2px; background: var(--accent); margin: 0 0 28px; border: 0; }

.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* Grids and cards */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }

.item { border-top: 2px solid var(--charcoal); padding-top: 18px; }
.item h3 { font-size: 1.2rem; }
.item p { color: var(--muted); margin: 0; }
.on-dark .item { border-top-color: #d7c09a; }
.on-dark .item p { color: var(--on-dark-muted); }

/* Featured company blocks */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px);
  padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-name { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); line-height: 1.1; margin: 0 0 10px; }
.feature-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (max-width: 760px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.company h3 { font-size: 1.6rem; }
.company .actions { margin-top: 18px; }
.links-inline { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 8px; }

/* Lists of capabilities and examples */
.defs { display: grid; gap: 0; margin: 0; }
.defs > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.3; }
.defs dt small { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--accent-ink); margin-top: 6px; letter-spacing: 0.02em; }
.defs dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .defs > div { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; max-width: 46rem; }
.note strong { color: var(--ink); }

/* Focus page rows */
.focus-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.focus-row .meta { font-size: 0.95rem; color: var(--muted); margin-top: 22px; }
.focus-row .meta strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .focus-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Founders */
.founder { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding: clamp(32px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.founder:last-child { border-bottom: 1px solid var(--line); }
.monogram {
  width: 120px; height: 120px; border-radius: 50%; background: var(--charcoal); color: var(--on-dark);
  display: grid; place-items: center; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0.04em;
}
img.monogram { object-fit: cover; background: var(--line); }
.founder h3 { font-size: 1.6rem; margin-bottom: 4px; }
.founder .role { color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
@media (max-width: 640px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .monogram { width: 80px; height: 80px; font-size: 1.5rem; }
}

/* CTA band */
.cta { text-align: left; }
.cta h2 { max-width: 20ch; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field label { display: block; font-weight: 500; font-size: 0.95rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid #cfc9bd; border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field-error { color: #9b2c2c; font-size: 0.9rem; margin-top: 6px; display: none; }
.field.invalid input { border-color: #9b2c2c; }
.field.invalid .field-error { display: block; }
.form-note { font-size: 0.92rem; color: var(--muted); }
.form-status { font-size: 0.95rem; padding: 14px 16px; border-radius: var(--radius); background: var(--tint); display: none; }
.form-status.show { display: block; }
.form-status.is-error { background: #fbeaea; color: #9b2c2c; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box:empty { display: none; }

.office address { font-style: normal; line-height: 1.7; }
.office h2 { font-size: 1.5rem; }
.office dl { margin: 20px 0 0; }
.office dt { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.office dd { margin: 0 0 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer-about img { width: 150px; margin-bottom: 20px; }
.footer-about p { max-width: 30rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.footer-links li { padding: 6px 0; break-inside: avoid; }
.footer-base { border-top: 1px solid #34363a; padding-top: 20px; padding-bottom: 28px; font-size: 0.85rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: 96px; }

/* Small label above an item heading (Home focus grid, How We Build partners). */
.item .tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }
.on-dark .item .tag { color: #d7c09a; }

/* Numbered stages (How We Build). */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 24px;
  padding: clamp(24px, 4vw, 36px) 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); grid-row: span 2;
  font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1.1;
}
.steps h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4em; }
.steps p { color: var(--muted); max-width: 46rem; margin: 0; }
@media (max-width: 640px) { .steps li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; } .steps li::before { font-size: 1.5rem; } }

/* Partner routes: one card per route, each with its own action. */
.route { display: flex; flex-direction: column; }
.route .actions { margin-top: auto; padding-top: 20px; }

/* Full-width company card (Acture Sports under the featured pair). */
.company-wide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 4vw, 48px); margin-top: clamp(20px, 3vw, 32px); }
.company-wide .actions { margin-top: 12px; }
@media (max-width: 760px) { .company-wide { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Leadership team cards (About), below the founders. */
.leader { display: flex; flex-direction: column; }
.leader h3 { font-size: 1.35rem; margin: 18px 0 4px; }
.leader .role { color: var(--accent-ink); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.leader p { color: var(--muted); }
.leader .link-arrow { margin-top: auto; align-self: flex-start; }
.monogram-sm { width: 64px; height: 64px; font-size: 1.3rem; }

/* Company logos: portfolio cards, the Home feature rows and profile heroes.
   Logos are each company's own artwork; sized by height so wordmarks of
   different proportions sit evenly. */
.company-logo { height: 40px; width: auto; max-width: 100%; align-self: flex-start; object-fit: contain; margin-bottom: 18px; }
.feature-logo { height: 56px; width: auto; }
.hero-logo { height: 52px; width: auto; margin-bottom: 28px; }
@media (max-width: 640px) { .feature-logo { height: 44px; } .hero-logo { height: 44px; } }

/* LinkedIn links carry the LinkedIn mark, shaded to the text colour around
   them (grey on light backgrounds, warm grey in the footer). */
a[href*="linkedin.com"] { display: inline-flex; align-items: center; gap: 8px; }
a[href*="linkedin.com"]::before {
  content: ""; flex: none; width: 1.05em; height: 1.05em; background-color: var(--muted);
  -webkit-mask: var(--linkedin-mark) center / contain no-repeat; mask: var(--linkedin-mark) center / contain no-repeat;
}
.site-footer a[href*="linkedin.com"]::before { background-color: var(--on-dark-muted); }
:root {
  --linkedin-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 4.892v6.249zM5.337 7.433a2.062 2.062 0 1 1 0-4.125 2.062 2.062 0 0 1 0 4.125zM7.119 20.452H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}
/* The Tuxuri artwork carries more white space than the others; size it up so
   the three logos read at a similar weight. */
.company-logo[src$="/tuxuri.png"] { height: 54px; margin-bottom: 4px; }
.feature-logo[src$="/tuxuri.png"] { height: 72px; }
.hero-logo[src$="/tuxuri.png"] { height: 68px; }
@media (max-width: 640px) { .feature-logo[src$="/tuxuri.png"], .hero-logo[src$="/tuxuri.png"] { height: 58px; } }

/* Wide wordmarks sit a little lower so all six read at a similar size. */
.company-logo[src$="/acture-sports.svg"] { height: 26px; margin: 7px 0 25px; }
.company-logo[src$="/berrypay.png"] { height: 34px; margin: 3px 0 21px; }
/* Data Sukan's wordmark is drawn for dark backgrounds ("SUKAN" is white), so
   it sits on a dark tile, as on its own site. */
.logo-tile { display: inline-flex; align-self: flex-start; background: var(--ink); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 18px; }
.logo-tile .company-logo { height: 24px; margin: 0; }
