/* La Fortune Realty Counseil
   Brand colours sampled from the Land Is Your Future, Part 2 cover. */
:root {
  --indigo: #23194D;
  --indigo-deep: #170F36;
  --indigo-soft: #3A2F6B;
  --yellow: #F6CC42;
  --yellow-soft: #FBE7A6;
  --paper: #FFFFFF;
  --mist: #F2F1F7;
  --muted: #5D5880;

  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --tamil: "Noto Sans Tamil", "Latha", sans-serif;

  --step--1: .9375rem;  /* 15 */
  --step-0: 1.125rem;   /* 18 */
  --step-1: 1.375rem;   /* 22 */
  --step-2: 1.75rem;    /* 28 */
  --step-3: 2.5rem;     /* 40 */
  --step-4: 3.5rem;     /* 56 */

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--indigo);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
cite { font-style: italic; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.services :focus-visible,
.process :focus-visible,
.about :focus-visible,
.contact :focus-visible { outline-color: var(--indigo); }

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--yellow);
  color: var(--indigo);
  font-family: var(--head);
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared heading voice: condensed, heavy, tight. */
h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.005em;
}

/* Brand / logo placeholder */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--yellow);
  color: var(--indigo);
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .02em;
  border-radius: 3px;
}
.brand-name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .01em;
}

/* Hero */
.hero {
  background: var(--indigo);
  color: var(--paper);
  padding: 1.25rem var(--gutter) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.topbar {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.topbar nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover { border-bottom-color: var(--yellow); }
.topbar nav .nav-cta {
  padding: .45rem 1rem;
  border: 2px solid var(--yellow);
  border-radius: 3px;
  color: var(--yellow);
}
.topbar nav .nav-cta:hover { background: var(--yellow); color: var(--indigo); }

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.25rem);
  font-stretch: 68%;
  font-weight: 850;
  line-height: .95;
  max-width: 12ch;
  text-wrap: balance;
}
.lede {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}
.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 3px;
  border: 2px solid var(--yellow);
  transition: background-color .15s ease, color .15s ease;
}
.btn-yellow { background: var(--yellow); color: var(--indigo); }
.btn-yellow:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.btn-ghost { color: var(--yellow); }
.btn-ghost:hover { background: rgba(246, 204, 66, .12); }

/* Survey sketch */
.survey svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.line {
  fill: none;
  stroke: var(--yellow);
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line.faint  { stroke-width: 1.5; opacity: .35; }
.line.road   { stroke-width: 2; opacity: .5; }
.line.parcel { stroke-width: 1.75; opacity: .6; }
.line.dashed { stroke-width: 1.5; opacity: .5; stroke-dasharray: 6 7; }
.line.plot   { stroke-width: 3.5; }
.plot-fill   { fill: url(#hatch); opacity: .28; }

.labels text {
  font-family: var(--head);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 17px;
  fill: var(--yellow);
  opacity: .7;
  text-anchor: middle;
}
.labels .road-label { font-style: italic; font-weight: 500; opacity: .55; }
.plot-label text { text-anchor: middle; font-family: var(--head); fill: var(--yellow); }
.plot-no  { font-size: 30px; font-weight: 800; font-stretch: 75%; }
.plot-you { font-size: 18px; font-weight: 600; fill: #fff !important; }
.north path { fill: var(--yellow); }
.north text {
  font-family: var(--head);
  font-weight: 800;
  font-size: 16px;
  fill: var(--yellow);
  text-anchor: middle;
}

/* One orchestrated moment: the survey lines draw themselves on load. */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { from { opacity: 0; } }
.line[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s cubic-bezier(.45, 0, .2, 1) var(--d, 0s) forwards;
}
.line.dashed { animation: show .6s ease var(--d) both; }
.plot-fill   { animation: show .8s ease 1.9s both; }
.labels      { animation: show .8s ease 1.4s both; }
.plot-label, .north { animation: show .6s ease 2.1s both; }

/* Facts band */
.facts {
  background: var(--yellow);
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--gutter);
}
.facts p {
  max-width: var(--wrap);
  margin: 0 auto;
  font-family: var(--head);
  font-stretch: 80%;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  text-wrap: balance;
}
.facts strong { font-weight: 850; }

/* Section heads */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2,
.process h2 {
  font-size: clamp(var(--step-3), 6vw, 5rem);
  font-stretch: 68%;
}
.section-head p { max-width: 52ch; font-size: var(--step-1); line-height: 1.5; }

/* Services: set like a land register */
.services { padding: clamp(4rem, 9vw, 7rem) 0; }
.register {
  border-top: 3px solid var(--indigo);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3.5rem;
}
.register > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(35, 25, 77, .18);
}
.register dt {
  font-family: var(--head);
  font-stretch: 80%;
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.15;
}
.register dd { color: var(--muted); font-size: 1.0625rem; line-height: 1.55; }

/* Process */
.process {
  background: var(--mist);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.process h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--indigo);
  padding-top: 1rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--head);
  font-stretch: 68%;
  font-weight: 850;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--indigo);
  -webkit-text-stroke: 0;
  margin-bottom: .75rem;
}
.steps li:first-child::before { color: var(--indigo); }
.steps h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: 1.0625rem; }

