/* AK Homecraft — shared foundations: fonts, tokens, buttons, logo */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0e1a1f;
  --ink-2: #15262d;
  --ink-3: #1f363f;
  --brass: #d8a548;
  --brass-light: #f6dc9a;
  --brass-deep: #a87722;
  --sage: #6f8f73;
  --sage-soft: #e7eee6;
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --card: #ffffff;
  --line: #e4ddd0;
  --text: #17252b;
  --muted: #5a696e;
  --on-dark: #f4f1ea;
  --on-dark-muted: #a9b7ba;
  --danger: #b3261e;
  --ok: #2e7d4f;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 26px;
  --shadow-s: 0 1px 2px rgba(14, 26, 31, .06), 0 2px 8px rgba(14, 26, 31, .05);
  --shadow: 0 2px 6px rgba(14, 26, 31, .06), 0 14px 34px rgba(14, 26, 31, .10);
  --shadow-l: 0 30px 70px rgba(14, 26, 31, .22);
  --gutter: clamp(18px, 4.5vw, 40px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 26, 31, .22); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--brass { --btn-bg: linear-gradient(135deg, #f3d488 0%, #d8a548 55%, #c08f30 100%); --btn-fg: #1b1404; background: var(--btn-bg); }
.btn--brass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn--brass:hover::after, .btn--brass:focus-visible::after { animation: btn-shine .9s ease; }
@keyframes btn-shine { to { transform: translateX(120%); } }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 10px 24px rgba(14, 26, 31, .15); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--shadow-s); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- AK logo ---------- */
.ak-brand {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  -webkit-tap-highlight-color: transparent; perspective: 600px;
}
.ak-mark {
  --size: 46px; --rx: 0deg; --ry: 0deg;
  width: var(--size); height: var(--size); flex: none; display: block;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease, filter .3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .28));
  will-change: transform;
}
.ak-mark svg { width: 100%; height: 100%; overflow: visible; }
.ak-mark .ak-stroke { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ak-mark .ak-window { transform-box: fill-box; transform-origin: center; }
.ak-mark .ak-shine { transform: translateX(-90px); }

/* intro: letters draw in, window pops, gleam sweeps */
.ak-mark.is-intro .ak-a { animation: ak-draw .7s cubic-bezier(.6, .1, .2, 1) both; }
.ak-mark.is-intro .ak-k1 { animation: ak-draw .45s cubic-bezier(.6, .1, .2, 1) .35s both; }
.ak-mark.is-intro .ak-k2 { animation: ak-draw .4s cubic-bezier(.6, .1, .2, 1) .6s both; }
.ak-mark.is-intro .ak-k3 { animation: ak-draw .4s cubic-bezier(.6, .1, .2, 1) .75s both; }
.ak-mark.is-intro .ak-window { animation: ak-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
.ak-mark.is-intro .ak-shine { animation: ak-sweep 1s ease 1.2s both; }
/* replay: gleam + window lights up */
.ak-mark.is-shining .ak-shine { animation: ak-sweep .85s ease both; }
.ak-mark.is-shining .ak-window { animation: ak-glow .85s ease both; }
.ak-brand:hover .ak-mark, .ak-mark.is-active { filter: drop-shadow(0 6px 16px rgba(216, 165, 72, .45)); }

@keyframes ak-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ak-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ak-sweep { from { transform: translateX(-90px); } to { transform: translateX(170px); } }
@keyframes ak-glow {
  0%, 100% { filter: none; transform: scale(1); }
  45% { filter: drop-shadow(0 0 6px #fff3c4) drop-shadow(0 0 14px #f6dc9a); transform: scale(1.18); }
}

.ak-word {
  font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1;
  display: inline-flex; flex-direction: column; gap: 5px; color: inherit;
}
.ak-word__name b {
  font-weight: 800;
  background: linear-gradient(100deg, #c9932f 0%, #f6dc9a 30%, #d8a548 50%, #f6dc9a 70%, #c9932f 100%);
  background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .9s ease;
}
.ak-brand:hover .ak-word__name b, .ak-brand:focus-visible .ak-word__name b { background-position: 0 0; }
.ak-word__tag {
  font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .68;
  white-space: nowrap;
}

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