/* ==========================================================================
   TMY — front page

   Section order: hero, about, why us, services, projects, properties
   (administrators only), articles, contact. The contact band runs straight
   into the footer, which carries the details.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Services strip under the hero
   -------------------------------------------------------------------------- */

.tmy-marquee {
  overflow: hidden;
  padding: 14px 0;
  background: var(--ink);
  color: var(--paper-72);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.tmy-marquee__track {
  display: flex;
  width: max-content;
  animation: tmy-marquee 34s linear infinite;
}

.tmy-marquee__set {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-size: var(--fs-label-lg);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes tmy-marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.tmy-about {
  padding: var(--section-y-lg) var(--gutter);
}

.tmy-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-xl);
  align-items: start;
}

.tmy-about__title {
  margin-bottom: 28px;
}

.tmy-about__p {
  max-width: var(--measure);
  margin-bottom: 18px;
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: 1.65;
  color: var(--ink-72);
  text-wrap: pretty;
}

/* The closing line of the section reads a size up, in full ink. */
.tmy-about__p--closing {
  margin-bottom: 20px;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  line-height: 1.55;
  color: var(--ink);
}

.tmy-about__aside {
  display: grid;
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
}

.tmy-about__media {
  background: var(--paper);
  line-height: 0;
}

.tmy-about__img {
  width: 100%;
  height: clamp(260px, 38vh, 440px);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Why us
   -------------------------------------------------------------------------- */

.tmy-why {
  padding: var(--section-y) var(--gutter);
  background: var(--paper-2);
  border-top: 1px solid var(--ink-10);
}

.tmy-why__title {
  max-width: 20ch;
}

.tmy-why__side {
  max-width: 26ch;
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--ink-62);
}

.tmy-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.tmy-why__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--paper);
  border: 1px solid var(--ink-12);
}

.tmy-why__card::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--tone, var(--acc));
}

.tmy-why__card-title {
  margin-top: 6px;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
}

.tmy-why__card-text {
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--ink-68);
  text-wrap: pretty;
}

.tmy-why__card--cta {
  padding: 0;
  background: var(--ink);
  border-color: var(--ink);
}

.tmy-why__card--cta::before {
  display: none;
}

.tmy-why__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-md);
  min-height: 220px;
  height: 100%;
  padding: clamp(24px, 2.6vw, 40px);
  overflow: hidden;
  color: var(--paper);
  background: repeating-linear-gradient(to top, rgba(247, 247, 245, .07) 0 1px, transparent 1px 22px);
}

.tmy-why__cta::before {
  content: '';
  position: relative;
  width: 26px;
  height: 3px;
  background: var(--paper);
}

.tmy-why__cta:hover {
  color: var(--paper);
}

/* The five bars echo the colours of the logo. */
.tmy-why__bars {
  position: absolute;
  top: 0;
  right: clamp(20px, 2.4vw, 36px);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  height: 34%;
  opacity: .9;
}

.tmy-why__bars i {
  width: 14px;
}

.tmy-why__bars i:nth-child(1) { height: 38%; background: var(--magenta); }
.tmy-why__bars i:nth-child(2) { height: 62%; background: var(--amber); }
.tmy-why__bars i:nth-child(3) { height: 100%; background: var(--acc); }
.tmy-why__bars i:nth-child(4) { height: 74%; background: var(--purple); }
.tmy-why__bars i:nth-child(5) { height: 48%; background: var(--green); }

.tmy-why__cta-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tmy-why__cta-title {
  max-width: 14ch;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
  text-wrap: pretty;
}

.tmy-why__cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label-wide);
  text-transform: uppercase;
  color: var(--paper-72);
  transition: color var(--dur-fast) ease;
}

.tmy-why__cta:hover .tmy-why__cta-label {
  color: var(--acc);
}

/* --------------------------------------------------------------------------
   Services

   Sticky cards that stack: the one being covered steps back (home.js).
   -------------------------------------------------------------------------- */

.tmy-services {
  --label-color: var(--paper-55);
  --line-color: var(--paper-30);
  --link-hover: var(--acc);
  padding: clamp(70px, 10vh, 120px) var(--gutter) clamp(90px, 16vh, 200px);
  background: var(--ink);
  color: var(--paper);
}

.tmy-services__head {
  margin-bottom: clamp(28px, 5vh, 56px);
}

.tmy-services__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 34ch;
}

