@font-face {
  font-family: "Surgena";
  src: url("uploads/Surgena-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Surgena";
  src: url("uploads/Surgena-Italic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  --coffee: #5c2604;
  --coffee-deep: #401901;
  --ink: #f7efe3;
  --muted: #dfcfbd;
  --dim: #c1a68c;
  --line: rgba(247, 239, 227, 0.28);
  --line-soft: rgba(247, 239, 227, 0.15);
  --surface: #5c2604;
  --surface-raised: #481c02;
  --accent: #f2e7d9;
  --accent-soft: #fffaf3;
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--coffee);
  font-size: 112%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 5%, rgba(247, 239, 227, 0.1), transparent 28rem),
    linear-gradient(135deg, var(--coffee) 0%, var(--coffee-deep) 100%);
  font-family: "Surgena", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.card {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(92, 38, 4, 0.98), rgba(64, 25, 1, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: reveal 0.7s ease both;
}

.card-header { text-align: center; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.brand-mark {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 19px;
  box-shadow: 0 10px 22px rgba(0,0,0,.3);
}

.brand-name {
  display: grid;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand-name strong { color: var(--accent); font-weight: 700; }

.eyebrow, .section-kicker {
  color: var(--accent-soft);
  font-family: Arial, sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow { margin-top: 34px; }

h1, h2 {
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .96;
}

h1 { margin-top: 17px; font-size: clamp(2.65rem, 8vw, 4.1rem); }
h2 { font-size: clamp(2rem, 6vw, 2.9rem); }
h1 em, h2 em { color: var(--accent); font-style: italic; }

.slogan {
  margin-top: 20px;
  color: var(--muted);
  font-size: .93rem;
  letter-spacing: .02em;
}

.slogan strong { color: var(--accent); font-weight: 300; }

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 26px auto 0;
  max-width: 470px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.services span { display: inline-flex; align-items: center; gap: 8px; }
.services span:not(:last-child)::after { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); content: ""; }

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.featured-work {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 50px 0 10px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.featured-work > div { min-width: 0; }

.section-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--dim); }
.section-kicker span { display: block; width: 27px; height: 1px; background: var(--accent); }

.work-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 9px;
  min-width: 126px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #17100c;
  font-family: Arial, sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease;
}

.work-arrow svg { width: 18px; height: 18px; }
.work-arrow:hover, .work-arrow:focus-visible { background: var(--accent-soft); transform: rotate(-8deg) scale(1.05); }

.contact { margin-top: 32px; }
.contact .section-kicker { margin-bottom: 8px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s ease, padding .2s ease;
}

a.contact-row:hover, a.contact-row:focus-visible { padding-left: 8px; color: var(--accent-soft); }
.contact-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.contact-icon svg { width: 16px; height: 16px; }
.contact-row > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row small { color: var(--dim); font-family: Arial, sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.row-arrow { width: 17px; height: 17px; margin-left: auto; color: var(--dim); }
.static-row { color: var(--muted); font-style: normal; }
.cta-row { margin: 6px 0; padding-right: 12px; padding-left: 12px; border: 1px solid rgba(247, 239, 227, 0.24); border-radius: 12px; background: rgba(247, 239, 227, 0.07); }
.cta-row + .cta-row { margin-top: 10px; }
.cta-row:hover, .cta-row:focus-visible { background: rgba(247, 239, 227, 0.14); }

.card-footer { margin-top: 38px; }
.card-footer > p { color: var(--dim); font-family: Arial, sans-serif; font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.card-footer > p .dot { color: var(--accent); }

.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 23px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 700 .67rem Arial, sans-serif; letter-spacing: .04em; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); background: rgba(247,239,227,.12); transform: translateY(-2px); }
.btn-primary { border-color: var(--accent); background: var(--accent); color: #19100b; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-soft); color: #19100b; }

.toast { position: fixed; right: 18px; bottom: 20px; left: 18px; z-index: 10; width: fit-content; max-width: calc(100% - 36px); margin: auto; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-raised); color: var(--ink); font: .78rem Arial, sans-serif; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

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

@media (max-width: 440px) {
  body { padding: 8px 10px; }

  .card {
    width: min(100%, 360px);
    padding: 18px 16px 14px;
    border-radius: 20px;
  }

  .brand-lockup { gap: 9px; }
  .brand-mark { width: 48px; height: 48px; border-radius: 13px; }
  .brand-name { font-size: .68rem; letter-spacing: .12em; }

  .eyebrow { margin-top: 16px; font-size: .56rem; letter-spacing: .15em; }
  h1 { margin-top: 9px; font-size: clamp(2rem, 9vw, 2.55rem); }
  .slogan { margin-top: 12px; font-size: .75rem; line-height: 1.35; }

  .services {
    gap: 5px 10px;
    margin-top: 14px;
    max-width: 360px;
    font-size: .55rem;
    letter-spacing: .06em;
    line-height: 1.25;
  }
  .services span { gap: 5px; }
  .services span:not(:last-child)::after { width: 2px; height: 2px; }

  .featured-work { align-items: center; gap: 10px; margin: 22px 0 6px; padding: 12px 0 14px; }
  .featured-work > div { min-width: 0; }
  .section-kicker { gap: 7px; margin-bottom: 8px; font-size: .55rem; letter-spacing: .14em; }
  .section-kicker span { width: 18px; }
  h2 { font-size: 1.72rem; }
  .contact-title { margin-bottom: 3px; font-size: .46rem; letter-spacing: .11em; text-transform: uppercase; }
  .work-arrow { min-width: 104px; height: 42px; padding: 0 11px; gap: 6px; font-size: .5rem; }
  .work-arrow svg { width: 14px; height: 14px; }

  .contact { margin-top: 16px; }
  .contact .section-kicker { margin-bottom: 4px; }
  .contact-row { gap: 9px; padding: 8px 0; font-size: .75rem; }
  .contact-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .contact-icon svg { width: 13px; height: 13px; }
  .contact-row > span:nth-child(2) { gap: 2px; }
  .contact-row small { font-size: .5rem; letter-spacing: .12em; }
  .row-arrow { width: 14px; height: 14px; }
  .cta-row { margin: 3px 0; padding-right: 8px; padding-left: 8px; }
  .cta-row + .cta-row { margin-top: 4px; }

  .card-footer { margin-top: 14px; }
  .card-footer > p { font-size: .52rem; letter-spacing: .11em; }
  .actions { gap: 6px; margin-top: 12px; }
  .btn { min-height: 44px; padding: 7px 4px; gap: 4px; font-size: .52rem; line-height: 1.1; letter-spacing: 0; text-align: center; }
  .btn svg { width: 14px; height: 14px; }
}

@media (max-width: 440px) and (max-height: 760px) {
  body { padding: 3px 6px; }
  .card { padding: 10px 11px 8px; border-radius: 16px; }
  .brand-lockup { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-name { font-size: .53rem; }
  .eyebrow { margin-top: 8px; font-size: .46rem; }
  h1 { margin-top: 4px; font-size: 1.58rem; }
  .slogan { margin-top: 5px; font-size: .59rem; line-height: 1.15; }
  .services { gap: 3px 7px; margin-top: 6px; font-size: .44rem; line-height: 1.15; }
  .featured-work { gap: 7px; margin-top: 10px; padding-top: 6px; padding-bottom: 7px; }
  .section-kicker { gap: 5px; margin-bottom: 5px; font-size: .45rem; }
  .section-kicker span { width: 13px; }
  h2 { font-size: 1.28rem; }
  .work-arrow { min-width: 88px; height: 32px; padding-inline: 8px; gap: 5px; font-size: .42rem; }
  .work-arrow svg { width: 12px; height: 12px; }
  .contact { margin-top: 7px; }
  .contact-row { gap: 7px; padding-top: 4px; padding-bottom: 4px; font-size: .58rem; }
  .contact-icon { flex-basis: 22px; width: 22px; height: 22px; }
  .contact-icon svg { width: 11px; height: 11px; }
  .contact-row small { font-size: .43rem; }
  .row-arrow { width: 12px; height: 12px; }
  .cta-row { margin: 1px 0; padding-right: 5px; padding-left: 5px; }
  .cta-row + .cta-row { margin-top: 2px; }
  .card-footer { margin-top: 6px; }
  .card-footer > p { font-size: .42rem; }
  .actions { gap: 4px; margin-top: 4px; }
  .btn { min-height: 30px; padding: 4px 3px; gap: 3px; font-size: .4rem; }
  .btn svg { width: 11px; height: 11px; }
}

/* Keep the complete card visible on shorter desktop previews too. */
@media (min-width: 441px) and (max-height: 900px) {
  body { padding: 8px 16px; overflow-y: auto; }
  .card { width: min(100%, 720px); padding: 22px 30px 20px; }
  .brand-lockup { gap: 10px; }
  .brand-mark { width: 56px; height: 56px; border-radius: 15px; }
  .eyebrow { margin-top: 16px; font-size: .58rem; }
  h1 { margin-top: 10px; font-size: clamp(2.2rem, 5vw, 3rem); }
  .slogan { margin-top: 12px; font-size: .78rem; }
  .services { gap: 5px 12px; margin-top: 16px; font-size: .58rem; }
  .featured-work { gap: 14px; margin: 26px 0 7px; padding: 13px 0 15px; }
  .section-kicker { gap: 7px; margin-bottom: 8px; font-size: .58rem; }
  h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
  .work-arrow { min-width: 116px; height: 42px; padding-inline: 13px; font-size: .58rem; }
  .work-arrow svg { width: 16px; height: 16px; }
  .contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; margin-top: 18px; }
  .contact > .section-kicker { grid-column: 1 / -1; }
  .contact-row { gap: 10px; padding-top: 9px; padding-bottom: 9px; font-size: .78rem; }
  .contact-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .contact-icon svg { width: 14px; height: 14px; }
  .contact-row small { font-size: .54rem; }
  .row-arrow { width: 14px; height: 14px; }
  .cta-row { margin: 3px 0; padding-right: 9px; padding-left: 9px; }
  .cta-row + .cta-row { margin-top: 4px; }
  .card-footer { margin-top: 18px; }
  .card-footer > p { font-size: .56rem; }
  .actions { gap: 7px; margin-top: 10px; }
  .btn { min-height: 42px; padding: 8px 7px; gap: 5px; font-size: .53rem; line-height: 1.1; }
  .btn svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
