@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f1b2d;
  --surface: #e4e8ee;
  --shade-dark: #b9c3d1;
  --shade-light: #ffffff;
  --text: #13202f;
  --muted: #475366;
  --on-glass: #f4f6f3;
  --on-glass-muted: #d3dae4;
  --accent: #e3a72f;
  --accent-deep: #6f4b00;

  --glass-bg: rgba(13, 24, 41, 0.5);
  --glass-edge: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --space-section: clamp(64px, 9vw, 112px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  letter-spacing: 0.006em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
p, dd { text-wrap: pretty; }
ul[role="list"], .site-nav ul, .site-footer__links { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Materials ------------------------------------------------------------- */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 50px rgba(4, 10, 20, 0.28);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  color: var(--on-glass);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(13, 24, 41, 0.88); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(13, 24, 41, 0.92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.raised {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 12px 12px 28px var(--shade-dark), -12px -12px 28px var(--shade-light);
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 3px 3px 6px var(--shade-dark), inset -3px -3px 6px var(--shade-light);
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.3;
  white-space: nowrap;
}

/* Type ------------------------------------------------------------------ */

.display {
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.125rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.heading {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.heading--large { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.25rem); }

.prose { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}
.button:active { transform: translateY(1px); }
.button--accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(227, 167, 47, 0.28);
}
.button--accent:hover { background: #efb544; }
.button--glass {
  color: var(--on-glass);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.button--glass:hover { background: rgba(255, 255, 255, 0.18); }

/* Header ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 12px 0 auto 0;
  z-index: 10;
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  --glass-bg: rgba(13, 24, 41, 0.62);
  --glass-blur: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.brand__mark { width: 28px; height: 28px; }
.brand__gap { stroke: var(--accent); fill: none; }
.brand__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }

.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--on-glass-muted);
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.site-nav a:hover { color: var(--on-glass); background: rgba(255, 255, 255, 0.1); }

@media (max-width: 520px) {
  html { scroll-padding-top: 140px; } /* the bar wraps to two rows here */
  .site-header__bar { border-radius: 24px; padding: 6px 8px 6px 14px; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; }
  .site-nav a { padding: 0 10px; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 960px);
  padding-top: 132px;
  padding-bottom: clamp(24px, 5vw, 64px);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  z-index: -2;
}

/* Grade the photo toward the brand navy and keep the panel side darker. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 27, 45, 0.45) 0%, rgba(15, 27, 45, 0) 28%),
    linear-gradient(90deg, rgba(15, 27, 45, 0.55) 0%, rgba(15, 27, 45, 0.15) 60%, rgba(15, 27, 45, 0.05) 100%);
}

.hero__body { position: relative; }

.hero__panel {
  max-width: 600px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
}

.hero__lede {
  max-width: 30em;
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--on-glass-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
}

/* Wide screens: widen the photo past the right edge so the opening of the gate sits beside the panel. */
@media (min-width: 880px) {
  .hero__photo { inset: 0 auto 0 0; width: 122%; max-width: none; object-position: 0 35%; }
}

@media (max-width: 879px) {
  .hero { min-height: 100svh; }
  .hero__photo { object-position: 50% 30%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(15, 27, 45, 0.35) 0%, rgba(15, 27, 45, 0) 30%, rgba(15, 27, 45, 0.35) 100%);
  }
}

/* One moment on load: the camera settles on the gate and the panel arrives.
   Transform only, so the headline is readable even where animations never run. */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: approach 2200ms var(--ease-out) both; }
  .hero__panel { animation: arrive 900ms var(--ease-out) 250ms both; }
  @keyframes approach { from { transform: scale(1.06); } to { transform: scale(1); } }
  @keyframes arrive { from { transform: translateY(16px); } to { transform: none; } }
}

/* Sections -------------------------------------------------------------- */

.section { padding-block: var(--space-section); }
.section--tight { padding-top: 0; }
.section__title { margin-bottom: clamp(28px, 4vw, 44px); }

.about { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 880px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}

/* Capabilities: one raised panel, rows separated by a carved groove. */
.capabilities { display: grid; padding: clamp(8px, 2vw, 16px) clamp(20px, 4vw, 48px); }

.capability {
  display: grid;
  gap: 8px;
  padding-block: clamp(20px, 3vw, 30px);
}
.capability + .capability {
  border-top: 1px solid rgba(15, 27, 45, 0.09);
  box-shadow: inset 0 1px 0 var(--shade-light);
}
.capability__name {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.capability__text { color: var(--muted); max-width: 38em; }

@media (min-width: 880px) {
  .capability { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: baseline; }
}

/* Work */
.work { display: grid; gap: 28px; }
.work__item { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-md); }
.work__item p { color: var(--muted); }
.work__top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.work__area { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

@media (min-width: 900px) {
  .work { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); }
}

/* Contact: the same gate, softened, behind a glass panel. */
.contact {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.contact::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: url("/assets/img/gapura-soft.webp") center 70% / cover no-repeat;
  filter: blur(14px) saturate(115%);
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 27, 45, 0.25), rgba(15, 27, 45, 0.6));
}

.contact__panel {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
}
.contact__body { max-width: 34em; color: var(--on-glass-muted); }
.contact__body > * + * { margin-top: 24px; }

.contact__email {
  display: inline-block;
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2.125rem);
  font-weight: 620;
  color: var(--on-glass);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.contact__email:hover { color: var(--accent); }
.contact__soon { color: var(--on-glass); font-weight: 560; }

@media (min-width: 880px) {
  .contact__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; }
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-glass-muted);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer__links a { display: inline-block; padding-block: 10px; text-decoration: none; }
.site-footer__links a:hover { color: var(--on-glass); text-decoration: underline; text-underline-offset: 0.25em; }

/* 404 ------------------------------------------------------------------- */

.simple {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  padding-block: var(--space-section);
}
.simple .button--accent { box-shadow: 8px 8px 18px var(--shade-dark), -8px -8px 18px var(--shade-light); }

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

@media print {
  .site-header, .hero__photo, .skip-link, .contact::before { display: none; }
  .hero, .contact, .site-footer { background: none; color: #000; }
  .glass, .raised { background: none; box-shadow: none; border: 1px solid #999; color: #000; }
}