.tmy-services__lead {
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--paper-65);
}

/* The gap between the cards is the scroll each one gets on its own before the
   next rises over it, so it is deliberately generous. */
.tmy-svc {
  position: sticky;
  top: clamp(88px, 13vh, 150px);
  margin-bottom: clamp(110px, 18vh, 200px);
}

.tmy-svc:last-child {
  margin-bottom: 0;
}

.tmy-svc__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: clamp(440px, 70vh, 620px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
  transform-origin: top center;
  transition: transform var(--dur) var(--ease), filter var(--dur) ease;
}

.tmy-svc__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 4vh, 48px);
  min-width: 0;
  padding: clamp(24px, 3.2vw, 52px);
  overflow: hidden;
}

/* The opening line and the colour mark share the top of the card. */
.tmy-svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
}

.tmy-svc__mark {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--tone, var(--acc));
}

.tmy-svc__lead {
  max-width: 34ch;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--ink-86);
  text-wrap: pretty;
}

.tmy-svc__title {
  margin-bottom: 16px;
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: pretty;
}

.tmy-svc__title a:hover {
  color: var(--acct);
}

.tmy-svc__desc {
  max-width: 48ch;
  margin-bottom: clamp(20px, 3vh, 32px);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: var(--fw-light);
  line-height: 1.65;
  color: var(--ink-68);
  text-wrap: pretty;
}

.tmy-svc__cta {
  padding: 13px 24px;
  font-size: 14px;
}

/* The ruled panel shows through while a service has no photo of its own. */
.tmy-svc__media {
  height: 100%;
  overflow: hidden;
  background: repeating-linear-gradient(to top, var(--ink-10) 0 1px, transparent 1px 34px), var(--paper-2);
  border-left: 6px solid var(--tone, var(--acc));
}

.tmy-svc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.tmy-projects {
  padding: clamp(80px, 12vh, 150px) var(--gutter);
}

.tmy-projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.tmy-projects__intro {
  position: sticky;
  top: clamp(96px, 16vh, 180px);
}

.tmy-projects__title {
  max-width: 20ch;
  margin-bottom: clamp(24px, 3vh, 36px);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

/* The counter only means something while the cards move, so it needs JS. */
.tmy-projects__progress {
  display: none;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(22px, 3vh, 32px);
}

.tmy-js .tmy-projects__progress {
  display: flex;
}

.tmy-projects__count {
  font-size: var(--fs-label-lg);
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}

.tmy-projects__rail {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--ink-18);
}

.tmy-projects__rail i {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  background: var(--magenta);
  transition: width .5s var(--ease), background .5s ease;
}

.tmy-projects__hint {
  font-size: var(--fs-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-62);
}

.tmy-projects__lead {
  max-width: 46ch;
  margin-bottom: clamp(26px, 3.4vh, 38px);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: var(--fw-light);
  line-height: 1.65;
  color: var(--ink-72);
  text-wrap: pretty;
}

/* «Όλα τα έργα» and, when there are any, «Έργα σε εξέλιξη». */
.tmy-projects__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tmy-projects__list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 64px);
}

.tmy-proj {
  transition: opacity .6s ease, filter .6s ease, transform .8s var(--ease);
}

/* Every card but the one being read steps back. */
.tmy-proj.is-dim {
  opacity: .34;
  filter: saturate(.4);
  transform: scale(.985);
}

.tmy-proj__link:hover {
  color: inherit;
}

.tmy-proj__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--line);
}

.tmy-proj__media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--tone, var(--acc));
}

.tmy-proj__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.tmy-proj__link:hover .tmy-proj__img {
  transform: scale(1.07);
}

.tmy-proj__title {
  margin: 20px 0 8px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
  transition: color var(--dur-fast) ease;
}

.tmy-proj__link:hover .tmy-proj__title {
  color: var(--acct);
}

.tmy-proj__meta {
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-62);
}

/* --------------------------------------------------------------------------
   Properties for sale — administrators only while sales are switched off
   -------------------------------------------------------------------------- */

.tmy-sale {
  --label-color: var(--paper-55);
  --line-color: var(--paper-30);
  --link-hover: var(--acc);
  padding: var(--section-y) var(--gutter);
  background: var(--ink);
  color: var(--paper);
}

.tmy-sale__title {
  max-width: 20ch;
}

