/* Simon Solar
   ======================================================================
   Hand-written CSS, no framework and no build step: what is in this
   folder is byte for byte what the web server sends.

   The LAYOUT follows the IngatlanMedia site, which the client liked for
   its simplicity: a pill eyebrow over a very large two line headline,
   section headings paired with a supporting paragraph on the right, a
   four column strip of figures, a 2x2 card grid, a numbered process row,
   a boxed call to action, and a three column footer.

   The TREATMENT is deliberately the opposite of that site. IngatlanMedia
   is near black with a hard green, which reads as a tech studio. This is
   a solar installer selling to families, so the ground is the warm paper
   of the logo artwork and the accent is its gold.

   Colours are sampled from the supplied logo, not guessed:

     paper   #F7F4EB   the logo's own ground
     gold    #EFCF62   the sun
     sky     #7AB9DC   the lit panel cells
     slate   #2F4A5C   the panel frame, darkened for grounds
     ink     #3A362F   the lettering

   Gold is a material, not an ink. On paper it measures about 1.8:1, so
   it never carries text there: it fills shapes, underlines and dots.
   Accent TEXT on paper is --bronze (5.4:1). On the slate grounds the
   accent is --gold itself (7.4:1), which is why the figures in the stats
   band are gold and the headline accents on paper are bronze.
   ====================================================================== */

/* ---- tokens ---------------------------------------------------------- */

:root {
  --paper: #f7f4eb;
  --white: #fffdf8;
  --cream: #f1ede1;
  --line: #e4dfd0;
  --line-soft: #efeae0;

  --ink: #3a362f;
  --muted: #6c6559;
  --bronze: #7c6322;

  --gold: #efcf62;
  --gold-soft: #faf0ce;
  --gold-deep: #e3bd4c;
  --sky: #7ab9dc;

  --slate: #2f4a5c;
  --slate-deep: #243b49;
  --on-slate: #eef3f5;

  --wrap: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(58, 54, 47, .04), 0 8px 24px rgba(58, 54, 47, .05);
}

