@font-face {
  font-family: IranSans;
  src: url("assets/iransansx.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #33518f;
  --navy: #142b4b;
  --muted: #4f6075;
  --paper: #f9faf8;
  --line: #dde4eb;
  --blue-tint: #ecf2fb;
  --yellow: #fbd66a;
  font-family: IranSans, Tahoma, sans-serif;
  font-feature-settings: "ss01" 1;
  background: var(--paper);
  color: var(--navy);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.8; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ad7500; outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 24px; }

.wrap { width: min(1184px, calc(100% - 72px)); margin-inline: auto; }
.top { color: #fff; background: var(--brand); }
.top-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand { grid-area: 1 / 3; justify-self: end; }
.top nav { grid-area: 1 / 2; }
.brand img { width: 83px; height: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 570;
  text-decoration: none;
}
nav a:hover, .instagram:hover { text-decoration: underline; text-underline-offset: .25em; }
.hero {
  display: grid;
  grid-template-columns: 1.09fr 1fr;
  grid-template-areas: "copy art" "terms art";
  grid-template-rows: 1fr auto;
  column-gap: clamp(32px, 5vw, 76px);
  row-gap: 35px;
  padding-block: 60px 66px;
}
.hero-copy { grid-area: copy; align-self: center; }
.kicker { color: var(--brand); font-size: .9375rem; font-weight: 720; }
.hero h1 {
  margin-block: 12px 14px;
  font-weight: 860;
  font-size: clamp(2.45rem, 4.05vw, 4rem);
  line-height: 1.42;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 10px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 720;
  text-decoration: none;
  text-align: center;
}
.primary { color: #fff; background: var(--brand); }
.primary:hover { background: #284478; }
.secondary { color: var(--brand); border-color: #c7d2e2; }
.secondary:hover { background: var(--blue-tint); }

.terms { grid-area: terms; }
.terms > h2 { font-size: 1rem; margin-bottom: 8px; }
.terms-cards {
  --terms-gap: 12px;
  --card-width: calc((100% - var(--terms-gap)) / 2);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--terms-gap);
  position: relative;
  isolation: isolate;
}
.terms-cards::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: white;
  z-index: -2;
}
.terms-cards::after {
  content: "";
  position: absolute;
  inset-block: 0;
  right: 0;
  width: var(--card-width);
  border-radius: 13px;
  background: #edf3fd;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .terms-cards::after { animation: shipping-highlight 9s ease-in-out infinite; }
}
@keyframes shipping-highlight {
  0%, 32%, 100% { transform: translateX(0); }
  47%, 82% { transform: translateX(calc(-100% - var(--terms-gap))); }
}
.terms article {
  position: relative;
  border: 1px solid #d6e1ef;
  border-radius: 13px;
  padding: 10px 12px 11px;
  overflow-wrap: break-word;
}
.terms h3 { font-size: 1.05rem; padding-inline-end: 32px; }
.terms-icon {
  position: absolute;
  inset-inline-end: 10px;
  top: 11px;
  color: var(--brand);
  background: #e3ecfa;
  border-radius: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.terms strong { display: block; margin-top: 3px; color: #244476; font-size: .9375rem; }
.terms p { margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.65; }

.hero-art {
  grid-area: art;
  align-self: stretch;
  min-height: 440px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 46% 31%, #547dbb 0%, transparent 64%),
    linear-gradient(160deg, #36558f 10%, #263f75 68%, #1d3462 100%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% 12% auto;
  aspect-ratio: 1.26;
  border: 1px solid #c3d5f534;
  border-radius: 50%;
  transform: rotate(-19deg);
  z-index: -1;
}
.shelf {
  position: absolute;
  inset: 4% 7.5% 12%;
}
.shelf > * { position: absolute; }
.shelf > img { width: 36%; filter: drop-shadow(2px 8px 14px #142743a0); }
.hero-pro { left: 0; bottom: 11%; rotate: -7deg; transform-origin: 50% 92%; }
.hero-carbon { left: 64%; bottom: 12%; rotate: 8deg; transform-origin: 50% 92%; }
.hero-multi { z-index: 1; filter: drop-shadow(5px 13px 10px #10244199); }
.hero-multi, .hero-lid { bottom: 0; width: 53%; left: 23.5%; aspect-ratio: 920 / 767; }
.bucket-cut, .hero-bucket-body, .hero-lid img {
  width: 100%;
  height: auto;
  clip-path: polygon(
    .45% 10%, 1.1% 6.1%, 4% 4.4%, 11% 1.5%, 20% .35%, 85.5% .35%,
    89.4% 1.15%, 94.6% 2.9%, 98.45% 4.8%, 99.35% 8.8%, 99.65% 9.8%,
    99.65% 20.7%, 96.55% 21.65%, 92.65% 94.75%, 91.35% 97.2%, 90% 98.25%,
    88% 98.75%, 11.7% 99.35%, 9.7% 98.75%, 8.45% 97.4%, 3.15% 22.75%,
    .45% 21.6%
  );
}
.hero-bucket-body {
  clip-path: polygon(3.7% 15%, 96.9% 15%, 96.55% 21.65%, 92.65% 94.75%, 91.35% 97.2%,
    90% 98.25%, 88% 98.75%, 11.7% 99.35%, 9.7% 98.75%, 8.45% 97.4%, 3.15% 22.75%);
}
.hero-lid { z-index: 3; transform-origin: 50% 12%; }
.hero-lid img {
  clip-path: polygon(
    .45% 10%, 1.1% 6.1%, 4% 4.4%, 11% 1.5%, 20% .35%, 85.5% .35%,
    89.4% 1.15%, 94.6% 2.9%, 98.45% 4.8%, 99.35% 8.8%, 99.65% 9.8%,
    99.65% 20.6%, 91% 21.5%, 68% 22.1%, 33% 22.55%, 12% 22.42%, 2.9% 22%, .45% 21.6%
  );
}
.shelf > .hero-grains { inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-art.is-floating .hero-lid { filter: drop-shadow(0 3px 4px #10244155); }
.hero-art.is-floating .shelf::before {
  content: "";
  position: absolute;
  inset: auto 20% -5%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #081d4c8a, transparent 67%);
  opacity: calc(.8 - var(--weight, 0));
  transform: scaleX(calc(1 + var(--weight, 0) * .4));
}

.shelf-reflection {
  position: absolute;
  z-index: -1;
  bottom: 5%;
  left: 6%;
  right: 6%;
  height: 21%;
  background: radial-gradient(ellipse at center, #9dbff058, transparent 66%);
}
@media (prefers-reduced-motion: no-preference) {
  .shelf-reflection { animation: shelf-light 8s ease-in-out infinite alternate; }
}
@keyframes shelf-light {
  from { opacity: .55; transform: translateX(-6%); }
  to { opacity: 1; transform: translateX(6%); }
}

.products { padding-bottom: 65px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2, .contact h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.5; font-weight: 840; }
.section-heading p { margin-top: 3px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product {
  --stage: #e7eee8;
  --tag: #375e42;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product.carbon { --stage: #e7edf6; --tag: #314a6b; }
.product.multi { --stage: #f5edda; --tag: #71521d; }
.product-visual {
  display: grid;
  place-items: center;
  border-radius: 13px 13px 0 0;
  background: radial-gradient(ellipse at 50% 34%, #ffffff7a, transparent 68%), var(--stage);
  padding: 20px 16px;
  height: clamp(205px, 24vw, 290px);
  overflow: hidden;
}
.product-visual > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 8px 7px #142e4e32); }
.bucket-stage { width: min(89%, 265px); aspect-ratio: 920 / 767; filter: drop-shadow(1px 9px 8px #25201e37); }
.product-visual:hover > img, .product-visual:hover .bucket-stage { transform: translateY(-3px); }
.product-visual > img, .bucket-stage { transition: transform 160ms ease; }
.product-body { padding: 18px 20px; display: flex; flex-direction: column; align-items: start; flex: 1; }
.product-type { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .875rem; color: var(--muted); }
.product-type span:first-child { font: 750 .8rem/1.5 IranSans, sans-serif; letter-spacing: .045em; color: var(--tag); }
.product h3 { margin-top: 3px; font-size: 1.375rem; font-weight: 820; }
.product p { color: var(--muted); margin: 4px 0 9px; }
.detail-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; color: var(--brand); font-weight: 680; text-underline-offset: .24em; }

.videos { border-block: 1px solid var(--line); background: var(--blue-tint); padding-block: 47px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#video-heading { margin-bottom: 0; }
#videos .section-heading, #tests:has(.video-row-tools) .section-heading { margin-bottom: 6px; }
.video-row-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.video-row-message { color: var(--muted); }
.video-row-message small { display: block; font-size: .8125rem; }
.video-swipe-hint { display: none; font-size: .875rem; }
.video-steps { display: flex; gap: 6px; flex: none; }
.video-steps button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #c7d2e2;
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
}
.video-steps button:disabled { opacity: .42; cursor: default; }
.video-steps button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.video-steps [data-video-step="1"]::before { transform: rotate(-135deg); }
.video-grid.has-more {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 80px) / 3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: inline mandatory;
  padding-block: 4px;
}
.video-grid.has-more > article { min-width: 0; scroll-snap-align: start; }
.video-cover:focus-visible { outline-offset: -4px; z-index: 1; }
.video-cover {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #304971;
}
.video-cover img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 45%; }
.video-cover::after { content: ""; position: absolute; inset: 0; background: #142b4b22; }
.play {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #132740c4;
}
.play::before {
  content: "";
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}
.video-cover:hover .play { background: var(--brand); }
.video-grid h3 { margin-top: 8px; font-size: 1.0625rem; }

.contact { padding-block: 58px 28px; }
.contact-panel {
  border-radius: 15px;
  padding: clamp(23px, 4vw, 46px);
  color: #fff;
  background: var(--brand);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 26px;
}
.contact h2 { margin: 0; }
.call { justify-self: start; position: relative; overflow: hidden; color: var(--navy); background: var(--yellow); }
.call::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 33%, #fff8 50%, transparent 67%) -160% 0 / 70% 100% no-repeat;
}
.call.shine::after { animation: call-shine .92s ease-out; }
@keyframes call-shine {
  from { background-position: -230% 0; }
  to { background-position: 340% 0; }
}
.call:hover { background: #ffe18e; }
.instagram { grid-column: 1 / -1; justify-self: end; color: #fff; font-size: .9375rem; display: inline-flex; align-items: center; min-height: 44px; gap: 6px; text-decoration: none; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 2px 26px; color: var(--muted); font-size: .875rem; }
.footer a { text-underline-offset: .22em; }

dialog {
  width: min(530px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  border: 0;
  border-radius: 15px;
  padding: 15px;
  color: var(--navy);
  background: #fff;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #14233bd9; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 9px; }
.dialog-head h2 { font-size: 1.2rem; }
.close {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  width: 44px;
  height: 44px;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-frame { height: min(43dvh, 385px); position: relative; touch-action: pan-y pinch-zoom; border-radius: 8px; background: #f4f7fa; padding: 8px; }
.gallery-photos { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; user-select: none; }
.gallery-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gallery-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gallery-choices button {
  min-height: 44px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  padding-inline: 11px;
  font-size: .875rem;
}
.gallery-choices [aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.video-content video { display: block; width: 100%; border-radius: 8px; max-height: 76dvh; background: #182d48; }
.video-error { margin-top: 10px; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .hero { column-gap: 28px; }
  .hero-art { min-height: 360px; }
  .hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
  .contact-panel { gap: 18px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .top-inner { min-height: 62px; grid-template-columns: 1fr; gap: 9px; }
  .brand { grid-area: 1 / 1; }
  .brand img { width: 73px; }
  .top nav { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "terms" "art"; gap: 16px; padding-block: 21px 15px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 3rem); margin-block: 7px 8px; }
  .hero-actions { margin-top: 16px; gap: 7px; }
  .hero-actions .button { font-size: .875rem; padding-inline: 11px; }
  .terms-cards { --terms-gap: 10px; }
  .terms h3 { font-size: .9375rem; }
  .terms p { font-size: .8125rem; }
  .hero-art { min-height: 0; height: clamp(146px, 50vw, 218px); border-radius: 12px; }
  .shelf { inset-block-end: 9%; inset-inline: max(8%, calc((100% - 282px) / 2)); }
  .shelf > img { width: 37%; }
  .hero-pro { left: -2%; }
  .hero-carbon { left: 65%; }
  .products { padding-bottom: 27px; }
  .section-heading { margin-bottom: 11px; }

  .videos { padding-block: 23px; }
  .video-grid { gap: 9px; }
  .video-cover { border-radius: 8px; aspect-ratio: 3 / 4; }
  .video-grid h3 { font-size: .875rem; line-height: 1.6; }
  .play { width: 42px; }
  .play::before { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
  .contact { padding-block: 24px 16px; }
  .contact-panel { grid-template-columns: 1fr; gap: 10px; }
  .footer { padding-bottom: 16px; align-items: start; font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product-visual > img, .bucket-stage { transition: none; }
  .call.shine::after { animation: none; }
}

.mobile-jumps { display: none; }
.test-videos { margin-top: 8px; }
.test-videos .section-heading:has(+ .empty-videos) { margin-bottom: 5px; }
.empty-videos { color: var(--muted); }

.gallery-photos img { padding: 8px 41px; }
.gallery-step {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gallery-step::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}
.gallery-prev { right: 6px; }
.gallery-next { left: 6px; }
.gallery-next::before { transform: rotate(-135deg); margin-right: 0; margin-left: 4px; }
.gallery-position { text-align: center; margin-top: 4px; color: var(--muted); font-size: .875rem; }
.gallery-choices { justify-content: center; }
.gallery-copy { padding-top: 11px; margin-top: 13px; border-top: 1px solid var(--line); }
.gallery-copy h3 { font-size: 1.04rem; }
.gallery-copy p { margin-top: 5px; color: var(--muted); line-height: 1.8; }

#call-dialog { width: min(350px, calc(100% - 28px)); }
.call-number { font-size: 1.65rem; font-weight: 800; text-align: center; padding-block: 8px 15px; }
.call-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.call-options button { cursor: pointer; }
.copy-status { text-align: center; font-size: .875rem; color: var(--muted); }
.copy-status:not(:empty) { padding-top: 8px; }

@media (max-width: 700px) {
  .mobile-jumps {
    display: grid;
    grid-template-columns: 1fr 1.16fr 1fr;
    gap: 2px;
    margin-bottom: 21px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .mobile-jumps a {
    display: grid;
    place-items: center;
    text-align: center;
    text-decoration: none;
    min-height: 44px;
    color: var(--brand);
    font-size: .875rem;
    font-weight: 660;
    padding-inline: 2px;
  }
  .mobile-jumps a + a { border-inline-start: 1px solid var(--line); }

  .product-grid { grid-template-columns: 1fr; gap: 8px; }
  .product { display: grid; grid-template-columns: clamp(84px, 25%, 116px) minmax(0,1fr); }
  .product-visual { height: auto; align-self: stretch; padding: 8px; border-radius: 0 13px 13px 0; }
  .product-visual > img { max-height: 117px; }
  .bucket-stage { width: 100%; }
  .product-body { padding: 7px 10px 3px; }
  .product-type { font-size: .8125rem; line-height: 1.5; }
  .product-type span:first-child { display: none; }
  .product h3 { font-size: 1.05rem; line-height: 1.46; margin-top: 2px; }
  .product p { font-size: .875rem; line-height: 1.52; margin: 2px 0 0; }
  .detail-link { font-size: .875rem; min-height: 44px; }
  .video-grid.has-more { grid-auto-columns: calc((100% - 48px) / 3); }
  .video-swipe-hint { display: block; }
  .video-cover { aspect-ratio: 4 / 4.5; }

  .gallery-frame { height: min(37dvh, 260px); }
  .gallery-choices { gap: 4px; }
  .gallery-choices button { padding-inline: 7px; font-size: .875rem; }
}

@media (max-width: 349px) {
  .hero h1 { font-size: 1.9rem; }
}