/* Books */
.books {
  background: var(--indigo);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.books :focus-visible { outline-color: var(--yellow); }
.books .section-head p { color: rgba(255, 255, 255, .85); }
.books h2 { color: var(--yellow); }
.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.book img,
.cover-stand-in {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 1.5rem 2.5rem -1rem rgba(0, 0, 0, .55), inset 4px 0 0 rgba(0, 0, 0, .25);
  margin-bottom: 1.5rem;
}
.cover-stand-in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10% 9%;
  background: var(--indigo-soft);
  border-left: 6px solid var(--yellow);
}
.cs-ta { font-family: var(--tamil); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--yellow); }
.cs-part { font-family: var(--head); font-weight: 700; color: #fff; font-size: 1rem; }
.cs-title { font-family: var(--head); font-stretch: 70%; font-weight: 850; font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: .95; color: #fff; }
.cs-author { font-family: var(--head); font-weight: 600; color: var(--yellow); font-size: .95rem; }
.book h3 { font-size: var(--step-2); }
.book-ta { font-family: var(--tamil); font-weight: 600; font-size: 1rem; color: var(--yellow); margin-top: .35rem; }
.book-meta { margin-top: .6rem; color: rgba(255, 255, 255, .8); font-size: 1.0625rem; max-width: 34ch; }
.book-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--head);
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}
.book-link:hover { color: #fff; border-bottom-color: #fff; }
.also { margin-top: clamp(2.5rem, 5vw, 3.5rem); color: rgba(255, 255, 255, .75); }

/* About */
.about { padding: clamp(4rem, 9vw, 7rem) 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.portrait-stand-in,
.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.portrait-stand-in {
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: var(--yellow);
}
.portrait-stand-in span {
  font-family: var(--tamil);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.25;
  color: var(--indigo);
}
.about h2 { font-size: clamp(var(--step-3), 5.5vw, 4.5rem); font-stretch: 68%; }
.role {
  margin-top: .5rem;
  font-family: var(--head);
  font-weight: 600;
  color: var(--muted);
}
.about-copy > p:not(.role) { margin-top: 1.25rem; max-width: 58ch; }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.social a {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 2px solid var(--indigo);
  border-radius: 3px;
  font-family: var(--head);
  font-weight: 700;
  text-decoration: none;
}
.social a:hover { background: var(--indigo); color: var(--paper); }

/* Contact */
.contact {
  background: var(--yellow);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.contact h2 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-stretch: 68%;
  max-width: 13ch;
}
.contact-list { border-top: 3px solid var(--indigo); }
.contact-list > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(35, 25, 77, .25);
}
.contact-list dt { font-family: var(--head); font-weight: 800; }
.contact-list a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pending { color: rgba(35, 25, 77, .6); font-style: italic; }

/* Footer */
.footer {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, .75);
  padding: 2rem 0;
  font-size: 1rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer .brand-name { color: #fff; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .survey { max-width: 520px; }
  .section-head { grid-template-columns: 1fr; }
  .register { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 640px) {
  .topbar nav li:not(:last-child) { display: none; }
  .brand-name { font-size: .95rem; max-width: 12ch; line-height: 1.15; }
  .register > div { grid-template-columns: 1fr; gap: .35rem; }
  .steps { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr; max-width: 340px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-stand-in { aspect-ratio: 16 / 9; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line[pathLength], .line.dashed, .plot-fill, .labels, .plot-label, .north {
    animation: none;
    stroke-dashoffset: 0;
  }
}