/* ---- base ------------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.note { font-size: .88rem; color: var(--muted); }

/* ---- the eyebrow pill ------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 14px;
  margin: 0 0 26px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid #efe2bd;
  color: var(--bronze);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.on-slate .eyebrow {
  background: rgba(239, 207, 98, .14);
  border-color: rgba(239, 207, 98, .28);
  color: var(--gold);
}

/* ---- header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque, not translucent: the logo is blended into its background
     with multiply, so anything scrolling under a see-through header
     would darken the mark and swallow it. */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.bar { display: flex; align-items: center; gap: 18px; min-height: 86px; }

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img {
  height: 58px;
  width: auto;
  /* The artwork carries its own cream ground and is not transparent.
     Multiply hides the small difference in tone against the page. */
  mix-blend-mode: multiply;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* :not(.btn) throughout, because `.nav a` is one class plus one element
   and so out-specifies `.btn-primary`, which is one class. Without it
   the header's call to action inherits the muted link colour and ends
   up as grey text on the slate fill, and turns cream on hover. */
.nav a:not(.btn) {
  padding: 10px 20px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:not(.btn):hover { color: var(--ink); background: var(--cream); }
.nav a:not(.btn)[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .btn { margin-left: 10px; }

@media (max-width: 860px) {
  .bar { min-height: 74px; gap: 10px; }
  .brand img { height: 46px; }
  .nav a:not(.btn) { padding: 9px 13px; font-size: .9rem; }
  .nav a:not(.btn)[aria-current="page"] { display: none; }
  .nav .btn { padding: 11px 18px; font-size: .9rem; margin-left: 4px; }
}

@media (max-width: 420px) {
  .nav .nav-link { display: none; }
}

/* ---- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; }

/* The primary action inverts by ground: slate on paper, gold on slate.
   A slate button on the slate band would be invisible, and gold on paper
   cannot carry its own label. */
.btn-primary { background: var(--slate); color: #fff; }
.btn-primary:hover { background: var(--slate-deep); }

.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.btn-gold { background: var(--gold); color: #3a2d05; }
.btn-gold:hover { background: var(--gold-deep); }

.btn-ghost { border-color: rgba(238, 243, 245, .35); color: var(--on-slate); }
.btn-ghost:hover { border-color: var(--on-slate); }

.btn-sm { padding: 12px 22px; font-size: .94rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* Every section ends with a way to act on it: the client asked for a
   constant call to action rather than one at the foot of the page. */
.section-cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.section-cta .note { margin: 0; }

/* ---- section furniture ----------------------------------------------- */

section { padding: clamp(60px, 9vw, 112px) 0; }
.band-cream { background: var(--cream); }
.band-white { background: var(--white); }

.on-slate { background: var(--slate); color: var(--on-slate); }
.on-slate .lede, .on-slate .note { color: rgba(238, 243, 245, .72); }

/* Headline on the left, supporting paragraph on the right, which is the
   section rhythm the whole IngatlanMedia page is built on. */
.head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px 56px;
  align-items: end;
  margin-bottom: 52px;
}

.head h1, .head h2 { margin: 0; }
.head .lede { margin: 0; }

/* A hero that opens with a .head already carries the section's own top
   padding, so the section under it must not add a second one. */
.pt-0 { padding-top: 0; }

@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; align-items: start; }
}

/* ---- hero ------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(52px, 8vw, 100px) 0 clamp(58px, 8vw, 96px);
  background:
    radial-gradient(820px 460px at 78% -8%, rgba(239, 207, 98, .5), transparent 66%),
    radial-gradient(620px 420px at 8% 108%, rgba(122, 185, 220, .16), transparent 70%),
    var(--paper);
  overflow: hidden;
}

.hero h1 .accent { color: var(--bronze); }
.hero .lede { font-size: 1.18rem; max-width: 52ch; margin-bottom: 34px; }
.hero .btn-row { margin-bottom: 8px; }

/* Two columns, each a single grid item: the copy is wrapped rather than
   left as loose siblings. An earlier version put the siblings straight
   into the grid and spanned the picture with `grid-row: 1 / -1`, which
   silently does not work: -1 counts back through the EXPLICIT grid, and
   with only columns declared there are no explicit rows for it to reach,
   so the span collapsed to the first row and the eyebrow ended up
   centred against a 626px tall picture. */
.hero-grid {
  display: grid;
  /* The picture column is the wider one, because the photograph is
     landscape and carries the house, the panels and three people. Crop
     it to a portrait column and one of those always goes. */
  grid-template-columns: 1fr 1.15fr;
  column-gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy { min-width: 0; }

/* The frame owns the rounding, the border and the shadow so the picture
   inside it can be scaled on hover without its corners sliding out from
   under the radius. */
.hero-media {
  align-self: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(58, 54, 47, .12);
}

.hero-media img {
  width: 100%;
  /* height:auto is load bearing, not tidying. The width and height
     attributes on the <img> are presentation hints, so without this the
     attribute's 1125px wins over aspect-ratio, the picture renders full
     height and drags the centred copy column down with it. The
     attributes stay because they reserve the right space while the
     image loads. */
  /* Fills the row rather than holding an aspect ratio of its own. A fixed
     ratio only lines up with the copy at one window width; at every other
     width the picture is either short, leaving a hole beside the text, or
     taller than the column. Stretching means it is always exactly as tall
     as the copy next to it.

     The crop is therefore horizontal and its amount varies with the
     window, which is what object-position is for. The source is 4:3 and
     wider than it is tall, so the full height of the scene always
     survives: the roof ridge at the top and the lawn at the bottom. 58%
     puts the crop window over the family, who sit right of centre at
     about x=600 to 960 of 1200, and keeps most of the panelled roof,
     which runs x=330 to 900. Centre it instead and the girl on the right
     is the first thing to go. */
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  display: block;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 36px; }
  /* Stacked, there is no column to match and no reason to crop, so the
     whole frame comes back. */
  .hero-media img { height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
}

.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .92rem;
  color: var(--muted);
}

.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--bronze); }

/* ---- stats strip ----------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat { padding: 40px 28px; }
.stat + .stat { border-left: 1px solid rgba(238, 243, 245, .16); }

.stat b {
  display: block;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
}

.stat span { font-size: .95rem; color: rgba(238, 243, 245, .72); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 20px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(238, 243, 245, .16); }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; }
  .stat + .stat { border-top: 1px solid rgba(238, 243, 245, .16); }
}

/* ---- about ----------------------------------------------------------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; }
.about img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: cover; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about .about-media { order: -1; }
  .about img { max-height: 320px; }
}

/* ---- service cards --------------------------------------------------- */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.band-white .card { background: var(--paper); }

.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--bronze);
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding: 26px; }
}

