/* =========================================================
   Igugu Technologies, Hero (home page only)
   On landscape screens (>= 900px wide) the 1498 x 1050 design is
   reproduced 1:1 and scaled to fit the whole window, no scrolling.
   Every measurement below is in design pixels, multiplied by
   --u (one design pixel at the current window size).

   Scoped under .hero / .hero-stage throughout so it only affects
   the home page's hero, never the rest of the site.
   ========================================================= */

@property --u {
  syntax: "<length>";
  inherits: true;
  initial-value: 1px;
}

:root {
  --navy: #14213a;
  --navy-ink: #111b2f;
  --navy-hover: #1d2d4b;
  --gold: #a8875e;
  --gold-line: #ad8f68;
  --gold-icon: #a3825a;
  --text: #5a5c62;
  --chip-text: #34363c;
  --label: #1a2133;
  --bg: #f7f2ee;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

.hero * ,
.hero *::before,
.hero *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hero a:not(.btn) {
  color: inherit;
  text-decoration: none;
}

.hero ul {
  list-style: none;
}

.hero svg {
  display: block;
}

.hero {
  background: var(--bg);
  color: var(--navy-ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero-stage {
  container-type: inline-size;
  overflow-x: clip;
}

/* ---------- shared components (scoped to the hero) ---------- */

/* The site-wide .btn is inline-block, fine for text-only buttons, but
   these buttons pair text with an icon and need flex centering, lost
   when we deferred to the global button styles instead of redefining
   them here. */
.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.hero .btn .arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}

.hero .btn-outline .arrow {
  color: var(--gold);
}

.hero .btn:hover .arrow {
  transform: translateX(3px);
}

.hero .btn:focus-visible,
.hero .nav-link:focus-visible,
.hero .brand:focus-visible,
.hero .nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero .nav-link {
  position: relative;
  color: var(--navy-ink);
  font-variation-settings: "opsz" 32;
  transition: color .2s ease;
}

/* Tapered gold stroke under the active link (thin on the left, fuller on the right). */
.hero .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  background: linear-gradient(90deg, #bea284 0%, #ad8f68 45%, #a4855e 100%);
  clip-path: polygon(3% 25%, 97% 25%, 100% 50%, 97% 100%, 39% 100%, 36% 75%, 3% 75%, 0 50%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}

.hero .nav-link.is-active {
  font-weight: 700;
}

.hero .nav-link.is-active::after,
.hero .nav-link:hover::after {
  transform: scaleX(1);
}

.hero .chip {
  display: flex;
  align-items: center;
  border: 1px solid #ddd5cd;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
  color: var(--chip-text);
  font-weight: 500;
  font-variation-settings: "opsz" 32;
  white-space: nowrap;
  transition: border-color .25s ease, background-color .25s ease;
}

.hero .chip:nth-child(1) {
  color: #55575d;
  letter-spacing: -.047em;
}

.hero .chip:nth-child(2) {
  letter-spacing: -.025em;
}

.hero .chip:nth-child(3) {
  letter-spacing: -.025em;
}

.hero .chip:hover {
  border-color: #d3c3b0;
  background: rgba(255, 255, 255, .55);
}

.hero .chip-icon {
  flex: none;
  color: var(--gold-icon);
}

.hero .eyebrow {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}

.hero .headline {
  font-family: var(--serif);
  font-weight: 640;
  font-variation-settings: "opsz" 60;
  color: #14233d;
  text-shadow: 0 0 1px rgba(255, 255, 255, .9);
}

.hero .hl {
  display: block;
}

.hero .hl-dot {
  color: var(--gold);
}

.hero .lede {
  color: var(--text);
  font-variation-settings: "opsz" 20;
}

.hero .vlabel {
  position: absolute;
  color: var(--label);
  font-weight: 600;
  font-variation-settings: "opsz" 14;
  text-transform: uppercase;
}

.hero .nav-toggle {
  display: none;
}

/* =========================================================
   DESKTOP, exact reproduction of the design
   ========================================================= */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {

  /* The stage: exactly one screen tall, never scrolls. */
  .hero-stage {
    display: grid;
    place-items: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    container-type: size;
    background: var(--bg);
  }

  /* The design, scaled so all of it fits the window, centred. */
  .hero {
    --u: min(100cqw / 1498, 100cqh / 1050);
    position: relative;
    isolation: isolate;
    width: calc(1498 * var(--u));
    height: calc(1050 * var(--u));
  }

  /* Background plate, extended 700 px left/right and 240 px top/bottom
     beyond the design so any spare room around it blends seamlessly. */
  .hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: calc(-700 * var(--u));
    top: calc(-240 * var(--u));
    width: calc(2898 * var(--u));
    height: calc(1530 * var(--u));
    background: url("/hero-plate-wide.jpg") 0 0 / 100% 100% no-repeat;
    pointer-events: none;
  }

  /* ----- brand ----- */
  .hero .brand {
    position: absolute;
    left: calc(52 * var(--u));
    top: calc(25 * var(--u));
    width: calc(336 * var(--u));
    height: calc(52 * var(--u));
  }

  .hero .brand-mark {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(52 * var(--u));
    height: calc(52 * var(--u));
    color: #9c8263;
  }

  .hero .brand-name {
    position: absolute;
    left: calc(64 * var(--u));
    top: calc(7.1 * var(--u));
    font-family: var(--serif);
    font-size: calc(34 * var(--u));
    line-height: 1;
    white-space: nowrap;
  }

  .hero .brand-strong {
    font-weight: 700;
    color: var(--navy-ink);
  }

  .hero .brand-light {
    font-size: .95em;
    font-weight: 470;
    font-variation-settings: "opsz" 60;
    letter-spacing: -.008em;
    color: #a3845c;
  }

  /* ----- navigation ----- */
  .hero .nav-list {
    position: absolute;
    left: calc(811.6 * var(--u));
    top: calc(42 * var(--u));
    display: flex;
    gap: calc(44 * var(--u));
  }

  .hero .nav-link {
    display: block;
    font-size: calc(18.5 * var(--u));
    line-height: 1;
  }

  .hero .nav-link::after {
    top: calc(31 * var(--u));
    width: calc(36 * var(--u));
    height: calc(4 * var(--u));
  }

  .hero .nav-cta {
    position: absolute;
    left: calc(1277 * var(--u));
    top: calc(25 * var(--u));
    width: calc(192 * var(--u));
    height: calc(52 * var(--u));
    font-size: calc(17 * var(--u));
    font-variation-settings: "opsz" 14;
  }

  /* ----- copy ----- */
  .hero .eyebrow {
    position: absolute;
    left: calc(52 * var(--u));
    top: calc(227.2 * var(--u));
    font-size: calc(16 * var(--u));
    line-height: 1;
    letter-spacing: .106em;
    white-space: nowrap;
  }

  .hero .headline {
    position: absolute;
    left: calc(52 * var(--u));
    top: calc(268.7 * var(--u));
    font-size: calc(56.6 * var(--u));
    line-height: calc(69 * var(--u));
    white-space: nowrap;
  }

  .hero .hl-1 {
    letter-spacing: .005em;
    word-spacing: .02em;
  }

  .hero .hl-2 {
    position: relative;
    top: calc(-2 * var(--u));
  }

  .hero .lede {
    position: absolute;
    left: calc(52.7 * var(--u));
    top: calc(507 * var(--u));
    font-size: calc(17 * var(--u));
    line-height: calc(31 * var(--u));
    white-space: nowrap;
  }

  .hero .actions {
    position: absolute;
    left: calc(52 * var(--u));
    top: calc(645 * var(--u));
    display: flex;
    gap: calc(20 * var(--u));
  }

  .hero .btn-hero {
    height: calc(57 * var(--u));
    font-size: calc(15 * var(--u));
  }

  .hero .btn-hero.btn-primary {
    width: calc(188 * var(--u));
    gap: calc(9 * var(--u));
  }

  .hero .btn-hero.btn-outline {
    width: calc(191 * var(--u));
    gap: calc(12.5 * var(--u));
    border-width: calc(1.5 * var(--u));
    letter-spacing: -.012em;
  }

  .hero .btn-hero .arrow {
    width: calc(13 * var(--u));
    height: calc(11 * var(--u));
  }

  .hero .chips {
    position: absolute;
    left: calc(52 * var(--u));
    top: calc(743 * var(--u));
    display: flex;
    gap: calc(11 * var(--u));
  }

  .hero .chip {
    height: calc(44 * var(--u));
    padding-left: calc(16 * var(--u));
    gap: calc(7 * var(--u));
    font-size: calc(13 * var(--u));
    border-width: calc(1 * var(--u));
  }

  .hero .chip:nth-child(1) { width: calc(132 * var(--u)); }
  .hero .chip:nth-child(2) { width: calc(139 * var(--u)); padding-left: calc(15 * var(--u)); }
  .hero .chip:nth-child(3) { width: calc(177 * var(--u)); gap: calc(9 * var(--u)); }

  .hero .chip-icon {
    width: calc(15 * var(--u));
    height: calc(15 * var(--u));
  }

  .hero .chip-icon--heart {
    width: calc(17 * var(--u));
  }

  .hero .chip-icon--bars {
    width: calc(14 * var(--u));
  }

  /* ----- visual labels (artwork itself is in the plate) ----- */
  .hero .visual {
    position: absolute;
    left: calc(500 * var(--u));
    top: calc(120 * var(--u));
    width: calc(998 * var(--u));
    height: calc(880 * var(--u));
    pointer-events: none;
  }
}

/* The visual box is its own coordinate system (998 x 880 design px),
   shared by the desktop overlay and the mobile crop. */
.hero .visual {
  container-type: inline-size;
}

.hero .vlabel {
  --vu: calc(100cqw / 998);
  font-size: calc(13 * var(--vu));
  line-height: calc(20 * var(--vu));
  white-space: nowrap;
}

.hero .vlabel--love {
  left: calc(810 * var(--vu));
  top: calc(179.1 * var(--vu));
}

.hero .vlabel--pro {
  left: calc(18 * var(--vu));
  top: calc(721.1 * var(--vu));
  width: calc(200 * var(--vu));
  text-align: center;
}

.hero .vlabel--comm {
  left: calc(823 * var(--vu));
  top: calc(744.1 * var(--vu));
}

/* =========================================================
   TABLET & MOBILE, same content, stacked
   ========================================================= */
@media not all and (min-width: 900px) and (min-aspect-ratio: 1/1) {

  /* Flex column so the visual can be moved up front, right after the
     header, via `order` -- while keeping it last in the actual HTML so
     screen readers/SEO still meet the heading and copy first. */
  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .hero .site-header {
    order: 0;
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
  }

  .hero .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .hero .brand-mark {
    width: 40px;
    height: 40px;
    flex: none;
    color: #a08867;
  }

  .hero .brand-name {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1;
    white-space: nowrap;
  }

  .hero .brand-strong {
    font-weight: 700;
    color: var(--navy-ink);
  }

  .hero .brand-light {
    font-weight: 400;
    color: var(--gold);
  }

  .hero .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid #ddd3c9;
    border-radius: 999px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
  }

  .hero .nav-toggle span {
    display: block;
    height: 1.6px;
    border-radius: 2px;
    background: var(--navy-ink);
    transition: transform .3s ease, opacity .2s ease;
  }

  .hero .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .hero .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hero .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .hero .nav {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    padding: 12px 20px 20px;
    border: 1px solid #e6ddd4;
    border-radius: 20px;
    background: #fbf8f5;
    box-shadow: 0 24px 48px -24px rgba(20, 33, 58, .35);
  }

  .hero .nav.is-open {
    display: block;
  }

  .hero .nav-list {
    display: flex;
    flex-direction: column;
  }

  .hero .nav-link {
    display: inline-block;
    padding: 14px 0 12px;
    font-size: 17px;
  }

  .hero .nav-link::after {
    bottom: 6px;
    width: 30px;
    height: 3px;
  }

  .hero .nav-cta {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    font-size: 16px;
  }

  .hero .hero-copy {
    order: 2;
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 20px 20px 8px;
    margin-top: 0;
  }

  .hero .eyebrow {
    font-size: 13px;
    letter-spacing: .16em;
  }

  .hero .headline {
    margin-top: 18px;
    font-size: clamp(34px, 8.6vw, 56px);
    line-height: 1.2;
    letter-spacing: -.005em;
  }

  .hero .hl {
    display: inline;
  }

  .hero .br-desk {
    display: none;
  }

  .hero .lede {
    margin-top: 20px;
    font-size: 15.5px;
    line-height: 1.85;
  }

  .hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
  }

  .hero .btn-hero {
    height: 54px;
    padding: 0 26px;
    gap: 10px;
    font-size: 15px;
  }

  .hero .btn-hero .arrow {
    width: 13px;
    height: 11px;
  }

  .hero .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
  }

  .hero .chip {
    height: 42px;
    padding: 0 17px 0 16px;
    gap: 8px;
    font-size: 13.5px;
  }

  .hero .chip-icon {
    width: 15px;
    height: 15px;
  }

  .hero .chip-icon--heart {
    width: 17px;
  }

  .hero .chip-icon--bars {
    width: 14px;
  }

  .hero .visual {
    order: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 998px;
    margin: 0 auto;
    aspect-ratio: 998 / 880;
    /* same image as desktop, cropped to the artwork (x 1200-2198, y 360-1240) */
    background: url("/hero-plate-wide.jpg") 63.158% 55.385% / 290.38% auto no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  }

  .hero .vlabel {
    font-size: max(8px, calc(13 * var(--vu)));
    line-height: max(12px, calc(20 * var(--vu)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero *,
  .hero *::before,
  .hero *::after {
    transition: none !important;
  }
}