.tmy-sale__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.tmy-sale__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--paper-14);
  color: var(--paper);
  transition: border-color var(--dur) ease;
}

.tmy-sale__card:hover {
  border-color: rgba(15, 163, 226, .6);
  color: var(--paper);
}

.tmy-sale__media {
  aspect-ratio: 3 / 2;
  margin-bottom: 6px;
  overflow: hidden;
  background: var(--night);
}

.tmy-sale__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.tmy-sale__card:hover .tmy-sale__img {
  transform: scale(1.05);
}

.tmy-sale__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tmy-sale__price {
  color: var(--paper-72);
}

.tmy-sale__name {
  font-size: 18px;
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-tight);
}

.tmy-sale__specs {
  font-size: 14px;
  font-weight: var(--fw-light);
  color: var(--paper-65);
}

/* --------------------------------------------------------------------------
   Articles
   -------------------------------------------------------------------------- */

.tmy-journal {
  padding: var(--section-y-lg) var(--gutter);
}

.tmy-journal__title {
  max-width: 24ch;
}

.tmy-journal__list {
  display: grid;
  gap: 1px;
  background: var(--ink-14);
  border-top: 1px solid var(--ink-14);
  border-bottom: 1px solid var(--ink-14);
}

.tmy-journal__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: clamp(12px, 2vw, 32px);
  padding: clamp(22px, 2.6vw, 34px) clamp(4px, 1vw, 16px);
  background: var(--paper);
  transition: transform .55s var(--ease), background .55s var(--ease);
}

.tmy-journal__row:hover {
  background: var(--paper-2);
  color: var(--ink);
  transform: translateX(16px);
}

.tmy-journal__date {
  min-width: 96px;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  color: var(--tone, var(--acct));
  font-variant-numeric: tabular-nums;
}

.tmy-journal__name {
  font-size: clamp(18px, 1.9vw, 27px);
  font-weight: var(--fw-regular);
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.tmy-journal__arrow {
  align-self: center;
  font-size: 14px;
  color: var(--ink-50);
  transition: transform .55s var(--ease), color .55s ease;
}

.tmy-journal__row:hover .tmy-journal__arrow {
  transform: translateX(8px);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Contact — the dark band that becomes the footer
   -------------------------------------------------------------------------- */

.tmy-closing {
  --label-color: var(--paper-55);
  padding: clamp(80px, 14vh, 180px) var(--gutter) clamp(56px, 9vh, 110px);
  background: var(--ink);
  color: var(--paper);
}

.tmy-closing__title {
  margin-bottom: clamp(28px, 4vh, 48px);
  font-size: clamp(34px, 7vw, 104px);
  font-weight: var(--fw-thin);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: pretty;
}

.tmy-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* The footer continues the same dark band, so it needs no top padding. */
.tmy-footer {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  /* The cards keep stacking on a phone; they turn into one column, photo on
     top, and the card has to stay shorter than the screen or its foot would
     be stuck below the fold while it is pinned. */
  .tmy-svc {
    top: clamp(86px, 11vh, 108px);
    margin-bottom: clamp(90px, 16vh, 180px);
  }

  .tmy-svc__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(140px, 24vh, 220px) minmax(0, 1fr);
    height: clamp(430px, 74vh, 620px);
  }

  .tmy-svc__media {
    order: -1;
    height: 100%;
    border-left: 0;
    border-top: 6px solid var(--tone, var(--acc));
  }

  .tmy-svc__text {
    padding: clamp(20px, 5vw, 32px);
  }

  /* The full text is on the Υπηρεσίες page; here it may not break the card. */
  .tmy-svc__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
  }

  .tmy-projects__intro {
    position: static;
  }
}

@media (max-width: 560px) {
  .tmy-journal__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tmy-journal__date {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tmy-marquee__track {
    animation: none;
  }

  .tmy-svc__inner,
  .tmy-proj,
  .tmy-proj__img,
  .tmy-journal__row,
  .tmy-journal__arrow,
  .tmy-sale__img {
    transition: none;
  }

  .tmy-journal__row:hover,
  .tmy-journal__row:hover .tmy-journal__arrow {
    transform: none;
  }

  /* The highlighted project still stands out, but nothing moves. */
  .tmy-proj.is-dim {
    transform: none;
  }

  .tmy-proj__link:hover .tmy-proj__img,
  .tmy-sale__card:hover .tmy-sale__img {
    transform: none;
  }
}
