/* angusgee.dev — editorial; sapphire and limestone; one family, Fraunces */

:root {
  --paper: #faf9f6;
  --wash: #eef3fa;
  --ink: #17223b;
  --ink-soft: #4e5a75;
  --accent: #0f52ba;
  --accent-deep: #0a3d8f;
  --gold: #c89d5e;
  --gold-bright: #d9b06a;
  --navy: #0e1b33;
  --navy-ink: #ece9e0;
  --navy-soft: #a9b3cb;
  --rule: #dcdfe8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

.container {
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* The header and hero breathe wider than the reading sections */
.header-inner,
.hero .container {
  max-width: 84rem;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

.wordmark {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 1.5px no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background-size: 100% 1.5px;
}

/* Buttons */

.button {
  display: inline-block;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: linear-gradient(110deg, var(--accent-deep) 0%, var(--accent-deep) 50%, var(--accent) 50%);
  background-size: 230% 100%;
  background-position: 100% 0;
  transition: background-position 0.35s ease, transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.button:hover {
  background-position: 0 0;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--navy);
}

.button:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--navy);
}

/* sheen: idle loop on the two primary conversion buttons, one pass on hover everywhere else */

@keyframes sheen {
  0% { transform: translateX(-160%) skewX(-20deg); }
  50% { transform: translateX(320%) skewX(-20deg); }
  100% { transform: translateX(320%) skewX(-20deg); }
}

@keyframes sheen-once {
  from { transform: translateX(-160%) skewX(-20deg); }
  to { transform: translateX(320%) skewX(-20deg); }
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-160%) skewX(-20deg);
  pointer-events: none;
}

.button:hover::after {
  animation: sheen-once 1.4s ease-in-out;
}

.hero-actions .button::after,
.contact .button::after {
  animation: sheen 6s ease-in-out 2.5s infinite;
}

.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