/* ---- gallery --------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
}

.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:first-child { grid-row: span 2; }
.shot:first-child img { min-height: 420px; }
.shot:not(:first-child) img { height: 100%; min-height: 200px; }

.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(36, 59, 73, .82);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .shot:first-child { grid-row: span 1; grid-column: span 2; }
  .shot:first-child img { min-height: 260px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .shot:first-child { grid-column: span 1; }
}

/* ---- process --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.band-white .steps { background: var(--paper); }

.step { padding: 34px 28px; }
.step + .step { border-left: 1px solid var(--line); }

.step .num {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--bronze);
  margin-bottom: 18px;
}

.step h3 { font-size: 1.12rem; margin-bottom: .5em; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(odd) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0 !important; }
  .step + .step { border-top: 1px solid var(--line); }
}

/* ---- pricing --------------------------------------------------------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }

.tier {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.tier.featured {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, #fffaea, var(--white) 46%);
  box-shadow: 0 2px 4px rgba(58, 54, 47, .05), 0 18px 44px rgba(124, 99, 34, .12);
}

.tier-flag {
  position: absolute;
  top: -13px;
  left: 32px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #3a2d05;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tier h3 { font-size: 1.5rem; margin-bottom: .35em; }
.tier .tier-for { color: var(--muted); font-size: .99rem; min-height: 3.2em; }

.price {
  margin: 22px 0 4px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.price small { display: block; font-size: .86rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.tier ul { list-style: none; padding: 0; margin: 26px 0 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.tier li { display: flex; gap: 11px; margin-bottom: 13px; font-size: .99rem; }
.tier li svg { flex: 0 0 auto; margin-top: 5px; color: var(--bronze); }
.tier .btn { width: 100%; }

@media (max-width: 920px) {
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tier .tier-for { min-height: 0; }
}

/* ---- call to action band --------------------------------------------- */

.cta-box {
  background: var(--slate);
  color: var(--on-slate);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 36px;
  align-items: center;
}

.cta-box h2 { margin: 0 0 .45em; color: #fff; }
.cta-box p { margin: 0; color: rgba(238, 243, 245, .76); max-width: 48ch; }
.cta-box .btn-row { flex-direction: column; }
.cta-box .btn { min-width: 236px; }

@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; gap: 26px; }
  .cta-box .btn-row { flex-direction: row; }
  .cta-box .btn { min-width: 0; flex: 1 1 auto; }
}

/* ---- enquiry form ---------------------------------------------------- */

.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
label { font-size: .92rem; font-weight: 700; }

input, select, textarea {
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
}

.band-white input, .band-white select, .band-white textarea { background: var(--paper); }

input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, a:focus-visible {
  outline: 2.5px solid var(--bronze);
  outline-offset: 2px;
}

.two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; }
.consent input { width: auto; margin-top: 5px; }

/* Honeypot: invisible to a person, filled in by a script that fills
   every field it finds. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note[data-state="error"] { color: #983526; font-weight: 600; }
.form-note[data-state="done"] { color: var(--bronze); font-weight: 600; }

@media (max-width: 900px) { .quote { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* ---- footer ---------------------------------------------------------- */

.site-footer { background: var(--slate-deep); color: var(--on-slate); padding: 64px 0 40px; }

.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(238, 243, 245, .14);
}

.foot h4 {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(238, 243, 245, .5);
  margin-bottom: 20px;
}

.foot-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.foot-brand .dot { color: var(--gold); }
.foot p { color: rgba(238, 243, 245, .68); font-size: .97rem; max-width: 34ch; }

