/* ============================================================
   Prefontaine.design — Interior page components
   Used by work / services / about / contact
   ============================================================ */

/* ---------- Page header (consistent opener) ---------- */
.page-head {
  position: relative;
  padding: 220px 0 90px;
  overflow: hidden;
}
.page-head__ambient {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 80%;
  z-index: 0;
  opacity: 0.4;
  filter: blur(50px);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 {
  font-size: clamp(48px, 8vw, 104px);
  max-width: 14ch;
}
.page-head__sub {
  margin-top: 26px;
  max-width: 52ch;
}
/* per-page ambient tints */
.head--emerald .page-head__ambient { background: radial-gradient(closest-side at 30% 50%, var(--emerald), transparent 70%); }
.head--sapphire .page-head__ambient { background: radial-gradient(closest-side at 70% 50%, var(--sapphire), transparent 70%); }
.head--teal .page-head__ambient { background: radial-gradient(closest-side at 50% 50%, var(--teal), transparent 70%); }
.head--ruby .page-head__ambient { background: radial-gradient(closest-side at 60% 50%, var(--ruby), transparent 70%); }

/* ---------- Static device frame (reuse mini-sites) ---------- */
.frame-static { position: relative; }
.frame-static .browser { aspect-ratio: 16 / 10.4; }
.frame-static .browser__screen .minisite {
  opacity: 1 !important;
  position: absolute;
  inset: 0;
}
.frame-static .phone {
  position: absolute;
  right: -28px; bottom: -28px;
  width: 23%;
}
.frame-static .phone .minisite { opacity: 1 !important; }

/* ============================================================
   WORK — full-bleed case studies
   ============================================================ */
.case {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 110px 0;
  overflow: hidden;
}
.case--emerald { background: var(--kiefy-bg); }
.case--bridget { background: var(--bridget-bg); color: var(--teal-deep); }
.case--sapphire { background: var(--prefontaine-bg); }
.case__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.case__index {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.case--bridget .case__index { color: #b08544; }
.case__name { font-size: clamp(48px, 6vw, 80px); margin-bottom: 18px; }
.case__tag {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 26px;
}
.case__desc { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.6; max-width: 30ch; }
.case--emerald .case__desc, .case--sapphire .case__desc { color: var(--off-white); }
.case__stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 36px 0;
}
.case__stats .pill {
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid currentColor;
  opacity: 0.85;
  white-space: nowrap;
}
.case--emerald .case__stats .pill { border-color: rgba(16,185,129,0.4); color: var(--emerald-bright); }
.case--sapphire .case__stats .pill { border-color: rgba(37,99,235,0.5); color: #8fb0f5; }
.case--bridget .case__stats .pill { border-color: rgba(42,32,26,0.3); color: #6a5d52; }
.case__link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 3px;
  transition: gap 0.4s var(--ease-settle);
}
.case--bridget .case__link { color: #9a6a1f; border-color: rgba(154,106,31,0.5); }
.case__link:hover { gap: 15px; }

/* Disabled "live site" link for current clients whose site isn't public yet. */
.case__link--soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* Current vs. live status pill, sits above the case index. */
.case__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid currentColor;
  margin-bottom: 18px;
}
.case__status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.case__status--current { color: var(--gold); }
.case__status--live { color: var(--emerald-bright); }
/* keep contrast on the cream Bridget panel */
.case--bridget .case__status--live { color: #1e6b5b; }

.case__device .browser {
  box-shadow: 0 50px 100px rgba(0,0,0,0.55);
}

/* ============================================================
   SERVICES page
   ============================================================ */
.svc-detail {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.svc-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.svc-detail--mirror .svc-detail__copy { order: 2; }
.svc-detail__eyebrow { margin-bottom: 22px; }
.svc-detail__copy h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 28px; }
.svc-detail__copy p { color: var(--silver); margin-bottom: 18px; max-width: 44ch; }
.svc-deliverables {
  list-style: none; padding: 28px 0 0; margin: 32px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
.svc-deliverables li {
  font-size: 14px; color: var(--off-white);
  display: flex; align-items: center; gap: 10px;
}
.svc-deliverables li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald-bright); flex: 0 0 auto;
}
.svc-visual {
  border-radius: 22px;
  padding: 48px;
  min-height: 440px;
  display: flex; align-items: center; justify-content: center;
}

/* works-together diagram */
.together { text-align: center; padding: var(--section-pad) 0; }
.together h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 64px; }
.together__diagram {
  display: flex; align-items: center; justify-content: center; gap: 0;
  flex-wrap: wrap;
}
.together__node {
  flex: 0 0 auto;
  width: 280px;
  padding: 36px 28px;
  border-radius: 18px;
  text-align: left;
}
.together__node h3 { font-size: 22px; margin-bottom: 10px; }
.together__node p { font-size: 14px; color: var(--silver); }
.together__line {
  flex: 1 1 80px;
  min-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.together__line span {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}

/* ============================================================
   ABOUT page
   ============================================================ */
.philosophy { padding: var(--section-pad) 0; }
.philosophy__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start;
}
.philosophy__mark {
  position: sticky; top: 120px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.philosophy__copy p { font-size: 19px; color: var(--silver); margin-bottom: 26px; }
.philosophy__copy p strong { color: var(--off-white); font-weight: 500; }

.values { padding: 0 0 var(--section-pad); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 40px 34px; border-radius: 18px; }
.value-card h3 { font-size: 22px; margin-bottom: 14px; }
.value-card p { font-size: 15px; color: var(--silver); }

.about-process { padding: var(--section-pad) 0; background: var(--teal-deep); }
.about-process__head { margin-bottom: 72px; }
.about-process__head h2 { font-size: clamp(32px, 4vw, 52px); }
.ap-step {
  display: grid; grid-template-columns: 120px 1fr; gap: 32px;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: baseline;
}
.ap-step__num {
  font-family: var(--font-display);
  font-size: 56px; color: var(--sapphire-mid); opacity: 0.55; line-height: 1;
}
.ap-step h3 { font-size: 26px; margin-bottom: 10px; }
.ap-step p { color: var(--silver); max-width: 60ch; }

.closing { text-align: center; padding: 160px 0; }
.closing h2 { font-size: clamp(34px, 5vw, 68px); max-width: 18ch; margin: 0 auto; }

/* ============================================================
   CONTACT page
   ============================================================ */
.contact-main { padding: 200px 0 var(--section-pad); }
.contact__grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px;
  align-items: start;
}
.contact__info {
  padding: 52px 46px;
  border-radius: 22px;
}
.contact__info h1 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 24px; }
.contact__info p { color: var(--silver); margin-bottom: 32px; }
.contact__email {
  display: inline-block; font-size: 20px; color: var(--off-white);
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px; margin-bottom: 28px;
  transition: color 0.3s;
}
.contact__email:hover { color: var(--gold); }
.contact__call { font-size: 15px; color: var(--silver); }
.contact__call a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.contact__note { margin-top: 36px; font-size: 13px; color: rgba(148,163,184,0.7); letter-spacing: 0.02em; }

.contact__form { padding: 8px 0; }
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--silver); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.05);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(148,163,184,0.5); }
.field select { appearance: none; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 17px;
}
/* Success state: the whole form is replaced in-place by this card */
.form-sent {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 44px 36px;
  border-radius: 18px;
  margin-top: 4px;
}
.contact__form.sent > :not(.form-sent) { display: none; }
.contact__form.sent .form-sent { display: flex; }
.form-sent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.16);
  border: 1px solid rgba(16,185,129,0.4);
  color: #34d399;
}
.form-sent__title { font-size: clamp(26px, 3vw, 34px); }
.form-sent__msg { color: var(--silver); font-size: 16px; max-width: 34ch; }
.form-sent__cta {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.form-sent__cta:hover { color: var(--off-white); }
@media (prefers-reduced-motion: no-preference) {
  .contact__form.sent .form-sent { animation: sentIn 0.5s var(--ease-settle) both; }
}
@keyframes sentIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.form-error {
  display: none;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(123,28,46,0.15);
  border: 1px solid rgba(123,28,46,0.45);
  color: #f3c9d0;
  font-size: 15px;
  margin-top: 18px;
}
.form-error.show { display: block; }

/* honeypot — visually removed, still submitted; bots fill it, people don't */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-reassure {
  margin-top: 56px;
  padding: 36px 40px;
  border-radius: 18px;
  text-align: center;
}
.contact-reassure p { color: var(--off-white); font-size: 18px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .page-head { padding: 150px 0 60px; }
  .case__grid, .svc-detail__grid, .philosophy__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-detail--mirror .svc-detail__copy { order: 0; }
  .values__grid { grid-template-columns: 1fr; }
  .together__node { width: 100%; }
  .together__line { width: 100%; flex-basis: 60px; min-height: 60px; }
  .philosophy__mark { position: relative; top: 0; max-width: 360px; }
  .field-row { grid-template-columns: 1fr; }
  .ap-step { grid-template-columns: 64px 1fr; gap: 20px; }
  .ap-step__num { font-size: 40px; }
  .frame-static .phone { display: none; }
}