.button-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.button-outline {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.button-outline:hover {
  background-color: var(--accent);
  color: #fff;
}

.button-gold {
  color: var(--navy);
  background: linear-gradient(110deg, var(--gold-bright) 0%, var(--gold-bright) 50%, var(--gold) 50%);
  background-size: 230% 100%;
  background-position: 100% 0;
}

.link-arrow {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 0.2rem;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat;
  transition: color 0.2s ease;
}

.link-arrow:hover { color: var(--accent); }

/* Hero */

.hero {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .hero-copy {
    justify-self: center;
    align-self: center;
  }
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  letter-spacing: -0.02em;
}

.hero-w { color: var(--accent); }

.lede {
  font-size: clamp(1.125rem, 2.5vw, 1.3125rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-top: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* Hero visual: duotone Gardjola photo with the proof card floating over it */

.hero-visual {
  position: relative;
  margin-right: 6rem;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11rem 11rem 6px 6px;
}

.hero-proof {
  position: absolute;
  left: -7rem;
  bottom: 2.5rem;
  width: min(20rem, 92%);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 14px 36px rgba(14, 27, 51, 0.14);
}

.proof-row + .proof-row { margin-top: 1.25rem; }

.proof-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.proof-label span { white-space: nowrap; }

.proof-label span {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
}

.proof-bar {
  height: 1.15rem;
  border-radius: 3px;
}

.proof-bar-this {
  width: 6.5%;
  min-width: 0.75rem;
  background: var(--accent);
}

.proof-bar-avg {
  width: 100%;
  background: #c3cad9;
}

.proof-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 24rem;
}

/* Load sequence: the page's one unprompted moment */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes grow {
  from { width: 0; min-width: 0; }
}

.hero h1 { animation: rise 0.6s ease-out both; }
.hero .lede { animation: rise 0.6s ease-out 0.12s both; }
.hero .hero-actions { animation: rise 0.6s ease-out 0.24s both; }
.hero .cta-note { animation: rise 0.6s ease-out 0.3s both; }
.hero-visual { animation: rise 0.6s ease-out 0.36s both; }
.proof-bar-this { animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.55s both; }
.proof-bar-avg { animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.65s both; }

/* Value props */

.props.section-dark { border-bottom: 0; }

.props.section-dark .prop h3 { color: #fbfaf6; }

.props.section-dark .prop h3::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 0.9rem;
}

.props.section-dark .prop p { color: var(--navy-soft); }

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.prop h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.prop p {
  color: var(--ink-soft);
  font-size: 0.975rem;
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section-wash {
  background: var(--wash);
  border-block: 1px solid var(--rule);
}

.section-dark {
  background: var(--navy);
  color: var(--navy-ink);
}

.section-dark + .section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.015em;
}

.section-dark h2 { color: #fbfaf6; }

.section-intro {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 40rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.section-dark .section-intro { color: var(--navy-soft); }

/* Currency toggle */

.currency-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin: -1.5rem 0 2.5rem;
  background: var(--paper);
}

.currency-toggle button {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.875rem;
  padding: 0.45rem 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.currency-toggle button + button {
  border-left: 1px solid var(--rule);
}

.currency-toggle button[aria-pressed="true"] {
  background-color: var(--accent);
  color: #fff;
}

/* Pricing tiers */

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

.tier {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier-featured {
  border: 2px solid var(--accent);
  position: relative;
}

.tier-tag {
  position: absolute;
  top: -0.8rem;
  left: 2rem;
  background: var(--accent-deep);
  color: #fbfaf6;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 3px;
}

.tier h3 { font-size: 1.375rem; }

.price {
  font-size: 2.25rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.tier-desc {
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  flex-grow: 1;
}

.tier li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.tier .button { text-align: center; }

/* Work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}

.work-item {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  padding: 2rem;
}

.work-item h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
}

.work-item a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.15rem;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.work-item a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.work-item p { color: var(--ink-soft); }

/* About */

.about-text {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
  line-height: 1.55;
  max-width: 46rem;
  margin-top: 1.5rem;
  color: #f2efe7;
}

/* Contact */

.contact {
  padding-bottom: 7rem;
}

/* Footer */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy-soft);
  font-size: 0.9375rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.5rem;
}

.footer-inner a {
  color: var(--navy-soft);
  text-decoration: none;
  padding-bottom: 3px;
  background:
    linear-gradient(var(--gold), var(--gold)) left bottom / 0% 1.5px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}

.footer-inner a:hover {
  color: var(--gold-bright);
  background-size: 100% 1.5px, 100% 1px;
}

/* Contact questionnaire */

.contact-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.015em;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2.5rem;
  max-width: 44rem;
}

.progress-head { margin-bottom: 2rem; }

.progress-label {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.progress {
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.step { border: 0; padding: 0; margin: 0; }

.step legend {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  padding: 0;
  margin-bottom: 1.5rem;
}

.step legend:focus { outline: none; }

.field { margin-bottom: 1.75rem; }

.field-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.field-label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.choices {
  display: grid;
  gap: 0.6rem;
}

.choices-row {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.choice {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choice:hover { border-color: var(--accent); }

.choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice strong {
  display: block;
  font-weight: 500;
}

.choice span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.field textarea { resize: vertical; }

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field-error {
  color: #a03422;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  height: 1px;
  overflow: hidden;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
}

.form-nav .button { border: 0; cursor: pointer; font-family: inherit; }
.form-nav #next, .form-nav #send { margin-left: auto; }

.form-fail {
  margin-top: 1.25rem;
  color: #a03422;
  font-size: 0.9375rem;
}

.form-success h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.form-success p { color: var(--ink-soft); }

.success-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 2rem;
}

/* Responsive */

@media (max-width: 76rem) {
  .hero-proof { left: -4rem; }
}

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual {
    max-width: 28rem;
    margin-right: 0;
  }
  .site-nav { display: none; }
  .hero-proof {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(22rem, 88%);
    margin: -4.5rem 0 0 auto;
  }
  .tiers { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; }
  .props-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  .proof-label { font-size: 0.875rem; }
  .proof-label span { font-size: 1rem; }
}

@media (max-width: 25rem) {
  .proof-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }
}

@media (max-width: 40rem) {
  .site-nav { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .form-card { padding: 1.5rem; }
  .field-pair { grid-template-columns: 1fr; }
}

/* Reduced motion: everything appears, nothing performs */

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