.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 12px; }
.foot a { color: rgba(238, 243, 245, .84); text-decoration: none; font-size: .99rem; }
.foot a:hover { color: #fff; text-decoration: underline; }

.foot-end {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .87rem;
  color: rgba(238, 243, 245, .5);
}

@media (max-width: 760px) { .foot { grid-template-columns: 1fr; gap: 32px; } }

/* ---- sticky action bar on phones ------------------------------------- */

.callbar { display: none; }

@media (max-width: 720px) {
  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .callbar .btn { flex: 1 1 0; padding: 13px 14px; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

/* ---- hover: light on the buttons ------------------------------------- */

/* A soft light that follows the pointer across the button. app.js writes
   --mx and --my as percentages; with no JS the gradient simply sits in
   the middle, which still reads as a highlight rather than as something
   broken.

   isolation plus a negative z-index on the pseudo element puts the light
   above the button's own background but underneath its label, so the
   text never dims, and overflow keeps the circle inside the pill. */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --glow: rgba(255, 255, 255, .32);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 62%);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after { opacity: 1; }

/* Declared after the base rule so hover wins over it, and active after
   hover so a press still reads as a press. */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

/* Gold on the pale buttons, where a white light would not show at all. */
.btn-outline { --glow: rgba(239, 207, 98, .55); }
.btn-ghost { --glow: rgba(239, 207, 98, .34); }
.btn-gold { --glow: rgba(255, 255, 255, .5); }

/* ---- hover: light on the panels -------------------------------------- */

/* The same idea the client pointed at on their old site, warm rather
   than green: a hairline across the foot of the card with a pool of
   light rising off it.

   Both sit INSIDE the box, inset by the 1px border, rather than being
   clipped by `overflow: hidden`. That matters: the featured pricing card
   hangs its "Legkedveltebb" flag outside its own top edge, and clipping
   the card would cut the flag off. */
.card, .tier, .step {
  position: relative;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.card::before, .tier::before, .step::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 68px;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(239, 207, 98, .3), transparent);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.card::after, .tier::after, .step::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.card:hover::before, .tier:hover::before, .step:hover::before,
.card:hover::after, .tier:hover::after, .step:hover::after { opacity: 1; }

.card:hover, .tier:hover {
  transform: translateY(-3px);
  border-color: #ded0a6;
  box-shadow: 0 2px 4px rgba(58, 54, 47, .05), 0 16px 38px rgba(124, 99, 34, .13);
}

/* ---- hover: a slow push on the photographs --------------------------- */

/* Every one of these frames clips its own overflow, so the picture can
   grow without its corners escaping the rounding. */
.shot img, .about-media img, .hero-media img {
  transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}

.shot:hover img,
.about-media:hover img,
.hero-media:hover img { transform: scale(1.045); }

/* ---- sections rising in on scroll ------------------------------------ */

/* Pre-hidden only under .js, which an inline script in <head> sets before
   the first paint. Without JavaScript, or if that script never runs,
   nothing is ever hidden, so the page cannot end up blank: the worst case
   is that it simply does not animate.

   The hero is deliberately not in this list. It is the first thing on
   screen and should be there already, not fade in under the reader. */
.js main > section > .wrap,
.js main > .on-slate > .wrap {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.2, .6, .2, 1), transform .75s cubic-bezier(.2, .6, .2, 1);
}

.js main > section > .wrap.is-in,
.js main > .on-slate > .wrap.is-in {
  opacity: 1;
  transform: none;
}

/* ---- motion ---------------------------------------------------------- */

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

  /* Without this the reveal would latch: transitions are off, so anything
     still pre-hidden would never come back. app.js also reveals
     everything up front in this case, and this is the belt to that
     brace. */
  .js main > section > .wrap,
  .js main > .on-slate > .wrap { opacity: 1 !important; transform: none !important; }

  .btn:hover { transform: none; }
  .card:hover, .tier:hover { transform: none; }
  .shot:hover img, .about-media:hover img, .hero-media:hover img { transform: none; }
}
