/* ==========================================================================
   BUYAMTO — About page (page slug "about", template "Page - Full Width").
   Loaded only on that page by inc/buyamto-about.php.
   Uses the theme's own tokens (--by-*) from style.css, with fallbacks.
   ========================================================================== */

.by-ab{
	--ab-bg:      var(--by-bg, #FAFAF8);
	--ab-cream:   #F4EEE4;
	--ab-warm:    var(--by-warm, #F1EDE6);
	--ab-surface: var(--by-surface, #FFFFFF);
	--ab-ink:     var(--by-ink, #1A1815);
	--ab-soft:    var(--by-ink-soft, #4B463F);
	--ab-grey:    var(--by-grey, #8B857B);
	--ab-line:    var(--by-line, #E7E2D9);
	--ab-teal:    var(--by-teal, #0E7C86);
	--ab-teal-dk: var(--by-teal-dark, #0A6068);
	--ab-teal-dp: #0B4E54;
	--ab-teal-lt: #DCEBE9;
	--ab-orange:  var(--by-orange, #C94F0A);
	--ab-r-sm: 14px; --ab-r: 24px; --ab-r-lg: 34px;
	--ab-shadow:    0 1px 2px rgba(26,24,21,.05), 0 22px 44px -28px rgba(26,24,21,.38);
	--ab-shadow-lg: 0 2px 4px rgba(26,24,21,.05), 0 44px 80px -40px rgba(26,24,21,.45);
	--ab-gutter: clamp(16px, 5vw, 64px);
	--ab-maxw: 1240px;
	--ab-ease: cubic-bezier(.22,.61,.36,1);
	--ab-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	background: var(--ab-bg);
	color: var(--ab-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.by-ab *, .by-ab *::before, .by-ab *::after{ box-sizing: border-box; }
.by-ab img{ display: block; max-width: 100%; height: auto; }
.by-ab p{ margin: 0; }
.by-ab h1, .by-ab h2, .by-ab h3{ color: inherit; margin: 0; font-weight: 700; overflow-wrap: break-word; }

.by-ab .ab-wrap{ width: 100%; max-width: var(--ab-maxw); margin-inline: auto; padding-inline: var(--ab-gutter); }
.by-ab .ab-section{ padding-block: clamp(72px, 11vw, 140px); position: relative; }

/* Mono eyebrow with a small burnt-orange dot */
.by-ab .ab-eyebrow{
	font-family: var(--ab-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
	color: var(--ab-grey); display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px;
}
.by-ab .ab-eyebrow::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ab-orange); flex: none; }

.by-ab .ab-h2{
	font-size: clamp(2.2rem, 5.6vw, 4.3rem); line-height: .98; letter-spacing: -.04em;
}
.by-ab .ab-body{ color: var(--ab-soft); max-width: 50ch; }
.by-ab .ab-body + .ab-body{ margin-top: 16px; }
.by-ab .ab-dot{ color: var(--ab-orange); }

/* Buttons: the theme's own .button styles, sized up a little here */
.by-ab .ab-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.by-ab .ab-actions .button{ margin: 0; }
.by-ab .button.ab-btn{
	min-height: 54px; padding: 0 30px; font-size: 1rem; line-height: 54px; letter-spacing: -.005em;
	text-transform: none; font-weight: 700;
	transition: transform .35s var(--ab-ease), box-shadow .35s var(--ab-ease), background-color .35s var(--ab-ease), color .35s var(--ab-ease), border-color .35s var(--ab-ease);
}
.by-ab .button.ab-btn:hover{ transform: translateY(-2px); }
.by-ab .button.ab-btn--quiet{
	background: transparent; color: var(--ab-ink); border: 1px solid var(--ab-line); box-shadow: none;
}
.by-ab .button.ab-btn--quiet:hover{ border-color: var(--ab-ink); color: var(--ab-ink); background: rgba(26,24,21,.03); }
.by-ab .ab-arrow{ width: 18px; height: 18px; flex: none; transition: transform .35s var(--ab-ease); }
.by-ab .button.ab-btn{ display: inline-flex; align-items: center; gap: 10px; }
.by-ab .button.ab-btn:hover .ab-arrow{ transform: translateX(3px); }

/* Line icons */
.by-ab .ab-ic{ fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Rounded media frames */
.by-ab .ab-frame{ position: relative; overflow: hidden; border-radius: var(--ab-r-lg); background: var(--ab-warm); isolation: isolate; }
.by-ab .ab-frame img{ width: 100%; height: 100%; object-fit: cover; }

/* Small mono caption chip that sits on an image */
.by-ab .ab-chip{
	position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--ab-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ab-ink); background: rgba(250,250,248,.92); border-radius: 999px; padding: 8px 14px;
	box-shadow: 0 8px 20px -12px rgba(26,24,21,.4);
}
.by-ab .ab-chip i{ width: 6px; height: 6px; border-radius: 50%; background: var(--ab-teal); }

/* ------------------------------------------------------------------ HERO */
.by-ab .ab-hero{ padding-block: clamp(40px, 7vw, 96px) clamp(72px, 10vw, 128px); }
.by-ab .ab-hero__grid{ display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
.by-ab .ab-hero__title{
	font-size: clamp(3rem, 11vw, 5.9rem); line-height: .92; letter-spacing: -.05em;
}
@media (min-width: 960px){ .by-ab .ab-hero__title .ab-line{ white-space: nowrap; } }
.by-ab .ab-hero__title .ab-line{ display: block; }
.by-ab .ab-hero__title .ab-teal{ color: var(--ab-teal); }
.by-ab .ab-hero__lede{ font-size: clamp(1.06rem, 1.9vw, 1.24rem); line-height: 1.6; color: var(--ab-soft); max-width: 44ch; margin-top: 30px; }
.by-ab .ab-hero .ab-actions{ margin-top: 36px; }

.by-ab .ab-hero__media{ position: relative; aspect-ratio: 1 / 1.02; max-width: 620px; width: 100%; justify-self: center; }
.by-ab .ab-hero__wash{
	position: absolute; inset: 9% 0 0 14%; border-radius: var(--ab-r-lg);
	background: radial-gradient(120% 90% at 80% 10%, #EAF3F2 0%, var(--ab-teal-lt) 70%);
}
.by-ab .ab-hero__main{ position: absolute; top: 0; right: 5%; width: 72%; aspect-ratio: 4 / 5; box-shadow: var(--ab-shadow-lg); }
.by-ab .ab-hero__main img{ object-position: 46% 50%; }
.by-ab .ab-hero__side{
	position: absolute; left: 0; bottom: 4%; width: 44%; aspect-ratio: 1 / 1;
	border: 8px solid var(--ab-bg); border-radius: calc(var(--ab-r-lg) + 8px); box-shadow: var(--ab-shadow);
}
.by-ab .ab-hero__main .ab-chip{ right: 16px; bottom: 16px; }
.by-ab .ab-hero__side .ab-chip{ left: 12px; top: 12px; }

/* Settle-in on load: transform only, so the large image still paints immediately */
@keyframes ab-settle{ from{ transform: translateY(14px) scale(.985); } to{ transform: none; } }
@keyframes ab-zoom{ from{ transform: scale(1.06); } to{ transform: scale(1); } }
.by-ab .ab-hero__main, .by-ab .ab-hero__side{ animation: ab-settle 1s var(--ab-ease) both; }
.by-ab .ab-hero__side{ animation-delay: .12s; }
.by-ab .ab-hero__main img{ animation: ab-zoom 1.6s var(--ab-ease) both; }

/* ------------------------------------------------- EVERYDAY NEEDS (warm) */
.by-ab .ab-needs{ background: var(--ab-warm); }
.by-ab .ab-needs__grid{ display: grid; gap: clamp(44px, 7vw, 96px); align-items: start; }
.by-ab .ab-needs__media{ position: relative; }
.by-ab .ab-needs__frame{ aspect-ratio: 4 / 5; box-shadow: var(--ab-shadow-lg); }
.by-ab .ab-needs__frame img{ object-position: 50% 60%; }
.by-ab .ab-needs__card{
	position: absolute; right: clamp(-12px, -2vw, -28px); bottom: 28px; z-index: 2;
	background: var(--ab-surface); border-radius: var(--ab-r); padding: 16px 18px 16px 20px;
	display: flex; align-items: center; gap: 14px; max-width: 290px;
	box-shadow: var(--ab-shadow); text-decoration: none; color: var(--ab-ink);
	transition: transform .35s var(--ab-ease), box-shadow .35s var(--ab-ease);
}
.by-ab .ab-needs__card:hover{ transform: translateY(-3px); color: var(--ab-ink); box-shadow: var(--ab-shadow-lg); }
.by-ab .ab-needs__card small{ display: block; font-family: var(--ab-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ab-grey); margin-bottom: 2px; }
.by-ab .ab-needs__card strong{ display: block; font-size: .98rem; line-height: 1.25; font-weight: 700; }
.by-ab .ab-needs__card .ab-bubble{ width: 40px; height: 40px; flex: none; }

.by-ab .ab-bubble{
	display: inline-grid; place-items: center; border-radius: 50%;
	background: var(--ab-teal-lt); color: var(--ab-teal-dk);
}
.by-ab .ab-bubble svg{ width: 46%; height: 46%; }

.by-ab .ab-needs__text .ab-h2 .ab-quiet{ color: var(--ab-teal-dk); }
.by-ab .ab-needs__text .ab-h2 + .ab-body{ margin-top: 30px; }
.by-ab .ab-list{ list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; max-width: 50ch; }
.by-ab .ab-list li{
	display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
	padding: 16px 0; border-top: 1px solid rgba(26,24,21,.1); margin: 0; color: var(--ab-soft);
}
.by-ab .ab-list li:last-child{ border-bottom: 1px solid rgba(26,24,21,.1); }
.by-ab .ab-list .ab-bubble{ width: 44px; height: 44px; background: var(--ab-surface); }
.by-ab .ab-list strong{ display: block; color: var(--ab-ink); font-weight: 700; line-height: 1.3; margin: 2px 0 2px; }

.by-ab .ab-cats{ margin-top: 34px; }
.by-ab .ab-cats__label{ font-family: var(--ab-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ab-grey); margin-bottom: 14px; }
.by-ab .ab-cats__row{ display: flex; flex-wrap: wrap; gap: 10px; }
.by-ab .ab-pill{
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	background: var(--ab-surface); border: 1px solid var(--ab-line); color: var(--ab-ink);
	font-size: .94rem; font-weight: 700; text-decoration: none;
	transition: border-color .3s var(--ab-ease), color .3s var(--ab-ease), transform .3s var(--ab-ease);
}
.by-ab .ab-pill:hover{ border-color: var(--ab-teal); color: var(--ab-teal-dk); transform: translateY(-2px); }

/* ------------------------------------------------- SIMPLER WAY (teal) */
.by-ab .ab-simple{ background: var(--ab-teal-dp); color: #F4EEE4; overflow: hidden; }
.by-ab .ab-simple::before{ /* one large, still, soft circle for depth */
	content: ""; position: absolute; width: min(70vw, 820px); aspect-ratio: 1; border-radius: 50%;
	right: -18%; top: -38%; background: radial-gradient(circle, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 66%);
	pointer-events: none;
}
.by-ab .ab-simple .ab-eyebrow{ color: rgba(244,238,228,.72); }
.by-ab .ab-simple__head{ display: grid; gap: 26px; align-items: end; position: relative; }
.by-ab .ab-simple__head .ab-body{ color: rgba(244,238,228,.82); }
.by-ab .ab-simple__cards{ display: grid; gap: 16px; margin-top: clamp(44px, 6vw, 72px); position: relative; }
.by-ab .ab-way{
	display: flex; flex-direction: column; gap: 14px; min-height: 100%;
	padding: clamp(24px, 3vw, 34px); border-radius: var(--ab-r);
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
	color: #F4EEE4; text-decoration: none;
	transition: transform .4s var(--ab-ease), background-color .4s var(--ab-ease), border-color .4s var(--ab-ease);
}
.by-ab .ab-way:hover{ transform: translateY(-4px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.by-ab .ab-way__top{ display: flex; align-items: center; justify-content: space-between; }
.by-ab .ab-way__num{ font-family: var(--ab-mono); font-size: .7rem; letter-spacing: .18em; color: rgba(244,238,228,.6); }
.by-ab .ab-way .ab-bubble{ width: 52px; height: 52px; background: rgba(244,238,228,.12); color: #F4EEE4; }
.by-ab .ab-way h3{ font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.1; letter-spacing: -.025em; margin-top: auto; padding-top: 18px; color: #fff; }
.by-ab .ab-way p{ color: rgba(244,238,228,.78); font-size: .98rem; }
.by-ab .ab-way__go{ display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: #fff; margin-top: 6px; }
.by-ab .ab-way__go svg{ width: 18px; height: 18px; transition: transform .35s var(--ab-ease); }
.by-ab .ab-way:hover .ab-way__go svg{ transform: translateX(4px); }
.by-ab .ab-way--lead{ background: #F4EEE4; color: var(--ab-ink); border-color: transparent; }
.by-ab .ab-way--lead:hover{ background: #FBF7F0; color: var(--ab-ink); border-color: transparent; }
.by-ab .ab-way--lead h3, .by-ab .ab-way--lead .ab-way__go{ color: var(--ab-ink); }
.by-ab .ab-way--lead p{ color: var(--ab-soft); }
.by-ab .ab-way--lead .ab-way__num{ color: var(--ab-grey); }
.by-ab .ab-way--lead .ab-bubble{ background: var(--ab-teal-lt); color: var(--ab-teal-dk); }
.by-ab .ab-way--lead .ab-way__go{ color: var(--ab-orange); }

/* ------------------------------------------------- PHILOSOPHY */
.by-ab .ab-philo__grid{ display: grid; gap: clamp(44px, 7vw, 88px); align-items: center; }
.by-ab .ab-philo__quote{
	font-size: clamp(2.1rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin: 0;
}
.by-ab .ab-philo__quote em{
	font-style: normal; text-decoration: underline; text-decoration-color: var(--ab-orange);
	text-decoration-thickness: .09em; text-underline-offset: .12em;
}
.by-ab .ab-philo__text .ab-body{ margin-top: 28px; }
.by-ab .ab-philo__media{ position: relative; max-width: 460px; width: 100%; justify-self: center; }
.by-ab .ab-philo__frame{ aspect-ratio: 4 / 5; background: #1D1B22; box-shadow: var(--ab-shadow-lg); }
.by-ab .ab-philo__frame img{ object-position: 50% 40%; }
.by-ab .ab-philo__media::before{ /* offset outline behind the photo */
	content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--ab-r-lg);
	border: 1.5px solid var(--ab-teal); opacity: .5;
}
.by-ab .ab-philo__media .ab-chip{ left: 16px; bottom: 16px; }

.by-ab .ab-principles{ list-style: none; margin: clamp(56px, 8vw, 104px) 0 0; padding: 0; display: grid; gap: 0; }
.by-ab .ab-principles li{ margin: 0; padding: 26px 0; border-top: 1px solid var(--ab-line); display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.by-ab .ab-ring{
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	border: 1.5px solid var(--ab-teal); color: var(--ab-teal-dk);
}
.by-ab .ab-ring svg{ width: 24px; height: 24px; }
.by-ab .ab-principles h3{ font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; margin: 4px 0 6px; }
.by-ab .ab-principles p{ color: var(--ab-soft); max-width: 34ch; }

/* ------------------------------------------------- CLOSING */
.by-ab .ab-close{ padding-top: 0; }
.by-ab .ab-close__card{
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--ab-cream); border-radius: clamp(26px, 4vw, 44px);
	padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 88px);
	display: grid; gap: 32px; align-items: end;
}
.by-ab .ab-close__card::before, .by-ab .ab-close__card::after{
	content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
}
.by-ab .ab-close__card::before{ width: clamp(220px, 34vw, 440px); aspect-ratio: 1; right: -6%; top: -30%; background: var(--ab-teal-lt); }
.by-ab .ab-close__card::after{ width: clamp(90px, 12vw, 150px); aspect-ratio: 1; right: 22%; bottom: -12%; border: 1.5px solid var(--ab-orange); opacity: .55; }
.by-ab .ab-close__title{ font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -.05em; }
.by-ab .ab-close__title .ab-teal{ color: var(--ab-teal); }
.by-ab .ab-close__side .ab-body{ margin-bottom: 26px; }

/* ------------------------------------------------- SCROLL REVEAL
   Hidden only after the script has started (.is-live), so the page is
   fully visible without JavaScript. */
.by-ab.is-live [data-reveal]{ opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ab-ease), transform .8s var(--ab-ease); transition-delay: var(--ab-d, 0s); }
.by-ab.is-live [data-reveal].is-in{ opacity: 1; transform: none; }

/* ------------------------------------------------- FOCUS */
.by-ab a:focus-visible{ outline: 2px solid var(--ab-teal); outline-offset: 4px; border-radius: 999px; }
.by-ab .ab-way:focus-visible, .by-ab .ab-needs__card:focus-visible{ border-radius: var(--ab-r); }
.by-ab .ab-simple a:focus-visible{ outline-color: #F4EEE4; }

/* ------------------------------------------------- LAYOUT: tablet + desktop */
@media (min-width: 700px){
	.by-ab .ab-simple__cards{ grid-template-columns: 1fr 1fr; }
	.by-ab .ab-way--lead{ grid-column: 1 / -1; }
	.by-ab .ab-principles{ grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
	.by-ab .ab-principles li{ grid-template-columns: 1fr; padding-top: 30px; }
}
@media (min-width: 960px){
	.by-ab .ab-hero__grid{ grid-template-columns: 1.15fr 1fr; }
	.by-ab .ab-needs__grid{ grid-template-columns: 5fr 6fr; }
	.by-ab .ab-needs__text{ padding-top: clamp(24px, 6vw, 88px); }
	.by-ab .ab-simple__head{ grid-template-columns: 1.2fr 1fr; }
	.by-ab .ab-simple__cards{ grid-template-columns: 1.35fr 1fr 1fr; }
	.by-ab .ab-way--lead{ grid-column: auto; min-height: 340px; }
	.by-ab .ab-philo__grid{ grid-template-columns: 1.25fr 1fr; }
	.by-ab .ab-close__card{ grid-template-columns: 1.5fr 1fr; gap: 56px; }
}

/* ------------------------------------------------- SMALL PHONES */
@media (max-width: 480px){
	.by-ab{ font-size: 16px; }
	.by-ab .ab-actions .button{ flex: 1 1 auto; justify-content: center; }
	.by-ab .ab-hero__media{ aspect-ratio: 1 / 1.1; }
	.by-ab .ab-hero__side{ border-width: 6px; width: 48%; }
	.by-ab .ab-needs__card{ right: 12px; left: 12px; bottom: 12px; max-width: none; }
	.by-ab .ab-chip{ font-size: .58rem; padding: 7px 11px; }
}

/* ------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce){
	.by-ab *, .by-ab *::before, .by-ab *::after{ animation: none !important; transition: none !important; }
	.by-ab.is-live [data-reveal]{ opacity: 1; transform: none; }
}
